e8ec01e408e9d59feaab02e42214428df3320303
[gnulib.git] / ChangeLog
1 2012-01-08  Jim Meyering  <meyering@redhat.com>
2
3         select.c: indent with spaces, not TABs
4         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5
6 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7
8         quotearg: do not use grave accent for left quote
9         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
10         locale_quoting_style.
11         (quotearg_buffer_restyled): Fix example.
12         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
13
14 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
15
16         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
17         Most programs do not have translation catalogs for English and much
18         less separate catalogs for British and American English.  Drop the
19         suggestion to translators about these two, and provide it
20         automatically for Unicode locales.  Like most programs, even those
21         using American English, we use single quotation marks.  This conflicts
22         with the American typographic convention, but works better when you
23         cite the entire error message within double quotes.  It also tries not
24         to clash with established practice and with what non-gnulib programs
25         will usually do.
26         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
27         using an UTF-8 or GB-18030 locale.  The list of other locales with
28         quotes was provided by Bruno Haible.
29         (quotearg_buffer_restyled): Adjust instructions to translators.
30         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
31         text, since this would be wrong when using Unicode.
32         * modules/quotearg: Depend on c-strcaseeq.
33
34 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
35
36         quotearg: fix Wikipedia link
37         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
38
39 2012-01-07  Simon Josefsson  <simon@josefsson.org>
40
41         Fix for mingw with MSVC9.
42         * m4/ld-version-script.m4: Check that compiler rejects version
43         scripts with syntax errors.  Reported by Bruno Haible
44         <bruno@clisp.org>.
45
46 2012-01-06  Bruno Haible  <bruno@clisp.org>
47
48         Talk about "native Windows API", not "Woe32".
49         * lib/accept4.c: Update comments to mention native Windows.
50         * lib/execute.c: Likewise.
51         * lib/fatal-signal.c: Likewise.
52         * lib/localcharset.c: Likewise.
53         * lib/nanosleep.c: Likewise.
54         * lib/nl_langinfo.c: Likewise.
55         * lib/pclose.c: Likewise.
56         * lib/pipe-filter-gi.c: Likewise.
57         * lib/pipe-filter-ii.c: Likewise.
58         * lib/pipe.c: Likewise.
59         * lib/pipe2.c: Likewise.
60         * lib/popen.c: Likewise.
61         * lib/progreloc.c: Likewise.
62         * lib/relocatable.c: Likewise.
63         * lib/sigaction.c: Likewise.
64         * lib/sigprocmask.c: Likewise.
65         * lib/spawn-pipe.h: Likewise.
66         * lib/spawn-pipe.c: Likewise.
67         * lib/spawni.c: Likewise.
68         * lib/stat-time.h: Likewise.
69         * lib/w32spawn.h: Likewise.
70         * tests/test-isatty.c: Likewise.
71         * lib/config.charset: More comments.
72         * doc/gnulib-intro.texi: Mention native Windows.
73         * doc/posix-functions/_Exit_C99.texi: Likewise.
74         * doc/posix-headers/fcntl.texi: Likewise.
75
76 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
77
78         argp: Avoid crash if translator uses % characters in a translation.
79         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
80         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
81
82 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
83
84         doc: C11 and C++11 are now official
85         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
86         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
87         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
88         * modules/stdalign:
89         Replace references to draft C1X to C11, and to draft C++0X to C++11.
90
91 2012-01-06  Bruno Haible  <bruno@clisp.org>
92
93         uc-is-grapheme-break tests: Tweak.
94         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
95         message.
96
97 2012-01-06  Bruno Haible  <bruno@clisp.org>
98
99         test-init.sh: correct the test for diff -u
100         * tests/test-init.sh: Also redirect stdout to /dev/null.
101
102 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
103
104         Use ', not `, for quoting output.
105         * build-aux/announce-gen (usage, sizes, print_news_deltas)
106         (print_changelog_deltas, get_tool_versions, main program):
107         * build-aux/git-version-gen:
108         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
109         * build-aux/move-if-change (help):
110         * build-aux/useless-if-before-free (usage, main program):
111         * check-module (parse_module_file, usage)
112         (find_included_lib_files, check_module):
113         * lib/argmatch.c (main) [TEST]:
114         * lib/argp-help.c (_help):
115         * lib/getopt1.c (main) [TEST]:
116         * lib/git-merge-changelog.c (usage):
117         * lib/xstrtol-error.c (xstrtol_error):
118         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
119         * m4/argz.m4 (gl_FUNC_ARGZ):
120         * m4/bison.m4 (gl_BISON):
121         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
122         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
123         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
124         * m4/fpending.m4 (gl_PREREQ_FPENDING):
125         * m4/gc-random.m4 (gl_GC_RANDOM):
126         * m4/intl.m4 (gt_CHECK_DECL):
127         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
128         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
129         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
130         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
131         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
132         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
133         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
134         * tests/test-dirname.c (main):
135         * tests/test-getpass.c (main):
136         * tests/test-iconvme.c (main):
137         * tests/test-parse-datetime.c (LOG):
138         * tests/test-xstrtoimax.sh:
139         * tests/test-xstrtol.sh:
140         * tests/test-xstrtoll.sh:
141         * tests/test-xstrtoumax.sh:
142         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
143         * top/GNUmakefile (abort-due-to-no-makefile):
144         Quote 'like this', not `like this', as per the recent change to
145         the GNU coding standards.
146
147 2012-01-05  Bruno Haible  <bruno@clisp.org>
148
149         strtoimax: Don't force a replacement on systems where intmax_t is int.
150         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
151         'intmax_t' is not larger than 'int'.
152         Reported by Pádraig Brady <P@draigBrady.com>.
153
154 2012-01-05  Bruno Haible  <bruno@clisp.org>
155
156         doc: Mention NetBSD bugs.
157         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
158         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
159
160 2012-01-05  Bruno Haible  <bruno@clisp.org>
161
162         strtoumax tests: Enhance tests.
163         * tests/test-strtoumax.c (main): Add tests for large values.
164
165 2012-01-05  Bruno Haible  <bruno@clisp.org>
166
167         strtoimax: Work around AIX 5.1 bug.
168         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
169         definition.
170         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
171         Set HAVE_STRTOIMAX.
172         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
173         REPLACE_STRTOIMAX.
174         * modules/inttypes-incomplete (Makefile.am): Substitute
175         REPLACE_STRTOIMAX.
176         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
177         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
178         (Depends-on): Update conditions.
179         * tests/test-strtoimax.c (main): Add tests for large values.
180         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
181
182 2012-01-05  Bruno Haible  <bruno@clisp.org>
183
184         inttypes: Modernize.
185         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
186         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
187         (Makefile.am): Update inttypes.h rule.
188
189 2012-01-05  Jim Meyering  <meyering@redhat.com>
190
191         init.sh: don't waste a subshell just to redirect stderr
192         * tests/init.sh: In testing for diff -u and diff -c, use a
193         stderr-redirecting exec inside `...` rather than a subshell.
194
195         test-init.sh: avoid failure on HP-UX 11.00
196         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
197         resolves to diff -c or cmp.  Reported by Bruno Haible.
198
199 2012-01-05  Bruno Haible  <bruno@clisp.org>
200
201         Tests for module 'strtoull'.
202         * modules/strtoull-tests: New file.
203         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
204
205 2012-01-05  Bruno Haible  <bruno@clisp.org>
206
207         Tests for module 'strtoll'.
208         * modules/strtoll-tests: New file.
209         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
210
211 2012-01-05  Bruno Haible  <bruno@clisp.org>
212
213         Tests for module 'strtoul'.
214         * modules/strtoul-tests: New file.
215         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
216
217 2012-01-05  Bruno Haible  <bruno@clisp.org>
218
219         Tests for module 'strtol'.
220         * modules/strtol-tests: New file.
221         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
222
223 2012-01-04  Jim Meyering  <meyering@redhat.com>
224
225         test-init.sh: accommodate Solaris 5.10's different diff -u output
226         * tests/test-init.sh: Also exempt @@ lines from the comparison
227         of diff output, since Solaris 5.10 and GNU diff formats differ.
228         Reported by Stefano Lattarini.
229
230 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
231
232         test-posixtm: don't assume signed integer wraparound
233         * tests/test-posixtm.c (main): Don't assume wraparound semantics
234         after signed integer overflow.  Inspired by (though it may not
235         fix) Bruno Haible's bug report in
236         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
237
238         Spell out "Windows 9x" and "Windows XP".
239         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
240         "Windows 9x" and "WinXP" with "Windows XP".
241
242 2012-01-04  Jim Meyering  <meyering@redhat.com>
243
244         test-vc-list-files-cvs.sh: remove obsolete comment
245         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
246         double exit.  Now that's all encapsulated via skip_ and Exit.
247
248 2012-01-04  Bruno Haible  <bruno@clisp.org>
249
250         Talk about "native Windows API", not "Win32".
251         * lib/classpath.c: Update comments to mention native Windows.
252         * lib/csharpexec.c: Likewise.
253         * lib/dup2.c: Likewise.
254         * lib/error.c: Likewise.
255         * lib/fcntl.c: Likewise.
256         * lib/filename.h: Likewise.
257         * lib/findprog.c: Likewise.
258         * lib/get-rusage-as.c: Likewise.
259         * lib/get-rusage-data.c: Likewise.
260         * lib/getpagesize.c: Likewise.
261         * lib/javaexec.c: Likewise.
262         * lib/msvc-inval.c: Likewise.
263         * lib/msvc-nothrow.c: Likewise.
264         * lib/nanosleep.c: Likewise.
265         * lib/nonblocking.c: Likewise.
266         * lib/printf-parse.c: Likewise.
267         * lib/setlocale.c: Likewise.
268         * lib/sigaction.c: Likewise.
269         * lib/strerror_r.c: Likewise.
270         * lib/tmpdir.c: Likewise.
271         * lib/vasnprintf.c: Likewise.
272         * lib/w32spawn.h: Likewise.
273         * lib/waitpid.c: Likewise.
274         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
275         * m4/locale-ar.m4: Likewise.
276         * m4/locale-fr.m4: Likewise.
277         * m4/locale-ja.m4: Likewise.
278         * m4/locale-tr.m4: Likewise.
279         * m4/locale-zh.m4: Likewise.
280         * m4/printf.m4: Likewise.
281         * tests/test-cloexec.c: Likewise.
282         * tests/test-copy-acl.sh: Likewise.
283         * tests/test-copy-file.sh: Likewise.
284         * tests/test-file-has-acl.sh: Likewise.
285         * tests/test-set-mode-acl.sh: Likewise.
286         * tests/test-dup-safer.c: Likewise.
287         * tests/test-dup2.c: Likewise.
288         * tests/test-dup3.c: Likewise.
289         * tests/test-fcntl.c: Likewise.
290         * tests/test-nonblocking-pipe.h: Likewise.
291         * tests/test-nonblocking-socket.h: Likewise.
292         * tests/test-pipe.c: Likewise.
293         * tests/test-pipe2.c: Likewise.
294         * tests/test-spawn-pipe-child.c: Likewise.
295         * doc/acl-resources.txt: Likewise.
296         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
297         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
298         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
299         * lib/localcharset.c: Update comments to mention native Windows.
300         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
301         * lib/localename.c: Likewise.
302         * lib/progreloc.c: Likewise.
303         * lib/relocatable.c: Likewise.
304         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
305         (windows_compute_revents): Renamed from win32_compute_revents.
306         (windows_compute_revents_socket): Renamed from
307         win32_compute_revents_socket.
308         * lib/select.c: Update comments to mention native Windows.
309         (windows_poll_handle): Renamed from win32_poll_handle.
310         * m4/threadlib.m4: Update comments to mention native Windows.
311         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
312         --enable-threads=windows instead of --enable-threads=win32. Set
313         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
314         * lib/glthread/lock.h: Update comments to mention native Windows.
315         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
316         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
317         USE_WIN32_THREADS.
318         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
319         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
320         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
321         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
322         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
323         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
324         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
325         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
326         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
327         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
328         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
329         * tests/test-tls.c: Likewise.
330         Rationale:
331         Microsoft renamed the "Win32 API" to "Windows API", as it is available
332         on both 32-bit and 64-bit Windows systems.
333         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
334         line of distinction is between "native Windows" on one side and Unix/
335         POSIX systems on the other side. More details in
336         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
337         Suggested by Paul Eggert.
338
339 2012-01-03  Bruno Haible  <bruno@clisp.org>
340
341         isatty: Support for MSVC 9.
342         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
343         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
344         (_isatty_nothrow): New function.
345         (isatty): Use it instead of _isatty.
346         (IsConsoleHandle): Add comment, from Paolo Bonzini.
347         * lib/poll.c (IsConsoleHandle): Likewise.
348         * lib/select.c (IsConsoleHandle): Likewise.
349         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
350         (gl_PREREQ_ISATTY): New macro.
351         * modules/isatty (Depends-on): Add msvc-inval.
352         (configure.ac): Invoke gl_PREREQ_ISATTY.
353
354 2012-01-03  Jim Meyering  <meyering@redhat.com>
355
356         maint.mk: remove temporary transition aid from over 1.5 years ago
357         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
358         purpose was to aid in the transition (avoiding silent malfunction)
359         from that old name to the new _sc_search_regexp.  This shim was
360         added by commit 219c504b.
361
362         init.sh: do not try to accommodate compare arguments starting with "-"
363         * tests/init.sh (compare_dev_null_): Do not try to accommodate
364         compare arguments that start with "-".  Besides, we do not worry
365         about this when invoking diff or cmp; why start now with sed?
366         Using "--" to separate options from argument would trigger sed
367         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
368         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
369
370 2012-01-02  Bruno Haible  <bruno@clisp.org>
371
372         Enhance tests for module 'isatty'.
373         * modules/isatty-tests (Depends-on): Add pipe-posix.
374         * tests/test-isatty.c: Include <fcntl.h>.
375         (DEV_NULL): New macro.
376         (main): Test the resut of isatty() also on regular files, pipes, and
377         /dev/null.
378
379         New module 'isatty'.
380         * lib/unistd.in.h (isatty): New declaration.
381         * lib/isatty.c: New file, based on an idea of
382         Bastien Roucariès <roucaries.bastien@gmail.com>.
383         * m4/isatty.m4: New file.
384         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
385         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
386         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
387         REPLACE_ISATTY.
388         * modules/isatty: New file.
389         * doc/posix-functions/isatty.texi: Mention the new module.
390         Suggested by Paolo Bonzini.
391
392 2012-01-02  Bruno Haible  <bruno@clisp.org>
393
394         canonicalize: Tweak 2011-12-29 commit.
395         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
396         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
397
398 2012-01-02  Jim Meyering  <meyering@redhat.com>
399
400         gitlog-to-changelog: describe input syntax in --help output
401         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
402
403         gitlog-to-changelog: fix typo in --help: show backslash before email @
404         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
405         in sources, but not in actual output.
406
407 2011-12-30  Jim Meyering  <meyering@redhat.com>
408
409         gitlog-to-changelog: don't malfunction when name contains %-directive
410         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
411         in a name string cause trouble.  E.g., with a user name of "%s",
412         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
413
414 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
415
416         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
417         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
418         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
419         the "  (tiny change)" notation that is appended to the standard
420         ChangeLog "date  name  email" header line.
421
422 2012-01-01  Jim Meyering  <meyering@redhat.com>
423
424         test-framework-sh: init.sh: fix "make dist" failure
425         When using gnulib-tool's --with-tests option and any module that
426         depends on test-framework-sh, "make dist" would fail due to the
427         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
428         in the gltests directory, and not in the gllib/ directory.
429         One way to work around that is to move the EXTRA_DIST += init.sh
430         from the primary module to the -tests one:
431         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
432         * modules/test-framework-sh (Makefile.am): ...not here.
433         Reported by Tom G. Christensen in
434         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
435
436         version-etc: update copyright year reported by --version
437         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
438
439 2011-12-31  Pádraig Brady  <P@draigBrady.com>
440
441         canonicalize: only stat() if required
442         * lib/canonicalize.c (canonicalize_filename_mode):
443         Avoid calling l?stat() when both CAN_MISSING,
444         and CAN_NOLINKS are set, as we neither need
445         to resolve symlinks or test component existence.
446
447 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
448
449         doc: cover st_ino issues once; add OpenVMS etc.
450         * doc/posix-functions/stat.texi (stat):
451         * doc/posix-functions/lstat.texi (lstat):
452         * doc/posix-functions/fstatat.texi (fstatat):
453         * doc/posix-functions/fstat.texi (fstat):
454         Move general 'struct stat' stuff to sys_stat.texi,
455         leaving behind a pointer.
456         * doc/posix-headers/sys_stat.texi (sys/stat.h):
457         Merge duplicate info about 'struct stat' problems into here.
458         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
459         and suggest partial workarounds.
460
461         same-inode: port to OpenVMS
462         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
463         three st_ino values.
464
465 2011-12-30  Pádraig Brady  <P@draigBrady.com>
466
467         canonicalize: fix references to stat() and lstat()
468         * lib/canonicalize.c (canonicalize_filename_mode):
469         Ensure references always resolve to a replacement
470         function if required (even via a macro).
471
472 2011-12-30  Jim Meyering  <meyering@redhat.com>
473
474         gitlog-to-changelog: remove a little duplication
475         * build-aux/gitlog-to-changelog (main): Grep @lines once,
476         rather than twice.
477
478 2011-12-29  Pádraig Brady  <P@draigBrady.com>
479
480         canonicalize: add support for not resolving symlinks
481         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
482         indicate we don't want to follow symlinks.  Also
483         provide CAN_MODE_MASK to aid setting these existing
484         mutually exclusive values.
485         * lib/canonicalize.c (canonicalize_filename_mode):
486         Extract the flags from can_mode parameter, which
487         are currently just used to select between stat()
488         and lstat().  Also ensure that mutually exclusive
489         values are flagged immediately as invalid.
490         * tests/test-canonicalize.c: Verify symlinks are
491         not followed, and that invalid flag combinations
492         are diagnosed.
493
494 2011-12-25  Jim Meyering  <meyering@redhat.com>
495
496         gitlog-to-changelog: do not clump multi-paragraph entries
497         Identical header lines (date,name,email+coauthors) are suppressed,
498         thus putting all entries with those same characteristics under
499         a single header.  However, when a log entry consists of two or
500         more paragraphs, it may not be clear where it starts and ends.
501         This change makes it so that such an entry is always separated
502         from others by a header line, even when that header would
503         otherwise be suppressed.
504         * build-aux/gitlog-to-changelog: Implement the above.
505         Inspired by a related request from Stefano Lattarini in
506         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
507
508 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
509
510         announce-gen: fix `cmd' typo in diagnostic
511         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
512         diagnostic: a missing '$' meant that the command was not output.
513
514 2011-12-23  Jim Meyering  <meyering@redhat.com>
515
516         test-framework-sh: distribute init.sh
517         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
518         Otherwise, "make -C gnulib-tests check" (at least in grep) would
519         fail due to the lack of init.sh.
520
521         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
522         * modules/atexit-tests: Rather than listing tests/init.sh,
523         now that there's a module for it, simply depend on that new module.
524         * modules/closein-tests: Likewise.
525         * modules/exclude-tests: Likewise.
526         * modules/getcwd-tests: Likewise.
527         * modules/perror-tests: Likewise.
528         * modules/pread-tests: Likewise.
529         * modules/pwrite-tests: Likewise.
530         * modules/vc-list-files-tests: Likewise.
531         * modules/verify-tests: Likewise.
532         * modules/xalloc-die-tests: Likewise.
533         * modules/xstrtoimax-tests: Likewise.
534         * modules/xstrtol-tests: Likewise.
535         * modules/xstrtoll-tests: Likewise.
536         * modules/xstrtoumax-tests: Likewise.
537         * modules/yesno-tests: Likewise.
538
539 2011-12-22  Jim Meyering  <meyering@redhat.com>
540
541         test-framework-sh: add minimal tests of init.sh's compare function
542         * modules/test-framework-sh-tests: New file.
543         * tests/test-init.sh: New file.
544
545         test-framework-sh: new module
546         * modules/test-framework-sh: New file.
547         * MODULES.html.sh (Support for maintaining and releasing projects):
548         List it.
549
550         init.sh: do not emit simulated diff output to stderr
551         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
552
553 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
554
555         .gitignore: ignore gnulib.dvi and regex.info
556         * doc/.gitignore:add gnulib.dvi and regex.info
557
558 2011-12-22  Jim Meyering  <meyering@redhat.com>
559
560         init.sh: correct previous change
561         * tests/init.sh (compare): My previous change was wrong.
562         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
563
564         init.sh: avoid unwarranted test failure when using "set -e"
565         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
566         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
567         a use like "compare exp out" would get evoke an unconditional failure.
568
569 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
570
571         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
572         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
573         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
574         autoreconf that did not.
575         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
576         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
577
578 2011-12-17  Jim Meyering  <meyering@redhat.com>
579
580         bootstrap: remove some now-unneeded code
581         This script arose back when gnulib-tool was young.
582         Since then, it has seen improvements that render much of this
583         script unnecessary.  In particular, it can now make symlinks
584         to the files it uses.  Also, I no longer see as much value in
585         marking files as read-only via comments.
586         If you relied on the symlink-creation feature of the preceding
587         version of this script, you can get most of that functionality
588         by adding the --symlink option to the definition of
589         gnulib_tool_option_extras in your bootstrap.conf file.
590         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
591         Run autopoint and libtoolize *before* gnulib-tool.
592         After it, run an abbreviated autoreconf, rather than a loop around
593         all tools.
594         (slirp, bt_mark_as_generated): Remove functions.
595
596 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
597
598         ftoastr: fix typo
599         * lib/ftoastr.h: Fix misspelling in comment.
600
601 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
602
603         * top/README-release: fix punctuation.
604
605 2011-12-17  Jim Meyering  <meyering@redhat.com>
606
607         bootstrap: correct the recent buildreq change
608         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
609         had no effect.
610         * build-aux/bootstrap (buildreq): Bracket each search term with
611         "*...*", so that the shell "case" statement works as intended.
612         Add comments.
613
614 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
615
616         build: let bootstrap resort to wget when downloading .po files
617         * build-aux/bootstrap (download_po_files): Fallback to wget when
618         downloading the .po files via rsync fails.  This is necessary to
619         bootstrap from behind a strict firewall.
620
621 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
622
623         stdint: don't assume C++11 when compiling with g++
624         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
626         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
627         work also in C++ before C++11, as that improperly inhibits
628         generating a substitute stdint.h for that case.
629
630 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
631
632         alloca: protect comment from gnulib-tool
633         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
634         that gnulib-tool doesn't think it's a license, and munge it to
635         say "GCC version 3".
636
637 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
638
639         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
640         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
641         $(abs_top_builddir) instead of $(top_builddir).
642
643 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
644
645         strftime-tests: also test nanoseconds
646         * tests/test-strftime.c (T): Add a test of %N.
647
648 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
649
650         inttypes, stdint: add C++11 support
651         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
652         when including inttypes.h and stdint.h.  Support this change to
653         the standard.
654         * doc/posix-headers/inttypes.texi (inttypes.h):
655         * doc/posix-headers/stdint.texi (stdint.h): Document this.
656         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
657         Define if not defined already, for the benefit of pre-C++11 hosts.
658         Define the standard format macros (e.g., PRId8) always.
659         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
660         Likewise, if __cpluspus.  Define the standard constant and limit
661         macros (e.g., INT8_C, INT8_MAX) always.
662         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
663         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
664         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
665         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
666         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
667         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
668         Likewise.
669
670 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
671
672         nonblocking tests: Fix test failure on Linux/PPC.
673         Suggested by Prerna Saxena in
674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
675         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
676         Set to 1100000.
677
678 2011-12-12  Jim Meyering  <meyering@redhat.com>
679
680         argmatch: don't hard-code `' when listing valid option arguments
681         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
682         use the quote function to add quotes.  Use fputs rather than
683         fprintf for the format string with no format directive.
684
685 2011-12-07  Eric Blake  <eblake@redhat.com>
686
687         bootstrap: detect tools required by gnulib-tool
688         * build-aux/bootstrap (buildreq): Provide minimum implicit
689         dependencies.
690         * DEPENDENCIES: Mention patch as a prereq.
691
692 2011-12-04  Bruno Haible  <bruno@clisp.org>
693
694         sethostname: Port to Windows platforms.
695         * lib/sethostname.c: Provide an alternate implementation for Windows
696         platforms.
697         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
698         (main): Skip the test if sethostname() fails with EPERM. On Windows
699         platforms, don't check the result of gethostname().
700
701 2011-12-04  Bruno Haible  <bruno@clisp.org>
702             Jim Meyering  <meyering@redhat.com>
703
704         tests: Avoid spurious error message on platforms without mktemp program.
705         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
706
707 2011-12-04  Bruno Haible  <bruno@clisp.org>
708
709         sethostname: Fix documentation.
710         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
711         "not fixed" section.
712
713 2011-12-03  Bruno Haible  <bruno@clisp.org>
714
715         gnulib-tool: Verify that the License field is present and non-empty.
716         * gnulib-tool (func_get_license_raw): New function, extracted from
717         func_get_license.
718         (func_get_license): Use it. Warn if the module is not a test module and
719         has no license.
720         Suggested by Jim Meyering.
721
722 2011-12-03  Bruno Haible  <bruno@clisp.org>
723
724         sethostname tests: Fix link error on mingw.
725         * tests/test-sethostname1.c: New file, extracted from
726         tests/test-sethostname.c.
727         * tests/test-sethostname2.c: New file, extracted from
728         tests/test-sethostname.c.
729         * tests/test-sethostname.c: Remove file.
730         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
731         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
732         (Depends-on): Add gethostname.
733         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
734         Link the latter with $(GETHOSTNAME_LIB).
735
736         sethostname tests: Fix compilation error on mingw.
737         * tests/test-sethostname.c: Don't include <sys/types.h>.
738         (geteuid): Use a dummy value without uid_t.
739         * modules/sethostname-tests (Depends-on): Remove sys_types.
740
741         sethostname tests: Avoid a gcc warning.
742         * tests/test-sethostname.c (main): Remove an unused variable.
743
744         Tweak last commit.
745         * modules/sethostname-tests (Files): Sort by decreasing importance.
746         (configure.ac): Check for geteuid.
747         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
748         the test when there's nothing to test. Drop an unnecessary cast.
749         Improve an error message. Verify that the final sethostname() call
750         succeeds.
751
752 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
753
754         Add a test suite for the sethostname module.
755         * modules/sethostname-tests: New file.  A test program
756         for the sethostname module.
757         * tests/test-sethostname.c: Likewise.
758
759 2011-12-03  Bruno Haible  <bruno@clisp.org>
760
761         Tweak last commit.
762         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
763         Fix preprocessor directives indentation. Fix typos.
764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
765         * modules/unistd (Makefile): Likewise.
766
767 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
768
769         Integrate the sethostname module into unistd.
770         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
771         into the unistd.h header.
772         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
773         preprocessor directives.
774         * modules/unistd: Setup the Makefile substitutions of the
775         SETHOSTNAME preprocessor directives.
776
777 2011-12-03  Bruno Haible  <bruno@clisp.org>
778
779         Tweak last commit.
780         * lib/sethostname.c: Don't include <string.h>.
781         (sethostname): No need to copy the argument string to the stack. Don't
782         call clearerr. Preserve errno when fprintf failed.
783         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
784         Don't invoke AC_REPLACE_FUNCS.
785         * modules/sethostname (Link): Remove empty section.
786         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
787         failure problem.
788
789 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
790
791         New module 'sethostname'.
792         * lib/sethostname.c (sethostname): New file.  Provide sethostname
793         for systems that lack it.
794         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
795         sethostname declaration and function.
796         * modules/sethostname: New file.  Define the sethostname module.
797
798 2011-12-03  Bruno Haible  <bruno@clisp.org>
799
800         Tweak last commit.
801         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
802
803 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
804
805         Split the HOST_NAME_MAX detection into a separate m4 macro.
806         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
807         macro so it can be used by the pending sethostname module.
808
809 2011-12-03  Bruno Haible  <bruno@clisp.org>
810
811         Fix module descriptions syntax.
812         * modules/argv-iter (License): Fix syntax.
813         * modules/di-set (License): Likewise.
814         * modules/ino-map (License): Likewise.
815         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
816
817 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
818
819         stdalign: port to Clang 3.0
820         Problem reported by Simon Josefsson in
821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
822         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
823         which has <stdalign.h> but which does not define alignof.
824         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
825
826 2011-12-01  Eric Blake  <eblake@redhat.com>
827
828         mktempd: silence dd usage
829         * build-aux/mktempd (rand_bytes): Silence dd.
830
831 2011-11-30  Simon Josefsson  <simon@josefsson.org>
832
833         manywarnings: Don't mention gcc version in docstring.
834         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
835         Jim Meyering <meyering@redhat.com>.
836
837 2011-11-30  Jim Meyering  <meyering@redhat.com>
838
839         hash: mark a few floating point constants with "f" suffix
840         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
841         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
842         floating point constants with "f", since they're destined to be
843         saved/used as "float"s.
844
845 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
846
847         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
848         * tests/test-float.c (test_long_double): Correct and re-enable the
849         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
850
851 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
852
853         Avoid subtracting two pointers that don't point into the same block.
854         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
855         only pointers into the same memory block are subtracted. We cannot
856         assume that sizeof (ptrdiff_t) == sizeof (void *).
857
858 2011-11-29  Eric Blake  <eblake@redhat.com>
859
860         maint.mk: add syntax check for use of compare from init.sh
861         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
862         moved here from coreutils.
863
864         manywarnings: drop -Wunsuffixed-float-constants
865         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
866         '1.0D', which is the only way to silence this warning for 'double'.
867
868 2011-11-29  Jim Meyering  <meyering@redhat.com>
869
870         hash: mark compute_bucket_size with the pure attribute
871         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
872
873         quotearg, propername: correct pragma guard expression
874         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
875         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
876
877 2011-11-28  Jim Meyering  <meyering@redhat.com>
878
879         propername: do not mark proper_name with the const attribute
880         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
881         since it examines data pointed to by its parameter.
882         * lib/propername.c (proper_name): Instead, add a pragma to suppress
883         the suggestion from -Wsuggest-attribute=const.
884
885         propername: mark one more function as const
886         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
887
888 2011-11-27  Jim Meyering  <meyering@redhat.com>
889
890         mark functions with const and pure attributes
891
892         Mark functions per suggestions from gcc-4.6 when using these options:
893         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
894         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
895         Follow these guidelines: when possible, apply the attribute to
896         an extern declaration, not to its definition.  Apply it to the
897         definition only when the definition is static.
898         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
899         * lib/argv-iter.h (argv_iter_n_args): Likewise.
900         * lib/base64.h (isbase64): Likewise.
901         * lib/basename-lgpl.c (last_component, base_len): Likewise.
902         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
903         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
904         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
905         (c_tolower, c_toupper): Likewise.
906         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
907         * lib/chdir-long.c (find_non_slash): Likewise.
908         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
909         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
910         * lib/file-type.h (file_type): Likewise.
911         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
912         * lib/filevercmp.c (verrevcmp): Likewise.
913         * lib/freadahead.h (freadahead): Likewise.
914         * lib/fts.c (fts_maxarglen): Likewise.
915         * lib/hash-pjw.h (hash_pjw): Likewise.
916         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
917         * lib/hash.c (is_prime, next_prime): Likewise.
918         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
919         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
920         (hash_table_ok, hash_get_first, hash_string): Likewise.
921         (compute_bucket_size): Likewise.
922         * lib/i-ring.h (i_ring_empty): Likewise.
923         * lib/isnan.c (isnanl): Likewise.
924         * lib/math.h (isnanl, rpl_isnanl): Likewise.
925         * lib/memcasecmp.h (memcasecmp): Likewise.
926         * lib/memchr2.h (memchr2): Likewise.
927         * lib/memcmp2.h (memcmp2): Likewise.
928         * lib/parse-datetime.y (lookup_zone): Likewise.
929         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
930         [!WINDOWS_SOCKETS]: Likewise.
931         * lib/strnlen1.h (strnlen1): Likewise.
932         * lib/uniwidth.in.h (uc_width): Likewise.
933         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
934         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
935         (quoting_options_from_style): Add a comment.
936         * lib/propername.h (proper_name): Add a comment.
937
938 2011-11-27  Bruno Haible  <bruno@clisp.org>
939
940         Remove unused macros from !_LIBC code in glibc-borrowed files.
941         * lib/fnmatch.c (STRCOLL): Remove macro.
942         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
943         * lib/glob.c (__stat, __readdir64): Remove macros.
944         * lib/tempname.c (__open64, __xstat64): Remove macros.
945         Suggested by Paul Eggert.
946
947 2011-11-27  Bruno Haible  <bruno@clisp.org>
948
949         getcwd: Fix link error on MSVC 9.
950         * modules/getcwd (Depends-on): Add readdir, rewinddir.
951
952 2011-11-27  Bruno Haible  <bruno@clisp.org>
953
954         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
955         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
956         HAVE_OPENDIR is 0.
957         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
958         HAVE_CLOSEDIR is 0.
959         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
960         is 0.
961         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
962
963 2011-11-27  Bruno Haible  <bruno@clisp.org>
964
965         getcwd: Fix bug from 2011-08-17.
966         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
967         platforms that need it.
968         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
969         code of 4 to be a failure, not a success. This ensures that
970         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
971
972 2011-11-27  Bruno Haible  <bruno@clisp.org>
973
974         binary-io tests: Avoid test failure on mingw when libtool is used.
975         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
976         Don't verify the size of t-bin-out1.tmp here.
977         * tests/test-binary-io.sh: Verify it here.
978         Reported by Simon Josefsson.
979
980 2011-11-26  Bruno Haible  <bruno@clisp.org>
981
982         Fix conflict between two instantiations of module 'unistd'.
983         * gnulib-tool (func_emit_autoconf_snippet): Substitute
984         ${include_guard_prefix} also in the autoconf snippet.
985         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
987         GNULIB_UNISTD_H_GETOPT.
988         * modules/getopt-posix (configure.ac): Set the
989         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
990         * modules/getopt-gnu (configure.ac): Likewise.
991         * modules/unistd (Makefile.am): Change the substitution value of
992         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
993         Reported by Simon Josefsson.
994
995 2011-11-25  Bruno Haible  <bruno@clisp.org>
996
997         pagealign_alloc: Doc and comments.
998         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
999         module.
1000         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1001
1002 2011-11-25  Jim Meyering  <meyering@redhat.com>
1003
1004         test-update-copyright.sh: avoid false-positive failure
1005         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1006         around false positive failure on Cygwin/Windows.  The latter was
1007         matching erroneously-created files with names like
1008         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1009
1010 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1011
1012         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1013         * m4/valgrind-tests.m4: Check that the parameters that will be
1014         used works, not just a subset of them.  Reported by Bruno Haible
1015         <bruno@clisp.org>.
1016
1017 2011-11-24  Jim Meyering  <meyering@redhat.com>
1018
1019         test-stdalign.c: comment out long double tests
1020         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1021         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1022         error: '_Alignas' specifiers cannot reduce alignment of \
1023         'static_longdouble_alignas'.
1024
1025 2011-11-22  Jim Meyering  <meyering@redhat.com>
1026
1027         init.sh: make "compare /dev/null FILE" output more readable
1028         * tests/init.sh (compare_): Document the preferred order of arguments.
1029         (emit_diff_u_header_): New function.
1030         (compare_dev_null_): Emit a simulated diff, rather than just the
1031         contents of the unexpected file.  Suggestion from Bruno Haible.
1032
1033 2011-11-21  Jim Meyering  <meyering@redhat.com>
1034             Eric Blake  <eblake@redhat.com>
1035
1036         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1037         * tests/init.sh: Make our compare function slightly more portable.
1038         Reported by Bruno Haible in
1039         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1040
1041 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1042
1043         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1044         before using it, in code that ends up in config.h.
1045
1046 2011-11-20  Bruno Haible  <bruno@clisp.org>
1047
1048         getcwd: Work around getcwd bug on AIX 5..7.
1049         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1050         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1051         Use a different value for gl_cv_func_getcwd_path_max. Move the
1052         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1053         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1054         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1055         Define HAVE_MINIMALLY_WORKING_GETCWD.
1056         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1057         where it is not even minimally working, that is, on AIX.
1058         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1059         m4/getcwd-path-max.m4.
1060         (main): Update exit code computation.
1061         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1062         getcwd does not handle long file names.
1063
1064 2011-11-20  Bruno Haible  <bruno@clisp.org>
1065
1066         getcwd: Fix bug from 2009-09-10.
1067         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1068         like "no".
1069
1070 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1071
1072         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1073
1074 2011-11-20  Bruno Haible  <bruno@clisp.org>
1075
1076         fma tests: Avoid shadowing local variables.
1077         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1078         expected.
1079
1080 2011-11-20  Bruno Haible  <bruno@clisp.org>
1081
1082         copysignf tests: Fix.
1083         * tests/test-copysignf.c: Fix signature check.
1084
1085 2011-11-20  Bruno Haible  <bruno@clisp.org>
1086
1087         fma: Remove unused code.
1088         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1089         unused macros.
1090
1091 2011-11-20  Bruno Haible  <bruno@clisp.org>
1092
1093         sethostname: Fix doc about AIX.
1094         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1095         sethostname; it has it.
1096
1097         sethostname: Mention more portability problems.
1098         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1099         problem.
1100         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1101
1102 2011-11-19  Bruno Haible  <bruno@clisp.org>
1103
1104         Depend on module fcntl-h when AT_FDCWD is used.
1105         * modules/utimens (Depends-on): Add fcntl-h.
1106         * modules/areadlinkat (Depends-on): Likewise.
1107         * modules/areadlinkat-with-size (Depends-on): Likewise.
1108         * modules/faccessat (Depends-on): Likewise.
1109         * modules/fchmodat (Depends-on): Likewise.
1110         * modules/fchownat (Depends-on): Likewise.
1111         * modules/getcwd (Depends-on): Likewise.
1112         * modules/mkdirat (Depends-on): Likewise.
1113         * modules/mkfifoat (Depends-on): Likewise.
1114         * modules/readlinkat (Depends-on): Likewise.
1115         * modules/symlinkat (Depends-on): Likewise.
1116         * modules/dup2-tests (Depends-on): Likewise.
1117         * modules/fdutimensat-tests (Depends-on): Likewise.
1118         * modules/futimens-tests (Depends-on): Likewise.
1119
1120 2011-11-19  Bruno Haible  <bruno@clisp.org>
1121
1122         euidaccess: Update a comment.
1123         * lib/euidaccess.c: Update comment about platforms with faccessat.
1124
1125 2011-11-19  Bruno Haible  <bruno@clisp.org>
1126
1127         openat: Fix file list.
1128         * modules/openat (Files): Remove lib/at-func.c.
1129
1130 2011-11-19  Bruno Haible  <bruno@clisp.org>
1131
1132         fstatat: Simplify.
1133         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1134         gnulib should define rpl_fstatat, there is a
1135         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1136
1137 2011-11-19  Bruno Haible  <bruno@clisp.org>
1138
1139         Ensure 'inline' can be used in tests/test-utimens-common.h.
1140         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1141         * modules/futimens-tests (configure.ac): Likewise.
1142         * modules/utimens-tests (configure.ac): Likewise.
1143         * modules/utimensat-tests (configure.ac): Likewise.
1144
1145 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1146
1147         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1148         not hash_insert0.
1149         (hash_insert_if_absent): Doc fix.
1150
1151 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1152
1153         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1154
1155 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1156
1157         test-getcwd: disambiguate exit status
1158         * tests/test-getcwd.c (test_long_name): Return 0..7.
1159         (main): Exit with an unambiguous exit status.  The old
1160         code yielded a mysterious mixture of two failure codes.
1161
1162         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1163         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1164         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1165         rpl_fstatat or fstatat.  This should fix the other problem
1166         reported by Kai Habel in
1167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1168         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1170         and I reproduced it on a Solaris 8 host we still have in production.
1171
1172 2011-11-18  Jim Meyering  <meyering@redhat.com>
1173
1174         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1175         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1176         Add a sentence to the comment.
1177         (hash_insert0): New function that simply calls hash_insert_if_absent.
1178         * lib/hash.h (hash_insert_if_absent): Declare it.
1179         (hash_insert0): Add deprecation attribute.
1180         (_GL_ATTRIBUTE_DEPRECATED): Define.
1181         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1182         not hash_insert0.
1183         * NEWS: Mention it, even though it's not really an incompatible change.
1184
1185 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1186
1187         openat: avoid compilation failure due to lack of <errno.h> inclusion
1188         * lib/openat.c: Include <errno.h>.
1189
1190 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1191
1192         * modules/getcwd (Depends-on): Add fdopendir.
1193         This fixes one of the two problems reported by Kai Habel in
1194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1195
1196         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1197         stdalign problem reported by Ian Beckwith in
1198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1199         * modules/crypto/gc-arcfour (Depends-on):
1200         Depend conditionally on crypto/arcfour.
1201         * modules/crypto/gc-arctwo (Depends-on):
1202         Depend conditionally on crypto/arctwo.
1203         * modules/crypto/gc-des (Depends-on):
1204         Depend conditionally on crypto/des.
1205         * modules/crypto/gc-hmac-md5 (Depends-on):
1206         Depend conditionally on crypto/hmac-md5.
1207         * modules/crypto/gc-hmac-sha1 (Depends-on):
1208         Depend conditionally on crypto/hmac-sha1.
1209         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1210         * modules/crypto/gc-md4 (Depends-on):
1211         Depend conditionally on crypto/md4.
1212         * modules/crypto/gc-md5 (Depends-on):
1213         Depend conditionally on crypto/md5.
1214         * modules/crypto/gc-rijndael (Depends-on):
1215         Depend conditionally on crypto/rijndael.
1216         * modules/crypto/gc-sha1 (Depends-on):
1217         Depend conditionally on crypto/sha1.
1218         * modules/crypto/gc-arcfour:
1219         * modules/crypto/gc-arctwo:
1220         * modules/crypto/gc-des:
1221         * modules/crypto/gc-hmac-md5:
1222         * modules/crypto/gc-hmac-sha1:
1223         * modules/crypto/gc-md2:
1224         * modules/crypto/gc-md4:
1225         * modules/crypto/gc-md5:
1226         * modules/crypto/gc-rijndael:
1227         * modules/crypto/gc-sha1:
1228         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1229         now that the conditional dependencies do the work for us.
1230
1231 2011-11-17  Jim Meyering  <meyering@redhat.com>
1232
1233         tests: factor st_ctime-comparison out of two headers
1234         * tests/test-utimens-common.h (ctime_compare): Define.
1235         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1236         * tests/test-lutimens.h (test_lutimens): Likewise.
1237         * tests/test-utimens.h (test_utimens): Likewise.
1238
1239         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1240         Invoke the test program via an init.sh-using wrapper.
1241         * tests/test-getcwd.sh: New file.
1242         * modules/getcwd-tests (Files): Add it.
1243         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1244
1245 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1246
1247         gitlog-to-changelog: support multi-author commits.
1248         The FSF cares about keeping track of all authors of patches to its
1249         projects, but Git doesn't provide obvious support for multi-author
1250         changesets. Consensus seems to be forming around the use of extra
1251         Signed-off-by inspired lines in the log message formatted as
1252         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1253         multi-author commits between version control systems.
1254         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1255         log message and output in standard ChangeLog multi-author format.
1256         Reported by Peter Rosin <peda@lysator.liu.se>
1257
1258 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1259             Bruno Haible  <bruno@clisp.org>
1260
1261         Fix some modules' file list.
1262         * modules/fstatat (Files): Add m4/lstat.m4.
1263         * modules/openat (Files): Likewise.
1264         * modules/unlinkat (Files): Likewise.
1265
1266 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1267
1268         maint.mk: fix tight-scope.mk generation in VPATH builds.
1269         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1270         reference with $(srcdir) so that the file is found correctly even
1271         when running `make syntax-check' in a VPATH build.
1272
1273 2011-11-13  Bruno Haible  <bruno@clisp.org>
1274             Jim Meyering  <meyering@redhat.com>
1275
1276         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1277         * tests/init.sh (compare): Remove "No differences encountered" or
1278         synonymous output from the 'diff' program.
1279
1280 2011-11-13  Bruno Haible  <bruno@clisp.org>
1281
1282         Makefile: Tweak indentation.
1283         * Makefile: Use tab as first character in every line that contains rule
1284         commands.
1285
1286 2011-11-13  Bruno Haible  <bruno@clisp.org>
1287
1288         Syntax check for copyright statements.
1289         * check-copyright: New file.
1290         * Makefile (sc_check_copyright): New rule.
1291
1292 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1293
1294         * build-aux/git-version-gen: Add --prefix to configure the tag
1295         match string.
1296
1297 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1298
1299         * build-aux/git-version-gen: Add --help and --version.
1300
1301 2011-11-12  Jim Meyering  <meyering@redhat.com>
1302
1303         revamp the other test-exclude?.sh scripts to use init.sh, too
1304         * tests/test-exclude1.sh: Use init.sh.
1305         * tests/test-exclude2.sh: Likewise.
1306         * tests/test-exclude3.sh: Likewise.
1307         * tests/test-exclude4.sh: Likewise.
1308         * tests/test-exclude5.sh: Likewise.
1309         * tests/test-exclude6.sh: Likewise.
1310         * tests/test-exclude7.sh: Likewise.
1311         * tests/test-exclude8.sh: Likewise.
1312         * modules/exclude-tests (Files): List init.sh.
1313
1314         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1315         These shell scripts ignored failure of the binary test-exclude,
1316         so making the latter return 77 didn't cause them to be skipped.
1317         * tests/test-exclude5.sh: Exit with test-exclude's error status
1318         when that program fails.  Revamp to use init.sh.
1319         * tests/test-exclude2.sh: Likewise.
1320
1321         test-exclude: fix a typo
1322         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1323
1324 2011-11-11  Bruno Haible  <bruno@clisp.org>
1325
1326         obstack: Fix compilation error on MSVC 9.
1327         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1328
1329 2011-11-11  Jim Meyering  <meyering@redhat.com>
1330
1331         test-exclude: skip tests rather than failing on deficient systems
1332         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1333         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1334         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1335         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1336
1337 2011-11-10  Bruno Haible  <bruno@clisp.org>
1338
1339         ptsname_r test: Avoid gcc warning on glibc systems.
1340         * tests/test-ptsname_r.c (null_ptr): New function.
1341         (test_errors): Use it.
1342
1343 2011-11-10  Bruno Haible  <bruno@clisp.org>
1344
1345         ptsname_r: Avoid compilation error on OSF/1 5.1.
1346         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1348         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1349         function is not declared or incompatibly declared.
1350         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1351         * modules/ptsname_r (Depends-on, configure.ac): Update.
1352         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1353
1354 2011-11-10  Bruno Haible  <bruno@clisp.org>
1355
1356         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1357         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1358         When cross-compiling, guess yes on all platforms except AIX.
1359         Reported by Ludovic Courtès <ludo@gnu.org>.
1360
1361 2011-11-09  Bruno Haible  <bruno@clisp.org>
1362
1363         ptsname_r tests: Fix bugs.
1364         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1365         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1366
1367 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1368
1369         fstatat: work with cross-compilation
1370         Problem reported by Ludovic Courtès in
1371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1372         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1373         "cross-compiling" and assume the bug is present.  Replace
1374         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1375         an inverted sense, to be more conservative about our assumptions.
1376         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1377
1378 2011-11-09  Bruno Haible  <bruno@clisp.org>
1379
1380         Improve MODULES.html output.
1381         * modules/mkfifoat (Description): Use the word "function".
1382         * modules/readlinkat (Description): Likewise.
1383         * modules/symlinkat (Description): Likewise.
1384
1385 2011-11-09  Eric Blake  <eblake@redhat.com>
1386
1387         ptsname_r-tests: new test module
1388         * modules/ptsname_r-tests: New module.
1389         * tests/test-ptsname_r.c: New file.
1390
1391         ptsname_r: new module
1392         * modules/ptsname_r: New module.
1393         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1394         * lib/ptsname.c (__ptsname_r): Split...
1395         * lib/ptsname_r.c: ...into new file.
1396         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1397         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1398         * modules/stdlib (Makefile.am): Substitute witnesses.
1399         * lib/stdlib.in.h (ptsname_r): Declare it.
1400         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1401         * MODULES.html.sh (Misc): Likewise.
1402         * modules/ptsname (Depends-on): Alter dependency.
1403         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1404
1405 2011-11-09  Jim Meyering  <meyering@redhat.com>
1406
1407         announce-gen: be more concise when there's only one URL+tarball
1408         * build-aux/announce-gen (get_tool_versions): When you distribute
1409         only one type of tarball, combine the first two "Here are..."
1410         sections and make the key-checking grammar independent of
1411         how many tarballs there are.
1412
1413 2011-11-09  Eric Blake  <eblake@redhat.com>
1414
1415         openpty: provide a stub on mingw
1416         * lib/pty.in.h (includes): Provide forward declarations.
1417         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1418
1419         raise: fix mingw handling of SIGPIPE
1420         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1421
1422 2011-11-08  Bruno Haible  <bruno@clisp.org>
1423
1424         More conditional dependencies.
1425         * modules/faccessat (Depends-on): Add conditions.
1426         * modules/fchmodat (Depends-on): Likewise.
1427         * modules/fchownat (Depends-on): Likewise.
1428         * modules/fstatat (Depends-on): Likewise.
1429         * modules/mkfifoat (Depends-on): Likewise.
1430         * modules/readlinkat (Depends-on): Likewise.
1431         * modules/symlinkat (Depends-on): Likewise.
1432         * modules/unlinkat (Depends-on): Likewise.
1433         * modules/utimensat (Depends-on): Likewise.
1434         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1435         * modules/linkat (Depends-on): Refine the conditions.
1436         * modules/renameat (Depends-on): Likewise.
1437
1438 2011-11-08  Bruno Haible  <bruno@clisp.org>
1439
1440         faccessat: Move AC_LIBOBJ invocation to module description.
1441         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1442         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1443         invocation from here...
1444         * modules/faccessat (configure.ac): ... to here. Invoke
1445         gl_PREREQ_FACCESSAT.
1446
1447 2011-11-08  Bruno Haible  <bruno@clisp.org>
1448
1449         faccessat: Simplify autoconf macro.
1450         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1451         gl_FUNC_EUIDACCESS.
1452
1453 2011-11-08  Bruno Haible  <bruno@clisp.org>
1454
1455         renameat: Fix dependencies.
1456         * modules/renameat (Depends-on): Add stdbool.
1457
1458 2011-11-08  Bruno Haible  <bruno@clisp.org>
1459
1460         mkfifoat: Fix module description.
1461         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1462         not gl_UNISTD_MODULE_INDICATOR.
1463
1464 2011-11-08  Bruno Haible  <bruno@clisp.org>
1465
1466         fstatat: Remove unused dependency.
1467         * modules/fstatat (Depends-on): Remove fstat.
1468
1469 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1470
1471         GNUmakefile: behave when Makefile is missing.
1472         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1473
1474 2011-11-08  Bruno Haible  <bruno@clisp.org>
1475
1476         openat: Conditionalize dependencies.
1477         * lib/openat.c: Reduce the scope of some #includes.
1478         * modules/openat (Depends-on): Add conditions.
1479
1480 2011-11-07  Jim Meyering  <meyering@redhat.com>
1481
1482         maint.mk: extract GPG key ID without using a temporary file
1483         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1484         without using a temporary file.  Based on a suggestion from Werner Koch
1485         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1486
1487 2011-11-07  Eric Blake  <eblake@redhat.com>
1488
1489         grantpt: fix typo
1490         * lib/stdlib.in.h (grantpt): Check correct function.
1491
1492         maint.mk: silence new syntax check
1493         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1494
1495 2011-11-06  Bruno Haible  <bruno@clisp.org>
1496
1497         Doc about floating-point and math API.
1498         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1499         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1500
1501 2011-11-06  Bruno Haible  <bruno@clisp.org>
1502
1503         stdalign tests: Skip the test when compiled by Sun C.
1504         * tests/test-stdalign.c (main): Skip the test on Sun C.
1505
1506 2011-11-06  Bruno Haible  <bruno@clisp.org>
1507
1508         ansi-c++-opt: Complete the 2011-06-05 change.
1509         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1510         does not support namespaces, set the variable to "no", not to ":".
1511
1512 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1513
1514         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1515
1516 2011-11-06  Bruno Haible  <bruno@clisp.org>
1517
1518         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1519         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1520         (minus_zerol) [HP-UX]: New macro.
1521         (unary_minus) [HP-UX]: New function.
1522         (copysignl) [HP-UX]: Use unary_minus function.
1523
1524 2011-11-06  Bruno Haible  <bruno@clisp.org>
1525
1526         ldexp, ldexpf, ldexpl: Enhance tests.
1527         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1528         and tests/test-ldexpl.c.
1529         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1530         LDEXP, MIN_EXP, MAX_EXP): New macros.
1531         Include test-ldexp.h.
1532         (main): Just call test_function.
1533         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1534         infinity.h, nan.h.
1535         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1536         MAX_EXP): New macros.
1537         Include test-ldexp.h.
1538         (x, y): Remove variables.
1539         (main): Just call test_function.
1540         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1541         infinity.h, nan.h.
1542         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1543         MAX_EXP): New macros.
1544         Include test-ldexp.h.
1545         (x, y): Remove variables.
1546         (main): Just call test_function.
1547         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1548         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1549         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1550         (Depends-on): Add isnand-nolibm, signbit, float.
1551         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1552         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1553         (Depends-on): Add isnanf-nolibm, signbit, float.
1554
1555 2011-11-06  Bruno Haible  <bruno@clisp.org>
1556
1557         math tests: Cosmetics.
1558         * tests/test-math-c++.cc: Reorder declarations.
1559
1560 2011-11-05  Bruno Haible  <bruno@clisp.org>
1561
1562         fma*: Simplify test.
1563         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1564         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1565
1566         Tests for module 'fmal'.
1567         * modules/fmal-tests: New file.
1568         * tests/test-fmal1.c: New file.
1569         * tests/test-fmal2.c: New file.
1570
1571         New module 'fmal'.
1572         * lib/math.in.h (fmal): New declaration.
1573         * lib/fmal.c: New file.
1574         * m4/fmal.m4: New file.
1575         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1577         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1578         REPLACE_FMAL.
1579         * modules/fmal: New file.
1580         * doc/posix-functions/fmal.texi: Mention the new module and the various
1581         bugs.
1582
1583         Tests for module 'fmaf'.
1584         * modules/fmaf-tests: New file.
1585         * tests/test-fmaf1.c: New file.
1586         * tests/test-fmaf2.c: New file.
1587
1588         New module 'fmaf'.
1589         * lib/math.in.h (fmaf): New declaration.
1590         * lib/fmaf.c: New file.
1591         * m4/fmaf.m4: New file.
1592         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1594         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1595         REPLACE_FMAF.
1596         * modules/fmaf: New file.
1597         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1598         bugs.
1599
1600         Tests for module 'fma'.
1601         * modules/fma-tests: New file.
1602         * tests/test-fma1.c: New file.
1603         * tests/test-fma1.h: New file.
1604         * tests/test-fma2.c: New file.
1605         * tests/test-fma2.h: New file.
1606
1607         New module 'fma'.
1608         * lib/math.in.h (fma): New declaration.
1609         * lib/fma.c: New file.
1610         * m4/fma.m4: New file.
1611         * m4/fegetround.m4: New file.
1612         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1613         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1614         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1615         REPLACE_FMA.
1616         * modules/fma: New file.
1617         * doc/posix-functions/fma.texi: Mention the new module and the various
1618         bugs.
1619
1620         Extend gl_MATHFUNC.
1621         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1622         Support 'void' as argument type.
1623         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1624
1625 2011-11-05  Jim Meyering  <meyering@redhat.com>
1626
1627         maint.mk: also prohibit inclusion of dirent.h without use
1628         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1629
1630 2011-11-05  Bruno Haible  <bruno@clisp.org>
1631
1632         ldexpl tests: Avoid test failure on MSVC 9.
1633         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1634         value. Needed in order to enforce the conversion from a value greater
1635         than LDBL_MAX to Infinity.
1636
1637 2011-11-05  Bruno Haible  <bruno@clisp.org>
1638
1639         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1640         * modules/at-internal: New file, extracted from modules/openat.
1641         * modules/openat-h: New file.
1642         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1643         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1644         * modules/openat (Description): Add reference to POSIX function.
1645         (Files): Remove lib/openat.h, lib/openat-proc.c.
1646         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1647         intprops, unistd.
1648         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1649         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1650         gl_FCNTL_MODULE_INDICATOR.
1651         (Include): Remove unistd.h, openat.h.
1652         * modules/areadlinkat (Files): Add lib/at-func.c.
1653         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1654         openat-die, openat-h, save-cwd.
1655         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1656         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1657         openat-die, openat-h, save-cwd, unistd.
1658         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1659         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1660         openat-h, save-cwd. Remove fcntl-h, openat.
1661         * modules/fchmodat (Files): Remove lib/openat.h.
1662         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1663         openat, stdbool, unistd.
1664         * modules/fchownat (Files): Remove lib/openat.h.
1665         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1666         openat, stdbool, sys_stat.
1667         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1668         lib/openat-proc.c.
1669         (Depends-on): Add at-internal.
1670         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1671         * modules/fstatat (Files): Remove lib/openat.h.
1672         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1673         stdbool, unistd.
1674         * modules/fts (Depends-on): Add openat-h.
1675         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1676         openat.
1677         * modules/mkdirat (Files): Remove lib/openat.h.
1678         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1679         openat, stdbool, sys_stat.
1680         * modules/mkfifoat (Files): Add lib/at-func.c.
1681         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1682         openat-h, save-cwd. Remove fcntl-h, openat.
1683         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1684         * modules/readlinkat (Files): Add lib/at-func.c.
1685         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1686         openat-h, save-cwd. Remove fcntl-h, openat.
1687         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1688         openat.
1689         * modules/selinux-at (Files): Add lib/at-func.c.
1690         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1691         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1692         * modules/symlinkat (Files): Add lib/at-func.c.
1693         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1694         openat-h, save-cwd. Remove fcntl-h, openat.
1695         * modules/unlinkat (Files): Remove lib/openat.h.
1696         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1697         stdbool.
1698         * modules/utimensat (Files): Add lib/at-func.c.
1699         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1700         openat-die, openat-h, save-cwd.
1701         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1702         * modules/fdutimensat-tests (Depends-on): Add openat.
1703         * modules/fstatat-tests (Depends-on): Add openat-h.
1704         * modules/readlinkat-tests (Depends-on): Add openat.
1705         * modules/symlinkat-tests (Depends-on): Add openat.
1706
1707 2011-11-05  Bruno Haible  <bruno@clisp.org>
1708
1709         openat: Include <stdbool.h>.
1710         * lib/openat.c: Include <stdbool.h>.
1711
1712 2011-11-04  Bruno Haible  <bruno@clisp.org>
1713
1714         fchownat, renameat, unlinkat: Fix dependencies.
1715         * modules/fchownat (Depends-on): Add fstatat.
1716         * modules/renameat (Depends-on): Likewise.
1717         * modules/unlinkat (Depends-on): Likewise.
1718
1719 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1720
1721         openat: remove direct dependency on dirent
1722         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1723         and hasn't been needed ever since fdopendir was split into its own
1724         module on 2009-08-31.
1725         * modules/openat (Depends-on): Remove dirent.
1726
1727 2011-11-04  Bruno Haible  <bruno@clisp.org>
1728
1729         renameat: Optimize code size.
1730         * modules/renameat (configure.ac): Don't compile at-func2.c if
1731         REPLACE_RENAMEAT is 1.
1732
1733 2011-11-04  Bruno Haible  <bruno@clisp.org>
1734
1735         openat tests: Fix file list.
1736         * modules/openat-tests (Files): Add tests/test-open.h.
1737
1738 2011-11-04  Bruno Haible  <bruno@clisp.org>
1739
1740         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1741         * modules/fchmodat (Depends-on): Add openat-die.
1742         * modules/fchownat (Depends-on): Likewise.
1743         * modules/linkat (Depends-on): Likewise.
1744         * modules/renameat (Depends-on): Likewise.
1745         * modules/openat (Depends-on): Add dirent.
1746
1747 2011-11-04  Jim Meyering  <meyering@redhat.com>
1748
1749         at-func*.c: fix comments
1750         * lib/at-func2.c: Correct/improve first-line comment.
1751         * lib/at-func.c: Correct grammar in first-line comment.
1752
1753 2011-11-04  Bruno Haible  <bruno@clisp.org>
1754
1755         New module 'mkdirat', split off from module 'openat'.
1756         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1757         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1758         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1759         * modules/mkdirat: New file, extracted from modules/openat.
1760         * modules/openat (Files): Remove lib/mkdirat.c.
1761         (Depends-on): Remove mkdir.
1762         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1763         (Include): Remove <sys/stat.h>.
1764         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1765         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1766         tests/test-mkdir.h.
1767         (Depends-on): Remove ignore-value.
1768         (Makefile.am): Remove rules for test-mkdirat.
1769         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1770         of module 'openat'.
1771         * NEWS: Mention the change.
1772
1773 2011-11-04  Bruno Haible  <bruno@clisp.org>
1774
1775         closedir: Avoid warning on mingw.
1776         * lib/closedir.c: Include <unistd.h>.
1777
1778 2011-11-04  Bruno Haible  <bruno@clisp.org>
1779
1780         New module 'fstatat', split off from module 'openat'.
1781         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1782         defined.
1783         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1784         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1785         gl_FUNC_FSTATAT.
1786         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1787         * modules/fstatat: New file, extracted from modules/openat.
1788         * modules/openat (Files): Remove lib/fstatat.c.
1789         (Depends-on): Remove lstat.
1790         (configure.ac): Remove AC_LIBOBJ of fstatat.
1791         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1792         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1793         tests/test-lstat.h, tests/test-stat.h.
1794         (Depends-on): Remove getcwd-lgpl.
1795         (Makefile.am): Remove rules for test-fstatat.
1796         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1797         of module 'openat'.
1798         * NEWS: Mention the change.
1799         * modules/getcwd (Depends-on): Add fstatat.
1800         * modules/linkat (Depends-on): Likewise.
1801         * modules/mkfifoat-tests (Depends-on): Likewise.
1802         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1803
1804 2011-11-03  Bruno Haible  <bruno@clisp.org>
1805
1806         New module 'unlinkat', split off from module 'openat'.
1807         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1808         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1809         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1810         * modules/unlinkat: New file, extracted from modules/openat. Correct
1811         the dependency conditions.
1812         * modules/openat (Files): Remove lib/unlinkat.c.
1813         (Depends-on): Remove rmdir, unlink.
1814         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1815         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1816         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1817         tests/test-rmdir.h, tests/test-unlink.h.
1818         (Depends-on): Remove unlinkdir.
1819         (Makefile.am): Remove rules for test-unlinkat.
1820         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1821         of module 'openat'.
1822         * NEWS: Mention the change.
1823         * modules/linkat-tests (Depends-on): Add unlinkat.
1824         * modules/mkfifoat-tests (Depends-on): Likewise.
1825         * modules/readlinkat-tests (Depends-on): Likewise.
1826
1827 2011-11-02  Bruno Haible  <bruno@clisp.org>
1828
1829         New module 'fchmodat', split off from module 'openat'.
1830         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1831         defined.
1832         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1833         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1834         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1835         * modules/fchmodat: New file, extracted from modules/openat.
1836         * modules/openat (Files): Remove lib/fchmodat.c.
1837         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1838         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1839         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1840         (Makefile.am): Remove rules for test-fchmodat.
1841         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1842         of module 'openat'.
1843         * NEWS: Mention the change.
1844
1845 2011-11-02  Jim Meyering  <meyering@redhat.com>
1846
1847         putenv: indent #definition of "environ" to placate cppi
1848         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1849
1850         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1851         Git logs are often treated as immutable, because editing them
1852         changes the SHA1 checksums of all descendants.  Thus, errors in
1853         git logs tend to stay there forever.  However, when we generate
1854         a ChangeLog file -- typically for distribution -- from that git log,
1855         we can actually make corrections in the generated file.  The key
1856         lies in recording in machine-readable/applicable form the desired
1857         corrections.  See --help for description and an example.
1858         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1859         (usage): Describe it; alphabetize option descriptions.
1860         (main): Honor the new option, carefully.
1861
1862 2011-11-01  Jim Meyering  <meyering@redhat.com>
1863
1864         gitlog-to-changelog: avoid an infloop
1865         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1866         that ends up being empty.
1867
1868 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1869
1870         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1871         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1872         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1873         contains (possibly-quoted) backslashes.  This should avoid
1874         all-too-common shell bugs if COMPLICATED contains backslashes in
1875         the "wrong" places.  Reported by David Evans in
1876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1877         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1878         because we want ASCII ranges.  Is there some reason we don't use
1879         the C locale everywhere in this script?
1880         (func_module, top level): Avoid unwanted pathname expansion when
1881         $repo_url_prefix or $repo_url_suffix_repl contain shell
1882         metacharacters like '?' and '*'.
1883
1884 2011-11-01  Bruno Haible  <bruno@clisp.org>
1885
1886         fchownat: Improve description.
1887         * modules/fchownat (Description): Add link to function.
1888
1889 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1890
1891         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1892         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1894         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1895
1896 2011-11-01  Bruno Haible  <bruno@clisp.org>
1897
1898         alignof: Avoid collision with stdalign module.
1899         * lib/alignof.h (alignof): Remove macro.
1900         * NEWS: Mention the change.
1901         Reported by Paul Eggert.
1902
1903 2011-11-01  Bruno Haible  <bruno@clisp.org>
1904
1905         New module 'fchownat', split off from module 'openat'.
1906         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1907         defined.
1908         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1909         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1910         invoke gl_FUNC_FCHOWNAT.
1911         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1912         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1913         * modules/fchownat: New file, extracted from modules/openat.
1914         * modules/openat (Files): Remove lib/fchownat.c.
1915         (Depends-on): Remove lchown.
1916         (configure.ac): Remove AC_LIBOBJ of fchownat.
1917         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1918         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1919         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1920         (Depends-on): Remove mgetgroups, usleep, stat-time.
1921         (configure.ac): Remove test for getegid.
1922         (Makefile.am): Remove rules for test-fchownat.
1923         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1924         of module 'openat'.
1925         * NEWS: Mention the change.
1926
1927 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1928
1929         stdalign: port better to MSVC and to Sun C 5.11
1930         This fixes some of the problems reported by Bruno Haible in
1931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1932         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1933         shortcomings of MSVC and of Sun C 5.11.
1934         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1935         around __declspec arg.
1936         * modules/stdalign-tests (Files): Add tests/macros.h.
1937         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1938         Include macros.h, for ASSERT.
1939         (DECLARE_ALIGNED): Remove.
1940         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1941         to catch bug), and to 1 if not (simplifies the rest of the code).
1942         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1943         (CHECK_AUTO): Remove.
1944         (CHECK_ALIGNED): Check only the alignment of the static vars,
1945         since auto var alignment isn't supported by Sun C 5.11.
1946         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1947         ASSERT failures are easier to diagnose.
1948
1949 2011-10-31  Bruno Haible  <bruno@clisp.org>
1950
1951         doc about some IRIX 5.3 problems.
1952         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1953         on IRIX 5.3.
1954         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1955         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1956         5.3.
1957         * doc/posix-functions/grantpt.texi: Likewise.
1958         * doc/posix-functions/unlockpt.texi: Likewise.
1959         * doc/posix-functions/lgamma.texi: Likewise.
1960         * doc/posix-functions/nextafter.texi: Likewise.
1961         * doc/posix-functions/remainder.texi: Likewise.
1962         * doc/posix-functions/select.texi: Mention misplaced declaration on
1963         IRIX 5.3.
1964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1965
1966 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1967
1968         gitlog-to-changelog: fix git-log invocation.
1969         git-log mishandles date strings before 1970-01-01 UTC, and there is
1970         no use to specify --since=1970-01-01 by default anyway.
1971         * build-aux/gitlog-to-changelog: By default, when no --since option
1972         was given, do not specify explicit --since option to git-log.
1973
1974 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1975
1976         gitlog-to-changelog: new option --append-dot.
1977         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1978         first non-blank line of each commit message terminated with a dot.
1979
1980 2011-10-30  Bruno Haible  <bruno@clisp.org>
1981
1982         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1983         * lib/ffsl.h: Include <config.h>.
1984         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1985
1986 2011-10-30  Jim Meyering  <meyering@redhat.com>
1987
1988         GNUmakefile: reenable "make syntax-check" for most projects
1989         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1990         build-aux variable", "syntax-check" would do nothing but succeed with
1991         the "No version control files detected..." diagnostic (unless you
1992         happened to override _build-aux via cfg.mk).
1993         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1994         to precede inclusion of maint.mk.  Otherwise, these variables would
1995         be used undefined in any project that does not override the default.
1996
1997 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1998
1999         gitlog-to-changelog: treat a message with only blank lines as empty.
2000         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2001         trailing blank lines before the code that issues a warning about an
2002         empty commit message.
2003
2004 2011-10-30  Jim Meyering  <meyering@redhat.com>
2005
2006         test-parse-datetime.c: avoid new DST-related false positive test failure
2007         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2008         based on the time/date we'll convert, not the current time.
2009         Otherwise, the moment we cross a DST boundary like today's in
2010         Europe, (CEST to CET), that offset ends up being one hour off.
2011
2012 2011-10-27  Bruno Haible  <bruno@clisp.org>
2013
2014         fstat: Tweak documentation.
2015         * modules/fstat (Description): More precise description.
2016
2017 2011-10-27  Bruno Haible  <bruno@clisp.org>
2018
2019         Update documentation regarding 'largefile' module.
2020         * doc/posix-functions/fstat.texi: Tweak wording.
2021         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2022         problems with huge directories and/or small ino_t types.
2023         * doc/posix-functions/readdir.texi: Likewise.
2024         * doc/posix-functions/rewinddir.texi: Likewise.
2025
2026 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2027
2028         maint.mk: don't maintain a second build-aux variable.
2029         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2030         depends on GNUmakefile, which already maintains a cfg.mk
2031         overridable $(_build-aux) for projects with a non-standard
2032         build-aux directory location, although without the $(srcdir)
2033         prefix.  Use that variable consistently instead of introducing a
2034         second one.  Adjust all call sites.
2035
2036 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2037
2038         Add stdalign module and use it in other modules.
2039         This is based on a previous proposal by Bruno Haible
2040         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2041
2042         stdalign: new module
2043         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2044         * modules/stdalign: New files.
2045         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2046         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2047
2048         stdalign-tests: new module
2049         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2050
2051         argp: use stdalign
2052         * lib/argp-parse.c: Include <stdalign.h>.
2053         (alignof): Remove.
2054         * modules/argp (Depends-on): Add stdalign.
2055
2056         crypto libraries: use stdalign
2057         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2058         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2059         Do not include <stdlib.h> twice, in md4.c.
2060         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2061         because we are accessing a pointer's bit-pattern, not a size.
2062         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2063         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2064         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2065         * modules/crypto/sha512: Likewise.
2066
2067         sys_socket: use stdalign, not alignof
2068         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2069         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2070
2071 2011-10-27  Bruno Haible  <bruno@clisp.org>
2072
2073         raise test: Avoid a test failure on Linux/MIPS.
2074         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2075         because 99 is a valid signal on Linux/MIPS.
2076
2077 2011-10-27  Bruno Haible  <bruno@clisp.org>
2078
2079         nonblocking tests: Fix test failure on Linux/MIPS.
2080         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2081         Set to 270000.
2082
2083 2011-10-27  Bruno Haible  <bruno@clisp.org>
2084
2085         utimensat: Work around problem on Linux/hppa.
2086         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2087         values.
2088         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2089
2090 2011-10-25  Jim Meyering  <meyering@redhat.com>
2091
2092         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2093         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2094         after symbols like NULL, size_t, etc.
2095         Reported by Alfred M. Szmidt.
2096
2097         maint.mk: exempt ENODATA from a syntax-check rule
2098         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2099         from the sc_prohibit_always-defined_macros syntax-check rule.
2100         Add a comment.  See this for more details:
2101         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2102
2103 2011-10-23  Jim Meyering  <meyering@redhat.com>
2104
2105         fts: close parent dir FD before returning from post-traversal fts_read
2106         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2107         unlink A, even though an FD open on A remained.  This is suboptimal
2108         (holding a file descriptor open longer than needed), but otherwise not
2109         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2110         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2111         that represents a real problem: it causes the removal of A to fail
2112         with e.g., "rm: cannot remove `A': Device or resource busy"
2113
2114         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2115         directory file descriptors.  After completing the final, FTS_DP,
2116         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2117         cache, but then proceeded to add a new FD to it via the subsequent
2118         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2119         final file descriptor would be closed only via fts_close's call to
2120         fd_ring_clear.  Now, it is usually closed earlier, via the final
2121         FTS_DP-returning fts_read call.
2122         * lib/fts.c (restore_initial_cwd): New function, converted from
2123         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2124         Update callers.
2125         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2126         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2127
2128 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2129             Bruno Haible  <bruno@clisp.org>
2130             Jim Meyering  <jim@meyering.net>
2131
2132         readme-release: improve safety of release prep instructions.
2133         * README-release: Don't git pull all branches when only master
2134         is needed for the release process.
2135         Run make maintainer-clean before changing trees and merging.
2136         Don't try to run ./configure right after git pull in case files
2137         that influence the bootstrap process have changed, move the
2138         ./configure step to after running ./bootstrap.
2139         Don't bootstrap "one last time"... it's the first time!
2140
2141 2011-10-22  Bruno Haible  <bruno@clisp.org>
2142
2143         errno, strerror-override: Support for MSVC 10.
2144         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2145         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2146         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2147         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2148         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2149         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2150         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2151         Assign values compatible with MSVC 10.
2152         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2153         New macros.
2154         (GNULIB_defined_EWINSOCK): New macro.
2155         * lib/strerror-override.c (strerror_override): Update accordingly.
2156         * lib/strerror-override.h: Likewise.
2157         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2158         longer equal to the corresponding errno value.
2159         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2160
2161 2011-10-22  Bruno Haible  <bruno@clisp.org>
2162
2163         perror: Recognize when test program crashes.
2164         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2165         strerror, set gl_cv_func_perror_works to no.
2166         Reported by Daniel Richard G. <skunk@iskunk.org>.
2167
2168         perror: Fix indentation.
2169         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2170
2171 2011-10-22  Bruno Haible  <bruno@clisp.org>
2172
2173         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2174         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2175         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2176         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2177         functions, not as a macro.
2178         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2179         macros.
2180         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2181         absence of macro.
2182         Suggested by Eric Blake.
2183         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2184
2185 2011-10-21  Bruno Haible  <bruno@clisp.org>
2186
2187         relocatable-prog-wrapper: Don't leave object files behind.
2188         * build-aux/install-reloc: Re-synchronize list of .o files to be
2189         removed with list of compilation units.
2190
2191 2011-10-20  Bruno Haible  <bruno@clisp.org>
2192
2193         openpty, posix_openpt: Remove code duplication.
2194         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2195         * lib/openpty.c: Include <stdlib.h>.
2196         (openpty): Use posix_openpt on all platforms except IRIX.
2197         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2198
2199 2011-10-20  Bruno Haible  <bruno@clisp.org>
2200
2201         unlockpt: Detect invalid argument.
2202         * lib/unlockpt.c: Include <fcntl.h>.
2203         (unlockpt): Check whether fd is valid, using fcntl().
2204         * modules/unlockpt (Depends-on): Add fcntl-h.
2205
2206 2011-10-20  Bruno Haible  <bruno@clisp.org>
2207
2208         openpty: Avoid compilation error on AIX 6.1.
2209         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2210
2211 2011-10-20  Bruno Haible  <bruno@clisp.org>
2212
2213         posix_openpt: Support for OpenBSD.
2214         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2215         (posix_openpt) [OpenBSD]: New code.
2216         * lib/grantpt.c: Include <fcntl.h>.
2217         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2218         * modules/grantpt (Depends-on): Add fcntl-h.
2219
2220 2011-10-20  Bruno Haible  <bruno@clisp.org>
2221
2222         posix_openpt test: Coding style.
2223         * tests/test-posix_openpt.c: Use GNU coding style.
2224
2225 2011-10-20  Bruno Haible  <bruno@clisp.org>
2226
2227         grantpt: Support --avoid=pt_chown.
2228         * modules/grantpt (Files): Add lib/pty-private.h.
2229
2230 2011-10-20  Bruno Haible  <bruno@clisp.org>
2231
2232         posix_openpt: Fix autoconf macro.
2233         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2234         unneeded check for _getpty.
2235
2236 2011-10-20  Bruno Haible  <bruno@clisp.org>
2237
2238         openpty: Update comments.
2239         * lib/openpty.c: Add comments about Minix.
2240
2241 2011-10-19  Eric Blake  <eblake@redhat.com>
2242
2243         openpty: relax license
2244         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2245
2246         pt_chown: use configmake to simplify build
2247         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2248
2249         ptsname and others: relax license
2250         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2251         * modules/unlockpt (License): Likewise.
2252         * modules/pt_chown (License): Likewise.
2253         * modules/ptsname (License): Likewise.
2254         * modules/ttyname_r (License): Likewise.
2255
2256 2011-10-19  Jim Meyering  <meyering@redhat.com>
2257
2258         posix_openpt: remove spurious #endif
2259         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2260
2261 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2262
2263         maint.mk: Respect $(build_aux) in web-manual rule.
2264         * top/maint.mk (web-manual): Find gen-announce script in user's
2265         $(build_aux) directory instead of hard-coding 'build-aux'.
2266
2267 2011-10-19  Bruno Haible  <bruno@clisp.org>
2268
2269         posix_openpt: Fix compilation error.
2270         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2271         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2272         Mention the openpty module as an alternative.
2273
2274 2011-10-19  Bruno Haible  <bruno@clisp.org>
2275
2276         Support for old NeXTstep 3.3 frexp().
2277         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2278         execution time of the test to 5 seconds.
2279         Reported by Daniel Richard G. <skunk@iskunk.org>.
2280
2281 2011-10-19  Bruno Haible  <bruno@clisp.org>
2282
2283         Support for old NeXTstep 3.3 sed.
2284         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2285         part, use /.../, not \|...|. Escape periods in the header file name.
2286         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2287         Reported by Daniel Richard G. <skunk@iskunk.org>.
2288
2289 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2290
2291         Support for old NeXTstep 3.3 gcc.
2292         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2293         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2294         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2295         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2296         * lib/regex.h (_Restrict_arr_): Likewise.
2297         * lib/regex_internal.h (re_token_t): Likewise.
2298         * lib/regexec.c (check_node_accept_bytes): Likewise.
2299         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2300
2301 2011-10-18  Eric Blake  <eblake@redhat.com>
2302
2303         posix_openpt: new module
2304         * modules/posix_openpt: New module.
2305         * m4/posix_openpt.m4: New file.
2306         * lib/posix_openpt.c: Likewise.
2307         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2308         (gl_STDLIB_H_DEFAULTS): Set defaults.
2309         * modules/stdlib (Makefile.am): Substitute macros.
2310         * lib/stdlib.in.h (posix_openpt): Declare.
2311         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2312         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2313         * modules/posix_openpt-tests: New test module.
2314         * tests/test-posix_openpt.c: New test.
2315
2316 2011-10-15  Bruno Haible  <bruno@clisp.org>
2317
2318         xstrtoll: Fix compilation failure.
2319         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2320         from lib/strtol.c.
2321         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2322         some platforms.
2323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2324
2325 2011-10-15  Bruno Haible  <bruno@clisp.org>
2326
2327         vasnprintf: Optimize bit search operation.
2328         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2330         gl_DOUBLE_EXPONENT_LOCATION.
2331         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2332         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2333         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2334         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2335         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2336         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2337         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2338         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2339         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2340
2341 2011-10-15  Bruno Haible  <bruno@clisp.org>
2342
2343         vasnprintf: Fix comments.
2344         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2345
2346 2011-10-14  Bruno Haible  <bruno@clisp.org>
2347
2348         Tests for module 'integer_length_ll'.
2349         * modules/integer_length_ll-tests: New file.
2350         * tests/test-integer_length_ll.c: New file.
2351
2352         New module 'integer_length_ll'.
2353         * lib/integer_length_ll.c: New file.
2354         * modules/integer_length_ll: New file.
2355
2356 2011-10-14  Bruno Haible  <bruno@clisp.org>
2357
2358         Tests for module 'integer_length_l'.
2359         * modules/integer_length_l-tests: New file.
2360         * tests/test-integer_length_l.c: New file.
2361
2362         New module 'integer_length_l'.
2363         * lib/integer_length_l.c: New file.
2364         * modules/integer_length_l: New file.
2365
2366 2011-10-14  Bruno Haible  <bruno@clisp.org>
2367
2368         Tests for module 'integer_length'.
2369         * modules/integer_length-tests: New file.
2370         * tests/test-integer_length.c: New file.
2371
2372         New module 'integer_length'.
2373         * lib/integer_length.h: New file.
2374         * lib/integer_length.c: New file.
2375         * modules/integer_length: New file.
2376
2377 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2378
2379         popen: Fix dependency conditions.
2380         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2381
2382 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2383
2384         perror: Fix autoconf test.
2385         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2386         <stdlib.h> and <string.h>.
2387
2388 2011-10-14  Bruno Haible  <bruno@clisp.org>
2389
2390         ffsl: Optimize on 64-bit platforms.
2391         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2392         unrolling.
2393
2394 2011-10-13  Bruno Haible  <bruno@clisp.org>
2395
2396         ffsl: Optimize on 32-bit platforms.
2397         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2398         use ffs() without a loop.
2399
2400         ffsl, ffsll: Optimize for GCC.
2401         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2402         * lib/ffsl.c (GCC_BUILTIN): New macro.
2403         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2404
2405 2011-10-13  Bruno Haible  <bruno@clisp.org>
2406
2407         ffs, bcopy, memset: Support symbol renaming via config.h.
2408         * lib/ffs.c: Include <config.h>.
2409         * lib/bcopy.c: Likewise.
2410         * lib/memset.c: Likewise.
2411
2412 2011-10-10  Bruno Haible  <bruno@clisp.org>
2413
2414         atanl: Simplify for platforms where 'long double' == 'double'.
2415         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2416         alternative implementation.
2417         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2418         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2419         * modules/atanl (Depends-on): Add atan. Update conditions.
2420
2421 2011-10-10  Bruno Haible  <bruno@clisp.org>
2422
2423         acosl: Simplify for platforms where 'long double' == 'double'.
2424         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2425         alternative implementation.
2426         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2427         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2428         * modules/acosl (Depends-on): Add acos. Update conditions.
2429
2430 2011-10-10  Bruno Haible  <bruno@clisp.org>
2431
2432         asinl: Simplify for platforms where 'long double' == 'double'.
2433         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2434         alternative implementation.
2435         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2436         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2437         * modules/asinl (Depends-on): Add asin. Update conditions.
2438
2439 2011-10-10  Bruno Haible  <bruno@clisp.org>
2440
2441         tanl: Simplify for platforms where 'long double' == 'double'.
2442         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2443         implementation.
2444         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2445         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2446         * modules/tanl (Depends-on): Add tan. Update conditions.
2447         (configure.ac): Don't compile trigl.c if
2448         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2449
2450 2011-10-10  Bruno Haible  <bruno@clisp.org>
2451
2452         cosl: Simplify for platforms where 'long double' == 'double'.
2453         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2454         implementation.
2455         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2456         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2457         * modules/cosl (Depends-on): Add cos. Update conditions.
2458         (configure.ac): Don't compile sincosl.c and trigl.c if
2459         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2460
2461 2011-10-10  Bruno Haible  <bruno@clisp.org>
2462
2463         sinl: Simplify for platforms where 'long double' == 'double'.
2464         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2465         implementation.
2466         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2467         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2468         * modules/sinl (Depends-on): Add sin. Update conditions.
2469         (configure.ac): Don't compile sincosl.c and trigl.c if
2470         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2471
2472 2011-10-10  Bruno Haible  <bruno@clisp.org>
2473
2474         logl: Simplify for platforms where 'long double' == 'double'.
2475         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2476         implementation.
2477         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2478         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2479         * modules/logl (Depends-on): Add log. Update conditions.
2480
2481 2011-10-10  Bruno Haible  <bruno@clisp.org>
2482
2483         expl: Simplify for platforms where 'long double' == 'double'.
2484         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2485         implementation.
2486         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2487         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2488         * modules/expl (Depends-on): Add exp. Update conditions.
2489
2490 2011-10-10  Bruno Haible  <bruno@clisp.org>
2491
2492         sqrtl: Simplify for platforms where 'long double' == 'double'.
2493         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2494         alternative implementation.
2495         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2496         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2497         * modules/sqrtl (Depends-on): Update conditions.
2498
2499 2011-10-10  Bruno Haible  <bruno@clisp.org>
2500
2501         ldexpl: Simplify for platforms where 'long double' == 'double'.
2502         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2503         alternative implementation.
2504         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2505         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2506         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2507
2508 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2509
2510         ffsll: set correct witness
2511         * modules/ffsll (configure.ac): Fix typo.
2512
2513 2011-10-10  Bruno Haible  <bruno@clisp.org>
2514
2515         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2516         * lib/printf-frexpl.c: Include <config.h>.
2517         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2518         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2519         second time.
2520         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2521         gl_LONG_DOUBLE_VS_DOUBLE.
2522         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2523         conditions.
2524
2525 2011-10-10  Bruno Haible  <bruno@clisp.org>
2526
2527         frexpl: Simplify for platforms where 'long double' == 'double'.
2528         * lib/frexpl.c: Include <config.h>.
2529         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2530         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2531         time.
2532         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2533         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2534         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2535         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2536         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2537         conditions.
2538
2539 2011-10-10  Jim Meyering  <meyering@redhat.com>
2540
2541         test-renameat: don't leave behind a temporary file
2542         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2543           ERROR: files left in build directory after distclean:
2544           ./gltests/test-renameat.too
2545           make[1]: *** [distcleancheck] Error 1
2546         Reported by Tom G. Christensen.
2547
2548 2011-10-09  Bruno Haible  <bruno@clisp.org>
2549
2550         rint: Determine RINT_LIBM correctly on AIX 7.
2551         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2552         directly, not only through a function pointer. Also accept an optional
2553         4th argument with extra code.
2554         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2555         rintf() call by gcc when optimizing.
2556
2557         mathfunc.m4: Refactor.
2558         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2559         m4 variable.
2560
2561 2011-10-09  Bruno Haible  <bruno@clisp.org>
2562
2563         rintl: Simplify for platforms where 'long double' == 'double'.
2564         * lib/rintl.c: Include <config.h>.
2565         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2566         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2567         time.
2568         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2569         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2570         * modules/rintl (Depends-on): Add rint. Update conditions.
2571
2572 2011-10-09  Bruno Haible  <bruno@clisp.org>
2573
2574         roundl: Simplify for platforms where 'long double' == 'double'.
2575         * lib/roundl.c: Include <config.h>.
2576         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2577         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2578         time.
2579         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2580         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2581         * modules/roundl (Depends-on): Add round. Update conditions.
2582
2583 2011-10-09  Bruno Haible  <bruno@clisp.org>
2584
2585         truncl: Simplify for platforms where 'long double' == 'double'.
2586         * lib/truncl.c: Include <config.h>.
2587         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2588         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2589         time.
2590         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2591         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2592         * modules/truncl (Depends-on): Add trunc. Update conditions.
2593
2594 2011-10-09  Bruno Haible  <bruno@clisp.org>
2595
2596         ceill: Simplify for platforms where 'long double' == 'double'.
2597         * lib/ceill.c: Include <config.h>.
2598         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2599         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2600         time.
2601         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2602         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2603         * modules/ceill (Depends-on): Add ceil. Update conditions.
2604
2605 2011-10-09  Bruno Haible  <bruno@clisp.org>
2606
2607         floorl: Simplify for platforms where 'long double' == 'double'.
2608         * lib/floorl.c: Include <config.h>.
2609         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2610         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2611         time.
2612         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2613         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2614         * modules/floorl (Depends-on): Add floor. Update conditions.
2615
2616 2011-10-09  Bruno Haible  <bruno@clisp.org>
2617
2618         rint: Fix ordering constraints.
2619         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2620         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2621         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2622
2623 2011-10-09  Bruno Haible  <bruno@clisp.org>
2624
2625         copysignl: Simplify for platforms where 'long double' == 'double'.
2626         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2627         alternative.
2628         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2629         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2630         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2631
2632 2011-10-09  Bruno Haible  <bruno@clisp.org>
2633
2634         Tests for module 'rintl'.
2635         * modules/rintl-tests: New file.
2636         * tests/test-rintl.c: New file.
2637
2638         New module 'rintl'.
2639         * lib/math.in.h (rintl): New declaration.
2640         * lib/rintl.c: New file.
2641         * m4/rintl.m4: New file.
2642         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2644         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2645         * modules/rintl: New file.
2646         * tests/test-math-c++.cc: Check the declaration of rintl.
2647         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2648         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2649         * doc/posix-functions/rintl.texi: Mention the new module.
2650
2651 2011-10-09  Bruno Haible  <bruno@clisp.org>
2652
2653         Tests for module 'rintf'.
2654         * modules/rintf-tests: New file.
2655         * tests/test-rintf.c: New file.
2656
2657         New module 'rintf'.
2658         * lib/math.in.h (rintf): New declaration.
2659         * lib/rintf.c: New file.
2660         * m4/rintf.m4: New file.
2661         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2663         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2664         * modules/rintf: New file.
2665         * tests/test-math-c++.cc: Check the declaration of rintf.
2666         * doc/posix-functions/rintf.texi: Mention the new module.
2667
2668 2011-10-09  Bruno Haible  <bruno@clisp.org>
2669
2670         rint: Support for MSVC.
2671         * lib/math.in.h (rint): New declaration.
2672         * lib/rint.c: New file.
2673         * m4/rint.m4: New file.
2674         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2675         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2676         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2677         * modules/rint (Description): Fix.
2678         (Files): Add lib/rint.c, m4/rint.m4.
2679         (Depends-on): Add math.
2680         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2681         gl_MATH_MODULE_INDICATOR.
2682         * tests/test-math-c++.cc: Check the declaration of rint.
2683         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2684         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2685         * doc/posix-functions/rint.texi: Mention the replacement provided by
2686         the module.
2687
2688         rint tests: More tests.
2689         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2690         minus-zero.h, infinity.h, nan.h.
2691         (main): Skip the test if the current rounding mode is not standard. Add
2692         tests for negative numbers, minus zero, infinity, NaN.
2693         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2694         tests/nan.h.
2695         (Depends-on): Add isnand-nolibm.
2696
2697 2011-10-09  Bruno Haible  <bruno@clisp.org>
2698
2699         Tests for module 'copysignl'.
2700         * modules/copysignl-tests: New file.
2701         * tests/test-copysignl.c: New file.
2702
2703         New module 'copysignl'.
2704         * lib/math.in.h (copysignl): New declaration.
2705         * lib/copysignl.c: New file.
2706         * m4/copysignl.m4: New file.
2707         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2709         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2710         HAVE_COPYSIGNL.
2711         * modules/copysignl: New file.
2712         * tests/test-math-c++.cc: Check the declaration of copysignl.
2713         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2714         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2715         * doc/posix-functions/copysignl.texi: Mention the new module.
2716
2717 2011-10-09  Bruno Haible  <bruno@clisp.org>
2718
2719         Tests for module 'copysignf'.
2720         * modules/copysignf-tests: New file.
2721         * tests/test-copysignf.c: New file.
2722
2723         New module 'copysignf'.
2724         * lib/math.in.h (copysignf): New declaration.
2725         * lib/copysignf.c: New file.
2726         * m4/copysignf.m4: New file.
2727         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2729         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2730         HAVE_COPYSIGNF.
2731         * modules/copysignf: New file.
2732         * tests/test-math-c++.cc: Check the declaration of copysignf.
2733         * doc/posix-functions/copysignf.texi: Mention the new module.
2734
2735 2011-10-09  Bruno Haible  <bruno@clisp.org>
2736
2737         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2738         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2739         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2740         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2741         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2742         gl_SIGNAL_H_DEFAULTS.
2743
2744 2011-10-09  Bruno Haible  <bruno@clisp.org>
2745
2746         poll: Make macro safer.
2747         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2748         ac_cv_header_poll_h is not set.
2749
2750 2011-10-09  Bruno Haible  <bruno@clisp.org>
2751
2752         copysign: Provide replacement.
2753         * lib/math.in.h (copysign): New declaration.
2754         * lib/copysign.c: New file.
2755         * m4/copysign.m4: New file.
2756         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2758         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2759         HAVE_COPYSIGN.
2760         * modules/copysign (Description): Clarify.
2761         (Files): Add lib/copysign.c, m4/copysign.m4.
2762         (Depends-on): Add math, signbit.
2763         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2764         gl_MATH_MODULE_INDICATOR.
2765         * tests/test-math-c++.cc: Check the declaration of copysign.
2766         * doc/posix-functions/copysign.texi: Mention the effects of the module
2767         on Minix and MSVC.
2768
2769 2011-10-09  Bruno Haible  <bruno@clisp.org>
2770
2771         isinf: Ensure macro on AIX 5.1.
2772         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2773         macro.
2774         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2775
2776 2011-10-09  Bruno Haible  <bruno@clisp.org>
2777
2778         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2779         * modules/snprintf-posix-tests (configure.ac): Require
2780         gl_LONG_DOUBLE_VS_DOUBLE.
2781         * modules/sprintf-posix-tests (configure.ac): Likewise.
2782         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2783         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2784         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2785         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2786         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2787         tests on platforms where 'long double' is the same as 'double'.
2788         * tests/test-sprintf-posix.h (test_function): Likewise.
2789         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2790         * tests/test-vasprintf-posix.c (test_function): Likewise.
2791
2792         *printf: Fix for platforms where 'long double' == 'double'.
2793         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2794         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2795         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2796         * modules/fprintf-posix (Files): Likewise.
2797         * modules/obstack-printf-posix (Files): Likewise.
2798         * modules/snprintf-posix (Files): Likewise.
2799         * modules/sprintf-posix (Files): Likewise.
2800         * modules/vasnprintf (Files): Likewise.
2801         * modules/vasnprintf-posix (Files): Likewise.
2802         * modules/vasprintf-posix (Files): Likewise.
2803         * modules/vdprintf-posix (Files): Likewise.
2804         * modules/vfprintf-posix (Files): Likewise.
2805         * modules/vsnprintf-posix (Files): Likewise.
2806         * modules/vsprintf-posix (Files): Likewise.
2807         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2808         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2809         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2810         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2811         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2812         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2813         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2814
2815         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2816         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2817         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2818         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2819         'long double'.
2820         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2821
2822         isinf: Fix for platforms where 'long double' == 'double'.
2823         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2824         Don't blindly assume 80-bit 'long double'.
2825
2826         isfinite: Fix for platforms where 'long double' == 'double'.
2827         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2828         Don't blindly assume 80-bit 'long double'.
2829
2830         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2831         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2832         * modules/isfinite-tests (configure.ac): Require
2833         gl_LONG_DOUBLE_VS_DOUBLE.
2834         * modules/isinf-tests (configure.ac): Likewise.
2835         * modules/isnan-tests (configure.ac): Likewise.
2836         * modules/isnanl-tests (configure.ac): Likewise.
2837         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2838         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2839         tests on platforms where 'long double' is the same as 'double'.
2840         * tests/test-isinf.c (test_isinfl): Likewise.
2841         * tests/test-isnan.c (test_long_double): Likewise.
2842         * tests/test-isnanl.h (main): Likewise.
2843
2844 2011-10-08  Bruno Haible  <bruno@clisp.org>
2845
2846         Tests for module 'tanhf'.
2847         * modules/tanhf-tests: New file.
2848         * tests/test-tanhf.c: New file.
2849
2850         New module 'tanhf'.
2851         * lib/math.in.h (tanhf): New declaration.
2852         * lib/tanhf.c: New file.
2853         * m4/tanhf.m4: New file.
2854         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2856         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2857         * modules/tanhf: New file.
2858         * tests/test-math-c++.cc: Check the declaration of tanhf.
2859         * doc/posix-functions/tanhf.texi: Mention the new module.
2860
2861         tanh: Use a .m4 file.
2862         * m4/tanh.m4: New file.
2863         * modules/tanh (Files): Add it.
2864         (configure.ac): Just invoke gl_FUNC_TANH.
2865
2866 2011-10-08  Bruno Haible  <bruno@clisp.org>
2867
2868         Tests for module 'coshf'.
2869         * modules/coshf-tests: New file.
2870         * tests/test-coshf.c: New file.
2871
2872         New module 'coshf'.
2873         * lib/math.in.h (coshf): New declaration.
2874         * lib/coshf.c: New file.
2875         * m4/coshf.m4: New file.
2876         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2878         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2879         * modules/coshf: New file.
2880         * tests/test-math-c++.cc: Check the declaration of coshf.
2881         * doc/posix-functions/coshf.texi: Mention the new module.
2882
2883         cosh: Use a .m4 file.
2884         * m4/cosh.m4: New file.
2885         * modules/cosh (Files): Add it.
2886         (configure.ac): Just invoke gl_FUNC_COSH.
2887
2888 2011-10-08  Bruno Haible  <bruno@clisp.org>
2889
2890         Tests for module 'sinhf'.
2891         * modules/sinhf-tests: New file.
2892         * tests/test-sinhf.c: New file.
2893
2894         New module 'sinhf'.
2895         * lib/math.in.h (sinhf): New declaration.
2896         * lib/sinhf.c: New file.
2897         * m4/sinhf.m4: New file.
2898         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2900         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2901         * modules/sinhf: New file.
2902         * tests/test-math-c++.cc: Check the declaration of sinhf.
2903         * doc/posix-functions/sinhf.texi: Mention the new module.
2904
2905         sinh: Use a .m4 file.
2906         * m4/sinh.m4: New file.
2907         * modules/sinh (Files): Add it.
2908         (configure.ac): Just invoke gl_FUNC_SINH.
2909
2910 2011-10-08  Bruno Haible  <bruno@clisp.org>
2911
2912         Tests for module 'atan2f'.
2913         * modules/atan2f-tests: New file.
2914         * tests/test-atan2f.c: New file.
2915
2916         New module 'atan2f'.
2917         * lib/math.in.h (atan2f): New declaration.
2918         * lib/atan2f.c: New file.
2919         * m4/atan2f.m4: New file.
2920         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2922         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2923         * modules/atan2f: New file.
2924         * tests/test-math-c++.cc: Check the declaration of atan2f.
2925         * doc/posix-functions/atan2f.texi: Mention the new module.
2926
2927         atan2: Use a .m4 file.
2928         * m4/atan2.m4: New file.
2929         * modules/atan2 (Files): Add it.
2930         (configure.ac): Just invoke gl_FUNC_ATAN2.
2931
2932 2011-10-08  Bruno Haible  <bruno@clisp.org>
2933
2934         Tests for module 'atanf'.
2935         * modules/atanf-tests: New file.
2936         * tests/test-atanf.c: New file.
2937
2938         New module 'atanf'.
2939         * lib/math.in.h (atanf): New declaration.
2940         * lib/atanf.c: New file.
2941         * m4/atanf.m4: New file.
2942         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2944         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2945         * modules/atanf: New file.
2946         * tests/test-math-c++.cc: Check the declaration of atanf.
2947         * doc/posix-functions/atanf.texi: Mention the new module.
2948
2949         atan: Use a .m4 file.
2950         * m4/atan.m4: New file.
2951         * modules/atan (Files): Add it.
2952         (configure.ac): Just invoke gl_FUNC_ATAN.
2953
2954 2011-10-08  Bruno Haible  <bruno@clisp.org>
2955
2956         Tests for module 'acosf'.
2957         * modules/acosf-tests: New file.
2958         * tests/test-acosf.c: New file.
2959
2960         New module 'acosf'.
2961         * lib/math.in.h (acosf): New declaration.
2962         * lib/acosf.c: New file.
2963         * m4/acosf.m4: New file.
2964         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2965         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2966         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2967         * modules/acosf: New file.
2968         * tests/test-math-c++.cc: Check the declaration of acosf.
2969         * doc/posix-functions/acosf.texi: Mention the new module.
2970
2971         acos: Use a .m4 file.
2972         * m4/acos.m4: New file.
2973         * modules/acos (Files): Add it.
2974         (configure.ac): Just invoke gl_FUNC_ACOS.
2975
2976 2011-10-08  Bruno Haible  <bruno@clisp.org>
2977
2978         Tests for module 'asinf'.
2979         * modules/asinf-tests: New file.
2980         * tests/test-asinf.c: New file.
2981
2982         New module 'asinf'.
2983         * lib/math.in.h (asinf): New declaration.
2984         * lib/asinf.c: New file.
2985         * m4/asinf.m4: New file.
2986         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2988         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2989         * modules/asinf: New file.
2990         * tests/test-math-c++.cc: Check the declaration of asinf.
2991         * doc/posix-functions/asinf.texi: Mention the new module.
2992
2993         asin: Use a .m4 file.
2994         * m4/asin.m4: New file.
2995         * modules/asin (Files): Add it.
2996         (configure.ac): Just invoke gl_FUNC_ASIN.
2997
2998 2011-10-08  Bruno Haible  <bruno@clisp.org>
2999
3000         Tests for module 'tanf'.
3001         * modules/tanf-tests: New file.
3002         * tests/test-tanf.c: New file.
3003
3004         New module 'tanf'.
3005         * lib/math.in.h (tanf): New declaration.
3006         * lib/tanf.c: New file.
3007         * m4/tanf.m4: New file.
3008         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3010         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3011         * modules/tanf: New file.
3012         * tests/test-math-c++.cc: Check the declaration of tanf.
3013         * doc/posix-functions/tanf.texi: Mention the new module.
3014
3015         tan: Use a .m4 file.
3016         * m4/tan.m4: New file.
3017         * modules/tan (Files): Add it.
3018         (configure.ac): Just invoke gl_FUNC_TAN.
3019
3020 2011-10-08  Bruno Haible  <bruno@clisp.org>
3021
3022         Tests for module 'cosf'.
3023         * modules/cosf-tests: New file.
3024         * tests/test-cosf.c: New file.
3025
3026         New module 'cosf'.
3027         * lib/math.in.h (cosf): New declaration.
3028         * lib/cosf.c: New file.
3029         * m4/cosf.m4: New file.
3030         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3032         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3033         * modules/cosf: New file.
3034         * tests/test-math-c++.cc: Check the declaration of cosf.
3035         * doc/posix-functions/cosf.texi: Mention the new module.
3036
3037         cos: Use a .m4 file.
3038         * m4/cos.m4: New file.
3039         * modules/cos (Files): Add it.
3040         (configure.ac): Just invoke gl_FUNC_COS.
3041
3042 2011-10-08  Bruno Haible  <bruno@clisp.org>
3043
3044         Tests for module 'sinf'.
3045         * modules/sinf-tests: New file.
3046         * tests/test-sinf.c: New file.
3047
3048         New module 'sinf'.
3049         * lib/math.in.h (sinf): New declaration.
3050         * lib/sinf.c: New file.
3051         * m4/sinf.m4: New file.
3052         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3054         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3055         * modules/sinf: New file.
3056         * tests/test-math-c++.cc: Check the declaration of sinf.
3057         * doc/posix-functions/sinf.texi: Mention the new module.
3058
3059         sin: Use a .m4 file.
3060         * m4/sin.m4: New file.
3061         * modules/sin (Files): Add it.
3062         (configure.ac): Just invoke gl_FUNC_SIN.
3063
3064 2011-10-08  Bruno Haible  <bruno@clisp.org>
3065
3066         Tests for module 'powf'.
3067         * modules/powf-tests: New file.
3068         * tests/test-powf.c: New file.
3069
3070         New module 'powf'.
3071         * lib/math.in.h (powf): New declaration.
3072         * lib/powf.c: New file.
3073         * m4/powf.m4: New file.
3074         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3076         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3077         * modules/powf: New file.
3078         * tests/test-math-c++.cc: Check the declaration of powf.
3079         * doc/posix-functions/powf.texi: Mention the new module.
3080
3081         pow: Use a .m4 file.
3082         * m4/pow.m4: New file.
3083         * modules/pow (Files): Add it.
3084         (configure.ac): Just invoke gl_FUNC_POW.
3085
3086 2011-10-08  Bruno Haible  <bruno@clisp.org>
3087
3088         Tests for module 'log10f'.
3089         * modules/log10f-tests: New file.
3090         * tests/test-log10f.c: New file.
3091
3092         New module 'log10f'.
3093         * lib/math.in.h (log10f): New declaration.
3094         * lib/log10f.c: New file.
3095         * m4/log10f.m4: New file.
3096         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3098         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3099         * modules/log10f: New file.
3100         * tests/test-math-c++.cc: Check the declaration of log10f.
3101         * doc/posix-functions/log10f.texi: Mention the new module.
3102
3103         log10: Use a .m4 file.
3104         * m4/log10.m4: New file.
3105         * modules/log10 (Files): Add it.
3106         (configure.ac): Just invoke gl_FUNC_LOG10.
3107
3108 2011-10-08  Bruno Haible  <bruno@clisp.org>
3109
3110         Tests for module 'logf'.
3111         * modules/logf-tests: New file.
3112         * tests/test-logf.c: New file.
3113
3114         New module 'logf'.
3115         * lib/math.in.h (logf): New declaration.
3116         * lib/logf.c: New file.
3117         * m4/logf.m4: New file.
3118         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3120         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3121         * modules/logf: New file.
3122         * tests/test-math-c++.cc: Check the declaration of logf.
3123         * doc/posix-functions/logf.texi: Mention the new module.
3124
3125         log: Use a .m4 file.
3126         * m4/log.m4: New file.
3127         * modules/log (Files): Add it.
3128         (configure.ac): Just invoke gl_FUNC_LOG.
3129
3130 2011-10-08  Bruno Haible  <bruno@clisp.org>
3131
3132         Tests for module 'expf'.
3133         * modules/expf-tests: New file.
3134         * tests/test-expf.c: New file.
3135
3136         New module 'expf'.
3137         * lib/math.in.h (expf): New declaration.
3138         * lib/expf.c: New file.
3139         * m4/expf.m4: New file.
3140         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3142         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3143         * modules/expf: New file.
3144         * tests/test-math-c++.cc: Check the declaration of expf.
3145         * doc/posix-functions/expf.texi: Mention the new module.
3146
3147         exp: Use a .m4 file.
3148         * m4/exp.m4: New file.
3149         * modules/exp (Files): Add it.
3150         (configure.ac): Just invoke gl_FUNC_EXP.
3151
3152 2011-10-08  Bruno Haible  <bruno@clisp.org>
3153
3154         Tests for module 'sqrtf'.
3155         * modules/sqrtf-tests: New file.
3156         * tests/test-sqrtf.c: New file.
3157
3158         New module 'sqrtf'.
3159         * lib/math.in.h (sqrtf): New declaration.
3160         * lib/sqrtf.c: New file.
3161         * m4/sqrtf.m4: New file.
3162         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3164         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3165         * modules/sqrtf: New file.
3166         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3167         * doc/posix-functions/sqrtf.texi: Mention the new module.
3168
3169 2011-10-08  Bruno Haible  <bruno@clisp.org>
3170
3171         Tests: Avoid link failures w.r.t. libintl.
3172         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3173         $(LIBINTL).
3174         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3175         $(LIBINTL).
3176         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3177         against $(LIBINTL).
3178         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3179         $(LIBINTL).
3180         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3181         $(LIBINTL).
3182         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3183
3184 2011-10-08  Bruno Haible  <bruno@clisp.org>
3185
3186         pow tests: Defeat compiler optimizations.
3187         * tests/test-pow.c (main): Assign arguments to x and y before use.
3188
3189 2011-10-08  Bruno Haible  <bruno@clisp.org>
3190
3191         gnulib-tool: Improve last commit.
3192         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3193         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3194         ignore dependencies that are not among the modules list.
3195
3196 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3197
3198         gnulib-tool: don't follow dependencies to avoided modules
3199         This fixes a bug that is related to the previous one.
3200         * gnulib-tool (func_modules_transitive_closure)
3201         (func_emit_autoconf_snippets):
3202         Check whether a dependency is acceptable before using it.
3203         (--extract-dependencies): Report an error if --avoid is also used,
3204         since this combination of options is not yet supported.
3205
3206         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3207         Problem reported by Peter Dyballa in
3208         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3209         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3210         when echoing "$condition".
3211
3212 2011-10-07  Bruno Haible  <bruno@clisp.org>
3213
3214         Fix documentation about math functions on MacOS X.
3215         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3216         MacOS X 10.5.
3217         * doc/posix-functions/fdim.texi: Likewise.
3218         * doc/posix-functions/feclearexcept.texi: Likewise.
3219         * doc/posix-functions/fegetenv.texi: Likewise.
3220         * doc/posix-functions/fegetround.texi: Likewise.
3221         * doc/posix-functions/feholdexcept.texi: Likewise.
3222         * doc/posix-functions/feraiseexcept.texi: Likewise.
3223         * doc/posix-functions/fesetenv.texi: Likewise.
3224         * doc/posix-functions/fesetround.texi: Likewise.
3225         * doc/posix-functions/fetestexcept.texi: Likewise.
3226         * doc/posix-functions/feupdateenv.texi: Likewise.
3227         * doc/posix-functions/fmax.texi: Likewise.
3228         * doc/posix-functions/fmin.texi: Likewise.
3229         * doc/posix-functions/log2.texi: Likewise.
3230         * doc/posix-functions/modff.texi: Likewise.
3231         * doc/posix-functions/nan.texi: Likewise.
3232         * doc/posix-functions/nanf.texi: Likewise.
3233         * doc/posix-functions/nextafterf.texi: Likewise.
3234         * doc/posix-functions/remquo.texi: Likewise.
3235
3236 2011-10-07  Bruno Haible  <bruno@clisp.org>
3237
3238         modff: Drop assumption about library that defines modff.
3239         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3240         AC_CHECK_FUNCS.
3241         * modules/modff (Files): Add m4/mathfunc.m4.
3242
3243 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3244
3245         raise tests: Avoid a GCC warning.
3246         * tests/test-raise.c (handler): Use _Noreturn.
3247
3248 2011-10-07  Bruno Haible  <bruno@clisp.org>
3249
3250         Tests for module 'ldexpf'.
3251         * modules/ldexpf-tests: New file.
3252         * tests/test-ldexpf.c: New file.
3253
3254         New module 'ldexpf'.
3255         * lib/math.in.h (ldexpf): New declaration.
3256         * lib/ldexpf.c: New file.
3257         * m4/ldexpf.m4: New file.
3258         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3260         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3261         * modules/ldexpf: New file.
3262         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3263         * doc/posix-functions/ldexpf.texi: Mention the new module.
3264
3265 2011-10-06  Bruno Haible  <bruno@clisp.org>
3266
3267         frexpf: Work around problems on IRIX and mingw.
3268         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3270         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3271         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3272         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3273         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3274         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3275
3276 2011-10-06  Bruno Haible  <bruno@clisp.org>
3277
3278         fabsf: Drop assumption about library that defines fabsf.
3279         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3280         AC_CHECK_FUNCS.
3281         * modules/fabsf (Files): Add m4/mathfunc.m4.
3282
3283 2011-10-06  Bruno Haible  <bruno@clisp.org>
3284
3285         frexpf: Drop assumption about library that defines frexpf.
3286         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3287         'int *', 'float *', 'long double *', 'float', 'long double'.
3288         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3289         AC_CHECK_FUNCS.
3290         * modules/frexpf (Files): Add m4/mathfunc.m4.
3291
3292         Tests for module 'frexpf'.
3293         * modules/frexpf-tests: New file.
3294         * tests/test-frexpf.c: New file.
3295
3296         New module 'frexpf'.
3297         * lib/math.in.h (frexpf): New declaration.
3298         * lib/frexpf.c: New file.
3299         * m4/frexpf.m4: New file.
3300         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3301         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3302         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3303         * modules/frexpf: New file.
3304         * tests/test-math-c++.cc: Check the declaration of frexpf.
3305         * doc/posix-functions/frexpf.texi: Mention the new module.
3306
3307 2011-10-06  Bruno Haible  <bruno@clisp.org>
3308
3309         math: Sort function declarations of math.in.h.
3310         * lib/math.in.h (frexp, logb): Move declarations.
3311
3312 2011-10-05  Bruno Haible  <bruno@clisp.org>
3313
3314         Tests for module 'modff'.
3315         * modules/modff-tests: New file.
3316         * tests/test-modff.c: New file.
3317
3318         New module 'modff'.
3319         * lib/math.in.h (modff): New declaration.
3320         * lib/modff.c: New file.
3321         * m4/modff.m4: New file.
3322         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3324         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3325         * modules/modff: New file.
3326         * tests/test-math-c++.cc: Check the declaration of modff.
3327         * doc/posix-functions/modff.texi: Mention the new module.
3328
3329         modf tests: Make test sharper.
3330         * tests/test-modf.c (main): Strengthen upper bound.
3331
3332         modf: Use a .m4 file.
3333         * m4/modf.m4: New file.
3334         * modules/modf (Files): Add it.
3335         (configure.ac): Just invoke gl_FUNC_MODF.
3336
3337 2011-10-05  Bruno Haible  <bruno@clisp.org>
3338
3339         Tests for module 'fmodf'.
3340         * modules/fmodf-tests: New file.
3341         * tests/test-fmodf.c: New file.
3342
3343         New module 'fmodf'.
3344         * lib/math.in.h (fmodf): New declaration.
3345         * lib/fmodf.c: New file.
3346         * m4/fmodf.m4: New file.
3347         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3348         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3349         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3350         * modules/fmodf: New file.
3351         * tests/test-math-c++.cc: Check the declaration of fmodf.
3352         * doc/posix-functions/fmodf.texi: Mention the new module.
3353
3354         fmod: Use a .m4 file.
3355         * m4/fmod.m4: New file.
3356         * modules/fmod (Files): Add it.
3357         (configure.ac): Just invoke gl_FUNC_FMOD.
3358
3359 2011-10-05  Bruno Haible  <bruno@clisp.org>
3360
3361         Tests for module 'fabsf'.
3362         * modules/fabsf-tests: New file.
3363         * tests/test-fabsf.c: New file.
3364
3365         New module 'fabsf'.
3366         * lib/math.in.h (fabsf): New declaration.
3367         * lib/fabsf.c: New file.
3368         * m4/fabsf.m4: New file.
3369         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3370         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3371         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3372         * modules/fabsf: New file.
3373         * tests/test-math-c++.cc: Check the declaration of fabsf.
3374         * doc/posix-functions/fabsf.texi: Mention the new module.
3375
3376         fabs: Use a .m4 file.
3377         * m4/fabs.m4: New file.
3378         * modules/fabs (Files): Add it.
3379         (configure.ac): Just invoke gl_FUNC_FABS.
3380
3381 2011-10-05  Jim Meyering  <meyering@redhat.com>
3382
3383         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3384         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3385         ls -lL regression introduced in coreutils-8.12, it does so at the
3386         cost of an additional stat call in the common case.  Besides, now
3387         that the kernel change that prompted commit 95f7c57f has been reverted
3388         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3389         we have no use for commit 95f7c57f, "file-has-acl: use
3390         acl_extended_file_nofollow if available".
3391
3392 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3393
3394         file-has-acl: revert unintended change in behavior of ls -L
3395         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3396         derived from...
3397         (file_has_acl): ...code here.  Call it.
3398         This problem was introduced with 2011-07-22 commit 95f7c57f,
3399         "file-has-acl: use acl_extended_file_nofollow if available".
3400         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3401
3402 2011-10-03  Bruno Haible  <bruno@clisp.org>
3403
3404         poll: Avoid link errors on MSVC.
3405         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3406         * modules/poll (Depends-on): Add sockets.
3407         (Link): New section.
3408         * NEWS: Mention the change.
3409         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3410         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3411         $(LIB_POLL) instead of $(LIBSOCKET).
3412
3413 2011-10-03  Bruno Haible  <bruno@clisp.org>
3414
3415         sys_select tests: Fix link error on MSVC 9.
3416         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3417         with $(LIB_SELECT) instead of $(LIBSOCKET).
3418
3419 2011-10-03  Bruno Haible  <bruno@clisp.org>
3420
3421         sys_select: Fix compilation error on mingw.
3422         * lib/sys_select.in.h: On native Windows, include <io.h>.
3423
3424 2011-10-03  Bruno Haible  <bruno@clisp.org>
3425
3426         wmemset: Support for MSVC.
3427         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3428         whether wmemset() exists.
3429
3430 2011-10-03  Bruno Haible  <bruno@clisp.org>
3431
3432         wmemmove: Support for MSVC.
3433         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3434         whether wmemmove() exists.
3435
3436 2011-10-03  Bruno Haible  <bruno@clisp.org>
3437
3438         wmemcpy: Support for MSVC.
3439         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3440         whether wmemcpy() exists.
3441
3442 2011-10-03  Bruno Haible  <bruno@clisp.org>
3443
3444         wmemcmp: Support for MSVC.
3445         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3446         whether wmemcmp() exists.
3447
3448 2011-10-03  Bruno Haible  <bruno@clisp.org>
3449
3450         wmemchr: Support for MSVC.
3451         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3452         whether wmemchr() exists.
3453
3454 2011-10-03  Bruno Haible  <bruno@clisp.org>
3455
3456         glthread/*, strsignal: Support for MSVC.
3457         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3458         including <winsock.h> on MSVC 9.
3459         * lib/glthread/lock.h: Likewise.
3460         * lib/glthread/thread.h: Likewise.
3461         * lib/glthread/tls.h: Likewise.
3462         * lib/glthread/yield.h: Likewise.
3463         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3464         if HAVE_UNISTD_H is false.
3465         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3466
3467 2011-10-03  Bruno Haible  <bruno@clisp.org>
3468
3469         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3470         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3471         Set to 100000.
3472
3473 2011-10-03  Bruno Haible  <bruno@clisp.org>
3474
3475         acl: Fix specification.
3476         * lib/file-has-acl.c (file_has_acl): Fix specification.
3477
3478 2011-10-03  Bruno Haible  <bruno@clisp.org>
3479
3480         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3481         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3482         (compute_curr_prefix, shared_library_fullname,
3483         find_shared_library_fullname, get_shared_library_fullname, relocate):
3484         Use it together with PIC && INSTALLDIR.
3485         Reported by <jojelino@gmail.com>
3486         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3487
3488 2011-10-01  Jim Meyering  <meyering@redhat.com>
3489
3490         maint.mk: adjust a release-related rule not to require use of gzip
3491         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3492         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3493         projects that build only .tar.xz files.  Also fix an erroneous test.
3494
3495         test-linkat: don't leave behind a temporary file
3496         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3497         Otherwise, coreutils' "make distcheck" would fail with this:
3498           Only in /c/cu/tests/torture/coreutils/test/\
3499             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3500           make[2]: *** [my-distcheck] Error 1
3501
3502         float, math: add omitted file
3503         * lib/itold.c: Add file, required for yesterday's float change.
3504
3505 2011-10-01  Bruno Haible  <bruno@clisp.org>
3506
3507         isinf: Fix for OpenBSD/x86.
3508         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3509         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3510         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3511
3512 2011-10-01  Bruno Haible  <bruno@clisp.org>
3513
3514         isfinite: Fix syntax error in configure test.
3515         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3516
3517         isfinite: Fix typo.
3518         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3519         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3520
3521 2011-10-01  Bruno Haible  <bruno@clisp.org>
3522
3523         nonblocking tests: Fix test failure on Linux/IA-64.
3524         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3525         Set to 270000.
3526
3527 2011-10-01  Bruno Haible  <bruno@clisp.org>
3528
3529         mkfifoat tests: Fix a test failure on mingw.
3530         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3531         with error ENOSYS.
3532
3533 2011-09-30  Bruno Haible  <bruno@clisp.org>
3534
3535         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3536         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3537         'long double'. Set REPLACE_ITOLD.
3538         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3539         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3540         * lib/itold.c: New file.
3541         * modules/float (Files): Add lib/itold.c.
3542         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3543         (Makefile.am): Substitute REPLACE_ITOLD.
3544         * modules/math (Depends-on): Add float.
3545         (Makefile.am): Substitute REPLACE_ITOLD.
3546         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3547         * doc/posix-headers/math.texi: Likewise.
3548         * doc/posix-functions/logl.texi: Likewise.
3549
3550 2011-09-30  Bruno Haible  <bruno@clisp.org>
3551
3552         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3553         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3554         Set to 140000.
3555
3556 2011-09-30  Bruno Haible  <bruno@clisp.org>
3557
3558         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3559         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3560         invocation, say "right after AC_PROG_CC_STDC", not "right after
3561         AC_PROG_CC".
3562         Reported by Gary V. Vaughan <gary@gnu.org>.
3563
3564 2011-09-30  Bruno Haible  <bruno@clisp.org>
3565
3566         Centralize C99 requirement.
3567         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3568         * modules/stdarg (configure.ac-early): Invoke it instead of
3569         AC_PROG_CC_STDC.
3570         Reported by Gary V. Vaughan and Paul Eggert.
3571
3572 2011-09-29  Bruno Haible  <bruno@clisp.org>
3573
3574         float: Fix LDBL_MAX value on Linux/PowerPC.
3575         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3576         on Linux/PowerPC.
3577         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3578         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3579         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3580         platform.
3581         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3582
3583 2011-09-29  Bruno Haible  <bruno@clisp.org>
3584
3585         doc: Improve doc about gl_EARLY.
3586         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3587         AC_PROG_CC_STDC invocation.
3588         Reported by Gary V. Vaughan <gary@gnu.org>.
3589
3590 2011-09-28  Bruno Haible  <bruno@clisp.org>
3591
3592         fgetc, fputc, fread, fwrite tests: Fix link error.
3593         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3594         on non-MSVC platforms.
3595         * tests/test-fputc.c (main): Likewise.
3596         * tests/test-fread.c (main): Likewise.
3597         * tests/test-fwrite.c (main): Likewise.
3598         Reported by Jim Meyering.
3599
3600 2011-09-27  Bruno Haible  <bruno@clisp.org>
3601
3602         fputc, fwrite tests: Avoid test failure on MSVC.
3603         * tests/test-fgetc.c: Include msvc-inval.h.
3604         (main): Invoke gl_msvc_inval_ensure_handler.
3605         * tests/test-fputc.c: Include msvc-inval.h.
3606         (main): Invoke gl_msvc_inval_ensure_handler.
3607         * tests/test-fread.c: Include msvc-inval.h.
3608         (main): Invoke gl_msvc_inval_ensure_handler.
3609         * tests/test-fwrite.c: Include msvc-inval.h.
3610         (main): Invoke gl_msvc_inval_ensure_handler.
3611         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3612         * modules/fputc-tests (Depends-on): Likewise.
3613         * modules/fread-tests (Depends-on): Likewise.
3614         * modules/fwrite-tests (Depends-on): Likewise.
3615
3616 2011-09-27  Bruno Haible  <bruno@clisp.org>
3617
3618         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3619         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3620         (raise): Remove older, duplicated declaration.
3621         (_gl_raise_SIGPIPE): New declaration.
3622         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3623         (rpl_raise): Remove function.
3624         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3625         a gnulib-defined SIGPIPE here.
3626         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3627         'sigprocmask' has detected missing signal-blocking and the module
3628         'sigpipe' is enabled.
3629         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3630
3631 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3632
3633         base64-tests: avoid memory leak
3634         * tests/test-base64.c (main): Plug memory leak.
3635
3636         base32: new module
3637         * modules/base32: New module.
3638         * lib/base32.c: New file.
3639         * lib/base32.h: Likewise.
3640         * m4/base32.m4: Likewise.
3641         * modules/base32-tests: New test.
3642         * tests/test-base32.c: Likewise.
3643         * MODULES.html.sh (Misc): Mention it.
3644
3645 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3646
3647         gnulib: use more-standard license notice wording
3648         * gnulib-tool (func_emit_copyright_notice): When emitting a
3649         license notice into a file, use the standard wording as suggested
3650         by the current information for GNU maintainers, except say "file"
3651         rather than "program".  The new wording gives a license version
3652         number, which addresses an issue raised by Glenn Morris in
3653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3654         * m4/onceonly.m4: Use that same wording here, too.
3655
3656         dup2: minor simplification
3657         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3658         as lib/dup2.c no longer uses 'inline'.
3659
3660 2011-09-25  Bruno Haible  <bruno@clisp.org>
3661
3662         strings: Fix compilation error on MSVC.
3663         * lib/strings.in.h: Include <stddef.h> for size_t.
3664
3665 2011-09-25  Bruno Haible  <bruno@clisp.org>
3666
3667         fflush et al.: Document limitation on MSVC.
3668         * doc/posix-functions/fflush.texi: Document possible crash in handling
3669         mode other than DEFAULT_HANDLING.
3670         * doc/posix-functions/fgetc.texi: Likewise.
3671         * doc/posix-functions/fputc.texi: Likewise.
3672         * doc/posix-functions/fread.texi: Likewise.
3673         * doc/posix-functions/fwrite.texi: Likewise.
3674
3675 2011-09-25  Bruno Haible  <bruno@clisp.org>
3676
3677         msvc-inval: Allow three invalid parameter handling modes.
3678         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3679         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3680         macros.
3681         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3682         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3683         SANE_LIBRARY_HANDLING as a no-op.
3684         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3685         <stdlib.h>.
3686         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3687
3688 2011-09-25  Bruno Haible  <bruno@clisp.org>
3689
3690         msvc-inval: Make handler multithread-safe.
3691         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3692         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3693         declarations.
3694         (gl_msvc_inval_current): New declaration.
3695         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3696         Operate on the structure returned by gl_msvc_inval_current().
3697         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3698         Remove varaiables.
3699         (tls_index, tls_initialized): New variables.
3700         (not_per_thread): New variable.
3701         (gl_msvc_inval_current): New function.
3702         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3703         returned by gl_msvc_inval_current().
3704
3705 2011-09-25  Bruno Haible  <bruno@clisp.org>
3706
3707         msvc-inval: Install handler globally.
3708         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3709         !_MSC_VER.
3710         (gl_msvc_invalid_parameter_handler): Remove declaration.
3711         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3712         declarations.
3713         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3714         Install the handler globally, don't uninstall it.
3715         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3716         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3717         currently valid, call RaiseException instead.
3718         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3719         for !_MSC_VER.
3720
3721 2011-09-25  Bruno Haible  <bruno@clisp.org>
3722
3723         strerror_r-posix: Fix for MSVC 9.
3724         * lib/strerror_r.c (local_snprintf): New function.
3725         (snprintf): Define to local_snprintf, not to _snprintf.
3726
3727 2011-09-25  Bruno Haible  <bruno@clisp.org>
3728
3729         ftruncate: Support for MSVC 9.
3730         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3731         (chsize_nothrow): New function.
3732         (chsize): Redefine as a macro.
3733         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3734         * modules/ftruncate (Depends-on): Add msvc-inval.
3735
3736 2011-09-25  Bruno Haible  <bruno@clisp.org>
3737
3738         New module 'fstat'.
3739         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3740         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3741         * lib/fchdir.c (rpl_fstat): Remove function.
3742         * m4/fstat.m4: New file.
3743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3744         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3745         declared.
3746         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3747         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3748         * modules/fstat: New file.
3749         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3750         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3751         is set.
3752         * doc/posix-functions/fstat.texi: Mention the new module and the
3753         problem on MSVC.
3754         * NEWS: Mention the change.
3755         * modules/acl (Depends-on): Add fstat.
3756         * modules/chdir-safer (Depends-on): Likewise.
3757         * modules/chown (Depends-on): Likewise.
3758         * modules/copy-file (Depends-on): Likewise.
3759         * modules/fchdir (Depends-on): Likewise.
3760         * modules/fdopendir (Depends-on): Likewise.
3761         * modules/fopen (Depends-on): Likewise.
3762         * modules/fts (Depends-on): Likewise.
3763         * modules/getcwd (Depends-on): Likewise.
3764         * modules/isapipe (Depends-on): Likewise.
3765         * modules/linkat (Depends-on): Likewise.
3766         * modules/lseek (Depends-on): Likewise.
3767         * modules/mkdir-p (Depends-on): Likewise.
3768         * modules/open (Depends-on): Likewise.
3769         * modules/openat (Depends-on): Likewise.
3770         * modules/read-file (Depends-on): Likewise.
3771         * modules/renameat (Depends-on): Likewise.
3772         * modules/utimens (Depends-on): Likewise.
3773
3774 2011-09-25  Bruno Haible  <bruno@clisp.org>
3775
3776         linkat: Fix compilation on MSVC 9.
3777         * lib/linkat.c: Don't include <stdint.h>.
3778
3779 2011-09-25  Bruno Haible  <bruno@clisp.org>
3780
3781         fclose: Support for MSVC 9.
3782         * lib/fclose.c: Include msvc-inval.h.
3783         (fclose_nothrow): New function.
3784         (rpl_fclose): Use it.
3785         * modules/fclose (Depends-on): Add msvc-inval.
3786         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3787
3788 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3789
3790         dup2: minor simplifications
3791         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3792         that it's a performance win.
3793         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3794         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3795
3796 2011-09-24  Jim Meyering  <meyering@redhat.com>
3797
3798         test-futimens: avoid a warning from gcc -Wshadow
3799         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3800         to avoid a shadowing warning.
3801
3802 2011-09-24  Bruno Haible  <bruno@clisp.org>
3803
3804         fdopen: Support for MSVC 9.
3805         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3806         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3807         * lib/fdopen.c: Include msvc-inval.h.
3808         (fdopen_nothrow): New function.
3809         (rpl_fdopen): Use it.
3810         * modules/fdopen (Depends-on): Add msvc-inval.
3811         * modules/fclose-tests (Depends-on): Add fdopen.
3812         * modules/fflush-tests (Depends-on): Likewise.
3813         * modules/fgetc-tests (Depends-on): Likewise.
3814         * modules/fputc-tests (Depends-on): Likewise.
3815         * modules/fread-tests (Depends-on): Likewise.
3816         * modules/freopen-tests (Depends-on): Likewise.
3817         * modules/fseeko-tests (Depends-on): Likewise.
3818         * modules/ftello-tests (Depends-on): Likewise.
3819         * modules/fwrite-tests  (Depends-on): Likewise.
3820         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3821
3822 2011-09-24  Bruno Haible  <bruno@clisp.org>
3823
3824         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3825         * modules/fgetc-tests (Depends-on): Add unistd.
3826         * modules/fputc-tests (Depends-on): Likewise.
3827         * modules/fread-tests (Depends-on): Likewise.
3828         * modules/fwrite-tests (Depends-on): Likewise.
3829
3830 2011-09-24  Bruno Haible  <bruno@clisp.org>
3831
3832         dup: Simplify autoconf test.
3833         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3834         on gl_MSVC_INVAL's result.
3835
3836 2011-09-24  Bruno Haible  <bruno@clisp.org>
3837
3838         Tests for function fwrite().
3839         * modules/fwrite-tests: New file.
3840         * tests/test-fwrite.c: New file.
3841         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3842
3843         Tests for function fread().
3844         * modules/fread-tests: New file.
3845         * tests/test-fread.c: New file.
3846         * modules/stdio-tests (Depends-on): Add fread-tests.
3847
3848         Activate fputc tests.
3849         * modules/stdio-tests (Depends-on): Add fputc-tests.
3850
3851         Enhance fgetc, fputc tests.
3852         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3853         * tests/test-fputc.c (main): Likewise.
3854
3855 2011-09-24  Bruno Haible  <bruno@clisp.org>
3856
3857         write: Support for MSVC 9.
3858         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3859         is not 1.
3860         * lib/write.c (write_nothrow): New function.
3861         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3862         not 1. Use write_nothrow.
3863         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3864         invalid parameter handler.
3865         (gl_PREREQ_WRITE): New macro.
3866         * modules/write (Depends-on): Add msvc-inval.
3867         (configure.ac): Invoke gl_PREREQ_WRITE.
3868         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3869
3870 2011-09-24  Bruno Haible  <bruno@clisp.org>
3871
3872         read: Fix last commit.
3873         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3874
3875 2011-09-24  Bruno Haible  <bruno@clisp.org>
3876
3877         dup2: Fix last commit.
3878         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3879         (rpl_dup2): Disable fcntl workaround on native Windows.
3880
3881         sigprocmask: Make code safer.
3882         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3883         section that changes macro definitions for this compilation unit.
3884
3885 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3886
3887         dup2: clarify by coalescing Windows-specific material
3888         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3889         "msvc-nothrow.h"' to the Windows-specific section, so that the
3890         Emacs source need not contain these include files.
3891         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3892         Windows-specific fixes into this function rather than just the
3893         nothrow fix, as this shortens and clarifies the code.  Always
3894         define as a function, as that's a bit cleaner than having it be
3895         sometimes a function and sometimes a macro.
3896         (rpl_dup2): Move the Windows-specific stuff out of here and into
3897         ms_windows_dup2.  Don't protect the Haiku-related fix with
3898         "#if !defined __linux__", as the same code also works around
3899         a Linux kernel bug, and it doesn't add any system calls on any
3900         platform.  Add comment about FreeBSD 6.1.
3901
3902         sigprocmask: move #include directive
3903         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3904         Windows-specific section, so that the Emacs source need not
3905         contain msvc-inval.h.
3906
3907 2011-09-23  Bruno Haible  <bruno@clisp.org>
3908
3909         read: Support for MSVC 9.
3910         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3911         is not 1.
3912         * lib/read.c (read_nothrow): New function.
3913         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3914         read_nothrow.
3915         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3916         invalid parameter handler.
3917         (gl_PREREQ_READ): New macro.
3918         * modules/read (Depends-on): Add msvc-inval.
3919         (configure.ac): Invoke gl_PREREQ_READ.
3920         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3921
3922 2011-09-23  Bruno Haible  <bruno@clisp.org>
3923
3924         close: Support for MSVC 9.
3925         * lib/close.c: Include <errno.h>, msvc-inval.h.
3926         (close_nothrow): New function.
3927         (rpl_close): Use it.
3928         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3929         invalid parameter handler.
3930         * modules/close (Depends-on): Add msvc-inval.
3931         * modules/dup2-tests (Depends-on): Add close.
3932         * modules/dup3-tests (Depends-on): Likewise.
3933         * modules/fcntl-tests (Depends-on): Likewise.
3934         * modules/spawn-pipe-tests (Depends-on): Likewise.
3935         * modules/unistd-safer-tests (Depends-on): Likewise.
3936         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3937
3938 2011-09-23  Bruno Haible  <bruno@clisp.org>
3939
3940         New module 'dup'.
3941         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3942         Allow replacement.
3943         * lib/dup.c: New file.
3944         * lib/fchdir.c (rpl_dup): Remove function.
3945         * m4/dup.m4: New file.
3946         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3947         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3948         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3949         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3950         * modules/dup: New file.
3951         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3952         'dup' module is in use.
3953         * modules/fdopendir (Depends-on): Add dup.
3954         * modules/fdutimensat-tests (Depends-on): Likewise.
3955         * modules/fts (Depends-on): Likewise.
3956         * modules/futimens-tests (Depends-on): Likewise.
3957         * modules/posix_spawnp-tests (Depends-on): Likewise.
3958         * modules/unistd-safer-tests (Depends-on): Likewise.
3959         * modules/utimens-tests (Depends-on): Likewise.
3960         * doc/posix-functions/dup.texi: Mention the new module and the problem
3961         on MSVC.
3962
3963 2011-09-23  Bruno Haible  <bruno@clisp.org>
3964
3965         getdtablesize: Support for MSVC 9.
3966         * lib/getdtablesize.c: Include msvc-inval.h.
3967         (_setmaxstdio_nothrow): New function.
3968         (_setmaxstdio): Redefine it.
3969         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3970         * modules/getdtablesize (Depends-on): Add msvc-inval.
3971         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3972
3973 2011-09-23  Bruno Haible  <bruno@clisp.org>
3974
3975         signal-h: Rename from signal.
3976         * modules/signal-h: Renamed from modules/signal.
3977         * modules/pthread_sigmask (Depends-on): Update.
3978         * modules/raise (Depends-on): Likewise.
3979         * modules/sigaction (Depends-on): Likewise.
3980         * modules/sigpipe (Depends-on): Likewise.
3981         * modules/sigprocmask (Depends-on): Likewise.
3982         * modules/sys_select (Depends-on): Likewise.
3983         * modules/signal-h-tests: Renamed from modules/signal-tests.
3984         (Files, Depends-on, Makefile.am): Update.
3985         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3986         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3987         (Files, Makefile.am): Update.
3988         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3989         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3990         * modules/signal: New placeholder file.
3991         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3992         * doc/posix-headers/signal.texi: Update.
3993         * NEWS: Mention the change.
3994
3995 2011-09-23  Bruno Haible  <bruno@clisp.org>
3996
3997         sigprocmask: Avoid crashes through signal() on MSVC 9.
3998         * lib/sigprocmask.c: Include msvc-inval.h.
3999         (signal_nothrow): New function.
4000         (signal): Redefine it.
4001         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4002         * modules/sigprocmask (Depends-on): Add msvc-inval.
4003         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4004
4005 2011-09-23  Bruno Haible  <bruno@clisp.org>
4006
4007         Tests for module 'raise'.
4008         * modules/raise-tests: New file.
4009         * tests/test-raise.c: New file.
4010
4011         raise: Support for MSVC.
4012         * lib/signal.in.h (raise): New declaration.
4013         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4014         for native Windows platforms.
4015         * m4/raise.m4: New file.
4016         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4017         HAVE_RAISE, REPLACE_RAISE.
4018         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4019         REPLACE_RAISE.
4020         * modules/raise (Status, Notice): Remove fields.
4021         (Files): Add m4/raise.m4.
4022         (Depends-on): Add signal, msvc-inval.
4023         (configure.ac): Use the common idioms.
4024         (Maintainer): Add me.
4025         * tests/test-signal-c++.cc: Check the signature of raise.
4026         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4027
4028 2011-09-23  Bruno Haible  <bruno@clisp.org>
4029
4030         pipe2: Fix compilation on pre-C99 compilers.
4031         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4032
4033 2011-09-23  Bruno Haible  <bruno@clisp.org>
4034
4035         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4036         * lib/msvc-nothrow.h: New file.
4037         * lib/msvc-nothrow.c: New file.
4038         * m4/msvc-nothrow.m4: New file.
4039         * modules/msvc-nothrow: New file.
4040         * lib/dup2.c: Include msvc-nothrow.h.
4041         (rpl_dup2): No need to protect _get_osfhandle call here.
4042         * lib/accept4.c: Include msvc-nothrow.h.
4043         * lib/error.c: Likewise.
4044         * lib/fcntl.c: Likewise.
4045         * lib/lseek.c: Likewise.
4046         * lib/nonblocking.c: Likewise.
4047         * lib/poll.c: Likewise.
4048         * lib/read.c: Likewise.
4049         * lib/select.c: Likewise.
4050         * lib/sockets.h: Likewise.
4051         * lib/sockets.c: Likewise.
4052         * lib/stdio-read.c: Likewise.
4053         * lib/stdio-write.c: Likewise.
4054         * lib/write.c: Likewise.
4055         * lib/w32sock.h: Likewise.
4056         * lib/w32spawn.h: Likewise.
4057         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4058         * lib/fsync.c: Likewise.
4059         * lib/isapipe.c: Likewise.
4060         * modules/dup2 (Depends-on): Add msvc-nothrow.
4061         * modules/accept4 (Depends-on): Likewise.
4062         * modules/error (Depends-on): Likewise.
4063         * modules/fcntl (Depends-on): Likewise.
4064         * modules/lseek (Depends-on): Likewise.
4065         * modules/nonblocking (Depends-on): Likewise.
4066         * modules/poll (Depends-on): Likewise.
4067         * modules/read (Depends-on): Likewise.
4068         * modules/select (Depends-on): Likewise.
4069         * modules/sockets (Depends-on): Likewise.
4070         * modules/sigpipe (Depends-on): Likewise.
4071         * modules/write (Depends-on): Likewise.
4072         * modules/accept (Depends-on): Likewise.
4073         * modules/bind (Depends-on): Likewise.
4074         * modules/connect (Depends-on): Likewise.
4075         * modules/gethostname (Depends-on): Likewise.
4076         * modules/getpeername (Depends-on): Likewise.
4077         * modules/getsockname (Depends-on): Likewise.
4078         * modules/getsockopt (Depends-on): Likewise.
4079         * modules/ioctl (Depends-on): Likewise.
4080         * modules/listen (Depends-on): Likewise.
4081         * modules/recv (Depends-on): Likewise.
4082         * modules/recvfrom (Depends-on): Likewise.
4083         * modules/send (Depends-on): Likewise.
4084         * modules/sendto (Depends-on): Likewise.
4085         * modules/setsockopt (Depends-on): Likewise.
4086         * modules/shutdown (Depends-on): Likewise.
4087         * modules/socket (Depends-on): Likewise.
4088         * modules/execute (Depends-on): Likewise.
4089         * modules/spawn-pipe (Depends-on): Likewise.
4090         * modules/flock (Depends-on): Likewise.
4091         * modules/fsync (Depends-on): Likewise.
4092         * modules/isapipe (Depends-on): Likewise.
4093         * tests/test-cloexec.c: Include msvc-nothrow.h.
4094         * tests/test-dup-safer.c: Likewise.
4095         * tests/test-dup2.c: Likewise.
4096         * tests/test-dup3.c: Likewise.
4097         * tests/test-fcntl.c: Likewise.
4098         * tests/test-pipe.c: Likewise.
4099         * tests/test-pipe2.c: Likewise.
4100         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4101         * modules/unistd-safer-tests (Depends-on): Likewise.
4102         * modules/dup2-tests (Depends-on): Likewise.
4103         * modules/dup3-tests (Depends-on): Likewise.
4104         * modules/fcntl-tests (Depends-on): Likewise.
4105         * modules/pipe-posix-tests (Depends-on): Likewise.
4106         * modules/pipe2-tests (Depends-on): Likewise.
4107
4108 2011-09-23  Bruno Haible  <bruno@clisp.org>
4109
4110         dup2: Make code more maintainable.
4111         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4112         (rpl_dup2): Use it.
4113         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4114         * modules/dup2 (configure.ac): Invoke it.
4115         Reported by Paul Eggert.
4116
4117 2011-09-23  Bruno Haible  <bruno@clisp.org>
4118
4119         msvc-inval: Fix compilation error.
4120         * lib/msvc-inval.h: Include <excpt.h>.
4121
4122 2011-09-23  Bruno Haible  <bruno@clisp.org>
4123
4124         mkdir: Tweak for MSVC 9.
4125         * lib/sys_stat.in.h: Update comments.
4126         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4127
4128         Tests for module 'chdir'.
4129         * modules/chdir-tests: New file.
4130         * tests/test-chdir.c: New file.
4131
4132         New module 'chdir'.
4133         * modules/chdir: New file.
4134         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4135         (chdir): New declaration.
4136         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4137         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4138         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4139         * tests/test-unistd-c++.cc: Check signature of chdir.
4140         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4141         * modules/chdir-long (Depends-on): Add chdir.
4142         * modules/fchdir (Depends-on): Likewise.
4143         * modules/rename (Depends-on): Likewise.
4144         * modules/savewd (Depends-on): Likewise.
4145
4146         rmdir: Support for mingw, MSVC 9.
4147         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4148         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4149
4150         getcwd: Tweak for MSVC 9.
4151         * lib/unistd.in.h: Update comments.
4152         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4153
4154 2011-09-22  Bruno Haible  <bruno@clisp.org>
4155
4156         strerror_r-posix: Avoid a link error on MSVC.
4157         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4158         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4159
4160 2011-09-22  Bruno Haible  <bruno@clisp.org>
4161
4162         select: Avoid link errors on MSVC.
4163         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4164         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4165         * modules/pselect (Link): Likewise.
4166         * NEWS: Mention the change.
4167         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4168         test-select-stdin against $(LIB_SELECT).
4169         * modules/pselect-tests (Makefile.am): Link test-pselect against
4170         $(LIB_SELECT).
4171
4172 2011-09-22  Bruno Haible  <bruno@clisp.org>
4173
4174         select: Avoid compilation error on MSVC.
4175         * lib/select.c: Don't include <stdbool.h>.
4176
4177 2011-09-21  Bruno Haible  <bruno@clisp.org>
4178
4179         Consolidate all uses of PATH_MAX in *.m4 files.
4180         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4181         macros.
4182         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4183         and gl_PATHMAX_SNIPPET.
4184         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4185         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4186         * modules/chdir-long (Files): Add m4/pathmax.m4.
4187         * modules/getcwd (Files): Likewise.
4188
4189 2011-09-21  Bruno Haible  <bruno@clisp.org>
4190
4191         ftruncate: Un-deprecate, concentrate on Win32 support.
4192         * modules/ftruncate (Status, Notice): Remove sections.
4193         (Depends-on): Add largefile.
4194         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4195         non-mingw platforms.
4196         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4197         include <io.h>.
4198         * modules/perror-tests (Depends-on): Add ftruncate.
4199         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4200         'ftruncate' module.
4201
4202 2011-09-21  Bruno Haible  <bruno@clisp.org>
4203
4204         Add dependencies to new dirent related modules.
4205         * modules/opendir (Depends-on): Add closedir.
4206         * modules/getcwd (Depends-on): Add opendir, closedir.
4207         * modules/dirent-safer-tests (Depends-on): Likewise.
4208         * modules/fdopendir-tests (Depends-on): Likewise.
4209         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4210         * modules/renameat-tests (Depends-on): Likewise.
4211
4212 2011-09-21  Bruno Haible  <bruno@clisp.org>
4213
4214         opendir: Avoid compilation error on mingw.
4215         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4216         * modules/opendir (Depends-on): Add unistd.
4217
4218 2011-09-21  Bruno Haible  <bruno@clisp.org>
4219
4220         ftruncate tests: Avoid a test failure on mingw.
4221         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4222
4223 2011-09-21  Bruno Haible  <bruno@clisp.org>
4224
4225         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4226         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4227         native Windows.
4228
4229 2011-09-21  Bruno Haible  <bruno@clisp.org>
4230
4231         New module 'fdopen'.
4232         * lib/stdio.in.h (fdopen): New declaration.
4233         * lib/fdopen.c: New file.
4234         * m4/fdopen.m4: New file.
4235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4236         REPLACE_FDOPEN.
4237         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4238         REPLACE_FDOPEN.
4239         * modules/fdopen: New file.
4240         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4241         * tests/test-stdio-c++.cc: Check signature of fdopen.
4242         * doc/posix-functions/fdopen.texi: Mention the new module.
4243
4244 2011-09-21  Bruno Haible  <bruno@clisp.org>
4245
4246         unlockpt tests: Avoid test failure on NetBSD 5.1.
4247         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4248         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4249
4250 2011-09-21  Bruno Haible  <bruno@clisp.org>
4251
4252         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4253         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4254         * tests/test-getlogin_r.c (main): Likewise.
4255
4256 2011-09-20  Bruno Haible  <bruno@clisp.org>
4257
4258         time tests: Don't require pid_t.
4259         * doc/posix-headers/time.texi: Revert last change.
4260         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4261         * tests/test-time.c: Comment out the check for pid_t.
4262
4263 2011-09-20  Bruno Haible  <bruno@clisp.org>
4264
4265         fsync tests: Avoid a test failure on mingw.
4266         * tests/test-fsync.c (main): Allow a failure with EIO.
4267
4268 2011-09-20  Bruno Haible  <bruno@clisp.org>
4269
4270         euidaccess: Update comments.
4271         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4272
4273 2011-09-20  Bruno Haible  <bruno@clisp.org>
4274
4275         Ensure EBADF returns for socket functions on mingw.
4276         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4277         descriptor is invalid.
4278         * lib/bind.c (rpl_bind): Likewise.
4279         * lib/connect.c (rpl_connect): Likewise.
4280         * lib/getpeername.c (rpl_getpeername): Likewise.
4281         * lib/getsockname.c (rpl_getsockname): Likewise.
4282         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4283         * lib/listen.c (rpl_listen): Likewise.
4284         * lib/recv.c (rpl_recv): Likewise.
4285         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4286         * lib/send.c (rpl_send): Likewise.
4287         * lib/sendto.c (rpl_sendto): Likewise.
4288         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4289         * lib/shutdown.c (rpl_shutdown): Likewise.
4290
4291 2011-09-20  Bruno Haible  <bruno@clisp.org>
4292
4293         select tests: EBADF tests.
4294         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4295         test_bad_fd): New functions.
4296         (test_function): Invoke also test_bad_fd.
4297
4298 2011-09-20  Bruno Haible  <bruno@clisp.org>
4299
4300         Tests for module 'posix_spawn_file_actions_addopen.
4301         * modules/posix_spawn_file_actions_addopen-tests: New file.
4302         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4303
4304         Tests for module 'posix_spawn_file_actions_adddup2'.
4305         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4306         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4307
4308         Tests for module 'posix_spawn_file_actions_addclose'.
4309         * modules/posix_spawn_file_actions_addclose-tests: New file.
4310         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4311
4312 2011-09-20  Bruno Haible  <bruno@clisp.org>
4313
4314         Tests for module 'unlockpt'.
4315         * modules/unlockpt-tests: New file.
4316         * tests/test-unlockpt.c: New file.
4317         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4318
4319         Tests for module 'grantpt'.
4320         * modules/grantpt-tests: New file.
4321         * tests/test-grantpt.c: New file.
4322         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4323
4324 2011-09-20  Bruno Haible  <bruno@clisp.org>
4325
4326         freopen tests: EBADF tests.
4327         * tests/test-freopen.c: Include errno.h, unistd.h.
4328         (main): Add tests for EBADF, commented out for the moment.
4329
4330         fclose tests: EBADF tests.
4331         * tests/test-fclose.c (main): Add tests for EBADF.
4332
4333         fflush tests: EBADF tests.
4334         * tests/test-fflush.c: Include errno.h, macros.h.
4335         (main): Add tests for EBADF.
4336
4337         ftello tests: EBADF tests.
4338         * tests/test-ftello4.sh: New file.
4339         * tests/test-ftello4.c: New file.
4340         * modules/ftello-tests (Files): Add them.
4341         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4342
4343         fseeko tests: EBADF tests.
4344         * tests/test-fseeko4.sh: New file.
4345         * tests/test-fseeko4.c: New file.
4346         * modules/fseeko-tests (Files): Add them.
4347         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4348
4349         Tests for function fputc().
4350         * modules/fputc-tests: New file.
4351         * tests/test-fputc.c: New file.
4352         * modules/stdio-tests (Depends-on): Add fputc-tests.
4353
4354         Tests for function fgetc().
4355         * modules/fgetc-tests: New file.
4356         * tests/test-fgetc.c: New file.
4357         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4358
4359         Tests for function fdopen().
4360         * modules/fdopen-tests: New file.
4361         * tests/test-fdopen.c: New file.
4362         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4363
4364         Tests for module 'vdprintf'.
4365         * modules/vdprintf-tests: New file.
4366         * tests/test-vdprintf.c: New file.
4367
4368         Tests for module 'dprintf'.
4369         * modules/dprintf-tests: New file.
4370         * tests/test-dprintf.c: New file.
4371
4372 2011-09-20  Bruno Haible  <bruno@clisp.org>
4373
4374         Tests for module 'ioctl'.
4375         * modules/ioctl-tests: New file.
4376         * tests/test-ioctl.c: New file.
4377
4378 2011-09-20  Bruno Haible  <bruno@clisp.org>
4379
4380         fcntl tests: EBADF tests.
4381         * tests/test-fcntl.c (main): Add more tests for EBADF.
4382
4383 2011-09-20  Bruno Haible  <bruno@clisp.org>
4384
4385         utimensat tests: EBADF tests.
4386         * tests/test-utimensat.c (main): Add tests for EBADF.
4387
4388         renameat tests: EBADF tests.
4389         * tests/test-renameat.c (main): Add tests for EBADF.
4390
4391         mkfifoat tests: EBADF tests.
4392         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4393
4394         readlinkat tests: EBADF tests.
4395         * tests/test-readlinkat.c (main): Add tests for EBADF.
4396
4397         symlinkat tests: EBADF tests.
4398         * tests/test-symlinkat.c (main): Add tests for EBADF.
4399
4400         linkat tests: EBADF tests.
4401         * tests/test-linkat.c (main): Add tests for EBADF.
4402
4403         Tests for module 'faccessat'.
4404         * modules/faccessat-tests: New file.
4405         * tests/test-faccessat.c: New file.
4406
4407         fdopendir tests: EBADF tests.
4408         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4409
4410         openat tests: EBADF tests.
4411         * tests/test-fchownat.c (main): Add tests for EBADF.
4412         * tests/test-fstatat.c (main): Likewise.
4413         * tests/test-mkdirat.c (main): Likewise.
4414         * tests/test-openat.c (main): Likewise.
4415         * tests/test-unlinkat.c (main): Likewise.
4416         * tests/test-fchmodat.c: New file.
4417         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4418         (Makefile.am): Also run 'test-fchmodat'.
4419
4420 2011-09-20  Bruno Haible  <bruno@clisp.org>
4421
4422         utimens, futimens, fdutimensat tests: EBADF tests.
4423         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4424
4425         Tests for function fstat().
4426         * modules/fstat-tests: New file.
4427         * tests/test-fstat.c: New file.
4428         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4429
4430 2011-09-20  Bruno Haible  <bruno@clisp.org>
4431
4432         test-ttyname_r tests: EBADF tests.
4433         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4434
4435         Tests for module 'isatty'.
4436         * modules/isatty-tests: New file.
4437         * tests/test-isatty.c: New file.
4438
4439         Tests for module 'write'.
4440         * modules/write-tests: New file.
4441         * tests/test-write.c: New file.
4442
4443         Tests for module 'read'.
4444         * modules/read-tests: New file.
4445         * tests/test-read.c: New file.
4446
4447         pwrite tests: EBADF tests.
4448         * tests/test-pwrite.c (main): Add tests for EBADF.
4449
4450         pread tests: EBADF tests.
4451         * tests/test-pread.c (main): Add tests for EBADF.
4452
4453         lseek tests: EBADF tests.
4454         * tests/test-lseek.c (main): Add more tests for EBADF.
4455
4456         Tests for module 'ftruncate'.
4457         * modules/ftruncate-tests: New file.
4458         * tests/test-ftruncate.sh: New file.
4459         * tests/test-ftruncate.c: New file.
4460
4461         fsync tests: EBADF tests.
4462         * tests/test-fsync.c (main): Add more tests for EBADF.
4463
4464         fdatasync tests: EBADF tests.
4465         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4466
4467         Tests for module 'fchown'.
4468         * modules/fchown-tests: New file.
4469         * tests/test-fchown.c: New file.
4470
4471         Tests for module 'fchmod'.
4472         * modules/fchmod-tests: New file.
4473         * tests/test-fchmod.c: New file.
4474
4475         fchdir tests: EBADF tests.
4476         * tests/test-fchdir.c (main): Add more tests for EBADF.
4477
4478         dup2 tests: EBADF tests.
4479         * tests/test-dup2.c (main): Add more tests for EBADF.
4480
4481         Tests for module 'dup'.
4482         * modules/dup-tests: New file.
4483         * tests/test-dup.c: New file.
4484
4485         Tests for module 'close'.
4486         * modules/close-tests: New file.
4487         * tests/test-close.c: New file.
4488
4489 2011-09-20  Bruno Haible  <bruno@clisp.org>
4490
4491         Tests for module 'shutdown'.
4492         * modules/shutdown-tests: New file.
4493         * tests/test-shutdown.c: New file.
4494
4495         Tests for module 'setsockopt'.
4496         * modules/setsockopt-tests: New file.
4497         * tests/test-setsockopt.c: New file.
4498
4499         Tests for module 'sendto'.
4500         * modules/sendto-tests: New file.
4501         * tests/test-sendto.c: New file.
4502
4503         Tests for module 'send'.
4504         * modules/send-tests: New file.
4505         * tests/test-send.c: New file.
4506
4507         Tests for module 'recvfrom'.
4508         * modules/recvfrom-tests: New file.
4509         * tests/test-recvfrom.c: New file.
4510
4511         Tests for module 'recv'.
4512         * modules/recv-tests: New file.
4513         * tests/test-recv.c: New file.
4514
4515         Tests for module 'listen'.
4516         * modules/listen-tests: New file.
4517         * tests/test-listen.c: New file.
4518
4519         Tests for module 'getsockopt'.
4520         * modules/getsockopt-tests: New file.
4521         * tests/test-getsockopt.c: New file.
4522
4523         Tests for module 'getsockname'.
4524         * modules/getsockname-tests: New file.
4525         * tests/test-getsockname.c: New file.
4526
4527         Tests for module 'getpeername'.
4528         * modules/getpeername-tests: New file.
4529         * tests/test-getpeername.c: New file.
4530
4531         Tests for module 'connect'.
4532         * modules/connect-tests: New file.
4533         * tests/test-connect.c: New file.
4534
4535         Tests for module 'bind'.
4536         * modules/bind-tests: New file.
4537         * tests/test-bind.c: New file.
4538
4539         accept4 tests: Fix for native Windows.
4540         * tests/test-accept4.c: Include sockets.h.
4541         (main): Invoke gl_sockets_startup.
4542         * modules/accept4-tests (Depends-on): Add sockets.
4543
4544         accept tests: Fix for native Windows.
4545         * tests/test-accept.c: Include sockets.h.
4546         (main): Invoke gl_sockets_startup.
4547         * modules/accept-tests (Depends-on): Add sockets.
4548
4549 2011-09-19  Bruno Haible  <bruno@clisp.org>
4550
4551         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4552         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4553         do...while(0).
4554         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4555         Suggested by Paul Eggert.
4556
4557 2011-09-19  Bruno Haible  <bruno@clisp.org>
4558
4559         sched: Ensure pid_t is defined.
4560         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4561         not define pid_t.
4562         * lib/sched.in.h: Include <sys/types.h>.
4563         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4564         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4565
4566 2011-09-19  Bruno Haible  <bruno@clisp.org>
4567
4568         msvc-inval: Ensure the entire expansion is a single statement.
4569         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4570         of braces.
4571
4572 2011-09-19  Jim Meyering  <meyering@redhat.com>
4573
4574         tests: use printf, not echo in init.sh's warn_ function
4575         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4576         misbehave when given strings containing a backslash or starting
4577         with e.g., -n.  James Youngman suggested setting IFS.
4578
4579 2011-09-19  Eric Blake  <eblake@redhat.com>
4580
4581         futimens: enhance test
4582         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4583         closed non-negative fd.
4584
4585         date: accept 'hence' as opposite of 'ago'
4586         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4587         * tests/test-parse-datetime.c (main): Enhance test.
4588         Suggested by Jesse Wilson.
4589
4590 2011-09-19  Jim Meyering  <meyering@redhat.com>
4591
4592         getcwd: don't fail in a deep directory on a system without openat
4593         Before this change, getcwd would fail when called from a directory
4594         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4595         the non-openat implementation used "..", "../..", "../../..", etc.
4596         to access ancestor directories.  With too many, that string would
4597         be longer than PATH_MAX.
4598         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4599         using gnulib's openat replacement.
4600         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4601         we're using the replacement function.
4602
4603 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4604
4605         maint.mk: avoid warnings from perl about missing files
4606         * top/maint.mk (def_sym_regex): Ignore files listed in
4607         $(gl_other_headers_) that do not exist, say because a project
4608         does not use a corresponding module.
4609
4610 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4611
4612         stat: use pathmax.h only if needed
4613         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4614         This is better for Emacs, which does not have a mingw port and
4615         therefore can avoid the pathmax module.
4616
4617         utimens: remove dependency on dup2
4618         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4619         to work around the Linux kernel bug.
4620         * modules/utimens (Depends-on): Remove dup2.
4621
4622 2011-09-18  Bruno Haible  <bruno@clisp.org>
4623
4624         inet_ntop, inet_pton: Look for it also in libresolv.
4625         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4626         libnsl, search for it in libresolv.
4627         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4628         Needed on Solaris 7.
4629
4630 2011-09-18  Bruno Haible  <bruno@clisp.org>
4631
4632         accept, accept4 tests: Avoid link error on Solaris.
4633         * modules/accept-tests (Makefile.am): Link test-accept against
4634         $(LIBSOCKET).
4635         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4636         $(LIBSOCKET).
4637
4638         accept4: Avoid link error on Solaris.
4639         * modules/accept4 (Link): New section.
4640
4641         socket functions: Avoid link errors on Solaris.
4642         * modules/accept (Depends-on): Add socketlib.
4643         (Link): New section.
4644         * modules/bind (Depends-on): Add socketlib.
4645         (Link): New section.
4646         * modules/connect (Depends-on): Add socketlib.
4647         (Link): New section.
4648         * modules/getpeername (Depends-on): Add socketlib.
4649         (Link): New section.
4650         * modules/getsockname (Depends-on): Add socketlib.
4651         (Link): New section.
4652         * modules/getsockopt (Depends-on): Add socketlib.
4653         (Link): New section.
4654         * modules/listen (Depends-on): Add socketlib.
4655         (Link): New section.
4656         * modules/recv (Depends-on): Add socketlib.
4657         (Link): New section.
4658         * modules/recvfrom (Depends-on): Add socketlib.
4659         (Link): New section.
4660         * modules/send (Depends-on): Add socketlib.
4661         (Link): New section.
4662         * modules/sendto (Depends-on): Add socketlib.
4663         (Link): New section.
4664         * modules/setsockopt (Depends-on): Add socketlib.
4665         (Link): New section.
4666         * modules/shutdown (Depends-on): Add socketlib.
4667         (Link): New section.
4668         * modules/socket (Depends-on): Add socketlib.
4669         (Link): New section.
4670
4671 2011-09-18  Bruno Haible  <bruno@clisp.org>
4672
4673         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4674         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4675         than 5 seconds.
4676         * modules/ptsname-tests (configure.ac): Test for alarm.
4677
4678 2011-09-18  Bruno Haible  <bruno@clisp.org>
4679
4680         posix_spawn_file_actions_add*: Fix module dependencies.
4681         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4682         posix_spawn_file_actions_init.
4683         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4684         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4685
4686 2011-09-18  Bruno Haible  <bruno@clisp.org>
4687
4688         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4689         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4690         * tests/test-renameat.c (main): Likewise.
4691
4692 2011-09-18  Bruno Haible  <bruno@clisp.org>
4693
4694         Tests for module 'accept4'.
4695         * modules/accept4-tests: New file.
4696         * tests/test-accept4.c: New file.
4697
4698 2011-09-18  Bruno Haible  <bruno@clisp.org>
4699
4700         Tests for module 'accept'.
4701         * modules/accept-tests: New file.
4702         * tests/test-accept.c: New file.
4703
4704 2011-09-18  Bruno Haible  <bruno@clisp.org>
4705
4706         dup2: Support for MSVC.
4707         * lib/dup2.c: Include msvc-inval.h.
4708         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4709         _get_osfhandle calls.
4710         * modules/dup2 (Depends-on): Add msvc-inval.
4711         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4712
4713         New module 'msvc-inval'.
4714         * lib/msvc-inval.h: New file.
4715         * lib/msvc-inval.c: New file.
4716         * m4/msvc-inval.m4: New file.
4717         * modules/msvc-inval: New file.
4718
4719 2011-09-17  Bruno Haible  <bruno@clisp.org>
4720
4721         Tests for module 'pclose'.
4722         * modules/pclose-tests: New file.
4723
4724         New module 'pclose'.
4725         * lib/stdio.in.h (pclose): New declaration.
4726         * lib/pclose.c: New file.
4727         * m4/pclose.m4: New file.
4728         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4729         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4730         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4731         * modules/pclose: New file.
4732         * modules/popen-tests (Depends-on): Add pclose.
4733         * modules/popen-safer-tests (Depends-on): Likewise.
4734         * doc/posix-functions/pclose.texi: Mention the new module.
4735
4736 2011-09-17  Bruno Haible  <bruno@clisp.org>
4737
4738         popen: Support for MSVC.
4739         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4740         * lib/popen.c (popen): Provide alternate definition for native Windows.
4741         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4743         * modules/popen (Depends-on, configure.ac): Update condition.
4744         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4745         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4746         fixed.
4747
4748 2011-09-17  Bruno Haible  <bruno@clisp.org>
4749
4750         isnanl, isnand, isnanf: Work around MSVC bug.
4751         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4752
4753 2011-09-17  Bruno Haible  <bruno@clisp.org>
4754
4755         sys_socket tests: Fix recent mistake.
4756         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4757
4758 2011-09-17  Bruno Haible  <bruno@clisp.org>
4759
4760         putenv: Support for MSVC.
4761         * modules/putenv (Depends-on): Add environ.
4762         * lib/putenv.c (environ): Disable declaration.
4763         * lib/unistd.in.h: Update comment.
4764
4765 2011-09-17  Bruno Haible  <bruno@clisp.org>
4766
4767         math: Avoid macro redefinition warnings on MSVC.
4768         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4769         Undefine before redefining.
4770
4771 2011-09-17  Bruno Haible  <bruno@clisp.org>
4772
4773         doc: Mention functions which are declared as macros.
4774         * doc/posix-functions/*[fl].texi: Mention that some functions are
4775         defined as macros with arguments only.
4776
4777 2011-09-17  Bruno Haible  <bruno@clisp.org>
4778
4779         Add dependencies to new dirent related modules.
4780         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4781         * modules/fts (Depends-on): Likewise.
4782         * modules/glob (Depends-on): Likewise.
4783         * modules/savedir (Depends-on): Likewise.
4784         * modules/scandir (Depends-on): Likewise.
4785         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4786         * modules/fdopendir (Depends-on): Add opendir.
4787
4788 2011-09-17  Bruno Haible  <bruno@clisp.org>
4789
4790         inet_pton: Support for MSVC on Windows Vista or newer.
4791         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4792         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4793         HAVE_DECL_INET_PTON is defined.
4794         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4795         On platforms with <winsock2.h>, test whether inet_pton is declared in
4796         <ws2tcpip.h>. If so, arrange to replace it.
4797         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4798         REPLACE_INET_PTON.
4799         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4800         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4801         (Depends-on, configure.ac): Update condition.
4802         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4803
4804 2011-09-17  Bruno Haible  <bruno@clisp.org>
4805
4806         inet_ntop: Support for MSVC on Windows Vista or newer.
4807         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4808         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4809         HAVE_DECL_INET_NTOP is defined.
4810         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4811         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4812         <ws2tcpip.h>. If so, arrange to replace it.
4813         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4814         REPLACE_INET_NTOP.
4815         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4816         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4817         (Depends-on, configure.ac): Update condition.
4818         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4819
4820 2011-09-16  Eric Blake  <eblake@redhat.com>
4821
4822         test-fsync: yet another enhancement
4823         * tests/test-fsync.c (main): Also test behavior on read-only text
4824         file.
4825
4826 2011-09-16  Bruno Haible  <bruno@clisp.org>
4827
4828         Enhance fsync, fdatasync tests.
4829         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4830         * tests/test-fdatasync.c (main): Likewise.
4831
4832 2011-09-16  Bruno Haible  <bruno@clisp.org>
4833
4834         Support for MSVC compiler: Ensure mode_t gets defined.
4835         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4836         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4837         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4838         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4839         * tests/test-fcntl-h.c: Check that mode_t is defined.
4840         * tests/test-sys_stat.c: Likewise.
4841         * tests/test-sys_types.c: Likewise.
4842         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4843         * doc/posix-headers/sys_stat.texi: Likewise.
4844         * doc/posix-headers/sys_types.texi: Likewise.
4845
4846 2011-09-16  Bruno Haible  <bruno@clisp.org>
4847
4848         sys_stat: Support for MSVC.
4849         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4850         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4851         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4852         MSVC.
4853
4854 2011-09-16  Bruno Haible  <bruno@clisp.org>
4855
4856         Support for MSVC compiler: Ensure off_t gets defined.
4857         * lib/unistd.in.h: Include <sys/types.h>.
4858         * tests/test-fcntl-h.c: Check that off_t is defined.
4859         * tests/test-sys_stat.c: Likewise.
4860         * tests/test-sys_types.c: Likewise.
4861
4862 2011-09-16  Eric Blake  <eblake@redhat.com>
4863
4864         fdatasync: port to Solaris
4865         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4866         * modules/fdatasync (Link): Document it.
4867         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4868
4869         fdatasync: port to MacOS X 10.7
4870         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4871         declared.
4872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4873         * modules/unistd (Makefile.am): Substitute it.
4874         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4875         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4876
4877         fdatasync: minor improvements
4878         * modules/fdatasync (Depends-on): Add condition for fsync.
4879         * lib/fdatasync.c (fdatasync): Add comment.
4880         * tests/test-unistd-c++.cc: Test fdatasync.
4881
4882         unistd: update refs to newer POSIX
4883         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4884         Suggested by Bruno Haible.
4885
4886         fdatasync: new module
4887         * modules/fsync (Description): Document difference to fdatasync.
4888         * modules/fdatasync: New module.
4889         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4890         * lib/fdatasync.c (fdatasync): Likewise.
4891         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4892         defaults.
4893         * modules/unistd (Makefile.am): Set witnesses.
4894         * lib/unistd.in.h (fdatasync): Declare.
4895         * MODULES.html.sh: Document it.
4896         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4897         * modules/fdatasync-tests: New test.
4898         * tests/test-fdatasync.c: Likewise.
4899
4900 2011-09-16  Eric Blake  <eblake@redhat.com>
4901
4902         test-fsync: enhance tests
4903         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4904         * tests/test-fsync.c (main): Enhance test.
4905
4906 2011-09-15  Bruno Haible  <bruno@clisp.org>
4907
4908         Support for MSVC compiler: Ensure ssize_t gets defined.
4909         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4910         * doc/posix-headers/stdio.texi: Likewise.
4911         * modules/stdio (Depends-on): Add ssize_t.
4912         * modules/sys_socket (Depends-on): Likewise.
4913         * modules/sys_types (Depends-on): Likewise.
4914         * modules/sys_uio (Depends-on): Likewise.
4915         * modules/unistd (Depends-on): Likewise.
4916         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4917         * tests/test-sys_types.c: Check that ssize_t is defined.
4918
4919 2011-09-14  Bruno Haible  <bruno@clisp.org>
4920
4921         Avoid using #, the m4 comment starter character, near brackets.
4922         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4923         delimiter character in sed expressions.
4924         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4925         Suggested by Eric Blake.
4926
4927         Properly quote AC_CHECK_DECLS' 4th argument.
4928         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4929         argument.
4930         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4931         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4932         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4933         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4934         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4935         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4936         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4937         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4938         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4939         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4940         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4941         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4942         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4943         * m4/isinf.m4 (gl_ISINF): Likewise.
4944         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4945         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4946         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4947         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4948         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4949         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4950         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4951         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4952         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4953         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4954         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4955         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4957         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4958         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4959         Reported by Eric Blake.
4960
4961         Properly quote AC_CHECK_DECL's 4th argument.
4962         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4963         argument.
4964         * m4/argp.m4 (gl_ARGP): Likewise.
4965         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4966         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4967         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4968         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4969         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4970         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4971         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4972         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4973         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4974         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4975         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4976         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4977         Reported by Eric Blake.
4978
4979 2011-09-14  Eric Blake  <eblake@redhat.com>
4980
4981         opendir: avoid compile warning
4982         * lib/opendir.c (includes): Always include errno.h.
4983         Reported by Tatsuro MATSUOKA.
4984
4985 2011-09-14  Jim Meyering  <meyering@redhat.com>
4986
4987         maint.mk: sc_tight_scope: propagate failure from sub-make
4988         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4989         Reported by Martin von Gagern.
4990
4991 2011-09-13  Bruno Haible  <bruno@clisp.org>
4992
4993         tempname: Support for MSVC.
4994         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4995         MSVC.
4996         * modules/tempname (Depends-on): Add fcntl-h.
4997
4998 2011-09-13  Bruno Haible  <bruno@clisp.org>
4999
5000         sys_time: Support for MSVC.
5001         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5002         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5003         include <winsock2.h>.
5004         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5005         function declarations that collide with POSIX.
5006         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5007         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5008
5009 2011-09-13  Bruno Haible  <bruno@clisp.org>
5010
5011         stat: Support for MSVC.
5012         * lib/stat.c: Include pathmax.h.
5013         * modules/stat (Depends-on): Add pathmax.
5014
5015         pathmax: Support for native Windows.
5016         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5017
5018 2011-09-12  Bruno Haible  <bruno@clisp.org>
5019
5020         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5021         * lib/dirent.in.h (struct dirent): New type.
5022         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5023         DT_WHT): New macros.
5024         (DIR): New type.
5025         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5026         (readdir, rewinddir): New declarations.
5027         * lib/dirent-private.h: New file.
5028         * lib/opendir.c: New file.
5029         * lib/readdir.c: New file.
5030         * lib/rewinddir.c: New file.
5031         * lib/closedir.c: New file.
5032         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5033         * m4/opendir.m4: New file.
5034         * m4/readdir.m4: New file.
5035         * m4/rewinddir.m4: New file.
5036         * m4/closedir.m4: New file.
5037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5038         REPLACE_CLOSEDIR here.
5039         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5040         readdir, rewinddir are declared.
5041         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5042         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5043         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5044         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5045         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5046         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5047         * modules/opendir: New file.
5048         * modules/readdir: New file.
5049         * modules/rewinddir: New file.
5050         * modules/closedir: New file.
5051         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5052         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5053         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5054         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5055         * NEWS: Mention the 'fchdir' change.
5056
5057 2011-09-11  Bruno Haible  <bruno@clisp.org>
5058
5059         asm-underscore.m4: Support for MSVC.
5060         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5061         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5062
5063 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5064
5065         Doc about crypt functions.
5066         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5067         needing for _GNU_SOURCE to get crypt.
5068         * doc/posix-functions/encrypt.texi: Likewise.
5069         * doc/posix-functions/setkey.texi: Likewise.
5070
5071 2011-09-11  Bruno Haible  <bruno@clisp.org>
5072
5073         doc: Update regarding MSVC 9.
5074         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5075         tested".
5076         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5077         * doc/posix-headers/*.texi: Likewise.
5078         * doc/pastposix-functions/*.texi: Likewise.
5079         * doc/glibc-functions/*.texi: Likewise.
5080         * doc/glibc-headers/*.texi: Likewise.
5081
5082 2011-09-11  Bruno Haible  <bruno@clisp.org>
5083
5084         unistd et al.: Don't assume <unistd.h> exists.
5085         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5086         does not exist.
5087         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5088         exist. But include <stdlib.h>.
5089         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5090         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5091         symlink() does not exist.
5092         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5093         include <io.h> instead.
5094         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5095         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5096         include <direct.h> instead.
5097         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5098         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5099         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5100         <io.h> instead.
5101         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5102         correctly if the system does not have hard links.
5103         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5104         <direct.h> instead.
5105         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5106         it when looking for function declarations.
5107         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5108         <direct.h> and <io.h> instead.
5109         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5110
5111 2011-09-11  Bruno Haible  <bruno@clisp.org>
5112
5113         strcase: Support for MSVC.
5114         * modules/strcase (Status, Notice): Remove obsoletion mark.
5115         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5116         * doc/posix-functions/strncasecmp.texi: Likewise.
5117
5118         strings: Don't assume <strings.h> exists.
5119         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5120         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5121         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5122         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5123
5124 2011-09-11  Bruno Haible  <bruno@clisp.org>
5125
5126         dirent: Don't assume <dirent.h> exists.
5127         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5128         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5129         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5130         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5131
5132 2011-09-11  Bruno Haible  <bruno@clisp.org>
5133
5134         Fix wint_t on MSVC.
5135         * lib/wchar.in.h (wint_t): On MSVC, override it.
5136         * lib/wctype.in.h (wint_t): Likewise.
5137         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5138         MSVC.
5139         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5140         * doc/posix-headers/wctype.texi: Likewise.
5141
5142 2011-09-11  Bruno Haible  <bruno@clisp.org>
5143
5144         sys_types: Fix typo.
5145         * lib/sys_types.in.h: Fix typo in comment.
5146         Reported by Paul Eggert.
5147
5148         Support for MSVC compiler: Ensure size_t gets defined.
5149         * modules/strings (Depends-on): Add 'sys_types'.
5150         * modules/sys_uio (Depends-on): Likewise.
5151         * lib/sys_uio.in.h: Update comment.
5152
5153         C++ tests for module 'sys_types'.
5154         * modules/sys_types-c++-tests: New file.
5155         * tests/test-sys_types-c++.cc: New file.
5156
5157         Tests for module 'sys_types'.
5158         * modules/sys_types-tests: New file.
5159         * tests/test-sys_types.c: New file.
5160
5161         New module 'sys_types'.
5162         * lib/sys_types.in.h: New file.
5163         * m4/sys_types_h.m4: New file.
5164         * modules/sys_types: New file.
5165         * doc/posix-headers/sys_types.texi: Mention the new module and the
5166         size_t problem on MSVC 9.
5167
5168 2011-09-11  Bruno Haible  <bruno@clisp.org>
5169
5170         Support for MSVC compiler: Avoid division by a literal 0.
5171         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5172         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5173         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5174         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5175         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5176         * tests/infinity.h: New file.
5177         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5178         on MSVC.
5179         * tests/test-ceilf1.c: Include infinity.h.
5180         (main): Use Infinityf.
5181         * tests/test-ceil1.c: Include infinity.h.
5182         (main): Use Infinityd.
5183         * tests/test-ceill.c: Include infinity.h.
5184         (main): Use Infinityl.
5185         * tests/test-dprintf-posix.c: Include infinity.h.
5186         (test_function): Use Infinityd.
5187         * tests/test-floorf1.c: Include infinity.h.
5188         (main): Use Infinityf.
5189         * tests/test-floor1.c: Include infinity.h.
5190         (main): Use Infinityd.
5191         * tests/test-floorl.c: Include infinity.h.
5192         (main): Use Infinityl.
5193         * tests/test-fprintf-posix.c: Include infinity.h.
5194         (test_function): Use Infinityd.
5195         * tests/test-frexp.c: Include infinity.h.
5196         (main): Use Infinityd.
5197         * tests/test-frexpl.c: Include infinity.h.
5198         (main): Use Infinityl.
5199         * tests/test-isfinite.c: Include infinity.h.
5200         (test_isfinitef): Use Infinityf.
5201         (test_isfinited): Use Infinityd.
5202         (test_isfinitel): Use Infinityl.
5203         * tests/test-isinf.c: Include infinity.h.
5204         (test_isinff): Use Infinityf.
5205         (test_isinfd): Use Infinityd.
5206         (test_isinfl): Use Infinityl.
5207         * tests/test-isnan.c: Include infinity.h.
5208         (test_float): Use Infinityf.
5209         (test_double): Use Infinityd.
5210         (test_long_double): Use Infinityl.
5211         * tests/test-isnanf.h: Include infinity.h.
5212         (main): Use Infinityf.
5213         * tests/test-isnand.h: Include infinity.h.
5214         (main): Use Infinityd.
5215         * tests/test-isnanl.h: Include infinity.h.
5216         (main): Use Infinityl.
5217         * tests/test-ldexpl.c: Include infinity.h.
5218         (main): Use Infinityl.
5219         * tests/test-printf-posix.h: Include infinity.h.
5220         (test_function): Use Infinityd.
5221         * tests/test-roundf1.c: Include infinity.h.
5222         (main): Use Infinityf.
5223         * tests/test-round1.c: Include infinity.h.
5224         (main): Use Infinityd.
5225         * tests/test-roundl.c: Include infinity.h.
5226         (main): Use Infinityl.
5227         * tests/test-signbit.c: Include infinity.h.
5228         (test_signbitf): Use Infinityf.
5229         (test_signbitd): Use Infinityd.
5230         (test_signbitl): Use Infinityl.
5231         * tests/test-snprintf-posix.h: Include infinity.h.
5232         (test_function): Use Infinityd, Infinityl.
5233         * tests/test-sprintf-posix.h: Include infinity.h.
5234         (test_function): Use Infinityd, Infinityl.
5235         * tests/test-truncf1.c: Include infinity.h.
5236         (main): Use Infinityf.
5237         * tests/test-trunc1.c: Include infinity.h.
5238         (main): Use Infinityd.
5239         * tests/test-truncl.c: Include infinity.h.
5240         (main): Use Infinityl.
5241         * tests/test-vasnprintf-posix.c: Include infinity.h.
5242         (test_function): Use Infinityd, Infinityl.
5243         * tests/test-vasprintf-posix.c: Include infinity.h.
5244         (test_function): Use Infinityd, Infinityl.
5245         * modules/ceilf-tests (Files): Add tests/infinity.h.
5246         * modules/ceil-tests (Files): Likewise.
5247         * modules/ceill-tests (Files): Likewise.
5248         * modules/dprintf-posix-tests (Files): Likewise.
5249         * modules/floorf-tests (Files): Likewise.
5250         * modules/floor-tests (Files): Likewise.
5251         * modules/floorl-tests (Files): Likewise.
5252         * modules/fprintf-posix-tests (Files): Likewise.
5253         * modules/frexp-tests (Files): Likewise.
5254         * modules/frexp-nolibm-tests (Files): Likewise.
5255         * modules/frexpl-tests (Files): Likewise.
5256         * modules/frexpl-nolibm-tests (Files): Likewise.
5257         * modules/isfinite-tests (Files): Likewise.
5258         * modules/isinf-tests (Files): Likewise.
5259         * modules/isnan-tests (Files): Likewise.
5260         * modules/isnanf-tests (Files): Likewise.
5261         * modules/isnanf-nolibm-tests (Files): Likewise.
5262         * modules/isnand-tests (Files): Likewise.
5263         * modules/isnand-nolibm-tests (Files): Likewise.
5264         * modules/isnanl-tests (Files): Likewise.
5265         * modules/isnanl-nolibm-tests (Files): Likewise.
5266         * modules/ldexpl-tests (Files): Likewise.
5267         * modules/printf-posix-tests (Files): Likewise.
5268         * modules/roundf-tests (Files): Likewise.
5269         * modules/round-tests (Files): Likewise.
5270         * modules/roundl-tests (Files): Likewise.
5271         * modules/signbit-tests (Files): Likewise.
5272         * modules/snprintf-posix-tests (Files): Likewise.
5273         * modules/sprintf-posix-tests (Files): Likewise.
5274         * modules/truncf-tests (Files): Likewise.
5275         * modules/trunc-tests (Files): Likewise.
5276         * modules/truncl-tests (Files): Likewise.
5277         * modules/vasnprintf-posix-tests (Files): Likewise.
5278         * modules/vasprintf-posix-tests (Files): Likewise.
5279         * modules/vdprintf-posix-tests (Files): Likewise.
5280         * modules/vfprintf-posix-tests (Files): Likewise.
5281         * modules/vprintf-posix-tests (Files): Likewise.
5282         * modules/vsnprintf-posix-tests (Files): Likewise.
5283         * modules/vsprintf-posix-tests (Files): Likewise.
5284         * modules/xprintf-posix-tests (Files): Likewise.
5285
5286 2011-09-11  Bruno Haible  <bruno@clisp.org>
5287
5288         Ensure pid_t gets defined.
5289         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5290         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5291         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5292         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5293         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5294         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5295         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5296         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5297         * tests/test-fcntl-h.c: Check that pid_t is defined.
5298         * tests/test-sched.c: Likewise.
5299         * tests/test-termios.c: Likewise.
5300         * tests/test-time.c: Likewise.
5301         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5302         * doc/posix-headers/signal.texi: Likewise.
5303         * doc/posix-headers/sys_types.texi: Likewise.
5304         * doc/posix-headers/time.texi: Likewise.
5305
5306 2011-09-11  Bruno Haible  <bruno@clisp.org>
5307
5308         acl: Fix compilation on Solaris 10 (older version).
5309         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5310         of ACE_EVERYONE.
5311         * lib/set-mode-acl.c (qset_acl): Likewise.
5312         Reported by Christian Jullien <eligis@orange.fr>.
5313
5314 2011-09-10  Bruno Haible  <bruno@clisp.org>
5315
5316         iconv, unsetenv: Add support for MSVC compiler.
5317         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5318         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5319
5320 2011-09-10  Bruno Haible  <bruno@clisp.org>
5321
5322         *printf: Add support for MSVC compiler.
5323         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5324         handles the exception caused by the %n directive. When cross-compiling,
5325         guess no on native Windows.
5326         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5327         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5328         emulate it through vsnprintf.
5329         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5330         * doc/posix-functions/dprintf.texi: Update documentation regarding
5331         MSVC 9.
5332         * doc/posix-functions/fprintf.texi: Likewise.
5333         * doc/posix-functions/printf.texi: Likewise.
5334         * doc/posix-functions/snprintf.texi: Likewise.
5335         * doc/posix-functions/sprintf.texi: Likewise.
5336         * doc/posix-functions/swprintf.texi: Likewise.
5337         * doc/posix-functions/vdprintf.texi: Likewise.
5338         * doc/posix-functions/vfprintf.texi: Likewise.
5339         * doc/posix-functions/vprintf.texi: Likewise.
5340         * doc/posix-functions/vsnprintf.texi: Likewise.
5341         * doc/posix-functions/vsprintf.texi: Likewise.
5342         * doc/glibc-functions/asprintf.texi: Likewise.
5343         * doc/glibc-functions/obstack_printf.texi: Likewise.
5344         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5345         * doc/glibc-functions/vasprintf.texi: Likewise.
5346
5347 2011-09-10  Bruno Haible  <bruno@clisp.org>
5348
5349         nocrash: Add support for native Windows.
5350         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5351
5352 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5353             Bruno Haible  <bruno@clisp.org>
5354
5355         absolute-header, include-next: Add support for MSVC compiler.
5356         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5357         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5358         directory separator in #line directives.
5359         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5360         recognize also backslash as directory separator in #line directives.
5361
5362 2011-09-08  Jim Meyering  <meyering@redhat.com>
5363
5364         maint.mk: mark the post-release commit log with "maint: " prefix
5365         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5366         one-line commit-log summary.
5367
5368 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5369             Bruno Haible  <bruno@clisp.org>
5370
5371         Doc about crypt functions.
5372         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5373         systems.
5374         * doc/posix-functions/encrypt.texi: Likewise.
5375         * doc/posix-functions/setkey.texi: Likewise.
5376
5377 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5378
5379         * lib/gc.h: Fix copyright header.
5380
5381 2011-09-07  Bruno Haible  <bruno@clisp.org>
5382
5383         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5384         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5385         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5386
5387 2011-09-07  Bruno Haible  <bruno@clisp.org>
5388
5389         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5390         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5391         * lib/freopen.c: Likewise.
5392         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5393         * lib/lstat.c: Likewise.
5394         * lib/stat.c: Likewise.
5395         * lib/open.c: Use different syntax for include of <fcntl.h>.
5396         * lib/openat.c: Include fcntl.h again, explicitly.
5397
5398 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5399
5400         parse-datetime: document the newly accepted format
5401         * doc/parse-datetime.texi (Combined date and time of day items):
5402         New section.
5403
5404 2011-09-06  Bruno Haible  <bruno@clisp.org>
5405
5406         acl: Fix a test failure on newer Solaris 10 with ZFS.
5407         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5408         ENOSYS as no ACL.
5409         Reported by Jim Meyering.
5410
5411 2011-09-06  Bruno Haible  <bruno@clisp.org>
5412
5413         acl: Update for AIX >= 5.3 with NFS.
5414         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5415         ENOSYS as no ACL.
5416
5417         acl: Fix a test failure on AIX >= 5.3 with NFS.
5418         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5419         as no ACL.
5420
5421 2011-09-06  Bruno Haible  <bruno@clisp.org>
5422
5423         acl: Fix a test failure on IRIX 6.5 with NFS.
5424         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5425         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5426         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5427         * lib/copy-acl.c (qcopy_acl): Likewise.
5428
5429 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5430
5431         openat: port to AIX 7.1 with large files
5432         AIX 7.1 does a "#define openat open64at" if large files are in use,
5433         so we can't simply #undef openat.  Use the orig_openat trick (similar
5434         to orig_open in lib/open.c) to work around the problem.  Problem
5435         reported by Kevin Brott for GNU tar, in the thread containing
5436         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5437         * lib/openat.c (__need_system_fcntl_h): Define first.
5438         Include <fcntl.h> and <sys/types.h> before undefining.
5439         (orig_openat) [HAVE_OPENAT]: New inline function.
5440         (openat) [HAVE_OPENAT]: Do not undef.
5441         (rpl_openat): Use orig_openat, not openat.
5442
5443 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5444             Bruno Haible  <bruno@clisp.org>
5445
5446         acl: Avoid errors on NonStop Kernel.
5447         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5448         ENOTSUP errors.
5449
5450 2011-09-05  Bruno Haible  <bruno@clisp.org>
5451
5452         acl: Clean up Solaris code.
5453         * lib/acl-internal.h: Remove no-op #if.
5454         * lib/file-has-acl.c: Likewise.
5455         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5456         * lib/copy-acl.c (qcopy_acl): Likewise.
5457
5458 2011-09-05  Bruno Haible  <bruno@clisp.org>
5459
5460         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5461         binaries built on the original Solaris 10.
5462         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5463         trivial.
5464
5465 2011-09-05  Bruno Haible  <bruno@clisp.org>
5466
5467         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5468         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5469         10.
5470         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5471         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5472         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5473         instead of acl_get, facl_get, acl_set, facl_set.
5474
5475 2011-09-05  Bruno Haible  <bruno@clisp.org>
5476
5477         copy-file: Try unit tests on more file systems.
5478         * tests/test-copy-file-1.sh: New file.
5479         * tests/test-copy-file-2.sh: New file.
5480         * modules/copy-file-tests (Files): Add them.
5481         (Makefile.am): Add them to TESTS.
5482
5483         acl: Try unit tests on more file systems.
5484         * tests/test-file-has-acl-1.sh: New file.
5485         * tests/test-file-has-acl-2.sh: New file.
5486         * tests/test-set-mode-acl-1.sh: New file.
5487         * tests/test-set-mode-acl-2.sh: New file.
5488         * tests/test-copy-acl-1.sh: New file.
5489         * tests/test-copy-acl-2.sh: New file.
5490         * modules/acl-tests (Files): Add them.
5491         (Makefile.am): Add them to TESTS.
5492
5493 2011-09-04  Bruno Haible  <bruno@clisp.org>
5494
5495         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5496         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5497         10.
5498         (OLD_ALLOW, OLD_DENY): New macros.
5499         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5500         ACE_ACCESS_ALLOWED_ACE_TYPE.
5501         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5502         ACE_ACCESS_DENIED_ACE_TYPE.
5503         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5504         (NEW_ACE_EXECUTE): Fix value.
5505         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5506         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5507         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5508         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5509         NEW_ACE_SYNCHRONIZE): New macros.
5510         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5511         instead of acl_fromtext, acl_set, facl_set.
5512         Fixes a coreutils/tests/cp/perm failure.
5513
5514 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5515
5516         openat: test for fstatat (..., 0) bug
5517         Further testing with tar suggests that fstatat (..., 0)
5518         does not work in general, on AIX 7.1; see
5519         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5520         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5521         replacement fstatat (which is what older AIX releases were using
5522         anyway).
5523         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5524         use is now changed to orig_fstatat.  This was probably the right
5525         thing to do anyway.
5526         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5527         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5528         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5529         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5530         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5531         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5532         if the bug is found.
5533
5534         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5535         This tests for another fstatat bug on AIX 7.1:
5536         fstatat (AT_FDCWD, ..., 0) does not work.  See
5537         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5538         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5539         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5540         (rpl_fstatat): Adjust so that it works around either (or both)
5541         bugs if present.
5542         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5543
5544 2011-09-03  Karl Berry  <karl@gnu.org>
5545
5546         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5547         in index entries.
5548
5549 2011-09-02  Bruno Haible  <bruno@clisp.org>
5550
5551         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5552         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5553         values of AR, ARFLAGS, RANLIB.
5554         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5555
5556 2011-09-02  Bruno Haible  <bruno@clisp.org>
5557
5558         Find 'ar' program that fits with --host argument.
5559         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5560
5561 2011-09-02  Bruno Haible  <bruno@clisp.org>
5562
5563         tests: init.sh: Support any non-GNU diff.
5564         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5565         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5566         Solaris 8.
5567
5568 2011-09-02  Bruno Haible  <bruno@clisp.org>
5569
5570         tests: init.sh: work also with any non-GNU diff that supports -u
5571         * tests/init.sh: Relax check for diff -u support.
5572         Rather than checking for GNU diff via --version, simply check
5573         for support for -u itself.  Useful at least on OpenBSD 4.9,
5574         AIX 7.1, IRIX 6.5, and Solaris 10.
5575
5576 2011-09-01  Bruno Haible  <bruno@clisp.org>
5577
5578         strtoimax, strtoumax: Document problem on HP-UX 11.
5579         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5580         * doc/posix-functions/strtoumax.texi: Likewise.
5581
5582 2011-09-01  Bruno Haible  <bruno@clisp.org>
5583
5584         strtoumax: Avoid link error on OSF/1 with DTK cc.
5585         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5586         defined as a function.
5587         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5588         strtoumax is defined, not whether it is declared.
5589
5590 2011-09-01  Bruno Haible  <bruno@clisp.org>
5591
5592         strtoimax: Avoid link error on OSF/1 with DTK cc.
5593         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5594         defined as a function.
5595         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5596         strtoimax is defined, not whether it is declared.
5597
5598 2011-09-01  Bruno Haible  <bruno@clisp.org>
5599
5600         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5601         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5602         as a function.
5603         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5604         whether it is declared.
5605
5606 2011-09-01  Bruno Haible  <bruno@clisp.org>
5607
5608         imaxabs: Avoid link error on OSF/1 with DTK cc.
5609         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5610         as a function.
5611         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5612         whether it is declared.
5613
5614 2011-09-01  Bruno Haible  <bruno@clisp.org>
5615
5616         Tests for module 'strtoumax'.
5617         * modules/strtoumax-tests: New file.
5618         * tests/test-strtoumax.c: New file.
5619
5620         Tests for module 'strtoimax'.
5621         * modules/strtoimax-tests: New file.
5622         * tests/test-strtoimax.c: New file.
5623
5624         Tests for module 'imaxdiv'.
5625         * modules/imaxdiv-tests: New file.
5626         * tests/test-imaxdiv.c: New file.
5627
5628         Tests for module 'imaxabs'.
5629         * modules/imaxabs-tests: New file.
5630         * tests/test-imaxabs.c: New file.
5631
5632 2011-09-01  Bruno Haible  <bruno@clisp.org>
5633
5634         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5635         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5636         pthread_create.
5637
5638 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5639
5640         openat: work around AIX 7.1 fstatat issue
5641         This should fix the problem that was not properly fixed
5642         in the previous change, dated 2011-08-30.
5643         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5644         __need_system_stat_h defined.
5645         (orig_fstatat) [HAVE_FSTATAT]: New function.
5646         (rpl_fstatat): Go back to the old way of doing things,
5647         except call orig_fstatat instead of fstatat.
5648         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5649         Remove unnecessary check whether fstatat fills in st_size etc.
5650
5651 2011-09-01  Bruno Haible  <bruno@clisp.org>
5652
5653         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5654         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5655         just include the system's header.
5656
5657 2011-08-31  Jim Meyering  <meyering@redhat.com>
5658
5659         tests: avoid spurious assertion failure in test-float.c on ppc64
5660         * tests/test-float.c (test_long_double): Comment out an assertion,
5661         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5662         with gcc-4.4.4.
5663
5664         maint: indent with spaces, not TABs
5665         I need to get in the habit of running gnulib's "make check".
5666         Both of these would have been caught.
5667         * m4/largefile.m4: Indent with spaces, not TABs.
5668         * lib/parse-datetime.y (iso_8601_time): Likewise.
5669         Spotted by Pádraig Brady.
5670
5671         test-parse-datetime.c: accommodate a relatively strict gcc warning
5672         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5673         to avoid a warning from gcc's -Werror=missing-declarations.
5674         Insert a few spaces-before-funcall-parenthesis.
5675
5676 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5677
5678         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5679         The parser now accepts ISO 8601 date-time strings with "T" as the
5680         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5681         with a space between the date and time strings.  Now it also parses
5682         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5683         variants like "2004-02-29T16:21:42.333-07:00"
5684         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5685         of day representation using the 'T' separator character.
5686         * doc/parse-datetime.texi (General date syntax): replace use of
5687         deprecated --iso-8601 option with --rfc-3339 in example of date
5688         command output formats that can be parsed.
5689         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5690         lib/parse-datetime.y.
5691         (gmt_offset): New function.
5692         (main): Add additional test cases to validate ISO8601 extended
5693         date and time of day parsing.
5694
5695 2011-08-31  Bruno Haible  <bruno@clisp.org>
5696
5697         freopen: Documentation.
5698         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5699         name.
5700         Reported by Claudio Bley <claudio.bley@gmail.com>.
5701
5702 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5703
5704         freopen: Don't crash if the filename argument is NULL.
5705         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5706         NULL.
5707
5708 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5709
5710         openat: work around AIX 7.1 fstatat bug
5711         Problem reported by Kevin Brott for GNU tar, in the thread containing
5712         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5713         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5714         FSTATAT_ST_SIZE_ETC_BROKEN.
5715         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5716         rpl_fstatat.
5717         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5718         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5719         AC_CHECK_FUNCS_ONCE for fstatat.
5720         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5721         fchmodat, mkdirat, openat and unlinkat.
5722
5723 2011-08-30  Bruno Haible  <bruno@clisp.org>
5724
5725         Avoid endless recursions if config.h includes some header files.
5726         * lib/fopen.c (__need_FILE): Define already before including config.h.
5727         * lib/freopen.c (__need_FILE): Likewise.
5728         * lib/open.c (__need_system_fcntl_h): Likewise.
5729         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5730         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5731         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5732
5733 2011-08-25  Karl Berry  <karl@gnu.org>
5734
5735         * config/srclist.txt (ylwrap): new try.
5736         * build-aux/ylwrap: new file.
5737
5738 2011-08-23  Bruno Haible  <bruno@clisp.org>
5739
5740         tmpdir: Use a good default directory on native Windows.
5741         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5742         (P_tmpdir): Default to _P_tmpdir on native Windows.
5743         (path_search): On native Windows, try the value returned by GetTempPath
5744         before trying P_tmpdir.
5745         * modules/tmpdir (Depends-on): Add pathmax.
5746         Suggested by John Darrington <john@darrington.wattle.id.au>.
5747
5748 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5749
5750         doc: fix typo in README-release
5751         * top/README-release: Capitalize first word of a sentence.
5752
5753 2011-08-19  Jim Meyering  <meyering@redhat.com>
5754
5755         fts: do not exhaust memory when processing million-entry directories
5756         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5757         directory would require about 256*N bytes of memory.  Thus, it was
5758         easy to construct a directory too large to be processed by any of
5759         those tools.  With this change, fts' maximum memory utilization is
5760         now limited to around 30MB.
5761         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5762         (fts_read): When we've processed the final entry (i.e., when
5763         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5764         using the parent entry to read any remaining entries.  Dispatch
5765         depending on what fts_build returns:
5766         - NULL+stop, aka failure: stop
5767         - NULL otherwise: move up in the dir hierarchy
5768         - non-NULL: handle this new entry
5769         (fts_build): Declare and use new local, continue_readdir.
5770         Prepare to be called from fts_read, when the entries
5771         from a partially-read directory have just been exhausted.
5772         In that case, we'll skip the opendir and instead use the parent's
5773         fts_dirp and derive dir_fd from that.
5774         Finally, in the readdir loop, if we read max_entries entries,
5775         exit the loop ensuring *not* to call closedir.  This is required
5776         so that fts_dirp can be reused on a subsequent call.
5777         Prompted by Ben England's report of memory exhaustion in find
5778         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5779
5780         maint: fts: move decl of `dp' down into while loop; split a long line
5781         * lib/fts.c (fts_build): No semantic change.
5782
5783         fts: add/use new struct member, fts_dirp
5784         We are about to use this to manage any directory with
5785         too many entries to read all of them into memory at once.
5786         To do that, we'll need to save the DIR* pointer in each
5787         affected FTSENT struct.
5788         * lib/fts_.h: Include <dirent.h>.
5789         (struct FTSENT) [fts_dirp]: New member.
5790         * lib/fts.c (closedir_and_clear): Define.
5791         Use it in place of closedir so that we are sure to
5792         clear the new fts_dirp member when done with it.
5793         (fts_alloc): Initialize the new member.
5794         (fts_lfree): Free, if needed.
5795
5796         maint: fts: give __opendir2 a new parameter and rename
5797         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5798         than surreptitiously using sole caller's "dir_fd".
5799         (fts_opendir): Rename from __opendir2.
5800
5801         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5802         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5803
5804         maint: fts.c: correct off-by-one indentation
5805         * lib/fts.c (fts_build): Correct indentation, change style
5806         of a couple of block comments, and bracing style.
5807
5808         maint: fts.c: move __opendir2 #define "up" out of function body
5809         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5810
5811         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5812         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5813         out for a long time and besides was useful only on BSD systems.
5814
5815 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5816
5817         regex: port to Stratus OpenVOS
5818         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5819         define to empty, rather than attempting nonportable optimizations.
5820         Problem reported by Paul Green in:
5821         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5822         and fix suggested by Eric Blake in:
5823         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5824
5825 2011-08-17  Eric Blake  <eblake@redhat.com>
5826
5827         getcwd: fix test failures on mingw
5828         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5829         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5830         test if long directory cannot be created, and allow mingw errno.
5831
5832         getcwd-lgpl: fix m4 to match relaxed test for BSD
5833         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5834         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5835         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5836         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5837         signature problem.
5838
5839         getcwd: fix compilation on mingw64
5840         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5841         getcwd.
5842         Reported by Marc-André Lureau.
5843
5844         pipe2: silence compiler warning
5845         * lib/pipe2.c (pipe2): Hide label if it is not used.
5846
5847 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5848
5849         relocatable-prog: fix link error
5850         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5851         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5852         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5853         into modules/relocatable-lib without noticing that
5854         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5855         also needs to build relocatable.c.
5856
5857 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5858
5859         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5860         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5861         shell code: it contained a 'break' that was not in a loop.
5862         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5863         via a shell-language loop; this may have been true in old Autoconf
5864         versions, but it's not true in Autoconf 2.68.  I found this bug
5865         when testing coreutils git on Solaris 8, whose shell complains
5866         about the syntax error.
5867
5868 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5869
5870         * lib/base64.c: Fix comment to reference RFC 4648.
5871         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5872         <gvtulder@gmail.com>.
5873
5874 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5875
5876         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5877
5878         po/Makefile.in.in: fix make -q problem
5879         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5880         rule, since there's no file named 'check-macro-version' and its
5881         use as a file breaks make -q.
5882         (all): Don't depend on check-macro-version.
5883         (CHECK_MACRO_VERSION): New macro.
5884         (stamp-po): Use it.
5885
5886         configmake: fix make -q problem
5887         * modules/configmake (configmake.h): Update configmake.h's time stamp
5888         even if the file does not change.  Otherwise, 'make -q' fails.
5889         Problem reported by Simon Josefsson in
5890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5891
5892 2011-08-11  Jim Meyering  <meyering@redhat.com>
5893
5894         git-version-gen: correct the advice in a comment
5895         * build-aux/git-version-gen: Correct comment.
5896         Don't recommend to list .tarball-version in .gitignore.
5897
5898 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5899
5900         base64: fix off-by-one buffer size bug
5901         Problem and (trivial) fix reported by Gijs van Tulder in
5902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5903         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5904         * tests/test-base64.c (main): Catch the bug.
5905
5906 2011-08-10  Eric Blake  <eblake@redhat.com>
5907
5908         closein: correct comments
5909         * lib/closein.c (close_stdin): Improve comments.
5910
5911 2011-08-09  Bruno Haible  <bruno@clisp.org>
5912
5913         More tests for 'fseeko'.
5914         * tests/test-fseeko3.c: New file, from Eric Blake.
5915         * tests/test-fseeko3.sh: New file.
5916         * modules/fseeko-tests (Files): Add them.
5917         (TESTS): Add test-fseeko3.sh.
5918         (check_PROGRAMS): Add test-fseeko3.
5919
5920 2011-08-09  Eric Blake  <eblake@redhat.com>
5921
5922         fseeko: remove unneeded hack
5923         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5924
5925         fseeko: fix bug on glibc
5926         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5927         Reported by John W. Eaton.
5928
5929 2011-08-08  Bruno Haible  <bruno@clisp.org>
5930
5931         unictype/base: Fix interoperability with preinstalled libunistring.
5932         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5933         Reported by Simon Josefsson.
5934
5935 2011-08-08  Bruno Haible  <bruno@clisp.org>
5936
5937         iswblank: Detect declaration correctly.
5938         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5939         AC_CHECK_DECLS invocation.
5940
5941 2011-08-08  Bruno Haible  <bruno@clisp.org>
5942
5943         tcgetsid: Detect declaration correctly.
5944         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5945         AC_CHECK_DECLS invocation.
5946         Reported by Simon Josefsson.
5947
5948 2011-08-08  Eric Blake  <eblake@redhat.com>
5949
5950         largefile: fix typo that regressed large file support
5951         * modules/largefile (configure.ac-early): Fix section name.
5952
5953 2011-08-06  Karl Berry  <karl@gnu.org>
5954
5955         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5956         a separate module.
5957
5958 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5959
5960         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5961         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5962         get prototype for free.
5963
5964 2011-08-04  Bruno Haible  <bruno@clisp.org>
5965
5966         Tests for module 'pathmax'.
5967         * modules/pathmax-tests: New file.
5968         * tests/test-pathmax.c: New file.
5969
5970         canonicalize-lgpl: Support larger filenames on the Hurd.
5971         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5972         Reported by Paul Eggert.
5973
5974         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5975         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5976         * lib/chdir-long.h: Include pathmax.h.
5977         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5978         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5979         (PATH_MAX): Remove code that is done by pathmax.h.
5980         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5981         * lib/tmpfile.c: Add a comment.
5982         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5983         * modules/chdir-long (Depends-on): Add pathmax.
5984         * modules/getcwd (Depends-on): Add pathmax.
5985         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5986         is not defined.
5987         * doc/posix-headers/limits.texi: Mention the pathmax module.
5988         * NEWS: Mention the change.
5989
5990 2011-08-02  Bruno Haible  <bruno@clisp.org>
5991
5992         pthread_sigmask: Actually use results of gl_THREADLIB.
5993         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5994         gl_THREADLIB, not gl_[]THREADLIB.
5995         Reported by Eric Blake.
5996
5997 2011-08-02  Jim Meyering  <meyering@redhat.com>
5998
5999         maint.mk: relax the default _gl_TS_function_match regexp
6000         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6001         space between function name and "(" in an "extern" declaration.
6002         That would fail to match a decl with no space there: extern void foo();
6003
6004 2011-07-31  Iain Nicol  <iain@thenicols.net>
6005
6006         git-version-gen: document that EXTRA_DIST must include .version
6007         * build-aux/git-version-gen: In the how-to-use comment, document
6008         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6009         will fail when run from an unpacked distribution tarball.
6010
6011 2011-08-01  Bruno Haible  <bruno@clisp.org>
6012
6013         wctype-h: Fix last change.
6014         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6015         REPLACE_TOWLOWER to 0.
6016         Reported by Sam Steingold <sds@gnu.org>.
6017
6018 2011-07-31  Bruno Haible  <bruno@clisp.org>
6019
6020         frexpl: Update autoconf test.
6021         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6022         according to changes of 2011-06-20.
6023
6024 2011-07-31  Bruno Haible  <bruno@clisp.org>
6025
6026         sys_utsname: Add support for Minix.
6027         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6028         <sys/utsname.h>.
6029         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6030         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6031
6032 2011-07-31  Bruno Haible  <bruno@clisp.org>
6033
6034         strings: Add support for Minix.
6035         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6036         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6037         * doc/posix-headers/strings.texi: Document the Minix problem.
6038
6039 2011-07-31  Bruno Haible  <bruno@clisp.org>
6040
6041         wctype-h: Add support for Minix.
6042         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6043         REPLACE_TOWLOWER.
6044         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6045         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6046         REPLACE_ISWCNTRL.
6047
6048 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6049
6050         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6051         This is a performance improvement for 64-bit hosts: it causes the
6052         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6053
6054 2011-07-31  Bruno Haible  <bruno@clisp.org>
6055
6056         stdioext: Add support for Minix.
6057         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6058         * lib/fpurge.c (fpurge): Likewise.
6059         * lib/freadahead.c (freadahead): Likewise.
6060         * lib/freadable.c (freadable): Likewise.
6061         * lib/freading.c (freading): Likewise.
6062         * lib/freadptr.c (freadptr): Likewise.
6063         * lib/freadseek.c (freadptrinc): Likewise.
6064         * lib/fseeko.c (rpl_fseeko): Likewise.
6065         * lib/fseterr.c (fseterr): Likewise.
6066         * lib/fwritable.c (fwritable): Likewise.
6067         * lib/fwriting.c (fwriting): Likewise.
6068         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6069         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6070
6071 2011-07-31  Bruno Haible  <bruno@clisp.org>
6072
6073         errno: Port to Minix.
6074         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6075         ECONNABORTED are defined.
6076         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6077         GNULIB_defined_ECONNABORTED): New macros.
6078         * lib/strerror-override.h (strerror_override): Test also
6079         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6080         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6081         ECONNABORTED.
6082         * doc/posix-headers/errno.texi: Mention the Minix problem.
6083
6084 2011-07-31  Bruno Haible  <bruno@clisp.org>
6085
6086         Work around declaration collisions on Minix.
6087         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6088         defined, set REPLACE_MBSINIT.
6089         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6090         defined, set REPLACE_MBRTOWC.
6091         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6092         set REPLACE_MBRLEN.
6093         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6094         defined, set REPLACE_MBSRTOWCS.
6095         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6096         defined, set REPLACE_WCRTOMB.
6097         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6098         defined, set REPLACE_WCSRTOMBS.
6099
6100 2011-07-31  Bruno Haible  <bruno@clisp.org>
6101
6102         Add support for Minix with ACK compiler.
6103         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6104         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6105         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6106
6107 2011-07-31  Bruno Haible  <bruno@clisp.org>
6108
6109         Documentation about Minix.
6110         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6111         * doc/glibc-headers/*.texi: Likewise.
6112         * doc/posix-functions/*.texi: Likewise.
6113         * doc/glibc-functions/*.texi: Likewise.
6114
6115 2011-07-31  Bruno Haible  <bruno@clisp.org>
6116
6117         snippet/warn-on-use: Fix indentation.
6118         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6119
6120 2011-07-25  Jim Meyering  <meyering@redhat.com>
6121
6122         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6123         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6124         commands.
6125
6126 2011-07-27  Jim Meyering  <meyering@redhat.com>
6127
6128         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6129         * top/maint.mk (gl_extract_significant_defines_): Now that
6130         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6131         gnulib/lib/signal.in.h, and now that we recommend to
6132         define-if-undefined those two symbols in application code,
6133         we must filter them out of the "significant" list.
6134         This avoids a "make syntax-check" failure in coreutils.
6135
6136 2011-07-26  Eric Blake  <eblake@redhat.com>
6137
6138         warnings: add comments about previous patch
6139         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6140         * m4/include_next.m4: Likewise.
6141         * m4/warn-on-use.m4: Likewise.
6142         * m4/warnings.m4: Likewise, and simplify use.
6143         Suggested by Stefano Lattarini.
6144
6145         include-next, warnings: support older autoconf
6146         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6147         AS_VAR_PUSHDEF in a way that works with older autoconf.
6148         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6149         Reported by Daniel P. Berrange.
6150
6151 2011-07-25  Bruno Haible  <bruno@clisp.org>
6152
6153         fseek, ftell: Fix doc.
6154         * doc/posix-functions/fseek.texi: Reword statement about
6155         AC_SYS_LARGEFILE.
6156         * doc/posix-functions/ftell.texi: Likewise.
6157
6158 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6159             Bruno Haible  <bruno@clisp.org>
6160
6161         Add dependencies to the 'largefile' module.
6162         * modules/fopen (Depends-on): Add 'largefile'.
6163         * modules/freopen (Depends-on): Likewise.
6164         * modules/fseeko (Depends-on): Likewise.
6165         * modules/ftello (Depends-on): Likewise.
6166         * modules/glob (Depends-on): Likewise.
6167         * modules/lseek (Depends-on): Likewise.
6168         * modules/lstat (Depends-on): Likewise.
6169         * modules/mkostemp (Depends-on): Likewise.
6170         * modules/mkostemps (Depends-on): Likewise.
6171         * modules/mkstemp (Depends-on): Likewise.
6172         * modules/mkstemps (Depends-on): Likewise.
6173         * modules/open (Depends-on): Likewise.
6174         * modules/openat (Depends-on): Likewise.
6175         * modules/pread (Depends-on): Likewise.
6176         * modules/pwrite (Depends-on): Likewise.
6177         * modules/scandir (Depends-on): Likewise.
6178         * modules/stat (Depends-on): Likewise.
6179         * modules/tmpfile (Depends-on): Likewise.
6180         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6181         since the containing module now depends on the largefile module.
6182         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6183         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6184         off_t is fixed by gnulib.
6185         * doc/posix-functions/freopen.texi: Likewise.
6186         * doc/posix-functions/fseeko.texi: Likewise.
6187         * doc/posix-functions/fstatat.texi: Likewise.
6188         * doc/posix-functions/ftello.texi: Likewise.
6189         * doc/posix-functions/glob.texi: Likewise.
6190         * doc/posix-functions/lseek.texi: Likewise.
6191         * doc/posix-functions/lstat.texi: Likewise.
6192         * doc/posix-functions/mkstemp.texi: Likewise.
6193         * doc/posix-functions/open.texi: Likewise.
6194         * doc/posix-functions/openat.texi: Likewise.
6195         * doc/posix-functions/pread.texi: Likewise.
6196         * doc/posix-functions/pwrite.texi: Likewise.
6197         * doc/posix-functions/scandir.texi: Likewise.
6198         * doc/posix-functions/stat.texi: Likewise.
6199         * doc/posix-functions/tmpfile.texi: Likewise.
6200         * doc/glibc-functions/mkostemp.texi: Likewise.
6201         * doc/glibc-functions/mkostemps.texi: Likewise.
6202         * doc/glibc-functions/mkstemps.texi: Likewise.
6203
6204 2011-07-25  Bruno Haible  <bruno@clisp.org>
6205
6206         fcntl: Move AC_LIBOBJ invocation to module description.
6207         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6208         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6209
6210         fcntl: Remove call-in from fchdir.m4.
6211         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6213
6214         dup3: Remove potential call-in from fchdir.m4.
6215         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6216         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6217
6218         dup2: Move AC_LIBOBJ invocation to module description.
6219         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6220         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6221         Don't invoke AC_LIBOBJ.
6222         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6223
6224         dup2: Remove call-in from fchdir.m4.
6225         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6227
6228         fclose: Move AC_LIBOBJ invocation to module description.
6229         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6230         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6231         to 1.
6232         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6233
6234         fclose: Remove call-in from close.m4.
6235         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6236         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6237
6238         close: Move AC_LIBOBJ invocation to module description.
6239         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6240         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6241         1.
6242         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6243
6244         close: Remove call-in from fchdir.m4.
6245         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6247
6248         open: Move AC_LIBOBJ invocation to module description.
6249         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6250         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6251         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6252
6253         open: Remove call-in from fchdir.m4.
6254         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6256
6257         fchdir: Start to remove gl_REPLACE_* idiom.
6258         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6259         (gl_FUNC_FCHDIR): Invoke it.
6260
6261 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6262
6263         * lib/ftell.c (ftell): Comment out cast.
6264
6265         close: use gl_REPLACE_FCLOSE only if defined
6266         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6267         is defined.  The close module doesn't depend on the fclose module
6268         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6270         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6271
6272 2011-07-24  Jim Meyering  <meyering@redhat.com>
6273
6274         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6275         * tests/test-select.h (test_function): Declare as "static".
6276
6277 2011-07-24  Bruno Haible  <bruno@clisp.org>
6278
6279         doc: Mention the effects of AC_SYS_LARGEFILE.
6280         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6281         on this function.
6282         * doc/posix-functions/aio_error.texi: Likewise.
6283         * doc/posix-functions/aio_fsync.texi: Likewise.
6284         * doc/posix-functions/aio_read.texi: Likewise.
6285         * doc/posix-functions/aio_return.texi: Likewise.
6286         * doc/posix-functions/aio_suspend.texi: Likewise.
6287         * doc/posix-functions/aio_write.texi: Likewise.
6288         * doc/posix-functions/fgetpos.texi: Likewise.
6289         * doc/posix-functions/fopen.texi: Likewise.
6290         * doc/posix-functions/freopen.texi: Likewise.
6291         * doc/posix-functions/fsetpos.texi: Likewise.
6292         * doc/posix-functions/fstatvfs.texi: Likewise.
6293         * doc/posix-functions/ftruncate.texi: Likewise.
6294         * doc/posix-functions/ftw.texi: Likewise.
6295         * doc/posix-functions/getrlimit.texi: Likewise.
6296         * doc/posix-functions/glob.texi: Likewise.
6297         * doc/posix-functions/lio_listio.texi: Likewise.
6298         * doc/posix-functions/lockf.texi: Likewise.
6299         * doc/posix-functions/mkstemp.texi: Likewise.
6300         * doc/posix-functions/mmap.texi: Likewise.
6301         * doc/posix-functions/nftw.texi: Likewise.
6302         * doc/posix-functions/openat.texi: Likewise.
6303         * doc/posix-functions/opendir.texi: Likewise.
6304         * doc/posix-functions/posix_fadvise.texi: Likewise.
6305         * doc/posix-functions/posix_fallocate.texi: Likewise.
6306         * doc/posix-functions/pread.texi: Likewise.
6307         * doc/posix-functions/pwrite.texi: Likewise.
6308         * doc/posix-functions/readdir.texi: Likewise.
6309         * doc/posix-functions/readdir_r.texi: Likewise.
6310         * doc/posix-functions/rewinddir.texi: Likewise.
6311         * doc/posix-functions/scandir.texi: Likewise.
6312         * doc/posix-functions/seekdir.texi: Likewise.
6313         * doc/posix-functions/setrlimit.texi: Likewise.
6314         * doc/posix-functions/statvfs.texi: Likewise.
6315         * doc/posix-functions/telldir.texi: Likewise.
6316         * doc/posix-functions/tmpfile.texi: Likewise.
6317         * doc/posix-functions/truncate.texi: Likewise.
6318         * doc/glibc-functions/fallocate.texi: Likewise.
6319         * doc/glibc-functions/fstatfs.texi: Likewise.
6320         * doc/glibc-functions/fts_children.texi: Likewise.
6321         * doc/glibc-functions/fts_read.texi: Likewise.
6322         * doc/glibc-functions/getdirentries.texi: Likewise.
6323         * doc/glibc-functions/mkostemp.texi: Likewise.
6324         * doc/glibc-functions/mkostemps.texi: Likewise.
6325         * doc/glibc-functions/mkstemps.texi: Likewise.
6326         * doc/glibc-functions/preadv.texi: Likewise.
6327         * doc/glibc-functions/pwritev.texi: Likewise.
6328         * doc/glibc-functions/sendfile.texi: Likewise.
6329         * doc/glibc-functions/statfs.texi: Likewise.
6330
6331 2011-07-24  Bruno Haible  <bruno@clisp.org>
6332
6333         doc: Fix typo.
6334         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6335
6336 2011-07-24  Bruno Haible  <bruno@clisp.org>
6337
6338         doc: Mention fsusage.
6339         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6340
6341 2011-07-24  Bruno Haible  <bruno@clisp.org>
6342
6343         doc: Mention new glibc headers and functions.
6344         * doc/glibc-headers/gshadow.texi: New file.
6345         * doc/glibc-functions/endsgent.texi: New file.
6346         * doc/glibc-functions/fgetsgent.texi: New file.
6347         * doc/glibc-functions/fgetsgent_r.texi: New file.
6348         * doc/glibc-functions/getsgent.texi: New file.
6349         * doc/glibc-functions/getsgent_r.texi: New file.
6350         * doc/glibc-functions/getsgnam.texi: New file.
6351         * doc/glibc-functions/getsgnam_r.texi: New file.
6352         * doc/glibc-functions/putsgent.texi: New file.
6353         * doc/glibc-functions/setsgent.texi: New file.
6354         * doc/glibc-functions/sgetsgent.texi: New file.
6355         * doc/glibc-functions/sgetsgent_r.texi: New file.
6356         * doc/glibc-functions/malloc_info.texi: New file.
6357         * doc/glibc-functions/preadv.texi: New file.
6358         * doc/glibc-functions/pwritev.texi: New file.
6359         * doc/glibc-functions/register_printf_modifier.texi: New file.
6360         * doc/glibc-functions/register_printf_specifier.texi: New file.
6361         * doc/glibc-functions/register_printf_type.texi: New file.
6362         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6363         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6364         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6365         * doc/glibc-functions/pthread_getname_np.texi: New file.
6366         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6367         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6368         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6369         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6370         * doc/glibc-functions/pthread_setname_np.texi: New file.
6371         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6372         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6373         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6374         * doc/glibc-functions/qsort_r.texi: New file.
6375         * doc/glibc-functions/quick_exit.texi: New file.
6376         * doc/glibc-functions/syncfs.texi: New file.
6377         * doc/gnulib.texi: Include them.
6378         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6379         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6380         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6381         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6382         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6383         * doc/glibc-functions/execvpe.texi: Likewise.
6384
6385 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6386
6387         ftell: don't include <unistd.h>
6388         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6389         guaranteed to define off_t, and the ftell module depends on the
6390         stdio module.
6391
6392         ftell: do not assume wraparound signed arithmetic
6393         * lib/ftell.c: Include <limits.h>.
6394         (ftell): Don't assume wraparound signed arithmetic.
6395
6396 2011-07-24  Bruno Haible  <bruno@clisp.org>
6397
6398         close: No longer depend on module 'fclose'.
6399         * modules/close (Depends-on): Remove fclose.
6400         * NEWS: Mention the change.
6401         Suggested by Sam Steingold <sds@gnu.org>.
6402
6403 2011-07-24  Bruno Haible  <bruno@clisp.org>
6404
6405         fsusage: Enable large volume support on AIX >= 5.2.
6406         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6407         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6408         instead of STAT_STATVFS.
6409         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6410
6411         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6413         f_blocks field only on MacOS X.
6414
6415         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6416         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6417         * modules/fsusage (Depends-on): Add largefile.
6418
6419 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6420
6421         * README: Modernize discussion of signed integers.
6422         Assuming overflow wraparound is no longer safe.
6423         Mention ones' complement and signed magnitude.
6424
6425 2011-07-22  Bruno Haible  <bruno@clisp.org>
6426
6427         select tests, pselect tests: Refactor.
6428         * tests/test-select.h: New file, extracted from tests/test-select.c.
6429         (select_fn): New type.
6430         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6431         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6432         test_pipe): Add my_select argument.
6433         (test_function): Renamed from main. Add my_select argument.
6434         * tests/test-select.c: Move most code to tests/test-select.h. Include
6435         test-select.h.
6436         * modules/select-tests (Files): Add tests/test-select.h.
6437         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6438         (my_select, main): New functions.
6439         * modules/pselect-tests (Files): Add tests/test-select.h,
6440         tests/macros.h, tests/signature.h.
6441         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6442         (configure.ac): Check for <sys/wait.h>.
6443
6444 2011-07-22  Bruno Haible  <bruno@clisp.org>
6445
6446         sys_select tests: Check the signature of FD_*.
6447         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6448         signature tests from here...
6449         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6450         here.
6451         * modules/sys_select-tests (Files): Add tests/signature.h.
6452
6453 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6454
6455         largefile: new module, replacing large-inode
6456         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6457         * MODULES.html.sh: Add largefile, remove large-inode.
6458         * modules/largefile, m4/largefile.m4: New files.
6459         * modules/large-inode, m4/large-inode.m4: Remove.
6460
6461         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6462         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6463         implementations that use only 32 bits to count blocks.
6464         On typical hosts with 1024-byte blocks, this fails with file
6465         systems as small as 4 TiB.  Problem reported by Herb Wartens
6466         <http://debbugs.gnu.org/9140> and this should also fix a similar
6467         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6468
6469         large-inode: New module
6470         * MODULES.html.sh: Add it.
6471         * modules/large-inode, m4/large-inode.m4: New files.
6472
6473         extensions: Enable extensions on MacOS X 10.5 and later.
6474         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6475
6476 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6477
6478         file-has-acl: use acl_extended_file_nofollow if available
6479         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6480         (acl_extended_file): New macro.
6481         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6482         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6483
6484 2011-07-21  Bruno Haible  <bruno@clisp.org>
6485
6486         Declare system functions in a way that works with C++.
6487         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6488         declare fdopendir as extern "C".
6489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6490         declare frexpl as extern "C".
6491         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6492         declare gai_strerror as extern "C".
6493         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6494         programs, declare gai_strerror as extern "C".
6495         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6496         declare getlogin_r as extern "C".
6497         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6498         as extern "C".
6499         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6500         declare ldexpl as extern "C".
6501         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6502         as extern "C".
6503         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6504         program, declare getmntinfo as extern "C".
6505         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6506         stpncpy as extern "C".
6507         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6508         program, declare __xpg_strerror_r as extern "C".
6509         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6510         strndup as extern "C".
6511         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6512         declare memset and bzero as extern "C".
6513         Reported by Sam Steingold <sds@gnu.org>.
6514
6515 2011-07-12  Jim Meyering  <meyering@redhat.com>
6516
6517         maint.mk: prohibit inclusion of "verify.h" without use
6518         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6519
6520 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6521
6522         timer-time: A new module to check for timer_settime()
6523         * m4/timer_time.m4: Check for the posix function.
6524         * modules/timer-time: Add the new module.
6525         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6526         Mention it.
6527
6528 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6529             Bruno Haible  <bruno@clisp.org>
6530
6531         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6532         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6533         not defined, assume POSIX threads and look for pthread_sigmask in
6534         $LIBS, without changing $CPPFLAGS.
6535
6536 2011-07-19  Bruno Haible  <bruno@clisp.org>
6537
6538         strstr: Update cross-compilation guess.
6539         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6540         CPUs, guess no, in view of glibc
6541         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6542         Suggested by Eric Blake. Reported by Reuben Thomas.
6543
6544 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6545
6546         getopt-gnu: suppress core dumps from detection code
6547         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6548         to suppress core dumps that may well occur on glibc systems.
6549         * modules/getopt-gnu: Depend on nocrash.
6550
6551 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6552
6553         pthread_sigmask: ensure usleep is declared
6554         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6555         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6556
6557 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6558
6559         doc: Document NonStop portability issues.
6560         * doc/posix-functions/sigaction.texi (sigaction):
6561         * doc/posix-headers/signal.texi (signal.h):
6562         Document NonStop.  See Joachim Schmitz in
6563         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6564
6565 2011-07-15  Bruno Haible  <bruno@clisp.org>
6566
6567         ffsl, ffsll: Avoid unportable behaviour.
6568         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6569
6570 2011-07-15  Bruno Haible  <bruno@clisp.org>
6571
6572         ffs: More tests.
6573         * tests/test-ffs.c (NBITS): New macro.
6574         (main): Add more tests.
6575         * tests/test-ffsl.c (NBITS): New macro.
6576         (main): Add more tests.
6577         * tests/test-ffsll.c (NBITS): New macro.
6578         (main): Add more tests.
6579
6580 2011-07-15  Eric Blake  <eblake@redhat.com>
6581
6582         ffsl, ffsll: new modules
6583         * modules/ffsl: New file.
6584         * modules/ffsll: Likewise.
6585         * m4/ffsl.m4: Likewise.
6586         * m4/ffsll.m4: Likewise.
6587         * lib/ffsl.c: Likewise.
6588         * lib/ffsl.h: Likewise.
6589         * lib/ffsll.c: Likewise.
6590         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6591         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6592         * modules/string (Makefile.am): Substitute witnesses.
6593         * lib/strings.in.h (ffsl, ffsll): Declare.
6594         * modules/ffsl-tests: New test file.
6595         * modules/ffsll-tests: Likewise.
6596         * tests/test-ffsl.c: Likewise.
6597         * tests/test-ffsll.c: Likewise.
6598         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6599         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6600         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6601
6602         ffs: fix m4 prerequisite
6603         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6604
6605         ffs: avoid undefined behavior
6606         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6607         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6608         Reported by Bruno Haible.
6609
6610 2011-07-12  Bruno Haible  <bruno@clisp.org>
6611
6612         pthread_sigmask: Rely on module 'threadlib'.
6613         * modules/pthread_sigmask (Depends-on): Add threadlib.
6614         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6615         is defined.
6616
6617 2011-07-12  Bruno Haible  <bruno@clisp.org>
6618
6619         regex: Depend on module 'strcase'.
6620         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6621
6622 2011-07-12  Jim Meyering  <meyering@redhat.com>
6623
6624         warn-on-use: fix typo in file name
6625         * modules/snippet/warn-on-use (Files): Correct file name:
6626         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6627
6628 2011-07-12  Bruno Haible  <bruno@clisp.org>
6629
6630         strings: Document module.
6631         * doc/posix-headers/strings.texi: Mention module 'strings'.
6632
6633 2011-07-12  Bruno Haible  <bruno@clisp.org>
6634
6635         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6636         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6637         (Files, Makefile.am): Update.
6638         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6639         * modules/stdlib (Depends-on): Update.
6640
6641 2011-07-12  Bruno Haible  <bruno@clisp.org>
6642
6643         * NEWS: Mention the changes.
6644
6645         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6646         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6647         (Files, Makefile.am): Update.
6648         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6649         * modules/arpa_inet (Depends-on): Update.
6650         * modules/ctype (Depends-on): Update.
6651         * modules/dirent (Depends-on): Update.
6652         * modules/fcntl-h (Depends-on): Update.
6653         * modules/glob (Depends-on): Update.
6654         * modules/iconv-h (Depends-on): Update.
6655         * modules/inttypes-incomplete (Depends-on): Update.
6656         * modules/langinfo (Depends-on): Update.
6657         * modules/locale (Depends-on): Update.
6658         * modules/math (Depends-on): Update.
6659         * modules/netdb (Depends-on): Update.
6660         * modules/poll-h (Depends-on): Update.
6661         * modules/pty (Depends-on): Update.
6662         * modules/search (Depends-on): Update.
6663         * modules/signal (Depends-on): Update.
6664         * modules/spawn (Depends-on): Update.
6665         * modules/stdio (Depends-on): Update.
6666         * modules/stdlib (Depends-on): Update.
6667         * modules/string (Depends-on): Update.
6668         * modules/strings (Depends-on): Update.
6669         * modules/sys_file (Depends-on): Update.
6670         * modules/sys_ioctl (Depends-on): Update.
6671         * modules/sys_select (Depends-on): Update.
6672         * modules/sys_socket (Depends-on): Update.
6673         * modules/sys_stat (Depends-on): Update.
6674         * modules/sys_time (Depends-on): Update.
6675         * modules/sys_times (Depends-on): Update.
6676         * modules/sys_utsname (Depends-on): Update.
6677         * modules/sys_wait (Depends-on): Update.
6678         * modules/termios (Depends-on): Update.
6679         * modules/time (Depends-on): Update.
6680         * modules/unistd (Depends-on): Update.
6681         * modules/wchar (Depends-on): Update.
6682         * modules/wctype-h (Depends-on): Update.
6683         * MODULES.html.sh (Support for building libraries and executables):
6684         Update.
6685
6686         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6687         * modules/snippet/unused-parameter: Renamed from
6688         modules/unused-parameter.
6689         (Files, Makefile.am): Update.
6690         * build-aux/snippet/unused-parameter.h: Renamed from
6691         build-aux/unused-parameter.h.
6692         * modules/selinux-h (Depends-on): Update.
6693         * modules/unistr/base (Depends-on): Update.
6694         * MODULES.html.sh (Core language properties): Update.
6695
6696         Rename module 'link-warning' to 'snippet/link-warning'.
6697         * modules/snippet/link-warning: Renamed from modules/link-warning.
6698         (Files, Makefile.am): Update.
6699         * build-aux/snippet/link-warning.h: Renamed from
6700         build-aux/link-warning.h.
6701         * MODULES.html.sh (Support for building libraries and executables):
6702         Update.
6703
6704         Rename module 'c++defs' to 'snippet/c++defs'.
6705         * modules/snippet/c++defs: Renamed from modules/c++defs.
6706         (Files, Makefile.am): Update.
6707         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6708         * modules/arpa_inet (Depends-on): Update.
6709         * modules/ctype (Depends-on): Update.
6710         * modules/dirent (Depends-on): Update.
6711         * modules/fcntl-h (Depends-on): Update.
6712         * modules/glob (Depends-on): Update.
6713         * modules/iconv-h (Depends-on): Update.
6714         * modules/langinfo (Depends-on): Update.
6715         * modules/locale (Depends-on): Update.
6716         * modules/math (Depends-on): Update.
6717         * modules/netdb (Depends-on): Update.
6718         * modules/poll-h (Depends-on): Update.
6719         * modules/pty (Depends-on): Update.
6720         * modules/search (Depends-on): Update.
6721         * modules/signal (Depends-on): Update.
6722         * modules/spawn (Depends-on): Update.
6723         * modules/stdio (Depends-on): Update.
6724         * modules/stdlib (Depends-on): Update.
6725         * modules/string (Depends-on): Update.
6726         * modules/strings (Depends-on): Update.
6727         * modules/sys_ioctl (Depends-on): Update.
6728         * modules/sys_select (Depends-on): Update.
6729         * modules/sys_socket (Depends-on): Update.
6730         * modules/sys_stat (Depends-on): Update.
6731         * modules/sys_time (Depends-on): Update.
6732         * modules/sys_wait (Depends-on): Update.
6733         * modules/termios (Depends-on): Update.
6734         * modules/time (Depends-on): Update.
6735         * modules/unistd (Depends-on): Update.
6736         * modules/wchar (Depends-on): Update.
6737         * modules/wctype-h (Depends-on): Update.
6738
6739         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6740         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6741         (Files, Makefile.am): Update.
6742         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6743         * modules/argv-iter (Depends-on): Update.
6744         * modules/arpa_inet (Depends-on): Update.
6745         * modules/dirent (Depends-on): Update.
6746         * modules/fcntl-h (Depends-on): Update.
6747         * modules/fnmatch (Depends-on): Update.
6748         * modules/getopt-posix (Depends-on): Update.
6749         * modules/glob (Depends-on): Update.
6750         * modules/iconv-h (Depends-on): Update.
6751         * modules/inttypes-incomplete (Depends-on): Update.
6752         * modules/locale (Depends-on): Update.
6753         * modules/math (Depends-on): Update.
6754         * modules/netdb (Depends-on): Update.
6755         * modules/search (Depends-on): Update.
6756         * modules/signal (Depends-on): Update.
6757         * modules/spawn (Depends-on): Update.
6758         * modules/stdio (Depends-on): Update.
6759         * modules/stdlib (Depends-on): Update.
6760         * modules/string (Depends-on): Update.
6761         * modules/strings (Depends-on): Update.
6762         * modules/sys_socket (Depends-on): Update.
6763         * modules/sys_stat (Depends-on): Update.
6764         * modules/sys_time (Depends-on): Update.
6765         * modules/sys_times (Depends-on): Update.
6766         * modules/sys_utsname (Depends-on): Update.
6767         * modules/time (Depends-on): Update.
6768         * modules/unistd (Depends-on): Update.
6769         * modules/wchar (Depends-on): Update.
6770         * MODULES.html.sh (Support for building libraries and executables):
6771         Update.
6772
6773 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6774
6775         Improvements on _Noreturn and related modules.
6776
6777         modules/_Exit-tests: test _Noreturn too
6778         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6779         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6780         (main): Use them.
6781
6782         stdnoreturn, stdnoreturn-tests: remove modules
6783         They're not needed here and a bit premature for use elsewhere.  See
6784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6785         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6786         * tests/test-stdnoreturn.c: Remove files.
6787         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6788         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6789         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6790         and using noreturn.
6791         * modules/openat, modules/sigpipe-die, modules/xalloc:
6792         * modules/xmemdup0, modules/xstrtol:
6793         Remove dependency on stdnoreturn.
6794
6795         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6796         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6797         Reparenthesize to avoid GCC warning.
6798         Support Microsoft's syntax.
6799         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6800
6801         _Noreturn-tests: remove module
6802         * modules/_Noreturn-tests: Remove.
6803         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6804         * tests/test-_Noreturn.c: Remove.
6805         * tests/test-stdnoreturn.c: Merge from the old
6806         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6807
6808 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6809
6810         _Noreturn, stdnoreturn, and related modules.
6811
6812         * top/maint.mk: Adjust to new noreturn support.
6813         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6814         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6815
6816         xalloc: use stdnoreturn.h
6817         * lib/xalloc.h: Include <stdnoreturn.h>.
6818         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6819         * modules/xalloc (Depends-on): Add stdnoreturn.
6820
6821         xstrtol: use stdnoreturn.h
6822         * lib/xstrtol.h: Include <stdnoreturn.h>.
6823         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6824         * modules/xstrtol (Depends-on): Add stdnoreturn.
6825
6826         xmemdup0: use stdnoreturn.h
6827         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6828         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6829         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6830
6831         sigpipe-die: use stdnoreturn.h
6832         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6833         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6834         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6835
6836         openat: use stdnoreturn.h
6837         * lib/openat.h: Include <stdnoreturn.h>.
6838         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6839         * modules/openat (Depends-on): Add stdnoreturn.
6840
6841         * lib/openat-die.c (openat_save_fail): Modernize comment.
6842
6843         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6844
6845         * lib/glthread/thread.h: Modernize comment.
6846
6847         obstack: use _Noreturn
6848         * lib/obstack.c (__attribute__): Remove macro.
6849         (print_and_abort): Use _Noreturn.
6850
6851         c-stack: use _Noreturn
6852         * lib/c-stack.c (die, overflow_handler, segv_handler):
6853         Use _Noreturn rather than __attribute__((noreturn)).
6854
6855         argmatch-tests, exclude_tests: use _Noreturn
6856         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6857         Remove.
6858         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6859
6860         stdlib: use _Noreturn
6861         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6862         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6863         * modules/stdlib (Depends-on): Add _Noreturn.
6864         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6865
6866         stdnoreturn-tests: new module
6867         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6868
6869         stdnoreturn: new module
6870         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6871         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6872
6873         _Noreturn-tests: new module
6874         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6875
6876         _Noreturn: new module
6877         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6878         New section, mentioning it.
6879         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6880
6881         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6882
6883 2011-07-11  Eric Blake  <eblake@redhat.com>
6884
6885         ffs: new module
6886         * modules/ffs: New file.
6887         * m4/ffs.m4: Likewise.
6888         * lib/ffs.c: Likewise.
6889         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6890         * modules/strings (Makefile.am): Substitute witness.
6891         (Depends-on): Add c++defs.
6892         * lib/strings.in.h (ffs): Declare.
6893         * modules/ffs-tests: New test file.
6894         * tests/test-ffs.c: Test new module.
6895         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6896         * doc/posix-functions/ffs.texi (ffs): Likewise.
6897
6898         regex: avoid compiler warning
6899         * lib/regex.c (includes): Include <strings.h>, for use of
6900         strcasecmp in regcomp.c.
6901         Reported by Joachim Schmitz.
6902
6903 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6904
6905         stdint: respect system's intmax_t if INTMAX_MAX
6906         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6907         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6908         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6909         long but int64_t is long long, and where we will clash with the
6910         system intmax_t if we override it.  See
6911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6912         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6913         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6914         similarly for UINTMAX_C.
6915
6916 2011-07-08  Bruno Haible  <bruno@clisp.org>
6917
6918         pthread_sigmask tests: Avoid a compiler warning.
6919         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6920         non-zero.
6921
6922         sigprocmask tests: A better way to avoid a compiler warning.
6923         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6924         (main): Complain if system() returns non-zero.
6925         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6926
6927 2011-07-08  Bruno Haible  <bruno@clisp.org>
6928
6929         pthread_sigmask: Work around IRIX bug.
6930         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6931         bug.
6932         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6933         there may be unblocked pending signals.
6934         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6935
6936 2011-07-08  Bruno Haible  <bruno@clisp.org>
6937
6938         pthread_sigmask: Work around Cygwin bug.
6939         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6940         bug.
6941         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6942         the system's pthread_sigmask function.
6943         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6944
6945 2011-07-08  Bruno Haible  <bruno@clisp.org>
6946
6947         pthread_sigmask: Work around bug in single-threaded implementation.
6948         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6949         FreeBSD, HP-UX, Solaris bug.
6950         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6951         * lib/pthread_sigmask.c: Include <stddef.h>.
6952         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6953         the system's pthread_sigmask function.
6954         * modules/pthread_sigmask (configure.ac): Invoke
6955         gl_PREREQ_PTHREAD_SIGMASK.
6956         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6957         HP-UX, Solaris.
6958
6959 2011-07-08  Eric Blake  <eblake@redhat.com>
6960
6961         test-sigprocmask: avoid compiler warning
6962         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6963         * tests/test-sigprocmask.c (main): Use it to silence warning.
6964         Reported by Jim Meyering.
6965
6966         test-snprintf: avoid compiler warning
6967         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6968         * tests/test-vsnprintf.c (main): Likewise.
6969         Reported by Jim Meyering.
6970
6971 2011-07-08  Bruno Haible  <bruno@clisp.org>
6972
6973         Tests for module 'pthread_sigmask'.
6974         * modules/pthread_sigmask-tests: New file.
6975         * tests/test-pthread_sigmask1.c: New file, based on
6976         tests/test-sigprocmask.c.
6977         * tests/test-pthread_sigmask2.c: New file.
6978
6979 2011-07-08  Jim Meyering  <meyering@redhat.com>
6980
6981         test-getopt.h: avoid warning about an unused variable
6982         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6983
6984 2011-07-07  Jim Meyering  <meyering@redhat.com>
6985
6986         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6987         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6988         now that it no longer contains leading TABs.
6989         Remove unused "url=FIXME" statement.
6990
6991 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6992
6993         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6994         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6995         When gl_THREADLIB is not in use, assume that the POSIX sematics
6996         are desired.  This is better for Emacs, which uses POSIX semantics
6997         on GNUish and/or POSIXish platforms, and does not use threads at
6998         all otherwise.
6999
7000         pthread_sigmask: fix typo when testing for libraries
7001         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7002         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7003
7004 2011-07-08  Eric Blake  <eblake@redhat.com>
7005
7006         fts: introduce FTS_NOATIME
7007         * lib/fts_.h (FTS_NOATIME): New bit flag.
7008         (FTS_OPTIONMASK): Adjust.
7009         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7010         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7011
7012 2011-07-08  Bruno Haible  <bruno@clisp.org>
7013
7014         Tests for module 'thread'.
7015         * modules/thread-tests: New file.
7016         * tests/test-thread_self.c: New file.
7017         * tests/test-thread_create.cc: New file.
7018
7019 2011-07-08  Bruno Haible  <bruno@clisp.org>
7020
7021         thread: Avoid gcc warnings when using gl_thread_self().
7022         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7023         'void *'.
7024         (gl_thread_self_pointer): Update.
7025
7026 2011-07-07  Bruno Haible  <bruno@clisp.org>
7027
7028         signal-c++-tests: Check declaration of pthread_sigmask.
7029         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7030         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7031         $(LIB_PTHREAD_SIGMASK).
7032
7033 2011-07-07  Bruno Haible  <bruno@clisp.org>
7034
7035         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7036         * lib/signal.in.h (pthread_sigmask): Override if
7037         REPLACE_PTHREAD_SIGMASK is 1.
7038         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7039         REPLACE_PTHREAD_SIGMASK.
7040         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7041         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7042         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7043         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7044         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7045
7046 2011-07-07  Bruno Haible  <bruno@clisp.org>
7047
7048         pthread_sigmask: Ensure declaration in <signal.h>.
7049         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7050         include <pthread.h>.
7051         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7052         problem.
7053
7054 2011-07-07  Bruno Haible  <bruno@clisp.org>
7055
7056         pthread_sigmask: Document the module.
7057         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7058
7059 2011-07-07  Bruno Haible  <bruno@clisp.org>
7060
7061         pthread_sigmask: Follow gnulib conventions.
7062         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7063         gl_PTHREAD_SIGMASK.
7064         * modules/pthread_sigmask (configure.ac): Update.
7065
7066 2011-07-07  Bruno Haible  <bruno@clisp.org>
7067
7068         pthread_sigmask: Make declaration C++ safe.
7069         * lib/signal.in.h: In two special conditions, just do an #include_next.
7070         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7071         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7072         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7073         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7074         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7075         not REPLACE_PTHREAD_MASK.
7076         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7077         not REPLACE_PTHREAD_MASK.
7078         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7079
7080 2011-07-07  Bruno Haible  <bruno@clisp.org>
7081
7082         pthread_sigmask: Fix return value.
7083         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7084         * lib/pthread_sigmask.c: New file.
7085         * modules/pthread_sigmask (Files): Add it.
7086         (configure.ac): Invoke AC_LIBOBJ.
7087
7088 2011-07-07  Eric Blake  <eblake@redhat.com>
7089
7090         getopt: more portable argv creation
7091         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7092         const, use char arrays rather than strings.
7093         Suggested by Paul Eggert.
7094
7095 2011-07-07  Bruno Haible  <bruno@clisp.org>
7096
7097         Tests for module 'sigprocmask'.
7098         * modules/sigprocmask-tests: New file.
7099         * tests/test-sigprocmask.c: New file.
7100
7101 2011-07-07  Bruno Haible  <bruno@clisp.org>
7102
7103         float tests: Tweak.
7104         * tests/test-float.c (main): Tweak skip message.
7105
7106 2011-07-07  Eric Blake  <eblake@redhat.com>
7107
7108         getopt: avoid compiler warning during configure
7109         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7110         assigning string literals to non-const pointer.
7111
7112         getopt-gnu: avoid crash in glibc getopt
7113         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7114         * tests/test-getopt.h (test_getopt): Enhance test.
7115         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7116         * doc/posix-functions/getopt.texi (getopt): Document it.
7117         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7118         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7119         Likewise.
7120
7121 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7122
7123         getopt: handle W; without long options in getopt [BZ #12922]
7124         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7125         but no long options are defined, just return 'W'.
7126
7127 2011-07-07  Bruno Haible  <bruno@clisp.org>
7128
7129         Avoid literal tabs.
7130         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7131         variable containing a tab instead of a literal tab.
7132         Reported by Jim Meyering.
7133
7134 2011-07-07  Bruno Haible  <bruno@clisp.org>
7135
7136         Comments.
7137         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7138
7139 2011-07-06  Bruno Haible  <bruno@clisp.org>
7140
7141         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7142         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7143         <winsock2.h>.
7144         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7145         lib/sys_socket.in.h.
7146         (close, gethostname): Hide declarations from <winsock2.h>.
7147         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7148         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7149         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7150         (select): Don't override if gnulib's <sys/select.h> was already
7151         included.
7152         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7153         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7154         setsockopt, shutdown, select): Tweak indentation.
7155
7156 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7157
7158         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7159         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7160         in an application that does not use the sys_select module.
7161
7162 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7163
7164         poll: do not return 0 on timeout=-1
7165         * lib/poll.c: Loop with yield if no events occured
7166
7167 2011-07-06  Eric Blake  <eblake@redhat.com>
7168
7169         pthread_sigmask: always replace when not using pthread
7170         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7171         replacement when using some threading other than pthread.  Fix
7172         logic bug.
7173
7174 2011-07-06  Bruno Haible  <bruno@clisp.org>
7175
7176         Comments.
7177         * m4/printf.m4: Update comments about mingw.
7178
7179 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7180
7181         sys_select: define sigset_t more portably
7182         * lib/sys_select.in.h: Always include <sys/types.h>, since
7183         we now need sigset_t and mingw defines it there.
7184         Include <signal.h> before split inclusion guard, to avoid
7185         mishaps on Solaris, whose <signal.h> eventually includes us.
7186         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7187         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7188         which come from ...
7189         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7190         gl_CHECK_TYPE_SIGSET_T.
7191         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7192         does the real work.
7193         * modules/sys_select (Depends-on): Add 'signal'.
7194
7195         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7196         Suggested by Bruno Haible.
7197
7198         pselect: Use pthread_sigmask, not sigprocmask.
7199         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7200         multithreaded apps better than sigprocmask does.
7201         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7202         sigprocmask directly.
7203
7204 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7205
7206         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7207         Don't #undef,  since we don't need any underlying pselect.
7208         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7209         (Depends-on): Add select.
7210         (Link): Add $(LIBSOCKET).
7211         These changes suggested by Bruno Haible.
7212
7213         pselect: document better
7214         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7215         * doc/posix-functions/pselect.texi (pselect): Document new module.
7216
7217         pthread_sigmask: new module
7218         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7219         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7220         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7221         This is done only as a macro; I don't know how well that'll
7222         work for C++.  Move <sys/types.h> include before the include_next,
7223         to avoid mishap on Solaris.
7224         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7225         * modules/signal (Makefile.am): Substitute the check's results.
7226         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7227
7228         test-pselect: new module
7229         * modules/pselect-tests, tests/test-pselect.c: New files.
7230         * tests/test-select.c, tests/test-sys_select-c++.cc:
7231         If TEST_PSELECT is defined, test pselect instead of testing select.
7232
7233         * tests/test-sys_select.c (sigset_t): Test for it, too.
7234         Suggested by Bruno Haible.
7235
7236 2011-07-05  Eric Blake  <eblake@redhat.com>
7237
7238         snprintf: guarantee %1$d, for libintl
7239         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7240         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7241         * doc/posix-functions/snprintf.texi (snprintf): Update.
7242         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7243         * tests/test-snprintf.c (main): Enhance test.
7244         * tests/test-vsnprintf.c (main): Likewise.
7245
7246 2011-07-05  Jim Meyering  <meyering@redhat.com>
7247
7248         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7249         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7250         per Bruno's request, to accommodate this idiom (no space after "#")
7251         even when the function is inside an #if block:
7252         char *
7253         gets (char *s)
7254         #undef gets
7255         {
7256           ...
7257         }
7258
7259 2011-07-04  Jim Meyering  <meyering@redhat.com>
7260
7261         maint: indent with spaces, not TABs, and add a rule to check this
7262         * tests/test-userspec.c: Indent with spaces, not TABs.
7263         * tests/test-argp.c: Likewise.
7264         * tests/test-c-stack2.sh: Likewise.
7265         * tests/test-parse-duration.sh: Likewise
7266         * m4/strtod.m4: Likewise.
7267         * m4/alloca.m4: Likewise.
7268         * m4/pselect.m4: Likewise.
7269         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7270
7271 2011-07-03  Jim Meyering  <meyering@redhat.com>
7272
7273         maint.mk: correct omissions in prohibit_argmatch_without_use check
7274         This rule would mistakenly report that argmatch.h is included without
7275         use even when both the argmatch and invalid_arg macro were used.
7276         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7277         of argmatch and invalid_arg.
7278
7279 2011-07-03  Bruno Haible  <bruno@clisp.org>
7280
7281         Comments about EINTR.
7282         * lib/safe-read.h: Explain the purpose of this module.
7283         * lib/safe-write.h: Likewise.
7284         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7285         module.
7286         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7287         module.
7288         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7289
7290 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7291
7292         xnanosleep: Rewrite to use new dtotimespec module.
7293         It has the conversion code that used to be in xnanosleep.
7294         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7295         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7296         (TIME_T_MAX): Remove.
7297         (xnanosleep): Rewrite in terms of dtotimespec.
7298         * modules/xnanosleep (Depends-on): Add dtotimespec.
7299         Remove intprops, stdbool.
7300
7301         timespec-add, timespec-sub: new modules
7302         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7303         * lib/timespec-add.c, lib/timespec-sub.c:
7304         * modules/timespec-add, modules/timespec-sub: New files.
7305
7306         dtotimespec: new module
7307         * lib/timespec.h (dtotimespec): New decl.
7308         * lib/dtotimespec.c, modules/dtotimespec: New files.
7309
7310         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7311
7312         pselect: new module
7313         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7314         (pselect): New decls.
7315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7316         since the standard pselect decl uses 'restrict'.
7317         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7318         HAVE_PSELECT, REPLACE_PSELECT.
7319         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7320         HAVE_PSELECT, REPLACE_PSELECT.
7321         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7322
7323         sys_select: don't depend on sys_socket
7324         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7326         This fix works on GNU and GNU-like platforms, but has not been tested
7327         on native Windows.
7328         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7329         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7330         gl_HEADER_SYS_SOCKET.
7331         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7332         gl_PREREQ_SYS_H_WINSOCK2.
7333
7334 2011-06-29  Eric Blake  <eblake@redhat.com>
7335
7336         pipe2: fix C89 compile problem
7337         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7338         Reported by Bruno Haible.
7339
7340         pipe, pipe2: don't corrupt fd on error
7341         * lib/pipe.c (pipe): Leave fd unchanged on error.
7342         * lib/pipe2.c (pipe2): Likewise.
7343         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7344         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7345
7346 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7347
7348         mmap-anon: do not use regular expressions inadvertently
7349         * m4/mmap-anon.m4: Remove trailing period from strings sought
7350         in the output.
7351
7352 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7353
7354         nanosleep: fix integer overflow problem
7355         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7356         arithmetic wraps around on overflow.
7357
7358         nanosleep: simplify carrying
7359         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7360         first call to the underyling nanosleep, not for the last one.
7361         This doesn't fix any bugs, but it simplifies the computation of
7362         the remaining delay.  Found while auditing integer overflow issues.
7363
7364         dup2: remove test for existence of fcntl
7365         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7366         "#if HAVE_FCNTL", in the configure-time test program.
7367         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7368         and therefore speeds up "configure" a bit.  Found while
7369         adding the dup2 module to Emacs.
7370
7371 2011-06-24  Eric Blake  <eblake@redhat.com>
7372
7373         maint.mk: enhance useless header checks
7374         * top/maint.mk (_sc_header_without_use): Check both include
7375         styles.
7376         (sc_prohibit_assert_without_use)
7377         (sc_prohibit_close_stream_without_use)
7378         (sc_prohibit_getopt_without_use)
7379         (sc_prohibit_quotearg_without_use)
7380         (sc_prohibit_quote_without_use)
7381         (sc_prohibit_long_options_without_use)
7382         (sc_prohibit_inttostr_without_use)
7383         (sc_prohibit_ignore_value_without_use)
7384         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7385         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7386         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7387         (sc_prohibit_hash_pjw_without_use)
7388         (sc_prohibit_safe_read_without_use)
7389         (sc_prohibit_argmatch_without_use)
7390         (sc_prohibit_canonicalize_without_use)
7391         (sc_prohibit_root_dev_ino_without_use)
7392         (sc_prohibit_openat_without_use)
7393         (sc_prohibit_c_ctype_without_use)
7394         (sc_prohibit_signal_without_use)
7395         (sc_prohibit_stdio--_without_use)
7396         (sc_prohibit_stdio-safer_without_use)
7397         (sc_prohibit_strings_without_use)
7398         (sc_prohibit_intprops_without_use)
7399         (sc_prohibit_stddef_without_use)
7400         (sc_prohibit_xfreopen_without_use): Update clients.
7401
7402 2011-06-24  Jim Meyering  <meyering@redhat.com>
7403
7404         syntax-check: keep one maint.mk rule in sync with its header
7405         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7406         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7407         I prefer to avoid temporary files here, so use <(...), but that
7408         is not supported by /bin/sh, so...
7409         (SHELL): Define to /bin/bash.
7410
7411 2011-06-24  Eric Blake  <eblake@redhat.com>
7412
7413         maint.mk: update sc_prohibit_intprops_without_use
7414         * top/maint.mk (_intprops_names): Match recent changes.
7415
7416 2011-06-24  Bruno Haible  <bruno@clisp.org>
7417
7418         strerror-override: No-op tweak.
7419         * lib/strerror-override.h (strerror_override): Reorder conditions,
7420         for consistency with lib/strerror-override.c.
7421
7422 2011-06-23  Eric Blake  <eblake@redhat.com>
7423
7424         maint.mk: test further PATH_MAX issues
7425         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7426         (sc_prohibit_path_max_allocation): ...and also test alloca.
7427         Suggested by Jim Meyering.
7428
7429 2011-06-22  Eric Blake  <eblake@redhat.com>
7430
7431         maint.mk: add syntax-check to avoid char[PATH_MAX]
7432         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7433
7434         stat: be robust to PATH_MAX definition
7435         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7436         * modules/stat (Depends-on): Add verify.
7437
7438         link: work around IRIX bug
7439         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7440         * lib/link.c (rpl_link): Work around it.
7441         * tests/test-link.h (test_link): Enhance test.
7442         * doc/posix-functions/link.texi (link): Document the bug.
7443
7444         getopt: silence clang warning
7445         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7446         dereference.
7447         Reported by Gustavo Martin Domato.
7448
7449 2011-06-22  Jim Meyering  <meyering@redhat.com>
7450
7451         bootstrap: do not insert a blank line into each .gitignore file
7452         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7453
7454 2011-06-21  Eric Blake  <eblake@redhat.com>
7455
7456         perror: test for output mismatch
7457         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7458         perror on IRIX.
7459
7460         strerror_r: fix OpenBSD behavior on out-of-range
7461         * lib/strerror_r.c (strerror_r): Always use maximal string.
7462         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7463
7464         strerror_r: fix OpenBSD behavior on 0
7465         * lib/strerror-override.c (strerror_override): Also override 0
7466         when needed.
7467         * lib/strerror-override.h (strerror_override): Likewise.
7468         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7469         earlier.
7470         * lib/strerror_r.c (strerror_r): Likewise.
7471         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7472         behavior...
7473         (gl_FUNC_STRERROR_0): ...into new macro.
7474         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7475         is overridden.
7476         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7477         * modules/strerror-override (Files): Add strerror.m4.
7478         (configure.ac): Also provide override for 0 when needed.
7479         * doc/posix-functions/strerror.texi (strerror): Document this.
7480         * doc/posix-functions/perror.texi (perror): Likewise.
7481
7482         perror: adjust array size
7483         * modules/perror (Depends-on): Add strerror-override.
7484         * lib/perror.c (perror): Use it to avoid magic number.
7485
7486         strerror-override: reduce size
7487         * lib/strerror-override.c (strerror_override): Use fewer lines.
7488
7489 2011-06-20  Bruno Haible  <bruno@clisp.org>
7490
7491         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7492         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7493
7494 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7495
7496         alloca: port to compilers that can optimize like GCC 4.6.0
7497         * lib/alloca.c (find_stack_direction): New signature, taken from
7498         Autoconf git.  This works with GCC 4.6.0.  This code should never
7499         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7500         be used with other compilers that optimize as well as GCC 4.6.0 does.
7501         (alloca): Adjust to new signature.
7502         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7503         New macro, which patches Autoconf in a similar way.
7504
7505         c-stack: stop worrying about stack direction
7506         * lib/c-stack.c (find_stack_direction): Remove.
7507         (segv_handler): Don't worry about stack direction growth, as it's
7508         too much of a pain to configure this correctly, given how compilers
7509         are optimizing-away our stack-growth detection code.  Instead, assume
7510         that any access to just before or just after the stack is OK.
7511         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7512         Don't require AC_FUNC_ALLOCA; no longer needed.
7513
7514 2011-06-20  Eric Blake  <eblake@redhat.com>
7515
7516         test-stat: don't allocate PATH_MAX bytes
7517         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7518         PATH_MAX-sized buffer.
7519         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7520         * modules/stat-tests (Depends-on): Likewise.
7521         * tests/test-fstatat.c (includes): Drop pathmax.h.
7522         * tests/test-stat.c (includes): Likewise.
7523         Reported by Bruno Haible.
7524
7525 2011-06-20  Bruno Haible  <bruno@clisp.org>
7526
7527         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7528         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7529         * lib/float.c: New file.
7530         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7531         REPLACE_FLOAT_LDBL.
7532         * modules/float (Files): Add lib/float.c.
7533         (configure.ac): Invoke AC_LIBOBJ.
7534         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7535
7536 2011-06-20  Bruno Haible  <bruno@clisp.org>
7537
7538         Tests for module 'float'.
7539         * modules/float-tests: New file.
7540         * tests/test-float.c: New file.
7541
7542 2011-06-19  Bruno Haible  <bruno@clisp.org>
7543
7544         isinf: Coding style.
7545         * lib/isinf.c: Use GNU coding style.
7546
7547 2011-06-19  Bruno Haible  <bruno@clisp.org>
7548
7549         linkat test: Avoid test failure on AIX 7.1.
7550         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7551         * tests/test-link.h (test_link): Likewise.
7552
7553 2011-06-19  Bruno Haible  <bruno@clisp.org>
7554
7555         pread test: Avoid test failure on OpenBSD 4.9.
7556         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7557
7558 2011-06-19  Bruno Haible  <bruno@clisp.org>
7559
7560         sprintf-posix: Fix test failure on AIX 7.1.
7561         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7562         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7563         on AIX.
7564         * doc/posix-functions/fprintf.texi: Likewise.
7565         * doc/posix-functions/printf.texi: Likewise.
7566         * doc/posix-functions/snprintf.texi: Likewise.
7567         * doc/posix-functions/sprintf.texi: Likewise.
7568         * doc/posix-functions/vdprintf.texi: Likewise.
7569         * doc/posix-functions/vfprintf.texi: Likewise.
7570         * doc/posix-functions/vprintf.texi: Likewise.
7571         * doc/posix-functions/vsnprintf.texi: Likewise.
7572         * doc/posix-functions/vsprintf.texi: Likewise.
7573
7574 2011-06-19  Bruno Haible  <bruno@clisp.org>
7575
7576         roundl-ieee: Fix test failure on AIX 7.1.
7577         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7578         * doc/posix-functions/roundl.texi: Mention problem with negative
7579         arguments.
7580
7581 2011-06-19  Bruno Haible  <bruno@clisp.org>
7582
7583         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7584         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7585         * doc/posix-functions/round.texi: Mention problem with negative
7586         arguments.
7587         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7588
7589 2011-06-19  Bruno Haible  <bruno@clisp.org>
7590
7591         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7592         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7593         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7594         * doc/posix-functions/roundf.texi: Mention problem with negative
7595         arguments.
7596         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7597
7598 2011-06-19  Bruno Haible  <bruno@clisp.org>
7599
7600         ceilf-ieee: Work around bug on MacOS X 10.5.
7601         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7602
7603         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7604         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7605         IEEE compliant, avoid compiler optimizations.
7606         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7607         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7608         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7609         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7610         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7611         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7612         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7613         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7614         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7615         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7616
7617 2011-06-19  Bruno Haible  <bruno@clisp.org>
7618
7619         ceilf-ieee: Work around bug on AIX 7.1.
7620         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7621         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7622
7623 2011-06-19  Bruno Haible  <bruno@clisp.org>
7624
7625         ceil-ieee: Work around bug on AIX 7.1.
7626         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7627         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7628
7629 2011-06-18  Bruno Haible  <bruno@clisp.org>
7630
7631         fsync test: Avoid test failure on MacOS X and AIX.
7632         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7633         EINVAL.
7634
7635 2011-06-18  Bruno Haible  <bruno@clisp.org>
7636
7637         openat, fdopendir tests: Fix link errors.
7638         * modules/openat-tests (Depends-on): Add progname.
7639         * modules/fdopendir-tests (Depends-on): Likewise.
7640         * tests/test-fchownat.c: Include progname.h.
7641         (main): Call set_program_name.
7642         * tests/test-fstatat.c: Include progname.h.
7643         (main): Call set_program_name.
7644         * tests/test-mkdirat.c: Include progname.h.
7645         (main): Call set_program_name.
7646         * tests/test-openat.c: Include progname.h.
7647         (main): Call set_program_name.
7648         * tests/test-unlinkat.c: Include progname.h.
7649         (main): Call set_program_name.
7650         * tests/test-fdopendir.c: Include progname.h.
7651         (main): Call set_program_name.
7652
7653 2011-06-18  Bruno Haible  <bruno@clisp.org>
7654
7655         Doc update.
7656         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7657         HP-UX.
7658         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7659
7660 2011-06-18  Bruno Haible  <bruno@clisp.org>
7661
7662         getcwd tests: Avoid compilation error on HP-UX 11.31.
7663         * modules/getcwd-tests (Depends-on): Add pathmax.
7664         * tests/test-getcwd.c: Include pathmax.h.
7665
7666 2011-06-18  Bruno Haible  <bruno@clisp.org>
7667
7668         isfinite, isinf: Fix link error on AIX 6 and 7.
7669         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7670         needed, also test the macro with a 'float' argument.
7671         * m4/isinf.m4 (gl_ISINF): Likewise.
7672
7673 2011-06-18  Bruno Haible  <bruno@clisp.org>
7674
7675         getloadavg: Don't clobber LIBS. Regression from previous commit.
7676         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7677         AC_CHECK_LIB from here...
7678         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7679         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7680         gl_func_getloadavg_done.
7681         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7682
7683 2011-06-18  Bruno Haible  <bruno@clisp.org>
7684
7685         clean-temp: Improve documentation.
7686         * lib/clean-temp.h: Explain better how to use this module.
7687         Reported by John Darrington <john@darrington.wattle.id.au>.
7688
7689 2011-06-17  Bruno Haible  <bruno@clisp.org>
7690
7691         pread, pwrite: Avoid cc warning on AIX.
7692         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7693         (pwrite): Likewise.
7694
7695 2011-06-17  Bruno Haible  <bruno@clisp.org>
7696
7697         spawn-pipe tests: Fix link error.
7698         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7699         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7700
7701 2011-06-17  Bruno Haible  <bruno@clisp.org>
7702
7703         Tests: Remove unnecessary dependency.
7704         * modules/canonicalize-tests (Depends-on): Remove progname.
7705         * modules/chown-tests (Depends-on): Likewise.
7706         * modules/dirname-tests (Depends-on): Likewise.
7707         * modules/fdopendir-tests (Depends-on): Likewise.
7708         * modules/fdutimensat-tests (Depends-on): Likewise.
7709         * modules/hash-tests (Depends-on): Likewise.
7710         * modules/lchown-tests (Depends-on): Likewise.
7711         * modules/linkat-tests (Depends-on): Likewise.
7712         * modules/renameat-tests (Depends-on): Likewise.
7713         * modules/spawn-pipe-tests (Depends-on): Likewise.
7714         * modules/utimensat-tests (Depends-on): Likewise.
7715
7716 2011-06-17  Bruno Haible  <bruno@clisp.org>
7717
7718         spawn-pipe tests: Fix link error.
7719         * tests/test-spawn-pipe-child.c: Undefine fflush.
7720
7721 2011-06-17  Bruno Haible  <bruno@clisp.org>
7722
7723         Fix tests link errors.
7724         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7725         * modules/chown-tests (Makefile.am): Don't link test-chown with
7726         LIBINTL.
7727         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7728         LIBINTL.
7729         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7730         LIBINTL.
7731         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7732         LIBINTL.
7733
7734 2011-06-16  Bruno Haible  <bruno@clisp.org>
7735
7736         crypto/gc-sha1: Fix recent regression.
7737         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7738         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7739
7740         crypto/gc-md5: Fix recent regression.
7741         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7742
7743         crypto/gc-md4: Fix recent regression.
7744         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7745         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7746
7747         crypto/gc-arctwo: Fix recent regression.
7748         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7749         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7750
7751         crypto/gc-rijndael: Fix recent regression.
7752         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7753         (configure.ac): Invoke AC_LIBOBJ here.
7754         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7756
7757         crypto/gc-hmac-sha1: Fix recent regression.
7758         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7759         (configure.ac): Invoke AC_LIBOBJ here.
7760         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7762
7763         crypto/gc-hmac-md5: Fix recent regression.
7764         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7765         (configure.ac): Invoke AC_LIBOBJ here.
7766         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7768
7769         crypto/gc-des: Fix recent regression.
7770         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7771         (configure.ac): Invoke AC_LIBOBJ here.
7772         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7773         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7774
7775         crypto/gc-arcfour: Fix recent regression.
7776         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7777         (configure.ac): Invoke AC_LIBOBJ here.
7778         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7779         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7780
7781 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7782
7783         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7784         After the 2011-05-21 change, this macro requires
7785         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7786         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7787
7788 2011-06-16  Bruno Haible  <bruno@clisp.org>
7789
7790         fprintftime: Move AC_LIBOBJ invocations to module description.
7791         * m4/fprintftime.m4: Remove file.
7792         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7793         (configure.ac): Remove gl_FPRINTFTIME call.
7794         (Makefile.am): Augment lib_SOURCES.
7795         Reported by Jim Meyering.
7796
7797 2011-06-16  Bruno Haible  <bruno@clisp.org>
7798
7799         tmpfile-safer: Finish 2011-05-23 commit.
7800         * m4/stdio-safer.m4: Really remove file.
7801         Reported by Jim Meyering.
7802
7803 2011-06-16  Bruno Haible  <bruno@clisp.org>
7804
7805         syntax-check: Fix typo.
7806         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7807         printf-posix.m4.
7808         Reported by Jim Meyering.
7809
7810 2011-06-13  Jim Meyering  <meyering@redhat.com>
7811
7812         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7813         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7814
7815 2011-05-23  Bruno Haible  <bruno@clisp.org>
7816
7817         yesno: Move AC_LIBOBJ invocations to module description.
7818         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7819         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7820
7821 2011-05-23  Bruno Haible  <bruno@clisp.org>
7822
7823         xstrtol: Move AC_LIBOBJ invocations to module description.
7824         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7825         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7826
7827 2011-05-23  Bruno Haible  <bruno@clisp.org>
7828
7829         xstrtold: Move AC_LIBOBJ invocations to module description.
7830         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7831         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7832
7833 2011-05-23  Bruno Haible  <bruno@clisp.org>
7834
7835         xstrtod: Move AC_LIBOBJ invocations to module description.
7836         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7837         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7838
7839 2011-05-23  Bruno Haible  <bruno@clisp.org>
7840
7841         xnanosleep: Move AC_LIBOBJ invocations to module description.
7842         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7843         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7844
7845 2011-05-23  Bruno Haible  <bruno@clisp.org>
7846
7847         xgetcwd: Move AC_LIBOBJ invocations to module description.
7848         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7849         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7850
7851 2011-05-23  Bruno Haible  <bruno@clisp.org>
7852
7853         xalloc: Move AC_LIBOBJ invocations to module description.
7854         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7855         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7856
7857 2011-05-23  Bruno Haible  <bruno@clisp.org>
7858
7859         write-any-file: Move AC_LIBOBJ invocations to module description.
7860         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7861         invocation.
7862         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7863
7864 2011-05-23  Bruno Haible  <bruno@clisp.org>
7865
7866         utimens: Move AC_LIBOBJ invocations to module description.
7867         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7868         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7869
7870 2011-05-23  Bruno Haible  <bruno@clisp.org>
7871
7872         utimecmp: Move AC_LIBOBJ invocations to module description.
7873         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7874         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7875
7876 2011-05-23  Bruno Haible  <bruno@clisp.org>
7877
7878         userspec: Move AC_LIBOBJ invocations to module description.
7879         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7880         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7881
7882 2011-05-23  Bruno Haible  <bruno@clisp.org>
7883
7884         unlinkdir: Move AC_LIBOBJ invocations to module description.
7885         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7886         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7887
7888 2011-05-23  Bruno Haible  <bruno@clisp.org>
7889
7890         unistd-safer: Move AC_LIBOBJ invocations to module description.
7891         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7892         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7893
7894 2011-05-23  Bruno Haible  <bruno@clisp.org>
7895
7896         tempname: Move AC_LIBOBJ invocations to module description.
7897         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7898         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7899
7900 2011-05-23  Bruno Haible  <bruno@clisp.org>
7901
7902         strftime: Move AC_LIBOBJ invocations to module description.
7903         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7904         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7905
7906 2011-05-23  Bruno Haible  <bruno@clisp.org>
7907
7908         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7909         * m4/stdlib-safer.m4: Remove file.
7910         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7911         (configure.ac): Remove gl_STDLIB_SAFER call.
7912         (Makefile.am): Augment lib_SOURCES.
7913
7914 2011-05-23  Bruno Haible  <bruno@clisp.org>
7915
7916         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7917         * m4/stdio-safer.m4: Remove file.
7918         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7919         (configure.ac): Remove gl_TMPFILE_SAFER call.
7920         (Makefile.am): Augment lib_SOURCES.
7921
7922 2011-05-23  Bruno Haible  <bruno@clisp.org>
7923
7924         popen-safer: Move AC_LIBOBJ invocations to module description.
7925         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7926         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7927         (configure.ac): Remove gl_POPEN_SAFER call.
7928         (Makefile.am): Augment lib_SOURCES.
7929
7930 2011-05-23  Bruno Haible  <bruno@clisp.org>
7931
7932         freopen-safer: Move AC_LIBOBJ invocations to module description.
7933         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7934         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7935         (configure.ac): Remove gl_FREOPEN_SAFER call.
7936         (Makefile.am): Augment lib_SOURCES.
7937
7938 2011-05-23  Bruno Haible  <bruno@clisp.org>
7939
7940         fopen-safer: Move AC_LIBOBJ invocations to module description.
7941         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7942         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7943         (configure.ac): Remove gl_FOPEN_SAFER call.
7944         (Makefile.am): Augment lib_SOURCES.
7945
7946 2011-05-23  Bruno Haible  <bruno@clisp.org>
7947
7948         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7949         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7950         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7951
7952 2011-05-23  Bruno Haible  <bruno@clisp.org>
7953
7954         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7955         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7956         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7957
7958 2011-05-23  Bruno Haible  <bruno@clisp.org>
7959
7960         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7961         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7962         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7963
7964 2011-05-23  Bruno Haible  <bruno@clisp.org>
7965
7966         settime: Move AC_LIBOBJ invocations to module description.
7967         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7968         * modules/settime (Makefile.am): Augment lib_SOURCES.
7969
7970 2011-05-23  Bruno Haible  <bruno@clisp.org>
7971
7972         savedir: Move AC_LIBOBJ invocations to module description.
7973         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7974         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7975
7976 2011-05-23  Bruno Haible  <bruno@clisp.org>
7977
7978         save-cwd: Move AC_LIBOBJ invocations to module description.
7979         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7980         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7981
7982 2011-05-23  Bruno Haible  <bruno@clisp.org>
7983
7984         same: Move AC_LIBOBJ invocations to module description.
7985         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7986         * modules/same (Makefile.am): Augment lib_SOURCES.
7987
7988 2011-05-23  Bruno Haible  <bruno@clisp.org>
7989
7990         safe-write: Move AC_LIBOBJ invocations to module description.
7991         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7992         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7993         instead of gl_SAFE_WRITE.
7994         (Makefile.am): Augment lib_SOURCES.
7995
7996 2011-05-23  Bruno Haible  <bruno@clisp.org>
7997
7998         safe-read: Move AC_LIBOBJ invocations to module description.
7999         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8000         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8001         of gl_SAFE_READ.
8002         (Makefile.am): Augment lib_SOURCES.
8003
8004 2011-05-23  Bruno Haible  <bruno@clisp.org>
8005
8006         safe-alloc: Move AC_LIBOBJ invocations to module description.
8007         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8008         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8009
8010 2011-05-23  Bruno Haible  <bruno@clisp.org>
8011
8012         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8013         * m4/rijndael.m4: Remove file.
8014         * modules/crypto/rijndael (Files): Remove it.
8015         (configure.ac): Remove gl_RIJNDAEL call.
8016         (Makefile.am): Augment lib_SOURCES.
8017
8018 2011-05-23  Bruno Haible  <bruno@clisp.org>
8019
8020         readtokens: Move AC_LIBOBJ invocations to module description.
8021         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8022         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8023
8024 2011-05-23  Bruno Haible  <bruno@clisp.org>
8025
8026         read-file: Move AC_LIBOBJ invocations to module description.
8027         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8028         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8029         of gl_FUNC_READ_FILE.
8030         (Makefile.am): Augment lib_SOURCES.
8031
8032 2011-05-23  Bruno Haible  <bruno@clisp.org>
8033
8034         quotearg: Move AC_LIBOBJ invocations to module description.
8035         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8036         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8037
8038 2011-05-23  Bruno Haible  <bruno@clisp.org>
8039
8040         quote: Move AC_LIBOBJ invocations to module description.
8041         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8042         * modules/quote (Makefile.am): Augment lib_SOURCES.
8043
8044 2011-05-23  Bruno Haible  <bruno@clisp.org>
8045
8046         posixver: Move AC_LIBOBJ invocations to module description.
8047         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8048         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8049
8050 2011-05-23  Bruno Haible  <bruno@clisp.org>
8051
8052         posixtm: Move AC_LIBOBJ invocations to module description.
8053         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8054         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8055
8056 2011-05-23  Bruno Haible  <bruno@clisp.org>
8057
8058         physmem: Move AC_LIBOBJ invocations to module description.
8059         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8060         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8061
8062 2011-05-23  Bruno Haible  <bruno@clisp.org>
8063
8064         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8065         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8066         invocation.
8067         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8068
8069 2011-05-23  Bruno Haible  <bruno@clisp.org>
8070
8071         mpsort: Move AC_LIBOBJ invocations to module description.
8072         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8073         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8074
8075 2011-05-23  Bruno Haible  <bruno@clisp.org>
8076
8077         modechange: Move AC_LIBOBJ invocations to module description.
8078         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8079         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8080
8081 2011-05-23  Bruno Haible  <bruno@clisp.org>
8082
8083         mkdir-p: Move AC_LIBOBJ invocations to module description.
8084         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8085         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8086
8087 2011-05-23  Bruno Haible  <bruno@clisp.org>
8088
8089         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8090         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8091         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8092
8093 2011-05-23  Bruno Haible  <bruno@clisp.org>
8094
8095         mgetgroups: Move AC_LIBOBJ invocations to module description.
8096         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8097         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8098
8099 2011-05-23  Bruno Haible  <bruno@clisp.org>
8100
8101         memxor: Move AC_LIBOBJ invocations to module description.
8102         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8103         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8104
8105 2011-05-23  Bruno Haible  <bruno@clisp.org>
8106
8107         memcoll: Move AC_LIBOBJ invocations to module description.
8108         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8109         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8110
8111 2011-05-23  Bruno Haible  <bruno@clisp.org>
8112
8113         memcasecmp: Move AC_LIBOBJ invocations to module description.
8114         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8115         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8116
8117 2011-05-23  Bruno Haible  <bruno@clisp.org>
8118
8119         crypto/md5: Move AC_LIBOBJ invocations to module description.
8120         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8121         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8122
8123 2011-05-23  Bruno Haible  <bruno@clisp.org>
8124
8125         crypto/md4: Move AC_LIBOBJ invocations to module description.
8126         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8127         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8128
8129 2011-05-23  Bruno Haible  <bruno@clisp.org>
8130
8131         crypto/md2: Move AC_LIBOBJ invocations to module description.
8132         * m4/md2.m4: Remove file.
8133         * modules/crypto/md2 (Files): Remove it.
8134         (configure.ac): Remove gl_MD2 call.
8135         (Makefile.am): Augment lib_SOURCES.
8136
8137 2011-05-23  Bruno Haible  <bruno@clisp.org>
8138
8139         long-options: Move AC_LIBOBJ invocations to module description.
8140         * m4/long-options.m4: Remove file.
8141         * modules/long-options (Files): Remove it.
8142         (configure.ac): Remove gl_LONG_OPTIONS call.
8143         (Makefile.am): Augment lib_SOURCES.
8144
8145 2011-05-23  Bruno Haible  <bruno@clisp.org>
8146
8147         i-ring: Move AC_LIBOBJ invocations to module description.
8148         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8149         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8150
8151 2011-05-23  Bruno Haible  <bruno@clisp.org>
8152
8153         idcache: Move AC_LIBOBJ invocations to module description.
8154         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8155         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8156
8157 2011-05-23  Bruno Haible  <bruno@clisp.org>
8158
8159         human: Move AC_LIBOBJ invocations to module description.
8160         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8161         * modules/human (Makefile.am): Augment lib_SOURCES.
8162
8163 2011-05-23  Bruno Haible  <bruno@clisp.org>
8164
8165         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8166         * m4/hmac-sha1.m4: Remove file.
8167         * modules/crypto/hmac-sha1 (Files): Remove it.
8168         (configure.ac): Remove gl_HMAC_SHA1 call.
8169         (Makefile.am): Augment lib_SOURCES.
8170
8171 2011-05-23  Bruno Haible  <bruno@clisp.org>
8172
8173         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8174         * m4/hmac-md5.m4: Remove file.
8175         * modules/crypto/hmac-md5 (Files): Remove it.
8176         (configure.ac): Remove gl_HMAC_MD5 call.
8177         (Makefile.am): Augment lib_SOURCES.
8178
8179 2011-05-23  Bruno Haible  <bruno@clisp.org>
8180
8181         hash: Move AC_LIBOBJ invocations to module description.
8182         * m4/hash.m4: Remove file.
8183         * modules/hash (Files): Remove it.
8184         (configure.ac): Remove gl_HASH call.
8185         (Makefile.am): Augment lib_SOURCES.
8186
8187 2011-05-23  Bruno Haible  <bruno@clisp.org>
8188
8189         hard-locale: Move AC_LIBOBJ invocations to module description.
8190         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8191         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8192
8193 2011-05-23  Bruno Haible  <bruno@clisp.org>
8194
8195         getugroups: Move AC_LIBOBJ invocations to module description.
8196         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8197         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8198
8199 2011-05-23  Bruno Haible  <bruno@clisp.org>
8200
8201         gettime: Move AC_LIBOBJ invocations to module description.
8202         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8203         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8204
8205 2011-05-23  Bruno Haible  <bruno@clisp.org>
8206
8207         getndelim2: Move AC_LIBOBJ invocations to module description.
8208         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8209         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8210
8211 2011-05-23  Bruno Haible  <bruno@clisp.org>
8212
8213         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8214         * m4/gc-pbkdf2-sha1.m4: Remove file.
8215         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8216         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8217         (Makefile.am): Augment lib_SOURCES.
8218
8219 2011-05-23  Bruno Haible  <bruno@clisp.org>
8220
8221         fts: Move AC_LIBOBJ invocations to module description.
8222         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8223         * modules/fts (configure.ac): ... to here.
8224
8225 2011-05-23  Bruno Haible  <bruno@clisp.org>
8226
8227         file-type: Move AC_LIBOBJ invocations to module description.
8228         * m4/file-type.m4: Remove file.
8229         * modules/file-type (Files): Remove it.
8230         (configure.ac): Remove gl_FILE_TYPE call.
8231         (Makefile.am): Augment lib_SOURCES.
8232
8233 2011-05-23  Bruno Haible  <bruno@clisp.org>
8234
8235         filenamecat*: Respect rules for use of AC_LIBOBJ.
8236         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8237         Remove AC_LIBOBJ invocation.
8238         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8239         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8240
8241 2011-05-23  Bruno Haible  <bruno@clisp.org>
8242
8243         filemode: Move AC_LIBOBJ invocations to module description.
8244         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8245         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8246
8247 2011-05-23  Bruno Haible  <bruno@clisp.org>
8248
8249         openat-safer: Move AC_LIBOBJ invocations to module description.
8250         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8251         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8252
8253 2011-05-23  Bruno Haible  <bruno@clisp.org>
8254
8255         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8256         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8257         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8258
8259 2011-05-23  Bruno Haible  <bruno@clisp.org>
8260
8261         exclude: Move AC_LIBOBJ invocations to module description.
8262         * m4/exclude.m4: Remove file.
8263         * modules/exclude (Files): Remove it.
8264         (configure.ac): Remove gl_EXCLUDE call.
8265         (Makefile.am): Augment lib_SOURCES.
8266
8267 2011-05-23  Bruno Haible  <bruno@clisp.org>
8268
8269         dirname*: Respect rules for use of AC_LIBOBJ.
8270         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8271         invocations.
8272         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8273         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8274
8275 2011-05-23  Bruno Haible  <bruno@clisp.org>
8276
8277         dirent-safer: Move AC_LIBOBJ invocations to module description.
8278         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8279         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8280
8281 2011-05-23  Bruno Haible  <bruno@clisp.org>
8282
8283         crypto/des: Move AC_LIBOBJ invocations to module description.
8284         * m4/des.m4: Remove file.
8285         * modules/crypto/des (Files): Remove it.
8286         (configure.ac): Remove gl_DES call.
8287         (Makefile.am): Augment lib_SOURCES.
8288
8289 2011-05-23  Bruno Haible  <bruno@clisp.org>
8290
8291         cycle-check: Move AC_LIBOBJ invocations to module description.
8292         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8293         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8294
8295 2011-05-23  Bruno Haible  <bruno@clisp.org>
8296
8297         c-strtold: Move AC_LIBOBJ invocations to module description.
8298         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8299         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8300
8301 2011-05-23  Bruno Haible  <bruno@clisp.org>
8302
8303         c-strtod: Move AC_LIBOBJ invocations to module description.
8304         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8305         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8306
8307 2011-05-23  Bruno Haible  <bruno@clisp.org>
8308
8309         crc: Move AC_LIBOBJ invocations to module description.
8310         * m4/crc.m4: Remove file.
8311         * modules/crc (Files): Remove it.
8312         (configure.ac): Remove gl_CRC call.
8313         (Makefile.am): Augment lib_SOURCES.
8314
8315 2011-05-23  Bruno Haible  <bruno@clisp.org>
8316
8317         close-stream: Move AC_LIBOBJ invocations to module description.
8318         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8319         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8320
8321 2011-05-23  Bruno Haible  <bruno@clisp.org>
8322
8323         closeout: Move AC_LIBOBJ invocations to module description.
8324         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8325         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8326
8327 2011-05-23  Bruno Haible  <bruno@clisp.org>
8328
8329         closein: Move AC_LIBOBJ invocations to module description.
8330         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8331         * modules/closein (Makefile.am): Augment lib_SOURCES.
8332
8333 2011-05-23  Bruno Haible  <bruno@clisp.org>
8334
8335         cloexec: Move AC_LIBOBJ invocations to module description.
8336         * m4/cloexec.m4: Remove file.
8337         * modules/cloexec (Files): Remove it.
8338         (configure.ac): Remove gl_CLOEXEC call.
8339         (Makefile.am): Augment lib_SOURCES.
8340
8341 2011-05-23  Bruno Haible  <bruno@clisp.org>
8342
8343         check-version: Move AC_LIBOBJ invocations to module description.
8344         * m4/check-version.m4: Remove file.
8345         * modules/check-version (Files): Remove it.
8346         (configure.ac): Remove gl_CHECK_VERSION call.
8347         (Makefile.am): Augment lib_SOURCES.
8348
8349 2011-05-23  Bruno Haible  <bruno@clisp.org>
8350
8351         chdir-safer: Move AC_LIBOBJ invocations to module description.
8352         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8353         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8354
8355 2011-05-23  Bruno Haible  <bruno@clisp.org>
8356
8357         canonicalize: Move AC_LIBOBJ invocations to module description.
8358         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8359         AC_LIBOBJ invocation.
8360         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8361
8362 2011-05-23  Bruno Haible  <bruno@clisp.org>
8363
8364         canon-host: Move AC_LIBOBJ invocations to module description.
8365         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8366         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8367         instead of gl_CANON_HOST.
8368         (Makefile.am): Augment lib_SOURCES.
8369
8370 2011-05-23  Bruno Haible  <bruno@clisp.org>
8371
8372         backupfile: Move AC_LIBOBJ invocations to module description.
8373         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8374         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8375
8376 2011-05-23  Bruno Haible  <bruno@clisp.org>
8377
8378         argmatch: Move AC_LIBOBJ invocations to module description.
8379         * m4/argmatch.m4: Remove file.
8380         * modules/argmatch (Files): Remove it.
8381         (configure.ac): Remove gl_ARGMATCH call.
8382         (Makefile.am): Augment lib_SOURCES.
8383
8384 2011-05-23  Bruno Haible  <bruno@clisp.org>
8385
8386         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8387         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8388         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8389
8390 2011-05-23  Bruno Haible  <bruno@clisp.org>
8391
8392         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8393         * m4/arcfour.m4: Remove file.
8394         * modules/crypto/arcfour (Files): Remove it.
8395         (configure.ac): Remove gl_ARCFOUR call.
8396         (Makefile.am): Augment lib_SOURCES.
8397
8398 2011-05-22  Bruno Haible  <bruno@clisp.org>
8399
8400         write: Move AC_LIBOBJ invocations to module description.
8401         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8402         * modules/write (configure.ac): ... to here.
8403
8404 2011-05-22  Bruno Haible  <bruno@clisp.org>
8405
8406         wmemset: Move AC_LIBOBJ invocations to module description.
8407         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8408         here...
8409         * modules/wmemset (configure.ac): ... to here.
8410
8411 2011-05-22  Bruno Haible  <bruno@clisp.org>
8412
8413         wmemmove: Move AC_LIBOBJ invocations to module description.
8414         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8415         here...
8416         * modules/wmemmove (configure.ac): ... to here.
8417
8418 2011-05-22  Bruno Haible  <bruno@clisp.org>
8419
8420         wmemcpy: Move AC_LIBOBJ invocations to module description.
8421         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8422         here...
8423         * modules/wmemcpy (configure.ac): ... to here.
8424
8425 2011-05-22  Bruno Haible  <bruno@clisp.org>
8426
8427         wmemcmp: Move AC_LIBOBJ invocations to module description.
8428         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8429         here...
8430         * modules/wmemcmp (configure.ac): ... to here.
8431
8432 2011-05-22  Bruno Haible  <bruno@clisp.org>
8433
8434         wmemchr: Move AC_LIBOBJ invocations to module description.
8435         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8436         here...
8437         * modules/wmemchr (configure.ac): ... to here.
8438
8439 2011-05-22  Bruno Haible  <bruno@clisp.org>
8440
8441         wcswidth: Move AC_LIBOBJ invocations to module description.
8442         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8443         here...
8444         * modules/wcswidth (configure.ac): ... to here.
8445
8446 2011-05-22  Bruno Haible  <bruno@clisp.org>
8447
8448         wcwidth: Respect rules for use of AC_LIBOBJ.
8449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8450         invocation from here...
8451         * modules/wcwidth (configure.ac): ... to here.
8452         (Depends-on): Update conditions.
8453
8454 2011-05-22  Bruno Haible  <bruno@clisp.org>
8455
8456         wctype: Move AC_LIBOBJ invocations to module description.
8457         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8458         invocation from here...
8459         * modules/wctype (configure.ac): ... to here.
8460         (Depends-on): Update conditions.
8461
8462 2011-05-22  Bruno Haible  <bruno@clisp.org>
8463
8464         wctrans: Move AC_LIBOBJ invocations to module description.
8465         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8466         invocation from here...
8467         * modules/wctrans (configure.ac): ... to here.
8468
8469 2011-05-22  Bruno Haible  <bruno@clisp.org>
8470
8471         wctomb: Move AC_LIBOBJ invocations to module description.
8472         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8473         invocations from here...
8474         * modules/wctomb (configure.ac): ... to here.
8475
8476 2011-05-22  Bruno Haible  <bruno@clisp.org>
8477
8478         wctob: Move AC_LIBOBJ invocations to module description.
8479         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8480         gl_PREREQ_WCTOB invocations from here...
8481         * modules/wctob (configure.ac): ... to here.
8482         (Depends-on): Update conditions.
8483
8484 2011-05-22  Bruno Haible  <bruno@clisp.org>
8485
8486         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8487         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8488         here...
8489         * modules/wcsxfrm (configure.ac): ... to here.
8490
8491 2011-05-22  Bruno Haible  <bruno@clisp.org>
8492
8493         wcstok: Move AC_LIBOBJ invocations to module description.
8494         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8495         * modules/wcstok (configure.ac): ... to here.
8496
8497 2011-05-22  Bruno Haible  <bruno@clisp.org>
8498
8499         wcsstr: Move AC_LIBOBJ invocations to module description.
8500         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8501         * modules/wcsstr (configure.ac): ... to here.
8502
8503 2011-05-22  Bruno Haible  <bruno@clisp.org>
8504
8505         wcsspn: Move AC_LIBOBJ invocations to module description.
8506         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8507         * modules/wcsspn (configure.ac): ... to here.
8508
8509 2011-05-22  Bruno Haible  <bruno@clisp.org>
8510
8511         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8512         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8513         gl_PREREQ_WCSRTOMBS invocations from here...
8514         * modules/wcsrtombs (configure.ac): ... to here.
8515
8516 2011-05-22  Bruno Haible  <bruno@clisp.org>
8517
8518         wcsrchr: Move AC_LIBOBJ invocations to module description.
8519         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8520         here...
8521         * modules/wcsrchr (configure.ac): ... to here.
8522
8523 2011-05-22  Bruno Haible  <bruno@clisp.org>
8524
8525         wcspbrk: Move AC_LIBOBJ invocations to module description.
8526         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8527         here...
8528         * modules/wcspbrk (configure.ac): ... to here.
8529
8530 2011-05-22  Bruno Haible  <bruno@clisp.org>
8531
8532         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8533         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8534         gl_PREREQ_WCSNRTOMBS invocations from here...
8535         * modules/wcsnrtombs (configure.ac): ... to here.
8536
8537 2011-05-22  Bruno Haible  <bruno@clisp.org>
8538
8539         wcsnlen: Move AC_LIBOBJ invocations to module description.
8540         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8541         here...
8542         * modules/wcsnlen (configure.ac): ... to here.
8543
8544 2011-05-22  Bruno Haible  <bruno@clisp.org>
8545
8546         wcsncpy: Move AC_LIBOBJ invocations to module description.
8547         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8548         here...
8549         * modules/wcsncpy (configure.ac): ... to here.
8550
8551 2011-05-22  Bruno Haible  <bruno@clisp.org>
8552
8553         wcsncmp: Move AC_LIBOBJ invocations to module description.
8554         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8555         here...
8556         * modules/wcsncmp (configure.ac): ... to here.
8557
8558 2011-05-22  Bruno Haible  <bruno@clisp.org>
8559
8560         wcsncat: Move AC_LIBOBJ invocations to module description.
8561         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8562         here...
8563         * modules/wcsncat (configure.ac): ... to here.
8564
8565 2011-05-22  Bruno Haible  <bruno@clisp.org>
8566
8567         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8568         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8569         from here...
8570         * modules/wcsncasecmp (configure.ac): ... to here.
8571
8572 2011-05-22  Bruno Haible  <bruno@clisp.org>
8573
8574         wcslen: Move AC_LIBOBJ invocations to module description.
8575         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8576         * modules/wcslen (configure.ac): ... to here.
8577
8578 2011-05-22  Bruno Haible  <bruno@clisp.org>
8579
8580         wcsdup: Move AC_LIBOBJ invocations to module description.
8581         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8582         * modules/wcsdup (configure.ac): ... to here.
8583
8584 2011-05-22  Bruno Haible  <bruno@clisp.org>
8585
8586         wcscspn: Move AC_LIBOBJ invocations to module description.
8587         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8588         here...
8589         * modules/wcscspn (configure.ac): ... to here.
8590
8591 2011-05-22  Bruno Haible  <bruno@clisp.org>
8592
8593         wcscpy: Move AC_LIBOBJ invocations to module description.
8594         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8595         * modules/wcscpy (configure.ac): ... to here.
8596
8597 2011-05-22  Bruno Haible  <bruno@clisp.org>
8598
8599         wcscoll: Move AC_LIBOBJ invocations to module description.
8600         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8601         here...
8602         * modules/wcscoll (configure.ac): ... to here.
8603
8604 2011-05-22  Bruno Haible  <bruno@clisp.org>
8605
8606         wcscmp: Move AC_LIBOBJ invocations to module description.
8607         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8608         * modules/wcscmp (configure.ac): ... to here.
8609
8610 2011-05-22  Bruno Haible  <bruno@clisp.org>
8611
8612         wcschr: Move AC_LIBOBJ invocations to module description.
8613         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8614         * modules/wcschr (configure.ac): ... to here.
8615
8616 2011-05-22  Bruno Haible  <bruno@clisp.org>
8617
8618         wcscat: Move AC_LIBOBJ invocations to module description.
8619         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8620         * modules/wcscat (configure.ac): ... to here.
8621
8622 2011-05-22  Bruno Haible  <bruno@clisp.org>
8623
8624         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8625         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8626         here...
8627         * modules/wcscasecmp (configure.ac): ... to here.
8628
8629 2011-05-22  Bruno Haible  <bruno@clisp.org>
8630
8631         wcrtomb: Move AC_LIBOBJ invocations to module description.
8632         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8633         invocations from here...
8634         * modules/wcrtomb (configure.ac): ... to here.
8635
8636 2011-05-22  Bruno Haible  <bruno@clisp.org>
8637
8638         wcpncpy: Move AC_LIBOBJ invocations to module description.
8639         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8640         here...
8641         * modules/wcpncpy (configure.ac): ... to here.
8642
8643 2011-05-22  Bruno Haible  <bruno@clisp.org>
8644
8645         wcpcpy: Move AC_LIBOBJ invocations to module description.
8646         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8647         * modules/wcpcpy (configure.ac): ... to here.
8648
8649 2011-05-22  Bruno Haible  <bruno@clisp.org>
8650
8651         waitpid: Move AC_LIBOBJ invocations to module description.
8652         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8653         invocation from here...
8654         * modules/waitpid (configure.ac): ... to here.
8655
8656 2011-05-22  Bruno Haible  <bruno@clisp.org>
8657
8658         utimensat: Move AC_LIBOBJ invocations to module description.
8659         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8660         here...
8661         * modules/utimensat (configure.ac): ... to here.
8662
8663 2011-05-22  Bruno Haible  <bruno@clisp.org>
8664
8665         usleep: Move AC_LIBOBJ invocations to module description.
8666         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8667         here...
8668         * modules/usleep (configure.ac): ... to here.
8669
8670 2011-05-22  Bruno Haible  <bruno@clisp.org>
8671
8672         unlockpt: Move AC_LIBOBJ invocations to module description.
8673         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8674         gl_PREREQ_UNLOCKPT invocations from here...
8675         * modules/unlockpt (configure.ac): ... to here.
8676
8677 2011-05-22  Bruno Haible  <bruno@clisp.org>
8678
8679         unlink: Respect rules for use of AC_LIBOBJ.
8680         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8681         * modules/unlink (configure.ac): ... to here.
8682
8683 2011-05-22  Bruno Haible  <bruno@clisp.org>
8684
8685         uname: Move AC_LIBOBJ invocations to module description.
8686         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8687         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8688         here...
8689         * modules/uname (configure.ac): ... to here.
8690
8691 2011-05-22  Bruno Haible  <bruno@clisp.org>
8692
8693         ttyname_r: Move AC_LIBOBJ invocations to module description.
8694         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8695         gl_PREREQ_TTYNAME_R invocations from here...
8696         * modules/ttyname_r (configure.ac): ... to here.
8697
8698 2011-05-22  Bruno Haible  <bruno@clisp.org>
8699
8700         tsearch: Move AC_LIBOBJ invocations to module description.
8701         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8702         invocations from here...
8703         * modules/tsearch (configure.ac): ... to here.
8704
8705 2011-05-22  Bruno Haible  <bruno@clisp.org>
8706
8707         towctrans: Move AC_LIBOBJ invocations to module description.
8708         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8709         AC_LIBOBJ invocation from here...
8710         * modules/towctrans (configure.ac): ... to here.
8711
8712 2011-05-22  Bruno Haible  <bruno@clisp.org>
8713
8714         tmpfile: Move AC_LIBOBJ invocations to module description.
8715         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8716         invocations from here...
8717         * modules/tmpfile (configure.ac): ... to here.
8718
8719 2011-05-22  Bruno Haible  <bruno@clisp.org>
8720
8721         times: Move AC_LIBOBJ invocations to module description.
8722         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8723         * modules/times (configure.ac): ... to here.
8724
8725 2011-05-22  Bruno Haible  <bruno@clisp.org>
8726
8727         time_r: Move AC_LIBOBJ invocations to module description.
8728         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8729         invocations from here...
8730         * modules/time_r (configure.ac): ... to here.
8731
8732 2011-05-22  Bruno Haible  <bruno@clisp.org>
8733
8734         timegm: Move AC_LIBOBJ invocations to module description.
8735         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8736         invocations from here...
8737         * modules/timegm (configure.ac): ... to here.
8738
8739 2011-05-22  Bruno Haible  <bruno@clisp.org>
8740
8741         tcgetsid: Move AC_LIBOBJ invocations to module description.
8742         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8743         and gl_PREREQ_TCGETSID invocations from here...
8744         * modules/tcgetsid (configure.ac): ... to here.
8745         (Depends-on): Update conditions.
8746
8747 2011-05-22  Bruno Haible  <bruno@clisp.org>
8748
8749         symlinkat: Move AC_LIBOBJ invocations to module description.
8750         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8751         here...
8752         * modules/symlinkat (configure.ac): ... to here.
8753
8754 2011-05-22  Bruno Haible  <bruno@clisp.org>
8755
8756         symlink: Move AC_LIBOBJ invocations to module description.
8757         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8758         here...
8759         * modules/symlink (configure.ac): ... to here.
8760
8761 2011-05-22  Bruno Haible  <bruno@clisp.org>
8762
8763         strverscmp: Move AC_LIBOBJ invocations to module description.
8764         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8765         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8766         from here...
8767         * modules/strverscmp (configure.ac): ... to here.
8768
8769 2011-05-22  Bruno Haible  <bruno@clisp.org>
8770
8771         strtok_r: Move AC_LIBOBJ invocations to module description.
8772         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8773         and gl_PREREQ_STRTOK_R invocations from here...
8774         * modules/strtok_r (configure.ac): ... to here.
8775         (Depends-on): Update conditions.
8776
8777 2011-05-22  Bruno Haible  <bruno@clisp.org>
8778
8779         strtoumax: Move AC_LIBOBJ invocations to module description.
8780         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8781         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8782         from here...
8783         * modules/strtoumax (configure.ac): ... to here.
8784
8785 2011-05-22  Bruno Haible  <bruno@clisp.org>
8786
8787         strtoimax: Move AC_LIBOBJ invocations to module description.
8788         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8789         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8790         from here...
8791         * modules/strtoimax (configure.ac): ... to here.
8792
8793 2011-05-22  Bruno Haible  <bruno@clisp.org>
8794
8795         strtoull: Move AC_LIBOBJ invocations to module description.
8796         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8797         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8798         from here...
8799         * modules/strtoull (configure.ac): ... to here.
8800
8801 2011-05-22  Bruno Haible  <bruno@clisp.org>
8802
8803         strtoll: Move AC_LIBOBJ invocations to module description.
8804         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8805         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8806         here...
8807         * modules/strtoll (configure.ac): ... to here.
8808
8809 2011-05-22  Bruno Haible  <bruno@clisp.org>
8810
8811         strtoul: Move AC_LIBOBJ invocations to module description.
8812         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8813         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8814         * modules/strtoul (configure.ac): ... to here.
8815
8816 2011-05-22  Bruno Haible  <bruno@clisp.org>
8817
8818         strtol: Move AC_LIBOBJ invocations to module description.
8819         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8820         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8821         * modules/strtol (configure.ac): ... to here.
8822
8823 2011-05-22  Bruno Haible  <bruno@clisp.org>
8824
8825         strtod: Move AC_LIBOBJ invocations to module description.
8826         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8827         invocations from here...
8828         * modules/strtod (configure.ac): ... to here.
8829
8830 2011-05-22  Bruno Haible  <bruno@clisp.org>
8831
8832         strstr*: Move AC_LIBOBJ invocations to module description.
8833         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8834         invocations from here...
8835         * modules/strstr-simple (configure.ac): ... to here.
8836         * modules/strstr (configure.ac): ... and here.
8837
8838 2011-05-22  Bruno Haible  <bruno@clisp.org>
8839
8840         strsignal: Move AC_LIBOBJ invocations to module description.
8841         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8842         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8843         * modules/strsignal (configure.ac): ... to here.
8844         (Depends-on): Update conditions.
8845
8846 2011-05-22  Bruno Haible  <bruno@clisp.org>
8847
8848         strsep: Move AC_LIBOBJ invocations to module description.
8849         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8850         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8851         here...
8852         * modules/strsep (configure.ac): ... to here.
8853
8854 2011-05-22  Bruno Haible  <bruno@clisp.org>
8855
8856         strptime: Move AC_LIBOBJ invocations to module description.
8857         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8858         gl_PREREQ_STRPTIME invocations from here...
8859         * modules/strptime (configure.ac): ... to here.
8860
8861 2011-05-22  Bruno Haible  <bruno@clisp.org>
8862
8863         strpbrk: Move AC_LIBOBJ invocations to module description.
8864         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8865         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8866         here...
8867         * modules/strpbrk (configure.ac): ... to here.
8868
8869 2011-05-22  Bruno Haible  <bruno@clisp.org>
8870
8871         strnlen: Move AC_LIBOBJ invocations to module description.
8872         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8873         invocations from here...
8874         * modules/strnlen (configure.ac): ... to here.
8875
8876 2011-05-22  Bruno Haible  <bruno@clisp.org>
8877
8878         strndup: Move AC_LIBOBJ invocations to module description.
8879         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8880         invocations from here...
8881         * modules/strndup (configure.ac): ... to here.
8882         (Depends-on): Update conditions.
8883
8884 2011-05-22  Bruno Haible  <bruno@clisp.org>
8885
8886         strncat: Move AC_LIBOBJ invocations to module description.
8887         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8888         invocations from here...
8889         * modules/strncat (configure.ac): ... to here.
8890
8891 2011-05-22  Bruno Haible  <bruno@clisp.org>
8892
8893         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8894         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8895         invocations from here...
8896         * modules/strdup (configure.ac): ... to here.
8897         * modules/strdup-posix (configure.ac): ... and here.
8898
8899 2011-05-22  Bruno Haible  <bruno@clisp.org>
8900
8901         strcspn: Move AC_LIBOBJ invocations to module description.
8902         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8904         here...
8905         * modules/strcspn (configure.ac): ... to here.
8906
8907 2011-05-22  Bruno Haible  <bruno@clisp.org>
8908
8909         strchrnul: Move AC_LIBOBJ invocations to module description.
8910         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8911         gl_PREREQ_STRCHRNUL invocations from here...
8912         * modules/strchrnul (configure.ac): ... to here.
8913
8914 2011-05-22  Bruno Haible  <bruno@clisp.org>
8915
8916         strcasestr*: Move AC_LIBOBJ invocations to module description.
8917         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8918         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8919         * modules/strcasestr-simple (configure.ac): ... to here.
8920         * modules/strcasestr (configure.ac): ... and here.
8921
8922 2011-05-22  Bruno Haible  <bruno@clisp.org>
8923
8924         strcase: Move AC_LIBOBJ invocations to module description.
8925         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8926         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8927         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8928         gl_PREREQ_STRNCASECMP invocations from here...
8929         * modules/strcase (configure.ac): ... to here.
8930
8931 2011-05-22  Bruno Haible  <bruno@clisp.org>
8932
8933         stpncpy: Move AC_LIBOBJ invocations to module description.
8934         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8935         here...
8936         * modules/stpncpy (configure.ac): ... to here.
8937
8938 2011-05-22  Bruno Haible  <bruno@clisp.org>
8939
8940         stpcpy: Move AC_LIBOBJ invocations to module description.
8941         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8942         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8943         here...
8944         * modules/stpcpy (configure.ac): ... to here.
8945
8946 2011-05-21  Bruno Haible  <bruno@clisp.org>
8947
8948         stat: Move AC_LIBOBJ invocations to module description.
8949         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8950         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8951         here...
8952         * modules/stat (configure.ac): ... to here.
8953
8954 2011-05-21  Bruno Haible  <bruno@clisp.org>
8955
8956         sleep: Move AC_LIBOBJ invocations to module description.
8957         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8958         * modules/sleep (configure.ac): ... to here.
8959
8960 2011-05-21  Bruno Haible  <bruno@clisp.org>
8961
8962         signbit: Move AC_LIBOBJ invocations to module description.
8963         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8964         * modules/signbit (configure.ac): ... to here.
8965
8966 2011-05-21  Bruno Haible  <bruno@clisp.org>
8967
8968         sigprocmask: Move AC_LIBOBJ invocations to module description.
8969         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8970         gl_PREREQ_SIGPROMASK invocations from here...
8971         * modules/sigprocmask (configure.ac): ... to here.
8972
8973 2011-05-21  Bruno Haible  <bruno@clisp.org>
8974
8975         sigaction: Move AC_LIBOBJ invocations to module description.
8976         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8977         gl_PREREQ_SIGACTION invocations from here...
8978         * modules/sigaction (configure.ac): ... to here.
8979
8980 2011-05-21  Bruno Haible  <bruno@clisp.org>
8981
8982         sig2str: Move AC_LIBOBJ invocations to module description.
8983         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8984         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8985         here...
8986         * modules/sig2str (configure.ac): ... to here.
8987
8988 2011-05-21  Bruno Haible  <bruno@clisp.org>
8989
8990         setlocale: Move AC_LIBOBJ invocations to module description.
8991         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8992         gl_PREREQ_SETLOCALE invocations from here...
8993         * modules/setlocale (configure.ac): ... to here.
8994
8995 2011-05-21  Bruno Haible  <bruno@clisp.org>
8996
8997         unsetenv: Move AC_LIBOBJ invocations to module description.
8998         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8999         and gl_PREREQ_UNSETENV invocations from here...
9000         * modules/unsetenv (configure.ac): ... to here.
9001         (Depends-on): Update.
9002
9003 2011-05-21  Bruno Haible  <bruno@clisp.org>
9004
9005         setenv: Move AC_LIBOBJ invocations to module description.
9006         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9007         here...
9008         * modules/setenv (configure.ac): ... to here.
9009
9010 2011-05-21  Bruno Haible  <bruno@clisp.org>
9011
9012         selinux-h: Move AC_LIBOBJ invocations to module description.
9013         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9014         AC_LIBOBJ invocation from here...
9015         * modules/selinux-h (configure.ac): ... to here.
9016
9017 2011-05-21  Bruno Haible  <bruno@clisp.org>
9018
9019         select: Respect rules for use of AC_LIBOBJ.
9020         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9021         here...
9022         * modules/select (configure.ac): ... to here.
9023
9024 2011-05-21  Bruno Haible  <bruno@clisp.org>
9025
9026         scandir: Move AC_LIBOBJ invocations to module description.
9027         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9028         invocations from here...
9029         * modules/scandir (configure.ac): ... to here.
9030
9031 2011-05-21  Bruno Haible  <bruno@clisp.org>
9032
9033         rpmatch: Move AC_LIBOBJ invocations to module description.
9034         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9035         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9036         here...
9037         * modules/rpmatch (configure.ac): ... to here.
9038
9039 2011-05-21  Bruno Haible  <bruno@clisp.org>
9040
9041         rmdir: Respect rules for use of AC_LIBOBJ.
9042         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9043         * modules/rmdir (configure.ac): ... to here.
9044
9045 2011-05-21  Bruno Haible  <bruno@clisp.org>
9046
9047         renameat: Move AC_LIBOBJ invocations to module description.
9048         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9049         here...
9050         * modules/renameat (configure.ac): ... to here.
9051
9052 2011-05-21  Bruno Haible  <bruno@clisp.org>
9053
9054         rename: Respect rules for use of AC_LIBOBJ.
9055         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9056         here...
9057         * modules/rename (configure.ac): ... to here.
9058
9059 2011-05-21  Bruno Haible  <bruno@clisp.org>
9060
9061         remove: Move AC_LIBOBJ invocations to module description.
9062         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9063         here...
9064         * modules/remove (configure.ac): ... to here.
9065
9066 2011-05-21  Bruno Haible  <bruno@clisp.org>
9067
9068         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9069         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9070         macro.
9071         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9072         * modules/relocatable-lib (configure.ac): ... to here.
9073         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9074         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9075
9076 2011-05-21  Bruno Haible  <bruno@clisp.org>
9077
9078         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9079         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9080         here...
9081         * modules/relocatable-prog (configure.ac): ... to here.
9082
9083 2011-05-21  Bruno Haible  <bruno@clisp.org>
9084
9085         regex: Move AC_LIBOBJ invocations to module description.
9086         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9087         invocations from here...
9088         * modules/regex (configure.ac): ... to here.
9089
9090 2011-05-21  Bruno Haible  <bruno@clisp.org>
9091
9092         realloc-*: Move AC_LIBOBJ invocations to module description.
9093         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9094         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9095         AC_LIBOBJ invocations from here...
9096         * modules/realloc-gnu (configure.ac): ... to here.
9097         * modules/realloc-posix (configure.ac): ... and here.
9098
9099 2011-05-21  Bruno Haible  <bruno@clisp.org>
9100
9101         readutmp: Move AC_LIBOBJ invocations to module description.
9102         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9103         * modules/readutmp (configure.ac): ... to here.
9104
9105 2011-05-21  Bruno Haible  <bruno@clisp.org>
9106
9107         readlinkat: Move AC_LIBOBJ invocations to module description.
9108         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9109         here...
9110         * modules/readlinkat (configure.ac): ... to here.
9111
9112 2011-05-21  Bruno Haible  <bruno@clisp.org>
9113
9114         readlink: Move AC_LIBOBJ invocations to module description.
9115         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9116         gl_PREREQ_READLINK invocations from here...
9117         * modules/readlink (configure.ac): ... to here.
9118
9119 2011-05-21  Bruno Haible  <bruno@clisp.org>
9120
9121         readline: Move AC_LIBOBJ invocations to module description.
9122         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9123         gl_PREREQ_READLINE invocations from here...
9124         * modules/readline (configure.ac): ... to here.
9125
9126 2011-05-21  Bruno Haible  <bruno@clisp.org>
9127
9128         read: Move AC_LIBOBJ invocations to module description.
9129         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9130         * modules/read (configure.ac): ... to here.
9131
9132 2011-05-21  Bruno Haible  <bruno@clisp.org>
9133
9134         rawmemchr: Move AC_LIBOBJ invocations to module description.
9135         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9136         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9137         from here...
9138         * modules/rawmemchr (configure.ac): ... to here.
9139
9140 2011-05-21  Bruno Haible  <bruno@clisp.org>
9141
9142         random_r: Move AC_LIBOBJ invocations to module description.
9143         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9144         gl_PREREQ_RANDOM_R invocations from here...
9145         * modules/random_r (configure.ac): ... to here.
9146
9147 2011-05-21  Bruno Haible  <bruno@clisp.org>
9148
9149         pwrite: Move AC_LIBOBJ invocations to module description.
9150         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9151         * modules/pwrite (configure.ac): ... to here.
9152
9153 2011-05-21  Bruno Haible  <bruno@clisp.org>
9154
9155         putenv: Move AC_LIBOBJ invocations to module description.
9156         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9157         * modules/putenv (configure.ac): ... to here.
9158
9159 2011-05-21  Bruno Haible  <bruno@clisp.org>
9160
9161         login_tty: Move AC_LIBOBJ invocations to module description.
9162         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9163         * modules/login_tty (configure.ac): ... to here.
9164
9165 2011-05-21  Bruno Haible  <bruno@clisp.org>
9166
9167         openpty: Move AC_LIBOBJ invocations to module description.
9168         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9169         * modules/openpty (configure.ac): ... to here.
9170
9171 2011-05-21  Bruno Haible  <bruno@clisp.org>
9172
9173         forkpty: Move AC_LIBOBJ invocations to module description.
9174         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9175         * modules/forkpty (configure.ac): ... to here.
9176
9177 2011-05-21  Bruno Haible  <bruno@clisp.org>
9178
9179         ptsname: Move AC_LIBOBJ invocations to module description.
9180         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9181         invocations from here...
9182         * modules/ptsname (configure.ac): ... to here.
9183
9184 2011-05-21  Bruno Haible  <bruno@clisp.org>
9185
9186         pread: Move AC_LIBOBJ invocations to module description.
9187         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9188         * modules/pread (configure.ac): ... to here.
9189
9190 2011-05-21  Bruno Haible  <bruno@clisp.org>
9191
9192         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9193         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9194         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9195         * modules/posix_spawn (configure.ac): ... to here.
9196         * modules/posix_spawnp (configure.ac): ... and here.
9197
9198 2011-05-21  Bruno Haible  <bruno@clisp.org>
9199
9200         popen: Move AC_LIBOBJ invocations to module description.
9201         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9202         invocations from here...
9203         * modules/popen (configure.ac): ... to here.
9204
9205 2011-05-21  Bruno Haible  <bruno@clisp.org>
9206
9207         poll: Move AC_LIBOBJ invocations to module description.
9208         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9209         invocations from here...
9210         * modules/poll (configure.ac): ... to here.
9211
9212 2011-05-21  Bruno Haible  <bruno@clisp.org>
9213
9214         pipe-posix: Move AC_LIBOBJ invocations to module description.
9215         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9216         * modules/pipe-posix (configure.ac): ... to here.
9217
9218 2011-05-21  Bruno Haible  <bruno@clisp.org>
9219
9220         openat: Respect rules for use of AC_LIBOBJ.
9221         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9222         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9223         * modules/openat (configure.ac): ... to here.
9224
9225 2011-05-21  Bruno Haible  <bruno@clisp.org>
9226
9227         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9228         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9229         invocation from here...
9230         * modules/obstack-printf (configure.ac): ... to here.
9231         * modules/obstack-printf-posix (configure.ac): ... and here.
9232
9233 2011-05-21  Bruno Haible  <bruno@clisp.org>
9234
9235         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9236         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9237         from here...
9238         * modules/nl_langinfo (configure.ac): ... to here.
9239
9240 2011-05-21  Bruno Haible  <bruno@clisp.org>
9241
9242         nanosleep: Move AC_LIBOBJ invocations to module description.
9243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9244         gl_PREREQ_NANOSLEEP invocations from here...
9245         * modules/nanosleep (configure.ac): ... to here.
9246
9247 2011-05-21  Bruno Haible  <bruno@clisp.org>
9248
9249         mountlist: Move AC_LIBOBJ invocations to module description.
9250         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9251         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9252         * modules/mountlist (configure.ac): ... to here.
9253
9254 2011-05-21  Bruno Haible  <bruno@clisp.org>
9255
9256         mktime: Respect rules for use of AC_LIBOBJ.
9257         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9258         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9259         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9260         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9261         * modules/mktime (configure.ac): ... to here.
9262         * modules/mktime-internal (configure.ac): ... and here.
9263         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9264
9265 2011-05-21  Bruno Haible  <bruno@clisp.org>
9266
9267         mkstemps: Move AC_LIBOBJ invocations to module description.
9268         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9269         here...
9270         * modules/mkstemps (configure.ac): ... to here.
9271
9272 2011-05-21  Bruno Haible  <bruno@clisp.org>
9273
9274         mkstemp: Move AC_LIBOBJ invocations to module description.
9275         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9276         gl_PREREQ_MKSTEMP invocations from here...
9277         * modules/mkstemp (configure.ac): ... to here.
9278
9279 2011-05-21  Bruno Haible  <bruno@clisp.org>
9280
9281         mkostemps: Move AC_LIBOBJ invocations to module description.
9282         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9283         here...
9284         * modules/mkostemps (configure.ac): ... to here.
9285
9286 2011-05-21  Bruno Haible  <bruno@clisp.org>
9287
9288         mkostemp: Move AC_LIBOBJ invocations to module description.
9289         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9290         gl_PREREQ_MKOSTEMP invocations from here...
9291         * modules/mkostemp (configure.ac): ... to here.
9292
9293 2011-05-21  Bruno Haible  <bruno@clisp.org>
9294
9295         mknod: Move AC_LIBOBJ invocations to module description.
9296         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9297         * modules/mknod (configure.ac): ... to here.
9298
9299 2011-05-21  Bruno Haible  <bruno@clisp.org>
9300
9301         mkfifoat: Move AC_LIBOBJ invocations to module description.
9302         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9303         here...
9304         * modules/mkfifoat (configure.ac): ... to here.
9305
9306 2011-05-21  Bruno Haible  <bruno@clisp.org>
9307
9308         mkfifo: Respect rules for use of AC_LIBOBJ.
9309         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9310         here...
9311         * modules/mkfifo (configure.ac): ... to here.
9312
9313 2011-05-21  Bruno Haible  <bruno@clisp.org>
9314
9315         mkdtemp: Move AC_LIBOBJ invocations to module description.
9316         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9317         invocations from here...
9318         * modules/mkdtemp (configure.ac): ... to here.
9319
9320 2011-05-21  Bruno Haible  <bruno@clisp.org>
9321
9322         mkdir: Move AC_LIBOBJ invocations to module description.
9323         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9324         * modules/mkdir (configure.ac): ... to here.
9325
9326 2011-05-21  Bruno Haible  <bruno@clisp.org>
9327
9328         memset: Move AC_LIBOBJ invocations to module description.
9329         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9330         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9331         here...
9332         * modules/memset (configure.ac): ... to here.
9333
9334 2011-05-21  Bruno Haible  <bruno@clisp.org>
9335
9336         memrchr: Move AC_LIBOBJ invocations to module description.
9337         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9338         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9339         here...
9340         * modules/memrchr (configure.ac): ... to here.
9341
9342 2011-05-21  Bruno Haible  <bruno@clisp.org>
9343
9344         mempcpy: Move AC_LIBOBJ invocations to module description.
9345         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9346         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9347         here...
9348         * modules/mempcpy (configure.ac): ... to here.
9349
9350 2011-05-21  Bruno Haible  <bruno@clisp.org>
9351
9352         memmove: Move AC_LIBOBJ invocations to module description.
9353         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9354         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9355         here...
9356         * modules/memmove (configure.ac): ... to here.
9357
9358 2011-05-21  Bruno Haible  <bruno@clisp.org>
9359
9360         memmem*: Move AC_LIBOBJ invocations to module description.
9361         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9362         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9363         here...
9364         (gl_FUNC_MEMMEM): ... and here...
9365         * modules/memmem-simple (configure.ac): ... to here.
9366         * modules/memmem (configure.ac): ... and here.
9367
9368 2011-05-21  Bruno Haible  <bruno@clisp.org>
9369
9370         memcpy: Move AC_LIBOBJ invocations to module description.
9371         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9372         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9373         here...
9374         * modules/memcpy (configure.ac): ... to here.
9375
9376 2011-05-21  Bruno Haible  <bruno@clisp.org>
9377
9378         memcmp: Simplify autoconf macro.
9379         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9380         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9381         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9382
9383 2011-05-21  Bruno Haible  <bruno@clisp.org>
9384
9385         memcmp: Move AC_LIBOBJ invocations to module description.
9386         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9387         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9388         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9389         * modules/memcmp (configure.ac): ... to here.
9390         (Depends-on): Update conditions.
9391
9392 2011-05-21  Bruno Haible  <bruno@clisp.org>
9393
9394         memchr: Respect rules for use of AC_LIBOBJ.
9395         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9396         invocations from here...
9397         * modules/memchr (configure.ac): ... to here.
9398
9399 2011-05-21  Bruno Haible  <bruno@clisp.org>
9400
9401         mbtowc: Move AC_LIBOBJ invocations to module description.
9402         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9403         invocations from here...
9404         * modules/mbtowc (configure.ac): ... to here.
9405
9406 2011-05-21  Bruno Haible  <bruno@clisp.org>
9407
9408         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9409         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9410         gl_PREREQ_MBSRTOWCS invocations from here...
9411         * modules/mbsrtowcs (configure.ac): ... to here.
9412
9413 2011-05-21  Bruno Haible  <bruno@clisp.org>
9414
9415         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9416         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9417         gl_PREREQ_MBSNRTOWCS invocations from here...
9418         * modules/mbsnrtowcs (configure.ac): ... to here.
9419
9420 2011-05-21  Bruno Haible  <bruno@clisp.org>
9421
9422         mbsinit: Move AC_LIBOBJ invocations to module description.
9423         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9424         invocations from here...
9425         * modules/mbsinit (configure.ac): ... to here.
9426
9427 2011-05-21  Bruno Haible  <bruno@clisp.org>
9428
9429         mbrlen: Move AC_LIBOBJ invocations to module description.
9430         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9431         invocations from here...
9432         * modules/mbrlen (configure.ac): ... to here.
9433
9434 2011-05-21  Bruno Haible  <bruno@clisp.org>
9435
9436         mbrtowc: Respect rules for use of AC_LIBOBJ.
9437         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9438         invocations from here...
9439         * modules/mbrtowc (configure.ac): ... to here.
9440
9441 2011-05-21  Bruno Haible  <bruno@clisp.org>
9442
9443         malloc-*: Move AC_LIBOBJ invocations to module description.
9444         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9445         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9446         AC_LIBOBJ invocations from here...
9447         * modules/malloc-gnu (configure.ac): ... to here.
9448         * modules/malloc-posix (configure.ac): ... and here.
9449
9450 2011-05-21  Bruno Haible  <bruno@clisp.org>
9451
9452         lstat, openat: Respect rules for use of AC_LIBOBJ.
9453         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9454         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9455         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9456         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9457         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9458         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9459         here.
9460         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9461
9462 2011-05-21  Bruno Haible  <bruno@clisp.org>
9463
9464         lseek: Move AC_LIBOBJ invocations to module description.
9465         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9466         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9467         * modules/lseek (configure.ac): ... to here.
9468
9469 2011-05-21  Bruno Haible  <bruno@clisp.org>
9470
9471         linkat: Move AC_LIBOBJ invocations to module description.
9472         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9473         here...
9474         * modules/linkat (configure.ac): ... to here.
9475
9476 2011-05-21  Bruno Haible  <bruno@clisp.org>
9477
9478         link: Respect rules for use of AC_LIBOBJ.
9479         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9480         * modules/link (configure.ac): ... to here.
9481
9482 2011-05-21  Bruno Haible  <bruno@clisp.org>
9483
9484         lchown: Move AC_LIBOBJ invocations to module description.
9485         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9486         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9487         * modules/lchown (configure.ac): ... to here.
9488
9489 2011-05-21  Bruno Haible  <bruno@clisp.org>
9490
9491         iswctype: Move AC_LIBOBJ invocations to module description.
9492         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9493         here...
9494         * modules/iswctype (configure.ac): ... to here.
9495
9496 2011-05-21  Bruno Haible  <bruno@clisp.org>
9497
9498         iswblank: Move AC_LIBOBJ invocations to module description.
9499         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9500         here...
9501         * modules/iswblank (configure.ac): ... to here.
9502
9503 2011-05-21  Bruno Haible  <bruno@clisp.org>
9504
9505         atanl: Move AC_LIBOBJ invocations to module description.
9506         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9507         * modules/atanl (configure.ac): ... to here.
9508
9509 2011-05-21  Bruno Haible  <bruno@clisp.org>
9510
9511         acosl: Move AC_LIBOBJ invocations to module description.
9512         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9513         * modules/acosl (configure.ac): ... to here.
9514
9515 2011-05-21  Bruno Haible  <bruno@clisp.org>
9516
9517         asinl: Respect rules for use of AC_LIBOBJ.
9518         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9519         * modules/asinl (configure.ac): ... to here.
9520
9521 2011-05-21  Bruno Haible  <bruno@clisp.org>
9522
9523         tanl: Move AC_LIBOBJ invocations to module description.
9524         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9525         * modules/tanl (configure.ac): ... to here.
9526
9527 2011-05-21  Bruno Haible  <bruno@clisp.org>
9528
9529         cosl: Move AC_LIBOBJ invocations to module description.
9530         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9531         * modules/cosl (configure.ac): ... to here.
9532
9533 2011-05-21  Bruno Haible  <bruno@clisp.org>
9534
9535         sinl: Move AC_LIBOBJ invocations to module description.
9536         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9537         * modules/sinl (configure.ac): ... to here.
9538
9539 2011-05-21  Bruno Haible  <bruno@clisp.org>
9540
9541         logl: Move AC_LIBOBJ invocations to module description.
9542         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9543         * modules/logl (configure.ac): ... to here.
9544
9545 2011-05-21  Bruno Haible  <bruno@clisp.org>
9546
9547         expl: Move AC_LIBOBJ invocations to module description.
9548         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9549         * modules/expl (configure.ac): ... to here.
9550
9551 2011-05-21  Bruno Haible  <bruno@clisp.org>
9552
9553         roundl: Move AC_LIBOBJ invocations to module description.
9554         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9555         * modules/roundl (configure.ac): ... to here.
9556
9557 2011-05-21  Bruno Haible  <bruno@clisp.org>
9558
9559         round: Move AC_LIBOBJ invocations to module description.
9560         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9561         * modules/round (configure.ac): ... to here.
9562
9563 2011-05-21  Bruno Haible  <bruno@clisp.org>
9564
9565         roundf: Move AC_LIBOBJ invocations to module description.
9566         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9567         * modules/roundf (configure.ac): ... to here.
9568
9569 2011-05-21  Bruno Haible  <bruno@clisp.org>
9570
9571         truncl: Move AC_LIBOBJ invocations to module description.
9572         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9573         * modules/truncl (configure.ac): ... to here.
9574
9575 2011-05-21  Bruno Haible  <bruno@clisp.org>
9576
9577         trunc: Move AC_LIBOBJ invocations to module description.
9578         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9579         * modules/trunc (configure.ac): ... to here.
9580
9581 2011-05-21  Bruno Haible  <bruno@clisp.org>
9582
9583         truncf: Move AC_LIBOBJ invocations to module description.
9584         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9585         * modules/truncf (configure.ac): ... to here.
9586
9587 2011-05-21  Bruno Haible  <bruno@clisp.org>
9588
9589         ceill: Move AC_LIBOBJ invocations to module description.
9590         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9591         * modules/ceill (configure.ac): ... to here.
9592
9593 2011-05-21  Bruno Haible  <bruno@clisp.org>
9594
9595         ceil: Move AC_LIBOBJ invocations to module description.
9596         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9597         * modules/ceil (configure.ac): ... to here.
9598
9599 2011-05-21  Bruno Haible  <bruno@clisp.org>
9600
9601         ceilf: Move AC_LIBOBJ invocations to module description.
9602         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9603         * modules/ceilf (configure.ac): ... to here.
9604
9605 2011-05-21  Bruno Haible  <bruno@clisp.org>
9606
9607         floorl: Respect rules for use of AC_LIBOBJ.
9608         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9609         * modules/floorl (configure.ac): ... to here.
9610
9611 2011-05-21  Bruno Haible  <bruno@clisp.org>
9612
9613         floor: Respect rules for use of AC_LIBOBJ.
9614         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9615         * modules/floor (configure.ac): ... to here.
9616
9617 2011-05-21  Bruno Haible  <bruno@clisp.org>
9618
9619         floorf: Move AC_LIBOBJ invocations to module description.
9620         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9621         * modules/floorf (configure.ac): ... to here.
9622
9623 2011-05-20  Bruno Haible  <bruno@clisp.org>
9624
9625         sqrtl: Respect rules for use of AC_LIBOBJ.
9626         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9627         * modules/sqrtl (configure.ac): ... to here.
9628
9629 2011-05-20  Bruno Haible  <bruno@clisp.org>
9630
9631         ldexpl: Respect rules for use of AC_LIBOBJ.
9632         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9633         * modules/ldexpl (configure.ac): ... to here.
9634
9635 2011-05-20  Bruno Haible  <bruno@clisp.org>
9636
9637         frexpl*: Respect rules for use of AC_LIBOBJ.
9638         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9639         invocation from here...
9640         * modules/frexpl (configure.ac): ... to here.
9641         * modules/frexpl-nolibm (configure.ac): ... and here.
9642
9643 2011-05-20  Bruno Haible  <bruno@clisp.org>
9644
9645         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9646         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9647         invocation from here...
9648         * modules/frexp (configure.ac): ... to here.
9649         * modules/frexp-nolibm (configure.ac): ... and here.
9650
9651 2011-05-20  Bruno Haible  <bruno@clisp.org>
9652
9653         isnan: Respect rules for use of AC_LIBOBJ.
9654         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9655         invocations here.
9656         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9657         REPLACE_ISNAN.
9658         * modules/isnand (configure.ac): Likewise.
9659         * modules/isnanl (configure.ac): Likewise.
9660
9661 2011-05-20  Bruno Haible  <bruno@clisp.org>
9662
9663         isnanl*: Respect rules for use of AC_LIBOBJ.
9664         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9665         invocation from here...
9666         * modules/isnanl (configure.ac): ... to here.
9667         * modules/isnanl-nolibm (configure.ac): ... and here.
9668
9669 2011-05-20  Bruno Haible  <bruno@clisp.org>
9670
9671         isnand*: Move AC_LIBOBJ invocations to module description.
9672         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9673         invocation from here...
9674         * modules/isnand (configure.ac): ... to here.
9675         * modules/isnand-nolibm (configure.ac): ... and here.
9676
9677 2011-05-20  Bruno Haible  <bruno@clisp.org>
9678
9679         isnanf*: Move AC_LIBOBJ invocations to module description.
9680         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9681         invocation from here...
9682         * modules/isnanf (configure.ac): ... to here.
9683         * modules/isnanf-nolibm (configure.ac): ... and here.
9684
9685 2011-05-20  Bruno Haible  <bruno@clisp.org>
9686
9687         isnan*: Separate the AC_LIBOBJ invocations.
9688         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9689         AC_LIBOBJ invocation.
9690         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9691         here.
9692         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9693         AC_LIBOBJ invocation.
9694         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9695         here.
9696         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9697         AC_LIBOBJ invocation.
9698         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9699         here.
9700         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9701
9702 2011-05-08  Bruno Haible  <bruno@clisp.org>
9703
9704         isinf: Move AC_LIBOBJ invocations to module description.
9705         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9706         * modules/isinf (configure.ac): ... to here.
9707
9708 2011-05-08  Bruno Haible  <bruno@clisp.org>
9709
9710         isfinite: Move AC_LIBOBJ invocations to module description.
9711         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9712         * modules/isfinite (configure.ac): ... to here.
9713
9714 2011-05-08  Bruno Haible  <bruno@clisp.org>
9715
9716         isblank: Move AC_LIBOBJ invocations to module description.
9717         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9718         here...
9719         * modules/isblank (configure.ac): ... to here.
9720
9721 2011-05-08  Bruno Haible  <bruno@clisp.org>
9722
9723         isapipe: Move AC_LIBOBJ invocations to module description.
9724         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9725         gl_PREREQ_ISAPIPE invocations from here...
9726         * modules/isapipe (configure.ac): ... to here.
9727         (Depends-on): Update condition.
9728
9729 2011-05-08  Bruno Haible  <bruno@clisp.org>
9730
9731         ioctl: Move AC_LIBOBJ invocations to module description.
9732         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9733         invocations from here...
9734         * modules/ioctl (configure.ac): ... to here.
9735         (Depends-on): Update condition.
9736
9737 2011-05-08  Bruno Haible  <bruno@clisp.org>
9738
9739         imaxdiv: Move AC_LIBOBJ invocations to module description.
9740         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9741         invocations from here...
9742         * modules/imaxdiv (configure.ac): ... to here.
9743
9744 2011-05-08  Bruno Haible  <bruno@clisp.org>
9745
9746         imaxabs: Move AC_LIBOBJ invocations to module description.
9747         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9748         invocations from here...
9749         * modules/imaxabs (configure.ac): ... to here.
9750
9751 2011-05-08  Bruno Haible  <bruno@clisp.org>
9752
9753         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9754         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9755         AC_LIBOBJ invocations from here...
9756         * modules/getaddrinfo (configure.ac): ... to here.
9757         (Depends-on): Add conditions.
9758
9759 2011-05-08  Bruno Haible  <bruno@clisp.org>
9760
9761         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9762         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9763         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9764         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9765         (gl_PREREQ_INET_PTON): ... from here.
9766         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9767         gl_PREREQ_INET_PTON here.
9768         (Depends-on): Update condition.
9769
9770 2011-05-08  Bruno Haible  <bruno@clisp.org>
9771
9772         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9773         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9774         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9775         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9776         (gl_PREREQ_INET_NTOP): ... from here.
9777         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9778         gl_PREREQ_INET_NTOP here.
9779         (Depends-on): Update condition.
9780
9781 2011-05-08  Bruno Haible  <bruno@clisp.org>
9782
9783         iconv_open: Move AC_LIBOBJ invocations to module description.
9784         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9785         AC_LIBOBJ invocations from here...
9786         * modules/iconv_open (configure.ac): ... to here.
9787
9788 2011-05-08  Bruno Haible  <bruno@clisp.org>
9789
9790         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9791         If module 'iconv_open' is among the main modules and module
9792         'iconv_open-utf' is among the tests dependencies, then
9793         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9794         return the special iconv_t values. Therefore iconv() and iconv_close()
9795         must support these special iconv_t values, already in lib, not only in
9796         tests.
9797         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9798         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9799         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9800         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9801         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9802         (Depends-on): Add the dependencies of iconv_open-utf.
9803         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9804         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9805         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9806
9807 2011-05-08  Bruno Haible  <bruno@clisp.org>
9808
9809         group-member: Move AC_LIBOBJ invocations to module description.
9810         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9811         gl_PREREQ_GROUP_MEMBER invocations from here...
9812         * modules/group-member (configure.ac): ... to here.
9813
9814 2011-05-08  Bruno Haible  <bruno@clisp.org>
9815
9816         grantpt: Move AC_LIBOBJ invocations to module description.
9817         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9818         invocations from here...
9819         * modules/grantpt (configure.ac): ... to here.
9820
9821 2011-05-08  Bruno Haible  <bruno@clisp.org>
9822
9823         glob: Move AC_LIBOBJ invocations to module description.
9824         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9825         from here...
9826         * modules/glob (configure.ac): ... to here.
9827
9828 2011-05-08  Bruno Haible  <bruno@clisp.org>
9829
9830         getusershell: Move AC_LIBOBJ invocations to module description.
9831         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9832         Move AC_LIBOBJ invocation from here...
9833         * modules/getusershell (configure.ac): ... to here.
9834         (Depends-on): Update condition.
9835
9836 2011-05-08  Bruno Haible  <bruno@clisp.org>
9837
9838         gettimeofday: Move AC_LIBOBJ invocations to module description.
9839         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9840         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9841         gl_PREREQ_GETTIMEOFDAY invocations from here...
9842         * modules/gettimeofday (configure.ac): ... to here.
9843
9844 2011-05-08  Bruno Haible  <bruno@clisp.org>
9845
9846         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9847         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9848         just gl_FUNC_TZSET.
9849         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9850         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9851         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9852         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9853
9854 2011-05-08  Bruno Haible  <bruno@clisp.org>
9855
9856         getsubopt: Move AC_LIBOBJ invocations to module description.
9857         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9858         gl_PREREQ_GETSUBOPT invocations from here...
9859         * modules/getsubopt (configure.ac): ... to here.
9860
9861 2011-05-08  Bruno Haible  <bruno@clisp.org>
9862
9863         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9864         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9865         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9866         * modules/getpass-gnu (configure.ac): ... to here.
9867
9868 2011-05-08  Bruno Haible  <bruno@clisp.org>
9869
9870         getpass: Move AC_LIBOBJ invocations to module description.
9871         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9872         gl_PREREQ_GETPASS invocations from here...
9873         * modules/getpass (configure.ac): ... to here.
9874
9875 2011-05-08  Bruno Haible  <bruno@clisp.org>
9876
9877         getpagesize: Move AC_LIBOBJ invocations to module description.
9878         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9879         from here...
9880         * modules/getpagesize (configure.ac): ... to here.
9881
9882 2011-05-08  Bruno Haible  <bruno@clisp.org>
9883
9884         getopt: Move AC_LIBOBJ invocations to module description.
9885         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9886         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9887         invocations from here...
9888         * modules/getopt-gnu (configure.ac): ... to here.
9889         * modules/getopt-posix (configure.ac): ... and here.
9890         (Depends-on): Update condition.
9891
9892 2011-05-08  Bruno Haible  <bruno@clisp.org>
9893
9894         getopt, argp: Respect rules for use of AC_LIBOBJ.
9895         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9896         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9897         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9898         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9899
9900 2011-05-08  Bruno Haible  <bruno@clisp.org>
9901
9902         getlogin_r: Move AC_LIBOBJ invocations to module description.
9903         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9904         gl_PREREQ_GETLOGIN_R invocations from here...
9905         * modules/getlogin_r (configure.ac): ... to here.
9906
9907 2011-05-08  Bruno Haible  <bruno@clisp.org>
9908
9909         getlogin: Move AC_LIBOBJ invocations to module description.
9910         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9911         here...
9912         * modules/getlogin (configure.ac): ... to here.
9913
9914 2011-05-08  Bruno Haible  <bruno@clisp.org>
9915
9916         getloadavg: Move AC_LIBOBJ invocations to module description.
9917         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9918         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9919         * modules/getloadavg (configure.ac): ... to here.
9920
9921 2011-05-08  Bruno Haible  <bruno@clisp.org>
9922
9923         gethrxtime: Move AC_LIBOBJ invocations to module description.
9924         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9925         LIB_GETHRXTIME from here...
9926         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9927         invocations from here...
9928         * modules/gethrxtime (configure.ac): ... to here.
9929
9930 2011-05-08  Bruno Haible  <bruno@clisp.org>
9931
9932         gethostname: Move AC_LIBOBJ invocations to module description.
9933         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9934         gl_PREREQ_GETHOSTNAME invocations from here...
9935         * modules/gethostname (configure.ac): ... to here.
9936
9937 2011-05-08  Bruno Haible  <bruno@clisp.org>
9938
9939         getgroups: Move AC_LIBOBJ invocations to module description.
9940         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9941         here...
9942         * modules/getgroups (configure.ac): ... to here.
9943
9944 2011-05-08  Bruno Haible  <bruno@clisp.org>
9945
9946         getdtablesize: Move AC_LIBOBJ invocations to module description.
9947         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9948         invocation from here...
9949         * modules/getdtablesize (configure.ac): ... to here.
9950
9951 2011-05-08  Bruno Haible  <bruno@clisp.org>
9952
9953         getdomainname: Move AC_LIBOBJ invocations to module description.
9954         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9955         gl_PREREQ_GETDOMAINNAME invocations from here...
9956         * modules/getdomainname (configure.ac): ... to here.
9957
9958 2011-05-08  Bruno Haible  <bruno@clisp.org>
9959
9960         getline: Move AC_LIBOBJ invocations to module description.
9961         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9962         invocations from here...
9963         * modules/getline (configure.ac): ... to here.
9964
9965 2011-05-08  Bruno Haible  <bruno@clisp.org>
9966
9967         getline: Simplify.
9968         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9969         It's already handled through the module dependency.
9970
9971 2011-05-08  Bruno Haible  <bruno@clisp.org>
9972
9973         getdelim: Move AC_LIBOBJ invocations to module description.
9974         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9975         and gl_PREREQ_GETDELIM invocations from here...
9976         * modules/getdelim (configure.ac): ... to here.
9977         (Depends-on): Fix condition.
9978
9979 2011-05-08  Bruno Haible  <bruno@clisp.org>
9980
9981         getcwd: Move AC_LIBOBJ invocations to module description.
9982         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9983         invocations from here...
9984         * modules/getcwd (configure.ac): ... to here.
9985
9986 2011-05-08  Bruno Haible  <bruno@clisp.org>
9987
9988         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9989         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9990         here...
9991         * modules/getcwd-lgpl (configure.ac): ... to here.
9992
9993 2011-05-07  Bruno Haible  <bruno@clisp.org>
9994
9995         crypto/gc: Move AC_LIBOBJ invocations to module description.
9996         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9997         * modules/crypto/gc (configure.ac): ... to here.
9998
9999 2011-05-07  Bruno Haible  <bruno@clisp.org>
10000
10001         fwriting: Move AC_LIBOBJ invocations to module description.
10002         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10003         here...
10004         * modules/fwriting (configure.ac): ... to here.
10005
10006 2011-05-07  Bruno Haible  <bruno@clisp.org>
10007
10008         fwritable: Move AC_LIBOBJ invocations to module description.
10009         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10010         here...
10011         * modules/fwritable (configure.ac): ... to here.
10012
10013 2011-05-07  Bruno Haible  <bruno@clisp.org>
10014
10015         futimens: Move AC_LIBOBJ invocations to module description.
10016         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10017         here...
10018         * modules/futimens (configure.ac): ... to here.
10019
10020 2011-05-07  Bruno Haible  <bruno@clisp.org>
10021
10022         ftruncate: Move AC_LIBOBJ invocations to module description.
10023         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10024         gl_PREREQ_FTRUNCATE invocations from here...
10025         * modules/ftruncate (configure.ac): ... to here.
10026
10027 2011-05-07  Bruno Haible  <bruno@clisp.org>
10028
10029         fsync: Move AC_LIBOBJ invocations to module description.
10030         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10031         invocations from here...
10032         * modules/fsync (configure.ac): ... to here.
10033
10034 2011-05-07  Bruno Haible  <bruno@clisp.org>
10035
10036         fsusage: Move AC_LIBOBJ invocations to module description.
10037         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10038         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10039         * modules/fsusage (configure.ac): ... to here.
10040
10041 2011-05-07  Bruno Haible  <bruno@clisp.org>
10042
10043         freopen: Move AC_LIBOBJ invocations to module description.
10044         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10045         invocations from here...
10046         * modules/freopen (configure.ac): ... to here.
10047
10048 2011-05-07  Bruno Haible  <bruno@clisp.org>
10049
10050         free: Move AC_LIBOBJ invocations to module description.
10051         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10052         invocations from here...
10053         * modules/free (configure.ac): ... to here.
10054
10055 2011-05-07  Bruno Haible  <bruno@clisp.org>
10056
10057         freadable: Move AC_LIBOBJ invocations to module description.
10058         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10059         here...
10060         * modules/freadable (configure.ac): ... to here.
10061
10062 2011-05-07  Bruno Haible  <bruno@clisp.org>
10063
10064         fpurge: Move AC_LIBOBJ invocations to module description.
10065         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10066         invocations from here...
10067         * modules/fpurge (configure.ac): ... to here.
10068
10069 2011-05-07  Bruno Haible  <bruno@clisp.org>
10070
10071         fpending: Move AC_LIBOBJ invocations to module description.
10072         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10073         gl_FUNC_FPENDING.
10074         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10075         invocations from here...
10076         * modules/fpending (configure.ac): ... to here.
10077
10078 2011-05-07  Bruno Haible  <bruno@clisp.org>
10079
10080         fopen: Move AC_LIBOBJ invocations to module description.
10081         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10082         invocations from here...
10083         * modules/fopen (configure.ac): ... to here.
10084
10085 2011-05-07  Bruno Haible  <bruno@clisp.org>
10086
10087         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10088         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10089         gl_FUNC_FNMATCH_POSIX.
10090         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10091         invocations from here...
10092         * modules/fnmatch (configure.ac): ... to here.
10093         * modules/fnmatch-gnu (configure.ac): ... and here.
10094
10095 2011-05-07  Bruno Haible  <bruno@clisp.org>
10096
10097         flock: Move AC_LIBOBJ invocations to module description.
10098         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10099         invocations from here...
10100         * modules/flock (configure.ac): ... to here.
10101
10102 2011-05-07  Bruno Haible  <bruno@clisp.org>
10103
10104         fileblocks: Move AC_LIBOBJ invocations to module description.
10105         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10106         gl_PREREQ_FILEBLOCKS invocations from here...
10107         * modules/fileblocks (configure.ac): ... to here.
10108
10109 2011-05-06  Bruno Haible  <bruno@clisp.org>
10110
10111         fflush: Move AC_LIBOBJ invocations to module description.
10112         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10113         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10114         invocations from here...
10115         * modules/fflush (configure.ac): ... to here.
10116
10117 2011-05-06  Bruno Haible  <bruno@clisp.org>
10118
10119         fdopendir: Move AC_LIBOBJ invocations to module description.
10120         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10121         here...
10122         * modules/fdopendir (configure.ac): ... to here.
10123         (Depends-on): Improve conditions.
10124
10125 2011-05-06  Bruno Haible  <bruno@clisp.org>
10126
10127         _Exit: Move AC_LIBOBJ invocations to module description.
10128         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10129         invocations from here...
10130         * modules/_Exit (configure.ac): ... to here.
10131
10132 2011-05-21  Bruno Haible  <bruno@clisp.org>
10133
10134         euidaccess: Respect rules for use of AC_LIBOBJ.
10135         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10136         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10137         from here...
10138         * modules/euidaccess (configure.ac): ... to here.
10139
10140 2011-05-06  Bruno Haible  <bruno@clisp.org>
10141
10142         error: Move AC_LIBOBJ invocations to module description.
10143         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10144         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10145         invocations from here...
10146         * modules/error (configure.ac): ... to here.
10147
10148 2011-05-06  Bruno Haible  <bruno@clisp.org>
10149
10150         duplocale: Move AC_LIBOBJ invocations to module description.
10151         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10152         gl_PREREQ_DUPLOCALE invocations from here...
10153         * modules/duplocale (configure.ac): ... to here.
10154
10155 2011-05-05  Bruno Haible  <bruno@clisp.org>
10156
10157         dirfd: Move AC_LIBOBJ invocations to module description.
10158         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10159         gl_FUNC_DIRFD.
10160         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10161         here...
10162         * modules/dirfd (configure.ac): ... to here.
10163         (Depends-on): Fix condition.
10164
10165 2011-05-05  Bruno Haible  <bruno@clisp.org>
10166
10167         chown: Respect rules for use of AC_LIBOBJ.
10168         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10169         * modules/chown (configure.ac): ... to here.
10170
10171 2011-05-05  Bruno Haible  <bruno@clisp.org>
10172
10173         chdir-long: Move AC_LIBOBJ invocations to module description.
10174         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10175         gl_PREREQ_CHDIR_LONG invocations from here...
10176         * modules/chdir-long (configure.ac): ... to here.
10177
10178 2011-05-05  Bruno Haible  <bruno@clisp.org>
10179
10180         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10181         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10182         from here...
10183         * modules/canonicalize-lgpl (configure.ac): ... to here.
10184
10185 2011-05-05  Bruno Haible  <bruno@clisp.org>
10186
10187         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10188         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10189         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10190         REPLACE_CALLOC.
10191         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10192         * modules/calloc-gnu (configure.ac): Likewise.
10193
10194 2011-05-05  Bruno Haible  <bruno@clisp.org>
10195
10196         btowc: Move AC_LIBOBJ invocations to module description.
10197         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10198         invocations from here...
10199         * modules/btowc (configure.ac): ... to here.
10200
10201 2011-05-21  Bruno Haible  <bruno@clisp.org>
10202
10203         atexit: Move AC_LIBOBJ invocations to module description.
10204         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10205         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10206         here...
10207         * modules/atexit (configure.ac): ... to here.
10208
10209 2011-05-05  Bruno Haible  <bruno@clisp.org>
10210
10211         atoll: Move AC_LIBOBJ invocations to module description.
10212         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10213         invocations from here...
10214         * modules/atoll (configure.ac): ... to here.
10215
10216 2011-05-05  Bruno Haible  <bruno@clisp.org>
10217
10218         argz: Move AC_LIBOBJ invocations to module description.
10219         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10220         * modules/argz (configure.ac): ... to here.
10221
10222 2011-05-05  Bruno Haible  <bruno@clisp.org>
10223
10224         alphasort: Move AC_LIBOBJ invocations to module description.
10225         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10226         gl_PREREQ_ALPHASORT invocations from here...
10227         * modules/alphasort (configure.ac): ... to here.
10228
10229 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10230
10231         verify: new macro verify_expr; verify_true deprecated
10232         * NEWS: Mention this.
10233         * doc/verify.texi (Compile-time Assertions): Document this.
10234         * lib/verify.h (verify_true): Deprecate.
10235         (verify_expr): New macro.
10236         * tests/test-verify.c (function): Test verify_expr.
10237
10238 2011-06-14  Jim Meyering  <meyering@redhat.com>
10239
10240         init.sh: give more portable redirection-related advice in a comment
10241         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10242         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10243         for lots of discussion.  Stefano Lattarini suggested the solution
10244         of putting "9>&2" after the command.  Reported by Bruno Haible.
10245
10246 2011-06-13  Bruno Haible  <bruno@clisp.org>
10247
10248         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10249         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10250         'none'.
10251
10252 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10253
10254         ftoastr: use strtof only if HAVE_STRTOF
10255         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10257         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10258         * modules/ftoastr (configure.ac): Check for strtof.
10259
10260 2011-06-13  Bruno Haible  <bruno@clisp.org>
10261
10262         gnulib-tool: Addendum to 2011-06-08 commit.
10263         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10264         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10265
10266 2011-06-13  Bruno Haible  <bruno@clisp.org>
10267
10268         fseeko: Provide a non-inline replacement of fseek().
10269         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10270         * modules/fseeko (Depends-on): Add fseek.
10271         * modules/fseek (License): Change to LGPLv2+.
10272
10273 2011-06-13  Bruno Haible  <bruno@clisp.org>
10274
10275         ftello: Provide a non-inline replacement of ftell().
10276         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10277         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10278         not have ftello() (such as on mingw).
10279         * modules/ftello (Depends-on): Add ftell.
10280         * modules/ftell (License): Change to LGPLv2+.
10281
10282 2011-05-07  Bruno Haible  <bruno@clisp.org>
10283
10284         ftell: Move AC_LIBOBJ invocations to module description.
10285         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10286         * modules/ftell (configure.ac): ... to here.
10287
10288 2011-05-07  Bruno Haible  <bruno@clisp.org>
10289
10290         ftello: Respect rules for use of AC_LIBOBJ.
10291         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10292         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10293         here...
10294         * modules/ftello (configure.ac): ... to here.
10295
10296 2011-05-07  Bruno Haible  <bruno@clisp.org>
10297
10298         fseeko: Simplify.
10299         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10300         (gl_FUNC_FSEEKO): Inline it here.
10301
10302 2011-05-07  Bruno Haible  <bruno@clisp.org>
10303
10304         fseek: Move AC_LIBOBJ invocations to module description.
10305         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10306         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10307         * modules/fseek (configure.ac): ... to here.
10308
10309 2011-05-07  Bruno Haible  <bruno@clisp.org>
10310
10311         fseek: Respect rules for use of AC_LIBOBJ.
10312         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10313         here...
10314         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10315
10316 2011-05-07  Bruno Haible  <bruno@clisp.org>
10317
10318         fseeko: Respect rules for use of AC_LIBOBJ.
10319         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10320         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10321         here...
10322         * modules/fseeko (configure.ac): ... to here.
10323
10324 2011-06-13  Bruno Haible  <bruno@clisp.org>
10325
10326         gnulib-tool: Allow comments in the 'Depends-on' section.
10327         * doc/gnulib.texi (Module description): Mention comment syntax in the
10328         Depends-on section.
10329         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10330
10331 2011-06-13  Bruno Haible  <bruno@clisp.org>
10332
10333         file-set.h: guard __attibute__ use, now that it's not always defined
10334         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10335         versions that support it.  This fixes a coreutils build failure with
10336         the vendor cc on HP-UX 11.31.
10337
10338 2011-06-12  Bruno Haible  <bruno@clisp.org>
10339
10340         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10341         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10342         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10343         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10344         (acl, aclsort): New declarations.
10345         (aclv_nontrivial): New declaration.
10346         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10347         (file_has_acl): Read also the second kind of HP-UX ACLs.
10348         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10349         kind of HP-UX ACLs if the first kind fails.
10350         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10351         second kind of HP-UX ACLs.
10352         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10353         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10354         agree.
10355         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10356         hpuxjfs.
10357         Handle hpuxjfs.
10358         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10359         hpuxjfs.
10360         Handle hpuxjfs.
10361         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10362         (func_test_same_acls): Use both lsacl and getacl.
10363         Handle hpuxjfs.
10364         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10365         (func_test_same_acls): Use both lsacl and getacl.
10366         Handle hpuxjfs.
10367
10368 2011-06-12  Bruno Haible  <bruno@clisp.org>
10369
10370         acl: Complete the 2010-08-10 fix.
10371         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10372         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10373         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10374         explicitly.
10375         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10376         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10377
10378 2011-06-12  Bruno Haible  <bruno@clisp.org>
10379
10380         spawn-pipe tests: Comments.
10381         * tests/test-spawn-pipe-child.c (main): Update comment.
10382         Reported by James Youngman <jay@gnu.org>.
10383
10384 2011-06-11  James Youngman  <jay@gnu.org>
10385
10386         New module 'stat-size'.
10387         * modules/stat-size: New module.  Provides macros for accessing
10388         file size information in instances of struct stat.  Depends on the
10389         fileblocks module because it calls st_blocks.
10390         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10391         * doc/gnulib.texi: Include stat-size.texi.
10392         * doc/stat-size.texi: Documentation for this module.
10393         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10394         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10395         AC_STRUCT_ST_BLOCKS.
10396
10397 2011-06-09  Bruno Haible  <bruno@clisp.org>
10398
10399         thread: Support pthreads-win32.
10400         * lib/glthread/thread.h (gl_thread_self): Define differently on
10401         pthreads-win32.
10402         (gl_null_thread): New declaration.
10403         (gl_thread_self_pointer): New macro.
10404         * lib/glthread/thread.c (gl_null_thread): New constant.
10405         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10406         gl_thread_self.
10407         * tests/test-tls.c: Likewise.
10408         Suggested by Paul Eggert. Reported by Eric Blake.
10409
10410 2011-06-09  Bruno Haible  <bruno@clisp.org>
10411
10412         thread: Fix confusion between NULL and 0.
10413         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10414         Reported by Paul Eggert.
10415
10416 2011-06-09  Bruno Haible  <bruno@clisp.org>
10417
10418         spawn-pipe tests: Avoid test failure on HP-UX 11.
10419         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10420         is closed.
10421
10422 2011-06-09  Bruno Haible  <bruno@clisp.org>
10423
10424         acl tests: Fix compilation error on HP-UX 11.
10425         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10426
10427 2011-06-09  Bruno Haible  <bruno@clisp.org>
10428
10429         rmdir: Avoid test failure on HP-UX 10.20.
10430         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10431         EEXIST.
10432
10433 2011-06-08  Eric Blake  <eblake@redhat.com>
10434
10435         perror: fix test on mingw
10436         * modules/perror-tests (Depends-on): Add dup2.
10437
10438         strerror_r-posix: fix on MacOS
10439         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10440         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10441         logic bug.
10442         * lib/strerror_r.c (strerror_r): Fix the bug.
10443         * lib/strerror.c (strerror): Likewise.
10444         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10445         problem.
10446         * doc/posix-functions/strerror.texi (strerror): Likewise.
10447         * doc/posix-functions/perror.texi (perror): Likewise.
10448         * tests/test-strerror.c (main): Enhance test.
10449         * tests/test-strerror_r.c (main): Likewise.
10450
10451 2011-06-08  Bruno Haible  <bruno@clisp.org>
10452
10453         gnulib-tool: Better isolation between different gnulib-tool invocations.
10454         * gnulib-tool: New option --witness-c-macro.
10455         (witness_c_macro): New variable.
10456         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10457         AM_CPPFLAGS define it as a C macro.
10458         (func_emit_tests_Makefile_am): Likewise.
10459         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10460         read it from there.
10461         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10462         m4_define, not AC_DEFUN.
10463         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10464         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10465         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10466         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10467         s|...|...|, to substitute the values of the GNULIB_* module indicator
10468         variables.
10469         * modules/dirent (Makefile.am): Likewise.
10470         * modules/fcntl-h (Makefile.am): Likewise.
10471         * modules/iconv-h (Makefile.am): Likewise.
10472         * modules/langinfo (Makefile.am): Likewise.
10473         * modules/locale (Makefile.am): Likewise.
10474         * modules/math (Makefile.am): Likewise.
10475         * modules/netdb (Makefile.am): Likewise.
10476         * modules/poll-h (Makefile.am): Likewise.
10477         * modules/pty (Makefile.am): Likewise.
10478         * modules/search (Makefile.am): Likewise.
10479         * modules/signal (Makefile.am): Likewise.
10480         * modules/spawn (Makefile.am): Likewise.
10481         * modules/stdio (Makefile.am): Likewise.
10482         * modules/stdlib (Makefile.am): Likewise.
10483         * modules/string (Makefile.am): Likewise.
10484         * modules/sys_ioctl (Makefile.am): Likewise.
10485         * modules/sys_select (Makefile.am): Likewise.
10486         * modules/sys_socket (Makefile.am): Likewise.
10487         * modules/sys_stat (Makefile.am): Likewise.
10488         * modules/sys_times (Makefile.am): Likewise.
10489         * modules/sys_utsname (Makefile.am): Likewise.
10490         * modules/sys_wait (Makefile.am): Likewise.
10491         * modules/termios (Makefile.am): Likewise.
10492         * modules/time (Makefile.am): Likewise.
10493         * modules/unistd (Makefile.am): Likewise.
10494         * modules/wchar (Makefile.am): Likewise.
10495
10496 2011-06-08  Eric Blake  <eblake@redhat.com>
10497
10498         strerror: simplify replacement
10499         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10500         * modules/strerror (configure.ac): No prereqs needed here...
10501         * modules/strerror-override (configure.ac): ...but this needs it.
10502         (Files): Add file for needed prereq macro.
10503
10504 2011-06-08  Bruno Haible  <bruno@clisp.org>
10505
10506         strerror_r-posix: Tweaks.
10507         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10508         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10509         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10510         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10511         (gl_FUNC_STRERROR_R): ... to here.
10512         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10513
10514 2011-06-07  Eric Blake  <eblake@redhat.com>
10515
10516         perror: document fixed bugs
10517         * doc/posix-functions/perror.texi (perror): Document recent
10518         patches.
10519
10520 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10521
10522         stat-time: get_stat_birthtime failure is better-defined
10523         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10524         return a timestamp whose tv_sec and tv_nsec values are both -1.
10525         Previously, the spec said only that the tv_nsec value was negative.
10526         This upward-compatible change simplifies GNU tar a bit.
10527
10528 2011-06-07  Eric Blake  <eblake@redhat.com>
10529
10530         strerror_r-posix: work around cygwin 1.7.9
10531         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10532         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10533         bug without replacing strerror_r.
10534         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10535         strerror_r is buggy, but without requiring strerror_r compilation.
10536         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10537
10538         test-perror: relax test to ignore cygwin bug
10539         * tests/test-perror2.c (main): Relax test on requiring detection
10540         of stream errors, and use unbuffered stream.
10541         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10542         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10543         * doc/posix-functions/fputc.texi (fputc): Likewise.
10544         * doc/posix-functions/fputs.texi (fputs): Likewise.
10545         * doc/posix-functions/fputws.texi (fputws): Likewise.
10546         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10547         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10548         * doc/posix-functions/getopt.texi (getopt): Likewise.
10549         * doc/posix-functions/perror.texi (perror): Likewise.
10550         * doc/posix-functions/printf.texi (printf): Likewise.
10551         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10552         * doc/posix-functions/psignal.texi (psignal): Likewise.
10553         * doc/posix-functions/putc.texi (putc): Likewise.
10554         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10555         Likewise.
10556         * doc/posix-functions/putchar.texi (putchar): Likewise.
10557         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10558         Likewise.
10559         * doc/posix-functions/puts.texi (puts): Likewise.
10560         * doc/posix-functions/putwc.texi (putwc): Likewise.
10561         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10562         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10563         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10564         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10565         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10566         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10567         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10568         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10569
10570 2011-05-22  Bruno Haible  <bruno@clisp.org>
10571
10572         strerror: Move AC_LIBOBJ invocations to module description.
10573         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10574         gl_PREREQ_STRERROR invocations from here...
10575         * modules/strerror (configure.ac): ... to here.
10576
10577 2011-05-21  Bruno Haible  <bruno@clisp.org>
10578
10579         perror: Use common idiom.
10580         * modules/perror (configure.ac): Reorder statements.
10581
10582 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10583
10584         tests: fix usage message in 'mktempd_'
10585         * tests/init.sh (mktempd_): In the usage message, use literal
10586         'mktempd_', not '$ME' (which is even undefined), as the name of
10587         the subroutine.
10588
10589 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10590
10591         tests init: new function 'fatal_', for hard errors
10592         Before this patch, the only way offered by tests/init.sh to
10593         properly signal a hard error was the `framework_failure_'
10594         function.  But the error message issued by that function,
10595         as its name would suggest, refers to a set-up failure in the
10596         testsuite, while hard errors can obviously also be due to
10597         other reasons.  The best way to fix this inconsistency is to
10598         introduce a new function with a more general error message.
10599         * tests/init.sh (fatal_): New function.
10600
10601 2011-06-06  Eric Blake  <eblake@redhat.com>
10602
10603         canonicalize-lgpl: use common idiom
10604         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10605         over newer POSIX -Rf.
10606         Reported by Bruno Haible.
10607
10608         canonicalize-lgpl: work around AIX realpath bug
10609         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10610         * doc/posix-functions/realpath.texi (realpath): Document it.
10611         Reported by Bruno Haible.
10612
10613         strerror: work around FreeBSD bug
10614         * lib/strerror.c (strerror): Special case 0.
10615         Reported by Bruno Haible.
10616
10617         strerror-override: avoid bloating errno module
10618         * modules/errno (Files, configure.ac): Move replacement strings...
10619         * modules/strerror-override: ...to new module.
10620         * modules/strerror (Depends-on): Add strerror-override.
10621         * modules/strerror_r-posix (Depends-on): Likewise.
10622         * MODULES.html.sh: Document new module.
10623         Reported by Bruno Haible.
10624
10625 2011-06-06  Bruno Haible  <bruno@clisp.org>
10626
10627         spawn-pipe tests: Rename program.
10628         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10629         * tests/test-spawn-pipe-child.c: Update comment.
10630         * tests/test-spawn-pipe.sh: Update.
10631         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10632
10633         spawn-pipe tests: Link the child program only against libc.
10634         * tests/test-spawn-pipe-child.c: New file, extracted from
10635         tests/test-spawn-pipe.c.
10636         (main): Expect only one argument.
10637         (is_open): New function, copied from tests/test-pipe.c.
10638         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10639         (child_main): Remove function.
10640         (test_pipe): Pass only one argument to the child program.
10641         (main): Remove child process code. Expect the child program's name as
10642         first argument.
10643         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10644         argument.
10645         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10646         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10647         test-spawn-pipe-child against no libraries.
10648
10649 2011-06-06  Bruno Haible  <bruno@clisp.org>
10650
10651         careadlinkat: Avoid mismatch between ssize_t and int.
10652         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10653         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10654
10655 2011-06-06  Jim Meyering  <meyering@redhat.com>
10656
10657         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10658         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10659         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10660
10661 2011-06-05  Bruno Haible  <bruno@clisp.org>
10662
10663         ansi-c++-opt: Interoperability with libtool.
10664         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10665         set the variable to "no", not to ":".
10666         * NEWS: Mention the change.
10667
10668 2011-06-05  Bruno Haible  <bruno@clisp.org>
10669
10670         acl: Fix test failure on AIX 7.
10671         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10672         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10673
10674 2011-06-05  Bruno Haible  <bruno@clisp.org>
10675
10676         pipe-filter-ii: Fix test failure on AIX and IRIX.
10677         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10678         with EAGAIN, retry with a smaller buffer size.
10679
10680 2011-06-05  Bruno Haible  <bruno@clisp.org>
10681
10682         localename: Fix link dependencies.
10683         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10684         * modules/localename-tests (Makefile.am): Link test-localename with
10685         $(LIBTHREAD).
10686
10687 2011-06-05  Bruno Haible  <bruno@clisp.org>
10688
10689         error: Avoid gcc warning.
10690         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10691
10692 2011-06-05  Bruno Haible  <bruno@clisp.org>
10693
10694         unsetenv: Avoid gcc warning.
10695         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10696
10697 2011-06-05  Bruno Haible  <bruno@clisp.org>
10698
10699         setenv: Avoid gcc warning.
10700         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10701
10702 2011-06-05  Bruno Haible  <bruno@clisp.org>
10703
10704         sys_select: Ensure memset is declared also on AIX 7.
10705         * lib/sys_select.in.h: Include <string.h> also on AIX.
10706         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10707         self-contained also on AIX 7.1.
10708
10709 2011-06-04  Jim Meyering  <meyering@redhat.com>
10710
10711         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10712         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10713         function name, "error".
10714         (_gl_translatable_diag_func_re): New configurable variable.
10715
10716 2011-06-04  Bruno Haible  <bruno@clisp.org>
10717
10718         getopt: Avoid gcc warning.
10719         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10720
10721 2011-06-04  Bruno Haible  <bruno@clisp.org>
10722
10723         strerror_r: Fix comments.
10724         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10725         commit.
10726
10727 2011-06-04  Bruno Haible  <bruno@clisp.org>
10728
10729         perror: Fix compilation error.
10730         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10731         Undefine fprintf, not sprintf.
10732         * modules/perror (Depends-on): Remove intprops, verify.
10733
10734 2011-06-04  Bruno Haible  <bruno@clisp.org>
10735
10736         setlocale: Enable replacement on Cygwin 1.5.
10737         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10738         Cygwin 1.5.x.
10739         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10740         LC_CTYPE category also exists on Cygwin 1.5.x.
10741
10742 2011-06-04  Bruno Haible  <bruno@clisp.org>
10743
10744         strerror-override: Don't disable symbol renamings.
10745         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10746         * lib/strerror-override.c: Include config.h.
10747         (strerror_override): Don't undefine.
10748
10749 2011-06-03  Bruno Haible  <bruno@clisp.org>
10750
10751         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10752         * lib/localename.h: Update copyright header.
10753         * lib/localename.c: Likewise.
10754         * lib/relocatable.h: Likewise.
10755         * lib/relocatable.c: Likewise.
10756
10757 2011-06-02  Bruno Haible  <bruno@clisp.org>
10758
10759         doc: Fix a module name.
10760         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10761
10762 2011-06-02  Bruno Haible  <bruno@clisp.org>
10763
10764         pipe2: Remove dependency on 'nonblocking' module.
10765         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10766         O_NONBLOCK is defined by gnulib.
10767         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10768         is zero.
10769         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10770         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10771         defined by gnulib.
10772         (get_nonblocking_flag): New function.
10773         (main): Test O_NONBLOCK flag only if it is nonzero.
10774         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10775
10776 2011-06-03  Jim Meyering  <meyering@redhat.com>
10777
10778         maint: three new prohibit-header-without-use rules
10779         Prohibit use of cloexec.h, posixver.h, same.h without use.
10780         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10781         (sc_prohibit_posixver_without_use): Likewise.
10782         (sc_prohibit_same_without_use): Likewise.
10783
10784 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10785
10786         allocator: 'die' routine is now given requested size
10787         * lib/allocator.h (struct allocator.die): New size arg.
10788         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10789         If the actual problem is an ssize_t limitation, not a size_t or
10790         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10791
10792 2011-06-01  Eric Blake  <eblake@redhat.com>
10793
10794         strerror: drop strerror_r dependency
10795         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10796         * lib/strerror-override.c (strerror_override): ...to new file.
10797         * lib/strerror-override.h: Add prototype.
10798         * lib/strerror-impl.h: Delete.
10799         * lib/strerror.c (strerror): New implementation.
10800         * modules/errno (Files): Add new files.
10801         (configure.ac): Compile new file as appropriate.
10802         * modules/strerror (Files): Drop unused file.
10803         (Depends-on): Drop strerror_r-posix.
10804         * MODULES.html.sh: Document strerror_r-posix.
10805         Requested by Sam Steingold.
10806
10807         perror: call strerror_r directly
10808         * modules/perror (Files): Drop strerror-impl.h.
10809         * lib/perror.c (perror): Use our own stack buffer, rather than
10810         calling a wrapper that uses static storage.
10811         * doc/posix-functions/perror.texi (perror): Document a limitation
10812         of our replacement.
10813
10814         strerror_r: fix includes for FreeBSD
10815         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10816         since we use abort on some platforms.
10817         Reported by Matthias Bolte.
10818
10819 2011-05-31  Bruno Haible  <bruno@clisp.org>
10820
10821         Fix link errors in tests: openat-die uses gettext-h.
10822         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10823         against $(LIBINTL).
10824         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10825         against $(LIBINTL).
10826         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10827         $(LIBINTL).
10828         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10829         against $(LIBINTL).
10830         * modules/linkat-tests (Makefile.am): Link test-linkat against
10831         $(LIBINTL).
10832         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10833         $(LIBINTL).
10834         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10835         against $(LIBINTL).
10836         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10837         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10838         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10839         $(LIBINTL).
10840         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10841         $(LIBINTL).
10842         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10843         $(LIBINTL).
10844         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10845
10846 2011-05-31  Bruno Haible  <bruno@clisp.org>
10847
10848         Fix link errors in tests: wait-process uses gettext-h.
10849         * modules/nonblocking-pipe-tests (Makefile.am): Set
10850         test_nonblocking_pipe_main_LDADD.
10851         * modules/nonblocking-socket-tests (Makefile.am): Link
10852         test-nonblocking-socket-main against $(LIBINTL).
10853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10854
10855 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10856
10857         assert-h: work around 'verify' incompatibility
10858         * lib/verify.h: Use @...@ directives, not ifdef.
10859         * modules/assert-h (assert.h): Implement the directives.
10860         (assert.h): Substitute the symbol-prefix more consistently.
10861
10862 2011-05-29  Jim Meyering  <meyering@redhat.com>
10863
10864         trim: remove three superfluous assignments
10865         * lib/trim.c (trim2): Remove three superfluous assignments
10866         and correct brace positioning.
10867
10868 2011-05-29  Bruno Haible  <bruno@clisp.org>
10869
10870         wctype-h: Avoid namespace pollution on Solaris 2.6.
10871         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10872         identifiers.
10873         * doc/posix-headers/wctype.texi: Mention the problem.
10874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10875
10876 2011-05-28  Jim Meyering  <meyering@redhat.com>
10877
10878         parse-datetime.y: accommodate -Wstrict-overflow
10879         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10880         placate -Wstrict-overflow.
10881
10882         trim: avoid a warning from -O2 -Wstrict-overflow
10883         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10884
10885 2011-05-29  Bruno Haible  <bruno@clisp.org>
10886
10887         gnulib-tool: Fix bug in yesterday's commit.
10888         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10889         twice.
10890
10891 2011-05-29  Bruno Haible  <bruno@clisp.org>
10892
10893         Allow multiple gnulib generated include files to be combined.
10894         * gnulib-tool (func_compute_include_guard_prefix): New function.
10895         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10896         ${gl_include_guard_prefix} references.
10897         (func_import, func_create_testdir): Invoke
10898         func_compute_include_guard_prefix.
10899         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10900         * lib/ctype.in.h: Likewise.
10901         * lib/dirent.in.h: Likewise.
10902         * lib/errno.in.h: Likewise.
10903         * lib/fcntl.in.h: Likewise.
10904         * lib/float.in.h: Likewise.
10905         * lib/getopt.in.h: Likewise.
10906         * lib/iconv.in.h: Likewise.
10907         * lib/langinfo.in.h: Likewise.
10908         * lib/locale.in.h: Likewise.
10909         * lib/math.in.h: Likewise.
10910         * lib/netdb.in.h: Likewise.
10911         * lib/netinet_in.in.h: Likewise.
10912         * lib/poll.in.h: Likewise.
10913         * lib/pthread.in.h: Likewise.
10914         * lib/pty.in.h: Likewise.
10915         * lib/sched.in.h: Likewise.
10916         * lib/se-selinux.in.h: Likewise.
10917         * lib/search.in.h: Likewise.
10918         * lib/signal.in.h: Likewise.
10919         * lib/spawn.in.h: Likewise.
10920         * lib/stdarg.in.h: Likewise.
10921         * lib/stddef.in.h: Likewise.
10922         * lib/stdint.in.h: Likewise.
10923         * lib/stdio.in.h: Likewise.
10924         * lib/stdlib.in.h: Likewise.
10925         * lib/string.in.h: Likewise.
10926         * lib/strings.in.h: Likewise.
10927         * lib/sys_file.in.h: Likewise.
10928         * lib/sys_ioctl.in.h: Likewise.
10929         * lib/sys_select.in.h: Likewise.
10930         * lib/sys_socket.in.h: Likewise.
10931         * lib/sys_stat.in.h: Likewise.
10932         * lib/sys_time.in.h: Likewise.
10933         * lib/sys_times.in.h: Likewise.
10934         * lib/sys_uio.in.h: Likewise.
10935         * lib/sys_utsname.in.h: Likewise.
10936         * lib/sys_wait.in.h: Likewise.
10937         * lib/sysexits.in.h: Likewise.
10938         * lib/termios.in.h: Likewise.
10939         * lib/time.in.h: Likewise.
10940         * lib/unistd.in.h: Likewise.
10941         * lib/wchar.in.h: Likewise.
10942         * lib/wctype.in.h: Likewise.
10943         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10944         * modules/ctype (Makefile.am): Likewise.
10945         * modules/dirent (Makefile.am): Likewise.
10946         * modules/errno (Makefile.am): Likewise.
10947         * modules/fcntl-h (Makefile.am): Likewise.
10948         * modules/float (Makefile.am): Likewise.
10949         * modules/getopt-posix (Makefile.am): Likewise.
10950         * modules/iconv-h (Makefile.am): Likewise.
10951         * modules/langinfo (Makefile.am): Likewise.
10952         * modules/locale (Makefile.am): Likewise.
10953         * modules/math (Makefile.am): Likewise.
10954         * modules/netdb (Makefile.am): Likewise.
10955         * modules/netinet_in (Makefile.am): Likewise.
10956         * modules/poll-h (Makefile.am): Likewise.
10957         * modules/pthread (Makefile.am): Likewise.
10958         * modules/pty (Makefile.am): Likewise.
10959         * modules/sched (Makefile.am): Likewise.
10960         * modules/search (Makefile.am): Likewise.
10961         * modules/selinux-h (Makefile.am): Likewise.
10962         * modules/signal (Makefile.am): Likewise.
10963         * modules/spawn (Makefile.am): Likewise.
10964         * modules/stdarg (Makefile.am): Likewise.
10965         * modules/stddef (Makefile.am): Likewise.
10966         * modules/stdint (Makefile.am): Likewise.
10967         * modules/stdio (Makefile.am): Likewise.
10968         * modules/stdlib (Makefile.am): Likewise.
10969         * modules/string (Makefile.am): Likewise.
10970         * modules/strings (Makefile.am): Likewise.
10971         * modules/sys_file (Makefile.am): Likewise.
10972         * modules/sys_ioctl (Makefile.am): Likewise.
10973         * modules/sys_select (Makefile.am): Likewise.
10974         * modules/sys_socket (Makefile.am): Likewise.
10975         * modules/sys_stat (Makefile.am): Likewise.
10976         * modules/sys_time (Makefile.am): Likewise.
10977         * modules/sys_times (Makefile.am): Likewise.
10978         * modules/sys_uio (Makefile.am): Likewise.
10979         * modules/sys_utsname (Makefile.am): Likewise.
10980         * modules/sys_wait (Makefile.am): Likewise.
10981         * modules/sysexits (Makefile.am): Likewise.
10982         * modules/termios (Makefile.am): Likewise.
10983         * modules/time (Makefile.am): Likewise.
10984         * modules/unistd (Makefile.am): Likewise.
10985         * modules/wchar (Makefile.am): Likewise.
10986         * modules/wctype-h (Makefile.am): Likewise.
10987         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10988
10989 2011-05-29  Bruno Haible  <bruno@clisp.org>
10990
10991         assert-h: Allow multiple gnulib generated replacements to coexist.
10992         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10993
10994 2011-05-29  Bruno Haible  <bruno@clisp.org>
10995
10996         argp: Allow coexistence with strerror_r-posix module.
10997         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10998         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10999         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11000         not the glibc signature.
11001
11002 2011-05-28  Bruno Haible  <bruno@clisp.org>
11003
11004         gnulib-tool: Alternative structure of testdirs, similar to --import.
11005         * gnulib-tool: New option --single-configure.
11006         (func_usage): Document it.
11007         (single_configure): New variable.
11008         (func_modules_transitive_closure_separately,
11009         func_modules_transitive_closure_separately,
11010         func_determine_use_libtests, func_modules_add_dummy_separately,
11011         func_modules_to_filelist_separately): New functions, extracted from
11012         func_import.
11013         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11014         (func_import): Use the new functions.
11015         (func_create_testdir): Set final_modules. Handle $single_configure =
11016         true case.
11017
11018 2011-05-28  Bruno Haible  <bruno@clisp.org>
11019
11020         getloadavg: Remove an unreliable safety check.
11021         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11022         getloadavg.c is in place.
11023         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11024         Reported by Sam Steingold <sds@gnu.org>.
11025
11026 2011-05-28  Bruno Haible  <bruno@clisp.org>
11027
11028         doc: Cleanup yet another file produced by texinfo.tex.
11029         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11030
11031 2011-05-28  Bruno Haible  <bruno@clisp.org>
11032
11033         Finish the conditional dependencies mechanism.
11034         * gnulib-tool: New option --no-conditional-dependencies.
11035         (func_usage): Document it. Don't mark --conditional-dependencies as
11036         experimental.
11037         (cond_dependencies): The possible values can now be true, false, empty.
11038         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11039         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11040         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11041
11042 2011-05-28  Bruno Haible  <bruno@clisp.org>
11043
11044         doc: Use a recent texinfo.tex.
11045         * doc/Makefile (tex_opts): New variable.
11046         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11047
11048 2011-05-28  Jim Meyering  <meyering@redhat.com>
11049
11050         intprops.h: adjust comment to match code change
11051         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11052         only once, it *may* have side effects.  Also fix an unrelated typo.
11053         (_GL_INT_SIGNED): Likewise.
11054
11055 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11056
11057         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11058
11059 2011-05-26  Bruno Haible  <bruno@clisp.org>
11060
11061         mbsrchr: Avoid collision with system function on Interix.
11062         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11063         Reported by Markus Duft <mduft@gentoo.org>.
11064
11065 2011-05-15  James Youngman  <jay@gnu.org>
11066
11067         getopt: for ambiguous options, enumerate the possibilities.
11068         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11069         the ambiguous options when an ambiguous prefix is given. This was
11070         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11071         glibc change was
11072         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11073
11074 2011-05-25  Eric Blake  <eblake@redhat.com>
11075
11076         getcwd: work around mingw bug
11077         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11078         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11079         Reported by Matthias Bolte.
11080
11081 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11082
11083         test-intprops: disable -Wtype-limits diagnostics
11084         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11085         diagnostics.  Otherwise, the integer overflow macros generate many
11086         diagnostics.  Reported by Jim Meyering in
11087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11088
11089         intprops: shorten, to pacify gcc -Woverlength-strings
11090         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11091         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11092         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11093         likely to run afoul of C compiler limits for string constant lengths.
11094         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11095
11096 2011-05-24  Eric Blake  <eblake@redhat.com>
11097
11098         docs: document recently fixed glibc printf bug
11099         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11100         * doc/posix-functions/printf.texi (printf): Likewise.
11101         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11102         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11103
11104         closein-tests: convert to init.sh
11105         * modules/closein-tests (Files): Add init.sh
11106         * tests/test-closein.sh Use it.
11107
11108         yesno-tests: convert to init.sh
11109         * modules/yesno-tests (Files): Add init.sh.
11110         * tests/test-yesno.sh: Use it.
11111
11112         atexit-tests: ensure reliable exit status
11113         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11114         Reported by Bruno Haible.
11115
11116 2011-05-24  Bruno Haible  <bruno@clisp.org>
11117
11118         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11119         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11120         gl_PREREQ_STRERROR_R invocations from here...
11121         * modules/strerror_r-posix (configure.ac): ... to here.
11122
11123 2011-05-24  Eric Blake  <eblake@redhat.com>
11124
11125         strerror_r: fix missing header
11126         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11127
11128         strerror_r: fix AIX test failures
11129         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11130         ERANGE failure.
11131
11132         strerror_r: fix Solaris test failures
11133         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11134         failures.
11135         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11136
11137         strerror_r: enforce POSIX recommendations
11138         * lib/strerror_r.c (safe_copy): New helper method.
11139         (strerror_r): Guarantee a non-empty string.
11140         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11141         recent POSIX rulings and to match our strerror guarantees.
11142         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11143
11144 2011-05-24  Jim Meyering  <meyering@redhat.com>
11145
11146         test-perror2.c: avoid warning about unused variable
11147         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11148
11149 2011-05-24  Eric Blake  <eblake@redhat.com>
11150
11151         perror: avoid spurious test failure on HP-UX
11152         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11153
11154         tests: fix logic bug in init.sh
11155         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11156         shell.
11157
11158 2011-05-24  Jim Meyering  <meyering@redhat.com>
11159
11160         utimensat: do not reference an out-of-scope buffer
11161         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11162         declared in an inner scope, yet "times" would be dereferenced outside
11163         the scope in which "ts" was valid.
11164         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11165         of ts[2] "out/up", so that the use of aliased "times" (via
11166         "times = ts;") does not end up referencing an out-of-scope "ts"
11167
11168         opendir-safer.c: don't clobber errno; don't close negative FD
11169         * lib/opendir-safer.c (opendir_safer):
11170         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11171         file descriptor, and more importantly, don't clobber the
11172         offending errno value with EINVAL.  Before, upon failure
11173         of dup_safer, we would pass the negative file descriptor to
11174         fdopendir, which would clobber errno.
11175
11176 2011-05-23  Bruno Haible  <bruno@clisp.org>
11177
11178         idcache: Fix module description.
11179         * modules/idcache (Include): Set to "idcache.h".
11180
11181 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11182
11183         gnulib-tool: fix portability problem with MacOS sed
11184         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11185         before the "}".  Problem reported by Leo in
11186         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11187         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11188         sed_extract_condition1, sed_extract_condition2.
11189
11190 2011-05-23  Bruno Haible  <bruno@clisp.org>
11191
11192         hash: Simplify autoconf macro.
11193         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11194
11195 2011-05-23  Bruno Haible  <bruno@clisp.org>
11196
11197         getugroups: Fix module description.
11198         * modules/getugroups (Include): Set to "getugroups.h".
11199
11200 2011-05-23  Bruno Haible  <bruno@clisp.org>
11201
11202         linkat: Simplify autoconf macro.
11203         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11204
11205 2011-05-23  Bruno Haible  <bruno@clisp.org>
11206             Eric Blake  <eblake@redhat.com>
11207
11208         linkat, renameat: Update dependencies.
11209         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11210         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11211         symlinkat.
11212
11213 2011-05-23  Jim Meyering  <meyering@redhat.com>
11214
11215         maint.mk: more tight_scope improvements
11216         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11217         (_gl_TS_headers): Define only in if-0'd block.
11218         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11219         sometimes we must *not* use it.  Adjust uses accordingly.
11220         (sc_tight_scope): Use much simpler grep-based test to determine
11221         whether we skip this rule.
11222
11223         maint.mk: generalize/improve the tight-scope rule
11224         * top/maint.mk: Emit a warning when the test is skipped.
11225         (_gl_TS_dir): Add $(srcdir)/ prefix.
11226         (_gl_TS_function_match): Simplify, rather than trying
11227         to enumerate common types.  Otherwise, it would fail to match an
11228         "extern unsigned char const *" declaration in idutils.
11229         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11230         a way to support use of that type of macro.
11231         (_gl_TS_var_match): Simplify regexp.
11232         (_gl_TS_obj_files): New configurable variable.
11233         (_gl_TS_headers): Likewise.
11234
11235 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11236
11237         verify: fix bug when gnulib <assert.h> is also included
11238         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11239         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11240         Perhaps there's a better way, but this fixes the immediate problem.
11241         Problem reported by Bruno Haible in
11242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11243
11244 2011-05-22  Bruno Haible  <bruno@clisp.org>
11245
11246         xgetcwd: Simplify autoconf macro.
11247         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11248
11249 2011-05-22  Bruno Haible  <bruno@clisp.org>
11250
11251         New module 'mktime-internal'.
11252         * modules/mktime-internal: New file.
11253         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11254         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11255         mktime_internal as a C macro if libc has __mktime_internal.
11256         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11257         conditions.
11258         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11259
11260 2011-05-22  Bruno Haible  <bruno@clisp.org>
11261
11262         timegm: Correct mktime replacement statements.
11263         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11264         defining mktime as a C macro. This completes a 2009-07-28 commit.
11265
11266 2011-05-22  Bruno Haible  <bruno@clisp.org>
11267
11268         timegm: Simplify autoconf macro.
11269         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11270
11271 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11272
11273         clock-time: change to LGPLv2+.
11274         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11275         BSD-like but we have no mark for that; this is good enough for now.
11276
11277 2011-05-21  Bruno Haible  <bruno@clisp.org>
11278
11279         strerror_r: Fix comments.
11280         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11281
11282 2011-05-21  Bruno Haible  <bruno@clisp.org>
11283
11284         relocatable-prog-wrapper: Fix possible link error.
11285         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11286         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11287         (gl_FUNC_SETENV): ... to here.
11288         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11289         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11290
11291 2011-05-21  Bruno Haible  <bruno@clisp.org>
11292
11293         relocatable-prog-wrapper: Assume strerror() exists.
11294         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11295         m4/strerror.m4.
11296         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11297         * lib/relocwrapper.c: Remove mention of strerror module.
11298         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11299         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11300         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11301         C macro.
11302
11303 2011-05-21  Bruno Haible  <bruno@clisp.org>
11304
11305         select: Simplify replacement idiom.
11306         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11307         Win32 platforms.
11308         * lib/sys_select.in.h (select): Simplify accordingly.
11309         * modules/select (Depends-on): Likewise.
11310
11311 2011-05-21  Bruno Haible  <bruno@clisp.org>
11312
11313         mkdir-p: Simplify autoconf macro.
11314         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11315         gl_FUNC_LCHOWN.
11316
11317 2011-05-21  Eric Blake  <eblake@redhat.com>
11318
11319         strerror_r: avoid clobbering strerror on cygwin
11320         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11321         fall back instead to sys_errlist.
11322         * modules/strerror (configure.ac): Add witness.
11323         * tests/test-strerror_r.c (main): Enhance test.
11324         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11325         * tests/test-perror2.c (main): Free memory before exit.
11326
11327 2011-05-21  Bruno Haible  <bruno@clisp.org>
11328
11329         mkdtemp: Use gnulib naming conventions.
11330         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11331         * modules/mkdtemp (configure.ac): Update.
11332
11333 2011-05-20  Eric Blake  <eblake@redhat.com>
11334
11335         strerror_r: avoid corrupting errno on Solaris
11336         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11337         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11338
11339         strerror_r: avoid compiler warning
11340         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11341
11342         strerror_r: simplify AIX code
11343         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11344
11345         test-perror: avoid spurious failure on FreeBSD
11346         * modules/perror-tests (Depends-on): Add strerror, now that
11347         strerror_r no longer pulls it in.
11348
11349 2011-05-20  Bruno Haible  <bruno@clisp.org>
11350
11351         strerror_r-posix: Remove unused dependencies.
11352         * modules/strerror_r-posix (Depends-on): Remove strerror.
11353         Reported by Eric Blake.
11354
11355 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11356
11357         intprops: remove assumption about A|B representation
11358         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11359         is a valid integer if both A and B are.  Although this is true for
11360         all known practical hosts, the C standard doesn't guarantee it,
11361         and the code need not assume it.  Also, this change may work around
11362         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11364
11365 2011-05-20  Eric Blake  <eblake@redhat.com>
11366
11367         perror: work around FreeBSD bug
11368         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11369         is broken.  Move AC_LIBOBJ...
11370         * modules/perror (configure.ac): Here.
11371         * doc/posix-functions/perror.texi (perror): Document this.
11372         * tests/test-perror2.c (main): Enhance test.
11373
11374         test-perror: check for strerror interactions
11375         * tests/macros.h (STREQ): Add macro.
11376         * modules/perror-tests (Files): Add second test.
11377         * tests/test-perror2.c (main): New file.
11378         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11379
11380         test-perror: rewrite to use init script
11381         * modules/perror-tests (Files): Add init.sh.
11382         * tests/test-perror.sh: Use temporary directory.
11383
11384 2011-05-20  Jim Meyering  <meyering@redhat.com>
11385
11386         maint: replace misused "a" with "an"
11387         * doc/intprops.texi: "a integer"
11388         * doc/regex.texi: "a explanation"
11389         * lib/alignof.h: "a object"
11390         * lib/argmatch.h: "a explanation"
11391         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11392         * lib/stdint.in.h: "a integer"
11393         * lib/userspec.c: "a owner"
11394         * doc/gnulib.texi: Fix "a idea", and reword.
11395
11396 2011-05-19  Jim Meyering  <meyering@redhat.com>
11397
11398         maint: correct misuse of "a" and "an"
11399         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11400         * lib/argp-help.c: "an docum...": s/an/a/
11401         * lib/argp-parse.c: "An vector": s/An/A/
11402         * lib/execute.c: "an native": s/an/a/
11403         * lib/spawn-pipe.c: Likewise.
11404         * lib/gc.h: "an Gc_rc": s/an/a/
11405         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11406         * lib/fts.c: "an stat.st_dev": s/an/a/
11407
11408 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11409
11410         intprops-tests: work around HP-UX 11.23 cc bug with constants
11411         * tests/test-intprops.c (VERIFY): New macro.
11412         (main): Use it, instead of verify, to work around the compiler bug; see
11413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11414
11415         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11416         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11417         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11418         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11419         (_GL_REMAINDER_OVERFLOW): Use it.
11420
11421         intprops-tests: revert unsigned part of previous change
11422         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11423         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11424         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11426
11427 2011-05-19  Bruno Haible  <bruno@clisp.org>
11428
11429         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11430         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11431         strerror_r() returned without filling the buffer.
11432         Reported by Eric Blake.
11433
11434 2011-05-19  Eric Blake  <eblake@redhat.com>
11435
11436         strerror_r: guarantee unchanged errno
11437         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11438         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11439         failure.
11440         * tests/test-strerror_r.c (main): Enhance test.
11441
11442 2011-05-19  Bruno Haible  <bruno@clisp.org>
11443
11444         strerror_r: Reorder #if blocks.
11445         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11446         for consistency with the previous commit.
11447
11448 2011-05-19  Bruno Haible  <bruno@clisp.org>
11449
11450         perror: Avoid clobbering the strerror buffer when possible.
11451         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11452         * lib/strerror.c: Include it.
11453         * modules/strerror (Files): Add lib/strerror-impl.h.
11454         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11455         (my_strerror): New function, defined through lib/strerror-impl.h.
11456         (perror): Use it instead of strerror.
11457         * modules/perror (Files): Add lib/strerror-impl.h.
11458         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11459
11460 2011-05-19  Eric Blake  <eblake@redhat.com>
11461
11462         strerror_r: fix on newer cygwin
11463         * lib/strerror_r.c (strerror_r): Cygwin now has
11464         __xpg_strerror_r, use it.
11465
11466 2011-05-19  Bruno Haible  <bruno@clisp.org>
11467
11468         strerror_r: Avoid clobbering the strerror buffer when possible.
11469         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11470         (sys_nerr, sys_errlist): New declarations.
11471         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11472         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11473         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11474
11475 2011-05-19  Bruno Haible  <bruno@clisp.org>
11476
11477         strerror_r: Fix test failure on mingw.
11478         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11479         EXTEND_STRERROR_R.
11480         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11481         macros from errno.in.h instead.
11482
11483 2011-05-19  Eric Blake  <eblake@redhat.com>
11484
11485         strerror: relax test for Solaris
11486         * tests/test-strerror.c (main): Permit Solaris behavior.
11487         * tests/test-strerror_r.c (main): Likewise.
11488
11489         strerror: enforce POSIX ruling on strerror(0)
11490         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11491         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11492         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11493         * doc/posix-functions/strerror.texi (strerror): Document it.
11494         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11495         * tests/test-strerror.c (main): Strengthen test.
11496         * tests/test-strerror_r.c (main): Likewise.
11497
11498 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11499
11500         intprop-tests: port to older and more-pedantic compilers
11501         * modules/intprops-tests (Files): Add tests/macros.h.
11502         * tests/test-intprops.c: Include macros.h.
11503         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11504         it's no longer documented to expand to an integer constant expression.
11505         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11506         argument is floating point, as it's no longer documented to expand
11507         to an integer constant expression in that case.
11508         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11509         compiler bugs reported by Bruno Haible.  See
11510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11511         (U0, U1): New constants, to work around the same bugs.  Also,
11512         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11513
11514         intprops: work around C compiler bugs
11515         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11516         bug in Sun C 5.11 2010/08/13 and other compilers; see
11517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11518
11519         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11520         * doc/intprops.texi (Integer Type Determination): Fix
11521         documentation for TYPE_IS_INTEGER: it returns an constant
11522         expression, not an integer constant expression.  Fix doc for
11523         TYPE_SIGNED: it returns an integer constant expression only if its
11524         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11525         hardly worth documented that way....)
11526
11527 2011-05-18  Bruno Haible  <bruno@clisp.org>
11528
11529         strerror_r: Avoid clobbering the strerror buffer when possible.
11530         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11531         Handle gnulib defined errno values here. When strerror() returns NULL
11532         or an empty string, return EINVAL.
11533         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11534         gnulib defined errno values here.
11535         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11536
11537 2011-05-18  Eric Blake  <eblake@redhat.com>
11538
11539         fnmatch: avoid compiler warning
11540         * lib/fnmatch_loop.c (FCT): Use correct type.
11541         Reported by Matthias Bolte.
11542
11543 2011-05-13  Jim Meyering  <meyering@redhat.com>
11544
11545         maint.mk: three new prohibit_<HDR>_without_use rules
11546         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11547         (sc_prohibit_stdio-safer_without_use): Likewise.
11548         (sc_prohibit_xfreopen_without_use): Likewise.
11549
11550 2011-05-17  Jim Meyering  <meyering@redhat.com>
11551
11552         announce-gen: fail if the NEWS delta is empty
11553         If there's nothing noteworthy in NEWS, then either you forgot
11554         or you shouldn't be releasing.
11555         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11556
11557 2011-05-17  Pádraig Brady <P@draigBrady.com>
11558
11559         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11560         reserved symbols starting with double underscore from the check.
11561
11562 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11563
11564         intprops: add doc
11565         * doc/intprops.texi: New file, documenting intprops.
11566         * doc/gnulib.texi (Particular Modules): Include it.
11567
11568         verify: add doc to gnulib manual and fix example
11569         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11570         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11571         (Compile-time Assertions): Fix example so it can't overflow.
11572
11573 2011-05-17  Jim Meyering  <meyering@redhat.com>
11574
11575         warnings.m4: don't usurp save_CPPFLAGS variable name
11576         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11577
11578         doc: fix typo
11579         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11580
11581 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11582             Bruno Haible  <bruno@clisp.org>
11583
11584         doc: Tweak recent change.
11585         * README (Portability guidelines): Tweak new text.
11586         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11587         Interix 6.1.
11588
11589 2011-05-16  Eric Blake  <eblake@redhat.com>
11590
11591         inttypes: avoid autoconf warning
11592         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11593         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11594
11595 2011-05-16  Sam Steingold <sds@gnu.org>
11596         and Eric Blake  <eblake@redhat.com>
11597
11598         vc-list-files: accept multiple directory operands
11599         * build-aux/vc-list-files: Iterate over all remaining operands.
11600
11601 2011-05-16  Bruno Haible  <bruno@clisp.org>
11602
11603         Fix confusion regarding deprecated modules.
11604         * modules/calloc (Status, Notice): Mark module as deprecated, not
11605         obsolete.
11606         * modules/fnmatch-posix (Status, Notice): Likewise.
11607         * modules/getdate (Status, Notice): Likewise.
11608         * modules/getopt (Status, Notice): Likewise.
11609         * modules/malloc (Status, Notice): Likewise.
11610         * modules/pipe (Status, Notice): Likewise.
11611         * modules/realloc (Status, Notice): Likewise.
11612         * modules/rename-dest-slash (Status, Notice): Likewise.
11613         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11614         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11615         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11616         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11617         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11618
11619 2011-05-16  Bruno Haible  <bruno@clisp.org>
11620
11621         doc: List the target platforms.
11622         * doc/gnulib-intro.texi (Target Platforms): New section.
11623         * doc/gnulib.texi (Introduction): Update menu.
11624         * README (Portability guidelines): Refer to the new section. Update
11625         statement about oldest supported environment. Remove rationale why
11626         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11627         unportable C89 function.
11628         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11629         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11630
11631 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11632
11633         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11634
11635 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11636
11637         intprops-tests: new module
11638         * modules/intprops-tests, tests/test-intprops.c: New files.
11639
11640         intprops: add safe, portable integer overflow checking
11641         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11642         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11643         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11644         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11645         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11646         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11647         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11648         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11649         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11650         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11651         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11652
11653 2011-05-12  James Youngman  <jay@gnu.org>
11654
11655         Add a test for glibc's Bugzilla bug #12378.
11656         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11657         doesn't allow the literal matching of a lone "[" (which is
11658         required by POSIX).
11659         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11660
11661 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11662
11663         Sync glibc change fixing Bugzilla bug #12378.
11664         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11665         beginning and fall back to matching as normal character if the
11666         string ends before the matching ']' is found.  This is what POSIX
11667         requires.
11668
11669 2011-05-13  Eric Blake  <eblake@redhat.com>
11670
11671         getcwd-lgpl: relax test for FreeBSD
11672         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11673         issue.
11674         * tests/test-getcwd-lgpl.c (main): Relax test.
11675         Reported by Matthias Bolte.
11676
11677 2011-05-11  Eric Blake  <eblake@redhat.com>
11678
11679         test-fflush: silence compiler warning
11680         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11681
11682 2011-05-11  Bruno Haible  <bruno@clisp.org>
11683
11684         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11685         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11686         * modules/canonicalize (Depends-on): Add 'nocrash'.
11687         * modules/canonicalize-lgpl (Depends-on): Likewise.
11688         * doc/posix-functions/realpath.texi: Update platforms list.
11689         Reported by Ryan Schmidt <ryandesign@macports.org>.
11690
11691 2011-05-11  Bruno Haible  <bruno@clisp.org>
11692
11693         group-member: Declare function in <unistd.h>.
11694         * lib/unistd.in.h (group_member): New declaration.
11695         * lib/group-member.h: Remove file.
11696         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11697         * tests/test-unistd-c++.cc: Check signature of group_member.
11698         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11699         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11700         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11701         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11702         HAVE_GROUP_MEMBER.
11703         * modules/group-member (Files): Remove lib/group-member.h.
11704         (Depends-on): Add unistd. Specify conditions.
11705         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11706         (Include): Change to <unistd.h>.
11707         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11708         HAVE_GROUP_MEMBER.
11709         * NEWS: Mention the change.
11710         * lib/euidaccess.c: Don't include group-member.h.
11711
11712 2011-05-11  Bruno Haible  <bruno@clisp.org>
11713
11714         group-member: Document module.
11715         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11716         module.
11717
11718 2011-05-11  Bruno Haible  <bruno@clisp.org>
11719
11720         fclose: Fix mistake earlier today.
11721         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11722
11723 2011-05-11  Eric Blake  <eblake@redhat.com>
11724
11725         fclose: preserve fflush errors
11726         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11727         Reported by Jim Meyering.
11728
11729         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11730         * build-aux/bootstrap (check_versions): When no specific version
11731         is required, merely check that the app produces an exit status
11732         that indicates its existence.
11733
11734         maint.mk: drop redundant check
11735         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11736         the same but better.
11737
11738 2011-05-11  Bruno Haible  <bruno@clisp.org>
11739
11740         fclose: Fix possible link error.
11741         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11742         unregister_shadow_fd. Improve comments.
11743         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11744         Eric Blake.
11745
11746 2011-05-11  Jim Meyering  <meyering@redhat.com>
11747
11748         maint.mk: improve "can not" detection and generalize rule name
11749         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11750         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11751         Use the same technique as in sc_prohibit_doubled_word, so that
11752         we recognize "can not" also when the words are separated by a newline.
11753         Suggested by Eric Blake.
11754         (perl_filename_lineno_text_): Define.  Factored out of...
11755         (prohibit_doubled_word_): ...here.  Use the new definition.
11756         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11757         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11758         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11759
11760 2011-05-10  Eric Blake  <eblake@redhat.com>
11761
11762         fclose: avoid double close race when possible
11763         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11764         all but WINDOWS_SOCKETS.
11765
11766 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11767
11768         openat: correct new comment
11769         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11770
11771 2011-05-10  Jim Meyering  <meyering@redhat.com>
11772
11773         openat: add comments
11774         * lib/openat-proc.c (openat_proc_name): Add comments,
11775         mostly from Eric Blake.
11776
11777 2011-05-09  Eric Blake  <eblake@redhat.com>
11778
11779         openat: reduce syscalls in first probe of /proc
11780         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11781         be a directory.  Simplify the probe for .. bugs.
11782         * modules/openat (Depends-on): Drop same-inode.
11783         Reported by Bastien ROUCARIES.
11784
11785 2011-05-09  Jim Meyering  <meyering@redhat.com>
11786
11787         maint.mk: change semantics/name of tight_scope variables
11788         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11789         Rename variables to align with semantics that make them more useful.
11790
11791         maint.mk: tweak new rule's name not to impinge
11792         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11793         (sc_tight_scope): Use new rule name rather than $@-0.
11794
11795         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11796         * top/maint.mk (sc_tight_scope): New rule.
11797         (sc_tight_scope-0): New rule, ifdef'd out.
11798         (_gl_TS_dir): Default.
11799         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11800         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11801
11802 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11803
11804         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11805         Haible <bruno@clisp.org>.
11806
11807 2011-05-08  Bruno Haible  <bruno@clisp.org>
11808
11809         Comments.
11810         * m4/isnanf.m4: Add comment.
11811         * m4/isnanl.m4: Likewise.
11812
11813 2011-05-08  Bruno Haible  <bruno@clisp.org>
11814
11815         glob: Remove obsolete macro.
11816         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11817
11818 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11819
11820         intprops: Sun C 5.11 supports __typeof__
11821         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11822         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11823         which is new.
11824         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11825
11826         intprops: switch to usual gnulib indenting and naming
11827         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11828         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11829
11830         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11831
11832 2011-05-08  Jim Meyering  <meyering@redhat.com>
11833
11834         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11835         * top/maint.mk (release-prep): Use make's --no-print-directory
11836         option when generating the announcement.  This eliminates the
11837         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11838         generated announcement template.
11839
11840 2011-05-08  Bruno Haible  <bruno@clisp.org>
11841
11842         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11843         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11844         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11845
11846 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11847
11848         ignore-value, verify: Omit include files from lib_SOURCES.
11849         * modules/ignore-value, modules/verify (Makefile.am):
11850         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11851         that leads Automake to duplicate use of am__objects_... variables
11852         in Makefile.in.  See
11853         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11854
11855 2011-05-07  Bruno Haible  <bruno@clisp.org>
11856
11857         fclose: Simplify autoconf macro.
11858         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11859         defined.
11860
11861 2011-05-07  Bruno Haible  <bruno@clisp.org>
11862
11863         canonicalize-lgpl: Fix autoconf macro ordering bug.
11864         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11865         gl_STDLIB_H_DEFAULTS.
11866
11867 2011-05-06  Eric Blake  <eblake@redhat.com>
11868
11869         maintainer-makefile: make sc_po_check easier to tune
11870         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11871         to probe for strings, such as an alternate location for gnulib.
11872
11873         fclose: guarantee behavior on seekable stdin
11874         * modules/fclose (Depends-on): Add fflush.
11875         * doc/posix-functions/fclose.texi (fclose): Document this.
11876         * tests/test-fclose.c (main): Make test for this unconditional.
11877
11878 2011-05-06  Bruno Haible  <bruno@clisp.org>
11879
11880         fflush, fpurge: Relicense under LGPLv2+.
11881         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11882         * modules/fpurge (License): Likewise.
11883         With permission from Eric Blake and Jim Meyering.
11884         Suggested by Eric Blake.
11885
11886 2011-05-06  Karl Berry  <karl@gnu.org>
11887
11888         * MODULES.html.sh (func_all_modules): remove exit.
11889
11890 2011-05-06  Jim Meyering  <meyering@redhat.com>
11891
11892         maint.mk: use info-gnu@ as the default only for a stable release
11893         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11894         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11895         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11896         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11897
11898 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11899
11900         assert-h: new module, which supports C1X-style static_assert
11901         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11902         * lib/verify.h: Revamp so that this can be copied into assert.h,
11903         while retaining the ability to use it standalone as before.
11904         Rename private identifiers so as not to encroach on the
11905         standard C namespace, since this is now used by assert.h.
11906         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11907         the old verify_true.
11908         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11909         the old verify_true.  Use _GL_VERIFY_TYPE.
11910         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11911         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11912         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11913         defined when this file is copied into the replacement assert.h.
11914         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11915         and _Static_assert is not built in.
11916         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11917         defined, and use the new macros mentioned above.
11918         * doc/posix-headers/assert.texi: Document this.
11919
11920 2011-05-05  Bruno Haible  <bruno@clisp.org>
11921
11922         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11923         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11924         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11925         gl_REPLACE_FCLOSE here.
11926         * modules/fflush (Depends-on): Remove fclose.
11927         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11928         combination with module 'fclose'.
11929
11930 2011-05-05  Bruno Haible  <bruno@clisp.org>
11931
11932         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11933         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11934         gl_FUNC_FFLUSH.
11935         (gl_FUNC_FFLUSH): Use it.
11936         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11937         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11938         gl_REPLACE_FSEEKO here.
11939
11940 2011-05-05  Bruno Haible  <bruno@clisp.org>
11941
11942         tzset: Relicense under LGPL.
11943         * modules/tzset (License): Change to LGPL.
11944         No agreement needed; it's a no-op.
11945
11946         strtoimax, strtoumax: Relicense under LGPL.
11947         * modules/strtoimax (License): Change to LGPL.
11948         * modules/strtoumax (License): Likewise.
11949         With permission from Jim Meyering, Paul Eggert:
11950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11952
11953         getgroups: Relicense under LGPL.
11954         * modules/getgroups (License): Change to LGPL.
11955         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11959
11960         nanosleep: Relicense under LGPL.
11961         * modules/nanosleep (License): Change to LGPL.
11962         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11963         Haible:
11964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11968
11969         futimens: Relicense under LGPL.
11970         * modules/futimens (License): Change to LGPL.
11971         With permission from Eric Blake:
11972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11973
11974         fflush: Relicense under LGPL.
11975         * modules/fflush (License): Change to LGPL.
11976         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11980
11981         tmpfile: Relicense under LGPL.
11982         * modules/tmpfile (License): Change to LGPL.
11983         With permission from Ben Pfaff:
11984         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11985
11986         isfinite: Relicense under LGPL.
11987         * modules/isfinite (License): Change to LGPL.
11988         With permission from Ben Pfaff, Bruno Haible:
11989         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11991
11992         acosl..tanl: Relicense under LGPL.
11993         * modules/acosl (License): Change to LGPL.
11994         * modules/asinl (License): Likewise.
11995         * modules/atanl (License): Likewise.
11996         * modules/cosl (License): Likewise.
11997         * modules/expl (License): Likewise.
11998         * modules/logl (License): Likewise.
11999         * modules/sinl (License): Likewise.
12000         * modules/sqrtl (License): Likewise.
12001         * modules/tanl (License): Likewise.
12002         Source code originally from glibc and Paolo Bonzini. Agreements:
12003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12005
12006 2011-05-05  Bruno Haible  <bruno@clisp.org>
12007
12008         signal: Define sighandler_t.
12009         * lib/signal.in.h (sighandler_t): New type.
12010         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12011         whether sighandler_t is defined.
12012         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12013         * modules/signal (Depends-on): Add extensions.
12014         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12015         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12016         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12017
12018 2011-05-05  Eric Blake  <eblake@redhat.com>
12019
12020         maint: remove useless REPLACE_*_H macros
12021         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12022         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12023         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12024         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12025         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12026         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12027         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12028         * m4/btowc.m4: Update callers.
12029         * m4/dirfd.m4: Likewise.
12030         * m4/duplocale.m4: Likewise.
12031         * m4/fchdir.m4: Likewise.
12032         * m4/fdopendir.m4: Likewise.
12033         * m4/inet_ntop.m4: Likewise.
12034         * m4/inet_pton.m4: Likewise.
12035         * m4/ioctl.m4: Likewise.
12036         * m4/mbrlen.m4: Likewise.
12037         * m4/mbrtowc.m4: Likewise.
12038         * m4/mbsinit.m4: Likewise.
12039         * m4/mbsnrtowcs.m4: Likewise.
12040         * m4/mbsrtowcs.m4: Likewise.
12041         * m4/poll.m4: Likewise.
12042         * m4/setlocale.m4: Likewise.
12043         * m4/wcrtomb.m4: Likewise.
12044         * m4/wcsnrtombs.m4: Likewise.
12045         * m4/wcsrtombs.m4: Likewise.
12046         * m4/wctob.m4: Likewise.
12047         * m4/wcwidth.m4: Likewise.
12048         * modules/posix_spawn: Likewise.
12049         * modules/posix_spawn_file_actions_addclose: Likewise.
12050         * modules/posix_spawn_file_actions_adddup2: Likewise.
12051         * modules/posix_spawn_file_actions_addopen: Likewise.
12052         * modules/posix_spawn_file_actions_destroy: Likewise.
12053         * modules/posix_spawn_file_actions_init: Likewise.
12054         * modules/posix_spawnattr_destroy: Likewise.
12055         * modules/posix_spawnattr_getflags: Likewise.
12056         * modules/posix_spawnattr_getpgroup: Likewise.
12057         * modules/posix_spawnattr_getschedparam: Likewise.
12058         * modules/posix_spawnattr_getschedpolicy: Likewise.
12059         * modules/posix_spawnattr_getsigdefault: Likewise.
12060         * modules/posix_spawnattr_getsigmask: Likewise.
12061         * modules/posix_spawnattr_init: Likewise.
12062         * modules/posix_spawnattr_setflags: Likewise.
12063         * modules/posix_spawnattr_setpgroup: Likewise.
12064         * modules/posix_spawnattr_setschedparam: Likewise.
12065         * modules/posix_spawnattr_setschedpolicy: Likewise.
12066         * modules/posix_spawnattr_setsigdefault: Likewise.
12067         * modules/posix_spawnattr_setsigmask: Likewise.
12068         * modules/posix_spawnp: Likewise.
12069
12070 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12071
12072         Add option to do-release-commit-and-tag to specify branch.
12073         * build-aux/do-release-commit-and-tag: Add --branch.
12074
12075 2011-05-03  Bruno Haible  <bruno@clisp.org>
12076
12077         Avoid unnecessary compilation units, through conditional dependencies.
12078         * modules/accept (Depends-on): Add conditions to the dependencies.
12079         * modules/acosl (Depends-on): Likewise.
12080         * modules/argz (Depends-on): Likewise.
12081         * modules/asinl (Depends-on): Likewise.
12082         * modules/atanl (Depends-on): Likewise.
12083         * modules/atoll (Depends-on): Likewise.
12084         * modules/bind (Depends-on): Likewise.
12085         * modules/btowc (Depends-on): Likewise.
12086         * modules/canonicalize-lgpl (Depends-on): Likewise.
12087         * modules/ceil (Depends-on): Likewise.
12088         * modules/ceilf (Depends-on): Likewise.
12089         * modules/ceill (Depends-on): Likewise.
12090         * modules/chdir-long (Depends-on): Likewise.
12091         * modules/chown (Depends-on): Likewise.
12092         * modules/close (Depends-on): Likewise.
12093         * modules/connect (Depends-on): Likewise.
12094         * modules/cosl (Depends-on): Likewise.
12095         * modules/dirfd (Depends-on): Likewise.
12096         * modules/dprintf (Depends-on): Likewise.
12097         * modules/dprintf-posix (Depends-on): Likewise.
12098         * modules/error (Depends-on): Likewise.
12099         * modules/euidaccess (Depends-on): Likewise.
12100         * modules/expl (Depends-on): Likewise.
12101         * modules/faccessat (Depends-on): Likewise.
12102         * modules/fchdir (Depends-on): Likewise.
12103         * modules/fclose (Depends-on): Likewise.
12104         * modules/fcntl (Depends-on): Likewise.
12105         * modules/fdopendir (Depends-on): Likewise.
12106         * modules/fflush (Depends-on): Likewise.
12107         * modules/floor (Depends-on): Likewise.
12108         * modules/floorf (Depends-on): Likewise.
12109         * modules/floorl (Depends-on): Likewise.
12110         * modules/fnmatch (Depends-on): Likewise.
12111         * modules/fopen (Depends-on): Likewise.
12112         * modules/fprintf-posix (Depends-on): Likewise.
12113         * modules/frexp (Depends-on): Likewise.
12114         * modules/frexp-nolibm (Depends-on): Likewise.
12115         * modules/frexpl (Depends-on): Likewise.
12116         * modules/frexpl-nolibm (Depends-on): Likewise.
12117         * modules/fseek (Depends-on): Likewise.
12118         * modules/fsusage (Depends-on): Likewise.
12119         * modules/ftell (Depends-on): Likewise.
12120         * modules/ftello (Depends-on): Likewise.
12121         * modules/futimens (Depends-on): Likewise.
12122         * modules/getcwd (Depends-on): Likewise.
12123         * modules/getcwd-lgpl (Depends-on): Likewise.
12124         * modules/getdelim (Depends-on): Likewise.
12125         * modules/getdomainname (Depends-on): Likewise.
12126         * modules/getgroups (Depends-on): Likewise.
12127         * modules/gethostname (Depends-on): Likewise.
12128         * modules/getline (Depends-on): Likewise.
12129         * modules/getlogin_r (Depends-on): Likewise.
12130         * modules/getopt-posix (Depends-on): Likewise.
12131         * modules/getpeername (Depends-on): Likewise.
12132         * modules/getsockname (Depends-on): Likewise.
12133         * modules/getsockopt (Depends-on): Likewise.
12134         * modules/getsubopt (Depends-on): Likewise.
12135         * modules/getusershell (Depends-on): Likewise.
12136         * modules/glob (Depends-on): Likewise.
12137         * modules/grantpt (Depends-on): Likewise.
12138         * modules/iconv_open (Depends-on): Likewise.
12139         * modules/iconv_open-utf (Depends-on): Likewise.
12140         * modules/inet_ntop (Depends-on): Likewise.
12141         * modules/inet_pton (Depends-on): Likewise.
12142         * modules/ioctl (Depends-on): Likewise.
12143         * modules/isapipe (Depends-on): Likewise.
12144         * modules/isfinite (Depends-on): Likewise.
12145         * modules/isinf (Depends-on): Likewise.
12146         * modules/lchown (Depends-on): Likewise.
12147         * modules/ldexpl (Depends-on): Likewise.
12148         * modules/link (Depends-on): Likewise.
12149         * modules/linkat (Depends-on): Likewise.
12150         * modules/listen (Depends-on): Likewise.
12151         * modules/logl (Depends-on): Likewise.
12152         * modules/lstat (Depends-on): Likewise.
12153         * modules/mbrlen (Depends-on): Likewise.
12154         * modules/mbrtowc (Depends-on): Likewise.
12155         * modules/mbsinit (Depends-on): Likewise.
12156         * modules/mbsnrtowcs (Depends-on): Likewise.
12157         * modules/mbsrtowcs (Depends-on): Likewise.
12158         * modules/mbtowc (Depends-on): Likewise.
12159         * modules/memcmp (Depends-on): Likewise.
12160         * modules/mkdir (Depends-on): Likewise.
12161         * modules/mkdtemp (Depends-on): Likewise.
12162         * modules/mkfifo (Depends-on): Likewise.
12163         * modules/mkfifoat (Depends-on): Likewise.
12164         * modules/mknod (Depends-on): Likewise.
12165         * modules/mkostemp (Depends-on): Likewise.
12166         * modules/mkostemps (Depends-on): Likewise.
12167         * modules/mkstemp (Depends-on): Likewise.
12168         * modules/mkstemps (Depends-on): Likewise.
12169         * modules/mktime (Depends-on): Likewise.
12170         * modules/nanosleep (Depends-on): Likewise.
12171         * modules/open (Depends-on): Likewise.
12172         * modules/openat (Depends-on): Likewise.
12173         * modules/perror (Depends-on): Likewise.
12174         * modules/poll (Depends-on): Likewise.
12175         * modules/popen (Depends-on): Likewise.
12176         * modules/posix_spawn (Depends-on): Likewise.
12177         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12178         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12179         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12180         * modules/posix_spawnp (Depends-on): Likewise.
12181         * modules/pread (Depends-on): Likewise.
12182         * modules/printf-posix (Depends-on): Likewise.
12183         * modules/ptsname (Depends-on): Likewise.
12184         * modules/putenv (Depends-on): Likewise.
12185         * modules/pwrite (Depends-on): Likewise.
12186         * modules/readline (Depends-on): Likewise.
12187         * modules/readlink (Depends-on): Likewise.
12188         * modules/readlinkat (Depends-on): Likewise.
12189         * modules/recv (Depends-on): Likewise.
12190         * modules/recvfrom (Depends-on): Likewise.
12191         * modules/regex (Depends-on): Likewise.
12192         * modules/remove (Depends-on): Likewise.
12193         * modules/rename (Depends-on): Likewise.
12194         * modules/renameat (Depends-on): Likewise.
12195         * modules/rmdir (Depends-on): Likewise.
12196         * modules/round (Depends-on): Likewise.
12197         * modules/roundf (Depends-on): Likewise.
12198         * modules/roundl (Depends-on): Likewise.
12199         * modules/rpmatch (Depends-on): Likewise.
12200         * modules/select (Depends-on): Likewise.
12201         * modules/send (Depends-on): Likewise.
12202         * modules/sendto (Depends-on): Likewise.
12203         * modules/setenv (Depends-on): Likewise.
12204         * modules/setlocale (Depends-on): Likewise.
12205         * modules/setsockopt (Depends-on): Likewise.
12206         * modules/shutdown (Depends-on): Likewise.
12207         * modules/sigaction (Depends-on): Likewise.
12208         * modules/signbit (Depends-on): Likewise.
12209         * modules/sigprocmask (Depends-on): Likewise.
12210         * modules/sinl (Depends-on): Likewise.
12211         * modules/sleep (Depends-on): Likewise.
12212         * modules/snprintf (Depends-on): Likewise.
12213         * modules/snprintf-posix (Depends-on): Likewise.
12214         * modules/socket (Depends-on): Likewise.
12215         * modules/sprintf-posix (Depends-on): Likewise.
12216         * modules/sqrtl (Depends-on): Likewise.
12217         * modules/stat (Depends-on): Likewise.
12218         * modules/strchrnul (Depends-on): Likewise.
12219         * modules/strdup-posix (Depends-on): Likewise.
12220         * modules/strerror (Depends-on): Likewise.
12221         * modules/strerror_r-posix (Depends-on): Likewise.
12222         * modules/strndup (Depends-on): Likewise.
12223         * modules/strnlen (Depends-on): Likewise.
12224         * modules/strptime (Depends-on): Likewise.
12225         * modules/strsep (Depends-on): Likewise.
12226         * modules/strsignal (Depends-on): Likewise.
12227         * modules/strstr-simple (Depends-on): Likewise.
12228         * modules/strtod (Depends-on): Likewise.
12229         * modules/strtoimax (Depends-on): Likewise.
12230         * modules/strtok_r (Depends-on): Likewise.
12231         * modules/strtoumax (Depends-on): Likewise.
12232         * modules/symlink (Depends-on): Likewise.
12233         * modules/symlinkat (Depends-on): Likewise.
12234         * modules/tanl (Depends-on): Likewise.
12235         * modules/tcgetsid (Depends-on): Likewise.
12236         * modules/tmpfile (Depends-on): Likewise.
12237         * modules/trunc (Depends-on): Likewise.
12238         * modules/truncf (Depends-on): Likewise.
12239         * modules/truncl (Depends-on): Likewise.
12240         * modules/uname (Depends-on): Likewise.
12241         * modules/unlink (Depends-on): Likewise.
12242         * modules/unlockpt (Depends-on): Likewise.
12243         * modules/unsetenv (Depends-on): Likewise.
12244         * modules/usleep (Depends-on): Likewise.
12245         * modules/utimensat (Depends-on): Likewise.
12246         * modules/vasprintf (Depends-on): Likewise.
12247         * modules/vdprintf (Depends-on): Likewise.
12248         * modules/vdprintf-posix (Depends-on): Likewise.
12249         * modules/vfprintf-posix (Depends-on): Likewise.
12250         * modules/vprintf-posix (Depends-on): Likewise.
12251         * modules/vsnprintf (Depends-on): Likewise.
12252         * modules/vsnprintf-posix (Depends-on): Likewise.
12253         * modules/vsprintf-posix (Depends-on): Likewise.
12254         * modules/wcrtomb (Depends-on): Likewise.
12255         * modules/wcscasecmp (Depends-on): Likewise.
12256         * modules/wcscspn (Depends-on): Likewise.
12257         * modules/wcsdup (Depends-on): Likewise.
12258         * modules/wcsncasecmp (Depends-on): Likewise.
12259         * modules/wcsnrtombs (Depends-on): Likewise.
12260         * modules/wcspbrk (Depends-on): Likewise.
12261         * modules/wcsrtombs (Depends-on): Likewise.
12262         * modules/wcsspn (Depends-on): Likewise.
12263         * modules/wcsstr (Depends-on): Likewise.
12264         * modules/wcstok (Depends-on): Likewise.
12265         * modules/wcswidth (Depends-on): Likewise.
12266         * modules/wctob (Depends-on): Likewise.
12267         * modules/wctomb (Depends-on): Likewise.
12268         * modules/wctype (Depends-on): Likewise.
12269         * modules/wcwidth (Depends-on): Likewise.
12270         * modules/write (Depends-on): Likewise.
12271
12272 2011-05-03  Bruno Haible  <bruno@clisp.org>
12273
12274         Support for conditional dependencies.
12275         * doc/gnulib.texi (Module description): Document the syntax of
12276         conditional dependencies.
12277         * gnulib-tool: New option --conditional-dependencies.
12278         (func_usage): Document it.
12279         (cond_dependencies): New variable.
12280         (func_get_automake_snippet_conditional,
12281         func_get_automake_snippet_unconditional): New functions, extracted from
12282         func_get_automake_snippet.
12283         (func_get_automake_snippet): Use them.
12284         (sed_first_32_chars): New variable.
12285         (func_module_shellfunc_name): New function.
12286         (func_module_shellvar_name): New function.
12287         (func_module_conditional_name): New function.
12288         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12289         func_cond_module_condition): New functions.
12290         (func_modules_transitive_closure): Add support for conditional
12291         dependencies.
12292         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12293         conditional automake snippet in an automake conditional.
12294         (func_emit_autoconf_snippets): Emit shell functions that contain the
12295         code for conditional modules.
12296         (func_import, func_create_testdir): Update specification.
12297
12298 2011-05-03  Eric Blake  <eblake@redhat.com>
12299
12300         test-getaddrinfo: report error information
12301         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12302
12303 2011-05-03  Jim Meyering  <meyering@redhat.com>
12304
12305         bootstrap: avoid build failure when $GZIP is set
12306         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12307         program name.  If defined at all, it is supposed to list gzip options.
12308         Reported by Alan Curry in http://debbugs.gnu.org/8609
12309
12310 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12311
12312         readme-release: new module with release instructions
12313         * modules/readme-release: New module.
12314         * top/README-release: New file, from coreutils, grep, diffutils.
12315         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12316
12317 2011-05-02  Eric Blake  <eblake@redhat.com>
12318
12319         fflush: also replace fclose when fixing fflush
12320         * modules/fflush (Depends-on): Add fclose.
12321         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12322         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12323         memstreams with no backing fd.
12324         * doc/posix-functions/fclose.texi (fclose): Document the use of
12325         fflush module to fix the bug.
12326         * tests/test-fclose.c (main): Relax test when fclose is used in
12327         isolation.
12328
12329         fclose: add some tests
12330         * modules/fclose-tests: New test module.
12331         * tests/test-fclose.c: New file.
12332         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12333
12334         fclose: reduced dependencies
12335         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12336         simpler lseek.
12337         * lib/fclose.c (rpl_fclose): Likewise.
12338         Reported by Simon Josefsson.
12339
12340         exit: drop remaining clients
12341         * modules/argmatch (Depends-on): Replace exit with stdlib.
12342         * modules/copy-file (Depends-on): Likewise.
12343         * modules/execute (Depends-on): Likewise.
12344         * modules/exitfail (Depends-on): Likewise.
12345         * modules/obstack (Depends-on): Likewise.
12346         * modules/pagealign_alloc (Depends-on): Likewise.
12347         * modules/pipe-filter-gi (Depends-on): Likewise.
12348         * modules/pipe-filter-ii (Depends-on): Likewise.
12349         * modules/savewd (Depends-on): Likewise.
12350         * modules/spawn-pipe (Depends-on): Likewise.
12351         * modules/wait-process (Depends-on): Likewise.
12352         * modules/xsetenv (Depends-on): Likewise.
12353         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12354         * modules/git-merge-changelog (Depends-on): Likewise.
12355         * modules/long-options (Depends-on): Likewise.
12356         * modules/pt_chown (Depends-on): Likewise.
12357         * modules/sysexits (Depends-on): Likewise.
12358
12359         freading: relax license from LGPLv3+ to LGPLv2+
12360         * modules/freading (License): Relax LGPL version.
12361
12362 2011-05-02  Bruno Haible  <bruno@clisp.org>
12363
12364         fchdir: Remove unused dependencies.
12365         * modules/fchdir (Depends-on): Remove include_next.
12366
12367 2011-05-02  Bruno Haible  <bruno@clisp.org>
12368
12369         gnulib-tool: Refactor.
12370         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12371         from func_emit_autoconf_snippets.
12372         (func_emit_autoconf_snippets): Use it.
12373
12374 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12375
12376         * NEWS: Document removal of 'exit'.
12377         * modules/exit: Remove file.
12378
12379 2011-05-01  Bruno Haible  <bruno@clisp.org>
12380
12381         Update DEPENDENCIES.
12382         * DEPENDENCIES (gettext): Recommend the newest release.
12383         Reported by Simon Josefsson.
12384
12385 2011-05-01  Bruno Haible  <bruno@clisp.org>
12386
12387         gnulib-tool: Reduce code duplication.
12388         * gnulib-tool (func_emit_autoconf_snippets): New function.
12389         (func_import, func_create_testdir): Use it.
12390
12391 2011-04-30  Eric Blake  <eblake@redhat.com>
12392
12393         fclose: don't fail on non-seekable input stream
12394         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12395         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12396         since fflush is allowed to fail in that case.
12397
12398 2011-04-30  Bruno Haible  <bruno@clisp.org>
12399
12400         dup3: cleanup
12401         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12402
12403 2011-04-30  Bruno Haible  <bruno@clisp.org>
12404
12405         netdb: Make it work in C++ mode.
12406         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12407         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12408         module.
12409         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12410         gl_MODULE_INDICATOR_FOR_TESTS.
12411         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12412         * modules/netdb-c++-tests: New file.
12413         * tests/test-netdb-c++.cc: New file.
12414
12415 2011-04-30  Bruno Haible  <bruno@clisp.org>
12416
12417         New modules 'vfscanf', 'vscanf'.
12418         * modules/vfscanf: New file.
12419         * modules/vscanf: New file.
12420         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12421         here.
12422         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12423         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12424
12425 2011-04-30  Bruno Haible  <bruno@clisp.org>
12426
12427         passfd: Add comments.
12428         * lib/passfd.c: Add comments about platforms.
12429
12430 2011-04-30  Bruno Haible  <bruno@clisp.org>
12431
12432         sys_uio: Make <sys/uio.h> self-contained.
12433         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12434         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12435
12436 2011-04-30  Bruno Haible  <bruno@clisp.org>
12437
12438         sys_socket: Ensure 'struct iovec' definition.
12439         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12440         <sys/socket.h>.
12441         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12442
12443 2011-04-30  Bruno Haible  <bruno@clisp.org>
12444
12445         sys_uio: Protect definition of 'struct iovec'.
12446         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12447         it as a C struct.
12448
12449 2011-04-30  Bruno Haible  <bruno@clisp.org>
12450
12451         manywarnings: fix indentation
12452         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12453
12454 2011-04-30  Pádraig Brady <P@draigBrady.com>
12455
12456         manywarnings: add -Wno-missing-field-initializers if needed.
12457         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12458         option if it's needed to allow initialization with { 0, }
12459
12460 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12461
12462         announce-gen: cosmetic improvement
12463         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12464
12465 2011-04-29  Jim Meyering  <meyering@redhat.com>
12466
12467         vc-list-files: indent with spaces, not TABs
12468         * build-aux/vc-list-files: Convert leading TABs to spaces,
12469         to match the style of most other files in gnulib.
12470
12471         announce-gen: indent with spaces, not TABs
12472         * build-aux/announce-gen: Convert all TABs to spaces, to match
12473         the style of most other files in gnulib.
12474
12475 2011-04-29  Eric Blake  <eblake@redhat.com>
12476
12477         quotearg: avoid uninitialized variable use
12478         * lib/quotearg.c (quoting_options_from_style): Initialize
12479         remaining fields, and ensure that custom styles are only used via
12480         quoting_options rather than quoting_style.
12481
12482 2011-04-29  Jim Meyering  <meyering@redhat.com>
12483
12484         maint.mk: remove unused VC-tag variable
12485         * top/maint.mk (VC-tag): Remove unused variable.
12486
12487 2011-04-29  Bruno Haible  <bruno@clisp.org>
12488
12489         netdb: fix gai_strerror replacements
12490         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12491         * modules/netdb: Substitute it.
12492
12493 2011-04-29  Jim Meyering  <meyering@redhat.com>
12494
12495         test-getcwd.c: avoid new set-but-not-used warning
12496         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12497         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12498         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12499         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12500
12501         test-hash.c: avoid a new shadowing warning
12502         * tests/test-hash.c (main): Don't shadow "dup".
12503
12504 2011-04-28  Eric Blake  <eblake@redhat.com>
12505
12506         getaddrinfo: fix gai_strerror signature
12507         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12508         and work around mingw with UNICODE defined.
12509         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12510         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12511         * modules/netdb (Makefile.am): Substitute it.
12512         * lib/netdb.in.h (gai_strerror): Declare replacement.
12513         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12514         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12515         the fix.
12516
12517         getsockopt: avoid compiler warning
12518         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12519         Reported by Matthias Bolte.
12520
12521         tests: drop unused link dependency
12522         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12523         * modules/dirent-safer-tests (Makefile.am): Likewise.
12524         * modules/fdopendir-tests (Makefile.am): Likewise.
12525         * modules/mkfifoat-tests (Makefile.am): Likewise.
12526         * modules/openat-safer-tests (Makefile.am): Likewise.
12527         * modules/openat-tests (Makefile.am): Likewise.
12528         * modules/readlinkat-tests (Makefile.am): Likewise.
12529         * modules/symlinkat-tests (Makefile.am): Likewise.
12530         * modules/linkat-tests (Makefile.am): Likewise.
12531         (Depends-on): Switch to filenamecat-lgpl.
12532         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12533         LIBINTL.
12534         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12535         * tests/test-linkat.c (main): Don't require xalloc.
12536
12537         hash, mgetgroups: drop xalloc dependency
12538         * lib/hash.c (includes): Adjust includes.
12539         * lib/mgetgroups.c (includes): Likewise.
12540         (xgetgroups): Move...
12541         * lib/xgetgroups.c: ...to new file.
12542         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12543         * modules/xgetgroups: New file, split from...
12544         * modules/mgetgroups: ...here.
12545         (Depends-on): Add xalloc-oversized.
12546         * modules/hash (Depends-on): Likewise.
12547         * modules/hash-tests (Depends-on): Drop xalloc.
12548         (test_hash_LDADD): Drop unused library.
12549         * tests/test-hash.c (main): Break xalloc dependency.
12550         (includes): Drop unused include.
12551
12552         xalloc-oversized: new module
12553         * modules/xalloc-oversized: New module.
12554         * modules/xalloc (Depends-on): Add it.
12555         * lib/xalloc.h (xalloc_oversized): Move...
12556         * lib/xalloc-oversized.h: ...into new file.
12557
12558         utimecmp: drop dependency on xmalloc
12559         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12560         due to memory pressure.
12561         * modules/utimecmp (Depends-on): Drop xalloc.
12562
12563 2011-04-27  Eric Blake  <eblake@redhat.com>
12564
12565         getcwd: fix mingw bugs
12566         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12567         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12568         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12569
12570 2011-04-27  Bruno Haible  <bruno@clisp.org>
12571
12572         mkstemps: Ensure declaration on MacOS X 10.5.
12573         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12574         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12575         MacOS X.
12576
12577 2011-04-27  Bruno Haible  <bruno@clisp.org>
12578
12579         mkstemp: More documentation.
12580         * doc/posix-functions/mkstemp.texi: Document header file problem on
12581         MacOS X.
12582
12583 2011-04-27  Bruno Haible  <bruno@clisp.org>
12584
12585         mkstemp: Tweak configure message when cross-compiling.
12586         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12587         result as a guess.
12588
12589 2011-04-27  Bruno Haible  <bruno@clisp.org>
12590
12591         clean-temp: Clarify what it does.
12592         * lib/clean-temp.h: Add more comments.
12593         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12594         module.
12595         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12596         * doc/glibc-functions/mkstemps.texi: Likewise.
12597         * doc/glibc-functions/mkostemps.texi: Likewise.
12598
12599 2011-04-27  Eric Blake  <eblake@redhat.com>
12600
12601         fchdir: avoid extra chdir and fix test
12602         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12603         getcwd-lgpl.
12604         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12605         have to be canonical.
12606         (canonicalize_file_name): Drop unused macro.
12607         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12608
12609         filenamecat-lgpl: fix licence
12610         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12611         when it was first created.
12612
12613         linkat, renameat: add missing dependency
12614         * modules/linkat (Depends-on): Require getcwd-lgpl.
12615         * modules/renameat (Depends-on): Likewise.
12616
12617         tests: reduce dependencies
12618         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12619         * tests/test-renameat.c (main): Likewise.
12620         * modules/linkat-tests (Depends-on): Relax dependency.
12621         * modules/renameat-tests (Depends-on): Likewise.
12622         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12623         dependency explicit.
12624
12625         save-cwd: reduce default dependency
12626         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12627         * lib/save-cwd.c: Update comments.
12628         * NEWS: Document the semantic change.
12629
12630         getcwd: enhance tests
12631         * tests/test-getcwd-lgpl.c: New file, taken from...
12632         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12633         repeat long path stress tests from m4 probe.
12634         * modules/getcwd-lgpl-tests: New module.
12635         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12636         * m4/getcwd-abort-bug.m4: Update comment.
12637         * m4/getcwd-path-max.m4: Likewise.
12638
12639         getcwd-lgpl: new module
12640         * modules/getcwd-lgpl: New module.
12641         * lib/getcwd-lgpl.c: New file.
12642         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12643         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12644         * modules/getcwd (configure.ac): Set C witness.
12645         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12646
12647         getcwd: tweak comments
12648         * m4/getcwd-abort-bug.m4: Fix comments.
12649         * m4/getcwd-path-max.m4: Likewise.
12650         * m4/getcwd.m4: Likewise.
12651
12652 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12653         and Eric Blake  <eblake@redhat.com>
12654
12655         mkstemp: replace if system version uses wrong permissions
12656         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12657         read/write mode bits set in file created by mkstemp.
12658         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12659
12660 2011-04-27  Eric Blake  <eblake@redhat.com>
12661
12662         passfd: avoid compiler warning
12663         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12664         Reported by Laine Stump.
12665
12666 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12667
12668         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12669         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12670
12671 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12672         and Eric Blake  <eblake@redhat.com>
12673
12674         mkstemp: mention clean-temp module
12675         * lib/mkstemp.c: Add comment.
12676         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12677
12678 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12679
12680         inttypes: also provide default values for 32-bit tests
12681         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12682         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12683
12684 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12685
12686         strtoumax: remove dependency on strtoimax
12687         This is like the strtoull change of yesterday.
12688         * modules/strtoumax (Files): Add lib/strtoimax.c.
12689         (Depends-on): Remove strtoimax and add verify.
12690
12691         inttypes-incomplete: new module
12692         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12693         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12694         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12695         of gl_INTTYPES_H.
12696         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12697         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12698         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12699         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12700         * modules/strtoumax, modules/xstrtol (Depends-on):
12701         Depend on inttypes-incomplete, not inttypes.
12702         * modules/inttypes-incomplete: New module, containing the contents
12703         of the old modules/inttypes module, except that the Files: section
12704         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12705         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12706         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12707         (Depends-on): Depend only on inttypes-incomplete.
12708         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12709
12710         inttypes: omit now-redundant strtoimax and strtoumax work
12711         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12712         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12713
12714         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12715         This supports apps that need pointers to strtoimax and strtoumax,
12716         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12717         nonexistent functions.  See
12718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12719         et seq.
12720         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12721         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12722         a macro.
12723         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12724
12725 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12726
12727         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12728
12729 2011-04-25  Bruno Haible  <bruno@clisp.org>
12730
12731         strtol, strtoul: Mark modules as obsolete.
12732         * modules/strtol (Status, Notice): New sections.
12733         * modules/strtoul (Status, Notice): New sections.
12734
12735 2011-04-25  Bruno Haible  <bruno@clisp.org>
12736
12737         strtod: Remove check for strtod, unless supporting old platforms.
12738         * modules/strtod-obsolete: New file.
12739         * m4/strtod-obsolete.m4: New file.
12740         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12741         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12742         * modules/strtod (Depends-on): Add strtod-obsolete.
12743         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12744
12745 2011-04-25  Bruno Haible  <bruno@clisp.org>
12746
12747         strcase: Make module obsolete.
12748         * modules/strcase (Status, Notice): New sections.
12749
12750 2011-04-25  Bruno Haible  <bruno@clisp.org>
12751
12752         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12753         * modules/dup2-obsolete: New file.
12754         * m4/dup2-obsolete.m4: New file.
12755         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12756         gl_FUNC_DUP2_OBSOLETE is not also defined.
12757         * modules/dup2 (Depends-on): Add dup2-obsolete.
12758         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12759
12760 2011-04-25  Bruno Haible  <bruno@clisp.org>
12761
12762         strnlen: Avoid memchr related link error on old obsolete platforms.
12763         * modules/memchr-obsolete: New file.
12764         * m4/memchr-obsolete.m4: New file.
12765         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12766         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12767         * modules/memchr (Depends-on): Add memchr-obsolete.
12768         * modules/strnlen (Depends-on): Likewise.
12769         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12770
12771 2011-04-25  Jim Meyering  <meyering@redhat.com>
12772
12773         maint.mk: makefile_at_at_check extend and clean up
12774         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12775         in addition to */Makefile.am.
12776         Exempt legitimate uses of @VAR@ notation, e.g.,
12777         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12778         Remove obsolete coreutils-specific comment.
12779         Prompted by discussion here:
12780         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12781
12782 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12783
12784         strtoul: remove dependency on strtol
12785         This is so that 'configure' need not check for strtol merely because
12786         the application needs strtoul.
12787         * modules/strtoul (Files): Add lib/strtol.c.
12788         (Depends-on): Remove strtol.
12789
12790         strtoull: remove dependency on strtoul
12791         This is like the strtoll change.
12792         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12793         (Depends-on): Remove strtoul.
12794
12795         strtoll: remove dependency on strtol
12796         This is so that 'configure' need not check for strtol merely because
12797         the application needs strtoll.
12798         * modules/strtoll (Files): Add lib/strtol.c.
12799         (Depends-on): Remove strtol.
12800
12801 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12802
12803         inttypes: Move some configure check to module 'imaxdiv'.
12804         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12805         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12806         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12807
12808 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12809
12810         inttypes: Move some configure check to module 'imaxabs'.
12811         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12812         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12813         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12814
12815 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12816
12817         inttypes: Remove configure tests that are not needed since 2009-12-31.
12818         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12819         gl_cv_header_working_inttypes_h.
12820
12821 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12822
12823         * modules/strnlen (Depends-on): Remove memchr.
12824         The strnlen implementation doesn't need the memchr module's fixes; see
12825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12826
12827         strtol: remove dependency on wchar
12828         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12829         * modules/strtol (Depends-on): Remove wchar.
12830
12831 2011-04-21  Eric Blake  <eblake@redhat.com>
12832
12833         passfd: fix test regression on Linux
12834         * modules/passfd-tests (configure.ac): Correct socketpair check.
12835
12836         passfd: speed up configure and drop unused code
12837         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12838         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12839         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12840         Instead of probing at configure for unix_scm_rights_bsd44_way,
12841         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12842         check to a struct member probe.
12843         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12844         (sendfd, recvfd): Update preprocessor checks.
12845         * modules/passfd (Files): Reflect rename, and drop unused file.
12846         (Depends-on): Drop unused dependency.
12847
12848         passfd: allow compilation on mingw
12849         * modules/sys_socket (Depends-on): Add sys_uio.
12850         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12851         iovec and a minimal struct msghdr.
12852         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12853         * tests/test-sys_socket.c (main): Enhance test.
12854         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12855         guaranteed to provide what we need.
12856         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12857         * modules/passfd-tests (Depends-on): Add sys_wait.
12858         * tests/test-passfd.c (main): Skip test on mingw, for now.
12859         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12860         partial 'struct msghdr' implementation.
12861
12862         sys_uio: new module
12863         * modules/sys_uio: New module.
12864         * modules/sys_uio-tests: Likewise.
12865         * lib/sys_uio.in.h: New file.
12866         * m4/sys_uio_h.m4: Likewise.
12867         * tests/test-sys_uio.c: Likewise.
12868         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12869         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12870
12871 2011-04-20  Jim Meyering  <meyering@redhat.com>
12872
12873         useless-if-before-free: avoid false-positive
12874         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12875         disjunct so that it too requires a terminating ";".  Without that,
12876         this script would identify as useless one statement from gcc that
12877         was not:
12878           if (aligned_ptr)
12879             free (((void **) aligned_ptr) [-1]);
12880
12881 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12882
12883         doc: update users.txt.
12884         * users.txt: Add barcode.
12885
12886 2011-04-19  Bruno Haible  <bruno@clisp.org>
12887
12888         ioctl: Remove link dependency on native Windows.
12889         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12890         (gl_close_fn, gl_ioctl_fn): New types.
12891         (struct fd_hook): Renamed from struct close_hook. Change type of
12892         private_close_fn field. Add private_ioctl_fn field.
12893         (close_hook_fn): Add parameter for primary close method.
12894         (execute_close_hooks, execute_all_close_hooks): Likewise.
12895         (ioctl_hook_fn): New type.
12896         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12897         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12898         argument.
12899         (unregister_fd_hook): Renamed from unregister_close_hook.
12900         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12901         Don't include <unistd.h>.
12902         (close): Remove undef.
12903         (anchor): Update.
12904         (execute_close_hooks): Add argument for primary close method.
12905         (execute_all_close_hooks): Likewise.
12906         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12907         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12908         argument. Allow each argument to be NULL.
12909         (unregister_fd_hook): Renamed from unregister_close_hook.
12910         * lib/close.c (rpl_close): Pass 'close' function pointer to
12911         execute_all_close_hooks.
12912         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12913         (primary_ioctl): New function.
12914         (ioctl): Don't call ioctlsocket here. Instead, call
12915         execute_all_ioctl_hooks.
12916         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12917         close method.
12918         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12919         (fd_sockets_hook): Renamed from close_sockets_hook.
12920         (gl_sockets_startup, gl_sockets_cleanup): Update.
12921         * modules/fd-hook: Renamed from modules/close-hook. Update.
12922         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12923         * modules/sockets (Depends-on): Likewise.
12924         * modules/ioctl (Depends-on): Add fd-hook.
12925         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12926         GNULIB_SOCKET.
12927
12928 2011-04-19  Bruno Haible  <bruno@clisp.org>
12929
12930         Move the support of O_NONBLOCK in open() to the 'open' module.
12931         * modules/nonblocking (Depends-on): Remove 'open'.
12932         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12933         gl_cv_have_open_O_NONBLOCK.
12934         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12935         O_NONBLOCK support.
12936         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12937
12938 2011-04-17  Bruno Haible  <bruno@clisp.org>
12939
12940         pipe2: Simplify code.
12941         * lib/pipe2.c (pipe2): Reduce code duplication.
12942
12943 2011-04-17  Bruno Haible  <bruno@clisp.org>
12944
12945         nonblocking: Add comment.
12946         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12947
12948 2011-04-17  Bruno Haible  <bruno@clisp.org>
12949
12950         nonblocking: Add tests for sockets.
12951         * tests/test-nonblocking-socket.sh: New file.
12952         * tests/test-nonblocking-socket-main.c: New file.
12953         * tests/test-nonblocking-socket-child.c: New file.
12954         * tests/test-nonblocking-socket.h: New file.
12955         * tests/socket-server.h: New file.
12956         * tests/socket-client.h: New file.
12957         * modules/nonblocking-socket-tests: New file.
12958         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12959
12960 2011-04-17  Bruno Haible  <bruno@clisp.org>
12961
12962         nonblocking: Add tests for pipes.
12963         * tests/test-nonblocking-pipe.sh: New file.
12964         * tests/test-nonblocking-pipe-main.c: New file.
12965         * tests/test-nonblocking-pipe-child.c: New file.
12966         * tests/test-nonblocking-pipe.h: New file.
12967         * tests/test-nonblocking-writer.h: New file.
12968         * tests/test-nonblocking-reader.h: New file.
12969         * tests/test-nonblocking-misc.h: New file.
12970         * modules/nonblocking-pipe-tests: New file.
12971         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12972
12973 2011-04-16  Bruno Haible  <bruno@clisp.org>
12974
12975         gettext: Clarify the needed programmer actions.
12976         * modules/gettext (Notice): New field.
12977         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12978
12979 2011-04-16  Bruno Haible  <bruno@clisp.org>
12980
12981         strchrnul: Tweak last commit.
12982         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12983         bug.
12984         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12985         as in _GL_FUNCDECL_SYS.
12986         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12987         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12988
12989 2011-04-15  Eric Blake  <eblake@redhat.com>
12990
12991         strchrnul: work around cygwin bug
12992         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12993         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12994         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12995         * modules/string (Makefile.am): Substitute it.
12996         * lib/string.in.h (strchrnul): Use it.
12997
12998 2011-04-15  Bruno Haible  <bruno@clisp.org>
12999
13000         Don't require lib/stdio-write.c when only module 'stdio' is used.
13001         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13002         invocation.
13003         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13004
13005 2011-04-14  Bruno Haible  <bruno@clisp.org>
13006
13007         Support non-blocking pipe I/O in read() on native Windows.
13008         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13009         (read): New declaration.
13010         * lib/read.c: New file.
13011         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13012         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13013         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13014         vscanf): New declarations.
13015         * lib/stdio-read.c: New file.
13016         * m4/read.m4: New file.
13017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13018         REPLACE_READ.
13019         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13020         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13021         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13022         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13023         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13024         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13025         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13026         * modules/read: New file.
13027         * modules/nonblocking (Files): Add lib/stdio-read.c.
13028         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13029         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13030         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13031         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13032         * modules/pread (Depends-on): Add read.
13033         * modules/safe-read (Depends-on): Likewise.
13034         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13035         gets, scanf, vfscanf, vscanf): Verify signatures.
13036         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13037         problem with non-blocking pipes.
13038         * doc/posix-functions/fgetc.texi: Likewise.
13039         * doc/posix-functions/fgets.texi: Likewise.
13040         * doc/posix-functions/fread.texi: Likewise.
13041         * doc/posix-functions/fscanf.texi: Likewise.
13042         * doc/posix-functions/getc.texi: Likewise.
13043         * doc/posix-functions/getchar.texi: Likewise.
13044         * doc/posix-functions/gets.texi: Likewise.
13045         * doc/posix-functions/scanf.texi: Likewise.
13046         * doc/posix-functions/vfscanf.texi: Likewise.
13047         * doc/posix-functions/vscanf.texi: Likewise.
13048
13049 2011-04-14  Bruno Haible  <bruno@clisp.org>
13050
13051         Support non-blocking pipe I/O in write() on native Windows.
13052         * lib/write.c (rpl_write): Split a write request that failed merely
13053         because the byte count was larger than the pipe buffer's size.
13054         * doc/posix-functions/write.texi: Mention the problem with large byte
13055         counts.
13056
13057 2011-04-14  Bruno Haible  <bruno@clisp.org>
13058
13059         wchar: Ensure that wchar_t gets defined on uClibc.
13060         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13061         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13062
13063 2011-04-13  Bruno Haible  <bruno@clisp.org>
13064
13065         safe-write, full-read: Avoid unnecessary compilation units.
13066         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13067         (Depends-on): Remove safe-read. Add ssize_t.
13068         * modules/full-read (Files): Add lib/full-write.c.
13069         (Depends-on): Add full-write.
13070
13071 2011-04-13  Bruno Haible  <bruno@clisp.org>
13072
13073         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13074         * modules/pwrite (Depends-on): Add 'write'.
13075
13076 2011-04-13  Bruno Haible  <bruno@clisp.org>
13077
13078         Support non-blocking pipe I/O in write() on native Windows.
13079         * lib/unistd.in.h (write): Enable replacement also if
13080         GNULIB_UNISTD_H_NONBLOCKING is 1.
13081         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13082         (rpl_write): When failing to write on a non-blocking pipe, change
13083         errno from ENOSPC to EAGAIN.
13084         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13085         putchar, puts, vfprintf, vprintf): Enable replacement also if
13086         GNULIB_STDIO_H_NONBLOCKING is 1.
13087         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13088         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13089         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13090         CALL_WITH_SIGPIPE_EMULATION.
13091         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13092         * m4/nonblocking.m4: New file.
13093         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13094         for non-blocking I/O support.
13095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13096         GNULIB_UNISTD_H_NONBLOCKING.
13097         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13098         required for non-blocking I/O support.
13099         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13100         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13101         lib/stdio-write.c, m4/asm-underscore.m4.
13102         (Depends-on): Add stdio, unistd.
13103         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13104         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13105         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13106         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13107         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13108         problem with non-blocking pipes.
13109         * doc/posix-functions/fputc.texi: Likewise.
13110         * doc/posix-functions/fputs.texi: Likewise.
13111         * doc/posix-functions/fwrite.texi: Likewise.
13112         * doc/posix-functions/printf.texi: Likewise.
13113         * doc/posix-functions/putc.texi: Likewise.
13114         * doc/posix-functions/putchar.texi: Likewise.
13115         * doc/posix-functions/puts.texi: Likewise.
13116         * doc/posix-functions/vfprintf.texi: Likewise.
13117         * doc/posix-functions/vprintf.texi: Likewise.
13118         * doc/posix-functions/write.texi: Likewise.
13119
13120 2011-04-10  Jim Meyering  <meyering@redhat.com>
13121
13122         maint.mk: prohibit doubled words
13123         Detect them also when they're separated by a newline.
13124         There are 3 ways to customize it:
13125           - disable the test on a per file basis, as usual with rules using
13126             $(VC_LIST_EXCEPT)
13127           - replace the default doubled-word-selecting regexp (affects all files)
13128           - ignore a particular file-vs-doubled-word match
13129         I nearly used that last one to ignore the "is is" match in
13130         coreutils' NEWS file, since the text was "ls -is is ..."
13131         To do that, I would have added this line to cfg.mk:
13132           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13133         but it would have ignored any "is is" match in NEWS.
13134         Low probability, but still...
13135         Instead, I changed the text, slightly:
13136           -  ls -is is now consistent with ls -lis in ignoring values returned
13137           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13138         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13139         (prohibit_doubled_word_): Define.
13140         (sc_prohibit_doubled_word): New rule.
13141         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13142
13143 2011-04-10  Jim Meyering  <meyering@redhat.com>
13144
13145         maint: fix doubled-word typo in comment
13146         * m4/gethostname.m4: s/is is/it is/
13147         * m4/getdomainname.m4: Likewise.
13148
13149 2011-04-10  Jim Meyering  <meyering@redhat.com>
13150
13151         maint: remove doubled word: s/it it/it/
13152         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13153
13154 2011-04-10  Jim Meyering  <meyering@redhat.com>
13155
13156         maint.mk: remove useless semicolon and backslash
13157         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13158         semicolon and backslash.
13159
13160 2011-04-10  Bruno Haible  <bruno@clisp.org>
13161
13162         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13163         * modules/stdint-tests (Depends-on): Add wchar.
13164
13165 2011-04-10  Jim Meyering  <meyering@redhat.com>
13166
13167         maint: remove doubled words in comments, e.g., s/a a/a/
13168         * lib/strptime.c (day_of_the_week): s/the the/the/
13169         * tests/test-chown.h (test_chown): s/a a/a/
13170
13171         test-chown.h: correct a cast
13172         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13173         when the destination is a stat.st_gid.
13174
13175 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13176
13177         getaddrinfo: Fix test for sa_len member.
13178         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13179         include <sys/types.h> before <sys/socket.h>.
13180
13181 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13182
13183         maint: change "can not" to "cannot"
13184         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13185         boundaries.
13186
13187 2011-04-09  Jim Meyering  <meyering@redhat.com>
13188
13189         maint: change "a a" to "a"
13190         * tests/test-lchown.h (test_lchown): s/a a/a/
13191
13192         maint.mk: prohibit \<the the\>
13193         * top/maint.mk (sc_prohibit_the_the): New rule.
13194
13195         maint: fix "the the" in comment
13196         * lib/count-one-bits.h: s/the the/the/
13197
13198         maint: change "can not" to "cannot"
13199         But do not change the occurrences in maintain.texi or in
13200         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13201         * doc/gnulib-tool.texi: s/can not/cannot/
13202         * doc/posix-functions/accept.texi (accept): Likewise.
13203         * doc/posix-functions/socket.texi (socket): Likewise.
13204         * lib/mbrtowc.c: Likewise.
13205
13206         maint.mk: prohibit use of "can not"
13207         * top/maint.mk (sc_prohibit_can_not): New rule.
13208         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13209
13210 2011-04-09  Bruno Haible  <bruno@clisp.org>
13211
13212         careadlinkat: Guard against misuse of careadlinkatcwd.
13213         * lib/careadlinkat.c: Include <stdlib.h>.
13214         (careadlinkatcwd): Check that the fd argument is as expected.
13215
13216 2011-04-09  Bruno Haible  <bruno@clisp.org>
13217
13218         careadlinkat: Use common coding style.
13219         * lib/careadlinkat.c: Move gnulib includes after system includes.
13220
13221 2011-04-09  Bruno Haible  <bruno@clisp.org>
13222
13223         careadlinkat: Clarify specification.
13224         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13225         (careadlinkatcwd): Add comment.
13226         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13227
13228 2011-04-09  Bruno Haible  <bruno@clisp.org>
13229
13230         areadlinkat: Avoid link error on many platforms.
13231         * modules/areadlinkat (Depends-on): Add areadlink.
13232
13233 2011-04-09  Bruno Haible  <bruno@clisp.org>
13234
13235         allocator, careadlinkat: Fix double-inclusion guard.
13236         * lib/allocator.h: Fix double-inclusion guard.
13237         * lib/careadlinkat.h: Likewise.
13238
13239 2011-04-09  Bruno Haible  <bruno@clisp.org>
13240
13241         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13242         * lib/relocwrapper.c: Update dependencies hierarchy.
13243         * build-aux/install-reloc: Update list of files to be compiled.
13244         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13245         lib/allocator.[hc].
13246
13247 2011-04-08  Eric Blake  <eblake@redhat.com>
13248
13249         strftime: silence gnulib-tool warning
13250         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13251
13252 2011-04-08  Bruno Haible  <bruno@clisp.org>
13253
13254         verify: Fix syntax error with GCC 4.6 in C++ mode.
13255         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13256         (HAVE_STATIC_ASSERT): New macro.
13257         (verify_true, verify): Use 'static_assert' if it is supported and
13258         '_Static_assert' is not supported.
13259
13260 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13261
13262         allocator: New module.
13263         * modules/allocator, lib/allocator.c: New files.
13264         * lib/allocator.h (stdlib_allocator): New decl.
13265         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13266         Remove.  Do not include <stdlib.h>.
13267         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13268         * modules/careadlinkat (Files): Remove lib/allocator.h.
13269         (Depends-on): Add allocator.
13270
13271         stdlib: let modules use system malloc, realloc
13272         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13273         if !_GL_USE_STDLIB_ALLOC.
13274         (malloc, realloc): Limit this change to a smaller scope.
13275
13276         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13277         (malloc, realloc): Don't #undef; no longer needed.
13278         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13279         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13280         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13281         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13282         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13283         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13284         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13285         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13286
13287         careadlinkat: rename members to avoid problem
13288         * lib/allocator.h (struct allocator): Rename members from
13289         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13290         and realloc are #define'd.  Reported by Eric Blake in
13291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13292         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13293
13294 2011-04-08  Eric Blake  <eblake@redhat.com>
13295
13296         nonblocking: reduce dependency
13297         * tests/test-nonblocking.c: Only test sockets when in use.
13298         * modules/nonblocking-tests (Depends-on): Drop socket.
13299         (Makefile.am): Link even if sockets are not present.
13300         * modules/pipe2-tests (Makefile.am): Likewise.
13301         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13302
13303         pipe2: fix O_NONBLOCK support on mingw
13304         * modules/pipe2 (Depends-on): Add nonblocking.
13305         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13306         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13307         * tests/test-nonblocking.c (main): Likewise.
13308         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13309
13310         fcntl-h: fix O_ACCMODE on cygwin
13311         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13312         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13313
13314         pipe-filter: drop O_NONBLOCK workarounds
13315         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13316         * modules/pipe-filter-ii (Depends-on): Likewise.
13317         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13318
13319         nonblocking: provide O_NONBLOCK for mingw
13320         * modules/nonblocking (Depends-on): Add open.
13321         (configure.ac): Set new witness macro.
13322         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13323         * modules/fcntl-h (Makefile.am): Substitute it.
13324         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13325         nonblocking module is in use.
13326         * lib/nonblocking.c: Adjust portability test.
13327         * lib/open.c (open): Don't let native open see gnulib flag.
13328         * tests/test-fcntl-h.c (main): Enhance test.
13329         * tests/test-open.h (test_open): Likewise.
13330         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13331
13332         careadlinkat: fix compilation error on mingw
13333         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13334         within struct allocator.
13335
13336 2011-04-06  Eric Blake  <eblake@redhat.com>
13337
13338         binary-io: relicense under LGPLv2+
13339         * modules/binary-io (License): Relax to LGPLv2+.
13340         Requested for libvirt, and required by pipe2.
13341
13342 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13343
13344         verify: use _Static_assert if available
13345         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13346         (verify_true, verify): Use it if available.  This generates better
13347         diagnostics with GCC 4.6.0 and later.
13348
13349 2011-04-05  Bruno Haible  <bruno@clisp.org>
13350
13351         Remove leftover generated .h files after config.status changed.
13352
13353         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13354         GL_GENERATE_ALLOCA_H.
13355         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13356         GL_GENERATE_ALLOCA_H evaluates to false.
13357
13358         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13359         GL_GENERATE_ARGZ_H.
13360         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13361         evaluates to false.
13362
13363         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13364         GL_GENERATE_BYTESWAP_H.
13365         * modules/byteswap (Makefile.am): Remove byteswap.h if
13366         GL_GENERATE_BYTESWAP_H evaluates to false.
13367
13368         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13369         GL_GENERATE_ERRNO_H.
13370         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13371         evaluates to false.
13372
13373         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13374         GL_GENERATE_FLOAT_H.
13375         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13376         evaluates to false.
13377
13378         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13379         GL_GENERATE_FNMATCH_H.
13380         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13381         GL_GENERATE_FNMATCH_H evaluates to false.
13382
13383         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13384         GL_GENERATE_GLOB_H.
13385         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13386         evaluates to false.
13387
13388         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13389         automake conditional GL_GENERATE_ICONV_H.
13390         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13391         evaluates to false.
13392
13393         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13394         GL_GENERATE_NETINET_IN_H.
13395         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13396         GL_GENERATE_NETINET_IN_H evaluates to false.
13397
13398         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13399         conditional GL_GENERATE_PTHREAD_H.
13400         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13401         * modules/pthread (Makefile.am): Remove pthread.h if
13402         GL_GENERATE_PTHREAD_H evaluates to false.
13403
13404         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13405         GL_GENERATE_SCHED_H.
13406         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13407         evaluates to false.
13408
13409         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13410         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13411         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13412         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13413
13414         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13415         GL_GENERATE_STDARG_H.
13416         * modules/stdarg (Makefile.am): Remove stdarg.h if
13417         GL_GENERATE_STDARG_H evaluates to false.
13418
13419         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13420         GL_GENERATE_STDBOOL_H.
13421         * modules/stdbool (Makefile.am): Remove stdbool.h if
13422         GL_GENERATE_STDBOOL_H evaluates to false.
13423
13424         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13425         conditional GL_GENERATE_STDDEF_H.
13426         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13427         * modules/stddef (Makefile.am): Remove stddef.h if
13428         GL_GENERATE_STDDEF_H evaluates to false.
13429
13430         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13431         GL_GENERATE_STDINT_H.
13432         * modules/stdint (Makefile.am): Remove stdint.h if
13433         GL_GENERATE_STDINT_H evaluates to false.
13434
13435         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13436         GL_GENERATE_SYSEXITS_H.
13437         * modules/sysexits (Makefile.am): Remove sysexits.h if
13438         GL_GENERATE_SYSEXITS_H evaluates to false.
13439
13440         Reported by Karl Berry and Ralf Wildenhues.
13441
13442 2011-04-05  Bruno Haible  <bruno@clisp.org>
13443
13444         Ensure to rebuild generated .h files when config.status has changed.
13445         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13446         config.status.
13447         * modules/ctype (Makefile.am): Likewise.
13448         * modules/dirent (Makefile.am): Likewise.
13449         * modules/errno (Makefile.am): Likewise.
13450         * modules/fcntl-h (Makefile.am): Likewise.
13451         * modules/float (Makefile.am): Likewise.
13452         * modules/getopt-posix (Makefile.am): Likewise.
13453         * modules/glob (Makefile.am): Likewise.
13454         * modules/iconv-h (Makefile.am): Likewise.
13455         * modules/inttypes (Makefile.am): Likewise.
13456         * modules/langinfo (Makefile.am): Likewise.
13457         * modules/locale (Makefile.am): Likewise.
13458         * modules/math (Makefile.am): Likewise.
13459         * modules/netdb (Makefile.am): Likewise.
13460         * modules/netinet_in (Makefile.am): Likewise.
13461         * modules/poll-h (Makefile.am): Likewise.
13462         * modules/pthread (Makefile.am): Likewise.
13463         * modules/pty (Makefile.am): Likewise.
13464         * modules/sched (Makefile.am): Likewise.
13465         * modules/search (Makefile.am): Likewise.
13466         * modules/selinux-h (Makefile.am): Likewise.
13467         * modules/signal (Makefile.am): Likewise.
13468         * modules/spawn (Makefile.am): Likewise.
13469         * modules/stdarg (Makefile.am): Likewise.
13470         * modules/stdbool (Makefile.am): Likewise.
13471         * modules/stddef (Makefile.am): Likewise.
13472         * modules/stdint (Makefile.am): Likewise.
13473         * modules/stdio (Makefile.am): Likewise.
13474         * modules/stdlib (Makefile.am): Likewise.
13475         * modules/string (Makefile.am): Likewise.
13476         * modules/strings (Makefile.am): Likewise.
13477         * modules/sys_file (Makefile.am): Likewise.
13478         * modules/sys_ioctl (Makefile.am): Likewise.
13479         * modules/sys_select (Makefile.am): Likewise.
13480         * modules/sys_socket (Makefile.am): Likewise.
13481         * modules/sys_stat (Makefile.am): Likewise.
13482         * modules/sys_time (Makefile.am): Likewise.
13483         * modules/sys_times (Makefile.am): Likewise.
13484         * modules/sys_utsname (Makefile.am): Likewise.
13485         * modules/sys_wait (Makefile.am): Likewise.
13486         * modules/sysexits (Makefile.am): Likewise.
13487         * modules/termios (Makefile.am): Likewise.
13488         * modules/time (Makefile.am): Likewise.
13489         * modules/unistd (Makefile.am): Likewise.
13490         * modules/wchar (Makefile.am): Likewise.
13491         * modules/wctype-h (Makefile.am): Likewise.
13492         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13493
13494 2011-04-05  Bruno Haible  <bruno@clisp.org>
13495
13496         pipe2: Relicense under LGPLv2+.
13497         * modules/pipe2 (License): Change to LGPLv2+.
13498         Requested by Eric Blake, for libvirt.
13499
13500 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13501
13502         bootstrap: compute gnulib_extra_files after updating build_aux
13503         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13504         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13505
13506 2011-04-05  Eric Blake  <eblake@redhat.com>
13507
13508         bootstrap: preserve git whitelist item sorting
13509         * build-aux/bootstrap (sort_patterns): New function.
13510         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13511
13512 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13513
13514         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13515         sc_space_tab check.
13516
13517 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13518
13519         areadlink, areadlinkat: rewrite in terms of careadlinkat
13520         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13521         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13522         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13523         (malloc, realloc): Remove #undefs.
13524         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13525         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13526         readlink, ssize_t, stdint, unistd.
13527         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13528         areadlink, stdint.
13529
13530         careadlinkat: new module
13531         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13532         * modules/careadlinkat: New files, written by me with
13533         a review and feedback from Ben Pfaff in
13534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13535
13536 2011-04-01  Bruno Haible  <bruno@clisp.org>
13537
13538         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13539         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13540         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13541         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13542         Reported by Bruce Korb <bruce.korb@gmail.com>.
13543
13544 2011-04-01  Bruno Haible  <bruno@clisp.org>
13545
13546         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13547         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13548         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13549         * modules/wcpcpy (Depends-on): Add extensions.
13550         * modules/wcpncpy (Depends-on): Likewise.
13551         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13552         systems.
13553         * doc/posix-functions/wcpncpy.texi: Likewise.
13554         * doc/posix-functions/wcwidth.texi: Likewise.
13555
13556 2011-03-31  Eric Blake  <eblake@redhat.com>
13557
13558         nonblocking: fix mingw test failures
13559         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13560         non-blocking flag on regular file.
13561         (get_nonblocking_flag): Set errno on invalid fd.
13562         * tests/test-nonblocking.c (main): Avoid test failure on
13563         directories if fchdir is not active.
13564         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13565
13566 2011-03-31  Bruno Haible  <bruno@clisp.org>
13567
13568         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13569         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13570         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13571         Reported by Simon Josefsson <simon@josefsson.org>.
13572
13573 2011-03-31  Bruno Haible  <bruno@clisp.org>
13574         and Eric Blake  <eblake@redhat.com>
13575
13576         nonblocking: new module
13577         * modules/nonblocking: New module.
13578         * modules/nonblocking-tests: Likewise.
13579         * lib/nonblocking.h: New file.
13580         * lib/nonblocking.c: Likewise.
13581         * tests/test-nonblocking.c: New test.
13582         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13583
13584 2011-03-30  Bruno Haible  <bruno@clisp.org>
13585
13586         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13587         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13588         instead of 'printf' format for GCC >= 4.4.
13589         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13590         (fprintf, printf, vfprintf, vprintf): Declare with
13591         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13592         the system's vfprintf() function.
13593         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13594
13595 2011-03-30  Eric Blake  <eblake@redhat.com>
13596
13597         passfd: fix scoping bug
13598         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13599         before sendmsg/recvmsg.
13600
13601         passfd: standardize coding conventions
13602         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13603         can be learned at compile time.
13604         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13605         ifdefs.
13606         (sendfd, recvfd): Follow gnulib code conventions.
13607
13608         passfd: fix incorrect sendmsg arguments
13609         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13610         incorrect msg_controllen value.
13611         * modules/passfd-tests (Depends-on): Check for alarm.
13612         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13613         Reported by Bastien ROUCARIES.
13614
13615 2011-03-30  Bruno Haible  <bruno@clisp.org>
13616
13617         c-strcasestr: Relicense under LGPLv2+.
13618         * modules/c-strcasestr (License): Change to LGPLv2+.
13619         Requested by Eric Blake, for libvirt.
13620
13621 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13622
13623         * users.txt: Add libidn2.  Fix libtasn1 link.
13624
13625 2011-03-30  Jim Meyering  <meyering@redhat.com>
13626
13627         tests: readlink* ("",... fails with EINVAL on newer kernels
13628         readlink and readlinkat have typically failed with ENOENT for
13629         the invalid, empty file name,  "".  However, with the advent
13630         of linux-2.6.39, they fail with EINVAL.
13631         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13632         when operating on the empty file name.
13633         * tests/test-readlink.h (test_readlink): Likewise.
13634
13635 2011-03-29  Bruno Haible  <bruno@clisp.org>
13636
13637         Relicense some modules under LGPLv2+, for libidn2.
13638         * modules/array-mergesort (License): Change to LGPLv2+.
13639         * modules/c-strcaseeq (License): Likewise.
13640         * modules/striconveh (License): Likewise.
13641         * modules/striconveha (License): Likewise.
13642         * modules/uniconv/base (License): Likewise.
13643         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13644         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13645         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13646         * modules/unictype/base (License): Likewise.
13647         * modules/unictype/bidiclass-of (License): Likewise.
13648         * modules/unictype/category-M (License): Likewise.
13649         * modules/unictype/category-none (License): Likewise.
13650         * modules/unictype/category-of (License): Likewise.
13651         * modules/unictype/category-test (License): Likewise.
13652         * modules/unictype/category-test-withtable (License): Likewise.
13653         * modules/unictype/combining-class (License): Likewise.
13654         * modules/unictype/joiningtype-of (License): Likewise.
13655         * modules/unictype/scripts (License): Likewise.
13656         * modules/uninorm/base (License): Likewise.
13657         * modules/uninorm/canonical-decomposition (License): Likewise.
13658         * modules/uninorm/composition (License): Likewise.
13659         * modules/uninorm/decompose-internal (License): Likewise.
13660         * modules/uninorm/decomposition-table (License): Likewise.
13661         * modules/uninorm/nfc (License): Likewise.
13662         * modules/uninorm/nfd (License): Likewise.
13663         * modules/uninorm/u32-normalize (License): Likewise.
13664         * modules/unistr/base (License): Likewise.
13665         * modules/unistr/u32-cpy (License): Likewise.
13666         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13667         * modules/unistr/u32-to-u8 (License): Likewise.
13668         * modules/unistr/u32-uctomb (License): Likewise.
13669         * modules/unistr/u8-check (License): Likewise.
13670         * modules/unistr/u8-mblen (License): Likewise.
13671         * modules/unistr/u8-mbtouc (License): Likewise.
13672         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13673         * modules/unistr/u8-mbtoucr (License): Likewise.
13674         * modules/unistr/u8-prev (License): Likewise.
13675         * modules/unistr/u8-strlen (License): Likewise.
13676         * modules/unistr/u8-to-u32 (License): Likewise.
13677         * modules/unistr/u8-uctomb (License): Likewise.
13678         * modules/unitypes (License): Likewise.
13679         Requested by Simon Josefsson.
13680
13681 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13682
13683         lib-symbol-visibility: Add a notice.
13684         * modules/lib-symbol-visibility (Notice): New field.
13685
13686 2011-03-29  Bruno Haible  <bruno@clisp.org>
13687
13688         getaddrinfo: Doc fix.
13689         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13690         section "fixed in Gnulib".
13691
13692 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13693
13694         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13695         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13696
13697 2011-03-26  Bruno Haible  <bruno@clisp.org>
13698
13699         unictype/property-byname: Reduce the number of load-time relocations.
13700         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13701         (UC_PROPERTY_INDEX_*): New enumeration values.
13702         (uc_property_byname): Convert an index from the lookup table to an
13703         uc_property_t.
13704         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13705         values.
13706
13707 2011-03-26  Bruno Haible  <bruno@clisp.org>
13708
13709         unictype/property-byname: Allow omitted word separators and aliases.
13710         * lib/unictype/pr_byname.gperf: Add property names without word
13711         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13712         for 'space'.
13713
13714 2011-03-26  Bruno Haible  <bruno@clisp.org>
13715
13716         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13717         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13718         also hyphens to space.
13719         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13720         without spaces.
13721         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13722
13723 2011-03-26  Bruno Haible  <bruno@clisp.org>
13724
13725         unictype/joiningtype-byname: Recognize long names as well.
13726         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13727         a long name.
13728         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13729         unictype/joiningtype_byname.h.
13730         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13731         * lib/unictype/joiningtype_byname.gperf: New file.
13732         * modules/unictype/joiningtype-byname (Files): Add
13733         lib/unictype/joiningtype_byname.gperf.
13734         (Depends-on): Add gperf.
13735         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13736         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13737         long names.
13738
13739         Tests for module 'unictype/joiningtype-longname'.
13740         * modules/unictype/joiningtype-longname-tests: New file.
13741         * tests/unictype/test-joiningtype_longname.c: New file.
13742
13743         New module 'unictype/joiningtype-longname'.
13744         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13745         * lib/unictype/joiningtype_longname.c: New file.
13746         * modules/unictype/joiningtype-longname: New file.
13747         * modules/unictype/joiningtype-all (Depends-on): Add
13748         unictype/joiningtype-longname.
13749
13750 2011-03-26  Bruno Haible  <bruno@clisp.org>
13751
13752         unictype/bidiclass-byname: Recognize long names as well.
13753         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13754         name.
13755         * lib/unictype/bidi_byname.c: Include <string.h>,
13756         unictype/bidi_byname.h.
13757         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13758         * lib/unictype/bidi_byname.gperf: New file.
13759         * modules/unictype/bidiclass-byname (Files): Add
13760         lib/unictype/bidi_byname.gperf.
13761         (Depends-on): Add gperf.
13762         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13763         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13764         long names.
13765
13766         Tests for module 'unictype/bidiclass-longname'.
13767         * modules/unictype/bidiclass-longname-tests: New file.
13768         * tests/unictype/test-bidi_longname.c: New file.
13769
13770         New module 'unictype/bidiclass-longname'.
13771         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13772         * lib/unictype/bidi_longname.c: New file.
13773         * modules/unictype/bidiclass-longname: New file.
13774         * modules/unictype/bidiclass-all (Depends-on): Add
13775         unictype/bidiclass-longname.
13776
13777 2011-03-26  Bruno Haible  <bruno@clisp.org>
13778
13779         unictype/bidi*: Rename modules.
13780         * modules/unictype/bidiclass-all: Renamed from
13781         modules/unictype/bidicategory-all.
13782         * modules/unictype/bidiclass-name: Renamed from
13783         modules/unictype/bidiclass-name.
13784         (Description): Update.
13785         * modules/unictype/bidiclass-name-tests: Renamed from
13786         modules/unictype/bidicategory-name-tests.
13787         * modules/unictype/bidiclass-byname: Renamed from
13788         modules/unictype/bidicategory-byname.
13789         (Description): Update.
13790         * modules/unictype/bidiclass-byname-tests: Renamed from
13791         modules/unictype/bidicategory-byname-tests.
13792         * modules/unictype/bidiclass-of: Renamed from
13793         modules/unictype/bidicategory-of.
13794         (Description): Update.
13795         * modules/unictype/bidiclass-of-tests: Renamed from
13796         modules/unictype/bidicategory-of-tests.
13797         * modules/unictype/bidiclass-test: Renamed from
13798         modules/unictype/bidicategory-test.
13799         (Description): Update.
13800         * modules/unictype/bidiclass-test-tests: Renamed from
13801         modules/unictype/bidicategory-test-tests.
13802         * modules/unictype/bidicategory-all: New file, a simple redirection.
13803         * modules/unictype/bidicategory-name: Likewise.
13804         * modules/unictype/bidicategory-byname: Likewise.
13805         * modules/unictype/bidicategory-of: Likewise.
13806         * modules/unictype/bidicategory-test: Likewise.
13807         * modules/unictype/property-bidi-* (Dependencies): Update.
13808         * lib/unictype/bidi_*.c: Update comment.
13809
13810 2011-03-26  Bruno Haible  <bruno@clisp.org>
13811
13812         unictype/bidi*: Rename functions, part 2.
13813         * modules/unictype/bidicategory-name (configure.ac): Update required
13814         libunistring version.
13815         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13816
13817 2011-03-25  Bruno Haible  <bruno@clisp.org>
13818
13819         New module 'unictype/combining-class-all'.
13820         * modules/unictype/combining-class-all: New file.
13821
13822         Tests for module 'unictype/combining-class-byname'.
13823         * modules/unictype/combining-class-byname-tests: New file.
13824         * tests/unictype/test-combiningclass_byname.c: New file.
13825
13826         New module 'unictype/combining-class-byname'.
13827         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13828         * lib/unictype/combiningclass_byname.c: New file.
13829         * lib/unictype/combiningclass_byname.gperf: New file.
13830         * modules/unictype/combining-class-byname: New file.
13831
13832         Tests for module 'unictype/combining-class-longname'.
13833         * modules/unictype/combining-class-longname-tests: New file.
13834         * tests/unictype/test-combiningclass_longname.c: New file.
13835
13836         New module 'unictype/combining-class-longname'.
13837         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13838         * lib/unictype/combiningclass_longname.c: New file.
13839         * modules/unictype/combining-class-longname: New file.
13840
13841         Tests for module 'unictype/combining-class-name'.
13842         * modules/unictype/combining-class-name-tests: New file.
13843         * tests/unictype/test-combiningclass_name.c: New file.
13844
13845         New module 'unictype/combining-class-name'.
13846         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13847         * lib/unictype/combiningclass_name.c: New file.
13848         * modules/unictype/combining-class-name: New file.
13849
13850 2011-03-25  Bruno Haible  <bruno@clisp.org>
13851
13852         unictype/combining-class: Rename source files.
13853         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13854         of unictype/combining.h.
13855         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13856         Update.
13857         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13858         * modules/unictype/combining-class (Description): Fix.
13859         (Files, Makefile.am): Update.
13860         * tests/unictype/test-combiningclass.c: Renamed from
13861         tests/unictype/test-combining.c.
13862         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13863
13864 2011-03-25  Bruno Haible  <bruno@clisp.org>
13865
13866         unictype: Update list of canonical combining classes.
13867         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13868
13869 2011-03-25  Bruno Haible  <bruno@clisp.org>
13870
13871         unictype/category-byname: Recognize long names as well.
13872         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13873         a long name.
13874         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13875         unictype/categ_byname.h.
13876         (UC_CATEGORY_INDEX_*): New enumeration values.
13877         (uc_general_category_byname): Use uc_general_category_lookup and
13878         convert from index to value.
13879         * lib/unictype/categ_byname.gperf: New file.
13880         * modules/unictype/category-byname (Files): Add
13881         lib/unictype/categ_byname.gperf.
13882         (Depends-on): Add gperf.
13883         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13884         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13885         long names.
13886
13887         Tests for module 'unictype/category-longname'.
13888         * modules/unictype/category-longname-tests: New file.
13889         * tests/unictype/test-categ_longname.c: New file.
13890
13891         New module 'unictype/category-longname'.
13892         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13893         * lib/unictype/categ_longname.c: New file.
13894         * modules/unictype/category-longname: New file.
13895         * modules/unictype/category-all (Depends-on): Add it.
13896
13897 2011-03-25  Bruno Haible  <bruno@clisp.org>
13898
13899         Tests for module 'unictype/category-LC'.
13900         * modules/unictype/category-LC-tests: New file.
13901         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13902
13903         New module 'unictype/category-LC'.
13904         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13905         (UC_CATEGORY_LC): New declaration.
13906         (UC_CASED_LETTER): New macro.
13907         * lib/gen-uni-tables.c (is_category_LC): New function.
13908         (output_categories): Also handle category LC.
13909         (UC_CATEGORY_MASK_LC): New enumeration value.
13910         (general_category_byname): Also handle category LC.
13911         * lib/unictype/categ_LC.c: New file.
13912         * lib/unictype/categ_LC.h: New file, automatically generated.
13913         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13914         category LC.
13915         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13916         * modules/unictype/category-LC: New file.
13917         * modules/unictype/category-byname (Depends-on): Add
13918         unictype/category-LC.
13919         * modules/unictype/category-all (Depends-on): Likewise.
13920
13921 2011-03-25  Eric Blake  <eblake@redhat.com>
13922
13923         xmalloc: revert yesterday's regression
13924         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13925         realloc's underlying behavior (allowing allocation of zero-size
13926         objects, especially if malloc-gnu is also in use).
13927
13928 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13929
13930         maint.mk: add missing version to VC-tag
13931         * top/maint.mk: git tag was missing actual tag name; add it.
13932
13933         valgrind: do leak checking, and exit with code 1 on error (not 0)
13934         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13935         to VALGRIND.
13936
13937 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13938
13939         posix-modules: say what it does.
13940         * posix-modules: Add a line to the --help output saying what it does.
13941
13942 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13943
13944         xmalloc: Do not leak if underlying realloc is C99 compatible.
13945         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13946         This avoids a leak on C99-based systems.  See
13947         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13948
13949 2011-03-24  Eric Blake  <eblake@redhat.com>
13950
13951         realloc: document portability problem
13952         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13953         passing 0 size to realloc.
13954
13955 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13956
13957         doc: update users.txt
13958         * users.txt: Add cvsps, tmpwatch
13959
13960 2011-03-23  Matt Rice  <ratmice@gmail.com>
13961
13962         doc: update users.txt
13963         * users.txt: Add gdb.
13964
13965 2011-03-23  Jim Meyering  <meyering@redhat.com>
13966
13967         doc: update users.txt
13968         Looking through matches up to the following URL (there are still
13969         several more pages), I found several projects that use gnulib:
13970         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13971         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13972         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13973
13974 2011-03-22  Bruno Haible  <bruno@clisp.org>
13975
13976         unictype/bidi*: Rename functions.
13977         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13978         uc_bidi_class, uc_is_bidi_class): New declarations.
13979         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13980         uc_bidi_category_byname.
13981         (uc_bidi_category_byname): New function.
13982         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13983         u_bidi_category_name.
13984         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13985         (uc_bidi_category_name): New function.
13986         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13987         uc_bidi_category.
13988         (uc_bidi_category): New function.
13989         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13990         uc_is_bidi_category. Invoke uc_bidi_class.
13991         (uc_is_bidi_category): New function.
13992         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13993         instead of uc_bidi_category_byname.
13994         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13995         instead of uc_bidi_category_name.
13996         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13997         uc_bidi_category.
13998         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13999         instead of uc_is_bidi_category.
14000
14001 2011-03-21  Bruno Haible  <bruno@clisp.org>
14002
14003         New module 'unictype/joininggroup-all'.
14004         * modules/unictype/joininggroup-all: New file.
14005
14006         Tests for module 'unictype/joininggroup-of'.
14007         * modules/unictype/joininggroup-of-tests: New file.
14008         * tests/unictype/test-joininggroup_of.c: New file.
14009         * tests/unictype/test-joininggroup_of.h: New file, automatically
14010         generated by gen-uni-tables.
14011
14012         New module 'unictype/joininggroup-of'.
14013         * modules/unictype/joininggroup-of: New file.
14014         * lib/unictype/joininggroup_of.c: New file.
14015         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14016         gen-uni-tables.
14017
14018         Tests for module 'unictype/joininggroup-byname'.
14019         * modules/unictype/joininggroup-byname-tests: New file.
14020         * tests/unictype/test-joininggroup_byname.c: New file.
14021
14022         New module 'unictype/joininggroup-byname'.
14023         * modules/unictype/joininggroup-byname: New file.
14024         * lib/unictype/joininggroup_byname.c: New file.
14025         * lib/unictype/joininggroup_byname.gperf: New file.
14026
14027         Tests for module 'unictype/joininggroup-name'.
14028         * modules/unictype/joininggroup-name-tests: New file.
14029         * tests/unictype/test-joininggroup_name.c: New file.
14030
14031         New module 'unictype/joininggroup-name'.
14032         * modules/unictype/joininggroup-name: New file.
14033         * lib/unictype/joininggroup_name.c: New file.
14034         * lib/unictype/joininggroup_name.h: New file.
14035
14036         New module 'unictype/joiningtype-all'.
14037         * modules/unictype/joiningtype-all: New file.
14038
14039         Tests for module 'unictype/joiningtype-of'.
14040         * modules/unictype/joiningtype-of-tests: New file.
14041         * tests/unictype/test-joiningtype_of.c: New file.
14042         * tests/unictype/test-joiningtype_of.h: New file, automatically
14043         generated by gen-uni-tables.
14044
14045         New module 'unictype/joiningtype-of'.
14046         * modules/unictype/joiningtype-of: New file.
14047         * lib/unictype/joiningtype_of.c: New file.
14048         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14049         gen-uni-tables.
14050
14051         Tests for module 'unictype/joiningtype-byname'.
14052         * modules/unictype/joiningtype-byname-tests: New file.
14053         * tests/unictype/test-joiningtype_byname.c: New file.
14054
14055         New module 'unictype/joiningtype-byname'.
14056         * modules/unictype/joiningtype-byname: New file.
14057         * lib/unictype/joiningtype_byname.c: New file.
14058
14059         Tests for module 'unictype/joiningtype-name'.
14060         * modules/unictype/joiningtype-name-tests: New file.
14061         * tests/unictype/test-joiningtype_name.c: New file.
14062
14063         New module 'unictype/joiningtype-name'.
14064         * modules/unictype/joiningtype-name: New file.
14065         * lib/unictype/joiningtype_name.c: New file.
14066
14067         unictype: Add support for Arabic shaping properties.
14068         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14069         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14070         declarations.
14071         (UC_JOINING_GROUP_*): New enumeration values.
14072         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14073         declarations.
14074         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14075         (unicode_joining_type): New variable.
14076         (UC_JOINING_GROUP_*): New enumeration values.
14077         (unicode_joining_group): New variable.
14078         (fill_arabicshaping, joining_type_as_c_identifier,
14079         output_joining_type_test, output_joining_type,
14080         joining_group_as_c_identifier, output_joining_group_test,
14081         output_joining_group): New functions.
14082         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14083         fill_arabicshaping and output_joining_type_test, output_joining_type,
14084         output_joining_group_test, output_joining_group.
14085         Reported by Simon Josefsson.
14086
14087 2011-03-21  Jim Meyering  <meyering@redhat.com>
14088
14089         strftime: fix a bug in yesterday's change
14090         * lib/strftime.c (add): Accommodate width's initial value of -1.
14091         Otherwise, nstrftime would copy uninitialized data into
14092         the result buffer.
14093
14094 2011-03-21  Jim Meyering  <meyering@redhat.com>
14095
14096         tests: add strftime-tests module
14097         * tests/test-strftime.c: New file.
14098         * modules/strftime-tests: New module.
14099
14100 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14101
14102         strftime: don't assume a byte count fits in 'int'
14103         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14104         found this problem by static analysis, using gcc -Wstrict-overflow
14105         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14106         on an integer overflow having undefined behavior, but it turns out
14107         that the argument is a size, which might not fit in 'int' anyway,
14108
14109 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14110
14111         stdio: don't require ignore_value around fwrite
14112
14113         This patch works around libc bug 11959
14114         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14115         Without this patch, applications must often write
14116         ignore_value (fwrite (...)) even though the ignore_value is
14117         not helpful here.  It's common to write many objects, using
14118         fwrite/printf/etc., and then use ferror to detect output error.
14119
14120         I considered making this patch optional, but decided against it,
14121         because libc is obviously being inconsistent here: there is no
14122         reason libc should insist that user code must inspect fwrite
14123         return's value without also insisting that it inspect printf's,
14124         putchar's, etc.  If user code wants to have a strict style where
14125         all these functions' values are checked (so that ferror need not
14126         be checked), we could add support for that style in a new gnulib
14127         module, but in the meantime it's better to be consistent and to
14128         support common usage.
14129
14130         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14131         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14132         that we are compiling in checking mode, and if not C++, and
14133         if not already wrapping fwrite for some other reason.
14134         (fwrite): #define to rpl_fwrite if the latter is defined.
14135
14136 2011-03-20  Bruno Haible  <bruno@clisp.org>
14137
14138         verror: Fix compilation error introduced on 2011-02-13.
14139         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14140         instead of __attribute__.
14141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14142
14143 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14144             Bruno Haible  <bruno@clisp.org>
14145
14146         socklen: do not depend on sys_socket
14147         While trying to modify Emacs to use gnulib's socklen module,
14148         I discovered a circular dependency: socklen depends on sys_socket
14149         and vice versa.  Emacs can use socklen, but it does not need
14150         sys_socket because it has its own substitute for sys/socket.h.
14151         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14152         gl_TYPE_SOCKLEN_T.
14153         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14154         gl_PREREQ_SYS_H_SOCKET.
14155         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14156         gl_PREREQ_SYS_H_SOCKET.
14157         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14158         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14159         * modules/socklen (Depends-on): Do not depend on sys_socket.
14160         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14161
14162 2011-03-20  Jim Meyering  <meyering@redhat.com>
14163
14164         maint.mk: sort file names *after* new transformation
14165         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14166         prefix would have led to an unwarranted failure in GNU parted.
14167         Sort after that transformation.
14168
14169 2011-03-19  Jim Meyering  <meyering@redhat.com>
14170
14171         maint.mk: fix po-file syntax-check rule
14172         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14173         Patch by Bruno Haible.
14174
14175 2011-03-19  Bruno Haible  <bruno@clisp.org>
14176
14177         socklen: Update comment.
14178         * m4/socklen.m4: Update comment about platforms.
14179
14180 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14181             Bruno Haible  <bruno@clisp.org>
14182
14183         inet_ntop, inet_pton: Simplify.
14184         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14185         documented to provide socklen_t and we already depend on sys_socket.
14186         * modules/inet_pton (Depends-on): Likewise.
14187         * lib/arpa_inet.in.h: Adjust comment.
14188
14189 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14190             Bruno Haible  <bruno@clisp.org>
14191
14192         netdb: Simplify.
14193         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14194         documented to provide socklen_t and we already depend on sys_socket.
14195         * lib/netdb.in.h: Adjust comment.
14196
14197 2011-03-19  Bruno Haible  <bruno@clisp.org>
14198
14199         sys_socket, netdb: Document problem with socklen_t.
14200         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14201         platforms.
14202         * doc/posix-headers/netdb.texi: Likewise.
14203
14204 2011-03-18  Eric Blake  <eblake@redhat.com>
14205
14206         maint.mk: let po check work in VPATH build
14207         * top/maint.mk (po_file): Allow cfg.mk override.
14208         (sc_po_check): Allow VPATH use.
14209         Reported by Jiri Denemark.
14210
14211 2011-03-16  Jim Meyering  <meyering@redhat.com>
14212
14213         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14214         Before, you would have had to create one .x-sc_ file per rule in order
14215         to exempt offending files.  Now, you may instead use a Make variable --
14216         usually defined in cfg.mk -- whose name identifies the affected rule.
14217         * top/maint.mk (_sc_excl): Define.
14218         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14219         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14220
14221 2011-03-13  Bruno Haible  <bruno@clisp.org>
14222
14223         ignore-value tests: Avoid warnings.
14224         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14225         empty for gcc < 3.4.
14226
14227 2011-03-13  Bruno Haible  <bruno@clisp.org>
14228
14229         passfd: Fix link error on Solaris.
14230         * modules/passfd (Description): Correct.
14231         (Depends-on): Add socketlib.
14232         (Link): New section.
14233         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14234
14235 2011-03-13  Bruno Haible  <bruno@clisp.org>
14236
14237         passfd: Fix link error on AIX 5.2.
14238         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14239
14240 2011-03-13  Bruno Haible  <bruno@clisp.org>
14241
14242         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14243         * lib/sys_socket.in.h: Include <stddef.h>.
14244         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14245         CMSG_FIRSTHDR. Remove unused variable.
14246
14247 2011-03-13  Bruno Haible  <bruno@clisp.org>
14248
14249         passfd: Fix compilation error on OpenBSD.
14250         * lib/passfd.c: Include <sys/uio.h>.
14251
14252 2011-03-13  Bruno Haible  <bruno@clisp.org>
14253
14254         passfd test: Fix warnings.
14255         * tests/test-passfd.c: Include <sys/wait.h>.
14256         (main): Fix typo.
14257
14258 2011-03-13  Bruno Haible  <bruno@clisp.org>
14259
14260         passfd module, part 4, tweaks.
14261         * tests/test-passfd.c: Reorder includes.
14262         (main): Fix perror and printf calls.
14263
14264 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14265
14266         passfd module, part 4.
14267         * modules/passfd-tests: New file.
14268         * tests/test-passfd.c: New file.
14269
14270 2011-03-13  Jim Meyering  <meyering@redhat.com>
14271
14272         Makefile: rely on GNU make; derive syntax-check rule names
14273         Rather than requiring that each sc_ rule be listed as a dependent
14274         of "check", use features of GNU make to derive the list.
14275         * Makefile (syntax-check-rules): Define.
14276         (check): Depend on the new variable, not the hard-coded list.
14277
14278 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14279             Bruno Haible  <bruno@clisp.org>
14280
14281         passfd module, part 3.
14282         * lib/passfd.h (recvfd): Add a flags argument.
14283         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14284         (recvfd): Add a flags argument.
14285         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14286         exists.
14287         * modules/passfd (Depends-on): Add cloexec.
14288         Suggested by Eric Blake.
14289
14290 2011-03-13  Bruno Haible  <bruno@clisp.org>
14291
14292         passfd module, part 2, tweaks.
14293         * modules/passfd (Files): Reorder.
14294         (Depends-on): Remove errno.
14295         (Include): Remove <sys/socket.h>, <sys/un.h>.
14296         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14297         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14298         specification header. Include <sys/socket.h> always. Don't include
14299         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14300         (sendfd): Clarify that it sets errno when it fails.
14301         (recvfd): Fix specification.
14302
14303 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14304
14305         passfd module, part 2.
14306         * modules/passfd: New file.
14307         * lib/passfd.h: New file.
14308         * lib/passfd.c: New file.
14309
14310 2011-03-12  Bruno Haible  <bruno@clisp.org>
14311
14312         wcswidth, mbswidth: Avoid integer overflow.
14313         * lib/wcswidth.c: Include <limits.h>.
14314         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14315         * lib/mbswidth.c: Include <limits.h>.
14316         (mbsnwidth): Avoid 'int' overflow.
14317         Reported by Jim Meyering.
14318
14319 2011-03-12  Bruno Haible  <bruno@clisp.org>
14320
14321         futimens, utimensat: Avoid endless recursion on Solaris 10.
14322         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14323         Solaris.
14324         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14325         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14326
14327 2011-03-11  Jim Meyering  <meyering@redhat.com>
14328
14329         maint.mk: relax a regexp to accommodate other formatting styles
14330         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14331         between "ngettext" and the following "(".
14332
14333 2011-03-11  Pádraig Brady <P@draigBrady.com>
14334
14335         maint.mk: suppress a false positive warning
14336         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14337         diagnostics are marked with ngettext.
14338
14339 2011-03-10  Eric Blake  <eblake@redhat.com>
14340
14341         wchar: add explicit dependencies, for Tru64
14342         * modules/mbmemcasecoll (Depends-on): Add wchar.
14343         * modules/mbtowc (Depends-on): Likewise.
14344         * modules/vasnprintf (Depends-on): Likewise.
14345         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14346         * modules/wctomb (Depends-on): Likewise.
14347         Reported by Peter O'Gorman.
14348
14349 2011-03-08  Bruno Haible  <bruno@clisp.org>
14350
14351         passfd module, part 1, tweaks.
14352         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14353         Improve indentation. Improve AC_MSG_CHECKING messages.
14354         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14355         gl_SOCKET_FAMILIES.
14356
14357 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14358
14359         passfd module, part 1.
14360         * m4/afunix.m4: New file.
14361         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14362         sockets.
14363
14364 2011-03-08  Bruno Haible  <bruno@clisp.org>
14365
14366         regex-quote: New API.
14367         * lib/regex-quote.h: Include <stdbool.h>.
14368         (struct regex_quote_spec): New type.
14369         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14370         New declarations.
14371         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14372         'const struct regex_quote_spec *' argument.
14373         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14374         (pcre_special): New constant.
14375         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14376         New functions.
14377         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14378         'const struct regex_quote_spec *' argument.
14379         * modules/regex-quote (Depends-on): Add stdbool.
14380         * tests/test-regex-quote.c (check): Update for new API. Add test for
14381         anchored results.
14382         * NEWS: Mention the API change.
14383         Reported by Reuben Thomas and Eric Blake.
14384
14385 2011-03-06  Bruno Haible  <bruno@clisp.org>
14386
14387         regex-quote: Fix creation of POSIX extended regular expressions.
14388         * lib/regex-quote.c (ere_special): Add grouping and alternation
14389         operators.
14390
14391 2011-03-05  Bruno Haible  <bruno@clisp.org>
14392
14393         doc: Improve doc regarding autopoint vs. gnulib.
14394         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14395         disable autopoint while running autoreconf.
14396         Suggested by Ralf Wildenhues.
14397
14398 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14399
14400         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14401         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14402
14403 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14404
14405         parse-duration: remove xalloc.h dependency
14406         * lib/parse-duration.c (parse_period): handle NULL return from
14407         strdup instead of calling xstrdup().
14408         * modules/parse-duration: remove "xalloc" dependency
14409
14410 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14411
14412         bootstrap: honor m4_base when running aclocal
14413         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14414
14415 2011-03-02  Jim Meyering  <meyering@redhat.com>
14416
14417         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14418         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14419         on request from Matt Booth.
14420
14421 2011-03-01  Eric Blake  <eblake@redhat.com>
14422
14423         test-link: work on Hurd
14424         * tests/test-link.h (test_link): Hurd rejects linking directories
14425         with EISDIR instead of the POSIX-mandated EPERM.
14426
14427 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14428
14429         stdio: simplify by moving files to printf-posix, sigpipe
14430         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14431         since this symbol is needed only if printf is replaced.
14432         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14433         Require gl_ASM_SYMBOL_PREFIX.
14434         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14435         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14436         (Depends-on): Add 'raise'.
14437         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14438         * modules/stdio (Files): Remove lib/stdio-write.c,
14439         m4/asm-underscore.m4.
14440         (Depends-on): Remove 'raise'.
14441
14442         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14443         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14444         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14445         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14446
14447 2011-02-28  Bruno Haible  <bruno@clisp.org>
14448
14449         localcharset: Assume ANSI C behaviour of free().
14450         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14451         calling free().
14452         Suggested by Simon Josefsson <simon@josefsson.org>.
14453
14454 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14455             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14456             Bruno Haible  <bruno@clisp.org>  (tiny change)
14457
14458         On Cygwin, use /proc file system instead of win32 API.
14459         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14460         Win32 file names.
14461         (DllMain): Simplify by removing Cygwin specific code.
14462         (find_shared_library_fullname): Use Linux specific implementation also
14463         for Cygwin.
14464         (get_shared_library_fullname): Update accordingly.
14465         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14466         Win32 file names.
14467         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14468         Cygwin specific code.
14469
14470 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14471             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14472
14473         Fix OpenMP flag detection for various Fortran compilers.
14474         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14475         OpenMP-conditional compilation construct, to force compile
14476         failure with missing OpenMP flag.
14477         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14478
14479 2011-02-25  Eric Blake  <eblake@redhat.com>
14480
14481         strstr: expand test coverage
14482         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14483         compilation.
14484         * tests/test-memmem.c (main): Duplicate tests.
14485         * tests/test-strcasestr.c (main): Likewise.
14486         * tests/test-c-strcasestr.c (main): Likewise.
14487
14488 2011-02-25  Jim Meyering  <meyering@redhat.com>
14489
14490         maint.mk: detect missing-NL-at-EOF, too
14491         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14492         it also detects when a file lacks a newline at EOF.
14493         (require_exactly_one_NL_at_EOF_): Renamed from
14494         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14495         since people may well have .x-sc_... file names tied to the
14496         existing name.  Suggested by Eric Blake.
14497
14498 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14499
14500         dirname: move m4/dos.m4 functionality into lib/dosname.h
14501
14502         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14503         extracts symbols from it, puts them into config.h; but it's much
14504         easier to use the symbols directly.  filename.h already does this,
14505         but it disagrees with dos.m4 in some respects.  This patch
14506         introduces a different include file dosname.h that packages up
14507         dos.m4, and then later we can work on merging filename.h and
14508         dosname.h.  Applications that need only the easy-to-configure
14509         symbols should consider including dosname.h rather than dirname.h.
14510         * NEWS: Mention incompatible changes.
14511         * m4/dos.m4: Remove.
14512         * lib/dosname.h, modules/dosname: New files.
14513         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14514         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14515         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14516         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14517         Include dosname.h, not dirname.h.
14518         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14519         Include dosname.h, for definitions of symbols like ISSLASH
14520         that used to be in config.h.
14521         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14522         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14523         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14524         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14525         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14526         * modules/rmdir (Files): Likewise.
14527         * modules/stat (Files): Likewise.
14528         * modules/unlink (Files): Likewise.
14529         * modules/dirname-lgpl (Depends-on): Add dosname.
14530         * modules/lstat (Depends-on): Likewise.
14531         * modules/openat (Depends-on): Likewise.
14532         * modules/rmdir (Depends-on): Likewise.
14533         * modules/savewd (Depends-on): Likewise.
14534         * modules/stat (Depends-on): Likewise.
14535         * modules/unlink (Depends-on): Likewise.
14536         * modules/openat (Depends-on): Remove dirname-lgpl.
14537         * modules/savewd (Depends-on): Likewise.
14538         * tests/test-dirname.c: Do not use removed symbols like
14539         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14540         the remaining symbols, e.g., ISSLASH ('\\').
14541
14542 2011-02-25  Eric Blake  <eblake@redhat.com>
14543
14544         strstr: revert patches that introduced bug and pessimization
14545         * lib/str-two-way.h: Add another reference.
14546         (two_way_short_needle, two_way_long_needle): Revert changes from
14547         2011-02-24; they pessimize search speed.
14548         (critical_factorization): Partially revert changes from
14549         2010-06-22; they violate the requirement that the left half of the
14550         needle be smaller than the period of the needle.
14551
14552 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14553
14554         filenamecat: remove unnecessary dependency on dirname-lgpl
14555         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14556         is no direct dependency, just an indirect one via filenamecat-lgpl.
14557
14558         remove: remove unnecessary use of m4/dos.m4
14559         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14560         * modules/remove (FILES): Remove m4/dos.m4.
14561
14562         * lib/openat-proc.c: Don't include dirname.h; not needed.
14563
14564         backupfile: remove unnecessary use of m4/dos.m4
14565         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14566         of its symbols are used by the backupfile code.  backupfile.c does
14567         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14568         for the rare case of programs that want all their backup file
14569         names to live within 8+3 limits, and dos.m4 doesn't address that.
14570         * modules/backupfile (Files): Remove m4/dos.m4.
14571
14572 2011-02-24  Jim Meyering  <meyering@redhat.com>
14573
14574         strstr: fix a bug whereby strstr would mistakenly return NULL
14575         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14576         in period calculation.
14577         (two_way_long_needle): Likewise.
14578         The original problem was reported by Mike Stump in
14579         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14580         Ralf Wildenhues provided the short needle and haystack.
14581         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14582         Add a more involved test to trigger the bug in two_way_long_needle.
14583
14584 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14585
14586         gnulib-tool: remove use of bold display in help screen
14587         * gnulib-tool (func_usage): Do not use bold display anymore in the
14588         help screen.  That was just meant to be a temporary emphasis for a
14589         backward-incompatible change.
14590
14591 2011-02-23  Bruno Haible  <bruno@clisp.org>
14592
14593         Fix misindentation of preprocessor directives.
14594         * lib/argp-namefrob.h: Reindent preprocessor directives.
14595         * lib/getopt_int.h (struct _getopt_data): Likewise.
14596         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14597         * lib/vasnprintf.c (decode_long_double): Likewise.
14598         * tests/test-argmatch.c: Insert blank lines, for clarity.
14599         * tests/test-exclude.c: Likewise.
14600
14601 2011-02-22  Bruno Haible  <bruno@clisp.org>
14602
14603         ioctl: Fix for MacOS X in 64-bit mode.
14604         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14605         value.
14606         Suggested by Eric Blake.
14607         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14608
14609 2011-02-22  Jim Meyering  <meyering@redhat.com>
14610
14611         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14612         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14613         in lib/.
14614
14615 2011-02-22  Eric Blake  <eblake@redhat.com>
14616
14617         maint: avoid any CDPATH issue
14618         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14619
14620         maint: adjust cpp indentation for my modules, as well
14621         * Makefile (sc_cpp_indent_check): Add my name.
14622         * lib/fbufmode.c: Filter through cppi.
14623         * lib/fpurge.c: Likewise.
14624         * lib/freadable.c: Likewise.
14625         * lib/freading.c: Likewise.
14626         * lib/fwritable.c: Likewise.
14627         * lib/fwriting.c: Likewise.
14628         * lib/sigaction.c: Likewise.
14629
14630 2011-02-22  Jim Meyering  <meyering@redhat.com>
14631
14632         maint: adjust cpp indentation to reflect nesting depth
14633         I.e., in a block of code that begins with an unnested "#if",
14634         put one space between the "#" in column 1 and following token.
14635         For example,
14636         -#include <sys/vfs.h>
14637         +# include <sys/vfs.h>
14638         Do this only in .c files that are part of a module I maintain.
14639         * lib/linkat.c: Filter through cppi.
14640         * lib/nanosleep.c: Likewise.
14641         * lib/openat.c: Likewise.
14642         * lib/openat-die.c: Likewise.
14643         * lib/dup3.c: Likewise.
14644         * lib/fchownat.c: Likewise.
14645         * lib/flock.c: Likewise.
14646         * lib/fsync.c: Likewise.
14647         * lib/fts.c: Likewise.
14648         * lib/getpass.c: Likewise.
14649         * lib/gettimeofday.c: Likewise.
14650         * lib/userspec.c: Likewise.
14651         * Makefile (sc_cpp_indent_check): New rule, to check this.
14652
14653 2011-02-22  Bruno Haible  <bruno@clisp.org>
14654
14655         New module 'wctomb'.
14656         * lib/stdlib.in.h (wctomb): New declaration.
14657         * lib/wctomb.c: New file.
14658         * lib/wctomb-impl.h: New file.
14659         * m4/wctomb.m4: New file.
14660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14661         REPLACE_WCTOMB.
14662         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14663         REPLACE_WCTOMB.
14664         * modules/wctomb: New file.
14665         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14666         * doc/posix-functions/wctomb.texi: Mention the new module.
14667         * modules/wctob (Depends-on): Add wctomb.
14668
14669 2011-02-22  Bruno Haible  <bruno@clisp.org>
14670
14671         New module 'mbtowc'.
14672         * lib/stdlib.in.h (mbtowc): New declaration.
14673         * lib/mbtowc.c: New file.
14674         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14675         * m4/mbtowc.m4: New file.
14676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14677         REPLACE_MBTOWC.
14678         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14679         REPLACE_MBTOWC.
14680         * modules/mbtowc: New file.
14681         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14682         * doc/posix-functions/mbtowc.texi: Mention the new module.
14683         * modules/btowc (Depends-on): Add mbtowc.
14684
14685 2011-02-22  Bruno Haible  <bruno@clisp.org>
14686
14687         wcrtomb: Add more tests for native Windows platforms.
14688         * tests/test-wcrtomb-w32-1.sh: New file.
14689         * tests/test-wcrtomb-w32-2.sh: New file.
14690         * tests/test-wcrtomb-w32-3.sh: New file.
14691         * tests/test-wcrtomb-w32-4.sh: New file.
14692         * tests/test-wcrtomb-w32-5.sh: New file.
14693         * tests/test-wcrtomb-w32.c: New file.
14694         * modules/wcrtomb-tests (Files): Add them.
14695         (Makefile.am): Arrange to run these tests.
14696         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14697         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14698
14699 2011-02-20  Bruno Haible  <bruno@clisp.org>
14700
14701         wcrtomb: Enhance test.
14702         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14703
14704 2011-02-20  Bruno Haible  <bruno@clisp.org>
14705
14706         mbrtowc: Tiny optimization.
14707         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14708
14709 2011-02-20  Jim Meyering  <meyering@redhat.com>
14710
14711         test-exclude.c: remove unmatched #endif
14712         * tests/test-exclude.c: Remove stray #endif, left over from
14713         the change of a week ago.
14714
14715 2011-02-19  Jim Meyering  <meyering@redhat.com>
14716
14717         git-version-gen: skip "-dirty" check when appropriate
14718         * build-aux/git-version-gen: Don't run any git commands when the
14719         version string comes from .tarball-version.  Prior to this, we
14720         would run git update-index --refresh even from a just-unpacked
14721         tarball directory, and that could affect a .git/ directory in a
14722         parent of the build directory.  Reported by Mike Frysinger.
14723
14724 2011-02-19  Bruno Haible  <bruno@clisp.org>
14725
14726         unictype/property-byname: Reduce the size of the 'data' segment.
14727         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14728
14729 2011-02-19  Bruno Haible  <bruno@clisp.org>
14730
14731         unictype/scripts: Reduce the size of the 'data' segment.
14732         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14733         '%pic'.
14734         * lib/unictype/scripts_byname.gperf: Regenerated.
14735
14736 2011-02-19  Bruno Haible  <bruno@clisp.org>
14737
14738         stdint: Update documentation.
14739         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14740
14741 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14742
14743         stdint: omit redundant check for wchar.h
14744         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14745         always tests whether wchar.h exists, so remove the now-redundant test.
14746
14747 2011-02-18  Bruno Haible  <bruno@clisp.org>
14748
14749         stdint: Cut dependency to module 'wchar'.
14750         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14751         include the necessary prerequisites.
14752         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14753         * modules/stdint (Depends-on): Remove wchar.
14754         (Makefile.am): Substitute HAVE_WCHAR_H.
14755         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14756
14757 2011-02-18  Eric Blake  <eblake@redhat.com>
14758
14759         longlong: skip, rather than fail, on cross-compilation
14760         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14761         when cross-compiling; regression from 2011-02-16.
14762
14763 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14764
14765         * NEWS: Mention 2011-02-08 change to stdlib.
14766
14767 2011-02-17  Bruno Haible  <bruno@clisp.org>
14768
14769         getloadavg: Add comments about platforms.
14770         * m4/getloadavg.m4: Add comment.
14771         * lib/getloadavg.c: Likewise.
14772
14773 2011-02-17  Bruno Haible  <bruno@clisp.org>
14774
14775         getloadavg: Fix link error on Solaris 2.6.
14776         * modules/getloadavg (Link): New section.
14777         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14778         linking test-getloadavg.
14779         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14780         getloadavg.
14781
14782 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14783
14784         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14785         It was 'int', but this doesn't match the IRIX 6.5 manual.
14786         Suggested by Bruno Haible in
14787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14788
14789 2011-02-17  Bruno Haible  <bruno@clisp.org>
14790
14791         havelib: Fix comments.
14792         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14793         change.
14794
14795 2011-02-17  Bruno Haible  <bruno@clisp.org>
14796
14797         havelib: Update config.rpath.
14798         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14799
14800 2011-02-17  Bruno Haible  <bruno@clisp.org>
14801
14802         getloadavg test: Add some plausibility checks.
14803         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14804         is improbable.
14805
14806 2011-02-16  Eric Blake  <eblake@redhat.com>
14807
14808         maintainer-makefile: make syntax-check a no-op from tarballs
14809         * top/maint.mk (no-vc-detected): New rule.
14810         (local-checks-available): Use it to avoid hanging if someone tries
14811         'make syntax-check' from a tarball.  Also append to any non-syntax
14812         checks already defined in cfg.mk.
14813
14814 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14815
14816         longlong: tune, particularly for common case of c99
14817
14818         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14819         or running anything if c99, or if unsigned long long int does not
14820         work.  In either case, we know the answer without further tests.
14821         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14822         it at most once, and use its results for both long long int and
14823         unsigned long long int.  This is more likely to be efficient in
14824         the common case where the program wants to check for both long
14825         long int and unsigned long long int.
14826         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14827         since the answer is already known.
14828
14829 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14830
14831         getloadavg: set errno
14832         * lib/getloadavg.c: Set errno when returning -1.  If no other
14833         error number looks appropriate, set it to ENOSYS if the getloadavg
14834         looks like it can't possibly ever work, ENOTSUP otherwise.
14835         Suggested by Bruno Haible in
14836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14837
14838         getloadavg: trim unused parts and speed up 'configure'
14839         * NEWS: Document this.
14840         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14841         always compiled if getloadavg is absent.
14842         Move test code to ...
14843         * tests/test-getloadavg.c: New file, containing previous
14844         contents of test from lib/getloadavg.c.  It also contains
14845         suggestions by Bruno Haible in
14846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14847         * modules/getloadavg-tests: New file.
14848         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14849         Do tests in the same order as they're needed for getloadavg.c.
14850         Omit setgid-related tests that generate symbols KMEM_GROUP,
14851         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14852         Do only the tests that are needed to see whether the system has
14853         getloadavg, moving the other tests into ...
14854         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14855         NLIST_NAME_UNION; nobody should be using it.  Do not define
14856         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14857         relevant, as the user of this module shouldn't care how getloadavg
14858         is implemented.
14859
14860         getloadavg: omit unused var
14861         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14862
14863 2011-02-15  Jim Meyering  <meyering@redhat.com>
14864
14865         doc: update users.txt
14866         * users.txt: Update iwhd's URL.
14867
14868 2011-02-13  Bruno Haible  <bruno@clisp.org>
14869
14870         Consistent macro naming for macros that use GCC __attribute__.
14871         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14872         _ATTRIBUTE_NONNULL_.
14873         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14874         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14875         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14876         ATTRIBUTE_DEPRECATED.
14877         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14878         ATTRIBUTE_NORETURN.
14879         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14880         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14881         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14882         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14883         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14884         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14885         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14886         ATTRIBUTE_SENTINEL.
14887         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14888         ATTRIBUTE_RETURN_CHECK.
14889         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14890         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14891         ATTRIBUTE_NORETURN.
14892         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14893         Reported by Paul Eggert.
14894
14895 2011-02-13  Bruno Haible  <bruno@clisp.org>
14896
14897         Don't interfere with a program's definition of __attribute__.
14898         * lib/argp.h (__attribute__): Remove definition.
14899         (_GL_ATTRIBUTE_FORMAT): New macro.
14900         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14901         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14902         (_GL_ATTRIBUTE_FORMAT): New macro.
14903         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14904         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14905         GCC 3 or newer.
14906         * lib/error.h (__attribute__): Remove definition.
14907         (_GL_ATTRIBUTE_FORMAT): New macro.
14908         (error, error_at_line): Use it.
14909         * lib/hash.h (__attribute__): Remove definition.
14910         (ATTRIBUTE_WUR): Update definition. Define always.
14911         * lib/openat.h (__attribute__): Remove definition.
14912         (ATTRIBUTE_NORETURN): Update definition. Define always.
14913         * lib/sigpipe-die.h (__attribute__): Remove definition.
14914         (ATTRIBUTE_NORETURN): Update definition. Define always.
14915         * lib/vasnprintf.h (__attribute__): Remove definition.
14916         (_GL_ATTRIBUTE_FORMAT): New macro.
14917         (asnprintf, vasnprintf): Use it.
14918         * lib/xalloc.h (__attribute__): Remove definition.
14919         (ATTRIBUTE_NORETURN): Update definition. Define always.
14920         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14921         * lib/xmemdup0.h (__attribute__): Remove definition.
14922         (ATTRIBUTE_NORETURN): Update definition. Define always.
14923         * lib/xprintf.h (__attribute__): Remove definition.
14924         (_GL_ATTRIBUTE_FORMAT): New macro.
14925         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14926         * lib/xstrtol.h (__attribute__): Remove definition.
14927         (ATTRIBUTE_NORETURN): Update definition. Define always.
14928         * lib/xvasprintf.h (__attribute__): Remove definition.
14929         (_GL_ATTRIBUTE_FORMAT): New macro.
14930         (xasprintf, xvasprintf): Use it.
14931         * tests/test-argmatch.c (__attribute__): Remove definition.
14932         (ATTRIBUTE_NORETURN): Update definition. Define always.
14933         * tests/test-exclude.c (__attribute__): Remove definition.
14934         (ATTRIBUTE_NORETURN): Update definition. Define always.
14935         Reported by Paul Eggert.
14936
14937 2011-02-13  Bruno Haible  <bruno@clisp.org>
14938
14939         mbrtowc: Add more tests for native Windows platforms.
14940         * tests/test-mbrtowc-w32-1.sh: New file.
14941         * tests/test-mbrtowc-w32-2.sh: New file.
14942         * tests/test-mbrtowc-w32-3.sh: New file.
14943         * tests/test-mbrtowc-w32-4.sh: New file.
14944         * tests/test-mbrtowc-w32-5.sh: New file.
14945         * tests/test-mbrtowc-w32.c: New file.
14946         * modules/mbrtowc-tests (Files): Add them.
14947         (Makefile.am): Arrange to run these tests.
14948         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14949         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14950
14951 2011-02-13  Bruno Haible  <bruno@clisp.org>
14952
14953         mbrtowc: Work around native Windows bug.
14954         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14955         guess when no suitable locale for testing was found.
14956         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14957
14958 2011-02-13  Bruno Haible  <bruno@clisp.org>
14959
14960         mbsinit: Work around mingw bug.
14961         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14962         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14963         Windows.
14964         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14965
14966 2011-02-13  Bruno Haible  <bruno@clisp.org>
14967
14968         mbsinit: Don't crash for a NULL argument.
14969         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14970         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14971
14972 2011-02-13  Bruno Haible  <bruno@clisp.org>
14973
14974         Don't interfere with a program's definition of __attribute__.
14975         * lib/stdio.in.h (__attribute__): Remove definition.
14976         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14977         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14978         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14979         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14980         * lib/string.in.h (__attribute__): Remove definition.
14981         Reported by Paul Eggert.
14982
14983 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14984
14985         stdlib: don't get in the way of non-GCC __attribute__
14986         See thread starting at
14987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14988         Revert previous stdlib change, installing the following instead:
14989         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14990         to get in the way of a non-GCC compiler that supports __attribute__.
14991         (_GL_ATTRIBUTE_RETURN): New macro.
14992         (_Exit): Use it instead of __attribute__.
14993
14994 2011-02-12  Bruno Haible  <bruno@clisp.org>
14995
14996         quotearg test: Avoid test failure on mingw.
14997         * tests/test-quotearg.sh: Convert the locale identifier from native
14998         Windows syntax to Unix syntax.
14999
15000 2011-02-12  Bruno Haible  <bruno@clisp.org>
15001
15002         setlocale: Prefer gnulib's override over libintl's override.
15003         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15004         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15005         GNULIB_defined_setlocale is set.
15006
15007 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15008
15009         stdlib: support non-GCC __attribute__
15010
15011         Fix a serious and tricky problem encountered when attempting to
15012         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15013         5.5, but it crashed due to memory corruption on Solaris 10 with
15014         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15015         bits that are otherwise zero.  This tagging is optional inside
15016         Emacs but is preferred and is used when __attribute__ ((__aligned
15017         (8))) works, as it does with both recent-enough GCC and with Sun C
15018         5.11.  However, Sun C 5.11 is not GCC and does not #define
15019         __GNUC__ and __GNUC_MINOR__.
15020
15021         When I added the getloadavg module to Emacs, it brought in
15022         stdlib.in.h, which contained this fragment:
15023
15024            #ifndef __attribute__
15025            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15026            #  define __attribute__(Spec)   /* empty */
15027            # endif
15028            #endif
15029
15030         When files that include <stdlib.h> were compiled with Sun C 5.11,
15031         the above code disabled __attribute__ ((__aligned (8))), which
15032         caused variables to not be properly aligned, which eventually led
15033         to the pointer corruption mentioned above.  (This was a bit hard
15034         to diagnose, unfortunately.)
15035
15036         Several "#define __attribute__(X) /* empty */" code snippets need
15037         to be eradicated from Gnulib to work with non-GCC compilers that
15038         support __attribute__.  The Autoconf way to do this is to test for
15039         each kind of attribute that we want support for, and selectively
15040         enable that in source code.
15041
15042         Fix this problem just for stdlib.h, by adding a test for the
15043         __noreturn__ attribute, and change stdlib.in.h to use that test
15044         when needed.  This technique can be easily generalized to the
15045         other *.in.h files and attributes, and a similar technique can be
15046         used for *.h and *.c files.  This patch is enough to solve the
15047         problem for Emacs + getloadavg, and I thought I'd publish it for
15048         feedback before undertaking further, similar fixes in other
15049         modules.
15050
15051         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15052         because it's not needed for stdlib.h.  It merely substitutes the
15053         value directly into stdlib.h.  We may well need to #define it, or
15054         similar symbols, for other modules, but it's nice to also have an
15055         option to not #define it for applications like Emacs that do not
15056         need it.
15057
15058         * lib/stdlib.in.h (__attribute__): Do not #define.
15059         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15060         be defined only if the _Exit module is also used.
15061         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15063         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15064         platforms.
15065         * modules/_Exit (Files): Add m4/attribute.m4.
15066         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15067         * m4/attribute.m4: New file.
15068
15069 2011-02-12  Bruno Haible  <bruno@clisp.org>
15070
15071         wcsrtombs: Work around bug on native Windows.
15072         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15073         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15074         instead of len.
15075         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15076
15077 2011-02-12  Bruno Haible  <bruno@clisp.org>
15078
15079         mbsrtowcs: Work around bug on native Windows.
15080         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15081         against mingw bug.
15082         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15083
15084 2011-02-12  Bruno Haible  <bruno@clisp.org>
15085
15086         Avoid setlocale bugs in tests.
15087         * modules/btowc (Dependencies): Add setlocale.
15088         * modules/c-strcase (Dependencies): Likewise.
15089         * modules/mbmemcasecmp (Dependencies): Likewise.
15090         * modules/mbmemcasecoll (Dependencies): Likewise.
15091         * modules/mbrtowc (Dependencies): Likewise.
15092         * modules/mbscasecmp (Dependencies): Likewise.
15093         * modules/mbscasestr (Dependencies): Likewise.
15094         * modules/mbschr (Dependencies): Likewise.
15095         * modules/mbscspn (Dependencies): Likewise.
15096         * modules/mbsinit (Dependencies): Likewise.
15097         * modules/mbsncasecmp (Dependencies): Likewise.
15098         * modules/mbsnrtowcs (Dependencies): Likewise.
15099         * modules/mbspbrk (Dependencies): Likewise.
15100         * modules/mbspcasecmp (Dependencies): Likewise.
15101         * modules/mbsrchr (Dependencies): Likewise.
15102         * modules/mbsrtowcs (Dependencies): Likewise.
15103         * modules/mbsspn (Dependencies): Likewise.
15104         * modules/mbsstr (Dependencies): Likewise.
15105         * modules/nl_langinfo (Dependencies): Likewise.
15106         * modules/quotearg (Dependencies): Likewise.
15107         * modules/unicase/locale-language (Dependencies): Likewise.
15108         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15109         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15110         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15111         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15112         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15113         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15114         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15115         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15116         * modules/vasnprintf-posix (Dependencies): Likewise.
15117         * modules/wcrtomb (Dependencies): Likewise.
15118         * modules/wcsnrtombs (Dependencies): Likewise.
15119         * modules/wcsrtombs (Dependencies): Likewise.
15120
15121 2011-02-12  Bruno Haible  <bruno@clisp.org>
15122
15123         setlocale: Workaround native Windows bug.
15124         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15125         succeeds but sets LC_CTYPE to "C", report a failure.
15126         * tests/test-setlocale2.sh: New file.
15127         * tests/test-setlocale2.c: New file.
15128         * modules/setlocale-tests (Files): Add the new files.
15129         (Makefile.am): Enable test-setlocale2.sh test.
15130         * doc/posix-functions/setlocale.texi: Mention workaround.
15131
15132 2011-02-11  Bruno Haible  <bruno@clisp.org>
15133
15134         Tests for module 'setlocale'.
15135         * modules/setlocale-tests: New file.
15136         * tests/test-setlocale1.sh: New file.
15137         * tests/test-setlocale1.c: New file.
15138
15139         New module 'setlocale'.
15140         * lib/locale.in.h (setlocale): New declaration.
15141         * lib/setlocale.c: New file, based on
15142         gettext/gettext-runtime/intl/setlocale.c.
15143         * m4/setlocale.m4: New file.
15144         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15145         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15146         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15147         REPLACE_SETLOCALE.
15148         * modules/setlocale: New file.
15149         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15150         * doc/posix-functions/setlocale.texi: Mention the new module.
15151
15152 2011-02-11  Bruno Haible  <bruno@clisp.org>
15153
15154         Prepare for locale dependent tests on mingw.
15155         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15156         because it has the wrong locale encoding.
15157         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15158         French_France.1252 instead of "fr".
15159         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15160         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15161         because it has the wrong locale encoding.
15162         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15163         native Windows, try Turkish_Turkey.65001.
15164         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15165         Chinese_China.54936.
15166
15167         Prepare for locale dependent tests on mingw.
15168         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15169         differently.
15170         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15171         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15172         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15173         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15174
15175 2011-02-11  Eric Blake  <eblake@redhat.com>
15176
15177         strptime: avoid compiler warnings
15178         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15179         compiler warnings about dead code.
15180         Reported by Daniel P. Berrange.
15181
15182 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15183
15184         doc: update users.txt
15185         * users.txt: Add rcs.
15186
15187 2011-02-10  John W. Eaton  <jwe@gnu.org>
15188
15189         doc: update users.txt
15190         * users.txt: Add octave.
15191
15192 2011-02-10  Jim Meyering  <meyering@redhat.com>
15193
15194         doc: update users.txt
15195         * users.txt: Add iwhd.
15196
15197 2011-02-09  Bruno Haible  <bruno@clisp.org>
15198
15199         gnulib-tool: Make copyright notice adjustment more robust.
15200         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15201         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15202         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15203         License".
15204         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15205
15206 2011-02-06  Bruno Haible  <bruno@clisp.org>
15207
15208         New module 'towctrans'.
15209         * modules/towctrans: New file.
15210         * lib/wctype.in.h (towctrans): New declaration.
15211         * lib/towctrans.c: New file.
15212         * lib/towctrans-impl.h: New file.
15213         * m4/towctrans.m4: New file.
15214         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15215         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15216         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15217         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15218         * doc/posix-functions/towctrans.texi: Mention the new module.
15219
15220 2011-02-06  Bruno Haible  <bruno@clisp.org>
15221
15222         New module 'wctrans'.
15223         * modules/wctrans: New file.
15224         * lib/wctype.in.h (wctrans): New declaration.
15225         * lib/wctrans.c: New file.
15226         * lib/wctrans-impl.h: New file.
15227         * m4/wctrans.m4: New file.
15228         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15229         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15230         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15231         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15232         * doc/posix-functions/wctrans.texi: Mention the new module.
15233
15234 2011-02-06  Bruno Haible  <bruno@clisp.org>
15235
15236         New module 'iswctype'.
15237         * modules/iswctype: New file.
15238         * lib/wctype.in.h (iswctype): New declaration.
15239         * lib/iswctype.c: New file.
15240         * lib/iswctype-impl.h: New file.
15241         * m4/iswctype.m4: New file.
15242         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15243         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15244         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15245         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15246         * doc/posix-functions/iswctype.texi: Mention the new module and the
15247         HP-UX 11.00 problem.
15248
15249 2011-02-06  Bruno Haible  <bruno@clisp.org>
15250
15251         New module 'wctype'.
15252         * modules/wctype: Change to represent the wctype() substitute.
15253         * lib/wctype.in.h (wctype): New declaration.
15254         * lib/wctype.c: New file.
15255         * lib/wctype-impl.h: New file.
15256         * m4/wctype.m4: New file.
15257         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15258         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15259         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15260         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15261         * doc/posix-functions/wctype.texi: Mention the new module and the
15262         HP-UX 11.00 problem.
15263
15264 2011-02-06  Bruno Haible  <bruno@clisp.org>
15265
15266         wctype-h: Ensure wctype_t and wctrans_t are defined.
15267         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15268         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15269         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15270         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15271         HAVE_WCTRANS_T.
15272         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15273
15274 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15275
15276         flock: fix license typo
15277
15278         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15279         omitted.
15280
15281 2011-02-08  Bruno Haible  <bruno@clisp.org>
15282
15283         Split large sed scripts, for HP-UX sed.
15284         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15285         to avoid HP-UX limit of 99 commands, in the near future.
15286         * modules/stdlib (Makefile.am): Likewise.
15287         * modules/unistd (Makefile.am): Likewise.
15288         * modules/wchar (Makefile.am): Likewise.
15289         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15290         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15291         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15292
15293 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15294             Bruno Haible  <bruno@clisp.org>
15295
15296         stdlib: improve random_r modularization
15297         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15298         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15299         you also need the random_r module to get this material right.
15300         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15301         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15302         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15303
15304 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15305
15306         stdlib: don't depend on stdint
15307         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15308         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15309         be independent of whether stdint.h is needed.
15310         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15311         here, instead of ...
15312         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15313         struct random_data should be using the random_r module, not just
15314         the stdlib module (which wouldn't make sense: what package needs
15315         just struct random_data without also needing random_r?).
15316         * modules/stdlib (Depends-on): Remove stdint.
15317
15318         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15319         See the thread rooted at
15320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15321         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15322         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15323         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15324         __VMS)); previously it was always included (via fcntl--.h).
15325         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15326         hand; this is good enough for load averages.  Also, do not use
15327         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15328         flags directly if available and don't bother otherwise.  (Packages
15329         that need the extra reliability should use the modules that define
15330         these flags on older platforms that lack them.)
15331         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15332         fcntl-safer.
15333
15334 2011-02-08  Jim Meyering  <meyering@redhat.com>
15335
15336         di-set.h, ino-map.h: add multiple-inclusion guard
15337         Technically, the guard is required only for ino-map.h, due to its
15338         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15339         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15340         * lib/ino-map.h: Likewise.
15341
15342 2011-02-06  Bruno Haible  <bruno@clisp.org>
15343
15344         iswblank: Ensure declaration on glibc systems.
15345         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15346         * modules/iswblank (Dependencies): Add 'extensions'.
15347         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15348
15349 2011-02-06  Bruno Haible  <bruno@clisp.org>
15350
15351         New module 'iswblank'.
15352         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15353         * modules/iswblank: New file.
15354         * modules/wctype-h (Files): Remove lib/iswblank.c.
15355         (Makefile.am): Substitute GNULIB_ISWBLANK.
15356         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15357         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15358         (gl_WCTYPE_H_DEFAULTS): New macro.
15359         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15360         * modules/iswblank-tests: New file.
15361         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15362         * tests/test-wctype-h.c (main): Remove iswblank tests.
15363         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15364         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15365         of 'wctype-h'.
15366         * NEWS: Mention the change.
15367         * modules/mbchar (Depends-on): Add iswblank.
15368
15369 2011-02-08  Bruno Haible  <bruno@clisp.org>
15370
15371         di-set tests: Refactor.
15372         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15373         unnecessary includes.
15374         (ASSERT): Remove macro.
15375         (main): Make C90 compliant by avoiding variable declaration after
15376         statement.
15377         * modules/di-set-tests (Files): Add tests/macros.h.
15378
15379 2011-02-08  Bruno Haible  <bruno@clisp.org>
15380
15381         ino-map tests: Refactor.
15382         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15383         unnecessary includes.
15384         (ASSERT): Remove macro.
15385         (main): Make C90 compliant by avoiding variable declaration after
15386         statement.
15387         * modules/ino-map-tests (Files): Add tests/macros.h.
15388
15389 2011-02-08  Jim Meyering  <meyering@redhat.com>
15390
15391         di-set: add "const" to a cast
15392         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15393         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15394
15395 2011-02-06  Bruno Haible  <bruno@clisp.org>
15396
15397         Rename module 'wctype' to 'wctype-h'.
15398         * modules/wctype-h: Renamed from modules/wctype.
15399         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15400         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15401         (Files, Depends-on, Makefile.am): Update.
15402         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15403         (Files, Makefile.am): Update.
15404         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15405         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15406         * doc/posix-headers/wctype.texi: Update.
15407         * doc/posix-functions/iswalnum.texi: Update.
15408         * doc/posix-functions/iswalpha.texi: Update.
15409         * doc/posix-functions/iswblank.texi: Update.
15410         * doc/posix-functions/iswcntrl.texi: Update.
15411         * doc/posix-functions/iswdigit.texi: Update.
15412         * doc/posix-functions/iswgraph.texi: Update.
15413         * doc/posix-functions/iswlower.texi: Update.
15414         * doc/posix-functions/iswprint.texi: Update.
15415         * doc/posix-functions/iswpunct.texi: Update.
15416         * doc/posix-functions/iswspace.texi: Update.
15417         * doc/posix-functions/iswupper.texi: Update.
15418         * doc/posix-functions/iswxdigit.texi: Update.
15419         * doc/posix-functions/towlower.texi: Update.
15420         * doc/posix-functions/towupper.texi: Update.
15421         * NEWS: Mention the change.
15422         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15423         * modules/mbchar (Dependencies): Likewise.
15424         * modules/mbswidth (Dependencies): Likewise.
15425         * modules/quotearg (Dependencies): Likewise.
15426         * modules/regex (Dependencies): Likewise.
15427         * modules/wcscasecmp (Dependencies): Likewise.
15428         * modules/wcsncasecmp (Dependencies): Likewise.
15429         * modules/wcwidth (Dependencies): Likewise.
15430
15431 2011-02-06  Bruno Haible  <bruno@clisp.org>
15432
15433         New module 'wcswidth'.
15434         * modules/wcswidth: New file.
15435         * lib/wchar.in.h (wcswidth): New declaration.
15436         * lib/wcswidth.c: New file.
15437         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15438         * m4/wcswidth.m4: New file.
15439         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15440         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15441         REPLACE_WCSWIDTH.
15442         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15443         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15444         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15445         * doc/posix-functions/wcswidth.texi: Mention the new module.
15446
15447 2011-02-06  Bruno Haible  <bruno@clisp.org>
15448
15449         New module 'wcstok'.
15450         * modules/wcstok: New file.
15451         * lib/wchar.in.h (wcstok): New declaration.
15452         * lib/wcstok.c: New file.
15453         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15454         * m4/wcstok.m4: New file.
15455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15458         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15459         * doc/posix-functions/wcstok.texi: Mention the new module.
15460
15461 2011-02-06  Bruno Haible  <bruno@clisp.org>
15462
15463         New module 'wcsstr'.
15464         * modules/wcsstr: New file.
15465         * lib/wchar.in.h (wcsstr): New declaration.
15466         * lib/wcsstr.c: New file.
15467         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15468         * m4/wcsstr.m4: New file.
15469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15472         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15473         * doc/posix-functions/wcsstr.texi: Mention the new module.
15474
15475 2011-02-06  Bruno Haible  <bruno@clisp.org>
15476
15477         New module 'wcspbrk'.
15478         * modules/wcspbrk: New file.
15479         * lib/wchar.in.h (wcspbrk): New declaration.
15480         * lib/wcspbrk.c: New file.
15481         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15482         * m4/wcspbrk.m4: New file.
15483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15486         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15487         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15488
15489 2011-02-06  Bruno Haible  <bruno@clisp.org>
15490
15491         New module 'wcsspn'.
15492         * modules/wcsspn: New file.
15493         * lib/wchar.in.h (wcsspn): New declaration.
15494         * lib/wcsspn.c: New file.
15495         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15496         * m4/wcsspn.m4: New file.
15497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15500         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15501         * doc/posix-functions/wcsspn.texi: Mention the new module.
15502
15503 2011-02-06  Bruno Haible  <bruno@clisp.org>
15504
15505         New module 'wcscspn'.
15506         * modules/wcscspn: New file.
15507         * lib/wchar.in.h (wcscspn): New declaration.
15508         * lib/wcscspn.c: New file.
15509         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15510         * m4/wcscspn.m4: New file.
15511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15514         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15515         * doc/posix-functions/wcscspn.texi: Mention the new module.
15516
15517 2011-02-06  Bruno Haible  <bruno@clisp.org>
15518
15519         New module 'wcsrchr'.
15520         * modules/wcsrchr: New file.
15521         * lib/wchar.in.h (wcsrchr): New declaration.
15522         * lib/wcsrchr.c: New file.
15523         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15524         * m4/wcsrchr.m4: New file.
15525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15528         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15529         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15530
15531 2011-02-06  Bruno Haible  <bruno@clisp.org>
15532
15533         New module 'wcschr'.
15534         * modules/wcschr: New file.
15535         * lib/wchar.in.h (wcschr): New declaration.
15536         * lib/wcschr.c: New file.
15537         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15538         * m4/wcschr.m4: New file.
15539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15541         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15542         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15543         * doc/posix-functions/wcschr.texi: Mention the new module.
15544
15545 2011-02-06  Bruno Haible  <bruno@clisp.org>
15546
15547         New module 'wcsdup'.
15548         * modules/wcsdup: New file.
15549         * lib/wchar.in.h (wcsdup): New declaration.
15550         * lib/wcsdup.c: New file.
15551         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15552         * m4/wcsdup.m4: New file.
15553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15555         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15556         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15557         * doc/posix-functions/wcsdup.texi: Mention the new module.
15558
15559 2011-02-06  Bruno Haible  <bruno@clisp.org>
15560
15561         New module 'wcsxfrm'.
15562         * modules/wcsxfrm: New file.
15563         * lib/wchar.in.h (wcsxfrm): New declaration.
15564         * lib/wcsxfrm.c: New file.
15565         * lib/wcsxfrm-impl.h: New file.
15566         * m4/wcsxfrm.m4: New file.
15567         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15568         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15569         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15570         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15571         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15572
15573 2011-02-06  Bruno Haible  <bruno@clisp.org>
15574
15575         New module 'wcscoll'.
15576         * modules/wcscoll: New file.
15577         * lib/wchar.in.h (wcscoll): New declaration.
15578         * lib/wcscoll.c: New file.
15579         * lib/wcscoll-impl.h: New file.
15580         * m4/wcscoll.m4: New file.
15581         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15582         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15583         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15584         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15585         * doc/posix-functions/wcscoll.texi: Mention the new module.
15586
15587 2011-02-06  Bruno Haible  <bruno@clisp.org>
15588
15589         New module 'wcsncasecmp'.
15590         * modules/wcsncasecmp: New file.
15591         * lib/wchar.in.h (wcsncasecmp): New declaration.
15592         * lib/wcsncasecmp.c: New file.
15593         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15594         * m4/wcsncasecmp.m4: New file.
15595         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15596         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15597         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15598         HAVE_WCSNCASECMP.
15599         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15600         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15601
15602 2011-02-06  Bruno Haible  <bruno@clisp.org>
15603
15604         New module 'wcscasecmp'.
15605         * modules/wcscasecmp: New file.
15606         * lib/wchar.in.h (wcscasecmp): New declaration.
15607         * lib/wcscasecmp.c: New file.
15608         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15609         * m4/wcscasecmp.m4: New file.
15610         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15611         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15612         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15613         HAVE_WCSCASECMP.
15614         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15615         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15616
15617 2011-02-05  Bruno Haible  <bruno@clisp.org>
15618
15619         New module 'wcsncmp'.
15620         * modules/wcsncmp: New file.
15621         * lib/wchar.in.h (wcsncmp): New declaration.
15622         * lib/wcsncmp.c: New file.
15623         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15624         * m4/wcsncmp.m4: New file.
15625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15627         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15628         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15629         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15630
15631 2011-02-05  Bruno Haible  <bruno@clisp.org>
15632
15633         New module 'wcscmp'.
15634         * modules/wcscmp: New file.
15635         * lib/wchar.in.h (wcscmp): New declaration.
15636         * lib/wcscmp.c: New file.
15637         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15638         * m4/wcscmp.m4: New file.
15639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15642         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15643         * doc/posix-functions/wcscmp.texi: Mention the new module.
15644
15645 2011-02-05  Bruno Haible  <bruno@clisp.org>
15646
15647         New module 'wcsncat'.
15648         * modules/wcsncat: New file.
15649         * lib/wchar.in.h (wcsncat): New declaration.
15650         * lib/wcsncat.c: New file.
15651         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15652         * m4/wcsncat.m4: New file.
15653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15656         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15657         * doc/posix-functions/wcsncat.texi: Mention the new module.
15658
15659 2011-02-05  Bruno Haible  <bruno@clisp.org>
15660
15661         New module 'wcscat'.
15662         * modules/wcscat: New file.
15663         * lib/wchar.in.h (wcscat): New declaration.
15664         * lib/wcscat.c: New file.
15665         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15666         * m4/wcscat.m4: New file.
15667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15669         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15670         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15671         * doc/posix-functions/wcscat.texi: Mention the new module.
15672
15673 2011-02-05  Bruno Haible  <bruno@clisp.org>
15674
15675         New module 'wcpncpy'.
15676         * modules/wcpncpy: New file.
15677         * lib/wchar.in.h (wcpncpy): New declaration.
15678         * lib/wcpncpy.c: New file.
15679         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15680         * m4/wcpncpy.m4: New file.
15681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15683         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15684         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15685         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15686
15687 2011-02-05  Bruno Haible  <bruno@clisp.org>
15688
15689         New module 'wcsncpy'.
15690         * modules/wcsncpy: New file.
15691         * lib/wchar.in.h (wcsncpy): New declaration.
15692         * lib/wcsncpy.c: New file.
15693         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15694         * m4/wcsncpy.m4: New file.
15695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15697         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15698         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15699         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15700
15701 2011-02-05  Bruno Haible  <bruno@clisp.org>
15702
15703         New module 'wcpcpy'.
15704         * modules/wcpcpy: New file.
15705         * lib/wchar.in.h (wcpcpy): New declaration.
15706         * lib/wcpcpy.c: New file.
15707         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15708         * m4/wcpcpy.m4: New file.
15709         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15710         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15711         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15712         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15713         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15714
15715 2011-02-05  Bruno Haible  <bruno@clisp.org>
15716
15717         New module 'wcscpy'.
15718         * modules/wcscpy: New file.
15719         * lib/wchar.in.h (wcscpy): New declaration.
15720         * lib/wcscpy.c: New file.
15721         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15722         * m4/wcscpy.m4: New file.
15723         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15724         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15725         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15726         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15727         * doc/posix-functions/wcscpy.texi: Mention the new module.
15728
15729 2011-02-05  Bruno Haible  <bruno@clisp.org>
15730
15731         New module 'wcsnlen'.
15732         * modules/wcsnlen: New file.
15733         * lib/wchar.in.h (wcsnlen): New declaration.
15734         * lib/wcsnlen.c: New file.
15735         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15736         * m4/wcsnlen.m4: New file.
15737         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15738         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15739         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15740         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15741         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15742
15743 2011-02-05  Bruno Haible  <bruno@clisp.org>
15744
15745         New module 'wcslen'.
15746         * modules/wcslen: New file.
15747         * lib/wchar.in.h (wcslen): New declaration.
15748         * lib/wcslen.c: New file.
15749         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15750         * m4/wcslen.m4: New file.
15751         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15752         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15753         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15754         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15755         * doc/posix-functions/wcslen.texi: Mention the new module.
15756
15757 2011-02-05  Bruno Haible  <bruno@clisp.org>
15758
15759         New module 'wmemset'.
15760         * modules/wmemset: New file.
15761         * lib/wchar.in.h (wmemset): New declaration.
15762         * lib/wmemset.c: New file.
15763         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15764         * m4/wmemset.m4: New file.
15765         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15766         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15767         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15768         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15769         * doc/posix-functions/wmemset.texi: Mention the new module.
15770
15771 2011-02-05  Bruno Haible  <bruno@clisp.org>
15772
15773         New module 'wmemmove'.
15774         * modules/wmemmove: New file.
15775         * lib/wchar.in.h (wmemmove): New declaration.
15776         * lib/wmemmove.c: New file.
15777         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15778         * m4/wmemmove.m4: New file.
15779         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15780         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15781         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15782         HAVE_WMEMMOVE.
15783         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15784         * doc/posix-functions/wmemmove.texi: Mention the new module.
15785
15786 2011-02-05  Bruno Haible  <bruno@clisp.org>
15787
15788         New module 'wmemcpy'.
15789         * modules/wmemcpy: New file.
15790         * lib/wchar.in.h (wmemcpy): New declaration.
15791         * lib/wmemcpy.c: New file.
15792         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15793         * m4/wmemcpy.m4: New file.
15794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15796         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15797         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15798         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15799
15800 2011-02-05  Bruno Haible  <bruno@clisp.org>
15801
15802         New module 'wmemcmp'.
15803         * modules/wmemcmp: New file.
15804         * lib/wchar.in.h (wmemcmp): New declaration.
15805         * lib/wmemcmp.c: New file.
15806         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15807         * m4/wmemcmp.m4: New file.
15808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15810         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15811         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15812         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15813
15814 2011-02-07  Jim Meyering  <meyering@redhat.com>
15815
15816         di-set, ino-map: new modules, from coreutils
15817         * lib/di-set.c: New file.
15818         * lib/di-set.h: Likewise.
15819         * lib/ino-map.c: Likewise.
15820         * lib/ino-map.h: Likewise.
15821         * modules/di-set: Likewise.
15822         * modules/di-set-tests: Likewise.
15823         * modules/ino-map: Likewise.
15824         * modules/ino-map-tests: Likewise.
15825         * tests/test-di-set.c: Likewise.
15826         * tests/test-ino-map.c: Likewise.
15827
15828 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15829
15830         getloadavg: merge minor changes from Emacs
15831
15832         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15833         (getloadavg): Use memset, not bzero.
15834
15835         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15836         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15837         clash (bug#86).
15838
15839 2010-11-14  Bruno Haible  <bruno@clisp.org>
15840
15841         Allow multiple gnulib generated replacements to coexist.
15842         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15843         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15844         * lib/langinfo.in.h (nl_item): Likewise.
15845         * lib/math.in.h (_NaN, NAN): Likewise.
15846         * lib/netdb.in.h (struct addrinfo): Likewise.
15847         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15848         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15849         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15850         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15851         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15852         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15853         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15854         pthread_mutexattr_init, pthread_mutexattr_settype,
15855         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15856         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15857         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15858         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15859         * lib/sched.in.h (struct sched_param): Likewise.
15860         * lib/se-selinux.in.h (security_class_t, security_context_t,
15861         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15862         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15863         lsetfilecon, fsetfilecon, security_check_context,
15864         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15865         Likewise.
15866         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15867         Likewise.
15868         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15869         _gl_function_taking_int_returning_void_t, union sigval,
15870         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15871         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15872         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15873         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15874         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15875         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15876         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15877         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15878         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15879         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15880         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15881         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15882         socklen_t, rpl_fd_isset): Likewise.
15883         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15884         * lib/sys_time.in.h (struct timeval): Likewise.
15885         * lib/sys_times.in.h (struct tms): Likewise.
15886         * lib/sys_utsname.in.h (struct utsname):
15887         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15888         * lib/unistd.in.h (getpagesize): Likewise.
15889         * lib/wchar.in.h (mbstate_t): Likewise.
15890         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15891         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15892         towlower, towupper): Likewise.
15893         Reported by Sam Steingold <sds@gnu.org>.
15894
15895 2011-02-05  Eric Blake  <eblake@redhat.com>
15896
15897         unsetenv: work around Haiku issues
15898         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15899         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15900
15901 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15902
15903         libposix: avoid calling error() within libposix
15904         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15905         is defined.
15906
15907 2011-02-05  Eric Blake  <eblake@redhat.com>
15908
15909         strerror_r-posix: port to cygwin
15910         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15911         implementation.
15912         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15913         * tests/test-strerror_r.c (main): Fix test.
15914         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15915         issue.
15916
15917 2011-02-05  Bruno Haible  <bruno@clisp.org>
15918
15919         New module 'wmemchr'.
15920         * modules/wmemchr: New file.
15921         * lib/wchar.in.h (wmemchr): New declaration.
15922         * lib/wmemchr.c: New file.
15923         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15924         * m4/wmemchr.m4: New file.
15925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15927         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15928         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15929         * doc/posix-functions/wmemchr.texi: Mention the new module.
15930
15931 2011-02-04  Eric Blake  <eblake@redhat.com>
15932
15933         fdopendir: detect FreeBSD bug
15934         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15935         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15936
15937 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15938
15939         stdbool: do not define HAVE_STDBOOL_H
15940         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15941         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15942         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15943         imported from the latest Autoconf git.  It was motivated by Emacs,
15944         which uses gnulib but does not need HAVE_STDBOOL_H.
15945
15946 2011-02-04  Bruno Haible  <bruno@clisp.org>
15947
15948         wcsnrtombs: Prepare for new module wwcsnrtombs.
15949         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15950         * lib/wcsnrtombs.c: Include it.
15951         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15952
15953         wcsrtombs: Prepare for new module wwcsrtombs.
15954         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15955         * lib/wcsrtombs.c: Include it.
15956         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15957
15958         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15959         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15960         * lib/mbsnrtowcs.c: Include it.
15961         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15962
15963         mbsrtowcs: Prepare for new module mbsrtowwcs.
15964         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15965         * lib/mbsrtowcs.c: Include it.
15966         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15967
15968 2011-02-04  Bruno Haible  <bruno@clisp.org>
15969
15970         vasnprintf: Reduce use of malloc for small format strings.
15971         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15972         (arguments): Add room for the first 7 arguments.
15973         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15974         (char_directives, u8_directives, u16_directives, u32_directives): Add
15975         room for the first 7 directives.
15976         * lib/printf-parse.c: Include <string.h>.
15977         (PRINTF_PARSE): Change memory handling code so that it uses the first
15978         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15979         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15980         Reported by Pádraig Brady <P@draigbrady.com>.
15981
15982 2011-01-31  Eric Blake  <eblake@redhat.com>
15983
15984         dup2: work around Haiku bug
15985         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15986         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15987         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15988         * tests/test-dup2.c (main): Enhance test.
15989
15990 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15991
15992         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15993         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15994         declared by eglibc 2.11.2.
15995         * lib/stdio.in.h: Likewise.
15996
15997 2011-01-31  Eric Blake  <eblake@redhat.com>
15998
15999         ignore-value: add missing test dependency
16000         * tests/test-ignore-value.c: Revert previous change; stdio.h
16001         provides off_t.
16002         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16003
16004 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16005
16006         mktime: clarify long_int width checking
16007         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16008         the top level, to make it clearer that the assumption about
16009         long_int width is being checked.  See
16010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16011
16012 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16013
16014         ignore-value: Fix self-test.
16015         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16016
16017 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16018
16019         TYPE_MAXIMUM: avoid theoretically undefined behavior
16020         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16021         negative number, which the C Standard says has undefined behavior.
16022         In practice this is not a problem, but might as well do it by the book.
16023         Reported by Rich Felker and Eric Blake; see
16024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16025         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16026         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16028         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16029         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16030         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16031
16032         mktime: #undef mktime before #defining it
16033         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16034
16035         mktime: systematically normalize tm_isdst comparisons
16036         * lib/mktime.c (isdst_differ): New function.
16037         (__mktime_internal): Use it systematically for all isdst comparisons.
16038         This completes the fix for libc BZ #6723, and removes the need for
16039         normalizing tm_isdst.  See
16040         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16041         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16042
16043         mktime: fix some integer overflow issues and sidestep the rest
16044
16045         This was prompted by a bug report by Benjamin Lindner for MinGW
16046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16047         His bug is due to signed integer overflow (0 - INT_MIN), and I
16048         I scanned through mktime.c looking for other integer overflow
16049         problems, fixing all the bugs I found.
16050
16051         Although the C Standard says the resulting code is still not safe
16052         in the presence of integer overflow, in practice it should be good
16053         enough for all real-world two's-complement implementations, except
16054         for debugging environments that deliberately trap on integer
16055         overflow (e.g., gcc -ftrapv).
16056
16057         * lib/mktime.c (WRAPV): New macro.
16058         (SHR): Also check that long_int and time_t shift right in the
16059         usual way, before using the fast-but-unportable method.
16060         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16061         used.  The code already assumed two's complement, so there's
16062         no need to test for alternatives.  All uses removed.
16063         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16064         the C standard.  Problem reported by Rich Felker in
16065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16066         (twos_complement_arithmetic): Also check long_int and time_t.
16067         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16068         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16069         (__mktime_internal): Avoid integer overflow with unary subtraction
16070         in two instances where -1 - X is an adequate replacement for -X,
16071         since the calculations are approximate.
16072
16073 2011-01-29  Eric Blake  <eblake@redhat.com>
16074
16075         mktime: avoid infinite loop
16076         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16077         type; behavior is still undefined but portable to all known targets.
16078         Reported by Rich Felker.
16079
16080 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16081
16082         rename, unlink, same-inode: Relicense.
16083         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16084         * modules/unlink (License): Likewise.
16085         * modules/same-inode (License): Likewise.
16086
16087 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16088
16089         mktime: avoid problems on NetBSD 5 / i386
16090         * lib/mktime.c (long_int): New type.  This works around a problem
16091         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16092         but time_t is 64 bits, and where I expect the existing code is
16093         wrong in some cases.
16094         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16095         (ydhms_diff): Bring back the compile-time check for wide-enough
16096         year and yday.
16097
16098         mktime: fix misspelling in comment
16099         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16100         This merges all recent glibc changes of importance.
16101
16102 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16103
16104         move-if-change: cope with concurrent mv of identical file.
16105         * build-aux/move-if-change (CMPPROG): Accept environment
16106         variable as an override for `cmp'.
16107         (usage): Document CMPPROG.
16108         Adjust comparison to drop stdout.  Cope with failure of mv if
16109         the target file exists and is identical to the source, for
16110         parallel builds.
16111         Report from H.J. Lu against binutils in PR binutils/12283.
16112
16113 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16114
16115         * users.txt: Mention sharutils.
16116
16117 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16118
16119         * users.txt: Mention OATH Toolkit.
16120
16121 2011-01-27  Bruno Haible  <bruno@clisp.org>
16122
16123         Prepare for supporting FreeBSD 10.
16124         * build-aux/config.libpath: Remove handling of freebsd1*.
16125
16126 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16127
16128         Prepare for supporting FreeBSD 10.
16129         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16130         match FreeBSD 10.0.
16131
16132 2011-01-27  Bruno Haible  <bruno@clisp.org>
16133
16134         vma-iter, get-rusage-as: Add OpenBSD support.
16135         * modules/vma-iter (configure.ac): Test for mquery.
16136         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16137         * lib/vma-iter.c: Include <sys/mman.h>.
16138         (vma_iterate): Add an implementation based on mquery().
16139         * lib/resource-ext.h (get_rusage_as): Update comments.
16140         * lib/get-rusage-as.c: Likewise.
16141         * lib/get-rusage-data.c: Likewise.
16142
16143 2011-01-26  Karl Berry  <karl@gnu.org>
16144
16145         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16146         variables to make it easier to override the makeinfo program used.
16147
16148 2011-01-26  Eric Blake  <eblake@redhat.com>
16149
16150         fcntl: work around Haiku F_DUPFD bugs
16151         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16152         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16153         cloexec bit on duplication.
16154         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16155
16156 2011-01-26  Bruno Haible  <bruno@clisp.org>
16157
16158         Enable memory leak tests on AIX.
16159         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16160         * tests/test-fprintf-posix3.c (main): Likewise.
16161
16162 2011-01-26  Bruno Haible  <bruno@clisp.org>
16163
16164         Tests for module 'get-rusage-data'.
16165         * modules/get-rusage-data-tests: New file.
16166         * tests/test-get-rusage-data.c: New file.
16167
16168         New module 'get-rusage-data'.
16169         * lib/resource-ext.h (get_rusage_data): New declaration.
16170         * lib/get-rusage-data.c: New file.
16171         * modules/get-rusage-data: New file.
16172
16173 2011-01-25  Bruno Haible  <bruno@clisp.org>
16174
16175         get-rusage-as: Allow for easier testing.
16176         * lib/resource-ext.h (get_rusage_as): Add comment.
16177         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16178         (main): New function for interactive testing.
16179
16180 2011-01-25  Bruno Haible  <bruno@clisp.org>
16181
16182         vma-iter: Treat Haiku like BeOS.
16183         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16184         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16185
16186 2011-01-25  Eric Blake  <eblake@redhat.com>
16187
16188         c-stack: fix regression on cygwin when libsigsegv is present
16189         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16190
16191 2011-01-24  Bruno Haible  <bruno@clisp.org>
16192
16193         vma-iter: Avoid empty intervals.
16194         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16195         on an empty interval.
16196
16197 2011-01-24  Jim Meyering  <meyering@redhat.com>
16198
16199         u64: remove unnecessary #include
16200         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16201
16202 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16203
16204         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16205         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16206
16207 2011-01-23  Bruno Haible  <bruno@clisp.org>
16208
16209         New module 'vma-iter'.
16210         * lib/vma-iter.h: New file.
16211         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16212         * modules/vma-iter: New file.
16213         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16214         for get_rusage_as_via_iterator.
16215         (vma_iterate_callback): New function.
16216         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16217         * modules/get-rusage-as (Depends-on): Add vma-iter.
16218
16219 2011-01-23  Bruno Haible  <bruno@clisp.org>
16220
16221         uninorm: Tweak includes.
16222         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16223         Reported by Jim Meyering.
16224
16225 2011-01-23  Bruno Haible  <bruno@clisp.org>
16226
16227         get-rusage-as: Improve on NetBSD.
16228         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16229         /proc, like on FreeBSD.
16230
16231 2011-01-23  Jim Meyering  <meyering@redhat.com>
16232
16233         xreadlink.h: remove unnecessary #include
16234         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16235
16236         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16237         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16238
16239 2011-01-23  Bruno Haible  <bruno@clisp.org>
16240
16241         get-rusage-as: Fix bug.
16242         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16243         original limit when aborting the first loop.
16244
16245 2011-01-23  Bruno Haible  <bruno@clisp.org>
16246
16247         wctype: Ensure valid C syntax.
16248         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16249         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16250
16251 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16252
16253         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16255         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16256         as they are needed only for configure's test case.
16257         This removes two unnecessary symbols from config.h.
16258
16259         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16260         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16262         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16263         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16264         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16265         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16266         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16267         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16268         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16269         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16271         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16272         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16273         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16274         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16275         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16276         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16277
16278 2011-01-21  Eric Blake  <eblake@redhat.com>
16279
16280         maintainer-makefile: work with older git for submodule check
16281         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16282         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16283         Reported by Matthias Bolte.
16284
16285         bootstrap: minor portability fixes
16286         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16287         (usage): Omit leading capital and trailing . on help phrases, per
16288         GNU Coding Standards.
16289         (check_versions, top level): Prefix messages with script name.
16290
16291 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16292
16293         bootstrap: support --no-git option
16294         * build-aux/bootstrap: Add --no-git option, to be used when
16295         --gnulib-srcdir points to the exact desired checkout.
16296
16297 2011-01-21  Eric Blake  <eblake@redhat.com>
16298
16299         strerror_r-posix: work with glibc 2.13
16300         * lib/strerror_r.c (strerror_r): Fix return type.
16301
16302 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16303             Bruno Haible  <bruno@clisp.org>
16304
16305         uN_strstr: New unit tests.
16306         * modules/unistr/u8-strstr-tests: New file.
16307         * modules/unistr/u16-strstr-tests: New file.
16308         * modules/unistr/u32-strstr-tests: New file.
16309         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16310         * tests/unistr/test-u8-strstr.c: New file.
16311         * tests/unistr/test-u16-strstr.c: New file.
16312         * tests/unistr/test-u32-strstr.c: New file.
16313
16314 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16315             Bruno Haible  <bruno@clisp.org>
16316
16317         Make uN_strstr functions O(n) worst-case.
16318         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16319         16-bit and 32-bit unit cases, use the unibyte algorithm from
16320         lib/mbsstr.c.
16321         * lib/unistr/u8-strstr.c: Include <string.h>.
16322         (UNIT_IS_UINT8_T): New macro.
16323         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16324         (U_STRLEN, U_STRNLEN): New macros.
16325         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16326         (U_STRLEN, U_STRNLEN): New macros.
16327         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16328         (configure.ac): Update required libunistring version.
16329         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16330         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16331         malloca.
16332         (configure.ac): Update required libunistring version.
16333         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16334         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16335         malloca.
16336         (configure.ac): Update required libunistring version.
16337
16338 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16339             Bruno Haible  <bruno@clisp.org>
16340
16341         Prepare for faster uN_strstr functions.
16342         * lib/str-kmp.h: Support definable UNITs.
16343         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16344         needle_len argument.
16345         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16346         * lib/mbscasestr.c (mbscasestr): Likewise.
16347
16348 2011-01-21  Pádraig Brady <P@draigBrady.com>
16349
16350         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16351         * tests/test-malloca.c (main): Unset the environment variable
16352         to greatly speed up the test.
16353         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16354         * modules/malloca-tests: Depend on unsetenv.
16355
16356 2011-01-21  Pádraig Brady <P@draigBrady.com>
16357
16358         ignore-value: remove stdint dependency
16359         * lib/ignore-value.h: Remove <stdint.h>
16360         * modules/ignore-value: Remove stdint dependency.
16361
16362 2011-01-21  Jim Meyering  <meyering@redhat.com>
16363
16364         maint.mk: adjust variable name to be consistent with other gl_ vars
16365         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16366         to be lower case.
16367
16368 2011-01-20  Jim Meyering  <meyering@redhat.com>
16369
16370         maint.mk: make "check" depend on public-submodule-commit by default
16371         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16372
16373 2011-01-20  Bruno Haible  <bruno@clisp.org>
16374
16375         mbfile, mbiter: Complete change from 2008-12-21.
16376         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16377         * m4/mbiter.m4 (gl_MBITER): Likewise.
16378
16379 2011-01-20  Jim Meyering  <meyering@redhat.com>
16380
16381         init.sh: insert space between each function name and "()"
16382         * tests/init.sh: Make it a little easier to see that a function's
16383         name is "warn_", and not "warn" when looking at the first part of
16384         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16385
16386 2011-01-20  Jim Meyering  <meyering@redhat.com>
16387
16388         mountlist: clean up code formatting
16389         * lib/mountlist.c (read_file_system_list): Split a long line,
16390         correct bracing style, use NULL in place of "(struct statfs *)0",
16391         don't parenthesize return value, add spaces around "=" and after
16392         ";-in-for-stmt".
16393
16394 2011-01-14  Markus Duft <mduft@gentoo.org>
16395
16396         mountlist: add support for Interix
16397         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16398         Apply statvfs to all entries of /dev/fs.
16399         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16400         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16401
16402 2011-01-20  Jim Meyering  <meyering@redhat.com>
16403
16404         maint.mk: improve the public-submodule-commit rule
16405         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16406         to suppress printing of its commands... unless V=1.
16407         Add git submodule's --quiet option to suppress printing of e.g.,
16408         "Entering gnulib" output.
16409         "cd" into $(srcdir) before running git submodule.
16410
16411 2011-01-20  Bruno Haible  <bruno@clisp.org>
16412
16413         include_next: Fix bug introduced on 2011-01-18.
16414         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16415         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16416         ac_cv_header_... variable if the second argument is not 'check'.
16417         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16418         gl_NEXT_HEADERS_INTERNAL.
16419
16420 2011-01-20  Bruno Haible  <bruno@clisp.org>
16421
16422         Allow the user to avoid the GNULIB_TEST_* macros.
16423         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16424         Suggested by Paul Eggert.
16425
16426 2011-01-14  Jim Meyering  <meyering@redhat.com>
16427
16428         bootstrap: avoid failure when there is no .gitmodules file
16429         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16430         has been assigned to, even when its value is the empty string.
16431         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16432         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16433         Reported by John W. Eaton <jwe@gnu.org>.
16434
16435 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16436
16437         assume <ctype.h>, ..., <time.h> exist
16438         For years gnulib has been assuming the existence of the headers
16439         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16440         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16441         them, since they don't appear to be needed.
16442         * README (Portability guidelines): Document this.
16443         * lib/flock.c: Assume <fcntl.h> exists.
16444         * lib/regex_internal.h: Assume <locale.h> exists.
16445         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16446         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16447         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16448         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16449         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16450         * m4/regex.m4 (gl_REGEX): Likewise.
16451         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16452         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16453         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16454         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16455         * tests/test-argp.c: Likewise.
16456         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16457
16458         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16459         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16460         AA_APPLE_UNIVERSAL_BUILD.  See
16461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16462         * NEWS: Document this.
16463
16464 2011-01-19  Eric Blake  <eblake@redhat.com>
16465
16466         c-stack: assume stack overflow if SA_SIGINFO unsupported
16467         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16468         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16469         sigaction will work.
16470         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16471         behavior match Linux.
16472         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16473
16474         stdbool-tests: accomodate Haiku
16475         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16476
16477         binary-io: fix O_TEXT on Haiku
16478         * modules/binary-io (Depends-on): Add fcntl-h.
16479         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16480         than blindly undefining O_TEXT.
16481         Reported by Scott McCreary.
16482
16483 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16484
16485         include_next: do not check for standard headers like stddef.h
16486
16487         I found this problem when modifying Emacs to use gnulib.
16488         I noticed that it added HAVE_STDDEF_H to config.h, even though
16489         gnulib always assumes <stddef.h> exists as per README and this
16490         symbol is unnecessary.
16491         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16492         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16493         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16494         faster for headers like stddef.h that are known to exist.
16495         (gl_CHECK_NEXT_HEADERS): Use it.
16496         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16497         rather than gl_CHECK_NEXT_HEADERS.
16498         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16499         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16500
16501 2011-01-18  Eric Blake  <eblake@redhat.com>
16502
16503         ansi-c++-opt: skip C++ dependency style if C++ is unused
16504         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16505         tests when we know C++ compilation is not desired.
16506         Reported by Scott McCreary.
16507
16508 2011-01-18  Bruno Haible  <bruno@clisp.org>
16509
16510         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16511         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16512         (main): Perform test also when getrlimit and setrlimit don't exist or
16513         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16514         limiting the address space size using setrlimit, compare the address
16515         space size before and after the the test.
16516         * tests/test-dprintf-posix2.c: Likewise.
16517         * tests/test-fprintf-posix3.sh: Update skip messages.
16518         * tests/test-dprintf-posix2.sh: Likewise.
16519         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16520         * modules/dprintf-posix-tests (Depends-on): Likewise.
16521         Reported by Bruce Korb <bkorb@gnu.org> and
16522         Gary V. Vaughan <gary@gnu.org>.
16523
16524 2011-01-18  Bruno Haible  <bruno@clisp.org>
16525
16526         get-rusage-as: Improvement for Cygwin.
16527         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16528         areas that are merely reserved.
16529
16530 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16531
16532         strftime: remove dependencies on multibyte modules
16533
16534         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16535         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16536         only if __osf__ is defined, and I suspect OSF doesn't need these
16537         other modules.  If my guess is wrong, we'll need to come up with a
16538         variant of strftime that doesn't need the multibyte modules.
16539
16540         I discovered this problem when attempting modify Emacs to use the
16541         strftime module.  With the previous gnulib, this caused Emacs to
16542         need 31 new files, ranging from lib/config.charset to
16543         m4/wint_t.m4.  This was overkill and I expect would be offputting
16544         to the Emacs maintainers.  After this change, only 6 new files are
16545         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16546         stdbool.m4, and tm_gmtoff.m4.
16547
16548         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16549         Suggested by Bruno Haible in
16550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16551         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16552         and do not check for wchar.h.
16553         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16554         (Depends-on): Remove mbrlen, mbsinit, wchar.
16555
16556 2011-01-18  Bruno Haible  <bruno@clisp.org>
16557
16558         Tests for module 'get-rusage-as'.
16559         * modules/get-rusage-as-tests: New file.
16560         * tests/test-get-rusage-as.c: New file.
16561
16562         New module 'get-rusage-as'.
16563         * modules/get-rusage-as: New file.
16564         * lib/resource-ext.h: New file.
16565         * lib/get-rusage-as.c: New file.
16566
16567 2011-01-17  Eric Blake  <eblake@redhat.com>
16568
16569         sigaction: relax license from LGPLv3+ to LGPLv2+
16570         * modules/sigaction (License): Relax to LGPLv2+.
16571
16572 2011-01-14  Bruno Haible  <bruno@clisp.org>
16573
16574         filemode: Make function declarations usable in C++ mode.
16575         * lib/filemode.h: Enclose function declarations in extern "C" block.
16576         Reported by John W. Eaton <jwe@gnu.org>.
16577
16578 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16579
16580         save-cwd: no longer include "xgetcwd.h"
16581         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16582         This avoids a compilation failure in projects that use save-cwd
16583         without also using the xgetcwd module.
16584
16585 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16586
16587         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16588         This is so that a program like Emacs, which needs only dtoastr,
16589         does not have to bother with distributing and compiling ftoastr
16590         and ldtoastr.
16591         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16592         * modules/dtoastr, modules/ldtoastr: New files.
16593         * modules/ftoastr: Now works just for 'float'.
16594         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16595         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16596         dtoastr.c, ldtoastr.c.
16597
16598 2011-01-11  Jim Meyering  <meyering@redhat.com>
16599
16600         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16601         There is no need to work around the lack of the fchdir function,
16602         since gnulib can now provide a replacement when required.
16603         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16604         * modules/save-cwd (Depends-on): Add fchdir.
16605
16606 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16607
16608         openat, save-cwd: avoid xmalloc
16609
16610         This removes a direct (but undocumented) dependency of openat on
16611         xalloc, along with an indirect dependency via save-cwd.  It also
16612         removes a dependency of save-cwd on xgetcwd, and thereby
16613         indirectly on xalloc.  This change causes the openat substitute
16614         to fall back on save_cwd when memory is tight, and for save_cwd to
16615         fail instead of dying when memory is tight, but that's good enough.
16616         Problem and initial idea for fix reported by Bastien Roucaries in
16617         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16618
16619         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16620         xalloc.h (for xmalloc).
16621         (openat_proc_name): Use malloc, not xmalloc.
16622         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16623         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16624
16625         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16626         This avoids heap allocation for file names whose lengths are in
16627         the range 512..1023, with the upper bound increasing to at most
16628         4031 depending on the platform's PATH_MAX.  (We do not want
16629         pathmax.h here as it might supply a non-constant PATH_MAX.)
16630         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16631         Perhaps they should be moved to malloca.h?
16632         (OPENAT_BUFFER_SIZE): Use them.
16633
16634 2011-01-10  Bruno Haible  <bruno@clisp.org>
16635
16636         doc: Update users.txt.
16637         * users.txt: Add recutils.
16638
16639 2011-01-09  Karl Berry  <karl@gnu.org>
16640
16641         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16642
16643         * doc/configmake.texi: New file.
16644         * doc/gnulib.texi: Include it.
16645         * modules/configmake: Move documentation from here.
16646
16647 2011-01-09  Bruno Haible  <bruno@clisp.org>
16648
16649         Update to Unicode 6.0.0.
16650         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16651         (get_lbp): Update for Unicode 6.0.0.
16652         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16653         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16654         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16655         U+11001, U+11038..U+11046. Remove U+06DE.
16656         (uc_width): Fix bounds of planes.
16657         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16658         lib/uniwidth/width.c.
16659         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16660         trailing whitespace removed.
16661         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16662         without comments, but with the original copyright notice.
16663         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16664         * lib/unicase/ignorable.h: Likewise.
16665         * lib/unicase/tocasefold.h: Likewise.
16666         * lib/unicase/tolower.h: Likewise.
16667         * lib/unicase/totitle.h: Likewise.
16668         * lib/unicase/toupper.h: Likewise.
16669         * lib/unictype/bidi_of.h: Likewise.
16670         * lib/unictype/blocks.h: Likewise.
16671         * lib/unictype/categ_C.h: Likewise.
16672         * lib/unictype/categ_Cn.h: Likewise.
16673         * lib/unictype/categ_L.h: Likewise.
16674         * lib/unictype/categ_Ll.h: Likewise.
16675         * lib/unictype/categ_Lm.h: Likewise.
16676         * lib/unictype/categ_Lo.h: Likewise.
16677         * lib/unictype/categ_Lu.h: Likewise.
16678         * lib/unictype/categ_M.h: Likewise.
16679         * lib/unictype/categ_Mc.h: Likewise.
16680         * lib/unictype/categ_Me.h: Likewise.
16681         * lib/unictype/categ_Mn.h: Likewise.
16682         * lib/unictype/categ_N.h: Likewise.
16683         * lib/unictype/categ_Nd.h: Likewise.
16684         * lib/unictype/categ_No.h: Likewise.
16685         * lib/unictype/categ_P.h: Likewise.
16686         * lib/unictype/categ_Po.h: Likewise.
16687         * lib/unictype/categ_S.h: Likewise.
16688         * lib/unictype/categ_Sc.h: Likewise.
16689         * lib/unictype/categ_Sk.h: Likewise.
16690         * lib/unictype/categ_Sm.h: Likewise.
16691         * lib/unictype/categ_So.h: Likewise.
16692         * lib/unictype/categ_of.h: Likewise.
16693         * lib/unictype/combining.h: Likewise.
16694         * lib/unictype/ctype_alnum.h: Likewise.
16695         * lib/unictype/ctype_alpha.h: Likewise.
16696         * lib/unictype/ctype_graph.h: Likewise.
16697         * lib/unictype/ctype_lower.h: Likewise.
16698         * lib/unictype/ctype_print.h: Likewise.
16699         * lib/unictype/ctype_punct.h: Likewise.
16700         * lib/unictype/ctype_upper.h: Likewise.
16701         * lib/unictype/decdigit.h: Likewise.
16702         * lib/unictype/digit.h: Likewise.
16703         * lib/unictype/numeric.h: Likewise.
16704         * lib/unictype/pr_alphabetic.h: Likewise.
16705         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16706         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16707         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16708         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16709         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16710         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16711         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16712         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16713         * lib/unictype/pr_case_ignorable.h: Likewise.
16714         * lib/unictype/pr_cased.h: Likewise.
16715         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16716         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16717         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16718         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16719         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16720         * lib/unictype/pr_combining.h: Likewise.
16721         * lib/unictype/pr_composite.h: Likewise.
16722         * lib/unictype/pr_currency_symbol.h: Likewise.
16723         * lib/unictype/pr_decimal_digit.h: Likewise.
16724         * lib/unictype/pr_deprecated.h: Likewise.
16725         * lib/unictype/pr_format_control.h: Likewise.
16726         * lib/unictype/pr_grapheme_base.h: Likewise.
16727         * lib/unictype/pr_grapheme_extend.h: Likewise.
16728         * lib/unictype/pr_grapheme_link.h: Likewise.
16729         * lib/unictype/pr_id_continue.h: Likewise.
16730         * lib/unictype/pr_id_start.h: Likewise.
16731         * lib/unictype/pr_ideographic.h: Likewise.
16732         * lib/unictype/pr_lowercase.h: Likewise.
16733         * lib/unictype/pr_math.h: Likewise.
16734         * lib/unictype/pr_numeric.h: Likewise.
16735         * lib/unictype/pr_other_alphabetic.h: Likewise.
16736         * lib/unictype/pr_other_id_continue.h: Likewise.
16737         * lib/unictype/pr_other_math.h: Likewise.
16738         * lib/unictype/pr_punctuation.h: Likewise.
16739         * lib/unictype/pr_sentence_terminal.h: Likewise.
16740         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16741         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16742         * lib/unictype/pr_unified_ideograph.h: Likewise.
16743         * lib/unictype/pr_uppercase.h: Likewise.
16744         * lib/unictype/pr_xid_continue.h: Likewise.
16745         * lib/unictype/pr_xid_start.h: Likewise.
16746         * lib/unictype/scripts.h: Likewise.
16747         * lib/unictype/scripts_byname.gperf: Likewise.
16748         * lib/unictype/sy_java_ident.h: Likewise.
16749         * lib/unigbrk/gbrkprop.h: Likewise.
16750         * lib/unilbrk/lbrkprop1.h: Likewise.
16751         * lib/unilbrk/lbrkprop2.h: Likewise.
16752         * lib/uninorm/decomposition-table2.h: Likewise.
16753         * lib/uniwbrk/wbrkprop.h: Likewise.
16754         * tests/unicase/test-cased.c: Likewise.
16755         * tests/unicase/test-ignorable.c: Likewise.
16756         * tests/unicase/test-uc_tolower.c: Likewise.
16757         * tests/unicase/test-uc_totitle.c: Likewise.
16758         * tests/unicase/test-uc_toupper.c: Likewise.
16759         * tests/unictype/test-categ_C.c: Likewise.
16760         * tests/unictype/test-categ_Cn.c: Likewise.
16761         * tests/unictype/test-categ_L.c: Likewise.
16762         * tests/unictype/test-categ_Ll.c: Likewise.
16763         * tests/unictype/test-categ_Lm.c: Likewise.
16764         * tests/unictype/test-categ_Lo.c: Likewise.
16765         * tests/unictype/test-categ_Lu.c: Likewise.
16766         * tests/unictype/test-categ_M.c: Likewise.
16767         * tests/unictype/test-categ_Mc.c: Likewise.
16768         * tests/unictype/test-categ_Me.c: Likewise.
16769         * tests/unictype/test-categ_Mn.c: Likewise.
16770         * tests/unictype/test-categ_N.c: Likewise.
16771         * tests/unictype/test-categ_Nd.c: Likewise.
16772         * tests/unictype/test-categ_No.c: Likewise.
16773         * tests/unictype/test-categ_P.c: Likewise.
16774         * tests/unictype/test-categ_Po.c: Likewise.
16775         * tests/unictype/test-categ_S.c: Likewise.
16776         * tests/unictype/test-categ_Sc.c: Likewise.
16777         * tests/unictype/test-categ_Sk.c: Likewise.
16778         * tests/unictype/test-categ_Sm.c: Likewise.
16779         * tests/unictype/test-categ_So.c: Likewise.
16780         * tests/unictype/test-ctype_alnum.c: Likewise.
16781         * tests/unictype/test-ctype_alpha.c: Likewise.
16782         * tests/unictype/test-ctype_graph.c: Likewise.
16783         * tests/unictype/test-ctype_lower.c: Likewise.
16784         * tests/unictype/test-ctype_print.c: Likewise.
16785         * tests/unictype/test-ctype_punct.c: Likewise.
16786         * tests/unictype/test-ctype_upper.c: Likewise.
16787         * tests/unictype/test-decdigit.h: Likewise.
16788         * tests/unictype/test-digit.h: Likewise.
16789         * tests/unictype/test-numeric.h: Likewise.
16790         * tests/unictype/test-pr_alphabetic.c: Likewise.
16791         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16792         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16793         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16794         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16795         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16796         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16797         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16798         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16799         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16800         * tests/unictype/test-pr_cased.c: Likewise.
16801         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16802         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16803         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16804         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16805         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16806         * tests/unictype/test-pr_combining.c: Likewise.
16807         * tests/unictype/test-pr_composite.c: Likewise.
16808         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16809         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16810         * tests/unictype/test-pr_deprecated.c: Likewise.
16811         * tests/unictype/test-pr_format_control.c: Likewise.
16812         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16813         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16814         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16815         * tests/unictype/test-pr_id_continue.c: Likewise.
16816         * tests/unictype/test-pr_id_start.c: Likewise.
16817         * tests/unictype/test-pr_ideographic.c: Likewise.
16818         * tests/unictype/test-pr_lowercase.c: Likewise.
16819         * tests/unictype/test-pr_math.c: Likewise.
16820         * tests/unictype/test-pr_numeric.c: Likewise.
16821         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16822         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16823         * tests/unictype/test-pr_other_math.c: Likewise.
16824         * tests/unictype/test-pr_punctuation.c: Likewise.
16825         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16826         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16827         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16828         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16829         * tests/unictype/test-pr_uppercase.c: Likewise.
16830         * tests/unictype/test-pr_xid_continue.c: Likewise.
16831         * tests/unictype/test-pr_xid_start.c: Likewise.
16832         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16833         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16834         changes.
16835         * lib/unictype/categ_Cc.h: Likewise.
16836         * lib/unictype/categ_Cf.h: Likewise.
16837         * lib/unictype/categ_Co.h: Likewise.
16838         * lib/unictype/categ_Cs.h: Likewise.
16839         * lib/unictype/categ_Lt.h: Likewise.
16840         * lib/unictype/categ_Nl.h: Likewise.
16841         * lib/unictype/categ_Pc.h: Likewise.
16842         * lib/unictype/categ_Pd.h: Likewise.
16843         * lib/unictype/categ_Pe.h: Likewise.
16844         * lib/unictype/categ_Pf.h: Likewise.
16845         * lib/unictype/categ_Pi.h: Likewise.
16846         * lib/unictype/categ_Ps.h: Likewise.
16847         * lib/unictype/categ_Z.h: Likewise.
16848         * lib/unictype/categ_Zl.h: Likewise.
16849         * lib/unictype/categ_Zp.h: Likewise.
16850         * lib/unictype/categ_Zs.h: Likewise.
16851         * lib/unictype/ctype_blank.h: Likewise.
16852         * lib/unictype/ctype_cntrl.h: Likewise.
16853         * lib/unictype/ctype_digit.h: Likewise.
16854         * lib/unictype/ctype_space.h: Likewise.
16855         * lib/unictype/ctype_xdigit.h: Likewise.
16856         * lib/unictype/mirror.h: Likewise.
16857         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16858         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16859         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16860         * lib/unictype/pr_bidi_control.h: Likewise.
16861         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16862         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16863         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16864         * lib/unictype/pr_bidi_pdf.h: Likewise.
16865         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16866         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16867         * lib/unictype/pr_dash.h: Likewise.
16868         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16869         * lib/unictype/pr_diacritic.h: Likewise.
16870         * lib/unictype/pr_extender.h: Likewise.
16871         * lib/unictype/pr_hex_digit.h: Likewise.
16872         * lib/unictype/pr_hyphen.h: Likewise.
16873         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16874         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16875         * lib/unictype/pr_ignorable_control.h: Likewise.
16876         * lib/unictype/pr_iso_control.h: Likewise.
16877         * lib/unictype/pr_join_control.h: Likewise.
16878         * lib/unictype/pr_left_of_pair.h: Likewise.
16879         * lib/unictype/pr_line_separator.h: Likewise.
16880         * lib/unictype/pr_logical_order_exception.h: Likewise.
16881         * lib/unictype/pr_non_break.h: Likewise.
16882         * lib/unictype/pr_not_a_character.h: Likewise.
16883         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16884         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16885         * lib/unictype/pr_other_id_start.h: Likewise.
16886         * lib/unictype/pr_other_lowercase.h: Likewise.
16887         * lib/unictype/pr_other_uppercase.h: Likewise.
16888         * lib/unictype/pr_paired_punctuation.h: Likewise.
16889         * lib/unictype/pr_paragraph_separator.h: Likewise.
16890         * lib/unictype/pr_pattern_syntax.h: Likewise.
16891         * lib/unictype/pr_pattern_white_space.h: Likewise.
16892         * lib/unictype/pr_private_use.h: Likewise.
16893         * lib/unictype/pr_quotation_mark.h: Likewise.
16894         * lib/unictype/pr_radical.h: Likewise.
16895         * lib/unictype/pr_soft_dotted.h: Likewise.
16896         * lib/unictype/pr_space.h: Likewise.
16897         * lib/unictype/pr_titlecase.h: Likewise.
16898         * lib/unictype/pr_variation_selector.h: Likewise.
16899         * lib/unictype/pr_white_space.h: Likewise.
16900         * lib/unictype/pr_zero_width.h: Likewise.
16901         * lib/unictype/sy_c_ident.h: Likewise.
16902         * lib/unictype/sy_c_whitespace.h: Likewise.
16903         * lib/unictype/sy_java_whitespace.h: Likewise.
16904         * lib/uninorm/composition-table.gperf: Likewise.
16905         * lib/uninorm/decomposition-table1.h: Likewise.
16906         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16907         LB8.
16908         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16909         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16910         * modules/unictype/*: Bump version number of expected libunistring
16911         version.
16912
16913 2011-01-09  Bruno Haible  <bruno@clisp.org>
16914
16915         Update to Unicode 5.2.0.
16916         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16917         trailing whitespace removed.
16918
16919 2011-01-09  Bruno Haible  <bruno@clisp.org>
16920
16921         New Unicode character properties, from Unicode 5.2.0.
16922         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16923         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16924         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16925         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16926         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16927         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16928         uc_is_property_cased, uc_is_property_case_ignorable,
16929         uc_is_property_changes_when_lowercased,
16930         uc_is_property_changes_when_uppercased,
16931         uc_is_property_changes_when_titlecased,
16932         uc_is_property_changes_when_casefolded,
16933         uc_is_property_changes_when_casemapped): New declarations.
16934         * lib/unictype/pr_byname.gperf: Add the new properties.
16935         * modules/unictype/property-byname (Depends-on): Depend on the new
16936         properties modules.
16937         * modules/unictype/property-all (Depends-on): Likewise.
16938         * MODULES.html.sh (Unicode string functions): Add
16939         unictype/property-case-ignorable, unictype/property-cased,
16940         unictype/property-changes-when-casefolded,
16941         unictype/property-changes-when-casemapped,
16942         unictype/property-changes-when-lowercased,
16943         unictype/property-changes-when-titlecased,
16944         unictype/property-changes-when-uppercased.
16945
16946         New module 'unictype/property-changes-when-casemapped'.
16947         * modules/unictype/property-changes-when-casemapped: New file.
16948         * lib/unictype/pr_changes_when_casemapped.c: New file.
16949         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16950         generated by gen-uni-tables.
16951         * modules/unictype/property-changes-when-casemapped-tests: New file.
16952         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16953         automatically generated by gen-uni-tables.
16954
16955         New module 'unictype/property-changes-when-casefolded'.
16956         * modules/unictype/property-changes-when-casefolded: New file.
16957         * lib/unictype/pr_changes_when_casefolded.c: New file.
16958         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16959         generated by gen-uni-tables.
16960         * modules/unictype/property-changes-when-casefolded-tests: New file.
16961         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16962         automatically generated by gen-uni-tables.
16963
16964         New module 'unictype/property-changes-when-titlecased'.
16965         * modules/unictype/property-changes-when-titlecased: New file.
16966         * lib/unictype/pr_changes_when_titlecased.c: New file.
16967         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16968         generated by gen-uni-tables.
16969         * modules/unictype/property-changes-when-titlecased-tests: New file.
16970         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16971         automatically generated by gen-uni-tables.
16972
16973         New module 'unictype/property-changes-when-uppercased'.
16974         * modules/unictype/property-changes-when-uppercased: New file.
16975         * lib/unictype/pr_changes_when_uppercased.c: New file.
16976         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16977         generated by gen-uni-tables.
16978         * modules/unictype/property-changes-when-uppercased-tests: New file.
16979         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16980         automatically generated by gen-uni-tables.
16981
16982         New module 'unictype/property-changes-when-lowercased'.
16983         * modules/unictype/property-changes-when-lowercased: New file.
16984         * lib/unictype/pr_changes_when_lowercased.c: New file.
16985         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16986         generated by gen-uni-tables.
16987         * modules/unictype/property-changes-when-lowercased-tests: New file.
16988         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16989         automatically generated by gen-uni-tables.
16990
16991         New module 'unictype/property-case-ignorable'.
16992         * modules/unictype/property-case-ignorable: New file.
16993         * lib/unictype/pr_case_ignorable.c: New file.
16994         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16995         by gen-uni-tables.
16996         * modules/unictype/property-case-ignorable-tests: New file.
16997         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16998         generated by gen-uni-tables.
16999
17000         New module 'unictype/property-cased'.
17001         * modules/unictype/property-cased: New file.
17002         * lib/unictype/pr_cased.c: New file.
17003         * lib/unictype/pr_cased.h: New file, automatically generated by
17004         gen-uni-tables.
17005         * modules/unictype/property-cased-tests: New file.
17006         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17007         gen-uni-tables.
17008
17009 2011-01-09  Bruno Haible  <bruno@clisp.org>
17010
17011         Update to Unicode 5.2.0.
17012         * lib/gen-uni-tables.c (output_predicate, output_category,
17013         output_combclass, output_bidi_category, output_decimal_digit_test,
17014         output_decimal_digit, output_digit_test, output_digit,
17015         output_numeric_test, output_numeric, output_mirror, output_scripts,
17016         output_scripts_byname, output_blocks, output_ident_category): Fix
17017         comment header.
17018         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17019         get_wbp.
17020         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17021         items.
17022         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17023         Changes_When_Lowercased, Changes_When_Uppercased,
17024         Changes_When_Titlecased, Changes_When_Casefolded,
17025         Changes_When_Casemapped.
17026         (is_property_alphabetic, is_property_default_ignorable_code_point):
17027         Update for Unicode 5.2.0.
17028         (is_property_cased, is_property_case_ignorable,
17029         is_property_changes_when_lowercased,
17030         is_property_changes_when_uppercased,
17031         is_property_changes_when_titlecased,
17032         is_property_changes_when_casefolded,
17033         is_property_changes_when_casemapped): New functions.
17034         (output_properties): Output also the properties cased, case_ignorable,
17035         changes_when_lowercased, changes_when_uppercased,
17036         changes_when_titlecased, changes_when_casefolded,
17037         changes_when_casemapped.
17038         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17039         Unicode TR#11 revision 17 -> 19.
17040         (LBP_CP): New enumeration value.
17041         (LBP_*): Adjust values accordingly.
17042         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17043         TR#14 revision 22 -> 24.
17044         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17045         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17046         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17047         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17048         is_WBP_MIDLETTER.
17049         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17050         the code1 and code2 of each composition rule.
17051         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17052         * lib/unicase/ignorable.h: Likewise.
17053         * lib/unicase/tocasefold.h: Likewise.
17054         * lib/unicase/tolower.h: Likewise.
17055         * lib/unicase/totitle.h: Likewise.
17056         * lib/unicase/toupper.h: Likewise.
17057         * lib/unictype/bidi_of.h: Likewise.
17058         * lib/unictype/blocks.h: Likewise.
17059         * lib/unictype/categ_C.h: Likewise.
17060         * lib/unictype/categ_Cf.h: Likewise.
17061         * lib/unictype/categ_Cn.h: Likewise.
17062         * lib/unictype/categ_L.h: Likewise.
17063         * lib/unictype/categ_Ll.h: Likewise.
17064         * lib/unictype/categ_Lm.h: Likewise.
17065         * lib/unictype/categ_Lo.h: Likewise.
17066         * lib/unictype/categ_Lu.h: Likewise.
17067         * lib/unictype/categ_M.h: Likewise.
17068         * lib/unictype/categ_Mc.h: Likewise.
17069         * lib/unictype/categ_Mn.h: Likewise.
17070         * lib/unictype/categ_N.h: Likewise.
17071         * lib/unictype/categ_Nd.h: Likewise.
17072         * lib/unictype/categ_Nl.h: Likewise.
17073         * lib/unictype/categ_No.h: Likewise.
17074         * lib/unictype/categ_P.h: Likewise.
17075         * lib/unictype/categ_Pd.h: Likewise.
17076         * lib/unictype/categ_Po.h: Likewise.
17077         * lib/unictype/categ_S.h: Likewise.
17078         * lib/unictype/categ_Sc.h: Likewise.
17079         * lib/unictype/categ_So.h: Likewise.
17080         * lib/unictype/categ_of.h: Likewise.
17081         * lib/unictype/combining.h: Likewise.
17082         * lib/unictype/ctype_alnum.h: Likewise.
17083         * lib/unictype/ctype_alpha.h: Likewise.
17084         * lib/unictype/ctype_graph.h: Likewise.
17085         * lib/unictype/ctype_lower.h: Likewise.
17086         * lib/unictype/ctype_print.h: Likewise.
17087         * lib/unictype/ctype_punct.h: Likewise.
17088         * lib/unictype/ctype_upper.h: Likewise.
17089         * lib/unictype/decdigit.h: Likewise.
17090         * lib/unictype/digit.h: Likewise.
17091         * lib/unictype/numeric.h: Likewise.
17092         * lib/unictype/pr_alphabetic.h: Likewise.
17093         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17094         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17095         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17096         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17097         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17098         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17099         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17100         * lib/unictype/pr_combining.h: Likewise.
17101         * lib/unictype/pr_composite.h: Likewise.
17102         * lib/unictype/pr_currency_symbol.h: Likewise.
17103         * lib/unictype/pr_dash.h: Likewise.
17104         * lib/unictype/pr_decimal_digit.h: Likewise.
17105         * lib/unictype/pr_deprecated.h: Likewise.
17106         * lib/unictype/pr_diacritic.h: Likewise.
17107         * lib/unictype/pr_extender.h: Likewise.
17108         * lib/unictype/pr_grapheme_base.h: Likewise.
17109         * lib/unictype/pr_grapheme_extend.h: Likewise.
17110         * lib/unictype/pr_grapheme_link.h: Likewise.
17111         * lib/unictype/pr_id_continue.h: Likewise.
17112         * lib/unictype/pr_id_start.h: Likewise.
17113         * lib/unictype/pr_ideographic.h: Likewise.
17114         * lib/unictype/pr_ignorable_control.h: Likewise.
17115         * lib/unictype/pr_logical_order_exception.h: Likewise.
17116         * lib/unictype/pr_lowercase.h: Likewise.
17117         * lib/unictype/pr_numeric.h: Likewise.
17118         * lib/unictype/pr_other_alphabetic.h: Likewise.
17119         * lib/unictype/pr_punctuation.h: Likewise.
17120         * lib/unictype/pr_sentence_terminal.h: Likewise.
17121         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17122         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17123         * lib/unictype/pr_unified_ideograph.h: Likewise.
17124         * lib/unictype/pr_uppercase.h: Likewise.
17125         * lib/unictype/pr_xid_continue.h: Likewise.
17126         * lib/unictype/pr_xid_start.h: Likewise.
17127         * lib/unictype/pr_zero_width.h: Likewise.
17128         * lib/unictype/scripts.h: Likewise.
17129         * lib/unictype/scripts_byname.gperf: Likewise.
17130         * lib/unictype/sy_java_ident.h: Likewise.
17131         * lib/unigbrk/gbrkprop.h: Likewise.
17132         * lib/unilbrk/lbrkprop1.h: Likewise.
17133         * lib/unilbrk/lbrkprop2.h: Likewise.
17134         * lib/unilbrk/lbrktables.h: Likewise.
17135         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17136         LBP_CP. Implement rule LB30.
17137         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17138         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17139         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17140         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17141         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17142         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17143         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17144         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17145         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17146         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17147         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17148         bits instead of 16 bits in the code1 and code2 of each composition
17149         rule.
17150         (uc_composition): Update for Unicode 5.2.0.
17151         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17152         * lib/uninorm/decomposition-table2.h: Likewise.
17153         * lib/uniwbrk/wbrkprop.h: Likewise.
17154         * tests/unicase/test-cased.c: Likewise.
17155         * tests/unicase/test-ignorable.c: Likewise.
17156         * tests/unicase/test-uc_tolower.c: Likewise.
17157         * tests/unicase/test-uc_totitle.c: Likewise.
17158         * tests/unicase/test-uc_toupper.c: Likewise.
17159         * tests/unictype/test-categ_C.c: Likewise.
17160         * tests/unictype/test-categ_Cf.c: Likewise.
17161         * tests/unictype/test-categ_Cn.c: Likewise.
17162         * tests/unictype/test-categ_L.c: Likewise.
17163         * tests/unictype/test-categ_Ll.c: Likewise.
17164         * tests/unictype/test-categ_Lm.c: Likewise.
17165         * tests/unictype/test-categ_Lo.c: Likewise.
17166         * tests/unictype/test-categ_Lu.c: Likewise.
17167         * tests/unictype/test-categ_M.c: Likewise.
17168         * tests/unictype/test-categ_Mc.c: Likewise.
17169         * tests/unictype/test-categ_Mn.c: Likewise.
17170         * tests/unictype/test-categ_N.c: Likewise.
17171         * tests/unictype/test-categ_Nd.c: Likewise.
17172         * tests/unictype/test-categ_Nl.c: Likewise.
17173         * tests/unictype/test-categ_No.c: Likewise.
17174         * tests/unictype/test-categ_P.c: Likewise.
17175         * tests/unictype/test-categ_Pd.c: Likewise.
17176         * tests/unictype/test-categ_Po.c: Likewise.
17177         * tests/unictype/test-categ_S.c: Likewise.
17178         * tests/unictype/test-categ_Sc.c: Likewise.
17179         * tests/unictype/test-categ_So.c: Likewise.
17180         * tests/unictype/test-ctype_alnum.c: Likewise.
17181         * tests/unictype/test-ctype_alpha.c: Likewise.
17182         * tests/unictype/test-ctype_graph.c: Likewise.
17183         * tests/unictype/test-ctype_lower.c: Likewise.
17184         * tests/unictype/test-ctype_print.c: Likewise.
17185         * tests/unictype/test-ctype_punct.c: Likewise.
17186         * tests/unictype/test-ctype_upper.c: Likewise.
17187         * tests/unictype/test-decdigit.h: Likewise.
17188         * tests/unictype/test-digit.h: Likewise.
17189         * tests/unictype/test-numeric.h: Likewise.
17190         * tests/unictype/test-pr_alphabetic.c: Likewise.
17191         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17192         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17193         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17194         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17195         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17196         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17197         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17198         * tests/unictype/test-pr_combining.c: Likewise.
17199         * tests/unictype/test-pr_composite.c: Likewise.
17200         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17201         * tests/unictype/test-pr_dash.c: Likewise.
17202         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17203         * tests/unictype/test-pr_deprecated.c: Likewise.
17204         * tests/unictype/test-pr_diacritic.c: Likewise.
17205         * tests/unictype/test-pr_extender.c: Likewise.
17206         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17207         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17208         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17209         * tests/unictype/test-pr_id_continue.c: Likewise.
17210         * tests/unictype/test-pr_id_start.c: Likewise.
17211         * tests/unictype/test-pr_ideographic.c: Likewise.
17212         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17213         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17214         * tests/unictype/test-pr_lowercase.c: Likewise.
17215         * tests/unictype/test-pr_numeric.c: Likewise.
17216         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17217         * tests/unictype/test-pr_punctuation.c: Likewise.
17218         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17219         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17220         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17221         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17222         * tests/unictype/test-pr_uppercase.c: Likewise.
17223         * tests/unictype/test-pr_xid_continue.c: Likewise.
17224         * tests/unictype/test-pr_xid_start.c: Likewise.
17225         * tests/unictype/test-pr_zero_width.c: Likewise.
17226         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17227         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17228         changed behaviour: line breaking is now disallowed between a letter
17229         or '=' and '('.
17230         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17231         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17232         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17233         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17234         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17235         lib/uniwidth/width.c.
17236         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17237         without comments, but with the original copyright notice.
17238         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17239         changes.
17240         * lib/unictype/categ_Cc.h: Likewise.
17241         * lib/unictype/categ_Co.h: Likewise.
17242         * lib/unictype/categ_Cs.h: Likewise.
17243         * lib/unictype/categ_Lt.h: Likewise.
17244         * lib/unictype/categ_Me.h: Likewise.
17245         * lib/unictype/categ_Pc.h: Likewise.
17246         * lib/unictype/categ_Pe.h: Likewise.
17247         * lib/unictype/categ_Pf.h: Likewise.
17248         * lib/unictype/categ_Pi.h: Likewise.
17249         * lib/unictype/categ_Ps.h: Likewise.
17250         * lib/unictype/categ_Sk.h: Likewise.
17251         * lib/unictype/categ_Sm.h: Likewise.
17252         * lib/unictype/categ_Z.h: Likewise.
17253         * lib/unictype/categ_Zl.h: Likewise.
17254         * lib/unictype/categ_Zp.h: Likewise.
17255         * lib/unictype/categ_Zs.h: Likewise.
17256         * lib/unictype/ctype_blank.h: Likewise.
17257         * lib/unictype/ctype_cntrl.h: Likewise.
17258         * lib/unictype/ctype_digit.h: Likewise.
17259         * lib/unictype/ctype_space.h: Likewise.
17260         * lib/unictype/ctype_xdigit.h: Likewise.
17261         * lib/unictype/mirror.h: Likewise.
17262         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17263         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17264         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17265         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17266         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17267         * lib/unictype/pr_bidi_control.h: Likewise.
17268         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17269         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17270         * lib/unictype/pr_bidi_pdf.h: Likewise.
17271         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17272         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17273         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17274         * lib/unictype/pr_format_control.h: Likewise.
17275         * lib/unictype/pr_hex_digit.h: Likewise.
17276         * lib/unictype/pr_hyphen.h: Likewise.
17277         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17278         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17279         * lib/unictype/pr_iso_control.h: Likewise.
17280         * lib/unictype/pr_join_control.h: Likewise.
17281         * lib/unictype/pr_left_of_pair.h: Likewise.
17282         * lib/unictype/pr_line_separator.h: Likewise.
17283         * lib/unictype/pr_math.h: Likewise.
17284         * lib/unictype/pr_non_break.h: Likewise.
17285         * lib/unictype/pr_not_a_character.h: Likewise.
17286         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17287         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17288         * lib/unictype/pr_other_id_continue.h: Likewise.
17289         * lib/unictype/pr_other_id_start.h: Likewise.
17290         * lib/unictype/pr_other_lowercase.h: Likewise.
17291         * lib/unictype/pr_other_math.h: Likewise.
17292         * lib/unictype/pr_other_uppercase.h: Likewise.
17293         * lib/unictype/pr_paired_punctuation.h: Likewise.
17294         * lib/unictype/pr_paragraph_separator.h: Likewise.
17295         * lib/unictype/pr_pattern_syntax.h: Likewise.
17296         * lib/unictype/pr_pattern_white_space.h: Likewise.
17297         * lib/unictype/pr_private_use.h: Likewise.
17298         * lib/unictype/pr_quotation_mark.h: Likewise.
17299         * lib/unictype/pr_radical.h: Likewise.
17300         * lib/unictype/pr_soft_dotted.h: Likewise.
17301         * lib/unictype/pr_space.h: Likewise.
17302         * lib/unictype/pr_titlecase.h: Likewise.
17303         * lib/unictype/pr_variation_selector.h: Likewise.
17304         * lib/unictype/pr_white_space.h: Likewise.
17305         * lib/unictype/sy_c_ident.h: Likewise.
17306         * lib/unictype/sy_c_whitespace.h: Likewise.
17307         * lib/unictype/sy_java_whitespace.h: Likewise.
17308         * modules/uni*/*: Bump version number of expected libunistring version.
17309         Reported by Simon Josefsson.
17310
17311 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17312
17313         useless-if-before-free: fix typo in --help and make the internal,
17314         automatic version date update process work once again.
17315         --help output contained a NUL character instead of the
17316         backslash-zero that was intended.  Also, the "must lie within
17317         the first 8 lines" line is on line 9, and hence not getting
17318         automatically updated.
17319         * build-aux/useless-if-before-free: Fix the former by adding a
17320         backslash, and the latter by condensing the three lines of what-it-does
17321         to a single line, leaving one line of slack for the future.
17322
17323 2011-01-09  Bruno Haible  <bruno@clisp.org>
17324
17325         uniwidth/width: Fix width of U+1D173..U+1D17A.
17326         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17327         symbolic_width, output_width_property_test): New functions.
17328         (main): Invoke output_nonspacing_property, output_width_property_test.
17329         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17330         U+1D173..U+1D17A.
17331         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17332         1.
17333         * modules/uniwidth/*: Bump version number of expected libunistring
17334         version.
17335         * modules/unilbrk/*: Likewise.
17336
17337 2011-01-08  Bruno Haible  <bruno@clisp.org>
17338
17339         uninorm tests: Preserve copyright of Unicode data file.
17340         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17341         Mention modifications.
17342
17343 2011-01-08  Bruno Haible  <bruno@clisp.org>
17344
17345         gen-uni-tables: Prepare for Unicode 5.2.0.
17346         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17347         (debug_output_lbp, output_lbp): Update.
17348
17349 2011-01-08  Bruno Haible  <bruno@clisp.org>
17350
17351         unilbrk: Clarify gen-uni-tables.c code.
17352         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17353         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17354         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17355
17356 2011-01-07  Bruno Haible  <bruno@clisp.org>
17357
17358         strtod: Restore errno when successfully parsing Infinity or NaN.
17359         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17360         restore the original errno.
17361
17362 2011-01-07  Bruno Haible  <bruno@clisp.org>
17363
17364         remove test: Avoid failure on HP-UX 11.
17365         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17366
17367 2011-01-07  Bruno Haible  <bruno@clisp.org>
17368
17369         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17370         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17371         error code.
17372
17373 2011-01-07  Pádraig Brady <P@draigBrady.com>
17374
17375         ignore-value: fixup comments, and add Eric Blake
17376         as an author since he rewrote the macros.
17377         * lib/ignore-value.h (ignore_value):  State that
17378         we now support aggregates.  Also specify exactly
17379         when the GCC warn_unused_result feature was added.
17380
17381 2011-01-06  Eric Blake  <eblake@redhat.com>
17382
17383         ignore-value: support aggregate types
17384         * lib/ignore-value.h (ignore_value): Provide separate gcc
17385         definition.
17386         * modules/ignore-value-tests: New test module.
17387         * tests/test-ignore-value.c: New test.
17388
17389         maint.mk: improve sc_prohibit_strcmp regex
17390         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17391         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17392         definition of STRNEQ.
17393
17394         signal: work around Haiku issue with SIGBUS
17395         * lib/siglist.h: Add comment.
17396         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17397         strsignal's favoring of SIGSEGV.
17398         * tests/test-signal.c (main): Avoid test failure.
17399         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17400         Reported by Scott McCreary.
17401
17402         maint.mk: add pre-release check to ensure submodule commits are public
17403         * top/maint.mk (public-submodule-commit): New rule.
17404         (submodule-checks): New variable.
17405         (alpha beta stable): Depend on the variable.
17406
17407 2011-01-05  Pádraig Brady <P@draigBrady.com>
17408         and Jim Meyering  <meyering@redhat.com>
17409
17410         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17411         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17412         (ATTRIBUTE_DEPRECATED): Define.
17413         (_ignore_case): New function.
17414         (ignore_value): New macro, to replace the old function.
17415         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17416         * modules/ignore-value (Depends-on): Add stdint.
17417
17418 2011-01-04  Eric Blake  <eblake@redhat.com>
17419
17420         doc: regenerate INSTALL
17421         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17422         @firstparagraphindent support, now that autoconf dropped it.
17423         (INSTALL_PRELUDE): Reinstate old macro.
17424         * doc/install.texi: Resync from autoconf.
17425         * doc/INSTALL: Reflect recent autoconf update.
17426         * doc/INSTALL.ISO: Likewise.
17427         * doc/INSTALL.UTF-8: Likewise.
17428         Reported by Karl Berry.
17429
17430 2011-01-04  Bruce Korb  <address@hidden>
17431
17432         git-version-gen: avoid a sub-shell
17433         * build-aux/git-version-gen: Redirect stderr in `...` via
17434         "exec 2>...", rather than via an added sub-shell.
17435
17436 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17437
17438         git-version-gen: use (...) rather than sh -c '...'
17439         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17440         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17441
17442 2011-01-03  Jim Meyering  <meyering@redhat.com>
17443
17444         git-version-gen: convert leading TABs to spaces
17445         * build-aux/git-version-gen: Expand leading TABs.
17446
17447         git-version-gen: handle failed "git rev-list"
17448         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17449         from git and proceeding as if it had succeeded but printed no SHA1
17450         checksums, suppress the diagnostic and handle the failure.
17451         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17452
17453         git-version-gen: include command name in one more diagnostic
17454         * build-aux/git-version-gen: When the required .tarball-version file
17455         was missing or unreadable, you might see the diagnostic from "cat",
17456         but no trace of the name of the invoking script.  Now, you still see
17457         the diagnostic from cat, but also get one from "git-version-gen: ".
17458         Inspired by a patch from Bruce Korb.
17459
17460         update-copyright: adjust test to match changed code
17461         * tests/test-update-copyright.sh: Change test's expected output
17462         to match new actual output.
17463
17464 2011-01-02  Bruno Haible  <bruno@clisp.org>
17465
17466         getlogin_r: Avoid test failure on HP-UX 11.
17467         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17468         ERANGE when the second argument is zero.
17469         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17470         portability problem.
17471
17472 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17473
17474         * build-aux/update-copyright: doc Simon's changes
17475
17476 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17477
17478         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17479         environment variable.
17480
17481 2011-01-02  Bruno Haible  <bruno@clisp.org>
17482
17483         unigbrk: Avoid gcc warnings.
17484         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17485         unused variable.
17486         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17487         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17488         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17489         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17490         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17491         Change type of first argument to 'const char *'.
17492         (main): Remove unused variable.
17493         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17494         type of first argument to 'const char *'.
17495         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17496         Likewise.
17497         (main): Change type of variable 's'.
17498         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17499         to 'int'.
17500
17501 2011-01-02  Bruno Haible  <bruno@clisp.org>
17502
17503         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17504         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17505         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17506         bug.
17507         * lib/pwrite.c: Undo 2010-12-31 patch.
17508         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17509
17510 2011-01-02  Bruno Haible  <bruno@clisp.org>
17511
17512         pread: Fix test whether it works.
17513         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17514
17515 2011-01-02  Bruno Haible  <bruno@clisp.org>
17516
17517         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17518         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17519         ends in "6". Don't require a specific month name. Try also the locale
17520         names found on HP-UX 11 and Solaris 7.
17521
17522 2011-01-02  Bruno Haible  <bruno@clisp.org>
17523
17524         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17525         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17526         C linkage.
17527         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17528
17529 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17530
17531         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17532         for consistency, since the "cluster" term is not used elsewhere.
17533         * lib/unigbrk.in.h: Update name.
17534         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17535         * lib/unigbrk/u16-grapheme-next.c: Update name.
17536         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17537         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17538         * lib/unigbrk/u32-grapheme-next.c: Update name.
17539         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17540         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17541         * lib/unigbrk/u8-grapheme-next.c: Update name.
17542         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17543         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17544         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17545         Suggested by Bruno Haible.
17546
17547 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17548
17549         Remove module 'u8-grapheme-len' as too redundant with
17550         'u8-grapheme-next'.
17551         * modules/unigbrk/u8-grapheme-len: Delete file.
17552         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17553         * lib/unigbrk.in.h: Remove prototype for deleted function.
17554         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17555         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17556
17557         Remove module 'u16-grapheme-len' as too redundant with
17558         'u16-grapheme-next'.
17559         * modules/unigbrk/u16-grapheme-len: Delete file.
17560         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17561         * lib/unigbrk.in.h: Remove prototype for deleted function.
17562         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17563         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17564
17565         Remove module 'u32-grapheme-len' as too redundant with
17566         'u32-grapheme-next'.
17567         * modules/unigbrk/u32-grapheme-len: Delete file.
17568         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17569         * lib/unigbrk.in.h: Remove prototype for deleted function.
17570         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17571         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17572
17573         Suggested by Bruno Haible.
17574
17575 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17576
17577         * unigbrk.in.h: Fix typo: "ben" => "been".
17578         Reported by Bruno Haible.
17579
17580 2011-01-01  Jim Meyering  <meyering@redhat.com>
17581
17582         maint: update almost all copyright ranges to include 2011
17583         Run the new "make update-copyright" rule.
17584
17585 2011-01-01  Jim Meyering  <meyering@redhat.com>
17586
17587         maint: update-copyright: exempt doc/INSTALL*
17588         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17589         since they are generated.  Suggested by Bruno Haible.
17590
17591 2011-01-01  Jim Meyering  <meyering@redhat.com>
17592
17593         maint: refine the update-copyright rule
17594         * Makefile (update-copyright): Also exclude any file that includes
17595         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17596         code that merely generates the comment.
17597
17598 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17599
17600         New module 'u8-grapheme-len'.
17601         * modules/unigbrk/u8-grapheme-len: New file.
17602         * modules/unigbrk/u8-grapheme-len-tests: New file.
17603         * lib/unigbrk.in.h: Add prototype for new function.
17604         * lib/unigbrk/u8-grapheme-len.c: New file.
17605         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17606
17607         New module 'u16-grapheme-len'.
17608         * modules/unigbrk/u16-grapheme-len: New file.
17609         * modules/unigbrk/u16-grapheme-len-tests: New file.
17610         * lib/unigbrk.in.h: Add prototype for new function.
17611         * lib/unigbrk/u16-grapheme-len.c: New file.
17612         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17613
17614         New module 'u32-grapheme-len'.
17615         * modules/unigbrk/u32-grapheme-len: New file.
17616         * modules/unigbrk/u32-grapheme-len-tests: New file.
17617         * lib/unigbrk.in.h: Add prototype for new function.
17618         * lib/unigbrk/u32-grapheme-len.c: New file.
17619         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17620
17621         New module 'u8-grapheme-next'.
17622         * modules/unigbrk/u8-grapheme-next: New file.
17623         * modules/unigbrk/u8-grapheme-next-tests: New file.
17624         * lib/unigbrk.in.h: Add prototype for new function.
17625         * lib/unigbrk/u8-grapheme-next.c: New file.
17626         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17627
17628         New module 'u16-grapheme-next'.
17629         * modules/unigbrk/u16-grapheme-next: New file.
17630         * modules/unigbrk/u16-grapheme-next-tests: New file.
17631         * lib/unigbrk.in.h: Add prototype for new function.
17632         * lib/unigbrk/u16-grapheme-next.c: New file.
17633         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17634
17635         New module 'u32-grapheme-next'.
17636         * modules/unigbrk/u32-grapheme-next: New file.
17637         * modules/unigbrk/u32-grapheme-next-tests: New file.
17638         * lib/unigbrk.in.h: Add prototype for new function.
17639         * lib/unigbrk/u32-grapheme-next.c: New file.
17640         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17641
17642         New module 'u8-grapheme-prev'.
17643         * modules/unigbrk/u8-grapheme-prev: New file.
17644         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17645         * lib/unigbrk.in.h: Add prototype for new function.
17646         * lib/unigbrk/u8-grapheme-prev.c: New file.
17647         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17648
17649         New module 'u16-grapheme-prev'.
17650         * modules/unigbrk/u16-grapheme-prev: New file.
17651         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17652         * lib/unigbrk.in.h: Add prototype for new function.
17653         * lib/unigbrk/u16-grapheme-prev.c: New file.
17654         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17655
17656         New module 'u32-grapheme-prev'.
17657         * modules/unigbrk/u32-grapheme-prev: New file.
17658         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17659         * lib/unigbrk.in.h: Add prototype for new function.
17660         * lib/unigbrk/u32-grapheme-prev.c: New file.
17661         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17662
17663         New module 'u8-grapheme-breaks'.
17664         * modules/unigbrk/u8-grapheme-breaks: New file.
17665         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17666         * lib/unigbrk.in.h: Add prototype for new function.
17667         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17668         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17669
17670         New module 'u16-grapheme-breaks'.
17671         * modules/unigbrk/u16-grapheme-breaks: New file.
17672         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17673         * lib/unigbrk.in.h: Add prototype for new function.
17674         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17675         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17676
17677         New module 'u32-grapheme-breaks'.
17678         * modules/unigbrk/u32-grapheme-breaks: New file.
17679         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17680         * lib/unigbrk.in.h: Add prototype for new function.
17681         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17682         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17683
17684         New module 'ulc-grapheme-breaks'.
17685         * modules/unigbrk/ulc-grapheme-breaks: New file.
17686         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17687         * m4/locale-ar.m4: New file.
17688         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17689         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17690         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17691
17692 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17693
17694         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17695         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17696         modified how this file was generated before I initially submitted
17697         the module, but failed to regenerate it.  This meant that several
17698         of the level2 entries were wrong.
17699         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17700         Remove the division-by-2 that is folded into the table now that
17701         gbrkprop.h has been regenerated properly.  Now -1 entries are
17702         handled correctly.
17703
17704         New module 'unigbrk/uc-gbrk-prop-tests'.
17705         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17706         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17707         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17708         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17709
17710 2011-01-01  Bruno Haible  <bruno@clisp.org>
17711
17712         Avoid use of hexadecimal escapes.
17713         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17714         instead of hexadecimal escapes.
17715
17716 2011-01-01  Jim Meyering  <meyering@redhat.com>
17717
17718         maint: new rule to update copyright year ranges
17719         * Makefile (update-copyright): New rule.
17720
17721         maint: indent with TABs in Makefile
17722         * Makefile: Expand leading sequences of spaces to TABs
17723
17724         version-etc: update the copyright year it reports
17725         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17726
17727 2010-12-31  Bruno Haible  <bruno@clisp.org>
17728
17729         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17730         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17731         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17732         zero.
17733
17734 2010-12-31  Bruno Haible  <bruno@clisp.org>
17735
17736         pwrite: Work around HP-UX 11.11 bug.
17737         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17738         works and set REPLACE_PWRITE if not.
17739         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17740         function.
17741         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17742
17743 2010-12-31  Bruno Haible  <bruno@clisp.org>
17744
17745         pread: Work around HP-UX 11 bugs.
17746         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17747         and set REPLACE_PREAD if not.
17748         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17749
17750 2010-12-31  Eric Blake  <eblake@redhat.com>
17751
17752         nl_langinfo: fix YESEXPR on Irix 6.5
17753         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17754         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17755         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17756         it.
17757
17758 2010-12-31  Bruno Haible  <bruno@clisp.org>
17759
17760         iconv: Document HP-UX 11 bug.
17761         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17762
17763 2010-12-31  Bruno Haible  <bruno@clisp.org>
17764
17765         ldexpl: Fix link error on HP-UX 11.
17766         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17767         LDEXPL_LIBM, using $ISNANL_LIBM.
17768
17769 2010-12-31  Eric Blake  <eblake@redhat.com>
17770
17771         ftello: avoid compilation failure with SunStudio c89
17772         * lib/ftello.c (ftello): Use lseek, not llseek.
17773
17774         tests: avoid failing coreutils tests on cygwin
17775         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17776         (create_exe_shims_): Return 0 when skipping.
17777
17778 2010-12-31  Bruno Haible  <bruno@clisp.org>
17779
17780         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17781         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17782
17783 2010-12-31  Bruno Haible  <bruno@clisp.org>
17784
17785         waitpid: Fix link error in C++ mode.
17786         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17787
17788 2010-12-31  Bruno Haible  <bruno@clisp.org>
17789
17790         isnan: Use GCC built-ins when possible.
17791         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17792         __builtin_isnan.
17793         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17794         (isnan): Define using GCC built-ins for GCC >= 4.0.
17795
17796 2010-12-31  Bruno Haible  <bruno@clisp.org>
17797
17798         isnand: Fix mistake.
17799         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17800         __builtin_isnand.
17801
17802 2010-12-31  Bruno Haible  <bruno@clisp.org>
17803
17804         open: Avoid C++ error on HP-UX 11.
17805         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17806
17807 2010-12-31  Bruno Haible  <bruno@clisp.org>
17808
17809         time_r: Add missing declarations on HP-UX 11.
17810         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17811         instead of HAVE_LOCALTIME_R.
17812         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17813         HAVE_LOCALTIME_R always.
17814         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17815         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17816         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17817         HAVE_LOCALTIME_R.
17818         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17819         * doc/posix-functions/localtime_r.texi: Likewise.
17820
17821 2010-12-29  Eric Blake  <eblake@redhat.com>
17822
17823         mountlist: tweak previous commit
17824         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17825         Reported by Paul Eggert.
17826
17827         mountlist: fix local drive detection on cygwin
17828         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17829         that works for cygwin.
17830
17831 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17832
17833         ftoastr, snprintf: ftoastr + snprintf module
17834         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17835         since the snprintf module now should be good enough here.
17836         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17837         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17838         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17839         GNULIB_SNPRINTF only for the test directory, and the latter
17840         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17841         seems to suffice by itself.
17842
17843 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17844
17845         alloca: one step towards thread-safety
17846         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17847         need for a static variable.  All callers changed.  This does not
17848         make the alloca replacement thread-safe, but it's one step.
17849
17850         tests: minor indenting change
17851         * tests/init.sh: Sync from coreutils housekeeping patch
17852         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17853         to keep lines within 80 columns.
17854
17855 2010-12-28  Jim Meyering  <meyering@redhat.com>
17856
17857         regex: don't infloop on persistent failing calloc
17858         * lib/regexec.c (build_trtable): Return failure indication upon
17859         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17860         In glibc, this was fixed for version 2.13:
17861         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17862
17863 2010-12-28  Bruno Haible  <bruno@clisp.org>
17864             Paul Eggert <eggert@cs.ucla.edu>
17865
17866         linkat: Make implementation robust against system behaviour variations.
17867         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17868         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17869         way, and to -2 if it needs a generic runtime test.
17870         * lib/linkat.c (solaris_optimized_link_immediate,
17871         solaris_optimized_link_follow): New functions.
17872         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17873         (check_same_link): Use it.
17874
17875 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17876
17877         New module 'unigbrk/base'.
17878         * modules/unigbrk/base: New file.
17879         * lib/unigbrk.in.h: New file.
17880
17881         New module 'unigbrk/uc-gbrk-prop'.
17882         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17883         * modules/unigbrk/uc-gbrk-prop: New file.
17884         * lib/unigbrk/gbrkprop.h: New file.
17885         * lib/unigbrk/uc-gbrk-prop.c: New file.
17886
17887         New module 'unigbrk/uc-is-grapheme-break'.
17888         * modules/unigbrk/uc-is-grapheme-break: New file.
17889         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17890         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17891         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17892         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17893         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17894
17895         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17896
17897 2010-12-27  Bruno Haible  <bruno@clisp.org>
17898
17899         linkat test: Avoid failure on Solaris 11 2010-11.
17900         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17901
17902 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17903
17904         utimens: work around glibc rounding bug on more platforms
17905         * lib/utimens.c (fdutimens): Work around rounding bug even if
17906         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17907         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17908
17909 2010-12-27  Bruno Haible  <bruno@clisp.org>
17910
17911         select tests: Improve comments.
17912         * tests/test-select.c (do_select): Add comments.
17913
17914 2010-12-27  Bruno Haible  <bruno@clisp.org>
17915
17916         select tests: Safer way of handling timeout.
17917         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17918         at every invocation.
17919
17920 2010-12-27  Bruno Haible  <bruno@clisp.org>
17921
17922         select tests: Use 'bool' where appropriate.
17923         * tests/test-select.c (connect_to_socket): Change argument type to
17924         'bool'.
17925
17926 2010-12-27  Bruno Haible  <bruno@clisp.org>
17927
17928         select tests: Use existing modules.
17929         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17930         (configure.ac): Don't test for unistd.h.
17931         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17932         declared in <unistd.h>.
17933
17934 2010-12-27  Bruno Haible  <bruno@clisp.org>
17935
17936         mbrtowc: Work around a Solaris 7 bug.
17937         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17938         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17939         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17940         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17941         MBRTOWC_NULL_ARG1_BUG.
17942         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17943         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17944         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17945         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17946
17947 2010-12-27  Jim Meyering  <meyering@redhat.com>
17948
17949         read-file.c: tweak syntax
17950         * lib/read-file.c (fread_file): Remove space after "*" in function
17951         definitions.
17952
17953 2010-12-27  Bruno Haible  <bruno@clisp.org>
17954
17955         times test: Avoid gcc warnings on OSF/1.
17956         * tests/test-times.c (main): Cast printf arguments from clock_t to
17957         'long int'.
17958
17959 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17960
17961         utimens: work around glibc rounding bug on older Linux kernels
17962         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17963         on Linux with a glibc whose utimes might not work, then work
17964         around a longstanding glibc bug involving rounding rather than
17965         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17966         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17967
17968 2010-12-26  Bruno Haible  <bruno@clisp.org>
17969
17970         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17971         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17972         _GL_CXXALIAS_SYS.
17973         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17974
17975 2010-12-26  Bruno Haible  <bruno@clisp.org>
17976
17977         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17978         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17979         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17980         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17981         looking for the declaration.
17982         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17983         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17984         problem.
17985         * doc/posix-functions/inet_pton.texi: Likewise.
17986
17987 2010-12-26  Bruno Haible  <bruno@clisp.org>
17988
17989         arpa_inet: Use the common idioms with C++ support.
17990         * lib/arpa_inet.in.h: Include c++defs.h.
17991         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17992         support.
17993         * modules/arpa_inet (Depends-on): Add c++defs.
17994         (Makefile.am): Substitute the contents of c++defs.h.
17995         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17996         * modules/arpa_inet-c++-tests: New file.
17997         * tests/test-arpa_inet-c++.cc: New file.
17998
17999 2010-12-25  Bruno Haible  <bruno@clisp.org>
18000
18001         Fix more C++ link errors on Solaris 8.
18002         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18003         $(LIB_EACCESS).
18004         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18005         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18006         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18007         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18008         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18009
18010 2010-12-25  Bruno Haible  <bruno@clisp.org>
18011
18012         printf-posix: Fix link error when a non-GCC compiler is used.
18013         * lib/stdio.in.h (printf): When not using GCC, override printf
18014         correctly.
18015         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18016
18017 2010-12-25  Bruno Haible  <bruno@clisp.org>
18018
18019         strerror_r-posix: Update doc.
18020         * doc/posix-functions/strerror_r.texi: Update doc about the return
18021         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18022
18023 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18024
18025         utimens: simplify the logic of the previous change
18026         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18027         This should not affect whether the test succeeds or fails.
18028
18029         utimens: configure better on hosts with NFS clock skew
18030         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18031         uses the clock of the local host.  It might use the clock of the
18032         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18033         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18034
18035 2010-12-25  Bruno Haible  <bruno@clisp.org>
18036
18037         ptsname test: Avoid failure on Solaris.
18038         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18039         open a pseudo-terminal; don't use BSD-style ptys.
18040         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18041
18042 2010-12-25  Bruno Haible  <bruno@clisp.org>
18043
18044         ptsname: Avoid ERANGE failure on some systems.
18045         * lib/ptsname.c (buffer): Increase size.
18046
18047 2010-12-25  Bruno Haible  <bruno@clisp.org>
18048
18049         rename, renameat: Avoid test failures at NFS mounted locations.
18050         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18051         so that subsequent mkdir calls succeed.
18052
18053 2010-12-25  Bruno Haible  <bruno@clisp.org>
18054
18055         iswblank: Fix C++ link error on Solaris 8.
18056         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18057         _GL_FUNCDECL_SYS.
18058
18059 2010-12-25  Bruno Haible  <bruno@clisp.org>
18060
18061         unistd: Fix C++ link error on Solaris 8.
18062         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18063
18064 2010-12-25  Bruno Haible  <bruno@clisp.org>
18065
18066         readlink doc: Mention an old glibc bug.
18067         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18068
18069 2010-12-25  Bruno Haible  <bruno@clisp.org>
18070
18071         fcntl-h: Fix for use of C++ on glibc systems.
18072         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18073         also on glibc systems in C++ mode.
18074         Reported by Gary V. Vaughan <gary@gnu.org>.
18075
18076 2010-12-25  Bruno Haible  <bruno@clisp.org>
18077
18078         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18079         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18080
18081 2010-12-25  Bruno Haible  <bruno@clisp.org>
18082
18083         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18084         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18085         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18086         test whether truncl works according to ISO C 99 with IEC 60559.
18087         * m4/truncl-ieee.m4: New file.
18088         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18089         m4/signbit.m4.
18090         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18091
18092 2010-12-25  Bruno Haible  <bruno@clisp.org>
18093
18094         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18095         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18096         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18097         test whether ceill works according to ISO C 99 with IEC 60559.
18098         * m4/ceill-ieee.m4: New file.
18099         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18100         m4/signbit.m4.
18101         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18102
18103 2010-12-25  Bruno Haible  <bruno@clisp.org>
18104
18105         Ensure all prerequisites of <wchar.h> are included.
18106         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18107         before <wchar.h>.
18108         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18109         gl_MBRLEN_NUL_RETVAL): Likewise.
18110         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18111         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18112         AC_FUNC_MBRTOWC): Likewise.
18113         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18114         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18115         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18116         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18117         Likewise.
18118         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18119         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18120         (gl_WCHAR_H): Improve comments.
18121         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18122
18123 2010-12-25  Bruno Haible  <bruno@clisp.org>
18124
18125         strtok_r: Fix C syntax error in autoconf macro.
18126         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18127         characters in test program.
18128
18129 2010-12-24  Bruno Haible  <bruno@clisp.org>
18130
18131         ceil, trunc, round: Fix gcc warnings.
18132         * lib/ceil.c (MIN): Undefine before redefining.
18133         * lib/trunc.c (MIN): Likewise.
18134         * lib/round.c (MIN): Likewise.
18135         Include <math.h> first.
18136
18137 2010-12-24  Bruno Haible  <bruno@clisp.org>
18138
18139         select tests: Avoid failures on OSF/1 5.1.
18140         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18141         failure of closing the last socket; it may fail with ECONNRESET.
18142
18143 2010-12-24  Eric Blake  <eblake@redhat.com>
18144
18145         stdint: avoid HP-UX 10.20 preprocessor bug
18146         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18147         than #if.
18148         * tests/test-floor2.c (main): Likewise.
18149         Reported by Peter O'Gorman.
18150
18151         pipe: make obsoletion transition easier
18152         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18153         * modules/pipe (Files): Include revived file.
18154         (Include): Drop reference, to mirror getdate's behavior.
18155
18156 2010-12-24  Bruno Haible  <bruno@clisp.org>
18157
18158         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18159         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18160         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18161         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18162
18163 2010-12-24  Bruno Haible  <bruno@clisp.org>
18164
18165         gethostname: Ensure declaration on NonStop Kernel.
18166         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18167         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18168
18169 2010-12-24  Bruno Haible  <bruno@clisp.org>
18170
18171         sys_select: Ensure all necessary types on NonStop Kernel.
18172         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18173         include <sys/time.h>.
18174         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18175         NonStop Kernel.
18176         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18177
18178 2010-12-24  Bruno Haible  <bruno@clisp.org>
18179
18180         sys_select: Remove unneeded include.
18181         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18182         have <sys/select.h>.
18183
18184 2010-12-24  Bruno Haible  <bruno@clisp.org>
18185
18186         gethostname: Provide a fallback for HOST_NAME_MAX.
18187         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18188         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18189         instead.
18190         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18191
18192 2010-12-24  Bruno Haible  <bruno@clisp.org>
18193
18194         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18195         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18196         (SA_RESTART): Likewise.
18197         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18198
18199 2010-12-24  Bruno Haible  <bruno@clisp.org>
18200
18201         signal: Define NSIG.
18202         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18203         * tests/test-signal.c (nsig): New variable.
18204         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18205
18206 2010-12-24  Bruno Haible  <bruno@clisp.org>
18207
18208         rename, renameat: Avoid test failures on OSF/1 5.1.
18209         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18210         alternative error codes.
18211         * tests/test-renameat.c (main): Likewise.
18212
18213 2010-12-24  Bruno Haible  <bruno@clisp.org>
18214
18215         *printf: Detect large precisions bug on Solaris 10/SPARC.
18216         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18217         by Paul Eggert.
18218         * tests/test-snprintf-posix.h (test_function): Add this test code here
18219         too.
18220         * tests/test-sprintf-posix.h (test_function): Likewise.
18221         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18222         * tests/test-vasprintf-posix.c (test_function): Likewise.
18223         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18224         around by gnulib.
18225         * doc/posix-functions/printf.texi: Likewise.
18226         * doc/posix-functions/snprintf.texi: Likewise.
18227         * doc/posix-functions/sprintf.texi: Likewise.
18228         * doc/posix-functions/vfprintf.texi: Likewise.
18229         * doc/posix-functions/vprintf.texi: Likewise.
18230         * doc/posix-functions/vsnprintf.texi: Likewise.
18231         * doc/posix-functions/vsprintf.texi: Likewise.
18232         * doc/posix-functions/dprintf.texi: Undo last commit.
18233         * doc/posix-functions/vdprintf.texi: Likewise.
18234
18235 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18236
18237         tests: port test-fdutimensat.c to Solaris 8
18238         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18239         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18240         On Solaris 8, it fails with errno == ENOSYS, because there is no
18241         futimens (so it can't use the fd), and there is no lutimens (so it
18242         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18243
18244         vsnprintf: make more consistent with snprintf; doc fixes
18245
18246         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18247         the byte count return problem was promoted from the snprintf-posix
18248         to the snprintf module.
18249         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18250         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18251         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18252         * tests/test-snprintf.c (main): Check the byte count returned.
18253         * tests/test-vsnprintf.c (main): Likewise.
18254
18255 2010-12-23  Eric Blake  <eblake@redhat.com>
18256
18257         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18258         * modules/sigpipe (License): Relax license.
18259
18260 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18261
18262         doc: document Solaris printf bug with large float precisions
18263         * doc/posix-functions/dprintf.texi (dprintf):
18264         * doc/posix-functions/fprintf.texi (fprintf):
18265         * doc/posix-functions/printf.texi (printf):
18266         * doc/posix-functions/snprintf.texi (snprintf):
18267         * doc/posix-functions/sprintf.texi (sprintf):
18268         * doc/posix-functions/vdprintf.texi (vdprintf):
18269         * doc/posix-functions/vfprintf.texi (vfprintf):
18270         * doc/posix-functions/vprintf.texi (vprintf):
18271         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18272         * doc/posix-functions/vsprintf.texi (vsprintf):
18273         Mention that these functions mishandle large floating point
18274         precisions on Solaris 10.  The same bug is also present in Solaris
18275         8, and I assume earlier.  This causes "cd gnulib-tests; make
18276         check" to fail on Solaris 8 (and I assume, later) when building
18277         the latest coreutils, in test-vasprintf-posix's call to
18278         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18279         the wide flavors (e.g., wprintf) so this patch just updates the
18280         documentation for the narrow ones.
18281
18282         test-posixtm.c: add two tests
18283         * tests/test-posixtm.c: Add two tests, to highlight the
18284         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18285         around this bug; this is merely to document it.
18286
18287 2010-12-22  Bruno Haible  <bruno@clisp.org>
18288
18289         getlogin_r: Work around portability problem on OSF/1.
18290         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18291         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18292         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18293         test for a truncated result.
18294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18295         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18296         * modules/getlogin_r (Depends-on): Add memchr.
18297         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18298
18299 2010-12-22  Bruno Haible  <bruno@clisp.org>
18300
18301         ptsname: Avoid test failure on OSF/1 5.1.
18302         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18303         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18304         (same_slave): New function.
18305         (main): Use it to compare ptsname's result with the expected file name.
18306
18307 2010-12-22  Bruno Haible  <bruno@clisp.org>
18308
18309         Port extended stdio modules to HP NonStop Kernel.
18310         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18311         macros.
18312         * lib/fbufmode.c: Update comments.
18313         * lib/fflush.c: Likewise.
18314         * lib/fpurge.c: Likewise.
18315         * lib/freadable.c: Likewise.
18316         * lib/freadahead.c: Likewise.
18317         * lib/freading.c: Likewise.
18318         * lib/freadptr.c: Likewise.
18319         * lib/freadseek.c: Likewise.
18320         * lib/fseeko.c: Likewise.
18321         * lib/fseterr.c: Likewise.
18322         * lib/fwritable.c: Likewise.
18323         * lib/fwriting.c: Likewise.
18324         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18325
18326 2010-12-22  Bruno Haible  <bruno@clisp.org>
18327
18328         ttyname_r: Work around bug on OSF/1 5.1.
18329         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18330         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18331         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18332         present.
18333         * lib/ttyname_r.c (ttyname_r): Update comments.
18334
18335 2010-12-22  Bruno Haible  <bruno@clisp.org>
18336
18337         round: Implement result sign according to IEEE 754.
18338         * lib/round.c (MIN, MINUS_ZERO): New macros.
18339         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18340         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18341         * tests/test-round-ieee.c (main): Likewise.
18342         * tests/test-roundl-ieee.c (main): Likewise.
18343
18344         trunc: Implement result sign according to IEEE 754.
18345         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18346         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18347         * tests/test-trunc2.c: Include minus-zero.h.
18348         (MINUS_ZERO): New macro.
18349         (trunc_reference): Keep in sync with lib/trunc.c.
18350         * tests/test-truncf2.c: Include minus-zero.h.
18351         (MINUS_ZERO): New macro.
18352         (truncf_reference): Keep in sync with lib/trunc.c.
18353         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18354         * tests/test-trunc-ieee.c (main): Likewise.
18355         * tests/test-truncl-ieee.c (main): Likewise.
18356
18357         ceil: Implement result sign according to IEEE 754.
18358         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18359         (FUNC): Return -0.0 for -1 < x < 0.
18360         * tests/test-ceil2.c: Include minus-zero.h.
18361         (MINUS_ZERO): New macro.
18362         (ceil_reference): Keep in sync with lib/ceil.c.
18363         * tests/test-ceilf2.c: Include minus-zero.h.
18364         (MINUS_ZERO): New macro.
18365         (ceilf_reference): Keep in sync with lib/ceil.c.
18366         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18367         * tests/test-ceil-ieee.c (main): Likewise.
18368         * tests/test-ceill-ieee.c (main): Likewise.
18369
18370         floor: Implement result sign according to IEEE 754.
18371         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18372         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18373         * tests/test-floorf2.c (floorf_reference): Likewise.
18374         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18375         * tests/test-floor-ieee.c (main): Likewise.
18376         * tests/test-floorl-ieee.c (main): Likewise.
18377
18378 2010-12-22  Bruno Haible  <bruno@clisp.org>
18379
18380         getaddrinfo: Update doc.
18381         * doc/posix-functions/gai_strerror.texi: Return type is also different
18382         on AIX and HP-UX.
18383
18384 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18385
18386         getaddrinfo, inet_ntop: Update doc for Solaris.
18387         * doc/posix-functions/gai_strerror.texi: Return type is also an
18388         issue on Solaris 9 and earlier.
18389         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18390         on Solaris 10 and earlier.
18391
18392 2010-12-21  Bruno Haible  <bruno@clisp.org>
18393
18394         New module 'roundl-ieee'.
18395         * modules/roundl-ieee: New file.
18396         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18397         test whether roundl works according to ISO C 99 with IEC 60559.
18398         * m4/roundl-ieee.m4: New file.
18399         * modules/roundl-ieee-tests: New file.
18400         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18401         * tests/test-roundl.c (main): Remove signbit tests.
18402         * modules/roundl-tests (Depends-on): Remove signbit.
18403         * doc/posix-functions/roundl.texi: Mention the new module.
18404
18405 2010-12-21  Bruno Haible  <bruno@clisp.org>
18406
18407         New module 'truncl-ieee'.
18408         * modules/truncl-ieee: New file.
18409         * modules/truncl-ieee-tests: New file.
18410         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18411         * tests/test-truncl.c (main): Remove signbit tests.
18412         * modules/truncl-tests (Depends-on): Remove signbit.
18413         * doc/posix-functions/truncl.texi: Mention the new module.
18414
18415 2010-12-21  Bruno Haible  <bruno@clisp.org>
18416
18417         New module 'ceill-ieee'.
18418         * modules/ceill-ieee: New file.
18419         * modules/ceill-ieee-tests: New file.
18420         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18421         * tests/test-ceill.c (main): Remove signbit tests.
18422         * modules/ceill-tests (Depends-on): Remove signbit.
18423         * doc/posix-functions/ceill.texi: Mention the new module.
18424
18425 2010-12-21  Bruno Haible  <bruno@clisp.org>
18426
18427         New module 'floorl-ieee'.
18428         * modules/floorl-ieee: New file.
18429         * modules/floorl-ieee-tests: New file.
18430         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18431         * tests/test-floorl.c (main): Remove signbit tests.
18432         * modules/floorl-tests (Depends-on): Remove signbit.
18433         * doc/posix-functions/floorl.texi: Mention the new module.
18434
18435 2010-12-21  Bruno Haible  <bruno@clisp.org>
18436
18437         New module 'round-ieee'.
18438         * modules/round-ieee: New file.
18439         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18440         whether round works according to ISO C 99 with IEC 60559.
18441         * m4/round-ieee.m4: New file.
18442         * modules/round-ieee-tests: New file.
18443         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18444         * tests/test-round1.c (main): Remove signbit tests.
18445         * modules/round-tests (Depends-on): Remove 'signbit'.
18446         * doc/posix-functions/round.texi: Mention the new module.
18447
18448 2010-12-21  Bruno Haible  <bruno@clisp.org>
18449
18450         New module 'trunc-ieee'.
18451         * modules/trunc-ieee: New file.
18452         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18453         whether trunc works according to ISO C 99 with IEC 60559.
18454         * m4/trunc-ieee.m4: New file.
18455         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18457         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18458         * modules/trunc-ieee-tests: New file.
18459         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18460         * tests/test-trunc1.c (main): Remove signbit tests.
18461         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18462         * doc/posix-functions/trunc.texi: Mention the new module.
18463
18464 2010-12-21  Bruno Haible  <bruno@clisp.org>
18465
18466         New module 'ceil-ieee'.
18467         * modules/ceil-ieee: New file.
18468         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18469         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18470         ISO C 99 with IEC 60559.
18471         * m4/ceil-ieee.m4: New file.
18472         * modules/ceil (Files): Add lib/ceil.c.
18473         (Depends-on): Add 'float'.
18474         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18475         * lib/math.in.h (ceil): New declaration.
18476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18477         REPLACE_CEIL.
18478         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18479         * modules/ceil-ieee-tests: New file.
18480         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18481         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18482         * doc/posix-functions/ceil.texi: Mention the new module.
18483
18484 2010-12-21  Bruno Haible  <bruno@clisp.org>
18485
18486         New module 'floor-ieee'.
18487         * modules/floor-ieee: New file.
18488         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18489         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18490         ISO C 99 with IEC 60559.
18491         * m4/floor-ieee.m4: New file.
18492         * modules/floor (Files): Add lib/floor.c.
18493         (Depends-on): Add 'float'.
18494         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18495         * lib/math.in.h (floor): New declaration.
18496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18497         REPLACE_FLOOR.
18498         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18499         * modules/floor-ieee-tests: New file.
18500         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18501         * tests/test-math-c++.cc: Check the signature of 'floor'.
18502         * doc/posix-functions/floor.texi: Mention the new module.
18503
18504 2010-12-21  Bruno Haible  <bruno@clisp.org>
18505
18506         New module 'roundf-ieee'.
18507         * modules/roundf-ieee: New file.
18508         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18509         test whether roundf works according to ISO C 99 with IEC 60559.
18510         * m4/roundf-ieee.m4: New file.
18511         * modules/roundf-ieee-tests: New file.
18512         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18513         * tests/test-roundf1.c (main): Remove signbit tests.
18514         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18515         * doc/posix-functions/roundf.texi: Mention the new module.
18516
18517 2010-12-21  Bruno Haible  <bruno@clisp.org>
18518
18519         New module 'truncf-ieee'.
18520         * modules/truncf-ieee: New file.
18521         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18522         test whether truncf works according to ISO C 99 with IEC 60559.
18523         * m4/truncf-ieee.m4: New file.
18524         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18526         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18527         * modules/truncf-ieee-tests: New file.
18528         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18529         * tests/test-truncf1.c (main): Remove signbit tests.
18530         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18531         * doc/posix-functions/truncf.texi: Mention the new module.
18532
18533 2010-12-21  Bruno Haible  <bruno@clisp.org>
18534
18535         New module 'ceilf-ieee'.
18536         * modules/ceilf-ieee: New file.
18537         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18538         test whether ceilf works according to ISO C 99 with IEC 60559.
18539         * m4/ceilf-ieee.m4: New file.
18540         * modules/ceilf-ieee-tests: New file.
18541         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18542         * tests/test-ceilf1.c (main): Remove signbit tests.
18543         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18544         * doc/posix-functions/ceilf.texi: Mention the new module.
18545
18546 2010-12-21  Bruno Haible  <bruno@clisp.org>
18547
18548         New module 'floorf-ieee'.
18549         * modules/floorf-ieee: New file.
18550         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18551         test whether floorf works according to ISO C 99 with IEC 60559.
18552         * m4/floorf-ieee.m4: New file.
18553         * modules/floorf-ieee-tests: New file.
18554         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18555         * tests/test-floorf1.c (main): Remove signbit tests.
18556         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18557         * doc/posix-functions/floorf.texi: Mention the new module.
18558
18559 2010-12-21  Bruno Haible  <bruno@clisp.org>
18560
18561         Support for minus zero in autoconf macros.
18562         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18563         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18564         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18565         * tests/minus-zero.h: Update comments.
18566
18567 2010-12-21  Bruno Haible  <bruno@clisp.org>
18568
18569         Tests for module 'ceil'.
18570         * modules/ceil-tests: New file.
18571         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18572         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18573
18574 2010-12-21  Bruno Haible  <bruno@clisp.org>
18575
18576         Tests for module 'floor'.
18577         * modules/floor-tests: New file.
18578         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18579         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18580
18581 2010-12-21  Bruno Haible  <bruno@clisp.org>
18582
18583         math: Fix indentation.
18584         * lib/math.in.h (floorf): Fix indentation.
18585
18586 2010-12-21  Bruno Haible  <bruno@clisp.org>
18587
18588         Fix cross-compilation guesses on Solaris.
18589         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18590         not match "solaris2.10".
18591         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18592         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18593         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18594
18595 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18596
18597         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18598         This fixes a problem observed with the latest coreutils snapshot
18599         that caused a test to fail on Solaris 8.  src/csplit.c's call
18600         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18601         earlier, instead of returning the number of bytes that would have
18602         been generated; this causes csplit to incorrectly report memory
18603         exhaustion.
18604         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18605         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18606         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18607         comments to match.
18608         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18609         Fix typo in matching older versions of Solaris: "solaris2.10"
18610         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18611         only for guessing while cross-compiling.
18612         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18613
18614 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18615
18616         ftoastr: fix comment again
18617         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18618         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18619         Also, simplify example a bit by using flags = 0.
18620
18621 2010-12-20  Bruno Haible  <bruno@clisp.org>
18622
18623         round*, trunc*: Update documentation regarding glibc.
18624         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18625         * doc/posix-functions/round.texi: Likewise.
18626         * doc/posix-functions/roundl.texi: Likewise.
18627         * doc/posix-functions/truncf.texi: Likewise.
18628         * doc/posix-functions/trunc.texi: Likewise.
18629         * doc/posix-functions/truncl.texi: Likewise.
18630
18631 2010-12-20  Bruno Haible  <bruno@clisp.org>
18632
18633         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18634         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18635         * doc/posix-functions/round.texi: Likewise.
18636         * doc/posix-functions/roundl.texi: Likewise.
18637
18638 2010-12-20  Bruno Haible  <bruno@clisp.org>
18639
18640         ttyname_r: Add missing declaration on HP-UX 11.
18641         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18642         HAVE_TTYNAME_R.
18643         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18644         declared. Set HAVE_TTYNAME_R always.
18645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18646         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18647         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18648         HAVE_TTYNAME_R.
18649         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18650
18651 2010-12-20  Bruno Haible  <bruno@clisp.org>
18652
18653         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18654         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18655         * doc/posix-functions/getlogin_r.texi: Likewise.
18656         * tests/test-getlogin.c: Include <errno.h>.
18657         (main): Avoid test failure on HP-UX 11.11.
18658         * tests/test-getlogin_r.c (main): Likewise.
18659
18660 2010-12-20  Bruno Haible  <bruno@clisp.org>
18661
18662         getlogin_r: Add missing declaration on HP-UX 11.
18663         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18664         declared also when it exists as a function.
18665         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18666
18667 2010-12-20  Bruno Haible  <bruno@clisp.org>
18668
18669         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18670         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18671         through wcrtomb.
18672
18673 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18674
18675         ftoastr: fix comment
18676         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18677         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18678
18679 2010-12-19  Bruno Haible  <bruno@clisp.org>
18680
18681         isnan: Ensure it is a macro.
18682         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18683         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18684         Solaris.
18685
18686 2010-12-19  Bruno Haible  <bruno@clisp.org>
18687
18688         ldexpl test: Fix link error on OSF/1 5.1.
18689         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18690
18691 2010-12-19  Bruno Haible  <bruno@clisp.org>
18692
18693         wctype: Make it work in C++ mode on OSF/1 5.1.
18694         * lib/wctype.in.h (iswblank): Declare but not define here.
18695         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18696         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18697         * modules/wctype (Files): Add lib/iswblank.c.
18698
18699 2010-12-19  Bruno Haible  <bruno@clisp.org>
18700
18701         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18702         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18703         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18704
18705 2010-12-19  Bruno Haible  <bruno@clisp.org>
18706
18707         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18708         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18709         _POSIX_PII_SOCKET.
18710         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18711         * doc/posix-functions/recvfrom.texi: Likewise.
18712         * doc/posix-functions/send.texi: Likewise.
18713         * doc/posix-functions/sendto.texi: Likewise.
18714
18715 2010-12-19  Bruno Haible  <bruno@clisp.org>
18716
18717         tcgetsid: Add missing declaration on OSF/1 5.1.
18718         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18719         HAVE_TCGETSID.
18720         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18721         Don't set HAVE_TCGETSID.
18722         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18723         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18724         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18725         HAVE_TCGETSID.
18726         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18727
18728 2010-12-19  Bruno Haible  <bruno@clisp.org>
18729
18730         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18731         * lib/stdio.in.h: During the include_next statement, let recursive
18732         includes of this file include only the system header file.
18733
18734 2010-12-19  Bruno Haible  <bruno@clisp.org>
18735
18736         iconv_open: Fix regression from 2010-12-04.
18737         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18738         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18739
18740 2010-12-19  Bruno Haible  <bruno@clisp.org>
18741
18742         stdbool test: Avoid a gcc warning.
18743         * tests/test-stdbool.c (main): Fail if e1 is false.
18744         Reported by Jim Meyering.
18745
18746 2010-12-19  Jim Meyering  <meyering@redhat.com>
18747
18748         setenv: restore to working order
18749         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18750         mistakenly removed.
18751         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18752         HAVE_SETENV.
18753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18754         HAVE_SETENV.
18755
18756 2010-12-19  Bruno Haible  <bruno@clisp.org>
18757
18758         Document some different function declarations on OSF/1 5.1.
18759         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18760         * doc/posix-functions/inet_ntop.texi: Likewise.
18761         * doc/posix-functions/gethostname.texi: Likewise.
18762         * lib/unistd.in.h (gethostname): Update comment.
18763
18764 2010-12-19  Bruno Haible  <bruno@clisp.org>
18765
18766         doc: Mention vasprintf-posix module.
18767         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18768         the 'vasprintf-posix' module.
18769         * doc/glibc-functions/vasprintf.texi: Likewise.
18770
18771 2010-12-19  Bruno Haible  <bruno@clisp.org>
18772
18773         unsetenv: Add missing declaration on OSF/1 5.1.
18774         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18775         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18776         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18778         not HAVE_UNSETENV.
18779         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18780         HAVE_UNSETENV.
18781         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18782
18783 2010-12-19  Bruno Haible  <bruno@clisp.org>
18784
18785         setenv: Add missing declaration on OSF/1 5.1.
18786         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18787         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18788         declared. Don't set HAVE_SETENV.
18789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18790         not HAVE_SETENV.
18791         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18792         HAVE_SETENV.
18793         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18794
18795 2010-12-19  Bruno Haible  <bruno@clisp.org>
18796
18797         nl_langinfo tests: Avoid gcc warning.
18798         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18799
18800 2010-12-19  Bruno Haible  <bruno@clisp.org>
18801
18802         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18803         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18804         _GL_CXXALIAS_SYS.
18805
18806 2010-12-19  Bruno Haible  <bruno@clisp.org>
18807
18808         stdbool: Relax test.
18809         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18810         address to 'bool' work in static initializer, for compilers other than
18811         GCC.
18812
18813 2010-12-19  Bruno Haible  <bruno@clisp.org>
18814
18815         ftello: Add missing declaration on OSF/1 5.1.
18816         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18817         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18819         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18820         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18821
18822 2010-12-19  Bruno Haible  <bruno@clisp.org>
18823
18824         fseeko: Add missing declaration on OSF/1 5.1.
18825         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18826         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18828         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18829         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18830
18831 2010-12-19  Bruno Haible  <bruno@clisp.org>
18832
18833         fchdir: Add missing declaration on OSF/1 5.1.
18834         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18835         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18837         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18838         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18839
18840 2010-12-19  Bruno Haible  <bruno@clisp.org>
18841
18842         relocatable-prog-wrapper: Separate from relocatable-prog.
18843         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18844         uninstall-relocwrapper rule here.
18845         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18846         Reported by Ian Beckwith <ianb@erislabs.net>.
18847
18848 2010-12-19  Bruno Haible  <bruno@clisp.org>
18849
18850         unistr/u8-mbsnlen: Add missing dependency.
18851         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18852         Reported by Ian Beckwith <ianb@erislabs.net>.
18853
18854 2010-12-19  Bruno Haible  <bruno@clisp.org>
18855
18856         iconv: Make it possible again to use this module without 'iconv-h'.
18857         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18858         if it is not defined.
18859         Reported by Ian Beckwith <ianb@erislabs.net>.
18860
18861 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18862
18863         acl: port to Solaris 8 when copying from tmpfs to ufs
18864         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18865         error number.  Problem observed on Solaris 8 with latest
18866         coreutils, with "mv A B", where A is on a tmpfs file system and B
18867         is on a ufs file system.  This caused coreutils' mv/part-symlink
18868         test to fail.
18869
18870         tests: set fail=0 at start
18871         * tests/init.sh (setup_): Move fail=0 initialization here ...
18872         (mktempd_): ... from here, so that tests can rely on fail being
18873         set to 0 initially.  This fixes a problem in coreutils; see:
18874         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18875
18876 2010-12-18  Bruno Haible  <bruno@clisp.org>
18877
18878         memmem-simple: Stylistic changes.
18879         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18880         Fix preprocessor directive indentation.
18881
18882 2010-12-15  Pádraig Brady <P@draigBrady.com>
18883
18884         memmem, memmem-simple: reorganize and expand empty needle check
18885         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18886         functional checks to memmem-simple so that one has a fully functional
18887         memmem by using just this module.
18888         Restrict the performance only check to the memmem module.
18889         Also expand the empty needle check to ensure the correct
18890         pointer is returned, not just a non NULL pointer.
18891         * doc/glibc-functions/memmem.texi: Rearrange the portability
18892         documentation to correlate with the rearranged checks.
18893         Clarify exactly how the memmem and memmem-simple modules
18894         relate to each other.
18895
18896 2010-12-15  Pádraig Brady <P@draigBrady.com>
18897             Bruno Haible  <bruno@clisp.org>
18898
18899         Improve cross-compilation guesses for uClibc.
18900         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18901         that uClibc does not have the glibc bug.
18902         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18903         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18904
18905 2010-12-14  Eric Blake  <eblake@redhat.com>
18906
18907         configmake: provide fallbacks for oldest supported autotools
18908         * m4/configmake.m4: New file.
18909         * modules/configmake (Files): Ship it.
18910         (configure.ac): Use it to guarantee fallbacks.
18911
18912 2010-12-13  Pádraig Brady <P@draigBrady.com>
18913
18914         read-file: Improve handling of large files
18915         * lib/read-file.c (fread_file): Minimize realloc()s
18916         for regular files, and better manage sizes around SIZE_MAX.
18917
18918 2010-12-13  Eric Blake  <eblake@redhat.com>
18919
18920         cloexec, fcntl: relax license
18921         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18922         consent from all contributors.
18923         * modules/fcntl (License): Likewise.
18924
18925 2010-12-10  Bruno Haible  <bruno@clisp.org>
18926
18927         Tests for module 'pipe-posix'.
18928         * modules/pipe-posix-tests: New file.
18929         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18930
18931 2010-12-10  Bruno Haible  <bruno@clisp.org>
18932
18933         pipe-posix: Make it work in C++ mode.
18934         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18935         (pipe): Use common idiom, not a macro definition.
18936         * lib/pipe.c: New file.
18937         * m4/pipe.m4: New file.
18938         * modules/pipe-posix (Description): Enhance.
18939         (Files): Add lib/pipe.c, m4/pipe.m4.
18940         (configure.ac): Invoke gl_FUNC_PIPE.
18941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18942         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18943         * tests/test-unistd-c++.cc: Check the signature of pipe.
18944
18945 2010-12-10  Bruno Haible  <bruno@clisp.org>
18946
18947         Rename module 'pipe' to 'spawn-pipe'.
18948         * modules/spawn-pipe: New file, renamed from modules/pipe.
18949         (Files, configure.ac, Makefile.am): Update.
18950         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18951         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18952         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18953         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18954         "spawn-pipe.h" instead of "pipe.h".
18955         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18956         to gl_SPAWN_PIPE.
18957         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18958         (Files, Makefile.am): Update.
18959         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18960         Update.
18961         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18962         Include "spawn-pipe.h" instead of "pipe.h".
18963         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18964         * lib/javacomp.c: Likewise.
18965         * lib/javaversion.c: Likewise.
18966         * lib/pipe-filter-gi.c: Likewise.
18967         * lib/pipe-filter-ii.c: Likewise.
18968         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18969         * modules/javacomp (Depends-on): Likewise.
18970         * modules/javaversion (Depends-on): Likewise.
18971         * modules/pipe-filter-gi (Depends-on): Likewise.
18972         * modules/pipe-filter-ii (Depends-on): Likewise.
18973         * MODULES.html.sh (Executing programs): Update.
18974         * NEWS: Mention the change.
18975
18976 2010-12-10  Eric Blake  <eblake@redhat.com>
18977
18978         pipe-posix: new module
18979         * modules/pipe-posix: New file.
18980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18981         (gl_UNISTD_H): Check for declaration.
18982         * modules/unistd (Makefile.am): Substitute it.
18983         * lib/unistd.in.h (pipe): Provide it for mingw.
18984         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18985         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18986
18987 2010-12-07  Bruno Haible  <bruno@clisp.org>
18988
18989         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18990         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18991         u8_strcmp_gnu.
18992         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18993
18994 2010-12-06  Bruno Haible  <bruno@clisp.org>
18995
18996         Update internal documentation.
18997         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18998
18999 2010-12-04  Bruno Haible  <bruno@clisp.org>
19000
19001         Put more information about failed tests into the test return codes.
19002         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19003         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19004         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19005         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19006         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19007         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19008         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19009         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19010         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19011         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19012         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19013         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19014         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19015         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19016         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19017         returns a bit mask.
19018         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19019         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19020         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19021         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19022         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19023         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19026         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19027         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19028         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19029         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19030         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19031         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19032         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19033         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19034         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19035         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19036         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19037         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19038         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19039         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19041         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19042         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19043         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19044         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19045         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19046         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19047         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19048         gl_PRINTF_PRECISION): Likewise.
19049         * m4/regex.m4 (gl_REGEX): Likewise.
19050         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19051         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19052         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19053         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19054         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19055         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19056         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19057         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19058         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19059         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19060         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19061         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19062         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19063         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19064         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19065         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19066         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19067         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19068         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19069         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19070         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19071         enumerated value.
19072         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19073
19074 2010-12-04  Bruno Haible  <bruno@clisp.org>
19075
19076         Update for Solaris 11 2010-11.
19077         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19078         Express, released in November 2010.
19079
19080 2010-12-04  Bruno Haible  <bruno@clisp.org>
19081
19082         nproc: Relax license.
19083         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19084         and Paul Eggert.
19085         Requested by Ludovic Courtès <ludo@gnu.org>.
19086
19087 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19088
19089         utimecmp: fine-grained src to nearby coarse-grained dest
19090
19091         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19092         and the source is on a file system with higher-resolution time
19093         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19094         not work, and the time stamps are close together, the algorithm to
19095         determine the exact resolution from the read-back mtime was buggy:
19096         it had a "!=" where it should have had an "==".  This bug has been
19097         in the code ever since it was introduced to gnulib.
19098         Problem reported by Dan Jacobson in
19099         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19100
19101 2010-11-30  Bruno Haible  <bruno@clisp.org>
19102
19103         strerror_r-posix: Fix autoconf test.
19104         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19105
19106 2010-11-28  Bruno Haible  <bruno@clisp.org>
19107             Paul Eggert  <eggert@cs.ucla.edu>
19108
19109         Tests for module 'getdomainname'.
19110         * modules/getdomainname-tests: New file.
19111         * tests/test-getdomainname.c: New file, based on
19112         tests/test-gethostname.c.
19113
19114 2010-11-28  Bruno Haible  <bruno@clisp.org>
19115             Paul Eggert  <eggert@cs.ucla.edu>
19116
19117         getdomainname: Use the system function when possible.
19118         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19119         (getdomainname): Replace if needed. Provide the declaration if it is
19120         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19121         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19122         (getdomainname): When the system has getdomainname, call the system
19123         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19124         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19125         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19126         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19127         the function if its second argument is of type 'int' or if it is found
19128         in libnsl.
19129         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19130         <sys/systeminfo.h> and sysinfo().
19131         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19133         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19134         HAVE_GETDOMAINNAME.
19135         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19136         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19137         * doc/glibc-functions/getdomainname.texi: Document the problems with
19138         the getdomainname declaration.
19139
19140 2010-11-28  Bruno Haible  <bruno@clisp.org>
19141
19142         sys_socket: Ensure ss_family field on AIX.
19143         * lib/sys_socket.in.h (ss_family): New macro definition.
19144         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19145         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19146         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19147         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19148         * modules/sys_socket (Makefile.am): Substitute
19149         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19150         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19151
19152 2010-11-27  Bruno Haible  <bruno@clisp.org>
19153
19154         readline: Improve configure output.
19155         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19156         "checking for readline..." result understandable.
19157
19158 2010-11-27  Bruno Haible  <bruno@clisp.org>
19159
19160         *printf-posix: Detect a bug on Solaris 10/x86.
19161         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19162         for floating-point output.
19163         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19164         directive.
19165         * tests/test-snprintf-posix.h (test_function): Likewise.
19166         * tests/test-sprintf-posix.h (test_function): Likewise.
19167         * tests/test-vasprintf-posix.c (test_function): Likewise.
19168         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19169         * doc/posix-functions/printf.texi: Likewise.
19170         * doc/posix-functions/snprintf.texi: Likewise.
19171         * doc/posix-functions/sprintf.texi: Likewise.
19172         * doc/posix-functions/vfprintf.texi: Likewise.
19173         * doc/posix-functions/vprintf.texi: Likewise.
19174         * doc/posix-functions/vsnprintf.texi: Likewise.
19175         * doc/posix-functions/vsprintf.texi: Likewise.
19176         * doc/glibc-functions/obstack_printf.texi: Likewise.
19177         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19178
19179 2010-11-27  Bruno Haible  <bruno@clisp.org>
19180
19181         Fix link error when module libunistring-optional is in use.
19182         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19183         * modules/striconveha-tests (Makefile.am): Likewise.
19184
19185 2010-11-27  Bruno Haible  <bruno@clisp.org>
19186
19187         regex: Mention link dependencies.
19188         * modules/regex (Link): New section.
19189         * modules/rpmatch (Link): Likewise.
19190         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19191
19192 2010-11-27  Bruno Haible  <bruno@clisp.org>
19193
19194         ftoastr: Fix compilation error on Solaris.
19195         * lib/ftoastr.c: Include <config.h>.
19196
19197 2010-11-27  Bruno Haible  <bruno@clisp.org>
19198
19199         getloadavg: Update documentation.
19200         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19201
19202 2010-11-27  Bruno Haible  <bruno@clisp.org>
19203
19204         sys_socket: Fix test whether the functions are declared.
19205         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19206         not <sys/select.h>.
19207
19208 2010-11-27  Bruno Haible  <bruno@clisp.org>
19209
19210         getpass: Make sure to get system declaration on some platforms.
19211         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19212         gl_USE_SYSTEM_EXTENSIONS.
19213         * modules/getpass (Depends-on): Add extensions.
19214
19215 2010-11-26  Bruno Haible  <bruno@clisp.org>
19216
19217         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19218         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19219         'iconv' module is present.
19220         (ICONV_CONST): New macro.
19221         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19222         ICONV_CONST.
19223         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19224         set ICONV_CONST.
19225         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19226         here.
19227         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19228         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19229         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19230         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19231         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19232         present.
19233
19234 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19235
19236         ftoastr: comment fix
19237         * lib/ftoastr.c: "little" -> "little or no" in comment
19238
19239 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19240
19241         stdint: port to GCC 4.3 + OSX + Octave
19242         On this platform, stdint.h is buggy and defines int64_t to long
19243         long int.  The replacement defined it to long int, causing
19244         problems with C++ style name mangling.  Instead, trust the system
19245         definition if INT64_MAX is defined, and likewise for the unsigned
19246         variant.   Problem reported by Jarno Rajahalme in
19247         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19248         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19249         and don't mess with int64_t and INT64_MAX in this case.
19250         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19251
19252 2010-11-24  Bruno Haible  <bruno@clisp.org>
19253
19254         doc: Corrections regarding MacOS X 10.4 and 10.5.
19255         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19256         MacOS X.
19257         Reported by Simon Josefsson.
19258
19259 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19260
19261         Uninstall ".bin" files installed by relocwrapper.
19262         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19263         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19264         unless it is already there.
19265
19266 2010-11-21  Bruno Haible  <bruno@clisp.org>
19267
19268         Update for NetBSD 5.0.
19269         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19270         NetBSD; the test fails on NetBSD 5.0.
19271         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19272         about NetBSD.
19273
19274 2010-11-21  Bruno Haible  <bruno@clisp.org>
19275
19276         Update for HP-UX 11.23 and HP-UX 11.31.
19277         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19278         HP-UX.
19279
19280 2010-11-21  Bruno Haible  <bruno@clisp.org>
19281
19282         Update for MacOS X 10.5.
19283         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19284         MacOS X; the test fails on MacOS X 10.5.8.
19285         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19286         about MacOS X.
19287
19288 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19289
19290         bootstrap: add bootstrap_sync option.
19291         See discussion at
19292         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19293         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19294         * build-aux/bootstrap: Accept --bootstrap-sync to update
19295         bootstrap if it is not identical to the local gnulib's
19296         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19297         enable this by default.  Accept --no-bootstrap-sync to disable
19298         it.
19299
19300 2010-11-20  Bruno Haible  <bruno@clisp.org>
19301
19302         Ensure that <features.h> is included before __GLIBC__ is tested.
19303         * lib/printf-parse.h: Include <features.h>.
19304         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19305         Reported by Mike Frysinger <vapier@gentoo.org>.
19306
19307         Ensure that <features.h> is included before __GLIBC__ is tested.
19308         * lib/wchar.in.h: Include <features.h>.
19309         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19310         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19311         Reported by Mike Frysinger <vapier@gentoo.org>.
19312
19313         Ensure that <features.h> is included before __GLIBC__ is tested.
19314         * lib/arpa_inet.in.h: Include <features.h>.
19315         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19316         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19317         Reported by Mike Frysinger <vapier@gentoo.org>.
19318
19319         Ensure that <features.h> is included before __GLIBC__ is tested.
19320         * build-aux/link-warning.h: Include <features.h>.
19321         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19322         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19323         Reported by Mike Frysinger <vapier@gentoo.org>.
19324
19325         Ensure that <features.h> is included before __GLIBC__ is tested.
19326         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19327         Reported by Mike Frysinger <vapier@gentoo.org>.
19328
19329 2010-11-20  Bruno Haible  <bruno@clisp.org>
19330
19331         memmem: Fix autoconf test.
19332         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19333
19334 2010-11-20  Bruno Haible  <bruno@clisp.org>
19335
19336         Port to uClibc.
19337         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19338         * lib/fcntl.in.h: Likewise.
19339         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19340         * lib/mbrtowc.c (mbrtowc): Likewise.
19341         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19342         * lib/strerror_r.c: Likewise.
19343         * lib/unistr/u8-strnlen.c: Likewise.
19344         * lib/vasnprintf.c (decimal_point_char): Likewise.
19345         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19346         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19348         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19349         * tests/test-sigaction.c (handler, main): Likewise.
19350         * lib/freading.h: Treat uClibc like a non-glibc platform.
19351         * lib/freading.c: Likewise.
19352         * lib/gettext.h: Likewise.
19353         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19354         Likewise.
19355         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19356         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19357         * lib/propername.c (proper_name_utf8): Likewise.
19358         * lib/spawn.in.h: Likewise.
19359         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19360         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19361         mem_cd_iconveh_internal): Likewise.
19362         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19363         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19364         strstr, strcasestr): Likewise.
19365         * lib/unicodeio.c (unicode_to_mb): Likewise.
19366         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19367         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19368         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19369         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19370         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19371         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19372         * lib/unistr/u8-stpncpy.c: Likewise.
19373         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19374         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19375         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19376         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19377         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19378         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19379         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19380         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19382         Likewise.
19383         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19384         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19385         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19386         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19387         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19388         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19389         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19390         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19391         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19392         * tests/test-striconveha.c (main): Likewise.
19393         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19394         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19395         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19396         * doc/posix-functions/getline.texi: Likewise.
19397         Reported by Mike Frysinger <vapier@gentoo.org>.
19398
19399 2010-11-20  Bruno Haible  <bruno@clisp.org>
19400
19401         nproc: Fix condition.
19402         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19403         HAVE_PTHREAD_AFFINITY_NP.
19404
19405 2010-11-20  Bruno Haible  <bruno@clisp.org>
19406
19407         Fix a comment.
19408         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19409
19410 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19411
19412         ftoastr: don't assume snprintf
19413         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19414         Implement a subset of snprintf here, by using sprintf safely.
19415         * modules/ftoastr (Depends-on): Remove snprintf.
19416
19417 2010-11-19  Jim Meyering  <meyering@redhat.com>
19418
19419         test-rename.h: fix compilation failure
19420         * tests/test-rename.h (test_rename): Add omitted "}".
19421
19422 2010-11-17  Jim Meyering  <meyering@redhat.com>
19423
19424         maint.mk: add a URL discussing the no-@acronym policy
19425         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19426
19427 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19428
19429         ftoastr: depend on snprintf, improve comments
19430         * lib/ftoastr.c: Also mention Loitsch's draft.
19431         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19432         needed in the current implementation, but it might simplify
19433         speeding up the code later.
19434         * modules/ftoastr: Depend on snprintf; this improves portability.
19435         Suggested by Bruno Haible in the same email.
19436
19437         ftoastr: port to hosts lacking strtof and strtold
19438         Problem reported by Bruno Haible in
19439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19440         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19441         environment and strtold (and presumably strtof) are not available.
19442         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19443         (configure.ac): Require gl_C99_STRTOLD.
19444
19445 2010-11-18  Bruno Haible  <bruno@clisp.org>
19446
19447         c-strtold: Avoid link error on AIX 7.
19448         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19449         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19450         (gl_C_STRTOLD): Test whether strtold_l exists.
19451         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19452
19453 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19454
19455         intprops: new macro INT_BITS_STRLEN_BOUND
19456         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19457         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19458         not exposed.  Also, it uses a slightly tighter bound than before;
19459         though this makes no practical difference, we might as well be as
19460         tight as we easily can.
19461
19462         ftoastr: new module, for lossless conversion of floats to short strings
19463         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19464         * modules/ftoastr: New files.
19465
19466 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19467
19468         bootstrap: port to Solaris sed
19469         * build-aux/bootstrap (get_version): Port to Solaris sed.
19470         See Ralf Wildenhues's note in
19471         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19472
19473 2010-11-14  Jim Meyering  <meyering@redhat.com>
19474
19475         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19476         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19477         and move definition closer to sole use.
19478
19479 2010-11-13  Jim Meyering  <meyering@redhat.com>
19480
19481         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19482         Now we require at least autoconf-2.59, which means the work-around
19483         is no longer needed.
19484         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19485         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19486         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19487         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19488         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19489
19490 2010-11-13  Bruno Haible  <bruno@clisp.org>
19491
19492         rename, renameat: Avoid test failures at NFS mounted locations.
19493         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19494         functions.
19495         (test_rename): Use assert_nonexistent.
19496         * tests/test-rename.c: Include <dirent.h>.
19497         * tests/test-renameat.c: Likewise.
19498         Reported by Gary V. Vaughan <gary@gnu.org>.
19499
19500         rename, renameat: Document Linux bug with NFS
19501         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19502         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19503         * doc/posix-functions/renameat.texi: Likewise.
19504         Suggested by Eric Blake.
19505
19506 2010-11-13  Bruno Haible  <bruno@clisp.org>
19507
19508         rename test: Add comments.
19509         * tests/test-rename.h (test_rename): Add structure and comments.
19510
19511 2010-11-13  Eric Blake  <eblake@redhat.com>
19512
19513         maintainer-makefile: cover a few more files
19514         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19515         scripts generated within C files, for libvirt.
19516
19517 2010-11-13  Bruno Haible  <bruno@clisp.org>
19518
19519         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19520         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19521         character, return the number of bytes that belong together, not always
19522         1.
19523         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19524         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19525         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19526         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19527         number of bytes of an invalid character.
19528         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19529         (main): Invoke it.
19530         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19531         results.
19532         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19533         malformed byte sequences.
19534         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19535         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19536         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19537         Reported by Ben Pfaff and Paolo Bonzini.
19538
19539 2010-11-13  Bruno Haible  <bruno@clisp.org>
19540
19541         openat: Work around glibc bug with fchownat() and empty file names.
19542         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19543         (gl_FUNC_FCHOWNAT): Invoke it.
19544         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19545         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19546         Reported by Gary V. Vaughan <gary@gnu.org>.
19547
19548 2010-11-13  Bruno Haible  <bruno@clisp.org>
19549
19550         openat: Ensure autoconf macro ordering.
19551         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19552         gl_USE_SYSTEM_EXTENSIONS.
19553         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19554
19555 2010-11-13  Bruno Haible  <bruno@clisp.org>
19556
19557         Update comments.
19558         * lib/unistr/u8-check.c: Update file name in comments.
19559         * lib/unistr/u8-mblen.c: Likewise.
19560         * lib/unistr/u8-prev.c: Likewise.
19561         * lib/unistr/u8-strmblen.c: Likewise.
19562         * lib/unistr/u8-strmbtouc.c: Likewise.
19563
19564 2010-11-13  Jim Meyering  <meyering@redhat.com>
19565
19566         tests: avoid test failure on Solaris 10 due to lack of PATH export
19567         * tests/test-update-copyright.sh: Don't forget to export PATH.
19568
19569         init.sh: ensure that IFS is defined, just in case...
19570         * tests/init.sh (setup_): Ensure that IFS is defined,
19571         so that saving and restoring it works as expected.  This
19572         appears to be useful at least for an old version of dash
19573         from a long time ago (RH 6).  See here for details:
19574         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19575
19576         maint.mk: tighten "test a == b" check
19577         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19578         test to files that contain something like #!/bin/sh.
19579         Without this, coreutils would get two false positives in
19580         the comments of C source files.
19581
19582 2010-11-12  Eric Blake  <eblake@redhat.com>
19583
19584         bootstrap: fix typo in previous attempt
19585         * build-aux/bootstrap (buildreq): Correct the grouping.
19586         Reported by Paul Eggert.
19587
19588         maintainer-makefile: prohibit test x == x
19589         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19590         Based on a report by Matthias Bolte.
19591
19592         bootstrap: allow FreeBSD gzip
19593         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19594         which has no '.' and goes to stderr.
19595         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19596         Reported by Matthias Bolte.
19597
19598         maintainer-makefile: check for i18n setup
19599         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19600         will likely work.
19601
19602 2010-11-12  Bruno Haible  <bruno@clisp.org>
19603
19604         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19605         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19606         * lib/nanosleep.c (nanosleep): Likewise.
19607
19608 2010-11-11  Bruno Haible  <bruno@clisp.org>
19609
19610         fcntl-h: Fix for use of C++ on glibc systems.
19611         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19612         also on glibc systems in C++ mode.
19613         Reported by Gary V. Vaughan <gary@gnu.org>.
19614
19615 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19616
19617         mknod: avoid false failure with dash
19618         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19619
19620 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19621
19622         unlink: Fix "is it should" typo in diagnostic.
19623         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19624         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19625
19626 2010-11-11  Bruno Haible  <bruno@clisp.org>
19627
19628         Tests for module 'strerror_r-posix'.
19629         * modules/strerror_r-posix-tests: New file.
19630         * tests/test-strerror_r.c: New file.
19631         * tests/test-string-c++.cc: Check the signature of strerror_r.
19632
19633         New module 'strerror_r-posix'.
19634         * lib/string.in.h (strerror_r): New declaration.
19635         * lib/strerror_r.c: New file.
19636         * m4/strerror_r.m4: New file.
19637         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19638         of strerror_r.
19639         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19640         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19641         * modules/strerror_r-posix: New file.
19642         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19643         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19644         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19645         portability problems.
19646
19647 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19648
19649         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19650         line is also considered for output. Quoted function name in shell
19651         command, so temporary files for functions like MyClass::operator()
19652         are removed correctly without errors.
19653
19654 2010-11-09  Bruno Haible  <bruno@clisp.org>
19655
19656         * doc/posix-functions/strerror.texi: List more failing platforms.
19657
19658         * doc/posix-functions/strerror.texi: Add a comment.
19659
19660 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19661
19662         fdopendir: fix bug on MacOS X when low on file descriptors
19663
19664         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19665         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19666         All callers changed.
19667         (fdopendir): Invoke save_cwd at the top level, not after using
19668         multiple dup() calls to use up file descriptors.  Then retry
19669         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19670         less than the maximum number of open file descriptors, because
19671         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19672         on Mac OS X 10.6.4 for tar 1.24
19673         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19674         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19675         and for tar 1.25
19676         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19677
19678 2010-11-07  Bruno Haible  <bruno@clisp.org>
19679
19680         vasnprintf: Support I flag on glibc systems.
19681         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19682         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19683         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19684         snprintf function.
19685         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19686         glibc systems.
19687         * tests/test-vasnprintf-posix3.c: New file.
19688         * modules/vasnprintf-posix-tests (Files): Add it.
19689         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19690
19691 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19692
19693         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19694         * MODULES.html.sh: For compiler warnings, use name
19695         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19696
19697 2010-11-05  Eric Blake  <eblake@redhat.com>
19698
19699         ceil, floor: avoid spurious failure with icc
19700         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19701         [denormals-as-zero] when optimizing without -mieee-fp option.
19702         * tests/test-floorf2.c (floorf_reference): Likewise.
19703         * tests/test-ceilf1.c (dummy): New function.
19704         (main): Use it to outsmart icc's optimization.
19705         * tests/test-floorf1.c (dummy, main): Likewise.
19706
19707         tests: require working signbit
19708         * modules/ceilf-tests (Depends-on): Add signbit.
19709         * modules/ceill-tests (Depends-on): Likewise.
19710         * modules/floorf-tests (Depends-on): Likewise.
19711         * modules/floorl-tests (Depends-on): Likewise.
19712         * modules/round-tests (Depends-on): Likewise.
19713         * modules/roundf-tests (Depends-on): Likewise.
19714         * modules/roundl-tests (Depends-on): Likewise.
19715         * modules/trunc-tests (Depends-on): Likewise.
19716         * modules/truncf-tests (Depends-on): Likewise.
19717         * modules/truncl-tests (Depends-on): Likewise.
19718
19719         strtod: work around icc bug
19720         * lib/strtod.c (minus_zero): Define to working value.
19721         (strtod): Use it to avoid icc bug.
19722
19723         copysign: enhance tests
19724         * modules/copysign-tests (Files): Add minus-zero.h.
19725         * tests/test-copysign.c (main): Also test zeros.
19726
19727 2010-11-04  Eric Blake  <eblake@redhat.com>
19728
19729         ceil, floor, round, trunc: enhance tests of -0
19730         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19731         * tests/test-ceill.c (main): Likewise.
19732         * tests/test-floorf1.c (main): Likewise.
19733         * tests/test-floorl.c (main): Likewise.
19734         * tests/test-round1.c (main): Likewise.
19735         * tests/test-roundf1.c (main): Likewise.
19736         * tests/test-roundl.c (main): Likewise.
19737         * tests/test-trunc1.c (main): Likewise.
19738         * tests/test-truncf1.c (main): Likewise.
19739         * tests/test-truncl.c (main): Likewise.
19740
19741 2010-11-04  Eric Blake  <eblake@redhat.com>
19742
19743         frexp, tests: work around ICC bug with -zero
19744         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19745         works with more compilers.
19746         * tests/minus-zero.h: New file.
19747         * modules/ceilf-tests (Files): Include it.
19748         * modules/ceill-tests (Files): Likewise.
19749         * modules/floorf-tests (Files): Likewise.
19750         * modules/floorl-tests (Files): Likewise.
19751         * modules/frexp-nolibm-tests (Files): Likewise.
19752         * modules/frexp-tests (Files): Likewise.
19753         * modules/frexpl-nolibm-tests (Files): Likewise.
19754         * modules/frexpl-tests (Files): Likewise.
19755         * modules/isnan-tests (Files): Likewise.
19756         * modules/isnand-nolibm-tests (Files): Likewise.
19757         * modules/isnand-tests (Files): Likewise.
19758         * modules/isnanf-nolibm-tests (Files): Likewise.
19759         * modules/isnanf-tests (Files): Likewise.
19760         * modules/isnanl-nolibm-tests (Files): Likewise.
19761         * modules/isnanl-tests (Files): Likewise.
19762         * modules/round-tests (Files): Likewise.
19763         * modules/roundf-tests (Files): Likewise.
19764         * modules/roundl-tests (Files): Likewise.
19765         * modules/ldexpl-tests (Files): Likewise.
19766         * modules/signbit-tests (Files): Likewise.
19767         * modules/snprintf-posix-tests (Files): Likewise.
19768         * modules/sprintf-posix-tests (Files): Likewise.
19769         * modules/strtod-tests (Files): Likewise.
19770         * modules/trunc-tests (Files): Likewise.
19771         * modules/truncf-tests (Files): Likewise.
19772         * modules/truncl-tests (Files): Likewise.
19773         * modules/vsnprintf-posix-tests (Files): Likewise.
19774         * modules/vsprintf-posix-tests (Files): Likewise.
19775         * modules/vasnprintf-posix-tests (Files): Likewise.
19776         * modules/vasprintf-posix-tests (Files): Likewise.
19777         * tests/test-ceilf1.c (main): Use it.
19778         * tests/test-ceill.c (main): Likewise.
19779         * tests/test-floorf1.c (main): Likewise.
19780         * tests/test-floorl.c (main): Likewise.
19781         * tests/test-frexp.c (main): Likewise.
19782         * tests/test-frexpl.c (main): Likewise.
19783         * tests/test-isnan.c (main): Likewise.
19784         * tests/test-isnand.h (main): Likewise.
19785         * tests/test-isnanf.h (main): Likewise.
19786         * tests/test-isnanl.h (main): Likewise.
19787         * tests/test-ldexpl.c (main): Likewise.
19788         * tests/test-round.c (main): Likewise.
19789         * tests/test-roundf.c (main): Likewise.
19790         * tests/test-roundl.c (main): Likewise.
19791         * tests/test-signbit.c (test_signbitf, test_signbitd)
19792         (test_signbitl): Likewise.
19793         * tests/test-snprintf-posix.h (test_function): Likewise.
19794         * tests/test-sprintf-posix.h (test_function): Likewise.
19795         * tests/test-strtod.c (main): Likewise.
19796         * tests/test-trunc1.c (main): Likewise.
19797         * tests/test-truncf1.c (main): Likewise.
19798         * tests/test-truncl.c (main): Likewise.
19799
19800         isnanl: work around icc bug
19801         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19802
19803 2010-11-03  Eric Blake  <eblake@redhat.com>
19804
19805         tests: fix compiler warnings
19806         * tests/test-getopt.h (test_getopt): Fix condition.
19807         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19808         * tests/test-pipe2.c (main): Likewise.
19809         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19810
19811         utimens: fix broken m4 test
19812         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19813
19814 2010-10-28  Bruno Haible  <bruno@clisp.org>
19815
19816         posix_spawn*, getdtablesize: Relax license.
19817         * modules/posix_spawn (License): Change to LGPLv2+.
19818         * modules/posix_spawnp (License): Likewise.
19819         * modules/posix_spawn-internal (License): Likewise.
19820         * modules/posix_spawnattr_init (License): Likewise.
19821         * modules/posix_spawnattr_getflags (License): Likewise.
19822         * modules/posix_spawnattr_setflags (License): Likewise.
19823         * modules/posix_spawnattr_getpgroup (License): Likewise.
19824         * modules/posix_spawnattr_setpgroup (License): Likewise.
19825         * modules/posix_spawnattr_getschedparam (License): Likewise.
19826         * modules/posix_spawnattr_setschedparam (License): Likewise.
19827         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19828         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19829         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19830         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19831         * modules/posix_spawnattr_getsigmask (License): Likewise.
19832         * modules/posix_spawnattr_setsigmask (License): Likewise.
19833         * modules/posix_spawnattr_destroy (License): Likewise.
19834         * modules/posix_spawn_file_actions_init (License): Likewise.
19835         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19836         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19837         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19838         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19839         * modules/getdtablesize (License): Likewise.
19840         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19841
19842 2010-10-26  Bruno Haible  <bruno@clisp.org>
19843
19844         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19845         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19846         Cygwin and mingw.
19847         Suggested by Eric Blake.
19848
19849 2010-10-26  Bruno Haible  <bruno@clisp.org>
19850
19851         stdio: Work around compilation error due to renameat() on Solaris 10.
19852         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19853         * lib/renameat.c: Don't include <unistd.h> here.
19854         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19855         Reported by Paul Eggert and Eric Blake.
19856
19857 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19858
19859         renameat: port to Solaris 10, which declares renameat in unistd.h
19860
19861         * lib/renameat.c: Include unistd.h before stdio.h, because
19862         Solaris 10 declares renameat in unistd.h.  Problem encountered
19863         when building GNU tar 1.24 on Solaris 10.
19864
19865 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19866
19867         fdopendir: fix C89 compilation
19868         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19869         compilers.
19870
19871 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19872
19873         inttostr: simplify by removing unnecessary redundancy
19874         * lib/anytostr.c: Don't include verify.h.
19875         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19876         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19877         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19878         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19879         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19880         Likewise.
19881         * modules/inttostr (Depends-on): Remove 'verify'.
19882
19883 2010-10-23  Bruno Haible  <bruno@clisp.org>
19884
19885         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19886         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19887         Reported by Eric Blake.
19888
19889 2010-10-23  Bruno Haible  <bruno@clisp.org>
19890
19891         Tests: Fix LOCALE_JA on MirBSD 10.
19892         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19893         to an UTF-8 locale.
19894         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19895         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19896         Reported by Eric Blake.
19897
19898 2010-10-21  Bruno Haible  <bruno@clisp.org>
19899
19900         nl_langinfo test: Avoid test failure on NetBSD 5.
19901         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19902         Reported by Eric Blake.
19903
19904 2010-10-21  Eric Blake  <eblake@redhat.com>
19905
19906         c-stack: work around libsigsegv 2.8 bug
19907         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19908         overflow on at least PowerPC64.
19909
19910 2010-10-17  Bruno Haible  <bruno@clisp.org>
19911
19912         userspec: Drop redundant file.
19913         * modules/userspec (Files): Remove lib/inttostr.h.
19914
19915 2010-10-17  Bruno Haible  <bruno@clisp.org>
19916
19917         nl_langinfo tests: Silence some warnings.
19918         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19919         Reported by Jim Meyering.
19920
19921 2010-10-17  Bruno Haible  <bruno@clisp.org>
19922
19923         Make use of GCC's attribute __alloc_size__.
19924         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19925         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19926         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19927         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19928         __alloc_size__.
19929         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19930         Suggested by Jim Meyering.
19931
19932 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19933
19934         bootstrap: anchor .gitignore entries.
19935         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19936         with...
19937         (insert_vc_ignore): ... this new function, which prepends `/' to
19938         all .gitignore entries before passing them to
19939         insert_sorted_if_absent.
19940
19941 2010-10-16  Bruno Haible  <bruno@clisp.org>
19942
19943         nextafter: Fix configure check.
19944         * modules/nextafter (configure.ac): Correct expected prototype.
19945
19946 2010-10-16  Bruno Haible  <bruno@clisp.org>
19947
19948         termios: Update documentation.
19949         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19950
19951 2010-10-16  Bruno Haible  <bruno@clisp.org>
19952
19953         tests: Make them compile with TinyCC.
19954         * tests/test-strstr.c (main): Remove parentheses around array
19955         initializer.
19956
19957 2010-10-15  Eric Blake  <eblake@redhat.com>
19958
19959         ignore-value: make header idempotent
19960         * lib/ignore-value.h: Add double-inclusion guards.
19961         Reported by Stefan Berger.
19962
19963 2010-10-15  Jim Meyering  <meyering@redhat.com>
19964
19965         GNUmakefile: handle "stable" target, not "major"
19966         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19967         lists in maint.mk and announce-gen.  Without this, "make stable"
19968         would fail to ensure that $(VERSION) is up to date.
19969
19970 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19971
19972         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19973         & co.
19974
19975 2010-10-14  Bruno Haible  <bruno@clisp.org>
19976
19977         vasnprintf: Don't set errno to 0.
19978         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19979         block that sets it to 0.
19980         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19981
19982 2010-10-14  Bruno Haible  <bruno@clisp.org>
19983
19984         socketlib: Fix.
19985         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19986         gl_PREREQ_SYS_H_WINSOCK2.
19987         Reported by Ian Beckwith <ianb@erislabs.net>.
19988
19989 2010-10-13  Jim Meyering  <meyering@redhat.com>
19990
19991         test-select-stdin.c: avoid warn_unused_result warnings
19992         * tests/test-select-stdin.c: Include "macros.h".
19993         ASSERT that read and fflush succeed.
19994
19995 2010-10-13  Jim Meyering  <meyering@redhat.com>
19996
19997         git-version-gen: do require git-VC'd files in cwd
19998         * build-aux/git-version-gen: Reject a git version string
19999         if there are no commits associated with the current directory.
20000         This avoids an unlikely false-positive (unrelated dir whose parent
20001         repository also contains a tag matching v*), as pointed out
20002         by Giuseppe Scrivano in
20003         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20004
20005 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20006
20007         argv-iter: omit nonconforming declaration
20008         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20009         enum arg_iter_err declaration, which doesn't conform to C99.
20010         Solaris 10 cc warns about this.
20011
20012 2010-10-13  Eric Blake  <eblake@redhat.com>
20013
20014         termios: fix compilation on mingw
20015         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20016         (gl_TERMIOS_H): Adjust it on mingw.
20017         * modules/termios (Makefile.am): Substitute new key.
20018         * lib/termios.in.h (includes): Make include_next conditional.
20019         * doc/posix-headers/termios.texi (termios.h): Update
20020         documentation.
20021         Reported by Daniel P. Berrange.
20022
20023 2010-10-13  Jim Meyering  <meyering@redhat.com>
20024
20025         git-version-gen: don't require that .git/ be in the current dir
20026         * build-aux/git-version-gen: Adjust this script so that it works
20027         when run from any working directory beneath the top-level .git/-
20028         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20029         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20030
20031         test-select: avoid warn_unused_result warnings
20032         * tests/test-select.c: Include "macros.h".
20033         ASSERT that each call to read, write, and pipe succeeds.
20034         While not technically required, also check each "close".
20035         * modules/select-tests (Files): Add tests/macros.h.
20036
20037         test-symlinkat: remove declaration of unused local
20038         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20039
20040         test-inttostr: avoid shadowing warnings
20041         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20042         and use malloc rather than the stack for the same reason as
20043         mentioned in the comment justifying the other allocation.
20044
20045 2010-10-11  Bruno Haible  <bruno@clisp.org>
20046
20047         stdlib: Allow multiple gnulib generated replacements to coexist.
20048         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20049         Reported by Sam Steingold <sds@gnu.org>.
20050
20051 2010-10-11  Jim Meyering  <meyering@redhat.com>
20052
20053         fix a documentation typo
20054         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20055
20056 2010-10-11  Eric Blake  <eblake@redhat.com>
20057
20058         futimens: work around Solaris 11 bug
20059         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20060         * tests/test-futimens.h (test_futimens): Enhance, rather than
20061         weaken test.
20062         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20063
20064 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20065
20066         Indentation.
20067         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20068         higher-level operators more to the left.
20069
20070 2010-10-11  Jim Meyering  <meyering@redhat.com>
20071
20072         test-futimens: avoid unwarranted test failure on Solaris 5.11
20073         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20074         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20075         because it tries to dereference the NULL name argument.
20076
20077 2010-10-11  Bruno Haible  <bruno@clisp.org>
20078
20079         Indentation.
20080         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20081         indentation.
20082
20083 2010-10-11  Jim Meyering  <meyering@redhat.com>
20084
20085         spawn.in.h: make indentation consistent with parentheses
20086         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20087         Make indentation consistent with parentheses.
20088
20089 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20090
20091         Fix mismatched parens in previous commit
20092         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20093         parens.
20094
20095 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20096
20097         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20098
20099         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20100         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20101         * lib/malloca.c: Include "verify.h".
20102         (verify1): Remove, replacing with a verify call.
20103         * lib/relocwrapper.c (verify1): Likewise.
20104         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20105         Likewise.
20106         * modules/malloca (Depends-on): Add 'verify'.
20107         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20108         * modules/vasnprintf (Depends-on): Add 'verify'.
20109         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20110         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20111         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20112         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20113         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20114         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20115         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20116
20117         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20118
20119         Formerly the style was sometimes 2*X - 1, because the C standard
20120         was wrongly thought to disallow ?: in integral constant expressions.
20121         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20122         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20123         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20124         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20125         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20126         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20127         verify that time_t cannot be floating.
20128
20129 2010-10-08  Eric Blake  <eblake@redhat.com>
20130
20131         time: enforce recent POSIX ruling that time_t is integral
20132         * lib/time.in.h (__time_t_must_be_integral): Detect any
20133         problematic systems, allowing the rest of gnulib to assume POSIX.
20134
20135 2010-10-08  Jim Meyering  <meyering@redhat.com>
20136
20137         fdopendir: fix a bug on systems lacking openat and /proc support
20138         OpenBSD 4.7 is one such system.  The most noticeable effect was
20139         failure of any application making nontrivial use of fts: rm, du,
20140         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20141           ./rm: traversal failed: `a': Bad file descriptor
20142         Debugging that, you see that even though FD 6 was closed just
20143         prior to the opendir call in fd_clone_opendir, its resulting
20144         dir->dd_fd was 8, rather than the expected value of 6:
20145
20146         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20147         93                close (fd);
20148         (gdb) n
20149         94                dir = fd_clone_opendir (dupfd);
20150         (gdb) n
20151         95                saved_errno = errno;
20152         (gdb) p dir->dd_fd
20153         $11 = 8
20154
20155         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20156         The problem is that on OpenBSD, fd_clone_opendir has to resort
20157         to using the old-style save/restore CWD mechanism, due to its
20158         lack of openat/proc support, and *that* would steal the FD (6)
20159         that opendir was supposed to use.
20160
20161         The fix is to squirrel away the desired FD so that save_cwd uses a
20162         different one, and then free the dest FD right before calling opendir.
20163         That guarantees opendir will use the required file descriptor.
20164
20165         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20166
20167 2010-10-08  Bruno Haible  <bruno@clisp.org>
20168
20169         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20170         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20171
20172 2010-10-08  Bruno Haible  <bruno@clisp.org>
20173
20174         nanosleep: Make replacement POSIX compliant.
20175         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20176         is out of range.
20177         Reported by Jim Meyering.
20178
20179 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20180
20181         bootstrap: add hook for altering gnulib.mk, for Bison
20182         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20183         the Bison bootstrapping process can rewrite file names and variables
20184         in this file before later parts of 'bootstrap' use the file.
20185         Bison wants to include lib/gnulib.mk from the top-level makefile,
20186         so it needs the file names in this file to be relative to the top
20187         level, not relative to lib; plus it needs variable names to be
20188         rewritten.
20189         (slurp): Use the new function.
20190
20191         bootstrap: reformat for readability
20192         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20193
20194 2010-10-08  Eric Blake  <eblake@redhat.com>
20195
20196         docs: update cygwin progress
20197         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20198         1.7.7.
20199         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20200         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20201         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20202         * doc/posix-functions/carg.texi (carg): Likewise.
20203         * doc/posix-functions/cargf.texi (cargf): Likewise.
20204         * doc/posix-functions/casin.texi (casin): Likewise.
20205         * doc/posix-functions/casinf.texi (casinf): Likewise.
20206         * doc/posix-functions/casinh.texi (casinh): Likewise.
20207         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20208         * doc/posix-functions/catan.texi (catan): Likewise.
20209         * doc/posix-functions/catanf.texi (catanf): Likewise.
20210         * doc/posix-functions/catanh.texi (catanh): Likewise.
20211         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20212         * doc/posix-functions/ccos.texi (ccos): Likewise.
20213         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20214         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20215         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20216         * doc/posix-functions/cexp.texi (cexp): Likewise.
20217         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20218         * doc/posix-functions/cimag.texi (cimag): Likewise.
20219         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20220         * doc/posix-functions/clog.texi (clog): Likewise.
20221         * doc/posix-functions/clogf.texi (clogf): Likewise.
20222         * doc/posix-functions/conj.texi (conj): Likewise.
20223         * doc/posix-functions/conjf.texi (conjf): Likewise.
20224         * doc/posix-functions/cpow.texi (cpow): Likewise.
20225         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20226         * doc/posix-functions/cproj.texi (cproj): Likewise.
20227         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20228         * doc/posix-functions/creal.texi (creal): Likewise.
20229         * doc/posix-functions/crealf.texi (crealf): Likewise.
20230         * doc/posix-functions/csin.texi (csin): Likewise.
20231         * doc/posix-functions/csinf.texi (csinf): Likewise.
20232         * doc/posix-functions/csinh.texi (csinh): Likewise.
20233         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20234         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20235         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20236         * doc/posix-functions/ctan.texi (ctan): Likewise.
20237         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20238         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20239         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20240         * doc/posix-headers/complex.texi (complex.h): Likewise.
20241
20242 2010-10-07  Jim Meyering  <meyering@redhat.com>
20243
20244         parse-datetime: avoid compilation failure on OpenBSD 4.7
20245         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20246         This works around a compilation failure on OpenBSD 4.7:
20247         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20248
20249 2010-10-07  Eric Blake  <eblake@redhat.com>
20250
20251         docs: update cygwin progress
20252         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20253         1.7.6.
20254         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20255         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20256         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20257         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20258         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20259         Likewise.
20260         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20261         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20262         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20263         Likewise.
20264         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20265         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20266         Likewise.
20267         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20268         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20269         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20270         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20271         Likewise.
20272         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20273         Likewise.
20274         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20275
20276         docs: update parse-datetime history
20277         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20278         documentation of this function's history and alternatives.
20279
20280         cygwin: use more robust version check
20281         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20282         exclude an eventual cygwin 1.9.1.
20283         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20284         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20285         (gl_FUNC_STRCASESTR): Likewise.
20286         Reported by Bruno Haible.
20287
20288 2010-10-06  Bruno Haible  <bruno@clisp.org>
20289
20290         string, sys_select: Avoid #including large headers unless necessary.
20291         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20292         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20293         OSF/1, BeOS, Haiku.
20294         Reported by Jim Meyering.
20295
20296 2010-10-05  Eric Blake  <eblake@redhat.com>
20297
20298         memmem, strstr, strcasestr: fix bug with long periodic needle
20299         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20300         periodic needle having false positive.
20301         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20302         and cygwin 1.7.7.
20303         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20304         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20305         (gl_FUNC_STRCASESTR): Likewise.
20306         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20307         * tests/test-memmem.c (main): Expose the bug.
20308         * tests/test-strcasestr.c (main): Likewise.
20309         * tests/test-strstr.c (main): Likewise.
20310         * tests/test-c-strcasestr.c (main): Likewise.
20311         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20312         * doc/posix-functions/strstr.texi (strstr): Likewise.
20313         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20314         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20315
20316 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20317
20318         parse-datetime: do some more renaming
20319         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20320         parse_datetime, not get_date.  Mention the renaming.
20321         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20322         in comments.
20323         * m4/bison.m4: Likewise.
20324
20325 2010-10-05  Eric Blake  <eblake@redhat.com>
20326
20327         parse-datetime: better name than get_date
20328         * NEWS: Reword the deprecation notice.
20329         * modules/get_date: Rename to modules/parse-datetime.
20330         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20331         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20332         * lib/get_date.y: Rename to lib/parse-datetime.y.
20333         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20334         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20335         * doc/getdate.texi: Provide fallback wrapper.
20336         * lib/getdate.h: Move guts, and wrap...
20337         * lib/parse-datetime.h: ...new file.
20338         * lib/parse-datetime.y (get_date): Rename...
20339         (parse_datetime): ...to this.
20340         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20341         (gl_PARSE_DATETIME): ...to this.
20342         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20343         documentation.
20344         * modules/getdate (Files): Provide fallback docs and header.
20345         (Notice, Depends-on): Update references.
20346         * tests/test-parse-datetime.c: Likewise.
20347         * DEPENDENCIES: Likewise.
20348         * MODULES.html.sh (Date and time <time.h>): Likewise.
20349         * doc/parse-datetime.texi (Date input formats)
20350         (Authors of parse_datetime): Likewise.
20351         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20352         (Include): Likewise.
20353         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20354         * gnulib-tool: Likewise.
20355         * m4/bison.m4 (gl_BISON): Likewise.
20356         Suggested by Bruno Haible.
20357
20358 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20359
20360         more ports to Solaris tr, which needs [] around ranges
20361         * gnulib-tool: Solaris tr needs [] around ranges.
20362         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20363         * tests/test-pipe-filter-gi1.c (main): Likewise.
20364         * tests/test-pipe-filter-ii1.c (main): Likewise.
20365
20366 2010-10-05  Eric Blake  <eblake@redhat.com>
20367
20368         bootstrap: fix Solaris regression
20369         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20370         around ranges.
20371         Reported by Pádraig Brady.
20372
20373         bootstrap: work with pkg-config
20374         * build-aux/bootstrap (check_versions): Also transliterate - in
20375         prerequisite name.
20376         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20377         prerequisites that were already found, to avoid confusion.
20378         Reported by Justin Clift.
20379
20380         faccessat: remove unused wrappers
20381         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20382         presence of these wrappers dragged in -lgen on Solaris.
20383         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20384
20385 2010-10-05  Jim Meyering  <meyering@redhat.com>
20386
20387         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20388         * Makefile (sc_pragma_columns): New syntax-check rule.
20389
20390 2010-10-04  Bruno Haible  <bruno@clisp.org>
20391
20392         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20393         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20394         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20395         Reported by Bruce Korb and Eric Blake.
20396
20397 2010-10-04  Bruno Haible  <bruno@clisp.org>
20398
20399         threadlib: Make option --with-libpth-prefix work.
20400         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20401         use $LIBPTH, not just -lpth.
20402
20403 2010-10-04  Bruno Haible  <bruno@clisp.org>
20404
20405         Avoid line length limitation from HP NonStop system header files.
20406         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20407         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20408         * lib/ctype.in.h: Likewise.
20409         * lib/dirent.in.h: Likewise.
20410         * lib/errno.in.h: Likewise.
20411         * lib/fcntl.in.h: Likewise.
20412         * lib/float.in.h: Likewise.
20413         * lib/getopt.in.h: Likewise.
20414         * lib/iconv.in.h: Likewise.
20415         * lib/inttypes.in.h: Likewise.
20416         * lib/langinfo.in.h: Likewise.
20417         * lib/locale.in.h: Likewise.
20418         * lib/math.in.h: Likewise.
20419         * lib/netdb.in.h: Likewise.
20420         * lib/netinet_in.in.h: Likewise.
20421         * lib/poll.in.h: Likewise.
20422         * lib/pthread.in.h: Likewise.
20423         * lib/pty.in.h: Likewise.
20424         * lib/sched.in.h: Likewise.
20425         * lib/se-selinux.in.h: Likewise.
20426         * lib/search.in.h: Likewise.
20427         * lib/signal.in.h: Likewise.
20428         * lib/spawn.in.h: Likewise.
20429         * lib/stdarg.in.h: Likewise.
20430         * lib/stddef.in.h: Likewise.
20431         * lib/stdint.in.h: Likewise.
20432         * lib/stdio.in.h: Likewise.
20433         * lib/stdlib.in.h: Likewise.
20434         * lib/string.in.h: Likewise.
20435         * lib/strings.in.h: Likewise.
20436         * lib/sys_file.in.h: Likewise.
20437         * lib/sys_ioctl.in.h: Likewise.
20438         * lib/sys_select.in.h: Likewise.
20439         * lib/sys_socket.in.h: Likewise.
20440         * lib/sys_stat.in.h: Likewise.
20441         * lib/sys_time.in.h: Likewise.
20442         * lib/sys_times.in.h: Likewise.
20443         * lib/sys_utsname.in.h: Likewise.
20444         * lib/sys_wait.in.h: Likewise.
20445         * lib/sysexits.in.h: Likewise.
20446         * lib/termios.in.h: Likewise.
20447         * lib/time.in.h: Likewise.
20448         * lib/unistd.in.h: Likewise.
20449         * lib/wchar.in.h: Likewise.
20450         * lib/wctype.in.h: Likewise.
20451         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20452         * modules/ctype (Makefile.am): Likewise.
20453         * modules/dirent (Makefile.am): Likewise.
20454         * modules/errno (Makefile.am): Likewise.
20455         * modules/fcntl-h (Makefile.am): Likewise.
20456         * modules/float (Makefile.am): Likewise.
20457         * modules/getopt-posix (Makefile.am): Likewise.
20458         * modules/iconv-h (Makefile.am): Likewise.
20459         * modules/inttypes (Makefile.am): Likewise.
20460         * modules/langinfo (Makefile.am): Likewise.
20461         * modules/locale (Makefile.am): Likewise.
20462         * modules/math (Makefile.am): Likewise.
20463         * modules/netdb (Makefile.am): Likewise.
20464         * modules/netinet_in (Makefile.am): Likewise.
20465         * modules/poll-h (Makefile.am): Likewise.
20466         * modules/pthread (Makefile.am): Likewise.
20467         * modules/pty (Makefile.am): Likewise.
20468         * modules/sched (Makefile.am): Likewise.
20469         * modules/search (Makefile.am): Likewise.
20470         * modules/selinux-h (Makefile.am): Likewise.
20471         * modules/signal (Makefile.am): Likewise.
20472         * modules/spawn (Makefile.am): Likewise.
20473         * modules/stdarg (Makefile.am): Likewise.
20474         * modules/stddef (Makefile.am): Likewise.
20475         * modules/stdint (Makefile.am): Likewise.
20476         * modules/stdio (Makefile.am): Likewise.
20477         * modules/stdlib (Makefile.am): Likewise.
20478         * modules/string (Makefile.am): Likewise.
20479         * modules/strings (Makefile.am): Likewise.
20480         * modules/sys_file (Makefile.am): Likewise.
20481         * modules/sys_ioctl (Makefile.am): Likewise.
20482         * modules/sys_select (Makefile.am): Likewise.
20483         * modules/sys_socket (Makefile.am): Likewise.
20484         * modules/sys_stat (Makefile.am): Likewise.
20485         * modules/sys_time (Makefile.am): Likewise.
20486         * modules/sys_times (Makefile.am): Likewise.
20487         * modules/sys_utsname (Makefile.am): Likewise.
20488         * modules/sys_wait (Makefile.am): Likewise.
20489         * modules/sysexits (Makefile.am): Likewise.
20490         * modules/termios (Makefile.am): Likewise.
20491         * modules/time (Makefile.am): Likewise.
20492         * modules/unistd (Makefile.am): Likewise.
20493         * modules/wchar (Makefile.am): Likewise.
20494         * modules/wctype (Makefile.am): Likewise.
20495
20496 2010-10-04  Bruno Haible  <bruno@clisp.org>
20497
20498         read-file tests: Avoid a test failure on NonStop Kernel.
20499         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20500         a regular file.
20501         Reported by Joachim Schmitz <schmitz@hp.com>.
20502
20503 2010-10-03  Bruno Haible  <bruno@clisp.org>
20504
20505         gnulib-tool: Fixes for --create-testdir with --libtool.
20506         * gnulib-tool (func_get_automake_snippet): Don't augment
20507         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20508         an executable.
20509         (func_create_testdir): Handle module 'alloca' like func_import.
20510         Reported by Bruce Korb <bruce.korb@gmail.com>.
20511
20512 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20513
20514         Avoid some lines longer than 80 characters.
20515         * lib/stdint.in.h: Break long comment lines.
20516         * lib/math.in.h: Likewise.
20517         (_GL_NUM_UINT_WORDS): New macro, for readability.
20518         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20519         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20520         * lib/stdlib.in.h: Likewise.
20521         * lib/spawn.in.h: Likewise.
20522         * lib/sys_socket.in.h: Update an URL.
20523         * lib/sys_stat.in.h: Break long line.
20524
20525 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20526
20527         Improve pmccabe2html.
20528         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20529         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20530         when the sources change. Remove the line in the HTML about "Used
20531         ranges" (which implied that there might be other unused ranges),
20532         rename "Resume" to "Summary" (easier to understand for more users).
20533         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20534         styles, and some unnecessary blank lines.
20535
20536 2010-10-03  Bruno Haible  <bruno@clisp.org>
20537             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20538
20539         acl: Add support for ACLs on NonStop Kernel.
20540         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20541         Check whether the function aclsort() exists.
20542         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20543         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20544         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20545         (acl_nontrivial [HAVE_ACLSORT]: New function.
20546         (file_has_acl): Implement for NonStop Kernel.
20547         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20548         (qset_acl): Implement for NonStop Kernel.
20549         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20550         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20551         (main): Implement for NonStop Kernel.
20552         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20553         Kernel. Handle this flavor.
20554         * tests/test-set-mode-acl.sh: Likewise.
20555         * tests/test-copy-acl.sh: Likewise.
20556         * tests/test-copy-file.sh: Likewise.
20557
20558 2010-10-03  Bruno Haible  <bruno@clisp.org>
20559
20560         Info about ACLs on NonStop Kernel.
20561         * doc/acl-resources.txt: Add info about NonStop Kernel.
20562         References by Joachim Schmitz <schmitz@hp.com>.
20563
20564 2010-10-02  Bruno Haible  <bruno@clisp.org>
20565
20566         Define missing EDQUOT on NonStop Kernel.
20567         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20568         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20569         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20570         missing.
20571         * doc/posix-headers/errno.texi: Mention the NSK bug.
20572         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20573         Reported by Joachim Schmitz <schmitz@hp.com>.
20574
20575 2010-10-02  Bruno Haible  <bruno@clisp.org>
20576
20577         Update doc for POSIX:2008.
20578         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20579         Update URL of POSIX specification.
20580
20581 2010-10-02  Bruno Haible  <bruno@clisp.org>
20582
20583         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20584         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20585         from gnulib, not from Automake.
20586
20587 2010-10-02  Bruno Haible  <bruno@clisp.org>
20588
20589         New module 'system-posix'.
20590         * modules/system-posix: New file.
20591         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20592         module is present.
20593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20594         GNULIB_SYSTEM_POSIX.
20595         * modules/stdlib (Depends-on): Remove sys_wait.
20596         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20597         * doc/posix-functions/system.texi: Mention the new module.
20598         * doc/posix-headers/stdlib.texi: Likewise.
20599         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20600         define test_sys_wait_macros to a no-op.
20601         Reported by Sam Steingold <sds@gnu.org>.
20602
20603 2010-09-30  Bruno Haible  <bruno@clisp.org>
20604
20605         More renaming from 'getdate' to 'get_date'.
20606         * doc/get_date.texi: Renamed from doc/getdate.texi.
20607         * modules/get_date (Files): Update.
20608         * MODULES.html.sh (Date and time <time.h>): Update.
20609         * DEPENDENCIES: Update.
20610         * gnulib-tool: Update comment.
20611         * m4/bison.m4 (gl_BISON): Likewise.
20612         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20613
20614 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20615
20616         bootstrap: support ACLOCAL_FLAGS during aclocal
20617         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20618         can add additional -I dir for third-party .m4 files.
20619
20620 2010-09-30  Eric Blake  <eblake@redhat.com>
20621
20622         bootstrap: use glibtoolize on MacOS
20623         * build-aux/bootstrap (check_versions): Convert libtool into
20624         libtoolize.
20625         (tool search): Move libtool check earlier, and look for
20626         glibtoolize for MacOS.
20627         (gnulib_tool_options): Auto-add --libtool when appropriate.
20628         Reported by Justin Clift.
20629
20630         poll: fix typo that broke test on MacOS
20631         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20632         Reported by Justin Clift.
20633
20634         getdate: rename to get_date
20635         Note: getdate.h is not renamed, to minimize client impact.
20636         * modules/getdate: Mark obsolete.  Move old contents...
20637         * modules/get_date: ...to new module name.
20638         * modules/getdate-tests: Move...
20639         * modules/get_date-tests: ...here.
20640         * m4/getdate.m4: Move...
20641         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20642         * lib/getdate.y: Move...
20643         * lib/get_date.y: ...here.
20644         * tests/test-getdate.c: Move...
20645         * tests/test-get_date.c: ...here.
20646         * doc/posix-functions/getdate.texi (getdate): Update name.
20647         * NEWS: Mention the change.
20648
20649 2010-09-29  Bruno Haible  <bruno@clisp.org>
20650
20651         Separate the module 'waitpid' from the module 'sys_wait'.
20652         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20653         present.
20654         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20655         gl_MODULE_INDICATOR_FOR_TESTS.
20656         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20657         * modules/sys_wait (Depends-on): Remove waitpid.
20658         (Makefile.am): Substitute GNULIB_WAITPID.
20659         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20660         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20661         signature only if the 'waitpid' module is present.
20662         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20663         * NEWS: Mention the change.
20664         * modules/grantpt (Depends-on): Add waitpid.
20665         * modules/wait-process (Depends-on): Likewise.
20666
20667 2010-09-29  Bruno Haible  <bruno@clisp.org>
20668
20669         More tests for module 'sys_wait'.
20670         * modules/sys_wait-c++-tests: New file.
20671         * tests/test-sys_wait-c++.cc: New file.
20672         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20673         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20674
20675 2010-09-29  Bruno Haible  <bruno@clisp.org>
20676
20677         New module 'waitpid'.
20678         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20679         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20680         Don't include <process.h>.
20681         (waitpid): Declare only, using modern idiom.
20682         * m4/waitpid.m4: New file.
20683         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20684         * modules/waitpid: New file.
20685         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20686         (Makefile.am): Update.
20687         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20688
20689 2010-09-28  Bruno Haible  <bruno@clisp.org>
20690
20691         poll: Assume ANSI C.
20692         * lib/poll.c (poll): Use an ANSI C declaration.
20693
20694 2010-09-28  Bruno Haible  <bruno@clisp.org>
20695
20696         poll-h: Create poll.h on all platforms.
20697         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20698         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20699         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20700         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20701         (gl_REPLACE_POLL_H): Don't set POLL_H.
20702         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20703         * modules/poll-h (Depends-on): Add include_next.
20704         (Makefile.am): Create poll.h unconditionally. Substitute also
20705         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20706
20707 2010-09-28  Bruno Haible  <bruno@clisp.org>
20708
20709         Tests for module 'poll-h'.
20710         * modules/poll-h-c++-tests: New file.
20711         * tests/test-poll-h-c++.cc: New file.
20712
20713         Tests for module 'poll-h'.
20714         * modules/poll-h-tests: New file.
20715         * tests/test-poll-h.c: New file.
20716
20717 2010-09-28  Bruno Haible  <bruno@clisp.org>
20718
20719         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20720         * modules/poll-h (Depends-on): Add 'extensions'.
20721
20722 2010-09-28  Bruno Haible  <bruno@clisp.org>
20723
20724         New module 'poll-h'.
20725         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20726         (poll): Use modern idiom.
20727         * modules/poll-h: New file.
20728         * modules/poll (Files): Remove lib/poll.in.h.
20729         (Depends-on): Add poll-h.
20730         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20731         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20732         * m4/poll_h.m4: New file.
20733         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20734         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20735         and invoke gl_REPLACE_POLL_H.
20736         * lib/poll.c: Use common idiom.
20737         * tests/test-poll.c: Likewise.
20738         * doc/posix-headers/poll.texi: Mention the poll-h module.
20739         Suggested by Eric Blake.
20740
20741 2010-09-26  Bruno Haible  <bruno@clisp.org>
20742
20743         sys_wait: Implement WSTOPSIG.
20744         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20745         Reported by Simon Josefsson.
20746
20747 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20748
20749         stdlib, sys_wait: Avoid compilation error on mingw.
20750         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20751
20752 2010-09-26  Bruno Haible  <bruno@clisp.org>
20753
20754         stdlib tests: Avoid code duplication.
20755         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20756         * modules/sys_wait-tests (Files): Likewise.
20757         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20758         * tests/test-stdlib.c: Include test-sys_wait.h.
20759         (main): Invoke test_sys_wait_macros.
20760         * tests/test-sys_wait.c: Include test-sys_wait.h.
20761         (main): Invoke test_sys_wait_macros.
20762
20763 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20764
20765         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20766         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20767         sure Windows sockets are working before calling getaddrinfo.
20768         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20769         * doc/gnulib.texi (Windows sockets): Fix typo.
20770
20771 2010-09-25  Bruno Haible  <bruno@clisp.org>
20772
20773         Tests for module 'regex-quote'.
20774         * modules/regex-quote-tests: New file.
20775         * tests/test-regex-quote.c: New file.
20776
20777         New module 'regex-quote'.
20778         * lib/regex-quote.h: New file.
20779         * lib/regex-quote.c: New file.
20780         * modules/regex-quote: New file.
20781         Suggested by Reuben Thomas <rrt@sc3d.org>.
20782
20783 2010-09-24  Bruno Haible  <bruno@clisp.org>
20784
20785         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20786         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20787
20788 2010-09-23  Bruno Haible  <bruno@clisp.org>
20789
20790         setenv: Relax license.
20791         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20792         Blake.
20793         Requested by Eric Blake.
20794
20795 2010-09-22  Bruno Haible  <bruno@clisp.org>
20796
20797         termios: Relax license.
20798         * modules/termios (License): Change to LGPLv2+.
20799         Requested by Eric Blake.
20800
20801 2010-09-22  Bruno Haible  <bruno@clisp.org>
20802
20803         threadlib: Allow the package to change the default to 'no'.
20804         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20805         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20806         Reported by Paul Eggert.
20807
20808 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20809             Bruno Haible  <bruno@clisp.org>
20810
20811         Fix endless loop in mbmemcasecoll.
20812         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20813         byte.
20814         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20815
20816 2010-09-22  Bruno Haible  <bruno@clisp.org>
20817
20818         Tests for module 'memcoll'.
20819         * modules/memcoll-tests: New file.
20820         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20821
20822         memcoll, xmemcoll: Clarify size vs. length.
20823         * modules/memcoll.c (memcoll0): Clarify specification.
20824         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20825         passed to collate_error.
20826
20827 2010-09-22  Bruno Haible  <bruno@clisp.org>
20828
20829         Tests for module 'memcasecmp'.
20830         * modules/memcasecmp-tests: New file.
20831         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20832
20833 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20834
20835         * lib/pthread.in.h: Add split double-inclusion guard, and include
20836         system <pthread.h> if there is one.  Use @@-style as in other
20837         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20838         pthread.h doesn't.
20839         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20840         (pthread_mutexattr_settype, pthread_mutex_trylock):
20841         New static inline functions, if there's no system <pthread.h>.
20842         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20843         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20844         Approximate with mutexes if the system lacks spinlocks, as in
20845         MacOS.
20846         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20847         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20848         @@-style.  Check for spinlocks separately.
20849         (gl_PTHREAD_DEFAULTS): New macro.
20850         * modules/pthread: Redo to use a more typical style for in.h files.
20851
20852 2010-09-21  Eric Blake  <eblake@redhat.com>
20853
20854         net_if: enhance tests
20855         * tests/test-net_if.c (main): Move signature checks earlier.
20856         Print failures to stderr.
20857         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20858         Document the bug that we do not yet fix.
20859
20860 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20861
20862         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20863         about gnulib, not GSS.
20864
20865 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20866
20867         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20868         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20869         for Emacs.
20870         * build-aux/pmccabe2html: Make Makefile.am example code more
20871         cut-and-paste friendly.
20872
20873 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20874
20875         * tests/test-net_if.c: New file.
20876         * modules/net_if-tests: New file.
20877
20878 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20879
20880         pthread: add pthread_spin_destroy
20881         * lib/pthread.in.h (pthread_spin_destroy): New function.
20882
20883 2010-09-19  Bruno Haible  <bruno@clisp.org>
20884
20885         gnulib-tool: Fix --help output.
20886         * gnulib-tool (func_usage): Fix help message.
20887         Reported by Reuben Thomas <rrt@sc3d.org>.
20888
20889 2010-09-18  Jim Meyering  <meyering@redhat.com>
20890
20891         maint.mk: avoid unexpanded \n in two diagnostics
20892         * top/maint.mk (sc_prohibit_always_true_header_tests):
20893         Don't use a literal \n in a halt=... assignment.  It would not be
20894         expanded, and the two \n bytes would appear in the diagnostic output
20895         rather than the desired newline.  Use halt=$$(printf ... instead.
20896         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20897
20898 2010-09-18  Bruno Haible  <bruno@clisp.org>
20899
20900         netinet_in: Doc tweak.
20901         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20902         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20903
20904 2010-09-18  Jim Meyering  <meyering@redhat.com>
20905
20906         init.sh: correct an outdated comment
20907         * tests/init.sh (create_exe_shims_):  s/function/alias/
20908
20909         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20910         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20911         a file named "*.exe" is removed between the glob expansion and the
20912         processing of that oddly named file.
20913
20914 2010-09-17  Eric Blake  <eblake@redhat.com>
20915
20916         mirbsd: add some more support
20917         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20918         in BSD family.
20919         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20920         devices as OpenBSD.
20921         * m4/host-os.m4 (mirbsd): Add MirBSD.
20922
20923         tests: fix unportable assumption on sys/wait.h
20924         * tests/test-sys_wait.c (main): Relax test.
20925         * tests/test-stdlib.c (main): Likewise.
20926
20927         init.sh: accomodate directory with no .exes
20928         * tests/init.sh: Accomodate directory containing only scripts.
20929
20930         tests: avoid compiler warning
20931         * tests/test-stdlib.c (main): Use the variable.
20932
20933         fdutimens, fdutimensat: update signature, again
20934         * lib/utimens.h (gl_futimens): Delete, and move signature...
20935         (fdutimens): ...here.
20936         (fdutimensat): Rearrange signature.
20937         (lutimensat): Rename variable for clarity.
20938         * lib/fdutimensat.c (fdutimensat): Update signature.
20939         * lib/utimens.c (fdutimens): Likewise.
20940         (gl_futimens): Delete.
20941         (utimens, lutimens): Update callers.
20942         * lib/futimens.c (futimens): Likewise.
20943         * tests/test-fdutimensat.c: Likewise.
20944         * tests/test-utimens.c: Likewise.
20945         * tests/test-futimens.h: Update comment.
20946         * NEWS: Mention this.
20947         Suggested by Paul Eggert.
20948
20949 2010-09-17  Bruno Haible  <bruno@clisp.org>
20950
20951         Take over the maintenance of some older macros from Autoconf.
20952         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20953         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20954         GNU Autoconf.
20955         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20956         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20957
20958 2010-09-17  Eric Blake  <eblake@redhat.com>
20959
20960         fdutimensat: drop atflag validation
20961         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20962         with valid fd, to close a race scenario where futimens is
20963         unsupported and FILE was replaced by a symlink.
20964         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20965         accordingly.
20966         Suggested by Paul Eggert.
20967
20968 2010-09-16  Bruno Haible  <bruno@clisp.org>
20969
20970         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20971         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20972
20973 2010-09-16  Bruno Haible  <bruno@clisp.org>
20974
20975         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20976         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20977         login_tty exists.
20978         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20979
20980 2010-09-16  Bruno Haible  <bruno@clisp.org>
20981
20982         login_tty: Make the replacement code work on BSD systems.
20983         * lib/login_tty.c: Include <sys/ioctl.h>.
20984         (login_tty): Use ioctl TIOCSCTTY when available.
20985         * modules/login_tty (Depends-on): Add sys_ioctl.
20986         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20987
20988 2010-09-16  Bruno Haible  <bruno@clisp.org>
20989
20990         login_tty: Stricter unit test.
20991         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20992         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20993         and tcgetsid() after login_tty.
20994         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20995
20996 2010-09-16  Bruno Haible  <bruno@clisp.org>
20997
20998         New module 'tcgetsid'.
20999         * lib/tcgetsid.c: New file.
21000         * m4/tcgetsid.m4: New file.
21001         * modules/tcgetsid: New file.
21002         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21003         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21004         GNULIB_TCGETSID, HAVE_TCGETSID.
21005         * lib/termios.in.h: Include <sys/types.h>.
21006         (tcgetsid): New declaration.
21007         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21008         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21009         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21010         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21011
21012 2010-09-16  Bruno Haible  <bruno@clisp.org>
21013
21014         Tests for module 'termios'.
21015         * modules/termios-c++-tests: New file.
21016         * modules/termios-tests: New file.
21017         * tests/test-termios-c++.cc: New file.
21018         * tests/test-termios.c: New file.
21019
21020         New module 'termios'.
21021         * modules/termios: New file.
21022         * lib/termios.in.h: New file.
21023         * m4/termios_h.m4: New file.
21024         * doc/posix-headers/termios.texi: Mention the new module.
21025
21026 2010-09-16  Eric Blake  <eblake@redhat.com>
21027
21028         fdutimensat: add an atflag parameter
21029         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21030         * lib/utimens.h (fdutimensat): Update prototype.
21031         * tests/test-fdutimensat.c: Adjust test to match.
21032         * NEWS: Document the change.
21033         Suggested by Paul Eggert.
21034
21035 2010-09-16  Bruno Haible  <bruno@clisp.org>
21036
21037         Fix typos in comments.
21038         * lib/striconveh.h: Fix typo in comment.
21039         * lib/login_tty.c (login_tty): Likewise.
21040
21041 2010-09-15  Bruno Haible  <bruno@clisp.org>
21042
21043         stdlib: clarify MirBSD WEXITSTATUS bug
21044         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21045         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21046
21047 2010-09-15  Eric Blake  <eblake@redhat.com>
21048
21049         stdlib: work around MirBSD WEXITSTATUS bug
21050         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21051         * modules/stdlib (Depends-on): Add sys_wait.
21052         * tests/test-sys_wait.c (main): Enhance test.
21053         * tests/test-stdlib.c (main): Likewise.
21054         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21055
21056         docs: mention MacOS issue with WEXITSTATUS(constant)
21057         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21058         issue.
21059         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21060
21061         strnlen: add tests
21062         * modules/strnlen-tests: New file.
21063         * tests/test-strnlen.c: Likewise.
21064
21065 2010-09-14  Bruno Haible  <bruno@clisp.org>
21066
21067         unistr/base: Avoid link errors when module 'libunistring' is also used.
21068         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21069         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21070         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21071         Declare also when HAVE_LIBUNISTRING is set.
21072         Reported by Pádraig Brady <P@draigbrady.com>.
21073
21074 2010-09-14  Eric Blake  <eblake@redhat.com>
21075
21076         test-rawmemchr: make more robust
21077         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21078         (Depends-on, configure.ac): Add needed prerequisites to use it.
21079         * modules/memchr-tests (Files, Depends-on, configure.ac):
21080         Likewise, to avoid implicit reliance on memchr module prereqs.
21081         * tests/test-memchr.c (main): Ensure proper masking.
21082         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21083         reads.
21084
21085         memchr: detect glibc Alpha bug
21086         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21087         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21088         Alpha.
21089         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21090         * tests/test-memchr.c (main): Enhance test.
21091         Reported by Nelson H. F. Beebe.
21092
21093 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21094
21095         fts, getcwd, glob: audit for dirfd returning -1
21096         * lib/fts.c (opendir): Remove #define; no longer used.
21097         (opendirat): New arg PDIR_FD.  All callers changed.
21098         (fts_build, _opendir2): Use new opendirat to avoid the need for
21099         dirfd, or for checking whether dirfd returns a negative value.
21100         Don't use opendir; always use openat followed by fdopendir.
21101         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21102         it.
21103         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21104         returns -1 here.
21105         * modules/fts (Depends-on): Remove dirfd.
21106         * modules/getcwd (Depends-on): Likewise.
21107
21108 2010-09-13  Eric Blake  <eblake@redhat.com>
21109
21110         float: fix broken MirBSD header
21111         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21112         * doc/posix-headers/float.texi (float.h): Document it.
21113
21114 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21115
21116         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21117         * lib/fts.c (opendirat): New arg extra_flags.
21118         (__opendir2): Use it to avoid following symlinks when opening
21119         a directory, if symlinks are not supposed to be followed.  See
21120         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21121
21122         fdopendir: preserve argument fd before returning
21123         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21124         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21125         (fdopendir): Use them, arranging for FD to be open to the same
21126         directory that it was when it started.  (It might be temporarily
21127         closed while fdopendir is running, so this not thread- or
21128         signal-safe.)  Be careful to do the right thing even when file
21129         descriptors are scarce and dup fails with errno == EMFILE.  See
21130         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21131
21132 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21133
21134         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21135         * NEWS: Document change.
21136         * m4/regex.m4: Disable test for regoff_t size.
21137
21138 2010-09-13  Jim Meyering  <meyering@redhat.com>
21139
21140         fts: don't operate on an invalid file descriptor after failed dup
21141         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21142         negative file descriptor.
21143
21144 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21145
21146         savedir: add streamsavedir, deprecate fdsavedir
21147         * NEWS: Mention deprecation of fdsavedir.
21148         * lib/savedir.c (streamsavedir): New extern function, whose name
21149         ends in "savedir" to be consistent with the others.  This differs
21150         from savedirstream in that it doesn't close its argument.  The
21151         next version of GNU tar will use this instead of fdsavedir, to
21152         avoid some race conditions and conserve file descriptors.
21153         (savedirstream): Reimplement as a wrapper around streamsavedir.
21154         (fdsavedir): Add a comment deprecating this function.  As far as
21155         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21156         * lib/savedir.h (streamsavedir): New decl.
21157         (fdsavedir): Add a comment deprecating this.
21158
21159 2010-09-10  Bruno Haible  <bruno@clisp.org>
21160
21161         langinfo: Fix last commit.
21162         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21163         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21165
21166 2010-09-10  Bruno Haible  <bruno@clisp.org>
21167
21168         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21169         * lib/progreloc.c (O_EXEC): Define fallback.
21170
21171 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21172
21173         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21174         * NEWS: Document recent changes to fcntl-h.
21175         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21176         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21177         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21178         Similarly for O_SEARCH; this last was already true, but not documented.
21179         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21180         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21181         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21182         Likewise.
21183         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21184         is zero, not whether it is defined.
21185         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21186         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21187         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21188
21189 2010-09-10  Bruno Haible  <bruno@clisp.org>
21190
21191         langinfo, nl_langinfo: Fix for IRIX 5.3.
21192         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21193         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21194         HAVE_LANGINFO_YESEXPR.
21195         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21196         HAVE_LANGINFO_YESEXPR.
21197         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21198         HAVE_LANGINFO_T_FMT_AMPM is 0.
21199         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21200         HAVE_LANGINFO_YESEXPR is 0.
21201         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21202         NOEXPR.
21203         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21204         * doc/posix-functions/nl_langinfo.texi: Likewise.
21205         Reported by Eric Blake.
21206
21207 2010-09-10  Bruno Haible  <bruno@clisp.org>
21208
21209         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21210         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21211         on FreeBSD 8.0 and OpenBSD 4.6.
21212         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21213         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21214         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21215         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21216         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21217         ac_includes_default.
21218         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21219
21220 2010-09-09  Eric Blake  <eblake@redhat.com>
21221
21222         strsignal: work around NetBSD bug
21223         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21224         * lib/string.in.h (includes): Likewise.
21225         * doc/posix-functions/strsignal.texi (strsignal): Document the
21226         bug.
21227         Reported by Nelson H. F. Beebe.
21228
21229         gnulib-tool: work with NetBSD /bin/sh
21230         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21231         (func_get_description, func_get_comment, func_get_status)
21232         (func_get_notice, func_get_applicability, func_get_filelist)
21233         (func_get_dependencies, func_get_autoconf_early_snippet)
21234         (func_get_autoconf_snippet, func_get_automake_snippet)
21235         (func_get_include_directive, func_get_link_directive)
21236         (func_get_license, func_get_maintainer, func_import): Avoid
21237         shell syntax errors from parsing syntax extensions.
21238
21239 2010-09-09  Bruno Haible  <bruno@clisp.org>
21240
21241         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21242         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21243         a reliable way to determine whether the 'alias' command works.
21244
21245 2010-09-08  Jim Meyering  <meyering@redhat.com>
21246
21247         init.sh: penalize a set-x-impaired shell; don't disqualify it
21248         * tests/init.sh: Too many shells corrupt application stderr when
21249         you set -x, so we can't afford to disqualify them, since at least
21250         on Irix-6.5, that would disqualify all bourne shells.
21251         Instead, use a two-pass approach.
21252         On the first pass, try to find a shell that meets the stricter
21253         condition that set -x does not corrupt stderr.
21254         If no shell meets the stricter condition, retest each candidate
21255         shell, but without that extra condition.  Finally, when
21256         VERBOSE=yes is requested and set -x might cause trouble, simply
21257         issue a warning and refrain from enabling debug output.
21258
21259 2010-09-08  Eric Blake  <eblake@redhat.com>
21260
21261         unsetenv: fix OpenBSD bug
21262         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21263         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21264         documentation.
21265         Reported by Jim Meyering.
21266
21267         strtod: work around IRIX 6.5 bug
21268         * lib/strtod.c (strtod): Reparse number on shorter string if
21269         exponent parse was invalid.
21270         * tests/test-strtod.c (main): Add check for "0x1p 2".
21271         Reported by Tom G. Christensen.
21272
21273         getopt: optimize previous patch
21274         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21275         empty variable.  Speed up awk script.
21276         Reported by Paolo Bonzini.
21277
21278 2010-09-08  Jim Meyering  <meyering@redhat.com>
21279
21280         test.sh: disqualify shells for which set -x corrupts stderr
21281         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21282         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21283         appear in stderr output.  For example, this command:
21284             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21285         prints "P=1" on those two systems:
21286
21287 2010-09-08  Bruno Haible  <bruno@clisp.org>
21288
21289         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21290         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21291         commands, because some shells ignore redirections when there is an
21292         error in the command lookup.
21293         Reported by Eric Blake.
21294
21295 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21296
21297         * lib/regex.h: Fix a mention of `regex_compile' (should be
21298         `re_compile_pattern').
21299         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21300         (re_set_registers): Correct name of parameter in comment.
21301
21302         * doc/regex.texi: Add documentation for missing syntax flags.
21303         Remove commented-out documentation of defunct syntax option
21304         RE_NO_EMPTY_ALTS.
21305         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21306         Add documentation of re_set_registers.
21307         Document trick to re-use a pattern buffer by setting fastmap manually.
21308         Update documentation of struct re_pattern_buffer per public members.
21309         Uncomment documentation of equivalence class operators and
21310         collating symbol operators, since they are now implemented,
21311         Explain leftmost-longest matching in relation to alternatives.
21312         Tidy documentation of substring matching.
21313         Remove POSIX documentation, which is done better in
21314         glibc, and refer the reader there. Keep BSD API documentation, as
21315         that is not readily available elsewhere.
21316
21317 2010-09-07  Eric Blake  <eblake@redhat.com>
21318
21319         getopt: handle POSIXLY_CORRECT set but not exported
21320         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21321         export state of POSIXLY_CORRECT, due to bash set -o posix.
21322         Reported by Dustin J. Mitchell.
21323
21324 2010-09-05  Bruno Haible  <bruno@clisp.org>
21325
21326         gnulib-tool: Highlight the changed options.
21327         * gnulib-tool (func_usage): Display the --import, --add-import,
21328         --remove-import explanations in bold font.
21329
21330 2010-09-06  Karl Berry  <karl@gnu.org>
21331
21332         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21333
21334 2010-09-05  Bruno Haible  <bruno@clisp.org>
21335
21336         uniwidth/width: Update comment.
21337         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21338         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21339
21340 2010-09-05  Bruno Haible  <bruno@clisp.org>
21341
21342         isinf, isnan: Relax license.
21343         * modules/isinf (License): Change from GPL to LGPL, with consent from
21344         Ben Pfaff.
21345         * modules/isnan (License): Likewise.
21346         Requested by Ludovic Courtès.
21347
21348 2010-09-04  Bruno Haible  <bruno@clisp.org>
21349
21350         gnulib-tool: Help migration from --import to --add-import or --update.
21351         * gnulib-tool: Emit a verbose error message when --import is used
21352         without any module name.
21353
21354 2010-09-04  Bruno Haible  <bruno@clisp.org>
21355
21356         Update doc about gnulib-tool.
21357         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21358         'gnulib-tool --update' in more detail.
21359         Reported by Eric Blake.
21360
21361 2010-09-04  Bruno Haible  <bruno@clisp.org>
21362
21363         gnulib-tool: Change --import. New options --add/remove-import.
21364         * gnulib-tool: New options --add-import, --remove-import.
21365         (func_usage): Document them.
21366         (have_associative): Define always.
21367         (func_import): In import mode, don't merge the specified settings with
21368         the cached settings. Implement remove-import mode.
21369         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21370         Explain when to use them versus --import.
21371         (Simple update): Use --add-import instead of --import.
21372         * NEWS: Mention the change.
21373
21374 2010-09-04  Bruno Haible  <bruno@clisp.org>
21375
21376         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21377         separate gnulib.mk.
21378
21379 2010-09-04  Bruno Haible  <bruno@clisp.org>
21380
21381         gnulib-tool: Don't talk about CVS any more.
21382         * gnulib-tool (func_usage, func_import): Write "version control"
21383         instead of CVS.
21384
21385 2010-09-04  Jim Meyering  <meyering@redhat.com>
21386
21387         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21388         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21389         false positives (whose names may be ill-chosen) when searching
21390         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21391         would cause a false-positive.
21392
21393         avoid coreutils "make distcheck" failure
21394         Coreutils tests with an absolute build directory name that contains
21395         a space.  Not quoting this directory name caused a failure.
21396         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21397         * tests/test-vc-list-files-cvs.sh: Likewise.
21398
21399 2010-09-04  Bruno Haible  <bruno@clisp.org>
21400
21401         gnulib-tool: Avoid error when run in a package without Makefile.am.
21402         * gnulib-tool: When collecting the m4dirs in a package that does not
21403         have a Makefile.am, eliminate those directories that contain no
21404         gnulib-cache.m4. Fix expression that counts these directories.
21405
21406 2010-09-04  Bruno Haible  <bruno@clisp.org>
21407
21408         update-copyright test: Improve output when perl is missing or too old.
21409         * tests/test-update-copyright.sh: Move test of Perl version down after
21410         the test whether Perl exists. Provide an explanation relating Perl's
21411         error message to Automake's SKIP: message.
21412
21413 2010-09-04  Bruno Haible  <bruno@clisp.org>
21414
21415         Don't augment PATH in TESTS_ENVIRONMENT.
21416         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21417         set abs_aux_dir instead of augmenting PATH.
21418         * modules/vc-list-files-tests (Makefile.am): Likewise.
21419         * tests/test-update-copyright.sh: Augment PATH here.
21420         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21421         path_prepend_.
21422         * tests/test-vc-list-files-git.sh: Likewise.
21423
21424 2010-09-04  Jim Meyering  <meyering@redhat.com>
21425
21426         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21427         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21428
21429 2010-09-04  Bruno Haible  <bruno@clisp.org>
21430
21431         strdup: Fix compilation error in C++ mode.
21432         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21433         the macro.
21434
21435 2010-09-04  Bruno Haible  <bruno@clisp.org>
21436
21437         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21438         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21439         macro into a function.
21440         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21441
21442 2010-09-04  Bruno Haible  <bruno@clisp.org>
21443
21444         Set PATH_SEPARATOR the same way autoconf does.
21445         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21446         the value of PATH_SEPARATOR the same way autoconf-generated configure
21447         scripts do.
21448         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21449         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21450
21451 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21452
21453         Set PATH_SEPARATOR the same way autoconf does.
21454         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21455         the same way autoconf-generated configure scripts do.
21456         * posix-modules: Likewise.
21457
21458 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21459
21460         hash: fix safe_hasher const typo
21461         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21462         const; otherwise, there is a type error later.
21463
21464 2010-09-02  Jim Meyering  <meyering@redhat.com>
21465
21466         test-update-copyright.sh: require perl 5.8.0
21467         * tests/test-update-copyright.sh: Require 5.8.0,
21468         which Tom G. Christensen has confirmed is adequate,
21469         while 5.6.1 is not.
21470
21471 2010-09-02  Eric Blake  <eblake@redhat.com>
21472
21473         tests: init.sh improvements for re-exec'ing with zsh
21474         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21475         -vx through shell re-exec.
21476         Reported by Tom G. Christensen.
21477
21478         wctype: fix typo in previous commit
21479         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21480         Reported by Ludovic Courtès.
21481
21482 2010-09-02  Jim Meyering  <meyering@redhat.com>
21483
21484         test-update-copyright.sh: skip test if Perl is too old
21485         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21486         Reported by Tom G. Christensen.
21487
21488 2010-09-02  Bruno Haible  <bruno@clisp.org>
21489
21490         wctype: Avoid compilation error on IRIX 6.5.30.
21491         * lib/wctype.in.h (iswblank): Declare with a replacement if
21492         REPLACE_ISWBLANK is set.
21493         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21494         declared. Set REPLACE_ISWBLANK.
21495         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21496         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21497         * doc/posix-headers/wctype.texi: Likewise.
21498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21499
21500 2010-09-01  Bruno Haible  <bruno@clisp.org>
21501
21502         New module 'socketlib'.
21503         * modules/socketlib: New file.
21504         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21505         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21506         * modules/sockets (Depends-on): Add socketlib.
21507         Suggested by Sam Steingold <sds@gnu.org>.
21508
21509 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21510
21511         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21512
21513         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21514         when one needs search access to a directory but not read access.
21515         On systems where it is available, it works in some cases where
21516         O_RDONLY does not, namely on directories that are searchable but
21517         not readable, and which need only to be searchable.  If O_SEARCH
21518         is not available, fall back to the traditional method of using
21519         O_RDONLY.
21520
21521         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21522         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21523         when opening a directory that needs only to be searchable.
21524         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21525         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21526         * lib/openat-proc.c (openat_proc_name): Likewise.
21527         * lib/openat.c (openat_needs_fchdir): Likewise.
21528         * lib/save-cwd.c (save_cwd): Likewise.
21529         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21530
21531 2010-08-28  Bruno Haible  <bruno@clisp.org>
21532
21533         New module 'host-cpu-c-abi'.
21534         * modules/host-cpu-c-abi: New file.
21535         * m4/host-cpu-c-abi.m4: New file, based on part of
21536         clisp/src/m4/general.m4.
21537         Requested by Sam Steingold <sds@gnu.org>.
21538
21539 2010-08-31  Eric Blake  <eblake@redhat.com>
21540         and Jim Meyering  <meyering@redhat.com>
21541
21542         hash: factor, and guard against misbehaving hasher function
21543         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21544         of table->hasher's return value.  Also protect against a hash value
21545         so large that adding it to table->bucket results in a NULL pointer.
21546         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21547         Use it in place of open-coded check-and-abort.
21548
21549 2010-08-30  Bruno Haible  <bruno@clisp.org>
21550
21551         hash: silence spurious clang warning
21552         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21553         Reported by Eric Blake.
21554
21555 2010-08-30  Eric Blake  <eblake@redhat.com>
21556
21557         strstr, memmem, strcasestr: avoid leaked shell message
21558         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21559         FreeBSD.
21560         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21561         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21562
21563         tests: silence clang warning
21564         * tests/test-malloca.c (do_allocation): Avoid dead store.
21565
21566 2010-08-29  Bruno Haible  <bruno@clisp.org>
21567
21568         gettext: Fix recent mistake.
21569         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21570
21571 2010-08-29  Bruno Haible  <bruno@clisp.org>
21572
21573         selinux-h: Offer a --without-selinux option.
21574         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21575         --without-selinux was specified, skip all tests and define
21576         HAVE_SELINUX_SELINUX_H to 0.
21577         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21578         set LIB_SELINUX to empty.
21579         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21580         gl_LIBSELINUX. If --without-selinux was specified, replace
21581         selinux/context.h.
21582         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21583
21584 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21585             Bruno Haible  <bruno@clisp.org>
21586
21587         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21588         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21589         of HAVE_REALLOC.
21590         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21591         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21592         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21593         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21594
21595 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21596             Bruno Haible  <bruno@clisp.org>
21597
21598         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21599         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21600         HAVE_CALLOC.
21601         * lib/xmalloc.c: Update accordingly.
21602         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21603         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21604         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21605
21606 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21607             Bruno Haible  <bruno@clisp.org>
21608
21609         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21610         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21611         HAVE_MALLOC.
21612         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21613         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21614         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21615
21616 2010-08-29  Bruno Haible  <bruno@clisp.org>
21617
21618         Update modules list.
21619         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21620         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21621         (String handling <string.h>): Add astrxfrm.
21622         (File system functions): Add readlinkat.
21623
21624 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21625
21626         Tests for module 'realloc-gnu'.
21627         * modules/realloc-gnu-tests: New file.
21628         * tests/test-realloc-gnu.c: New file.
21629
21630         Tests for module 'calloc-gnu'.
21631         * modules/calloc-gnu-tests: New file.
21632         * tests/test-calloc-gnu.c: New file.
21633
21634         Tests for module 'malloc-gnu'.
21635         * modules/malloc-gnu-tests: New file.
21636         * tests/test-malloc-gnu.c: New file.
21637
21638 2010-08-28  Bruno Haible  <bruno@clisp.org>
21639
21640         Rename module 'realloc' -> 'realloc-gnu'.
21641         * modules/realloc-gnu: New file, copied from modules/realloc.
21642         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21643         obsolete.
21644         * modules/mgetgroups (Depends-on): Update.
21645         * doc/posix-functions/realloc.texi: Update.
21646         * NEWS: Mention the change.
21647
21648         Rename module 'calloc' -> 'calloc-gnu'.
21649         * modules/calloc-gnu: New file, copied from modules/calloc.
21650         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21651         obsolete.
21652         * doc/posix-functions/calloc.texi: Update.
21653         * NEWS: Mention the change.
21654
21655         Rename module 'malloc' -> 'malloc-gnu'.
21656         * modules/malloc-gnu: New file, copied from modules/malloc.
21657         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21658         obsolete.
21659         * modules/argp (Depends-on): Update.
21660         * modules/regex (Depends-on): Update.
21661         * doc/posix-functions/malloc.texi: Update.
21662         * NEWS: Mention the change.
21663
21664 2010-08-28  Eric Blake  <eblake@redhat.com>
21665
21666         pread, pwrite: add missing dependency
21667         * modules/pread (Depends-on): Add extensions.
21668         * modules/pwrite (Depends-on): Likewise.
21669
21670 2010-08-28  Bruno Haible  <bruno@clisp.org>
21671
21672         unistr/u*-strchr: Fix tests dependencies.
21673         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21674         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21675         Reported by Ian Beckwith <ianb@erislabs.net>.
21676
21677 2010-08-28  Bruno Haible  <bruno@clisp.org>
21678
21679         read-file: Don't occupy too much unused memory.
21680         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21681
21682 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21683             Eric Blake  <eblake@redhat.com>
21684             Bruno Haible  <bruno@clisp.org>
21685
21686         read-file: Avoid memory reallocations with regular files.
21687         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21688         (fread_file): With regular files, use the remaining length as the
21689         initial buffer size.  Check against overflow.
21690         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21691         sys_stat.
21692
21693 2010-08-28  Bruno Haible  <bruno@clisp.org>
21694
21695         ftello: Relax license.
21696         * modules/ftello (License): Relax to LGPLv2+.
21697         Reported by Eric Blake.
21698
21699 2010-08-28  Bruno Haible  <bruno@clisp.org>
21700
21701         Avoid relocwrapper link errors due to gnulib replacement functions.
21702         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21703         function.
21704         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21705
21706 2010-08-28  Bruno Haible  <bruno@clisp.org>
21707
21708         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21709         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21710         defined.
21711         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21712         Suggested by Eric Blake.
21713
21714 2010-08-28  Bruno Haible  <bruno@clisp.org>
21715
21716         sys_socket, netdb: Ensure socklen_t gets defined.
21717         * modules/sys_socket (Depends-on): Add socklen.
21718         * modules/netdb (Depends-on): Likewise.
21719         * modules/getaddrinfo (Depends-on): Remove socklen.
21720         * modules/getsockopt (Depends-on): Likewise.
21721         * modules/setsockopt (Depends-on): Likewise.
21722         * tests/test-sys_socket.c: Check that socklen_t is defined.
21723         * tests/test-netdb.c: Likewise.
21724         * m4/socklen.m4: Update comments.
21725         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21726
21727 2010-08-27  Eric Blake  <eblake@redhat.com>
21728
21729         login_tty: add missing dependency
21730         * modules/login_tty (Depends-on): Add pty.
21731
21732 2010-08-26  Eric Blake  <eblake@redhat.com>
21733
21734         lib-symbol-versions: fix m4 quoting
21735         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21736         format for AC_LINK_IFELSE.
21737
21738         glob: fix compile test
21739         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21740
21741         btowc: fix missing file
21742         * modules/btowc (Files): Also ship locale-fr.m4.
21743
21744         lseek: fix link test
21745         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21746         AC_LINK_IFELSE.
21747
21748         include_next: silence autoconf 2.68 warning
21749         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21750         AC_COMPILE_IFELSE as special.
21751         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21752         autoconf < 2.68.
21753
21754         acl: fix compilation test
21755         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21756         AC_COMPILE_IFELSE.
21757
21758 2010-08-26  Bruno Haible  <bruno@clisp.org>
21759
21760         Modernize AC_TRY_RUN invocations.
21761         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21762         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21763         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21764         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21765         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21766         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21767         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21768         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21769         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21770         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21771         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21772         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21773         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21774         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21775         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21776         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21777         gl_MBRLEN_NUL_RETVAL): Likewise.
21778         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21779         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21780         Likewise.
21781         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21782         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21783         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21784         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21785         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21786         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21787         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21788         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21789         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21790         Likewise.
21791         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21792         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21793         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21794         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21795         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21796         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21797         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21798         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21799         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21801
21802 2010-08-26  Bruno Haible  <bruno@clisp.org>
21803
21804         Modernize AC_TRY_LINK invocations.
21805         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21806         AC_TRY_LINK.
21807         * m4/argp.m4 (gl_ARGP): Likewise.
21808         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21809         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21810         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21811         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21812         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21813         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21814         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21815         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21816         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21817         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21818         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21819         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21820         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21821         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21822         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21823         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21824         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21825         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21826         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21827         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21828         Likewise.
21829         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21830         Likewise.
21831         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21832         Likewise.
21833         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21834         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21835         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21836         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21837         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21838         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21839         * m4/servent.m4 (gl_SERVENT): Likewise.
21840         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21841         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21842         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21843         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21844         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21845         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21846         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21847         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21848         * modules/tsearch-tests (configure.ac): Likewise.
21849
21850 2010-08-26  Bruno Haible  <bruno@clisp.org>
21851
21852         Modernize AC_TRY_COMPILE invocations.
21853         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21854         AC_TRY_COMPILE.
21855         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21856         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21857         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21858         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21859         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21860         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21861         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21862         * m4/lock.m4 (gl_LOCK): Likewise.
21863         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21864         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21865         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21866         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21867         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21868         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21869         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21870         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21871         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21872         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21873         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21874         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21875         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21876         extraneous semicolon.
21877
21878 2010-08-26  Jim Meyering  <meyering@redhat.com>
21879
21880         stat-time: relax license LGPL
21881         * modules/stat-time (License): Change from GPL to LGPL,
21882         with consent from all contributors, for use in libguile.
21883         Requested by Ludovic Courtès.
21884
21885 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21886
21887         poll: return immediately on POLLHUP.
21888         * lib/poll.c (poll): Always set timeout before wait_timeout is
21889         computed.
21890
21891 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21892
21893         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21894         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21895         rmdir ("dir/.//"), unlinkat.
21896
21897 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21898
21899         stdbool: avoid spurious failure with modern xlc
21900         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21901
21902 2010-08-24  Bruno Haible  <bruno@clisp.org>
21903
21904         getloadavg: simplify code
21905         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21906         gl_have_func. Update comments.
21907
21908 2010-08-24  Eric Blake  <eblake@redhat.com>
21909
21910         getloadavg: don't define SVR4 on cygwin
21911         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21912         only define SVR4 when -lkvm is required.
21913         Reported by Yaakov Selkowitz.
21914
21915 2010-08-24  Bruno Haible  <bruno@clisp.org>
21916
21917         priv-set: fix comment
21918         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21919
21920 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21921
21922         priv-set: fix comments
21923         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21924         to match code, as suggested by David Bartley in:
21925         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21926
21927 2010-08-23  Eric Blake  <eblake@redhat.com>
21928
21929         stdbool: avoid rejecting clang
21930         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21931         * tests/test-stdbool.c: Enable more tests if using the system
21932         <stdbool.h> instead of the gnulib replacement.
21933         (main): Move xlc bug test to a runtime test for all compilers.
21934         Reported by Anders Kaseorg.
21935
21936         argz: fix shell quoting issue
21937         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21938         Reported by Charles Wilson.
21939
21940 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21941             Erik Faye-Lund <kusmabite@gmail.com>
21942
21943         poll, select: handle ERROR_BROKEN_PIPE.
21944         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21945         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21946         * lib/select.c (win32_compute_revents): Do not mark a pipe
21947         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21948
21949 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21950
21951         fts: allow compilation with C++
21952         * lib/fts_.h: Specify extern "C" linkage with C++.
21953
21954 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21955
21956         Fix gnulib-tool sed script de-commentation for AIX sed.
21957         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21958         sed.
21959
21960 2010-08-17  Eric Blake  <eblake@redhat.com>
21961
21962         test-stddef: test for (some) offsetof bugs
21963         * tests/test-stddef.c: Enhance test to ensure correct type of
21964         offsetof.
21965         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21966         that we are not fixing at this time.
21967
21968 2010-08-15  Bruno Haible  <bruno@clisp.org>
21969
21970         stpncpy: Allow stpncpy to be defined as a macro.
21971         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21972         if it's already correctly declared.
21973         * lib/string.in.h (stpncpy): Undefine before redefining.
21974         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21975
21976 2010-08-14  Bruno Haible  <bruno@clisp.org>
21977
21978         Rename module 'memxfrm' to 'amemxfrm'.
21979         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21980         (amemxfrm): Renamed from memxfrm.
21981         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21982         (amemxfrm): Renamed from memxfrm.
21983         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21984         * NEWS: Mention the change.
21985         * MODULES.html.sh (String handling <string.h>): Update.
21986         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21987         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21988         * lib/unicase/u16-casexfrm.c: Likewise.
21989         * lib/unicase/u32-casexfrm.c: Likewise.
21990         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21991         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21992         * lib/uninorm/u16-normxfrm.c: Likewise.
21993         * lib/uninorm/u32-normxfrm.c: Likewise.
21994         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21995         memxfrm.
21996         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21997         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21998         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21999         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22000         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22001         Suggested by Paul Eggert.
22002
22003 2010-08-14  Bruno Haible  <bruno@clisp.org>
22004
22005         Tests for module 'astrxfrm'.
22006         * modules/astrxfrm-tests: New file.
22007         * tests/test-astrxfrm.c: New file.
22008
22009         New module 'astrxfrm'.
22010         * lib/astrxfrm.h: New file.
22011         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22012         * modules/astrxfrm: New file.
22013
22014 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22015
22016         regex: Tweak doc.
22017         * doc/regex.texi (Overview): Don't mention regex.c.
22018         (GNU Regular Expression Compiling): Likewise.
22019         (Match-end-of-line Operator): Mention 'not_eol'.
22020
22021 2010-08-14  Brian Gough  <bjg@gnu.org>
22022             Bruno Haible  <bruno@clisp.org>
22023
22024         git-merge-changelog: add doc relating to use with bzr and hg.
22025         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22026
22027 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22028
22029         pthread: fix pthread.h creation for srcdir != builddir
22030         * modules/pthread (Makefile.am): Fix the rule to work also in a
22031         non-srcdir build.
22032
22033 2010-08-13  Karl Berry  <karl@gnu.org>
22034
22035         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22036         * doc/posix-*/*: force line break before @url of POSIX
22037         specifications.
22038         Suggested by Werner Lemberg.
22039
22040 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22041
22042         strtod: fix const diagnostic
22043         * lib/strtod.c (strtod): Don't assign const char * to char *,
22044         as this elicits a warning from GCC when warnings are enabled.
22045
22046 2010-08-10  Pádraig Brady <P@draigbrady.com>
22047         and Eric Blake  <eblake@redhat.com>
22048
22049         copy-acl: ignore ENOTSUP on HP-UX
22050         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22051         so that it is available for HP-UX.
22052         * lib/copy-acl.c (qcopy_acl): Use it.
22053         Reported by Patrick M. Callahan.
22054
22055 2010-08-10  Eric Blake  <eblake@redhat.com>
22056
22057         open, chown: relax license
22058         * modules/open (License): Change to LGPLv2+, with consent by all
22059         authors, for use in augeas.
22060         * modules/chown (License): Likewise.
22061         * modules/lchown (Likewise): Likewise.
22062         Requested by Adam Stokes.
22063
22064 2010-08-09  Karl Berry  <karl@gnu.org>
22065
22066         * build-aux/ar-lib: new file, import from Automake.
22067         * config/srclist.txt: autocheck for updates.
22068
22069 2010-08-09  Eric Blake  <eblake@redhat.com>
22070
22071         readlinkat: adjust client modules
22072         * modules/areadlinkat (Depends-on): Use readlinkat, not
22073         symlinkat.
22074         * modules/areadlinkat-with-size (Depends-on): Likewise.
22075
22076         mknod: be more vocal about danger of running tests as root
22077         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22078         root, since that is just asking for problems.
22079         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22080
22081         readlinkat: split into its own module
22082         * modules/symlinkat: Split readlinkat...
22083         * modules/readlinkat: ...into separate module.
22084         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22085         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22086         * lib/symlinkat.c (readlinkat): Move...
22087         * lib/readlinkat.c: ...into new file.
22088         * modules/symlinkat-tests: Split readlinkat test...
22089         * modules/readlinkat-tests: ...into separate module.
22090         * tests/test-symlinkat.c: Split...
22091         * tests/test-readlinkat.c: ...into new file.
22092         * NEWS: Document the split.
22093         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22094         * lib/unistd.in.h (readlinkat): Likewise.
22095         Suggested by Bruno Haible.
22096
22097 2010-08-08  Bruno Haible  <bruno@clisp.org>
22098
22099         memxfrm: Speed up.
22100         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22101         that usually only one call to strxfrm is necessary for each string
22102         part.
22103         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22104
22105 2010-08-07  Karl Berry  <karl@gnu.org>
22106
22107         * doc/posix-headers/limits.texi,
22108         * doc/posix-functions/malloc.texi,
22109         * doc/posix-functions/strsignal.texi: missing @item.
22110         * doc/ld-version-script.texi: spurious leading i.
22111         * doc/regex.texi (Interval Operators): no commas inside @var.
22112
22113 2010-08-01  Bruno Haible  <bruno@clisp.org>
22114
22115         Integrate the regex documentation.
22116         * doc/gnulib.texi: Define 'cn' index.
22117         (Regular expressions): New a chapter that includes regex.texi and
22118         regexprops-generic.texi.
22119         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22120         syntax.
22121
22122         Whitespace cleanup.
22123         * doc/regex.texi: Remove trailing spaces.
22124
22125         Add regex documentation.
22126         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22127         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22128         Written by Kathy A. Hargreaves and Karl Berry.
22129
22130 2010-08-01  Bruno Haible  <bruno@clisp.org>
22131
22132         link: Update documentation.
22133         * doc/posix-functions/link.texi: Update regarding Solaris.
22134
22135 2010-07-31  Bruno Haible  <bruno@clisp.org>
22136
22137         Update modules list.
22138         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22139         (String handling <string.h>): Add memcmp2, memxfrm.
22140         (Container data structures): Add xlist, xsublist, xoset.
22141         (Core language properties): Add alignof, unused-parameter.
22142         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22143         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22144         (Unibyte characters <ctype.h>): New section.
22145         (String handling <string.h>): New section.
22146         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22147         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22148         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22149         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22150         tan, tanh, tanl, y0, y1, yn.
22151         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22152         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22153         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22154         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22155         unlockpt, vdprintf, vdprintf-posix.
22156         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22157         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22158         xconcat-filename.
22159         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22160         getdtablesize, pipe2, pipe2-safer.
22161         (Security): New section.
22162         (Networking functions): Add accept4.
22163         (Signal handling): Add sigpipe.
22164         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22165         mbmemcasecoll.
22166         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22167         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22168         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22169         pipe-filter-ii.
22170         (Misc): Add argp-version-etc, login_tty, parse-duration.
22171
22172 2010-07-31  Bruno Haible  <bruno@clisp.org>
22173
22174         Improve doc in MODULES.html.
22175         * modules/linkat (Description): Add the word "function".
22176         * modules/mkfifo (Description): Likewise.
22177         * modules/mknod (Description): Likewise.
22178         * modules/remove (Description): Likewise.
22179         * modules/renameat (Description): Likewise.
22180         * modules/stat (Description): Likewise.
22181         * modules/symlink (Description): Likewise.
22182         * modules/unlink (Description): Likewise.
22183
22184 2010-07-31  Bruno Haible  <bruno@clisp.org>
22185
22186         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22187         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22188         option --enable/disable-c++ instead of --enable/disable-cxx.
22189         * NEWS: Mention the change.
22190
22191 2010-07-31  Bruno Haible  <bruno@clisp.org>
22192
22193         readlink, areadlink: Relax test a bit.
22194         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22195         alternative to ENOTDIR.
22196         * tests/test-areadlink.h (test_areadlink): Likewise.
22197         Reported by Rainer Tammer.
22198
22199 2010-07-31  Bruno Haible  <bruno@clisp.org>
22200
22201         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22202         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22203         character, perform the search using U_STRCHR.
22204         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22205         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22206         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22207         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22208         Suggested by Paolo Bonzini.
22209
22210 2010-07-31  Bruno Haible  <bruno@clisp.org>
22211
22212         unistr/u*-strstr: Fix dependencies.
22213         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22214         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22215         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22216
22217 2010-07-31  Bruno Haible  <bruno@clisp.org>
22218
22219         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22220         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22221         the beginning of the loop.
22222         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22223         cases in 'switch' statement.
22224
22225         unistr/u8-strchr: Fix several bugs.
22226         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22227         the string. When not found, return NULL, not a pointer near the end.
22228
22229         More tests for unistr/u8-strchr.
22230         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22231         that the function does not read past the first occurrence of the byte
22232         being searched.
22233         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22234         * tests/unistr/test-u16-strchr.c (main): New function.
22235         * tests/unistr/test-u32-strchr.c (main): New function.
22236
22237 2010-07-31  Bruno Haible  <bruno@clisp.org>
22238
22239         posix-modules: Ignore backup files of documentation files.
22240         * posix-modules: grep only through files named *.texi.
22241
22242 2010-07-31  Bruno Haible  <bruno@clisp.org>
22243
22244         symlinkat: Fix documentation.
22245         * doc/posix-functions/readlinkat.texi: Fix module name.
22246
22247 2010-07-31  Bruno Haible  <bruno@clisp.org>
22248
22249         fchownat: Replace also when chown has the trailing slash bug.
22250         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22251         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22252         introduced on 2010-04-10.
22253         Reported by Rainer Tammer.
22254
22255 2010-07-31  Bruno Haible  <bruno@clisp.org>
22256
22257         linkat: Work around AIX 7.1 bug.
22258         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22259         whether linkat handles trailing slash correctly. If not, replace linkat
22260         and define LINKAT_TRAILING_SLASH_BUG.
22261         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22262         check whether (fd1,file1) points to a directory if file1 or file2 ends
22263         in a slash. Code taken from lib/link.c.
22264         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22265         Reported by Rainer Tammer.
22266
22267 2010-07-31  Bruno Haible  <bruno@clisp.org>
22268
22269         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22270         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22271         This disables an xlc optimization that was causing wrong test results.
22272         Reported by Rainer Tammer.
22273
22274 2010-07-31  Bruno Haible  <bruno@clisp.org>
22275
22276         iconv: Work around AIX 6.1..7.1 bug.
22277         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22278         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22279         cross-compiling, guess no on all versions of AIX.
22280         Reported by Rainer Tammer.
22281
22282 2010-07-31  Bruno Haible  <bruno@clisp.org>
22283
22284         readlink: Relax test a bit.
22285         * tests/test-readlink.h (test_readlink): Allow different errno value
22286         when readlink is called with a file name that ends in / and refers to
22287         a file.
22288         Suggested by Eric Blake.
22289         Reported by Rainer Tammer.
22290
22291 2010-07-31  Bruno Haible  <bruno@clisp.org>
22292
22293         copysign: Does not require -lm on glibc systems.
22294         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22295         gl_COMMON_DOUBLE_MATHFUNC.
22296         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22297
22298 2010-07-31  Bruno Haible  <bruno@clisp.org>
22299
22300         duplocale: Work around AIX 7.1 bug.
22301         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22302         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22303         * lib/duplocale.c (rpl_duplocale): Update comment.
22304         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22305         Reported by Rainer Tammer.
22306
22307 2010-07-30  Bruno Haible  <bruno@clisp.org>
22308
22309         dirfd: Avoid link error on AIX 7.1.
22310         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22311         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22312         exist, set REPLACE_DIRFD.
22313         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22314         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22315         * doc/posix-functions/dirfd.texi: Update.
22316         Reported by Rainer Tammer.
22317
22318 2010-07-30  Eric Blake  <eblake@redhat.com>
22319
22320         strtod: next round of AIX fixes
22321         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22322         exponent.
22323         * tests/test-strtod.c (main): Enhance tests.
22324         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22325         Reported by Rainer Tammer.
22326
22327         futimens: fix configure check
22328         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22329         Reported by Bruno Haible.
22330
22331 2010-07-30  Bruno Haible  <bruno@clisp.org>
22332
22333         getline: Update regarding AIX.
22334         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22335         Reported by Rainer Tammer.
22336
22337 2010-07-30  Bruno Haible  <bruno@clisp.org>
22338
22339         wcwidth: Drop replacement on AIX 7.
22340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22341         AIX 7.
22342         Reported by Rainer Tammer.
22343
22344 2010-07-30  Bruno Haible  <bruno@clisp.org>
22345
22346         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22347         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22348         a 'char *'.
22349         Reported by Rainer Tammer.
22350
22351 2010-07-30  Bruno Haible  <bruno@clisp.org>
22352
22353         unlink: Update regarding AIX.
22354         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22355         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22356         Reported by Rainer Tammer.
22357
22358 2010-07-30  Bruno Haible  <bruno@clisp.org>
22359
22360         symlink: Update regarding AIX.
22361         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22362         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22363         Reported by Rainer Tammer.
22364
22365 2010-07-30  Bruno Haible  <bruno@clisp.org>
22366
22367         strndup: Update regarding AIX.
22368         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22369         AIX 7.
22370         Reported by Rainer Tammer.
22371
22372 2010-07-30  Bruno Haible  <bruno@clisp.org>
22373
22374         stat: Update regarding AIX.
22375         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22376         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22377         Reported by Rainer Tammer.
22378
22379 2010-07-30  Bruno Haible  <bruno@clisp.org>
22380
22381         truncl: Fix autoconf test.
22382         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22383         whether truncl works.
22384         Reported by Rainer Tammer.
22385
22386 2010-07-30  Bruno Haible  <bruno@clisp.org>
22387
22388         round: Update regarding AIX.
22389         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22390         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22391         Reported by Rainer Tammer.
22392
22393 2010-07-30  Bruno Haible  <bruno@clisp.org>
22394
22395         rename: Update regarding AIX.
22396         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22397         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22398         Reported by Rainer Tammer.
22399
22400 2010-07-30  Bruno Haible  <bruno@clisp.org>
22401
22402         printf.m4: Update regarding AIX.
22403         * m4/printf.m4: Update comments regarding AIX.
22404         Reported by Rainer Tammer.
22405
22406 2010-07-30  Bruno Haible  <bruno@clisp.org>
22407
22408         iconv: Update regarding AIX.
22409         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22410         AIX 7.
22411         Reported by Rainer Tammer.
22412
22413 2010-07-30  Bruno Haible  <bruno@clisp.org>
22414
22415         getopt: Update regarding AIX.
22416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22417         no on AIX.
22418         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22419         Reported by Rainer Tammer.
22420
22421 2010-07-30  Bruno Haible  <bruno@clisp.org>
22422
22423         ldexpl; Update regarding AIX.
22424         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22425         on AIX 7.
22426         Reported by Rainer Tammer.
22427
22428 2010-07-30  Bruno Haible  <bruno@clisp.org>
22429
22430         frexpl: Update regarding AIX.
22431         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22432         on AIX 7.
22433         Reported by Rainer Tammer.
22434
22435 2010-07-30  Bruno Haible  <bruno@clisp.org>
22436
22437         open, fopen: Update regarding AIX.
22438         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22439         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22440         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22441         * doc/posix-functions/fopen.texi: Likewise.
22442         Reported by Rainer Tammer.
22443
22444 2010-07-30  Bruno Haible  <bruno@clisp.org>
22445
22446         chown: Update doc regarding AIX.
22447         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22448         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22449         Reported by Rainer Tammer.
22450
22451 2010-07-30  Eric Blake  <eblake@redhat.com>
22452
22453         strtod: fix bug in replacement function on AIX
22454         * lib/strtod.c (strtod): Special case broken "0x" parse in
22455         underlying strtod.
22456         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22457         * doc/posix-functions/strtod.texi (strtod): Likewise.
22458         Reported by Rainer Tammer.
22459
22460 2010-07-30  Bruno Haible  <bruno@clisp.org>
22461
22462         mbrlen: Fix cross-compilation guess for AIX.
22463         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22464         guess. Leftover from 2008-12-22.
22465
22466 2010-07-30  Bruno Haible  <bruno@clisp.org>
22467
22468         mbrtowc: Fix cross-compilation guess for AIX.
22469         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22470         guess. Leftover from 2008-12-21.
22471
22472 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22473
22474         init.sh: work around trap limitation of some shells
22475         * tests/init.sh (setup_): Move exit trap outside of shell function.
22476
22477 2010-07-29  Eric Blake  <eblake@redhat.com>
22478
22479         strtod: aid debugging
22480         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22481         understanding why strtod is rejected.
22482
22483 2010-07-28  Bruno Haible  <bruno@clisp.org>
22484
22485         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22486         * lib/unistr/u8-chr.c: Include <string.h>.
22487         * tests/unistr/test-u8-chr.c: Likewise.
22488         * tests/unistr/test-u16-chr.c: Likewise.
22489         * tests/unistr/test-u32-chr.c: Likewise.
22490         * tests/unistr/test-u8-strchr.c: Likewise.
22491         * tests/unistr/test-u16-strchr.c: Likewise.
22492         * tests/unistr/test-u32-strchr.c: Likewise.
22493         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22494         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22495         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22496         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22497
22498 2010-07-28  Bruno Haible  <bruno@clisp.org>
22499
22500         Use spaces for indentation, not tabs.
22501         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22502
22503 2010-07-27  Bruno Haible  <bruno@clisp.org>
22504
22505         mbspcasecmp: Fix function specification.
22506         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22507         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22508         Reported by Eric Blake <eblake@redhat.com>.
22509
22510 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22511
22512         timespec: use cast and not conditional, as truncation isn't possible
22513         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22514         instead of a conditional.  Comment about the situation in more detail.
22515         This undoes most of the 2009-10-29 patch.
22516
22517 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22518
22519         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22520         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22521         * lib/unistr/u8-strchr.c: Likewise.
22522         * modules/unistr/u8-chr: Depend on memchr.
22523
22524         unistr/u*-strchr: add tests
22525         * modules/unistr/u8-strchr-tests: New file.
22526         * modules/unistr/u16-strchr-tests: New file.
22527         * modules/unistr/u32-strchr-tests: New file.
22528         * tests/unistr/test-strchr.h: New file.
22529         * tests/unistr/test-u8-strchr.c: New file.
22530         * tests/unistr/test-u16-strchr.c: New file.
22531         * tests/unistr/test-u32-strchr.c: New file.
22532
22533         unistr/u*-chr: test multibyte sequences more
22534         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22535         test vector.
22536         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22537         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22538         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22539
22540         unistr/u*-chr: test multibyte sequences
22541         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22542
22543         unistr/u*-chr: prepare for multibyte tests
22544         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22545         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22546         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22547         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22548         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22549         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22550
22551 2010-07-18  Bruno Haible  <bruno@clisp.org>
22552
22553         unistr/u8-strchr: Optimize non-ASCII argument case.
22554         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22555         because the first byte often matches anyway.
22556         Reported by Pádraig Brady <P@draigbrady.com>.
22557
22558 2010-07-15  Karl Berry  <karl@gnu.org>
22559
22560         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22561
22562 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22563
22564         getcwd: on Solaris, work better if ancestors are inaccessible
22565         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22566         buffer and size, try again with a large buffer.  This works better
22567         on Solaris, since its getcwd succeeds even if the path to the root
22568         is inaccessible, and this is helpful in common cases such as .zfs
22569         hidden directories.  Problem reported by J Chapman Flack in
22570         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22571         Use system getcwd if it's declared, not merely if it's partly
22572         working; use the partly-working test only to avoid needless effort
22573         if the system getcwd fails.
22574         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22575         comment that was already obsolete and is now even more obsolete.
22576         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22577         now might call strdup.
22578
22579 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22580
22581         pthread: Add enough so that coreutils/src/sort.c compiles.
22582         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22583         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22584         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22585         Include <sys/types.h>, in case it defines pthread_t.
22586         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22587         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22588         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22589         (pthread_rwlockattr_t, pthread_spinlock_t):
22590         New typedefs, if HAVE_PTHREAD_T is not defined.
22591         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22592         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22593         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22594         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22595         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22596         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22597         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22598         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22599         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22600         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22601         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22602         New macros.
22603         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22604         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22605         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22606         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22607         (pthread_spin_unlock): New dummy functions.
22608         (pthread_create): Return EAGAIN; don't set errno.
22609         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22610         require AC_C_INLINE.
22611         * modules/pthread (Depends-on): Add sched, time.
22612         (pthread.h): Use AM_V_GEN.
22613
22614 2010-07-13  Bruno Haible  <bruno@clisp.org>
22615
22616         striconveh: Don't malloc memory if the result buffer is sufficient.
22617         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22618         buffer if its size is sufficient.
22619         Reported by Ludovic Courtès <ludo@gnu.org>.
22620
22621 2010-07-13  Bruno Haible  <bruno@clisp.org>
22622
22623         strtod: Add safety check.
22624         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22625
22626 2010-07-12  Bruno Haible  <bruno@clisp.org>
22627
22628         Unify tests that set gl_cv_func_ldexpl_no_libm.
22629         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22630         gl_FUNC_LDEXPL.
22631         (gl_FUNC_LDEXPL): Invoke it.
22632         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22633
22634 2010-07-12  Bruno Haible  <bruno@clisp.org>
22635
22636         Unify tests that set gl_cv_func_ldexp_no_libm.
22637         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22638         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22639         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22640         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22641         * modules/strtod (Files): Add m4/ldexp.m4.
22642
22643 2010-07-12  Bruno Haible  <bruno@clisp.org>
22644
22645         Unify tests that set gl_cv_func_frexpl_no_libm.
22646         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22647         gl_FUNC_FREXPL_NO_LIBM.
22648         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22649         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22650
22651 2010-07-12  Bruno Haible  <bruno@clisp.org>
22652
22653         Unify tests that set gl_cv_func_frexp_no_libm.
22654         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22655         gl_FUNC_FREXP_NO_LIBM.
22656         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22657         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22658
22659 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22660
22661         memcoll: clarify sizes versus lengths, document better, and tweak perf
22662         * lib/memcoll.c (strcoll_loop, memcoll0):
22663         Improve quality of descriptive comments.  Name variables
22664         consistently as to whether they are lengths (which do not include
22665         terminating null) versus sizes (which do).
22666         * lib/xmemcoll.c (xmemcoll0): Likewise.
22667         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22668         returned when s1size == 0; this is easier to compile and saves
22669         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22670
22671 2010-07-12  Bruno Haible  <bruno@clisp.org>
22672
22673         Tests for module '_Exit'.
22674         * modules/_Exit-tests: New file.
22675         * tests/test-_Exit.sh: New file.
22676         * tests/test-_Exit.c: New file.
22677
22678         New module '_Exit'.
22679         * lib/stdlib.in.h (__attribute__): New macro.
22680         (_Exit): New declaration.
22681         * lib/_Exit.c: New file.
22682         * m4/_Exit.m4: New file.
22683         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22684         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22685         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22686         * modules/_Exit: New file.
22687         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22688         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22689
22690 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22691
22692         strtod: make it more-accurate typically, and don't require libm
22693         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22694         Include limits.h.  Don't include string.h.
22695         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22696         (locale_isspace): New function, so that no casts are needed to
22697         check whether *s is a space.
22698         (ldexp): Provide an unused dummy if not available.
22699         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22700         (strtod): Use them.  This implementation prefers to use the
22701         underlying strtod if available, falling back on our own code
22702         only to fix known bugs.  This is more likely to produce an
22703         accurate result.  Also, it avoids the use of libm functions.
22704         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22705         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22706         was absent, but it caused a test failure with coreutils.
22707         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22708         with libm.
22709         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22710         * modules/strtod-tests (Makefile.am): Likewise.
22711
22712 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22713             Bruno Haible  <bruno@clisp.org>
22714
22715         unistr/u8-strchr: Optimize ASCII argument case.
22716         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22717
22718 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22719
22720         (x)memcoll: minor tweaks
22721         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22722         is after the type that it qualifies.
22723         (memcoll0): Likewise.
22724         * lib/memcoll.h (memcoll0): Likewise.
22725         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22726         * lib/xmemcoll.h (xmemcoll0): Likewise.
22727         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22728         differs from memcoll in that the NUL byte is part of the argument.
22729         Omit the abort-checks, as performance is a real issue here.  Plus,
22730         the checks were wrong anyway (an off-by-one error).  Omit local
22731         variable 'diff', as it's a bit clearer that way.
22732         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22733         no longer needed.
22734
22735 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22736
22737         (x)memcoll: speedup when input is known to be NUL delimited
22738         * lib/memcoll.c: Include stdlib.
22739         (memcoll0): New function.
22740         (strcoll_loop): New function, refactored for use in both memcoll
22741         and memcoll0.
22742         * lib/memcoll.h (memcoll0): Add prototype.
22743         * lib/xmemcoll.c (xmemcoll0): New function.
22744         (collate_error): New function, refactored for use in both xmemcoll
22745         and xmemcoll0.
22746         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22747         * m4/memcoll.m4: add inline invocation.
22748
22749 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22750
22751         * build-aux/bootstrap: Remove any local translations
22752         from the translation project synchronization directory,
22753         so that local only translations are not distributed.
22754
22755 2010-07-04  Bruno Haible  <bruno@clisp.org>
22756
22757         fsusage: Clarify which code applies to which platforms.
22758         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22759         platform.
22760         * lib/fsusage.c (get_fs_usage): Likewise.
22761
22762 2010-07-04  Bruno Haible  <bruno@clisp.org>
22763
22764         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22765         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22766         Reported by Martin Lambers <marlam@marlam.de>.
22767
22768 2010-07-04  Jim Meyering  <meyering@redhat.com>
22769
22770         hash: once again explicitly disallow insertion of NULL
22771         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22772         inserting a NULL pointer cannot work with these functions.
22773         Add a comment with details.
22774         This reverts part of the 2010-07-01 commit, 5bef1a35
22775         "hash: extend module to deal with non-pointer keys".
22776
22777 2010-07-01  Bruno Haible  <bruno@clisp.org>
22778
22779         stdbool: Update doc.
22780         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22781         Info from Christian Weisgerber <naddy@mips.inka.de>.
22782
22783 2010-07-01  Jim Meyering  <meyering@redhat.com>
22784
22785         hash: extend module to deal with non-pointer keys
22786         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22787         but that allows insertion of non-pointer entries.
22788         Do not disallow an ENTRY value of NULL.
22789         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22790         * lib/hash.h (hash_insert0): Declare.
22791
22792 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22793
22794         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22795         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22796         not present (i.e. with autoconf 2.59 and when using gettextize, not
22797         gnulib), require AC_GNU_SOURCE instead.
22798
22799 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22800
22801         idpriv-drop: Fix tests.
22802         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22803         not to the test-idpriv-droptemp program.
22804
22805 2010-06-29  Bruno Haible  <bruno@clisp.org>
22806
22807         string: Fix syntax error with g++ 2.96.
22808         * lib/string.in.h (__pure__): Remove definition.
22809         (_GL_ATTRIBUTE_PURE): New macro.
22810         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22811         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22812         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22813
22814 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22815
22816         unitypes: Fix bug introduced on 2010-05-18.
22817         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22818
22819 2010-06-22  Eric Blake  <eblake@redhat.com>
22820
22821         memmem: slight optimization
22822         * lib/str-two-way.h (critical_factorization): Update comments.
22823         Reduce work during factorization phase.
22824         Reported by Carlos Bueno <carlos@bueno.org>.
22825
22826 2010-06-21  Bruno Haible  <bruno@clisp.org>
22827
22828         Fix HAVE_CALLOC_POSIX misnomer.
22829         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22830         !HAVE_CALLOC_POSIX.
22831         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22832         HAVE_CALLOC_POSIX.
22833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22834         instead of HAVE_CALLOC_POSIX.
22835         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22836         HAVE_CALLOC_POSIX.
22837
22838         Use modern idiom for calloc() replacement.
22839         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22840         AC_FUNC_CALLOC.
22841         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22842         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22843         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22844         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22845         (gl_REPLACE_CALLOC): New macro.
22846
22847 2010-06-21  Bruno Haible  <bruno@clisp.org>
22848
22849         Fix HAVE_REALLOC_POSIX misnomer.
22850         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22851         !HAVE_REALLOC_POSIX.
22852         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22853         HAVE_REALLOC_POSIX.
22854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22855         instead of HAVE_REALLOC_POSIX.
22856         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22857         HAVE_REALLOC_POSIX.
22858
22859         Use modern idiom for realloc() replacement.
22860         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22861         AC_FUNC_REALLOC.
22862         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22863         Autoconf's AC_FUNC_REALLOC.
22864         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22865         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22866         (gl_REPLACE_REALLOC): New macro.
22867         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22868
22869 2010-06-21  Bruno Haible  <bruno@clisp.org>
22870
22871         Fix HAVE_MALLOC_POSIX misnomer.
22872         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22873         !HAVE_MALLOC_POSIX.
22874         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22875         HAVE_MALLOC_POSIX.
22876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22877         instead of HAVE_MALLOC_POSIX.
22878         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22879         HAVE_MALLOC_POSIX.
22880
22881         Use modern idiom for malloc() replacement.
22882         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22883         AC_FUNC_MALLOC.
22884         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22885         Autoconf's AC_FUNC_MALLOC.
22886         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22887         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22888         (gl_REPLACE_MALLOC): New macro.
22889         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22890
22891 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22892
22893         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22894         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22895         This macro takes 3 arguments, not 4.
22896
22897 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22898
22899         ipv6: fix detection under mingw
22900         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22901         in6_addr.
22902
22903 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22904
22905         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22906         that strtod() works when cross-compiling to a glibc version known
22907         to work.
22908
22909 2010-06-15  Bruno Haible  <bruno@clisp.org>
22910
22911         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22912
22913 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22914
22915         select: Correct timeout.
22916         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22917
22918 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22919
22920         git-version-gen: init shell var to avoid env var influence
22921         * build-aux/git-version-gen (v): Init shell var to empty.
22922
22923 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22924
22925         priv-set: Don't assume that priv.h exists merely because getppriv does.
22926         See Jan Andersen's bug report about AIX 5L in
22927         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22928         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22929         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22930         * lib/priv-set.h: Likewise.
22931         * tests/test-priv-set.c: Likewise.
22932
22933 2010-06-13  Bruno Haible  <bruno@clisp.org>
22934
22935         relocatable: Make it easier to test whether to install wrappers.
22936         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22937         RELOCATABLE_VIA_WRAPPER.
22938
22939 2010-06-13  Bruno Haible  <bruno@clisp.org>
22940
22941         gnulib-tool: Display specified modules and dependencies differently.
22942         * gnulib-tool (func_show_module_list): New function.
22943         (func_import, func_create_testdir): Invoke it.
22944         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22945
22946 2010-06-13  Bruno Haible  <bruno@clisp.org>
22947
22948         gnulib-tool: Align code of func_import and func_create_testdir.
22949         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22950         specified_modules.
22951
22952 2010-06-12  Jim Meyering  <meyering@redhat.com>
22953
22954         test-inttostr: avoid spurious failure on Solaris 9
22955         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22956         to accept "%ju".  Reported by Bruno Haible.
22957
22958 2010-06-11  Jim Meyering  <meyering@redhat.com>
22959
22960         test-sys_socket: mark variables as used more readably
22961         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22962         as "used" explicitly via (void) statement casts.  This is more
22963         readable than using them in an artificial return expression.
22964         Suggestion from Bruno Haible.
22965
22966 2010-06-11  Bruno Haible  <bruno@clisp.org>
22967
22968         Avoid some more warnings from "gcc -Wwrite-strings".
22969         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22970         to 'const char *'.
22971         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22972         * tests/test-c-strcasestr.c (main): Likewise.
22973         * tests/test-mbscasestr1.c (main): Likewise.
22974         * tests/test-mbscasestr2.c (main): Likewise.
22975         * tests/test-memmem.c (main): Likewise.
22976         * tests/test-strstr.c (main): Likewise.
22977         * tests/test-strcasestr.c (main): Likewise.
22978
22979 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22980
22981         init.sh: change framework_failure_ to fail with status 99, not 1
22982         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22983         automake's parallel-tests rule that this is an unexpected failure,
22984         even if the test is listed in XFAIL_TESTS.
22985
22986 2010-06-11  Jim Meyering  <meyering@redhat.com>
22987
22988         test-inttostr: avoid warnings about 4-6KB literal strings
22989         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22990         Include "macros.h", for its definition of ASSERT.
22991         (CK): s/assert/ASSERT/
22992         * modules/inttostr-tests (Files): Add macros.h.
22993
22994         init.sh: don't use $ME_ or skip_ before they are defined
22995         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22996         their first uses.  Also hoist their companions: warn_, fail_,
22997         framework_failure_, $stderr_fileno.  Prompted by a patch from
22998         Stefano Lattarini.
22999
23000         test-sys_socket: avoid set-but-not-used warnings from gcc
23001         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23002         avoid warning about set-but-not-used variables.
23003
23004         test-xvasprintf: avoid 'const' discard warnings
23005         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23006         "const" when assigning from literal strings.
23007         (test_xasprintf): Add "void" in function argument list to placate
23008         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23009
23010         tests: avoid compilation warnings in argmatch and exclude tests...
23011         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23012         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23013         Since it always exits, declare with the "noreturn" attribute.
23014         * tests/test-argmatch.c: Likewise.
23015
23016         tests: avoid 'const' discard warnings in mbsstr tests
23017         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23018         * tests/test-mbsstr2.c (main): Likewise.
23019
23020         test-verify: avoid warning from gcc's -Wmissing-declarations
23021         * tests/test-verify.c (function): Declare to be static.
23022
23023         test-inttostr.c: include <string.h> for use of strcmp
23024         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23025
23026         test-linkat: avoid failed assertion on "other" architectures
23027         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23028         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23029         sparc: https://bugs.launchpad.net/bugs/591968
23030
23031 2010-06-11  Jim Meyering  <meyering@redhat.com>
23032
23033         printf.m4: avoid autoconf's "Expanded Before Required" warning
23034         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23035         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23036         autoconf warning.
23037
23038 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23039
23040         Replacement header templates are now named with ".in", not "_".
23041         * doc/gnulib-intro.texi: Correct.
23042
23043 2010-06-10  Jim Meyering  <meyering@redhat.com>
23044
23045         inttostr-tests: depend on snprintf, not snprintf-posix
23046         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23047         snprintf-posix, to avoid this aclocal failure:
23048           missing file gnulib-tests/vasnprintf.c
23049           configure.ac:45: error: expected source file, required through \
23050           AC_LIBSOURCES, not found
23051
23052 2010-06-10  Jim Meyering  <meyering@redhat.com>
23053
23054         inttostr: add a new function, inttostr, and tests
23055         The namesake function was not available.  The existence of the
23056         template file, inttostr.c makes its addition nontrivial.
23057         * lib/anytostr.c: Rename from inttostr.c.
23058         (anytostr): Rename from inttostr.
23059         * lib/inttostr.c: New file.
23060         * modules/inttostr (Files): Add anytostr.c.
23061         (Makefile.am): Set lib_SOURCES instead of ...
23062         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23063         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23064         * lib/offtostr.c: Likewise.
23065         * lib/uinttostr.c: Likewise.
23066         * lib/umaxtostr.c: Likewise.
23067         * modules/inttostr-tests: New file.
23068         * tests/test-inttostr.c: New file.  Test these functions.
23069
23070 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23071             Bruno Haible  <bruno@clisp.org>
23072
23073         Add "Extending Gnulib" chapter to manual.
23074         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23075         chapter.
23076         (Extending Gnulib): New chapter.
23077         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23078         chapter.
23079
23080 2010-06-09  Bruno Haible  <bruno@clisp.org>
23081
23082         Avoid relocwrapper link errors due to gnulib replacement functions.
23083         * lib/areadlink.c: Use the system's malloc, realloc functions.
23084         (areadlink): Set errno to ENOMEM explicitly.
23085         * modules/areadlink (Depends-on): Remove malloc-posix.
23086         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23087
23088 2010-06-09  Bruno Haible  <bruno@clisp.org>
23089
23090         Avoid relocwrapper link errors due to gnulib replacement functions.
23091         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23092         * lib/malloca.c: Likewise.
23093         * lib/relocatable.c: Likewise.
23094         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23095         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23096         * lib/setenv.c: Use the system's malloc, realloc functions.
23097         * lib/strerror.c: Use the system's sprintf function.
23098         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23099
23100 2010-06-04  Bruno Haible  <bruno@clisp.org>
23101
23102         Prefer documented low-level autoconf macro names.
23103         * m4/lib-link.m4: Use m4_translit instead of translit.
23104         * m4/environ.m4: Likewise.
23105         * m4/mathfunc.m4: Likewise.
23106         * m4/onceonly.m4: Likewise.
23107         * m4/stdint.m4: Likewise.
23108         Suggested by Eric Blake.
23109
23110 2010-06-04  Martin Lambers  <marlam@marlam.de>
23111             Bruno Haible  <bruno@clisp.org>
23112
23113         havelib: Allow library names with '+' characters.
23114         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23115         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23116
23117 2010-06-09  Bruno Haible  <bruno@clisp.org>
23118
23119         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23120         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23121         realloc failed.
23122
23123 2010-06-08  Peter Simons  <simons@cryp.to>
23124
23125         maint.mk: make the news-check rule more configurable
23126         * top/maint.mk (news-check-lines-spec): New variable.
23127         (news-check): Use "sed -n 1,10p" in place of "head".
23128
23129 2010-06-07  Jim Meyering  <meyering@redhat.com>
23130
23131         do-release-commit-and-tag: fix typo in --help
23132         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23133
23134         regex: avoid new dead-code warning with gcc-4.6.0
23135         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23136         if-block containing a while-loop.  It's been unused for at least
23137         5 years.
23138
23139 2010-06-05  Bruno Haible  <bruno@clisp.org>
23140
23141         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23142         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23143
23144 2010-06-04  Bruno Haible  <bruno@clisp.org>
23145
23146         Update to GNU gettext 0.18.1.
23147         * modules/gettext (configure.ac): Require gettext infrastructure from
23148         version 0.18.1.
23149
23150 2010-06-03  Bruno Haible  <bruno@clisp.org>
23151
23152         Don't use AC_LIBOBJ with file names in subdirectories.
23153         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23154         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23155         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23156         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23157         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23158         gl_LIBUNISTRING_LIBSOURCE.
23159         (Makefile.am): Augment lib_SOURCES here, conditionally.
23160         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23161
23162 2010-06-03  Bruno Haible  <bruno@clisp.org>
23163
23164         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23165         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23166         expansion does not end with a newline.
23167         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23168         unnecessary newline.
23169
23170 2010-06-03  Bruno Haible  <bruno@clisp.org>
23171
23172         Reduce dependencies.
23173         * tests/test-quotearg.h: New file, extracted from
23174         tests/test-quotearg.c.
23175         * tests/test-quotearg-simple.c: New file, extracted from
23176         tests/test-quotearg.c.
23177         * tests/test-quotearg.c: Don't include <ctype.h>.
23178         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23179         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23180         use_quote_double_quotes, use_quotearg_colon): Moved to
23181         tests/test-quotearg.h.
23182         (results_g, flag_results, custom_quotes, custom_results): Moved
23183         to tests/test-quotearg-simple.c.
23184         (main): Moved the part that does not depend on gettext to
23185         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23186         performed.
23187         * modules/quotearg-simple: New file.
23188         * modules/quotearg-simple-tests: New file.
23189         * modules/quotearg (Depends-on): Add quotearg-simple.
23190         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23191         (Files): Add tests/test-quotearg.h.
23192         Reported by Paolo Bonzini.
23193
23194 2010-06-03  Bruno Haible  <bruno@clisp.org>
23195
23196         Reduce dependencies.
23197         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23198
23199 2010-06-03  Bruno Haible  <bruno@clisp.org>
23200
23201         time: Undefine more broken macros.
23202         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23203         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23204         Reported by Eric Blake.
23205
23206 2010-06-03  Bruno Haible  <bruno@clisp.org>
23207
23208         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23209         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23210         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23211         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23212         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23213         Reported by Ludovic Courtès <ludo@gnu.org>.
23214
23215 2010-06-02  Eric Blake  <eblake@redhat.com>
23216
23217         time: work with mingw + pthreads-win32 library
23218         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23219         if timespec is defined only in pthread.h.
23220         * modules/time (Makefile.am): Substitute it.
23221         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23222         <pthread.h>, when needed.
23223         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23224         from the library.
23225
23226 2010-05-31  Bruno Haible  <bruno@clisp.org>
23227
23228         Avoid expanding two macros in the wrong order.
23229         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23230         gl_LIBUNISTRING if it is defined.
23231         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23232         autoconf >= 2.64.
23233         Reported by Ludovic Courtès <ludo@gnu.org>.
23234
23235 2010-05-27  Jim Meyering  <meyering@redhat.com>
23236
23237         maint.mk: also prohibit "#undef" of always-defined symbols
23238         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23239         Allow more than one space before the symbol name.
23240         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23241         the regexp uses alternation.
23242
23243 2010-05-26  Eric Blake  <eblake@redhat.com>
23244
23245         maint.mk: avoid echo -e
23246         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23247         Convert all uses of echo -* to printf.
23248         Reported by Matthias Bolte.
23249
23250 2010-05-25  Bruno Haible  <bruno@clisp.org>
23251
23252         Update to GNU gettext 0.18, part 2.
23253         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23254         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23255
23256 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23257
23258         Add missing include in test-pwrite.c.
23259         * tests/test-pwrite.c: Include string.h, for strcmp.
23260
23261 2010-05-24  Bruno Haible  <bruno@clisp.org>
23262
23263         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23264
23265 2010-05-24  Bruno Haible  <bruno@clisp.org>
23266
23267         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23268         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23269         iconveh_error argument.
23270         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23271         U_STRCONV_TO_LOCALE.
23272         * lib/unistr/u16-strcoll.c: Likewise.
23273         * lib/unistr/u32-strcoll.c: Likewise.
23274         * modules/unistr/u8-strcoll (Depends-on): Add
23275         uniconv/u8-strconv-to-enc, localcharset. Remove
23276         uniconv/u8-strconv-to-locale.
23277         (configure.ac): Bump version number.
23278         * modules/unistr/u16-strcoll (Depends-on): Add
23279         uniconv/u16-strconv-to-enc, localcharset. Remove
23280         uniconv/u16-strconv-to-locale.
23281         (configure.ac): Bump version number.
23282         * modules/unistr/u32-strcoll (Depends-on): Add
23283         uniconv/u32-strconv-to-enc, localcharset. Remove
23284         uniconv/u32-strconv-to-locale.
23285         (configure.ac): Bump version number.
23286
23287 2010-05-24  Bruno Haible  <bruno@clisp.org>
23288
23289         Avoid a test failure on NetBSD 5.0.
23290         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23291         an iconv() bug.
23292
23293 2010-05-24  Bruno Haible  <bruno@clisp.org>
23294
23295         Adjust #include directive style.
23296         * modules/regex (Includes): Recommend to write <regex.h>.
23297
23298 2010-05-24  Bruno Haible  <bruno@clisp.org>
23299
23300         regex: Don't require alloca.
23301         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23302         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23303         only inside if (0).
23304
23305 2010-05-23  Jim Meyering  <meyering@redhat.com>
23306
23307         test-renameat.c: include <sys/stat.h>
23308         * tests/test-renameat.c: Include <sys/stat.h>; required for
23309         definition of S_IS* macros.
23310
23311 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23312
23313         Update maintainer documentation for 'relocatable-prog' module.
23314         * doc/relocatable-maint.texi: Update.
23315         Comments by Bruno Haible.
23316
23317 2010-05-23  Bruno Haible  <bruno@clisp.org>
23318
23319         git-merge-changelog: Enable --split-merged-entry by default.
23320         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23321         (usage): Don't mention this option any more.
23322         Reported by Ralf Wildenhues.
23323
23324 2010-05-23  Jim Meyering  <meyering@redhat.com>
23325
23326         test-pwrite: do not leave behind a test file named "out"
23327         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23328         The trivial-looking use of init.sh is really necessary.
23329         It ensures that the temporary file, "out", is created in
23330         a temporary directory, and removed upon termination.
23331         * tests/test-pwrite.sh: Re-add file.
23332         * modules/pwrite-tests: Reference it.
23333
23334 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23335
23336         Fix output redirection buglet in init.sh.
23337         * tests/init.sh: Fix redirection of stderr.
23338
23339 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23340
23341         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23342
23343 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23344
23345         * modules/valgrind-tests: New file.
23346         * m4/valgrind-tests.m4: New file.
23347         * doc/valgrind-tests.texi: New file.
23348         * doc/gnulib.texi (Running self-tests under valgrind): New
23349         section.
23350
23351 2010-05-19  Bruno Haible  <bruno@clisp.org>
23352
23353         Clean up dead code in recent commit.
23354         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23355         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23356         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23357         Suggested by Paolo Bonzini.
23358
23359 2010-05-19  Bruno Haible  <bruno@clisp.org>
23360
23361         Avoid valgrind error reports from libunistring.
23362         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23363         * modules/libunistring (Files): Add it.
23364         * modules/libunistring-optional (Files): Likewise.
23365
23366 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23367             Bruno Haible  <bruno@clisp.org>
23368
23369         New module 'libunistring-optional'.
23370         * modules/libunistring-optional: New file.
23371         * m4/libunistring-base.m4: New file.
23372         * m4/libunistring-optional.m4: New file.
23373         * lib/unicase.in.h: Renamed from lib/unicase.h.
23374         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23375         * lib/unictype.in.h: Renamed from lib/unictype.h.
23376         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23377         * lib/uniname.in.h: Renamed from lib/uniname.h.
23378         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23379         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23380         * lib/unistr.in.h: Renamed from lib/unistr.h.
23381         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23382         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23383         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23384         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23385         gl_LIBUNISTRING. If the library was found, determine the installed
23386         version and set LIBUNISTRING_VERSION.
23387         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23388         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23389         handle a configuration option --with-included-libunistring.
23390         * modules/libunistring (Files): Add m4/absolute-header.m4.
23391         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23392         Add m4/libunistring-base.m4.
23393         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23394         (Makefile.am): Build unicase.h from unicase.in.h.
23395         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23396         Add m4/libunistring-base.m4.
23397         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23398         (Makefile.am): Build uniconv.h from uniconv.in.h.
23399         * modules/unictype/base (Files): Use unictype.in.h instead of
23400         unictype.h. Add m4/libunistring-base.m4.
23401         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23402         (Makefile.am): Build unictype.h from unictype.in.h.
23403         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23404         Add m4/libunistring-base.m4.
23405         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23406         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23407         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23408         Add m4/libunistring-base.m4.
23409         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23410         (Makefile.am): Build uniname.h from uniname.in.h.
23411         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23412         Add m4/libunistring-base.m4.
23413         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23414         (Makefile.am): Build uninorm.h from uninorm.in.h.
23415         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23416         unistdio.h. Add m4/libunistring-base.m4.
23417         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23418         (Makefile.am): Build unistdio.h from unistdio.in.h.
23419         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23420         Add m4/libunistring-base.m4.
23421         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23422         (Makefile.am): Build unistr.h from unistr.in.h.
23423         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23424         Add m4/libunistring-base.m4.
23425         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23426         (Makefile.am): Build unitypes.h from unitypes.in.h.
23427         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23428         Add m4/libunistring-base.m4.
23429         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23430         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23431         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23432         uniwidth.h. Add m4/libunistring-base.m4.
23433         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23434         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23435         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23436         instead of augmenting lib_SOURCES.
23437         * modules/unicase/empty-suffix-context: Likewise.
23438         * modules/unicase/locale-language: Likewise.
23439         * modules/unicase/tolower: Likewise.
23440         * modules/unicase/totitle: Likewise.
23441         * modules/unicase/toupper: Likewise.
23442         * modules/unicase/u8-casecmp: Likewise.
23443         * modules/unicase/u8-casecoll: Likewise.
23444         * modules/unicase/u8-casefold: Likewise.
23445         * modules/unicase/u8-casexfrm: Likewise.
23446         * modules/unicase/u8-ct-casefold: Likewise.
23447         * modules/unicase/u8-ct-tolower: Likewise.
23448         * modules/unicase/u8-ct-totitle: Likewise.
23449         * modules/unicase/u8-ct-toupper: Likewise.
23450         * modules/unicase/u8-is-cased: Likewise.
23451         * modules/unicase/u8-is-casefolded: Likewise.
23452         * modules/unicase/u8-is-lowercase: Likewise.
23453         * modules/unicase/u8-is-titlecase: Likewise.
23454         * modules/unicase/u8-is-uppercase: Likewise.
23455         * modules/unicase/u8-prefix-context: Likewise.
23456         * modules/unicase/u8-suffix-context: Likewise.
23457         * modules/unicase/u8-tolower: Likewise.
23458         * modules/unicase/u8-totitle: Likewise.
23459         * modules/unicase/u8-toupper: Likewise.
23460         * modules/unicase/u16-casecmp: Likewise.
23461         * modules/unicase/u16-casecoll: Likewise.
23462         * modules/unicase/u16-casefold: Likewise.
23463         * modules/unicase/u16-casexfrm: Likewise.
23464         * modules/unicase/u16-ct-casefold: Likewise.
23465         * modules/unicase/u16-ct-tolower: Likewise.
23466         * modules/unicase/u16-ct-totitle: Likewise.
23467         * modules/unicase/u16-ct-toupper: Likewise.
23468         * modules/unicase/u16-is-cased: Likewise.
23469         * modules/unicase/u16-is-casefolded: Likewise.
23470         * modules/unicase/u16-is-lowercase: Likewise.
23471         * modules/unicase/u16-is-titlecase: Likewise.
23472         * modules/unicase/u16-is-uppercase: Likewise.
23473         * modules/unicase/u16-prefix-context: Likewise.
23474         * modules/unicase/u16-suffix-context: Likewise.
23475         * modules/unicase/u16-tolower: Likewise.
23476         * modules/unicase/u16-totitle: Likewise.
23477         * modules/unicase/u16-toupper: Likewise.
23478         * modules/unicase/u32-casecmp: Likewise.
23479         * modules/unicase/u32-casecoll: Likewise.
23480         * modules/unicase/u32-casefold: Likewise.
23481         * modules/unicase/u32-casexfrm: Likewise.
23482         * modules/unicase/u32-ct-casefold: Likewise.
23483         * modules/unicase/u32-ct-tolower: Likewise.
23484         * modules/unicase/u32-ct-totitle: Likewise.
23485         * modules/unicase/u32-ct-toupper: Likewise.
23486         * modules/unicase/u32-is-cased: Likewise.
23487         * modules/unicase/u32-is-casefolded: Likewise.
23488         * modules/unicase/u32-is-lowercase: Likewise.
23489         * modules/unicase/u32-is-titlecase: Likewise.
23490         * modules/unicase/u32-is-uppercase: Likewise.
23491         * modules/unicase/u32-prefix-context: Likewise.
23492         * modules/unicase/u32-suffix-context: Likewise.
23493         * modules/unicase/u32-tolower: Likewise.
23494         * modules/unicase/u32-totitle: Likewise.
23495         * modules/unicase/u32-toupper: Likewise.
23496         * modules/unicase/ulc-casecmp: Likewise.
23497         * modules/unicase/ulc-casecoll: Likewise.
23498         * modules/unicase/ulc-casexfrm: Likewise.
23499         * modules/uniconv/u8-conv-from-enc: Likewise.
23500         * modules/uniconv/u8-conv-to-enc: Likewise.
23501         * modules/uniconv/u8-strconv-from-enc: Likewise.
23502         * modules/uniconv/u8-strconv-from-locale: Likewise.
23503         * modules/uniconv/u8-strconv-to-enc: Likewise.
23504         * modules/uniconv/u8-strconv-to-locale: Likewise.
23505         * modules/uniconv/u16-conv-from-enc: Likewise.
23506         * modules/uniconv/u16-conv-to-enc: Likewise.
23507         * modules/uniconv/u16-strconv-from-enc: Likewise.
23508         * modules/uniconv/u16-strconv-from-locale: Likewise.
23509         * modules/uniconv/u16-strconv-to-enc: Likewise.
23510         * modules/uniconv/u16-strconv-to-locale: Likewise.
23511         * modules/uniconv/u32-conv-from-enc: Likewise.
23512         * modules/uniconv/u32-conv-to-enc: Likewise.
23513         * modules/uniconv/u32-strconv-from-enc: Likewise.
23514         * modules/uniconv/u32-strconv-from-locale: Likewise.
23515         * modules/uniconv/u32-strconv-to-enc: Likewise.
23516         * modules/uniconv/u32-strconv-to-locale: Likewise.
23517         * modules/unictype/bidicategory-byname: Likewise.
23518         * modules/unictype/bidicategory-name: Likewise.
23519         * modules/unictype/bidicategory-of: Likewise.
23520         * modules/unictype/bidicategory-test: Likewise.
23521         * modules/unictype/block-list: Likewise.
23522         * modules/unictype/block-test: Likewise.
23523         * modules/unictype/category-C: Likewise.
23524         * modules/unictype/category-Cc: Likewise.
23525         * modules/unictype/category-Cf: Likewise.
23526         * modules/unictype/category-Cn: Likewise.
23527         * modules/unictype/category-Co: Likewise.
23528         * modules/unictype/category-Cs: Likewise.
23529         * modules/unictype/category-L: Likewise.
23530         * modules/unictype/category-Ll: Likewise.
23531         * modules/unictype/category-Lm: Likewise.
23532         * modules/unictype/category-Lo: Likewise.
23533         * modules/unictype/category-Lt: Likewise.
23534         * modules/unictype/category-Lu: Likewise.
23535         * modules/unictype/category-M: Likewise.
23536         * modules/unictype/category-Mc: Likewise.
23537         * modules/unictype/category-Me: Likewise.
23538         * modules/unictype/category-Mn: Likewise.
23539         * modules/unictype/category-N: Likewise.
23540         * modules/unictype/category-Nd: Likewise.
23541         * modules/unictype/category-Nl: Likewise.
23542         * modules/unictype/category-No: Likewise.
23543         * modules/unictype/category-P: Likewise.
23544         * modules/unictype/category-Pc: Likewise.
23545         * modules/unictype/category-Pd: Likewise.
23546         * modules/unictype/category-Pe: Likewise.
23547         * modules/unictype/category-Pf: Likewise.
23548         * modules/unictype/category-Pi: Likewise.
23549         * modules/unictype/category-Po: Likewise.
23550         * modules/unictype/category-Ps: Likewise.
23551         * modules/unictype/category-S: Likewise.
23552         * modules/unictype/category-Sc: Likewise.
23553         * modules/unictype/category-Sk: Likewise.
23554         * modules/unictype/category-Sm: Likewise.
23555         * modules/unictype/category-So: Likewise.
23556         * modules/unictype/category-Z: Likewise.
23557         * modules/unictype/category-Zl: Likewise.
23558         * modules/unictype/category-Zp: Likewise.
23559         * modules/unictype/category-Zs: Likewise.
23560         * modules/unictype/category-and: Likewise.
23561         * modules/unictype/category-and-not: Likewise.
23562         * modules/unictype/category-byname: Likewise.
23563         * modules/unictype/category-name: Likewise.
23564         * modules/unictype/category-none: Likewise.
23565         * modules/unictype/category-of: Likewise.
23566         * modules/unictype/category-or: Likewise.
23567         * modules/unictype/category-test: Likewise.
23568         * modules/unictype/combining-class: Likewise.
23569         * modules/unictype/ctype-alnum: Likewise.
23570         * modules/unictype/ctype-alpha: Likewise.
23571         * modules/unictype/ctype-blank: Likewise.
23572         * modules/unictype/ctype-cntrl: Likewise.
23573         * modules/unictype/ctype-digit: Likewise.
23574         * modules/unictype/ctype-graph: Likewise.
23575         * modules/unictype/ctype-lower: Likewise.
23576         * modules/unictype/ctype-print: Likewise.
23577         * modules/unictype/ctype-punct: Likewise.
23578         * modules/unictype/ctype-space: Likewise.
23579         * modules/unictype/ctype-upper: Likewise.
23580         * modules/unictype/ctype-xdigit: Likewise.
23581         * modules/unictype/decimal-digit: Likewise.
23582         * modules/unictype/digit: Likewise.
23583         * modules/unictype/mirror: Likewise.
23584         * modules/unictype/numeric: Likewise.
23585         * modules/unictype/property-alphabetic: Likewise.
23586         * modules/unictype/property-ascii-hex-digit: Likewise.
23587         * modules/unictype/property-bidi-arabic-digit: Likewise.
23588         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23589         * modules/unictype/property-bidi-block-separator: Likewise.
23590         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23591         * modules/unictype/property-bidi-common-separator: Likewise.
23592         * modules/unictype/property-bidi-control: Likewise.
23593         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23594         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23595         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23596         * modules/unictype/property-bidi-european-digit: Likewise.
23597         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23598         * modules/unictype/property-bidi-left-to-right: Likewise.
23599         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23600         * modules/unictype/property-bidi-other-neutral: Likewise.
23601         * modules/unictype/property-bidi-pdf: Likewise.
23602         * modules/unictype/property-bidi-segment-separator: Likewise.
23603         * modules/unictype/property-bidi-whitespace: Likewise.
23604         * modules/unictype/property-byname: Likewise.
23605         * modules/unictype/property-combining: Likewise.
23606         * modules/unictype/property-composite: Likewise.
23607         * modules/unictype/property-currency-symbol: Likewise.
23608         * modules/unictype/property-dash: Likewise.
23609         * modules/unictype/property-decimal-digit: Likewise.
23610         * modules/unictype/property-default-ignorable-code-point: Likewise.
23611         * modules/unictype/property-deprecated: Likewise.
23612         * modules/unictype/property-diacritic: Likewise.
23613         * modules/unictype/property-extender: Likewise.
23614         * modules/unictype/property-format-control: Likewise.
23615         * modules/unictype/property-grapheme-base: Likewise.
23616         * modules/unictype/property-grapheme-extend: Likewise.
23617         * modules/unictype/property-grapheme-link: Likewise.
23618         * modules/unictype/property-hex-digit: Likewise.
23619         * modules/unictype/property-hyphen: Likewise.
23620         * modules/unictype/property-id-continue: Likewise.
23621         * modules/unictype/property-id-start: Likewise.
23622         * modules/unictype/property-ideographic: Likewise.
23623         * modules/unictype/property-ids-binary-operator: Likewise.
23624         * modules/unictype/property-ids-trinary-operator: Likewise.
23625         * modules/unictype/property-ignorable-control: Likewise.
23626         * modules/unictype/property-iso-control: Likewise.
23627         * modules/unictype/property-join-control: Likewise.
23628         * modules/unictype/property-left-of-pair: Likewise.
23629         * modules/unictype/property-line-separator: Likewise.
23630         * modules/unictype/property-logical-order-exception: Likewise.
23631         * modules/unictype/property-lowercase: Likewise.
23632         * modules/unictype/property-math: Likewise.
23633         * modules/unictype/property-non-break: Likewise.
23634         * modules/unictype/property-not-a-character: Likewise.
23635         * modules/unictype/property-numeric: Likewise.
23636         * modules/unictype/property-other-alphabetic: Likewise.
23637         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23638         * modules/unictype/property-other-grapheme-extend: Likewise.
23639         * modules/unictype/property-other-id-continue: Likewise.
23640         * modules/unictype/property-other-id-start: Likewise.
23641         * modules/unictype/property-other-lowercase: Likewise.
23642         * modules/unictype/property-other-math: Likewise.
23643         * modules/unictype/property-other-uppercase: Likewise.
23644         * modules/unictype/property-paired-punctuation: Likewise.
23645         * modules/unictype/property-paragraph-separator: Likewise.
23646         * modules/unictype/property-pattern-syntax: Likewise.
23647         * modules/unictype/property-pattern-white-space: Likewise.
23648         * modules/unictype/property-private-use: Likewise.
23649         * modules/unictype/property-punctuation: Likewise.
23650         * modules/unictype/property-quotation-mark: Likewise.
23651         * modules/unictype/property-radical: Likewise.
23652         * modules/unictype/property-sentence-terminal: Likewise.
23653         * modules/unictype/property-soft-dotted: Likewise.
23654         * modules/unictype/property-space: Likewise.
23655         * modules/unictype/property-terminal-punctuation: Likewise.
23656         * modules/unictype/property-test: Likewise.
23657         * modules/unictype/property-titlecase: Likewise.
23658         * modules/unictype/property-unassigned-code-value: Likewise.
23659         * modules/unictype/property-unified-ideograph: Likewise.
23660         * modules/unictype/property-uppercase: Likewise.
23661         * modules/unictype/property-variation-selector: Likewise.
23662         * modules/unictype/property-white-space: Likewise.
23663         * modules/unictype/property-xid-continue: Likewise.
23664         * modules/unictype/property-xid-start: Likewise.
23665         * modules/unictype/property-zero-width: Likewise.
23666         * modules/unictype/scripts: Likewise.
23667         * modules/unictype/syntax-c-ident: Likewise.
23668         * modules/unictype/syntax-c-whitespace: Likewise.
23669         * modules/unictype/syntax-java-ident: Likewise.
23670         * modules/unictype/syntax-java-whitespace: Likewise.
23671         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23672         * modules/unilbrk/u8-width-linebreaks: Likewise.
23673         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23674         * modules/unilbrk/u16-width-linebreaks: Likewise.
23675         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23676         * modules/unilbrk/u32-width-linebreaks: Likewise.
23677         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23678         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23679         * modules/uniname/uniname: Likewise.
23680         * modules/uninorm/canonical-decomposition: Likewise.
23681         * modules/uninorm/composition: Likewise.
23682         * modules/uninorm/decomposing-form: Likewise.
23683         * modules/uninorm/decomposition: Likewise.
23684         * modules/uninorm/filter: Likewise.
23685         * modules/uninorm/nfc: Likewise.
23686         * modules/uninorm/nfd: Likewise.
23687         * modules/uninorm/nfkc: Likewise.
23688         * modules/uninorm/nfkd: Likewise.
23689         * modules/uninorm/u8-normalize: Likewise.
23690         * modules/uninorm/u8-normcmp: Likewise.
23691         * modules/uninorm/u8-normcoll: Likewise.
23692         * modules/uninorm/u8-normxfrm: Likewise.
23693         * modules/uninorm/u16-normalize: Likewise.
23694         * modules/uninorm/u16-normcmp: Likewise.
23695         * modules/uninorm/u16-normcoll: Likewise.
23696         * modules/uninorm/u16-normxfrm: Likewise.
23697         * modules/uninorm/u32-normalize: Likewise.
23698         * modules/uninorm/u32-normcmp: Likewise.
23699         * modules/uninorm/u32-normcoll: Likewise.
23700         * modules/uninorm/u32-normxfrm: Likewise.
23701         * modules/unistdio/u8-asnprintf: Likewise.
23702         * modules/unistdio/u8-asprintf: Likewise.
23703         * modules/unistdio/u8-snprintf: Likewise.
23704         * modules/unistdio/u8-sprintf: Likewise.
23705         * modules/unistdio/u8-u8-asnprintf: Likewise.
23706         * modules/unistdio/u8-u8-asprintf: Likewise.
23707         * modules/unistdio/u8-u8-snprintf: Likewise.
23708         * modules/unistdio/u8-u8-sprintf: Likewise.
23709         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23710         * modules/unistdio/u8-u8-vasprintf: Likewise.
23711         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23712         * modules/unistdio/u8-u8-vsprintf: Likewise.
23713         * modules/unistdio/u8-vasnprintf: Likewise.
23714         * modules/unistdio/u8-vasprintf: Likewise.
23715         * modules/unistdio/u8-vsnprintf: Likewise.
23716         * modules/unistdio/u8-vsprintf: Likewise.
23717         * modules/unistdio/u16-asnprintf: Likewise.
23718         * modules/unistdio/u16-asprintf: Likewise.
23719         * modules/unistdio/u16-snprintf: Likewise.
23720         * modules/unistdio/u16-sprintf: Likewise.
23721         * modules/unistdio/u16-u16-asnprintf: Likewise.
23722         * modules/unistdio/u16-u16-asprintf: Likewise.
23723         * modules/unistdio/u16-u16-snprintf: Likewise.
23724         * modules/unistdio/u16-u16-sprintf: Likewise.
23725         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23726         * modules/unistdio/u16-u16-vasprintf: Likewise.
23727         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23728         * modules/unistdio/u16-u16-vsprintf: Likewise.
23729         * modules/unistdio/u16-vasnprintf: Likewise.
23730         * modules/unistdio/u16-vasprintf: Likewise.
23731         * modules/unistdio/u16-vsnprintf: Likewise.
23732         * modules/unistdio/u16-vsprintf: Likewise.
23733         * modules/unistdio/u32-asnprintf: Likewise.
23734         * modules/unistdio/u32-asprintf: Likewise.
23735         * modules/unistdio/u32-snprintf: Likewise.
23736         * modules/unistdio/u32-sprintf: Likewise.
23737         * modules/unistdio/u32-u32-asnprintf: Likewise.
23738         * modules/unistdio/u32-u32-asprintf: Likewise.
23739         * modules/unistdio/u32-u32-snprintf: Likewise.
23740         * modules/unistdio/u32-u32-sprintf: Likewise.
23741         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23742         * modules/unistdio/u32-u32-vasprintf: Likewise.
23743         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23744         * modules/unistdio/u32-u32-vsprintf: Likewise.
23745         * modules/unistdio/u32-vasnprintf: Likewise.
23746         * modules/unistdio/u32-vasprintf: Likewise.
23747         * modules/unistdio/u32-vsnprintf: Likewise.
23748         * modules/unistdio/u32-vsprintf: Likewise.
23749         * modules/unistdio/ulc-asnprintf: Likewise.
23750         * modules/unistdio/ulc-asprintf: Likewise.
23751         * modules/unistdio/ulc-fprintf: Likewise.
23752         * modules/unistdio/ulc-snprintf: Likewise.
23753         * modules/unistdio/ulc-sprintf: Likewise.
23754         * modules/unistdio/ulc-vasnprintf: Likewise.
23755         * modules/unistdio/ulc-vasprintf: Likewise.
23756         * modules/unistdio/ulc-vfprintf: Likewise.
23757         * modules/unistdio/ulc-vsnprintf: Likewise.
23758         * modules/unistdio/ulc-vsprintf: Likewise.
23759         * modules/unistr/u8-check: Likewise.
23760         * modules/unistr/u8-chr: Likewise.
23761         * modules/unistr/u8-cmp: Likewise.
23762         * modules/unistr/u8-cmp2: Likewise.
23763         * modules/unistr/u8-cpy: Likewise.
23764         * modules/unistr/u8-cpy-alloc: Likewise.
23765         * modules/unistr/u8-endswith: Likewise.
23766         * modules/unistr/u8-mblen: Likewise.
23767         * modules/unistr/u8-mbsnlen: Likewise.
23768         * modules/unistr/u8-mbtouc: Likewise.
23769         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23770         * modules/unistr/u8-mbtoucr: Likewise.
23771         * modules/unistr/u8-move: Likewise.
23772         * modules/unistr/u8-next: Likewise.
23773         * modules/unistr/u8-prev: Likewise.
23774         * modules/unistr/u8-set: Likewise.
23775         * modules/unistr/u8-startswith: Likewise.
23776         * modules/unistr/u8-stpcpy: Likewise.
23777         * modules/unistr/u8-stpncpy: Likewise.
23778         * modules/unistr/u8-strcat: Likewise.
23779         * modules/unistr/u8-strchr: Likewise.
23780         * modules/unistr/u8-strcmp: Likewise.
23781         * modules/unistr/u8-strcoll: Likewise.
23782         * modules/unistr/u8-strcpy: Likewise.
23783         * modules/unistr/u8-strcspn: Likewise.
23784         * modules/unistr/u8-strdup: Likewise.
23785         * modules/unistr/u8-strlen: Likewise.
23786         * modules/unistr/u8-strmblen: Likewise.
23787         * modules/unistr/u8-strmbtouc: Likewise.
23788         * modules/unistr/u8-strncat: Likewise.
23789         * modules/unistr/u8-strncmp: Likewise.
23790         * modules/unistr/u8-strncpy: Likewise.
23791         * modules/unistr/u8-strnlen: Likewise.
23792         * modules/unistr/u8-strpbrk: Likewise.
23793         * modules/unistr/u8-strrchr: Likewise.
23794         * modules/unistr/u8-strspn: Likewise.
23795         * modules/unistr/u8-strstr: Likewise.
23796         * modules/unistr/u8-strtok: Likewise.
23797         * modules/unistr/u8-to-u16: Likewise.
23798         * modules/unistr/u8-to-u32: Likewise.
23799         * modules/unistr/u8-uctomb: Likewise.
23800         * modules/unistr/u16-check: Likewise.
23801         * modules/unistr/u16-chr: Likewise.
23802         * modules/unistr/u16-cmp: Likewise.
23803         * modules/unistr/u16-cmp2: Likewise.
23804         * modules/unistr/u16-cpy: Likewise.
23805         * modules/unistr/u16-cpy-alloc: Likewise.
23806         * modules/unistr/u16-endswith: Likewise.
23807         * modules/unistr/u16-mblen: Likewise.
23808         * modules/unistr/u16-mbsnlen: Likewise.
23809         * modules/unistr/u16-mbtouc: Likewise.
23810         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23811         * modules/unistr/u16-mbtoucr: Likewise.
23812         * modules/unistr/u16-move: Likewise.
23813         * modules/unistr/u16-next: Likewise.
23814         * modules/unistr/u16-prev: Likewise.
23815         * modules/unistr/u16-set: Likewise.
23816         * modules/unistr/u16-startswith: Likewise.
23817         * modules/unistr/u16-stpcpy: Likewise.
23818         * modules/unistr/u16-stpncpy: Likewise.
23819         * modules/unistr/u16-strcat: Likewise.
23820         * modules/unistr/u16-strchr: Likewise.
23821         * modules/unistr/u16-strcmp: Likewise.
23822         * modules/unistr/u16-strcoll: Likewise.
23823         * modules/unistr/u16-strcpy: Likewise.
23824         * modules/unistr/u16-strcspn: Likewise.
23825         * modules/unistr/u16-strdup: Likewise.
23826         * modules/unistr/u16-strlen: Likewise.
23827         * modules/unistr/u16-strmblen: Likewise.
23828         * modules/unistr/u16-strmbtouc: Likewise.
23829         * modules/unistr/u16-strncat: Likewise.
23830         * modules/unistr/u16-strncmp: Likewise.
23831         * modules/unistr/u16-strncpy: Likewise.
23832         * modules/unistr/u16-strnlen: Likewise.
23833         * modules/unistr/u16-strpbrk: Likewise.
23834         * modules/unistr/u16-strrchr: Likewise.
23835         * modules/unistr/u16-strspn: Likewise.
23836         * modules/unistr/u16-strstr: Likewise.
23837         * modules/unistr/u16-strtok: Likewise.
23838         * modules/unistr/u16-to-u32: Likewise.
23839         * modules/unistr/u16-to-u8: Likewise.
23840         * modules/unistr/u16-uctomb: Likewise.
23841         * modules/unistr/u32-check: Likewise.
23842         * modules/unistr/u32-chr: Likewise.
23843         * modules/unistr/u32-cmp: Likewise.
23844         * modules/unistr/u32-cmp2: Likewise.
23845         * modules/unistr/u32-cpy: Likewise.
23846         * modules/unistr/u32-cpy-alloc: Likewise.
23847         * modules/unistr/u32-endswith: Likewise.
23848         * modules/unistr/u32-mblen: Likewise.
23849         * modules/unistr/u32-mbsnlen: Likewise.
23850         * modules/unistr/u32-mbtouc: Likewise.
23851         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23852         * modules/unistr/u32-mbtoucr: Likewise.
23853         * modules/unistr/u32-move: Likewise.
23854         * modules/unistr/u32-next: Likewise.
23855         * modules/unistr/u32-prev: Likewise.
23856         * modules/unistr/u32-set: Likewise.
23857         * modules/unistr/u32-startswith: Likewise.
23858         * modules/unistr/u32-stpcpy: Likewise.
23859         * modules/unistr/u32-stpncpy: Likewise.
23860         * modules/unistr/u32-strcat: Likewise.
23861         * modules/unistr/u32-strchr: Likewise.
23862         * modules/unistr/u32-strcmp: Likewise.
23863         * modules/unistr/u32-strcoll: Likewise.
23864         * modules/unistr/u32-strcpy: Likewise.
23865         * modules/unistr/u32-strcspn: Likewise.
23866         * modules/unistr/u32-strdup: Likewise.
23867         * modules/unistr/u32-strlen: Likewise.
23868         * modules/unistr/u32-strmblen: Likewise.
23869         * modules/unistr/u32-strmbtouc: Likewise.
23870         * modules/unistr/u32-strncat: Likewise.
23871         * modules/unistr/u32-strncmp: Likewise.
23872         * modules/unistr/u32-strncpy: Likewise.
23873         * modules/unistr/u32-strnlen: Likewise.
23874         * modules/unistr/u32-strpbrk: Likewise.
23875         * modules/unistr/u32-strrchr: Likewise.
23876         * modules/unistr/u32-strspn: Likewise.
23877         * modules/unistr/u32-strstr: Likewise.
23878         * modules/unistr/u32-strtok: Likewise.
23879         * modules/unistr/u32-to-u16: Likewise.
23880         * modules/unistr/u32-to-u8: Likewise.
23881         * modules/unistr/u32-uctomb: Likewise.
23882         * modules/uniwbrk/u8-wordbreaks: Likewise.
23883         * modules/uniwbrk/u16-wordbreaks: Likewise.
23884         * modules/uniwbrk/u32-wordbreaks: Likewise.
23885         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23886         * modules/uniwbrk/wordbreak-property: Likewise.
23887         * modules/uniwidth/u8-strwidth: Likewise.
23888         * modules/uniwidth/u8-width: Likewise.
23889         * modules/uniwidth/u16-strwidth: Likewise.
23890         * modules/uniwidth/u16-width: Likewise.
23891         * modules/uniwidth/u32-strwidth: Likewise.
23892         * modules/uniwidth/u32-width: Likewise.
23893         * modules/uniwidth/width: Likewise.
23894         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23895         with $(LIBUNISTRING).
23896         * modules/unicase/ignorable-tests: Likewise.
23897         * modules/unicase/locale-language-tests: Likewise.
23898         * modules/unicase/tolower-tests: Likewise.
23899         * modules/unicase/totitle-tests: Likewise.
23900         * modules/unicase/toupper-tests: Likewise.
23901         * modules/unicase/u8-casecmp-tests: Likewise.
23902         * modules/unicase/u8-casecoll-tests: Likewise.
23903         * modules/unicase/u8-casefold-tests: Likewise.
23904         * modules/unicase/u8-is-cased-tests: Likewise.
23905         * modules/unicase/u8-is-casefolded-tests: Likewise.
23906         * modules/unicase/u8-is-lowercase-tests: Likewise.
23907         * modules/unicase/u8-is-titlecase-tests: Likewise.
23908         * modules/unicase/u8-is-uppercase-tests: Likewise.
23909         * modules/unicase/u8-tolower-tests: Likewise.
23910         * modules/unicase/u8-totitle-tests: Likewise.
23911         * modules/unicase/u8-toupper-tests: Likewise.
23912         * modules/unicase/u16-casecmp-tests: Likewise.
23913         * modules/unicase/u16-casecoll-tests: Likewise.
23914         * modules/unicase/u16-casefold-tests: Likewise.
23915         * modules/unicase/u16-is-cased-tests: Likewise.
23916         * modules/unicase/u16-is-casefolded-tests: Likewise.
23917         * modules/unicase/u16-is-lowercase-tests: Likewise.
23918         * modules/unicase/u16-is-titlecase-tests: Likewise.
23919         * modules/unicase/u16-is-uppercase-tests: Likewise.
23920         * modules/unicase/u16-tolower-tests: Likewise.
23921         * modules/unicase/u16-totitle-tests: Likewise.
23922         * modules/unicase/u16-toupper-tests: Likewise.
23923         * modules/unicase/u32-casecmp-tests: Likewise.
23924         * modules/unicase/u32-casecoll-tests: Likewise.
23925         * modules/unicase/u32-casefold-tests: Likewise.
23926         * modules/unicase/u32-is-cased-tests: Likewise.
23927         * modules/unicase/u32-is-casefolded-tests: Likewise.
23928         * modules/unicase/u32-is-lowercase-tests: Likewise.
23929         * modules/unicase/u32-is-titlecase-tests: Likewise.
23930         * modules/unicase/u32-is-uppercase-tests: Likewise.
23931         * modules/unicase/u32-tolower-tests: Likewise.
23932         * modules/unicase/u32-totitle-tests: Likewise.
23933         * modules/unicase/u32-toupper-tests: Likewise.
23934         * modules/unicase/ulc-casecmp-tests: Likewise.
23935         * modules/unicase/ulc-casecoll-tests: Likewise.
23936         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23937         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23938         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23939         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23940         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23941         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23942         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23943         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23944         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23945         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23946         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23947         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23948         * modules/unictype/bidicategory-byname-tests: Likewise.
23949         * modules/unictype/bidicategory-name-tests: Likewise.
23950         * modules/unictype/bidicategory-of-tests: Likewise.
23951         * modules/unictype/bidicategory-test-tests: Likewise.
23952         * modules/unictype/block-list-tests: Likewise.
23953         * modules/unictype/block-of-tests: Likewise.
23954         * modules/unictype/block-test-tests: Likewise.
23955         * modules/unictype/category-C-tests: Likewise.
23956         * modules/unictype/category-Cc-tests: Likewise.
23957         * modules/unictype/category-Cf-tests: Likewise.
23958         * modules/unictype/category-Cn-tests: Likewise.
23959         * modules/unictype/category-Co-tests: Likewise.
23960         * modules/unictype/category-Cs-tests: Likewise.
23961         * modules/unictype/category-L-tests: Likewise.
23962         * modules/unictype/category-Ll-tests: Likewise.
23963         * modules/unictype/category-Lm-tests: Likewise.
23964         * modules/unictype/category-Lo-tests: Likewise.
23965         * modules/unictype/category-Lt-tests: Likewise.
23966         * modules/unictype/category-Lu-tests: Likewise.
23967         * modules/unictype/category-M-tests: Likewise.
23968         * modules/unictype/category-Mc-tests: Likewise.
23969         * modules/unictype/category-Me-tests: Likewise.
23970         * modules/unictype/category-Mn-tests: Likewise.
23971         * modules/unictype/category-N-tests: Likewise.
23972         * modules/unictype/category-Nd-tests: Likewise.
23973         * modules/unictype/category-Nl-tests: Likewise.
23974         * modules/unictype/category-No-tests: Likewise.
23975         * modules/unictype/category-P-tests: Likewise.
23976         * modules/unictype/category-Pc-tests: Likewise.
23977         * modules/unictype/category-Pd-tests: Likewise.
23978         * modules/unictype/category-Pe-tests: Likewise.
23979         * modules/unictype/category-Pf-tests: Likewise.
23980         * modules/unictype/category-Pi-tests: Likewise.
23981         * modules/unictype/category-Po-tests: Likewise.
23982         * modules/unictype/category-Ps-tests: Likewise.
23983         * modules/unictype/category-S-tests: Likewise.
23984         * modules/unictype/category-Sc-tests: Likewise.
23985         * modules/unictype/category-Sk-tests: Likewise.
23986         * modules/unictype/category-Sm-tests: Likewise.
23987         * modules/unictype/category-So-tests: Likewise.
23988         * modules/unictype/category-Z-tests: Likewise.
23989         * modules/unictype/category-Zl-tests: Likewise.
23990         * modules/unictype/category-Zp-tests: Likewise.
23991         * modules/unictype/category-Zs-tests: Likewise.
23992         * modules/unictype/category-and-not-tests: Likewise.
23993         * modules/unictype/category-and-tests: Likewise.
23994         * modules/unictype/category-byname-tests: Likewise.
23995         * modules/unictype/category-name-tests: Likewise.
23996         * modules/unictype/category-none-tests: Likewise.
23997         * modules/unictype/category-of-tests: Likewise.
23998         * modules/unictype/category-or-tests: Likewise.
23999         * modules/unictype/category-test-withtable-tests: Likewise.
24000         * modules/unictype/combining-class-tests: Likewise.
24001         * modules/unictype/ctype-alnum-tests: Likewise.
24002         * modules/unictype/ctype-alpha-tests: Likewise.
24003         * modules/unictype/ctype-blank-tests: Likewise.
24004         * modules/unictype/ctype-cntrl-tests: Likewise.
24005         * modules/unictype/ctype-digit-tests: Likewise.
24006         * modules/unictype/ctype-graph-tests: Likewise.
24007         * modules/unictype/ctype-lower-tests: Likewise.
24008         * modules/unictype/ctype-print-tests: Likewise.
24009         * modules/unictype/ctype-punct-tests: Likewise.
24010         * modules/unictype/ctype-space-tests: Likewise.
24011         * modules/unictype/ctype-upper-tests: Likewise.
24012         * modules/unictype/ctype-xdigit-tests: Likewise.
24013         * modules/unictype/decimal-digit-tests: Likewise.
24014         * modules/unictype/digit-tests: Likewise.
24015         * modules/unictype/mirror-tests: Likewise.
24016         * modules/unictype/numeric-tests: Likewise.
24017         * modules/unictype/property-alphabetic-tests: Likewise.
24018         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24019         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24020         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24021         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24022         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24023         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24024         * modules/unictype/property-bidi-control-tests: Likewise.
24025         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24026         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24027         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24028         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24029         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24030         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24031         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24032         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24033         * modules/unictype/property-bidi-pdf-tests: Likewise.
24034         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24035         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24036         * modules/unictype/property-byname-tests: Likewise.
24037         * modules/unictype/property-combining-tests: Likewise.
24038         * modules/unictype/property-composite-tests: Likewise.
24039         * modules/unictype/property-currency-symbol-tests: Likewise.
24040         * modules/unictype/property-dash-tests: Likewise.
24041         * modules/unictype/property-decimal-digit-tests: Likewise.
24042         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24043         * modules/unictype/property-deprecated-tests: Likewise.
24044         * modules/unictype/property-diacritic-tests: Likewise.
24045         * modules/unictype/property-extender-tests: Likewise.
24046         * modules/unictype/property-format-control-tests: Likewise.
24047         * modules/unictype/property-grapheme-base-tests: Likewise.
24048         * modules/unictype/property-grapheme-extend-tests: Likewise.
24049         * modules/unictype/property-grapheme-link-tests: Likewise.
24050         * modules/unictype/property-hex-digit-tests: Likewise.
24051         * modules/unictype/property-hyphen-tests: Likewise.
24052         * modules/unictype/property-id-continue-tests: Likewise.
24053         * modules/unictype/property-id-start-tests: Likewise.
24054         * modules/unictype/property-ideographic-tests: Likewise.
24055         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24056         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24057         * modules/unictype/property-ignorable-control-tests: Likewise.
24058         * modules/unictype/property-iso-control-tests: Likewise.
24059         * modules/unictype/property-join-control-tests: Likewise.
24060         * modules/unictype/property-left-of-pair-tests: Likewise.
24061         * modules/unictype/property-line-separator-tests: Likewise.
24062         * modules/unictype/property-logical-order-exception-tests: Likewise.
24063         * modules/unictype/property-lowercase-tests: Likewise.
24064         * modules/unictype/property-math-tests: Likewise.
24065         * modules/unictype/property-non-break-tests: Likewise.
24066         * modules/unictype/property-not-a-character-tests: Likewise.
24067         * modules/unictype/property-numeric-tests: Likewise.
24068         * modules/unictype/property-other-alphabetic-tests: Likewise.
24069         * modules/unictype/property-other-default-ignorable-code-point-tests:
24070         Likewise.
24071         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24072         * modules/unictype/property-other-id-continue-tests: Likewise.
24073         * modules/unictype/property-other-id-start-tests: Likewise.
24074         * modules/unictype/property-other-lowercase-tests: Likewise.
24075         * modules/unictype/property-other-math-tests: Likewise.
24076         * modules/unictype/property-other-uppercase-tests: Likewise.
24077         * modules/unictype/property-paired-punctuation-tests: Likewise.
24078         * modules/unictype/property-paragraph-separator-tests: Likewise.
24079         * modules/unictype/property-pattern-syntax-tests: Likewise.
24080         * modules/unictype/property-pattern-white-space-tests: Likewise.
24081         * modules/unictype/property-private-use-tests: Likewise.
24082         * modules/unictype/property-punctuation-tests: Likewise.
24083         * modules/unictype/property-quotation-mark-tests: Likewise.
24084         * modules/unictype/property-radical-tests: Likewise.
24085         * modules/unictype/property-sentence-terminal-tests: Likewise.
24086         * modules/unictype/property-soft-dotted-tests: Likewise.
24087         * modules/unictype/property-space-tests: Likewise.
24088         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24089         * modules/unictype/property-test-tests: Likewise.
24090         * modules/unictype/property-titlecase-tests: Likewise.
24091         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24092         * modules/unictype/property-unified-ideograph-tests: Likewise.
24093         * modules/unictype/property-uppercase-tests: Likewise.
24094         * modules/unictype/property-variation-selector-tests: Likewise.
24095         * modules/unictype/property-white-space-tests: Likewise.
24096         * modules/unictype/property-xid-continue-tests: Likewise.
24097         * modules/unictype/property-xid-start-tests: Likewise.
24098         * modules/unictype/property-zero-width-tests: Likewise.
24099         * modules/unictype/scripts-tests: Likewise.
24100         * modules/unictype/syntax-c-ident-tests: Likewise.
24101         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24102         * modules/unictype/syntax-java-ident-tests: Likewise.
24103         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24104         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24105         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24106         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24107         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24108         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24109         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24110         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24111         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24112         * modules/uniname/uniname-tests: Likewise.
24113         * modules/uninorm/canonical-decomposition-tests: Likewise.
24114         * modules/uninorm/compat-decomposition-tests: Likewise.
24115         * modules/uninorm/composition-tests: Likewise.
24116         * modules/uninorm/decomposing-form-tests: Likewise.
24117         * modules/uninorm/decomposition-tests: Likewise.
24118         * modules/uninorm/filter-tests: Likewise.
24119         * modules/uninorm/nfc-tests: Likewise.
24120         * modules/uninorm/nfd-tests: Likewise.
24121         * modules/uninorm/nfkc-tests: Likewise.
24122         * modules/uninorm/nfkd-tests: Likewise.
24123         * modules/uninorm/u8-normcmp-tests: Likewise.
24124         * modules/uninorm/u8-normcoll-tests: Likewise.
24125         * modules/uninorm/u16-normcmp-tests: Likewise.
24126         * modules/uninorm/u16-normcoll-tests: Likewise.
24127         * modules/uninorm/u32-normcmp-tests: Likewise.
24128         * modules/uninorm/u32-normcoll-tests: Likewise.
24129         * modules/unistdio/u8-asnprintf-tests: Likewise.
24130         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24131         * modules/unistdio/u8-vasprintf-tests: Likewise.
24132         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24133         * modules/unistdio/u8-vsprintf-tests: Likewise.
24134         * modules/unistdio/u16-asnprintf-tests: Likewise.
24135         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24136         * modules/unistdio/u16-vasprintf-tests: Likewise.
24137         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24138         * modules/unistdio/u16-vsprintf-tests: Likewise.
24139         * modules/unistdio/u32-asnprintf-tests: Likewise.
24140         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24141         * modules/unistdio/u32-vasprintf-tests: Likewise.
24142         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24143         * modules/unistdio/u32-vsprintf-tests: Likewise.
24144         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24145         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24146         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24147         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24148         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24149         * modules/unistr/u8-check-tests: Likewise.
24150         * modules/unistr/u8-chr-tests: Likewise.
24151         * modules/unistr/u8-cmp-tests: Likewise.
24152         * modules/unistr/u8-cmp2-tests: Likewise.
24153         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24154         * modules/unistr/u8-cpy-tests: Likewise.
24155         * modules/unistr/u8-mblen-tests: Likewise.
24156         * modules/unistr/u8-mbsnlen-tests: Likewise.
24157         * modules/unistr/u8-mbtouc-tests: Likewise.
24158         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24159         * modules/unistr/u8-mbtoucr-tests: Likewise.
24160         * modules/unistr/u8-move-tests: Likewise.
24161         * modules/unistr/u8-next-tests: Likewise.
24162         * modules/unistr/u8-prev-tests: Likewise.
24163         * modules/unistr/u8-set-tests: Likewise.
24164         * modules/unistr/u8-stpcpy-tests: Likewise.
24165         * modules/unistr/u8-stpncpy-tests: Likewise.
24166         * modules/unistr/u8-strcat-tests: Likewise.
24167         * modules/unistr/u8-strcmp-tests: Likewise.
24168         * modules/unistr/u8-strcoll-tests: Likewise.
24169         * modules/unistr/u8-strcpy-tests: Likewise.
24170         * modules/unistr/u8-strdup-tests: Likewise.
24171         * modules/unistr/u8-strlen-tests: Likewise.
24172         * modules/unistr/u8-strmblen-tests: Likewise.
24173         * modules/unistr/u8-strmbtouc-tests: Likewise.
24174         * modules/unistr/u8-strncat-tests: Likewise.
24175         * modules/unistr/u8-strncmp-tests: Likewise.
24176         * modules/unistr/u8-strncpy-tests: Likewise.
24177         * modules/unistr/u8-strnlen-tests: Likewise.
24178         * modules/unistr/u8-to-u16-tests: Likewise.
24179         * modules/unistr/u8-to-u32-tests: Likewise.
24180         * modules/unistr/u8-uctomb-tests: Likewise.
24181         * modules/unistr/u16-check-tests: Likewise.
24182         * modules/unistr/u16-chr-tests: Likewise.
24183         * modules/unistr/u16-cmp-tests: Likewise.
24184         * modules/unistr/u16-cmp2-tests: Likewise.
24185         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24186         * modules/unistr/u16-cpy-tests: Likewise.
24187         * modules/unistr/u16-mblen-tests: Likewise.
24188         * modules/unistr/u16-mbsnlen-tests: Likewise.
24189         * modules/unistr/u16-mbtouc-tests: Likewise.
24190         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24191         * modules/unistr/u16-mbtoucr-tests: Likewise.
24192         * modules/unistr/u16-move-tests: Likewise.
24193         * modules/unistr/u16-next-tests: Likewise.
24194         * modules/unistr/u16-prev-tests: Likewise.
24195         * modules/unistr/u16-set-tests: Likewise.
24196         * modules/unistr/u16-stpcpy-tests: Likewise.
24197         * modules/unistr/u16-stpncpy-tests: Likewise.
24198         * modules/unistr/u16-strcat-tests: Likewise.
24199         * modules/unistr/u16-strcmp-tests: Likewise.
24200         * modules/unistr/u16-strcoll-tests: Likewise.
24201         * modules/unistr/u16-strcpy-tests: Likewise.
24202         * modules/unistr/u16-strdup-tests: Likewise.
24203         * modules/unistr/u16-strlen-tests: Likewise.
24204         * modules/unistr/u16-strmblen-tests: Likewise.
24205         * modules/unistr/u16-strmbtouc-tests: Likewise.
24206         * modules/unistr/u16-strncat-tests: Likewise.
24207         * modules/unistr/u16-strncmp-tests: Likewise.
24208         * modules/unistr/u16-strncpy-tests: Likewise.
24209         * modules/unistr/u16-strnlen-tests: Likewise.
24210         * modules/unistr/u16-to-u32-tests: Likewise.
24211         * modules/unistr/u16-to-u8-tests: Likewise.
24212         * modules/unistr/u16-uctomb-tests: Likewise.
24213         * modules/unistr/u32-check-tests: Likewise.
24214         * modules/unistr/u32-chr-tests: Likewise.
24215         * modules/unistr/u32-cmp-tests: Likewise.
24216         * modules/unistr/u32-cmp2-tests: Likewise.
24217         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24218         * modules/unistr/u32-cpy-tests: Likewise.
24219         * modules/unistr/u32-mblen-tests: Likewise.
24220         * modules/unistr/u32-mbsnlen-tests: Likewise.
24221         * modules/unistr/u32-mbtouc-tests: Likewise.
24222         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24223         * modules/unistr/u32-mbtoucr-tests: Likewise.
24224         * modules/unistr/u32-move-tests: Likewise.
24225         * modules/unistr/u32-next-tests: Likewise.
24226         * modules/unistr/u32-prev-tests: Likewise.
24227         * modules/unistr/u32-set-tests: Likewise.
24228         * modules/unistr/u32-stpcpy-tests: Likewise.
24229         * modules/unistr/u32-stpncpy-tests: Likewise.
24230         * modules/unistr/u32-strcat-tests: Likewise.
24231         * modules/unistr/u32-strcmp-tests: Likewise.
24232         * modules/unistr/u32-strcoll-tests: Likewise.
24233         * modules/unistr/u32-strcpy-tests: Likewise.
24234         * modules/unistr/u32-strdup-tests: Likewise.
24235         * modules/unistr/u32-strlen-tests: Likewise.
24236         * modules/unistr/u32-strmblen-tests: Likewise.
24237         * modules/unistr/u32-strmbtouc-tests: Likewise.
24238         * modules/unistr/u32-strncat-tests: Likewise.
24239         * modules/unistr/u32-strncmp-tests: Likewise.
24240         * modules/unistr/u32-strncpy-tests: Likewise.
24241         * modules/unistr/u32-strnlen-tests: Likewise.
24242         * modules/unistr/u32-to-u16-tests: Likewise.
24243         * modules/unistr/u32-to-u8-tests: Likewise.
24244         * modules/unistr/u32-uctomb-tests: Likewise.
24245         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24246         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24247         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24248         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24249         * modules/uniwidth/u8-strwidth-tests: Likewise.
24250         * modules/uniwidth/u8-width-tests: Likewise.
24251         * modules/uniwidth/u16-strwidth-tests: Likewise.
24252         * modules/uniwidth/u16-width-tests: Likewise.
24253         * modules/uniwidth/u32-strwidth-tests: Likewise.
24254         * modules/uniwidth/u32-width-tests: Likewise.
24255         * modules/uniwidth/width-tests: Likewise.
24256
24257 2010-05-18  Richard Jones  <rjones@redhat.com>
24258
24259         doc: users.txt: list hivex
24260         * users.txt: Add hivex.
24261
24262 2010-05-18  Richard Jones  <rjones@redhat.com>
24263
24264         doc: users.txt: list febootstrap
24265         * users.txt: Add febootstrap.
24266
24267 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24268
24269         bootstrap: fix an error when gnulib is not used as a git submodule
24270         * build-aux/bootstrap (gnulib_path): If its length is zero then
24271         assign "gnulib" to it.
24272         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24273
24274 2010-05-16  Bruno Haible  <bruno@clisp.org>
24275
24276         Avoid autoconf warnings about AM_ICONV.
24277         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24278         2.64.
24279
24280 2010-05-16  Bruno Haible  <bruno@clisp.org>
24281
24282         absolute-header: Make the macro usable in more situations.
24283         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24284         from gl_ABSOLUTE_HEADER.
24285         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24286
24287 2010-05-16  James Youngman  <jay@gnu.org>
24288
24289         doc: update users.txt
24290         * users.txt: Add CSSC.
24291
24292 2010-05-16  Jim Meyering  <meyering@redhat.com>
24293
24294         init.sh: fix an error in the previous change; add more comments
24295         * tests/init.sh: Compare exit code in loop against 9, not 2.
24296         Patch by Bruno Haible.
24297         Make the two tests more similar by adding an empty "then" clause.
24298         Add comments.
24299
24300         init.sh: avoid unnecessary shell re-exec
24301         * tests/init.sh: Improve the re-exec-required check to first test the
24302         current shell.  If it passes the test, do not search for a shell that
24303         does pass, and do not re-exec.  This test is particularly contorted to
24304         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24305         of $(...) evokes a syntax error and causes immediate shell exit with
24306         status 2.  Bruno Haible reported that the re-exec made it impossible
24307         to single-step through any init.sh-using script.
24308
24309 2010-05-16  Bruno Haible  <bruno@clisp.org>
24310
24311         Fix collision between gnulib's and libintl's printf replacements.
24312         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24313         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24314         (printf): When using GNU C, map the __printf__ function to rpl_printf
24315         via __asm__. When not using GNU C, define rpl_printf instead of
24316         __printf__.
24317         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24318         commit.
24319         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24320         commit.
24321         * m4/asm-underscore.m4: New file.
24322         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24323         * modules/stdio (Files): Add m4/asm-underscore.m4.
24324         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24325         Reported by Ben Pfaff.
24326
24327 2010-05-16  Bruno Haible  <bruno@clisp.org>
24328
24329         verify: Avoid skipping the test on openSUSE 11.0.
24330         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24331
24332 2010-05-13  Bruno Haible  <bruno@clisp.org>
24333
24334         Avoid useless warnings from G++.
24335         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24336         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24337         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24338
24339 2010-05-11  Jim Meyering  <meyering@redhat.com>
24340
24341         maint.mk: tweak preceding change
24342         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24343         regexps tighter by anchoring at EOL, and make the new group "shy"
24344         for slightly decreased overhead.
24345
24346 2010-05-11  Eric Blake  <eblake@redhat.com>
24347
24348         maint.mk: gnulib doesn't guarantee NSIG
24349         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24350
24351 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24352
24353         test-pwrite.c: Remove unused variable declaration.
24354         * tests/test-pwrite.c (main): Remove read_buf declaration.
24355
24356         Remove useless test-pwrite.sh file.
24357         * tests/test-pwrite.sh: Delete file.
24358         * modules/pwrite-tests: Remove references.
24359         Reported by Bruno Haible.
24360
24361 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24362
24363         init.sh: fix a typo
24364         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24365
24366 2010-05-10  Jim Meyering  <meyering@redhat.com>
24367
24368         maint.mk: avoid using a temporary file in the always-defined-macros check
24369         * top/maint.mk (.re-defmac): Remove rule.
24370         (gl_trap_): Remove definition.
24371         (sc_prohibit_always-defined_macros): Rewrite not to create and
24372         depend on a temporary file.  Instead, depend on GNU grep's ability
24373         to read a list of regular expressions from stdin when given "-f -".
24374
24375 2010-05-09  Bruno Haible  <bruno@clisp.org>
24376
24377         Update to GNU gettext 0.18, part 1.
24378         * m4/gettext.m4: Update to GNU gettext 0.18.
24379         * m4/intl.m4: Likewise.
24380         * m4/po.m4: Likewise.
24381         * modules/gettext (Files): Add m4/fcntl-o.m4.
24382         (configure.ac): Require gettext infrastructure from version 0.18.
24383
24384 2010-05-09  Jim Meyering  <meyering@redhat.com>
24385
24386         init.sh: enable MALLOC_PERTURB_
24387         * tests/init.sh: Enable glibc's malloc-perturbing option.
24388
24389         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24390         With my recent change in init.sh from the two-line form:
24391             -#   : ${srcdir=.}
24392             -#   . "$srcdir/init.sh"; path_prepend_ .
24393             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24394         I noticed that using the one-line form would cause this test
24395         to fail with a false-positive, or to stop working altogether,
24396         depending on whether help-version changed or all the tests did.
24397         * top/maint.mk (_hv_regex): Remove this definition.
24398         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24399         (_hv_regex_strong): Use a stronger regex to check for conformance.
24400         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24401         Give a separate diagnostic for lack of conforming use.
24402
24403         maint.mk: prohibit definition of symbols defined by gnulib
24404         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24405         definition of symbols defined by gnulib.
24406
24407 2010-05-09  Bruno Haible  <bruno@clisp.org>
24408
24409         acl: Avoid test failure on Cygwin-hosted mingw.
24410         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24411
24412 2010-05-09  Bruno Haible  <bruno@clisp.org>
24413
24414         error: Use system's fcntl function.
24415         * lib/error.c (fcntl): Undefine.
24416
24417 2010-05-09  Jim Meyering  <meyering@redhat.com>
24418
24419         verify: adjust formatting to be more consistent
24420         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24421         argument-list '('s, and after one comma.
24422
24423 2010-05-09  Bruno Haible  <bruno@clisp.org>
24424
24425         error: More reliable output on mingw.
24426         * lib/error.c: Include <windows.h>.
24427         (is_open): New function.
24428         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24429         defined.
24430
24431 2010-05-09  Bruno Haible  <bruno@clisp.org>
24432
24433         vasnprintf: Fix syntax errors in libintl build on mingw.
24434         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24435         pad_ourselves and prec_ourselves after use.
24436
24437 2010-05-08  Bruno Haible  <bruno@clisp.org>
24438
24439         * lib/config.charset: Update comments for Cygwin 1.7.
24440         * lib/localcharset.c: Likewise.
24441
24442 2010-05-07  Jim Meyering  <meyering@redhat.com>
24443
24444         init.sh: improve comments
24445         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24446         . "${srcdir=.}/init.sh"; path_prepend_ .
24447         Add a note about path_prepend_ and the alternative of using
24448         TESTS_ENVIRONMENT.
24449
24450 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24451
24452         exclude: Unescape hashed patterns in wildcard mode.
24453         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24454         to the hash list.
24455         * tests/test-exclude8.sh: New test case.
24456         * modules/exclude-tests: Add new test.
24457
24458 2010-05-05  Eric Blake  <eblake@redhat.com>
24459
24460         verify: automate tests
24461         * modules/verify-tests: New module.
24462         * tests/test-verify.sh: New file.
24463         * tests/test-verify.c: Guard each negative test with a unique id.
24464         Also avoid warning about unused left hand of comma expressions.
24465
24466 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24467
24468         Further improvements to verify.h, suggested by Eric Blake.
24469         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24470         the GL_* versions, to avoid collision with OpenGL.
24471         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24472         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24473         than testing merely whether it's defined.
24474
24475         Modify verify.h to pacify gcc -Wredundant_decls.
24476         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24477         These use the prefix "GL_" since they're likely to be useful elsewhere.
24478         We may need to break them out into a different .h file.
24479         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24480         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24481         of verify_function__.
24482
24483 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24484
24485         Tests for module pwrite.
24486         * modules/pwrite-tests: New file.
24487         * tests/test-pwrite.sh: New file.
24488         * tests/test-pwrite.c: New file.
24489
24490         New module pwrite.
24491         * lib/unistd.in.h (pwrite): New declaration.
24492         * lib/pwrite.c: New file, from glibc with modifications.
24493         * m4/pwrite.m4: New file.
24494         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24495         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24496         REPLACE_PWRITE.
24497         * modules/pwrite: New file.
24498         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24499         REPLACE_PWRITE.
24500         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24501         * doc/posix-functions/pwrite.texi: Mention the new module.
24502
24503 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24504
24505         pread: Update documentation.
24506         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24507
24508 2010-05-04  Eric Blake  <eblake@redhat.com>
24509
24510         docs: update cygwin progress
24511         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24512         this bug.
24513         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24514         Added in cygwin 1.7.2.
24515         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24516         Likewise.
24517         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24518         Likewise.
24519         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24520         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24521         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24522         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24523         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24524         Mention nproc module.
24525         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24526         bug in cygwin 1.7.5 addition.
24527         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24528         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24529         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24530         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24531         1.7.5.
24532         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24533         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24534         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24535         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24536         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24537         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24538         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24539         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24540         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24541         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24542         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24543         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24544         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24545         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24546         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24547         Likewise.
24548         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24549         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24550         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24551         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24552         Likewise.
24553         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24554         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24555         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24556         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24557         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24558         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24559         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24560         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24561         Likewise.
24562         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24563         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24564         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24565         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24566         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24567         Likewise.
24568         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24569         Likewise.
24570         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24571         Likewise.
24572         * doc/glibc-functions/xdrrec_endofrecord.texi
24573         (xdrrec_endofrecord): Likewise.
24574         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24575         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24576         Likewise.
24577         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24578         Likewise.
24579
24580 2010-05-04  Jim Meyering  <meyering@redhat.com>
24581
24582         gendocs.sh: make its "-s FILE" option more useful
24583         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24584         $PACKAGE to reflect the probably-different basename of "FILE".
24585
24586 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24587
24588         bootstrap: don't ignore download_po_files failure
24589         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24590         failure.
24591
24592 2010-05-03  Jim Meyering  <meyering@redhat.com>
24593
24594         maint.mk: allow to pass options to gendocs.sh
24595         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24596         (gendocs_options_): New overridable variable.
24597
24598         gnu-web-doc-update: don't ignore configure or build failure
24599         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24600
24601         announce-gen: backslash-escape '@'s in --help output
24602         * build-aux/announce-gen: Fix syntax errors.
24603
24604         maint.mk, announce-gen: allow project-specific announcement mail headers
24605         * top/maint.mk (translation_project_): Define default.
24606         (announcement_Cc_, announcement_mail_headers_): Likewise.
24607         (announcement): Invoke announce-gen with new --mail-headers option.
24608         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24609
24610         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24611         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24612         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24613         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24614         line in the "err2" output file when running "make check" in verbose
24615         mode (i.e., with set -x enabled).
24616
24617 2010-05-03  Bruno Haible  <bruno@clisp.org>
24618
24619         wctob: Fix for weird platforms.
24620         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24621         argument value.
24622
24623 2010-05-03  Jim Meyering  <meyering@redhat.com>
24624
24625         maint.mk: prohibit unwarranted use of <strings.h>
24626         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24627         strings.h in a file that does not also use strcasecmp, strncasecmp,
24628         ffs or ffsll.
24629
24630         maint.mk: remove obsolete comments
24631         * top/maint.mk: Remove stale, commented-out rules.
24632
24633 2010-05-02  Bruno Haible  <bruno@clisp.org>
24634
24635         wcwidth: Declare also when it's aliased.
24636         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24637         macro.
24638
24639 2010-05-02  Bruno Haible  <bruno@clisp.org>
24640
24641         Fix regression from 2010-04-25.
24642         * gnulib-tool (func_modules_transitive_closure): Check the status of
24643         all modules, not only of the tests that are of the form foo-tests where
24644         foo is a module.
24645
24646 2010-05-02  Bruno Haible  <bruno@clisp.org>
24647
24648         wctob: Work around nasty Cygwin 1.7.2 bug.
24649         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24650         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24651
24652 2010-05-01  Bruno Haible  <bruno@clisp.org>
24653
24654         fpurge: Sharper test.
24655         * tests/test-fpurge.c (main): Add one more ftell check.
24656         * modules/fpurge-tests (Depends-on): Add ftell.
24657         Suggested by Eric Blake.
24658
24659 2010-05-01  Bruno Haible  <bruno@clisp.org>
24660
24661         ftello: Another test.
24662         * tests/test-ftello3.c: New file.
24663         * modules/ftello-tests (Files): Add it.
24664         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24665         MOSTLYCLEANFILES.
24666
24667         ftell: Another test.
24668         * tests/test-ftell3.c: New file.
24669         * modules/ftell-tests (Files): Add it.
24670         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24671         MOSTLYCLEANFILES.
24672
24673 2010-05-01  Bruno Haible  <bruno@clisp.org>
24674
24675         ftell, ftello: Work around Solaris bug.
24676         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24677         * lib/ftello.c: Include stdio-impl.h.
24678         (ftello): On Solaris, when _IOWRT is set, compute the result without
24679         looking at _IOREAD.
24680         * modules/ftello (Files): Add lib/stdio-impl.h.
24681         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24682         * doc/posix-functions/ftello.texi: Likewise.
24683         Reported by Eric Blake.
24684
24685 2010-05-01  Bruno Haible  <bruno@clisp.org>
24686
24687         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24688         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24689         the _IOWRT flag is also set.
24690
24691 2010-05-01  Bruno Haible  <bruno@clisp.org>
24692
24693         Fix doc about a HP-UX stdio bug.
24694         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24695         * doc/posix-functions/ftello.texi: Likewise.
24696
24697 2010-05-01  Bruno Haible  <bruno@clisp.org>
24698
24699         lseek test: Fix failure on Solaris.
24700         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24701         output.
24702
24703 2010-04-30  Jim Meyering  <meyering@redhat.com>
24704
24705         bootstrap: don't ignore failure to generate po*/Makevars
24706         * build-aux/bootstrap (with_gettext): Don't ignore failure
24707         to create po/Makevars or runtime-po/Makevars.
24708
24709 2010-04-29  Eric Blake  <eblake@redhat.com>
24710
24711         headers: relax license to LGPLv2+
24712         * modules/fcntl-h (License): Relax license.
24713         * modules/getopt-posix (License): Likewise.
24714         * modules/locale (License): Likewise.
24715         * modules/math (License): Likewise.
24716         * modules/pty (License): Likewise.
24717         * modules/sched (License): Likewise.
24718         * modules/search (License): Likewise.
24719         * modules/spawn (License): Likewise.
24720         * modules/stdarg (License): Likewise.
24721         * modules/sysexits (License): Likewise.
24722
24723 2010-04-29  Jim Meyering  <meyering@redhat.com>
24724
24725         inttypes: relax license to LGPLv2+
24726         * modules/inttypes (License): Relax license.
24727
24728 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24729
24730         * top/maint.mk (indent): Run twice to produce idempotent results.
24731
24732 2010-04-28  Bruno Haible  <bruno@clisp.org>
24733
24734         getdate: Generate getdate.c in the source directory.
24735         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24736         MOSTLYCLEANFILES.
24737         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24738
24739 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24740
24741         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24742         is not declared as a const *; avoid warnings in that case.
24743
24744 2010-04-28  Eric Blake  <eblake@redhat.com>
24745
24746         canonicalize-lgpl: avoid compiler warning
24747         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24748         declaration' / 'extraneous semicolon' warning with some compilers.
24749         Reported by Andreas Gruenbacher.
24750
24751 2010-04-28  Jim Meyering  <meyering@redhat.com>
24752
24753         init.sh: ensure a more reliable exit status when exiting via trap
24754         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24755         Inspired by patches from Dmitry V. Levin.
24756         Also trap on signal 3 (SIGQUIT).
24757
24758 2010-04-27  Bruno Haible  <bruno@clisp.org>
24759
24760         Update doc about utimes().
24761         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24762         'utimens' module.
24763         Reported by Andreas Gruenbacher <agruen@suse.de>.
24764
24765 2010-04-27  Eric Blake  <eblake@redhat.com>
24766
24767         full-read, full-write: relax license
24768         * modules/full-read (License): Drop to LGPLv2+.
24769         * modules/full-write (License): Likewise.
24770         * modules/safe-read (License): Likewise.
24771         * modules/safe-write (License): Likewise.
24772
24773         pthread: mention library for linking
24774         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24775
24776 2010-04-27  Jim Meyering  <meyering@redhat.com>
24777
24778         maint.mk: fix a bug introduced in last change
24779         * top/maint.mk (gl_assured_headers_): Now that all names are on
24780         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24781         is not anchored to end of word, it should be adequate.
24782
24783         maint.mk: avoid side-effect in latest syntax-check
24784         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24785         to run commands via $(shell...), and hence to incur cost only when
24786         the new rule is actually run.
24787
24788         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24789         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24790         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24791         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24792         (gl_assured_headers_, az_, AZ_): Define.
24793         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24794
24795 2010-04-26  Jim Meyering  <jim@meyering.net>
24796             Bruno Haible  <bruno@clisp.org>
24797
24798         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24799         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24800         Prompted by an exchange with Gilles Espinasse.
24801
24802 2010-04-26  Jim Meyering  <meyering@redhat.com>
24803
24804         git-version-gen: aesthetic tweak
24805         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24806         so that the command remains on a single line.
24807
24808 2010-04-26  Eric Blake  <eblake@redhat.com>
24809
24810         git-version-gen: allow use on EBCDIC hosts
24811         * build-aux/git-version-gen (dirty): Use literal rather than tying
24812         ourselves to ascii.
24813         Reported by Steve Goetze.
24814
24815 2010-04-25  Bruno Haible  <bruno@clisp.org>
24816
24817         netdb: Add support for GNULIB_POSIXCHECK.
24818         * lib/netdb.in.h: Include warn-on-use.h.
24819         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24820         functions are used when GNULIB_POSIXCHECK is defined and the
24821         getaddrinfo module is not in use.
24822         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24823         freeaddrinfo, gai_strerror, getnameinfo are declared.
24824         * modules/netdb (Depends-on): Add warn-on-use.
24825         (Makefile.am): Include warn-on-use.h in netdb.h.
24826
24827 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24828
24829         build: avoid "make check" failure without .git/ directory
24830         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24831         there is no .git/ directory.
24832
24833 2010-04-25  Bruno Haible  <bruno@clisp.org>
24834
24835         ptsname: Fix misuse of ttyname_r.
24836         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24837         of errno.
24838
24839 2010-04-25  Bruno Haible  <bruno@clisp.org>
24840
24841         ttyname_r: Make it work on Solaris 10.
24842         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24843         if the system function has the POSIX declaration. Test whether the
24844         function fails if the buffer is less than 128 bytes large.
24845         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24846         system's ttyname_r function. Provide a reasonably large buffer.
24847         * modules/ttyname_r (Depends-on): Add extensions.
24848         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24849
24850 2010-04-25  Bruno Haible  <bruno@clisp.org>
24851
24852         Use the 'extensions' module for some more functions on Solaris.
24853         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24854         module.
24855         * doc/posix-functions/ctime_r.texi: Likewise.
24856         * doc/posix-functions/getgrgid_r.texi: Likewise.
24857         * doc/posix-functions/getgrnam_r.texi: Likewise.
24858         * doc/posix-functions/getpwnam_r.texi: Likewise.
24859         * doc/posix-functions/getpwuid_r.texi: Likewise.
24860         * doc/posix-functions/readdir_r.texi: Likewise.
24861         * doc/posix-functions/sigwait.texi: Likewise.
24862         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24863         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24864
24865 2010-04-25  Bruno Haible  <bruno@clisp.org>
24866
24867         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24868         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24869         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24870         * lib/ttyname_r.c: Include <limits.h>.
24871         (ttyname_r): Define using the system's ttyname_r function, if it exists
24872         and not on Solaris.
24873         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24874         set.
24875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24876         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24877         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24878         Reported by Simon Josefsson.
24879
24880 2010-04-25  Bruno Haible  <bruno@clisp.org>
24881
24882         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24883         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24884         * doc/posix-functions/ctime_r.texi: Likewise.
24885         * doc/posix-functions/getgrgid_r.texi: Likewise.
24886         * doc/posix-functions/getgrnam_r.texi: Likewise.
24887         * doc/posix-functions/getlogin_r.texi: Likewise.
24888         * doc/posix-functions/getpwnam_r.texi: Likewise.
24889         * doc/posix-functions/getpwuid_r.texi: Likewise.
24890         * doc/posix-functions/readdir_r.texi: Likewise.
24891         * doc/posix-functions/sigwait.texi: Likewise.
24892         * doc/posix-functions/ttyname_r.texi: Likewise.
24893         Reported by Simon Josefsson.
24894
24895 2010-04-25  Bruno Haible  <bruno@clisp.org>
24896
24897         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24898         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24899         also to --create-testdir.
24900         (func_acceptable): Don't consider the status of *-tests modules here.
24901         (func_modules_transitive_closure): Consider it here, before including a
24902         test module.
24903         (func_import, func_create_testdir): Set inc_all_direct_tests,
24904         inc_all_indirect_tests.
24905         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24906         --create-testdir and --create-megatestdir.
24907
24908 2010-04-25  Bruno Haible  <bruno@clisp.org>
24909
24910         gnulib-tool: Add --without-*-tests options.
24911         * gnulib-tool (func_usage): Document the --without-*-tests options.
24912         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24913         excl_unportable_tests): New variables.
24914         Fail if they are specified with --import or --update.
24915         (func_acceptable): Respect the excl_*_tests variables.
24916         (func_import): Set the excl_*_tests variables to empty.
24917
24918 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24919             Bruno Haible  <bruno@clisp.org>
24920
24921         Work around a MacOS X 10.4 bug with openpty.
24922         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24923         * tests/test-openpty.c (main): Close the master side explicitly.
24924
24925 2010-04-25  Bruno Haible  <bruno@clisp.org>
24926
24927         strnlen: Fix a C++ test error on MacOS X and Solaris.
24928         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24929         the function is not declared.
24930         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24931         Simon Josefsson.
24932
24933 2010-04-24  Bruno Haible  <bruno@clisp.org>
24934
24935         Avoid a gcc warning.
24936         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24937         of correct type for %08lx directive.
24938         Reported by Eric Blake.
24939
24940 2010-04-24  Bruno Haible  <bruno@clisp.org>
24941
24942         vasnprintf: Correct errno value in case of out-of-memory.
24943         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24944         or sprintf. Use the errno value from SNPRINTF or sprintf.
24945         Reported by Ian Beckwith <ianb@erislabs.net>.
24946
24947 2010-04-24  Bruno Haible  <bruno@clisp.org>
24948
24949         ansi-c++-opt: Find correct compiler when cross-compiling.
24950         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24951         AC_CHECK_PROGS.
24952         Reported by Simon Josefsson.
24953
24954 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24955
24956         vc-list-files: Add support for subversion
24957         * build-aux/vc-list-files: Use "svn list" to generate the list of
24958         files controlled by subversion.
24959
24960 2010-04-23  Jim Meyering  <meyering@redhat.com>
24961
24962         vc-list-files tests: convert to use init.sh
24963         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24964         path_prepend_.
24965         Use Exit, not exit.
24966         Use skip_ rather than open coding it.
24967         Remove trap set-up and compare definitions.
24968         * tests/test-vc-list-files-git.sh: Likewise.
24969         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24970
24971 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24972
24973         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24974         backup files.
24975
24976 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24977
24978         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24979
24980 2010-04-20  Eric Blake  <eblake@redhat.com>
24981
24982         tests: be robust to ignored SIGPIPE
24983         * tests/test-select-in.sh: Consume all output.
24984         * tests/test-lseek.sh: Check correct exit status, while avoiding
24985         EPIPE.
24986
24987 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24988             Bruno Haible  <bruno@clisp.org>
24989
24990         visibility: Don't use -fvisibility if it leads to a warning.
24991         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24992         yes, don't pretend that visibility works if it leads to a warning.
24993         Reported by Mike Gran <spk121@yahoo.com>.
24994
24995 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24996
24997         * build-aux/bootstrap: Use "git -h" for testing for supported options
24998         instead of "git --help".  The short-form option only shows a summary,
24999         and doesn't layout the full man page.  Grep for the full option name
25000         in the summary, too.
25001
25002 2010-04-19  Bruno Haible  <bruno@clisp.org>
25003
25004         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25005         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25006         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25007         mention of RELOCATABLE_STRIP.
25008         Reported by Sylvain Beucler <beuc@beuc.net>.
25009
25010 2010-04-19  Bruno Haible  <bruno@clisp.org>
25011
25012         * lib/diffseq.h: Fix typo in comment.
25013         Reported by Eric Blake.
25014
25015 2010-04-19  Bruno Haible  <bruno@clisp.org>
25016
25017         ioctl: Move autoconf macro to a .m4 file.
25018         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25019         * modules/ioctl (Files): Add it.
25020         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25021         Reported by Ian Beckwith <ianb@erislabs.net>.
25022
25023 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25024             Bruno Haible  <bruno@clisp.org>
25025
25026         diffseq: Accommodate use-case with abstract arrays.
25027         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25028         is not defined.
25029         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25030         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25031
25032 2010-04-18  Bruno Haible  <bruno@clisp.org>
25033
25034         * doc/posix-headers/stdbool.texi: More precise wording.
25035
25036 2010-04-17  Jim Meyering  <meyering@redhat.com>
25037
25038         maint.mk: use gnu-style indentation in an embedded perl script
25039         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25040         Rename variable: s/two/last_two_bytes/
25041
25042 2010-04-16  Eric Blake  <eblake@redhat.com>
25043
25044         test-stdbool: skip test that fails with Solaris CC
25045         * tests/test-stdbool.c (f): Skip test that causes compilation
25046         error under buggy C++ compiler.
25047         * lib/stdbool.in.h: Document the limitation.
25048         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25049
25050         setenv: allow compilation with C++
25051         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25052         register keyword.
25053
25054         stdint: allow test to pass with C++
25055         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25056
25057         getopt: allow compilation with C++
25058         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25059         struct.
25060         * lib/getopt.c (_getopt_internal_r): Use correct type.
25061         Reported by Dagobert Michelson, via Joel E. Denny.
25062
25063 2010-04-16  Bruno Haible  <bruno@clisp.org>
25064
25065         Override netdb.h always.
25066         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25067         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25068         Reported by Ludovic Courtès <ludo@gnu.org>.
25069
25070 2010-04-15  Bruno Haible  <bruno@clisp.org>
25071
25072         openpty: Fix mistake from 2010-03-21.
25073         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25074         Reported by Simon Josefsson.
25075
25076 2010-04-15  Eric Blake  <eblake@redhat.com>
25077
25078         test-forkpty: fix expected signature
25079         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25080         Reported by Simon Josefsson.
25081
25082 2010-04-15  Jim Meyering  <meyering@redhat.com>
25083
25084         maint.mk: texinfo_suffix_re_: correct the default regexp
25085         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25086
25087         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25088         make it configurable via texinfo_suffix_re_.
25089
25090 2010-04-14  Eric Blake  <eblake@redhat.com>
25091
25092         strtok_r: relax license to LGPLv2+
25093         * modules/strtok_r (License): Relax license.
25094         Reported by Matthias Bolte.
25095
25096 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25097
25098         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25099         version 1.4.4 by default instead of requiring the libgcrypt
25100         version used during build.  This makes it possible to use the
25101         application with older but still binary compatible libgcrypt
25102         versions.
25103
25104 2010-04-13  Eric Blake  <eblake@redhat.com>
25105
25106         getopt-gnu: match recent glibc fixes and posix ruling
25107         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25108         '+' handling, when requesting extensions.
25109         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25110         'W;' handling.
25111         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25112         * doc/posix-functions/getopt.texi (getopt): Document this.
25113         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25114         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25115         Likewise.
25116
25117         getopt: merge bug fixes from glibc
25118         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25119         diagnostics.  Honor '+:' correctly.  Reject ';'.
25120
25121         getopt-posix: detect MacOS bug
25122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25123         optind when missing a required argument.
25124         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25125         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25126         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25127         Likewise.
25128
25129         getopt-posix: avoid spurious failure on Solaris
25130         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25131         an indicator that setting optind=1 is sufficient for reset.
25132
25133         getopt-posix: avoid spurious failure on FreeBSD
25134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25135         in POSIX mode, since the m4 test uses it.
25136
25137         gnulib-tool: silence warning on BSD sh
25138         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25139
25140 2010-04-13  Jim Meyering  <meyering@redhat.com>
25141
25142         doc: users.txt: GNU patch now uses gnulib
25143         * users.txt: Add patch.
25144
25145 2010-04-12  Jim Meyering  <meyering@redhat.com>
25146
25147         maint.mk: generate more concise timing data for syntax-check rules
25148         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25149         " done" from each line that reports a syntax-check test duration.
25150
25151 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25152
25153         git-version-gen: use "git update-index..." rather than "git status"
25154         * build-aux/git-version-gen: Use git update-index --refresh, not
25155         "git status".  With some versions of git, "git status" would fail
25156         to update the index and result in an unwarranted "-dirty" suffix.
25157
25158 2010-04-11  Jim Meyering  <meyering@redhat.com>
25159
25160         openat: correct formatting (no semantic change)
25161         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25162         Suggested by Bruno Haible.
25163
25164 2010-04-11  Bruno Haible  <bruno@clisp.org>
25165
25166         Stricter declaration checking in testdirs.
25167         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25168         If for_tests is true, augment AM_CPPFLAGS to define
25169         GNULIB_STRICT_CHECKING.
25170         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25171         GNULIB_STRICT_CHECKING is defined, verify that the function is
25172         declared.
25173
25174 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25175             Bruno Haible  <bruno@clisp.org>
25176
25177         libunistring: Improve configure output.
25178         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25179         Don't say "consider installing GNU libunistring" when checking again
25180         with libiconv.
25181
25182 2010-04-11  Bruno Haible  <bruno@clisp.org>
25183
25184         libunistring: Correct value of $LTLIBUNISTRING.
25185         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25186         correct the value of $LTLIBUNISTRING.
25187
25188 2010-04-11  Bruno Haible  <bruno@clisp.org>
25189
25190         havelib: Add static libraries to LIBS in the right order.
25191         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25192         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25193
25194 2010-04-11  Bruno Haible  <bruno@clisp.org>
25195
25196         libunistring: Detect libunistring also when it depends on libiconv.
25197         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25198         the second AC_LIB_HAVE_LINKFLAGS invocation.
25199
25200 2010-04-11  James Youngman  <jay@gnu.org>
25201
25202         close-stream: declare local scalars to be "const"
25203         * lib/close-stream.c (close_stream): Make boolean variables const
25204         to document the fact that we set but do not change them.
25205
25206 2010-04-11  Bruno Haible  <bruno@clisp.org>
25207
25208         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25209
25210 2010-04-11  Jim Meyering  <meyering@redhat.com>
25211
25212         maint.mk: don't include dist-check.mk
25213         * top/maint.mk: Remove bogus include directive.
25214
25215         maint.mk: improve empty-line-at-EOF check
25216         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25217         solution, rather than tail+Perl-based one.  The latter would read
25218         a few kilobytes from the end of each file, and did not handle empty
25219         files properly.
25220
25221         maint.mk: print the elapsed time for each syntax-check rule
25222         * top/maint.mk (sc_m_rules_): Save start time in a file.
25223         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25224         (local-check): Interpose the .z rules
25225
25226 2010-04-11  Jim Meyering  <meyering@redhat.com>
25227
25228         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25229         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25230         empty file with one that ends in an empty line.
25231
25232 2010-04-10  Bruno Haible  <bruno@clisp.org>
25233
25234         mkdir: Make it work on mingw64.
25235         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25236         * lib/mkdir.c: Update comment.
25237         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
25238
25239 2010-04-10  Bruno Haible  <bruno@clisp.org>
25240
25241         Don't override improved macro from newer autoconf.
25242         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25243         autoconf >= 2.62.
25244         Reported by Joel E. Denny <jdenny@clemson.edu>.
25245
25246 2010-04-10  Jim Meyering  <meyering@redhat.com>
25247
25248         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25249         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25250
25251         maint.mk: correct a diagnostic
25252         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25253         in diagnostic; now use $prohibit.
25254
25255 2010-04-10  Bruno Haible  <address@hidden>
25256
25257         fchownat: Fix a C++ test error on Solaris 8.
25258         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25259         the function does not exist.
25260
25261 2010-04-10  Bruno Haible  <bruno@clisp.org>
25262
25263         vasnprintf: Add more tests.
25264         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25265         (test_function): Test converting an invalid wide string.
25266
25267         vasnprintf: Correct handling of unconvertible wide string arguments.
25268         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25269         VASNPRINTF.
25270         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25271         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25272         smaller than the expected maximum need for the directive. Set errno to
25273         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25274         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25276         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25277         * modules/vasnprintf (Files): Add m4/printf.m4.
25278         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25279
25280 2010-04-10  Bruno Haible  <bruno@clisp.org>
25281
25282         vasnprintf: Fix crash in %ls directive.
25283         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25284         string is passed as argument to %ls, with no precision and no width.
25285         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25286
25287 2010-04-10  Bruno Haible  <bruno@clisp.org>
25288
25289         vasnprintf: Fix multiple test failures on mingw.
25290         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25291         _snprintf, or snwprintf, not _snwprintf.
25292
25293 2010-04-10  Bruno Haible  <bruno@clisp.org>
25294
25295         write: Fix a C++ test error on mingw.
25296         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25297
25298 2010-04-10  Bruno Haible  <bruno@clisp.org>
25299
25300         vasnprintf test: Reduce code duplication.
25301         * tests/test-vasnprintf.c (test_function): New function, extracted from
25302         test_vasnprintf.
25303         (test_vasnprintf, test_asnprintf): Invoke it.
25304
25305 2010-04-10  Bruno Haible  <bruno@clisp.org>
25306
25307         strnlen: Fix warning in C++ mode on MacOS X.
25308         * lib/string.in.h (strnlen): Use the modern idiom.
25309         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25310         defining strnlen as a macro already in <config.h>.
25311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25312         REPLACE_STRNLEN.
25313         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25314         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25315
25316 2010-04-08  James Youngman  <jay@gnu.org>
25317
25318         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25319         the example.
25320
25321 2010-04-09  Jim Meyering  <meyering@redhat.com>
25322
25323         maint.mk: print better diagnostic when there is no $(_hv_file)
25324         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25325         announce that when $(_hv_file) (aka help-version) does not exist.
25326
25327         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25328         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25329         not try to interpret its random input bytes.  Jarno Rajahalme reported
25330         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25331         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25332         (mktempd_): Likewise, just in case.
25333
25334         ftruncate: add two years to projected module removal date: 2012
25335         * m4/ftruncate.m4: Adjust comments.
25336
25337         ftruncate: mark module as obsolete; even MinGW provides it, now
25338         * modules/ftruncate (Status): Obsolete.
25339         (Notice): Say that.
25340         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25341         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25342
25343 2010-04-08  Bruno Haible  <bruno@clisp.org>
25344
25345         Fix side effects from tests-related modules.
25346         * modules/dprintf-posix (Comment): New section.
25347         * modules/fprintf-posix (Comment): Likewise.
25348         * modules/obstack-printf-posix (Comment): Likewise.
25349         * modules/printf-posix (Comment): Likewise.
25350         * modules/snprintf-posix (Comment): Likewise.
25351         * modules/sprintf-posix (Comment): Likewise.
25352         * modules/vasnprintf-posix (Comment): Likewise.
25353         * modules/vasprintf-posix (Comment): Likewise.
25354         * modules/vdprintf-posix (Comment): Likewise.
25355         * modules/vfprintf-posix (Comment): Likewise.
25356         * modules/vprintf-posix (Comment): Likewise.
25357         * modules/vsnprintf-posix (Comment): Likewise.
25358         * modules/vsprintf-posix (Comment): Likewise.
25359         * modules/xprintf-posix (Comment): Likewise.
25360         * modules/xvasprintf-posix (Comment): Likewise.
25361         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25362         * modules/floorf-tests (Depends-on): Likewise.
25363         * modules/round-tests (Depends-on): Likewise.
25364         * modules/roundf-tests (Depends-on): Likewise.
25365         * modules/trunc-tests (Depends-on): Likewise.
25366         * modules/truncf-tests (Depends-on): Likewise.
25367         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25368         'fprintf-posix' module is not present.
25369         * tests/test-floorf2.c (check): Likewise.
25370         * tests/test-trunc2.c (check): Likewise.
25371         * tests/test-truncf2.c (check): Likewise.
25372         * tests/test-round2.c (equal): Likewise.
25373         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25374
25375 2010-04-07  Karl Berry  <karl@gnu.org>
25376
25377         * config/srclist.txt,
25378         * config/srclistvars.sh,
25379         * config/srclist-update: doc fixes.
25380
25381 2010-04-07  Jim Meyering  <meyering@redhat.com>
25382
25383         maint.mk: add a PATH crosschecking syntax-check rule
25384         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25385         Useful if you use a test like the one in help-version (coreutils,
25386         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25387         printed by prog --version.
25388
25389 2010-04-06  Bruno Haible  <bruno@clisp.org>
25390
25391         Fix link error on mingw.
25392         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25393         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25394
25395 2010-04-06  Bruno Haible  <bruno@clisp.org>
25396
25397         Assume rmdir exists.
25398         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25399
25400 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25401
25402         doc: update users.txt
25403         * users.txt: Add gcal.
25404
25405 2010-04-06  Jim Meyering  <meyering@redhat.com>
25406
25407         init.sh: simply unset TMPDIR rather than risking env -i
25408         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25409         although it probably works fine on all Unix-based systems, some
25410         systems (Cygwin?) cannot tolerate a totally cleared environment.
25411         Suggestion from Eric Blake.
25412
25413 2010-04-06  Jim Meyering  <meyering@redhat.com>
25414
25415         init.sh: portability fix: use env's POSIX-specified -i option not -u
25416         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25417         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25418
25419 2010-04-05  Bruno Haible  <bruno@clisp.org>
25420
25421         btowc: Work around Cygwin 1.7.2 bug.
25422         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25423         does not map NUL to 0.
25424         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25425
25426 2010-04-05  Bruno Haible  <bruno@clisp.org>
25427
25428         Make the multithread modules work on Cygwin 1.7.2.
25429         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25430         imported symbols can be declared weak, so that it returns "no" on
25431         Cygwin 1.7.2.
25432
25433 2010-04-05  Bruno Haible  <bruno@clisp.org>
25434
25435         Use the module 'strncat'.
25436         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25437
25438         Tests for module 'strncat'.
25439         * modules/strncat-tests: New file.
25440         * tests/test-strncat.c: New file.
25441
25442         New module 'strncat'.
25443         * lib/string.in.h (strncat): New declaration.
25444         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25445         * m4/strncat.m4: New file, based on m4/memchr.m4.
25446         * modules/strncat: New file.
25447         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25448         is declared.
25449         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25450         REPLACE_STRNCAT.
25451         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25452         REPLACE_STRNCAT.
25453         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25454         module.
25455         * tests/test-string-c++.cc: Check signature of strncat.
25456
25457 2010-04-05  Jim Meyering  <meyering@redhat.com>
25458
25459         xstrtoumax-tests: convert to use init.sh
25460         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25461         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25462         Use Exit, not exit.
25463         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25464
25465         xstrtoimax-tests: convert to use init.sh
25466         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25467         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25468         Use Exit, not exit.
25469         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25470
25471 2010-04-05  Bruno Haible  <bruno@clisp.org>
25472
25473         sys_socket: Avoid #define replacements in C++ mode.
25474         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25475         warning to the function if possible, rather than #defining the symbol
25476         to a dysfunctional alias.
25477
25478 2010-04-05  Bruno Haible  <bruno@clisp.org>
25479
25480         fseeko: Fix C++ test error on mingw.
25481         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25482         gl_FUNC_FSEEKO.
25483         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25484         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25485         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25486         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25487
25488 2010-04-05  Bruno Haible  <bruno@clisp.org>
25489
25490         duplocale: Improve test output.
25491         * tests/test-duplocale.c (main): Print reason for skipped test.
25492
25493 2010-04-05  Bruno Haible  <bruno@clisp.org>
25494
25495         Assume rmdir exists.
25496         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25497         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25498
25499 2010-04-05  Bruno Haible  <bruno@clisp.org>
25500
25501         Fix link error on Solaris 8 with cc.
25502         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25503
25504 2010-04-05  Bruno Haible  <bruno@clisp.org>
25505
25506         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25507         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25508
25509 2010-04-05  Bruno Haible  <bruno@clisp.org>
25510
25511         vasprintf: Update documentation.
25512         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25513
25514 2010-04-05  Bruno Haible  <bruno@clisp.org>
25515
25516         ptsname: Improve test.
25517         * tests/test-ptsname.c (main): Also try the various master names of BSD
25518         systems.
25519
25520 2010-04-05  Bruno Haible  <bruno@clisp.org>
25521
25522         memchr: Avoid a possible C++ test error.
25523         * lib/string.in.h (memchr): Provide declaration if function is missing.
25524         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25525         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25527         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25528
25529 2010-04-05  Bruno Haible  <bruno@clisp.org>
25530
25531         strtok_r: Improve idiom.
25532         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25533         AC_LIBOBJ is used.
25534
25535 2010-04-05  Bruno Haible  <bruno@clisp.org>
25536
25537         strdup: Improve idiom.
25538         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25539         AC_LIBOBJ is used.
25540         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25541         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25542         when AC_LIBOBJ is used.
25543
25544 2010-04-05  Bruno Haible  <bruno@clisp.org>
25545
25546         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25547         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25548         don't set REPLACE_MBSINIT to 1.
25549         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25550         don't set REPLACE_MBRTOWC to 1.
25551         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25552         exist, don't set REPLACE_MBSRTOWCS to 1.
25553         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25554         exist, don't set REPLACE_MBSNRTOWCS to 1.
25555         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25556         don't set REPLACE_WCRTOMB to 1.
25557         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25558         exist, don't set REPLACE_WCSRTOMBS to 1.
25559         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25560         exist, don't set REPLACE_WCSNRTOMBS to 1.
25561
25562 2010-04-05  Bruno Haible  <bruno@clisp.org>
25563
25564         ldexpl: Improve idiom.
25565         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25566         make sure to set HAVE_DECL_LDEXPL to 0.
25567
25568 2010-04-05  Jim Meyering  <meyering@redhat.com>
25569
25570         xstrtol-tests: convert to use init.sh
25571         * modules/xstrtol-tests (Files): Add tests/init.sh.
25572         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25573         Use Exit, not exit.
25574         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25575
25576         atexit-tests: convert to use init.sh
25577         * modules/atexit-tests (Files): Add tests/init.sh.
25578         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25579         Use Exit, not exit.
25580         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25581
25582         init.sh: fix typo
25583         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25584
25585         init.sh: make it easier for a test script to write to the tty, ...
25586         when using automake's parallel-tests mode.
25587         * tests/init.sh (stderr_fileno_): Define overridable variable.
25588         (warn_): New function, to use it.
25589         (fail_, skip_, framework_failure_): Use warn_.
25590
25591 2010-04-04  Bruno Haible  <bruno@clisp.org>
25592
25593         btowc: Avoid warning.
25594         * lib/btowc.c: Include <stdlib.h>.
25595         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25596
25597 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25598             Bruno Haible  <bruno@clisp.org>
25599
25600         wchar: Port to NetBSD 1.5.
25601         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25602         * lib/wctype.in.h (WEOF): Likewise.
25603
25604 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25605             Bruno Haible  <bruno@clisp.org>
25606
25607         Port extended stdio to NetBSD 1.5.
25608         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25609         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25610         older.
25611
25612 2010-04-04  Bruno Haible  <bruno@clisp.org>
25613
25614         string: Remove unused substitution.
25615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25616         HAVE_DECL_STRERROR.
25617         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25618
25619 2010-04-04  Bruno Haible  <bruno@clisp.org>
25620
25621         strtod: Avoid a possible C++ test error.
25622         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25623         set REPLACE_STRTOD.
25624
25625 2010-04-04  Bruno Haible  <bruno@clisp.org>
25626
25627         strerror: Update documentation.
25628         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25629
25630 2010-04-04  Bruno Haible  <bruno@clisp.org>
25631
25632         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25633         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25634         _GL_CXXALIAS_SYS_CAST.
25635
25636 2010-04-04  Bruno Haible  <bruno@clisp.org>
25637
25638         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25639         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25640         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25641         REPLACE_FREXPL to 1.
25642         * doc/posix-functions/frexpl.texi: Update documentation.
25643
25644 2010-04-04  Bruno Haible  <bruno@clisp.org>
25645
25646         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25647         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25648
25649 2010-04-04  Bruno Haible  <bruno@clisp.org>
25650
25651         Implement nanosleep for native Windows.
25652         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25653
25654 2010-04-04  Bruno Haible  <bruno@clisp.org>
25655
25656         math: Fix some C++ test errors on Solaris 8.
25657         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25658
25659 2010-04-04  Bruno Haible  <bruno@clisp.org>
25660
25661         math: Fix some C++ test errors on Cygwin.
25662         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25663         truncl): Provide declaration if the system does not have it.
25664         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25665         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25666         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25667         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25668         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25669         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25670         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25671         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25672         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25673         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25674         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25675         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25676         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25677         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25678         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25679         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25681         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25682         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25683         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25684         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25685         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25686
25687 2010-04-04  Bruno Haible  <bruno@clisp.org>
25688
25689         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25690         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25691         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25692         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25693         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25694         * m4/isinf.m4 (gl_ISINF): Likewise.
25695         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25696
25697 2010-04-04  Bruno Haible  <bruno@clisp.org>
25698
25699         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25700         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25701
25702 2010-04-04  Bruno Haible  <bruno@clisp.org>
25703
25704         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25705         * modules/tmpfile (configure.ac): Update.
25706
25707         tmpfile: Fix C++ test error on mingw.
25708         * lib/stdio.in.h (tmpfile): New declaration.
25709         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25710         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25711         * modules/tmpfile (Depends-on): Add stdio.
25712         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25713         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25714         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25715         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25716         REPLACE_TMPFILE.
25717         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25718
25719 2010-04-04  Bruno Haible  <bruno@clisp.org>
25720
25721         ioctl: Fix C++ test error on mingw.
25722         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25723         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25724         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25725
25726 2010-04-03  Bruno Haible  <bruno@clisp.org>
25727
25728         wcwidth: Fix C++ test error on mingw.
25729         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25731         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25732
25733 2010-04-03  Bruno Haible  <bruno@clisp.org>
25734
25735         nanosleep: Fix C++ test error on mingw.
25736         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25737         * lib/time.in.h (nanosleep): Use modern idiom.
25738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25739         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25740         REPLACE_NANOSLEEP to 1.
25741         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25742         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25743
25744 2010-04-03  Bruno Haible  <bruno@clisp.org>
25745
25746         strptime: Fix C++ test error on mingw.
25747         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25748         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25749         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25750         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25751         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25752         not REPLACE_STRPTIME.
25753         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25754         REPLACE_STRPTIME.
25755
25756 2010-04-03  Bruno Haible  <bruno@clisp.org>
25757
25758         timegm: Fix C++ test error on mingw.
25759         * lib/time.in.h (timegm): Use modern idiom.
25760         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25761         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25762         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25763         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25764
25765 2010-04-03  Bruno Haible  <bruno@clisp.org>
25766
25767         timegm: Assume declaration if function exists.
25768         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25769         if it exists. Don't clobber ac_cv_func_timegm.
25770
25771 2010-04-03  Bruno Haible  <bruno@clisp.org>
25772
25773         time_r: Fix C++ test error on mingw.
25774         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25775         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25776         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25777         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25778         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25779
25780 2010-04-03  Bruno Haible  <bruno@clisp.org>
25781
25782         time_r: Minor updates.
25783         * modules/time_r (Description): Mention the provided functions.
25784         * lib/time_r.c: Don't include <string.h>.
25785         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25786         * doc/posix-functions/localtime_r.texi: Likewise.
25787
25788 2010-04-03  Bruno Haible  <bruno@clisp.org>
25789
25790         time: Fix regression introduced on 2010-03-08.
25791         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25792         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25793
25794 2010-04-03  Jim Meyering  <meyering@redhat.com>
25795
25796         maint.mk: don't silently disable project-specific syntax-check rules
25797         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25798         that they need to convert their project-specific syntax-check rules
25799         to use the new _sc_search_regexp.
25800
25801 2010-04-03  Bruno Haible  <bruno@clisp.org>
25802
25803         fchdir: Fix regression introduced on 2010-03-08.
25804         * lib/unistd.in.h (fchdir): Fix declaration.
25805         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25807         REPLACE_FCHDIR.
25808         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25809         REPLACE_FCHDIR.
25810
25811 2010-04-03  Bruno Haible  <bruno@clisp.org>
25812
25813         getpagesize: Fix C++ test error on mingw.
25814         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25815         system does not declare the function.
25816         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25817         declared.
25818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25819         HAVE_DECL_GETPAGESIZE.
25820         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25821
25822 2010-04-03  Bruno Haible  <bruno@clisp.org>
25823
25824         stdio: Make C++ tests work on mingw.
25825         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25826         does not declare the function.
25827
25828 2010-04-03  Bruno Haible  <bruno@clisp.org>
25829
25830         ftello: Fix C++ test error on mingw.
25831         * lib/stdio.in.h (ftello): Use modern idiom.
25832         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25833         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25834         is missing and that it needs to be replaced.
25835         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25837         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25838
25839 2010-04-03  Bruno Haible  <bruno@clisp.org>
25840
25841         fseeko: Fix C++ test error on mingw.
25842         * lib/stdio.in.h (fseeko): Use modern idiom.
25843         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25844         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25845         is missing and that it needs to be replaced.
25846         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25848         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25849
25850 2010-04-03  Bruno Haible  <bruno@clisp.org>
25851
25852         mkstemp: Fix C++ test error on mingw.
25853         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25854         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25855         function is missing and that it needs to be replaced.
25856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25857         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25858
25859 2010-04-03  Bruno Haible  <bruno@clisp.org>
25860
25861         stpncpy: Fix C++ test error on mingw.
25862         * lib/string.in.h (stpncpy): Use modern idiom.
25863         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25864         function is missing and that it needs to be replaced.
25865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25866         REPLACE_STPNCPY.
25867         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25868
25869 2010-04-03  Bruno Haible  <bruno@clisp.org>
25870
25871         sys_stat: Fix C++ test error on mingw.
25872         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25873         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25874
25875 2010-04-03  Bruno Haible  <bruno@clisp.org>
25876
25877         pty: Update doc.
25878         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25879
25880 2010-04-03  Bruno Haible  <bruno@clisp.org>
25881
25882         unistd: Fix C++ test error on mingw.
25883         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25884
25885 2010-04-03  Bruno Haible  <bruno@clisp.org>
25886
25887         Update doc regarding mingw.
25888         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25889         * doc/glibc-functions/login_tty.texi: Likewise.
25890         * doc/glibc-functions/forkpty.texi: Likewise.
25891
25892 2010-04-03  Bruno Haible  <bruno@clisp.org>
25893
25894         stdlib: Avoid compilation failure of c-strtold on mingw.
25895         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25896
25897 2010-04-03  Bruno Haible  <bruno@clisp.org>
25898
25899         locale: Make C++ tests work on Cygwin and mingw.
25900         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25901         cannot provide the function.
25902         Reported by Simon Josefsson.
25903
25904 2010-04-03  Bruno Haible  <bruno@clisp.org>
25905
25906         localename: Port to MacOS X 10.6.
25907         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25908         memory layout of the locales in MacOS X 10.6 as well.
25909         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25910
25911 2010-04-02  Bruno Haible  <bruno@clisp.org>
25912
25913         gnulib-tool: Ensure that long-running tests are executed last.
25914         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25915         running tests after the one for the other tests.
25916
25917 2010-04-02  Bruno Haible  <bruno@clisp.org>
25918
25919         gnulib-tool: Ensure the tests in the main directory are executed first.
25920         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25921         start with the current directory.
25922
25923 2010-04-02  Bruno Haible  <bruno@clisp.org>
25924
25925         Tests for module 'havelib', moved here from GNU gettext.
25926         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25927         modifications.
25928         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25929         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25930         with modifications.
25931         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25932         modifications.
25933         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25934         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25935         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25936         with modifications.
25937         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25938         with modifications.
25939         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25940         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25941         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25942         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25943         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25944         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25945         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25946         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25947         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25948         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25949         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25950         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25951         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25952         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25953         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25954         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25955         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25956         with modifications.
25957         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25958         with modifications.
25959         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25960         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25961         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25962         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25963         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25964         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25965         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25966         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25967         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25968         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25969         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25970         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25971         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25972         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25973         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25974         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25975         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25976         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25977         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25978         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25979         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25980         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25981         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25982         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25983         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25984         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25985         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25986         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25987         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25988         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25989         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25990         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25991         * tests/havelib/rpathx/rpathx.c: New file, from
25992         gettext/autoconf-lib-link.
25993         * tests/havelib/rpathx/Makefile.am: New file, from
25994         gettext/autoconf-lib-link.
25995         * tests/havelib/rpathx/configure.ac: New file, from
25996         gettext/autoconf-lib-link with modifications.
25997         * tests/havelib/rpathy/rpathy.c: New file, from
25998         gettext/autoconf-lib-link.
25999         * tests/havelib/rpathy/Makefile.am: New file, from
26000         gettext/autoconf-lib-link.
26001         * tests/havelib/rpathy/configure.ac: New file, from
26002         gettext/autoconf-lib-link with modifications.
26003         * tests/havelib/rpathz/rpathz.c: New file, from
26004         gettext/autoconf-lib-link.
26005         * tests/havelib/rpathz/Makefile.am: New file, from
26006         gettext/autoconf-lib-link.
26007         * tests/havelib/rpathz/configure.ac: New file, from
26008         gettext/autoconf-lib-link with modifications.
26009         * tests/havelib/rpathlx/usex.c: New file, from
26010         gettext/autoconf-lib-link.
26011         * tests/havelib/rpathlx/Makefile.am: New file, from
26012         gettext/autoconf-lib-link.
26013         * tests/havelib/rpathlx/configure.ac: New file, from
26014         gettext/autoconf-lib-link with modifications.
26015         * tests/havelib/rpathly/usey.c: New file, from
26016         gettext/autoconf-lib-link.
26017         * tests/havelib/rpathly/Makefile.am: New file, from
26018         gettext/autoconf-lib-link.
26019         * tests/havelib/rpathly/configure.ac: New file, from
26020         gettext/autoconf-lib-link with modifications.
26021         * tests/havelib/rpathlz/usez.c: New file, from
26022         gettext/autoconf-lib-link.
26023         * tests/havelib/rpathlz/Makefile.am: New file, from
26024         gettext/autoconf-lib-link.
26025         * tests/havelib/rpathlz/configure.ac: New file, from
26026         gettext/autoconf-lib-link with modifications.
26027         * tests/havelib/rpathlyx/usey.c: New file, from
26028         gettext/autoconf-lib-link.
26029         * tests/havelib/rpathlyx/Makefile.am: New file, from
26030         gettext/autoconf-lib-link.
26031         * tests/havelib/rpathlyx/configure.ac: New file, from
26032         gettext/autoconf-lib-link with modifications.
26033         * tests/havelib/rpathlzyx/usez.c: New file, from
26034         gettext/autoconf-lib-link.
26035         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26036         gettext/autoconf-lib-link.
26037         * tests/havelib/rpathlzyx/configure.ac: New file, from
26038         gettext/autoconf-lib-link with modifications.
26039         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26040         with modifications.
26041
26042 2010-04-02  Bruno Haible  <bruno@clisp.org>
26043
26044         gnulib-tool: Create distributed built sources also for the tests.
26045         * gnulib-tool (func_create_testdir): Also generate distributed built
26046         sources in the tests directory.
26047
26048 2010-04-02  Bruno Haible  <bruno@clisp.org>
26049
26050         gnulib-tool: Obey user's environment variables.
26051         * gnulib-tool (func_create_testdir): When creating built sources,
26052         respect the environment variables for autoconf, automake, etc. given by
26053         the user.
26054
26055 2010-04-02  Bruno Haible  <bruno@clisp.org>
26056
26057         gnulib-tool: Provide the value of --m4-base to modules.
26058         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26059         of gl_m4_base.
26060
26061 2010-04-02  Eric Blake  <eblake@redhat.com>
26062
26063         maint.mk: fix some fallout
26064         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26065         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26066
26067 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26068
26069         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26070         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26071         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26072         (sc_cast_of_x_alloc_return_value): Likewise.
26073         (sc_cast_of_alloca_return_value): Likewise.
26074         (sc_space_tab): Likewise.
26075         (sc_prohibit_atoi_atof): Likewise.
26076         (sc_prohibit_magic_number_exit): Likewise.
26077         (sc_error_exit_success): Likewise.
26078         (sc_file_system): Likewise.
26079         (sc_prohibit_have_config_h): Likewise.
26080         (sc_require_config_h): Likewise.
26081         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26082         (sc_obsolete_symbols): Likewise.
26083         (sc_changelog): Likewise.
26084         (sc_program_name): Likewise.
26085         (sc_the_the): Likewise.
26086         (sc_trailing_blank): Likewise.
26087         (sc_two_space_separator_in_usage): Likewise.
26088         (sc_useless_cpp_parens): Likewise.
26089         (sc_GPL_version): Likewise.
26090         (sc_GFDL_version): Likewise.
26091         (sc_texinfo_acronym): Likewise.
26092         (sc_prohibit_cvs_keyword): Likewise.
26093         (sc_prohibit_stat_st_blocks): Likewise.
26094         (sc_prohibit_S_IS_definition): Likewise.
26095         (sc_redundant_const): Likewise.
26096         (sc_makefile_TAB_only_indentation): Likewise.
26097         (sc_m4_quote_check): Likewise.
26098         (sc_makefile_path_separator_check): Likewise.
26099         (sc_copyright_check): Likewise.
26100         (sc_Wundef_boolean): Likewise.
26101         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26102
26103         maint.mk: match 0 or more whitespace-before-function-call '('
26104         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26105         that have zero or two-and-more spaces between the function name
26106         and the open parenthesis.
26107         (sc_error_message_warn_fatal): Likewise.
26108         (sc_error_message_uppercase): Likewise.
26109         (sc_error_message_period): Likewise.
26110
26111 2010-03-31  Eric Blake  <eblake@redhat.com>
26112
26113         maint.mk: check for [ as well as test
26114         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26115         Based on a libvirt report by Matthias Bolte.
26116
26117         gnumakefile: don't squelch _version output
26118         * top/GNUmakefile (_version): Create one-shot dependency rather
26119         than using $(shell) when version must be regenerated.
26120         (_autoreconf): Run verbosely, by default.
26121
26122         sys_time: avoid compiler warnings
26123         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26124         unconditional, fixing regression from 2010-03-29.
26125         Reported by Simon Josefsson.
26126
26127 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26128
26129         maint.mk: s/_header_without_use/_sc_header_without_use/
26130         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26131         (sc_prohibit_assert_without_use): Use the new name.
26132         (sc_prohibit_close_stream_without_use): Likewise.
26133         (sc_prohibit_getopt_without_use): Likewise.
26134         (sc_prohibit_quotearg_without_use): Likewise.
26135         (sc_prohibit_quote_without_use): Likewise.
26136         (sc_prohibit_long_options_without_use): Likewise.
26137         (sc_prohibit_inttostr_without_use): Likewise.
26138         (sc_prohibit_ignore_value_without_use): Likewise.
26139         (sc_prohibit_error_without_use): Likewise.
26140         (sc_prohibit_xalloc_without_use): Likewise.
26141         (sc_prohibit_hash_without_use): Likewise.
26142         (sc_prohibit_hash_pjw_without_use): Likewise.
26143         (sc_prohibit_safe_read_without_use): Likewise.
26144         (sc_prohibit_argmatch_without_use): Likewise.
26145         (sc_prohibit_canonicalize_without_use): Likewise.
26146         (sc_prohibit_root_dev_ino_without_use): Likewise.
26147         (sc_prohibit_openat_without_use): Likewise.
26148         (sc_prohibit_c_ctype_without_use): Likewise.
26149         (sc_prohibit_signal_without_use): Likewise.
26150         (sc_prohibit_intprops_without_use): Likewise.
26151
26152 2010-03-30  Eric Blake  <eblake@redhat.com>
26153
26154         maint: improve module indicators
26155         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26156         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26157         columns, and avoid extra macro expansion.
26158
26159         fdopendir: work around FreeBSD bug
26160         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26161         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26162         * modules/dirent (Makefile.am): Substitute it.
26163         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26164         declaration.
26165         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26166         fix.
26167         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26168
26169 2010-03-29  Bruno Haible  <bruno@clisp.org>
26170
26171         Emit #pragma system_header after the inclusion guard, not before.
26172         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26173         guard that spans the entire file, not before. This enables an
26174         optimization in GCC's preprocessor.
26175         * lib/ctype.in.h: Likewise.
26176         * lib/dirent.in.h: Likewise.
26177         * lib/errno.in.h: Likewise.
26178         * lib/float.in.h: Likewise.
26179         * lib/getopt.in.h: Likewise.
26180         * lib/iconv.in.h: Likewise.
26181         * lib/langinfo.in.h: Likewise.
26182         * lib/locale.in.h: Likewise.
26183         * lib/math.in.h: Likewise.
26184         * lib/netdb.in.h: Likewise.
26185         * lib/netinet_in.in.h: Likewise.
26186         * lib/pty.in.h: Likewise.
26187         * lib/sched.in.h: Likewise.
26188         * lib/se-selinux.in.h: Likewise.
26189         * lib/search.in.h: Likewise.
26190         * lib/spawn.in.h: Likewise.
26191         * lib/stdarg.in.h: Likewise.
26192         * lib/stdint.in.h: Likewise.
26193         * lib/string.in.h: Likewise.
26194         * lib/strings.in.h: Likewise.
26195         * lib/sys_file.in.h: Likewise.
26196         * lib/sys_ioctl.in.h: Likewise.
26197         * lib/sys_time.in.h: Likewise.
26198         * lib/sys_times.in.h: Likewise.
26199         * lib/sys_utsname.in.h: Likewise.
26200         * lib/sys_wait.in.h: Likewise.
26201         * lib/sysexits.in.h: Likewise.
26202         * lib/wctype.in.h: Likewise.
26203
26204 2010-03-28  James Youngman  <jay@gnu.org>
26205
26206         save-cwd: don't leak a file descriptor when the caller execs.
26207         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26208         saved file descriptor.
26209         * modules/save-cwd (Depends-on): Depend on cloexec.
26210
26211 2010-03-29  Bruno Haible  <bruno@clisp.org>
26212
26213         Remove vestiges of fts-lgpl module.
26214         * lib/fts_.h: Assume GNULIB_FTS is 1.
26215         * lib/fts.c: Likewise.
26216         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26217
26218 2010-03-28  Bruno Haible  <bruno@clisp.org>
26219
26220         Fix definition of tests witness macro.
26221         * gnulib-tool (func_import): Fix definition of witness macro.
26222
26223 2010-03-28  Bruno Haible  <bruno@clisp.org>
26224
26225         Fix ioctl's protoype on glibc systems.
26226         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26227         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26228         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26229         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26230         signature. If not, arrange to replace the ioctl function.
26231         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26232         REPLACE_IOCTL.
26233         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26234         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26235         Reported by Ludovic Courtès <ludo@gnu.org>.
26236
26237 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26238
26239         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26240         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26241         made it so grep -r --include=GLOB* ... did not work.
26242
26243 2010-03-26  Jim Meyering  <meyering@redhat.com>
26244             Eric Blake  <eblake@redhat.com>
26245
26246         maint.mk: prohibit use of test's -o and -a operators
26247         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26248
26249 2010-03-28  Bruno Haible  <bruno@clisp.org>
26250
26251         Remove unused GNULIB_XYZ macro definitions.
26252         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26253         invocation.
26254
26255 2010-03-28  Bruno Haible  <bruno@clisp.org>
26256
26257         Mark privileged tests modules.
26258         * modules/idpriv-drop-tests (Status): New section.
26259         * modules/idpriv-droptemp-tests (Status): New section.
26260
26261 2010-03-28  Bruno Haible  <bruno@clisp.org>
26262
26263         Split C++ tests into separate tests modules.
26264         * modules/dirent-c++-tests: New file, extracted from
26265         modules/dirent-tests.
26266         * modules/dirent-tests: Depend on it.
26267         * modules/fcntl-h-c++-tests: New file, extracted from
26268         modules/fcntl-h-tests.
26269         * modules/fcntl-h-tests: Depend on it.
26270         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26271         * modules/glob-tests: Depend on it.
26272         * modules/iconv-h-c++-tests: New file, extracted from
26273         modules/iconv-h-tests.
26274         * modules/iconv-h-tests: Depend on it.
26275         * modules/langinfo-c++-tests: New file, extracted from
26276         modules/langinfo-tests.
26277         * modules/langinfo-tests: Depend on it.
26278         * modules/locale-c++-tests: New file, extracted from
26279         modules/locale-tests.
26280         * modules/locale-tests: Depend on it.
26281         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26282         * modules/math-tests: Depend on it.
26283         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26284         * modules/pty-tests: Depend on it.
26285         * modules/search-c++-tests: New file, extracted from
26286         modules/search-tests.
26287         * modules/search-tests: Depend on it.
26288         * modules/signal-c++-tests: New file, extracted from
26289         modules/signal-tests.
26290         * modules/signal-tests: Depend on it.
26291         * modules/spawn-c++-tests: New file, extracted from
26292         modules/spawn-tests.
26293         * modules/spawn-tests: Depend on it.
26294         * modules/stdio-c++-tests: New file, extracted from
26295         modules/stdio-tests.
26296         * modules/stdio-tests: Depend on it.
26297         * modules/stdlib-c++-tests: New file, extracted from
26298         modules/stdlib-tests.
26299         * modules/stdlib-tests: Depend on it.
26300         * modules/string-c++-tests: New file, extracted from
26301         modules/string-tests.
26302         * modules/string-tests: Depend on it.
26303         * modules/sys_ioctl-c++-tests: New file, extracted from
26304         modules/sys_ioctl-tests.
26305         * modules/sys_ioctl-tests: Depend on it.
26306         * modules/sys_select-c++-tests: New file, extracted from
26307         modules/sys_select-tests.
26308         * modules/sys_select-tests: Depend on it.
26309         * modules/sys_socket-c++-tests: New file, extracted from
26310         modules/sys_socket-tests.
26311         * modules/sys_socket-tests: Depend on it.
26312         * modules/sys_stat-c++-tests: New file, extracted from
26313         modules/sys_stat-tests.
26314         * modules/sys_stat-tests: Depend on it.
26315         * modules/sys_time-c++-tests: New file, extracted from
26316         modules/sys_time-tests.
26317         * modules/sys_time-tests: Depend on it.
26318         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26319         * modules/time-tests: Depend on it.
26320         * modules/unistd-c++-tests: New file, extracted from
26321         modules/unistd-tests.
26322         * modules/unistd-tests: Depend on it.
26323         * modules/wchar-c++-tests: New file, extracted from
26324         modules/wchar-tests.
26325         * modules/wchar-tests: Depend on it.
26326         * modules/wctype-c++-tests: New file, extracted from
26327         modules/wctype-tests.
26328         * modules/wctype-tests: Depend on it.
26329         Reported by Simon Josefsson.
26330
26331 2010-03-28  Bruno Haible  <bruno@clisp.org>
26332
26333         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26334         * gnulib-tool (func_exists_module): New function, extracted from
26335         func_verify_module.
26336         (func_verify_module): Use it.
26337         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26338         'foo' only if 'foo' exists.
26339         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26340         module.
26341
26342 2010-03-28  Bruno Haible  <bruno@clisp.org>
26343
26344         gnulib-tool: Add support for special categories of tests.
26345         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26346         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26347         (func_usage): Document them.
26348         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26349         inc_unportable_tests, inc_all_tests): New variables.
26350         (func_acceptable): Consider these variables.
26351         (func_modules_transitive_closure): Make it work when the 'Status' field
26352         consists of multiple words.
26353         (func_import): Store and restore the values of inc_cxx_tests,
26354         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26355         inc_all_tests in gnulib-comp.m4.
26356         (func_create_testdir): Set inc_all_tests to true.
26357         * doc/gnulib.texi (Extra tests modules): New section.
26358         Suggested by Jim Meyering.
26359
26360 2010-03-28  Bruno Haible  <bruno@clisp.org>
26361
26362         ansi-c++-opt: Allow turning off the C++ build by default.
26363         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26364         gl_CXX_CHOICE_DEFAULT_NO is defined.
26365         Requested by Eric Blake.
26366
26367 2010-03-28  Bruno Haible  <bruno@clisp.org>
26368
26369         unistd: Avoid #define replacements in C++ mode.
26370         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26371         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26372         setsockopt, shutdown, select): In C++, attach a warning to the function
26373         if possible, rather than #defining the symbol to a dysfunctional alias.
26374         Reported by John W. Eaton <jwe@gnu.org>.
26375
26376 2010-03-28  Bruno Haible  <bruno@clisp.org>
26377
26378         Fix link errors on mingw.
26379         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26380         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26381         $(LIBSOCKET).
26382         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26383         $(LIBSOCKET).
26384
26385 2010-03-28  Bruno Haible  <bruno@clisp.org>
26386             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26387
26388         lib-ignore: Determine different options for different compilers.
26389         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26390         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26391         Add comments.
26392         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26393         * NEWS: Mention the change.
26394
26395 2010-03-27  Bruno Haible  <bruno@clisp.org>
26396
26397         Remove unused GNULIB_XYZ macro definitions.
26398         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26399         * modules/fseek (configure.ac): Likewise.
26400         * modules/ioctl (configure.ac): Likewise.
26401         * modules/open (configure.ac): Likewise.
26402         * modules/stdlib-safer (configure.ac): Likewise.
26403
26404 2010-03-27  Bruno Haible  <bruno@clisp.org>
26405
26406         Add a remark about certain modules.
26407         * modules/malloc (Comment): New section.
26408         * modules/realloc (Comment): Likewise.
26409         * modules/sigpipe (Comment): Likewise.
26410
26411 2010-03-27  Bruno Haible  <bruno@clisp.org>
26412
26413         Resolve conflict between the two kinds of module indicators.
26414         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26415         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26416         * modules/canonicalize (configure.ac): Invoke
26417         gl_MODULE_INDICATOR_FOR_TESTS.
26418         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26419         GNULIB_XYZ.
26420         * tests/test-dirent-c++.cc: Likewise.
26421         * tests/test-dirent-safer.c: Likewise.
26422         * tests/test-dup2.c: Likewise.
26423         * tests/test-fchdir.c: Likewise.
26424         * tests/test-fcntl-h-c++.cc: Likewise.
26425         * tests/test-getopt.c: Likewise.
26426         * tests/test-getopt.h: Likewise.
26427         * tests/test-langinfo-c++.cc: Likewise.
26428         * tests/test-locale-c++.cc: Likewise.
26429         * tests/test-math-c++.cc: Likewise.
26430         * tests/test-pty-c++.cc: Likewise.
26431         * tests/test-search-c++.cc: Likewise.
26432         * tests/test-signal-c++.cc: Likewise.
26433         * tests/test-spawn-c++.cc: Likewise.
26434         * tests/test-stdio-c++.cc: Likewise.
26435         * tests/test-stdlib-c++.cc: Likewise.
26436         * tests/test-string-c++.cc: Likewise.
26437         * tests/test-sys_ioctl-c++.cc: Likewise.
26438         * tests/test-sys_select-c++.cc: Likewise.
26439         * tests/test-sys_socket-c++.cc: Likewise.
26440         * tests/test-sys_stat-c++.cc: Likewise.
26441         * tests/test-sys_time-c++.cc: Likewise.
26442         * tests/test-time-c++.cc: Likewise.
26443         * tests/test-unistd-c++.cc: Likewise.
26444         * tests/test-wchar-c++.cc: Likewise.
26445         * tests/uninorm/test-u8-nfc.c: Likewise.
26446         * tests/uninorm/test-u8-nfd.c: Likewise.
26447         * tests/uninorm/test-u8-nfkc.c: Likewise.
26448         * tests/uninorm/test-u8-nfkd.c: Likewise.
26449         * tests/uninorm/test-u16-nfc.c: Likewise.
26450         * tests/uninorm/test-u16-nfd.c: Likewise.
26451         * tests/uninorm/test-u16-nfkc.c: Likewise.
26452         * tests/uninorm/test-u16-nfkd.c: Likewise.
26453         * tests/uninorm/test-u32-nfc.c: Likewise.
26454         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26455         * tests/uninorm/test-u32-nfd.c: Likewise.
26456         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26457         * tests/uninorm/test-u32-nfkc.c: Likewise.
26458         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26459         * tests/uninorm/test-u32-nfkd.c: Likewise.
26460         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26461         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26462
26463 2010-03-27  Bruno Haible  <bruno@clisp.org>
26464
26465         Distinguish two kinds of module indicators.
26466         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26467         gl_MODULE_INDICATOR.
26468         (gl_MODULE_INDICATOR): New macro.
26469         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26470         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26471         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26472         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26473         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26474         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26475         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26476         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26477         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26478         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26479         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26480         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26481         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26482         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26483         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26484         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26485         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26486         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26487         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26488         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26489         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26490         * modules/cloexec (configure.ac): Likewise.
26491         * modules/getopt-gnu (configure.ac): Likewise.
26492         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26493         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26494         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26495         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26496
26497 2010-03-27  Bruno Haible  <bruno@clisp.org>
26498
26499         New module description field 'Comment'.
26500         * gnulib-tool: New option --extract-comment.
26501         (func_usage): Document it.
26502         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26503         (func_get_comment): New function.
26504         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26505
26506 2010-03-27  Bruno Haible  <bruno@clisp.org>
26507
26508         Addendum to 2010-02-07 commit.
26509         * gnulib-tool (func_usage): Document --extract-applicability option.
26510
26511 2010-03-27  Bruno Haible  <bruno@clisp.org>
26512
26513         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26514         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26515         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26516         rather than link errors.
26517
26518 2010-03-27  Bruno Haible  <bruno@clisp.org>
26519
26520         Avoid side effects from tests-related modules on the compilation of lib.
26521         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26522         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26523         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26524         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26525         macro.
26526         (func_import): Define a witness macro. Assign it a value that depends
26527         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26528         tests-related modules.
26529         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26530         Reported by Jim Meyering.
26531
26532 2010-03-27  Bruno Haible  <bruno@clisp.org>
26533
26534         Factorize common .m4 code.
26535         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26536         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26537         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26538         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26539         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26540         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26541         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26542         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26543         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26544         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26545         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26546         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26547         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26548         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26549         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26550         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26551         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26552         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26553         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26554         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26555         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26556         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26557         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26558         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26559         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26560         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26561         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26562         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26563         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26564         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26565         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26566         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26567
26568 2010-03-27  Bruno Haible  <bruno@clisp.org>
26569
26570         Fix a compilation error on Cygwin with g++ >= 4.3.
26571         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26572         if it is undefined or if we alias it to chmod.
26573         (lstat): Don't warn about the use of this function if it is undefined
26574         or if we alias it to stat.
26575         Reported by Simon Josefsson.
26576
26577 2010-03-27  Bruno Haible  <bruno@clisp.org>
26578
26579         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26580         * modules/getlogin (configure.ac): Update.
26581
26582         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26583         * modules/getlogin_r (configure.ac): Update.
26584
26585         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26586         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26587         * modules/inet_ntop (configure.ac): Update.
26588
26589         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26590         * modules/inet_pton (configure.ac): Update.
26591
26592         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26593         * modules/mbslen (configure.ac): Update.
26594
26595         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26596         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26597         * modules/forkpty (configure.ac): Update.
26598         * modules/openpty (configure.ac): Update.
26599
26600 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26601
26602         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26603         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26604
26605 2010-03-25  Eric Blake  <eblake@redhat.com>
26606
26607         maint: use pragma consistently across replacement headers
26608         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26609         * lib/dirent.in.h (system_header): Likewise.
26610         * lib/errno.in.h (system_header): Likewise.
26611         * lib/float.in.h (system_header): Likewise.
26612         * lib/getopt.in.h (system_header): Likewise.
26613         * lib/iconv.in.h (system_header): Likewise.
26614         * lib/inttypes.in.h (system_header): Likewise.
26615         * lib/langinfo.in.h (system_header): Likewise.
26616         * lib/locale.in.h (system_header): Likewise.
26617         * lib/math.in.h (system_header): Likewise.
26618         * lib/netdb.in.h (system_header): Likewise.
26619         * lib/netinet_in.in.h (system_header): Likewise.
26620         * lib/pty.in.h (system_header): Likewise.
26621         * lib/sched.in.h (system_header): Likewise.
26622         * lib/se-selinux.in.h (system_header): Likewise.
26623         * lib/search.in.h (system_header): Likewise.
26624         * lib/spawn.in.h (system_header): Likewise.
26625         * lib/stdarg.in.h (system_header): Likewise.
26626         * lib/stdint.in.h (system_header): Likewise.
26627         * lib/string.in.h (system_header): Likewise.
26628         * lib/strings.in.h (system_header): Likewise.
26629         * lib/sys_file.in.h (system_header): Likewise.
26630         * lib/sys_ioctl.in.h (system_header): Likewise.
26631         * lib/sys_socket.in.h (system_header): Likewise.
26632         * lib/sys_times.in.h (system_header): Likewise.
26633         * lib/sys_utsname.in.h (system_header): Likewise.
26634         * lib/sys_wait.in.h (system_header): Likewise.
26635         * lib/sysexits.in.h (system_header): Likewise.
26636         * lib/unistd.in.h (system_header): Likewise.
26637         * lib/wctype.in.h (system_header): Likewise.
26638
26639         arpa/inet: fix mingw compilation warning
26640         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26641         Reported by Matthew Bolte.
26642
26643 2010-03-25  Bruno Haible  <bruno@clisp.org>
26644
26645         Avoid collision between gnulib wrapper and libintl wrapper.
26646         * lib/printf.c (printf): Don't define if a printf wrapper is already
26647         defined in intl/printf.c.
26648         Reported by Michel Boaventura <michel@michelboaventura.com>.
26649
26650 2010-03-25  Bruno Haible  <bruno@clisp.org>
26651
26652         Use ANSI C.
26653         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26654
26655 2010-03-25  Bruno Haible  <bruno@clisp.org>
26656
26657         Minor formatting changes.
26658         * lib/acosl.c: Insert space before function argument list.
26659         * lib/argz.c: Likewise.
26660         * lib/asinl.c: Likewise.
26661         * lib/expl.c: Likewise.
26662         * lib/gen-uni-tables.c: Likewise.
26663         * lib/gettext.h: Likewise.
26664         * lib/glthread/lock.h: Likewise.
26665         * lib/tanl.c: Likewise.
26666         * lib/uniname/uniname.c: Likewise.
26667         * tests/test-idpriv-drop.c: Likewise.
26668         * tests/test-idpriv-droptemp.c: Likewise.
26669         * tests/test-lock.c: Likewise.
26670         * tests/test-tls.c: Likewise.
26671         * lib/argp-help.c: Insert space before function-like macro argument
26672         list.
26673         * lib/memcmp.c: Likewise.
26674         * tests/test-base64.c: Likewise.
26675         * lib/localename.c: Insert space before sizeof's argument list.
26676         * lib/safe-alloc.h: Likewise.
26677         * lib/file-set.h: Insert space before macro argument list.
26678         * tests/test-argp.c: Likewise.
26679         * lib/argp-namefrob.h: Insert space before function parameter list.
26680         * lib/getaddrinfo.c: Likewise.
26681         * lib/netdb.in.h: Likewise.
26682         * lib/parse-duration.h: Likewise.
26683         * lib/parse-duration.c: Likewise.
26684         * lib/poll.c: Likewise.
26685         * lib/select.c: Likewise.
26686         * lib/trim.h: Likewise.
26687         * tests/test-usleep.c: Likewise.
26688         * lib/ldexpl.c: Insert space before function parameter list and before
26689         function argument list.
26690         * lib/logl.c: Likewise.
26691         * lib/sqrtl.c: Likewise.
26692         * lib/trim.c: Likewise.
26693         * lib/cosl.c: Use GNU style indentation. Insert space before function
26694         argument list.
26695         * lib/sinl.c: Likewise.
26696         * lib/tsearch.c: Insert space after 'for'.
26697         Reported by Jim Meyering.
26698
26699 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26700
26701         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26702         config header before grepping, as it's not present before
26703         autoreconf/configure are run.  Reported by Simon Josefsson.
26704
26705 2010-03-23  Bruno Haible  <bruno@clisp.org>
26706
26707         pt_chown: Make it work with automake < 1.11.
26708         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26709         Reported by Simon Josefsson.
26710
26711 2010-03-23  Bruno Haible  <bruno@clisp.org>
26712
26713         pt_chown: Don't depend on GPLed modules.
26714         * lib/pt_chown.c: Don't include idpriv.h.
26715         (main): Don't drop privileges.
26716         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26717         Reported by Simon Josefsson.
26718
26719 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26720
26721         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26722         suggestions from karl@freefriends.org (Karl Berry).
26723
26724 2010-03-22  Eric Blake  <eblake@redhat.com>
26725
26726         gethostname: further tweaks
26727         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26728         are overriding gethostname.
26729         Suggested by Bruno Haible.
26730
26731 2010-03-21  Bruno Haible  <bruno@clisp.org>
26732
26733         Fix comments.
26734         * lib/forkpty.c (rpl_forkpty): Fix comment.
26735         * lib/openpty.c (rpl_openpty): Likewise.
26736         Reported by Eric Blake.
26737
26738 2010-03-22  Eric Blake  <eblake@redhat.com>
26739
26740         gethostname: fix build on mingw
26741         * lib/unistd.in.h (includes): Work around fact that mingw
26742         <winsock2.h> re-includes <unistd.h>, by avoiding any
26743         redeclarations if we are being included by <winsock2.h>.
26744         Reported by Matthias Bolte.
26745
26746 2010-03-21  Bruno Haible  <bruno@clisp.org>
26747
26748         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26749         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26750         modifications.
26751         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26752         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26753         provide the replacement.
26754         * modules/forkpty (Depends-on): Add openpty, login_tty.
26755         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26756         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26757         * doc/glibc-functions/forkpty.texi: More supported platforms.
26758         * config/srclist.txt: Add forkpty.c (commented).
26759
26760 2010-03-21  Bruno Haible  <bruno@clisp.org>
26761
26762         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26763         (Makefile.am): Verify that PTY_LIB is defined.
26764
26765         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26766
26767 2010-03-21  Bruno Haible  <bruno@clisp.org>
26768
26769         Tests for module 'login_tty'.
26770         * modules/login_tty-tests: New file.
26771         * tests/test-login_tty.c: New file.
26772
26773         New module 'login_tty'.
26774         * lib/login_tty.c: New file.
26775         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26776         * modules/login_tty: New file.
26777         * doc/glibc-functions/login_tty.texi: Mention the new module.
26778
26779 2010-03-21  Bruno Haible  <bruno@clisp.org>
26780
26781         login_tty: Documentation.
26782         * doc/glibc-functions/login_tty.texi: New file.
26783         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26784
26785 2010-03-21  Bruno Haible  <bruno@clisp.org>
26786
26787         pty: Consistent macro naming.
26788         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26789         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26790         * modules/pty (configure.ac): Update.
26791
26792 2010-03-21  Bruno Haible  <bruno@clisp.org>
26793
26794         Tests for openpty: Make stricter.
26795         * tests/test-openpty.c (main): Add test of canonical processing and
26796         erase.
26797         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26798
26799         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26800         * lib/openpty.c (openpty): New replacement function.
26801         * lib/pty.in.h: Include <termios.h>.
26802         (openpty): Update declaration. Add comments.
26803         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26804         is not declared, arrange to provide the replacement. Check for _getpty
26805         and posix_openpt.
26806         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26807         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26808         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26809         * modules/pty-tests (test_pty_c___LDADD): New variable.
26810         * doc/glibc-functions/openpty.texi: More supported platforms.
26811
26812 2010-03-21  Bruno Haible  <bruno@clisp.org>
26813
26814         setenv: Tweaks.
26815         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26816         the test program.
26817         * doc/posix-functions/setenv.texi: Update platforms list.
26818
26819 2010-03-21  Bruno Haible  <bruno@clisp.org>
26820
26821         New module 'unlockpt'.
26822         * lib/unlockpt.c: New file, from glibc with modifications.
26823         * m4/unlockpt.m4: New file.
26824         * modules/unlockpt: New file.
26825         * lib/stdlib.in.h (unlockpt): New declaration.
26826         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26827         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26828         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26829         HAVE_UNLOCKPT.
26830         * doc/posix-functions/unlockpt.texi: Mention the new module.
26831         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26832         * config/srclist.txt: Add unlockpt.c (commented).
26833
26834 2010-03-21  Jim Meyering  <meyering@redhat.com>
26835
26836         maint.mk: prohibit inclusion of "intprops.h" without use
26837         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26838
26839 2010-03-21  Bruno Haible  <bruno@clisp.org>
26840
26841         New module 'grantpt'.
26842         * lib/grantpt.c: New file, from glibc with modifications.
26843         * m4/grantpt.m4: New file.
26844         * modules/grantpt: New file.
26845         * lib/stdlib.in.h (grantpt): New declaration.
26846         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26847         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26848         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26849         HAVE_GRANTPT.
26850         * doc/posix-functions/grantpt.texi: Mention the new module.
26851         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26852         * config/srclist.txt: Add grantpt.c (commented).
26853
26854 2010-03-21  Bruno Haible  <bruno@clisp.org>
26855
26856         New module 'pt_chown'.
26857         * lib/pt_chown.c: New file, from glibc with modifications.
26858         * lib/pty-private.h: New file, from glibc with modifications.
26859         * modules/pt_chown: New file.
26860         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26861
26862 2010-03-21  Bruno Haible  <bruno@clisp.org>
26863
26864         Tests for module 'ptsname'.
26865         * modules/ptsname-tests: New file.
26866         * tests/test-ptsname.c: New file.
26867
26868         New module 'ptsname'.
26869         * lib/ptsname.c: New file, from glibc with modifications.
26870         * m4/ptsname.m4: New file.
26871         * modules/ptsname: New file.
26872         * lib/stdlib.in.h (ptsname): New declaration.
26873         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26874         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26875         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26876         HAVE_PTSNAME.
26877         * doc/posix-functions/ptsname.texi: Mention the new module.
26878         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26879         * config/srclist.txt: Add ptsname.c (commented).
26880
26881 2010-03-21  Bruno Haible  <bruno@clisp.org>
26882
26883         Tests for module 'ttyname_r'.
26884         * modules/ttyname_r-tests: New file.
26885         * tests/test-ttyname_r.c: New file.
26886
26887         New module 'ttyname_r'.
26888         * lib/ttyname_r.c: New file.
26889         * m4/ttyname_r.m4: New file.
26890         * modules/ttyname_r: New file.
26891         * lib/unistd.in.h (ttyname_r): New declaration.
26892         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26893         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26894         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26895         HAVE_TTYNAME_R.
26896         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26897         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26898
26899 2010-03-20  Bruno Haible  <bruno@clisp.org>
26900
26901         signal: Undefine macro definitions in C++ mode.
26902         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26903         sigfillset): Undefine macro definitions from the system header in C++
26904         mode.
26905         Reported by John W. Eaton <jwe@gnu.org>.
26906
26907 2010-03-20  Bruno Haible  <bruno@clisp.org>
26908
26909         Ensure no #include statements inside extern "C" { ... }.
26910         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26911         contain #include statements.
26912         * lib/time.in.h: Likewise.
26913
26914 2010-03-20  Bruno Haible  <bruno@clisp.org>
26915
26916         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26917         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26918         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26919         Reported by John W. Eaton <jwe@gnu.org>.
26920
26921 2010-03-20  Bruno Haible  <bruno@clisp.org>
26922
26923         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26924         Reported by Jim Meyering.
26925
26926 2010-03-20  Bruno Haible  <bruno@clisp.org>
26927
26928         pipe: Set errno upon failure.
26929         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26930         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26931         errno value in error message.
26932
26933 2010-03-20  Bruno Haible  <bruno@clisp.org>
26934             Jim Meyering  <meyering@redhat.com>
26935
26936         lchown: Avoid "unused variable" warning.
26937         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26938
26939 2010-03-20  Bruno Haible  <bruno@clisp.org>
26940
26941         Work around unlink() bug on MacOS X 10.5.6.
26942         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26943         attempting to unlink a parent directory.
26944         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26945         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26946         activate for the replacement function.
26947         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26948
26949 2010-03-20  Bruno Haible  <bruno@clisp.org>
26950
26951         Fix link errors on Solaris 8.
26952         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26953         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26954
26955 2010-03-19  Jim Meyering  <meyering@redhat.com>
26956
26957         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26958         The _LIBC implementation of build_range_exp correctly honors the
26959         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26960         However, the non-_LIBC implementation would ignore that syntax-bit
26961         flag and return REG_ERANGE unconditionally.
26962         This change makes it honor that flag.
26963         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26964         Make two pointer parameters "const".
26965         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26966         (parse_bracket_exp): Update caller.
26967
26968         regex.m4: correct the reversed range endpoint ([b-a]) test
26969         * m4/regex.m4: When requiring that [b-a] evoke failure,
26970         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26971         test pass once again for x86-based systems.
26972
26973 2010-03-19  Bruno Haible  <bruno@clisp.org>
26974
26975         scandir: Fix link error on Solaris 8.
26976         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26977         macros.
26978
26979 2010-03-19  Bruno Haible  <bruno@clisp.org>
26980
26981         getusershell: Fix documentation.
26982         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26983         module.
26984         * doc/glibc-functions/setusershell.texi: Likewise.
26985
26986         getusershell: Provide declaration, missing on Solaris 9.
26987         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26988         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26989         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26990         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26992         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26993         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26994         HAVE_GETUSERSHELL.
26995         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26996
26997 2010-03-19  Bruno Haible  <bruno@clisp.org>
26998
26999         wctype: Provide iswblank function.
27000         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27001         exists and is fine.
27002         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27003         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27004         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27005         * doc/posix-functions/iswblank.texi: Update.
27006
27007 2010-03-19  Bruno Haible  <bruno@clisp.org>
27008
27009         Tests of module 'pty' in C++ mode.
27010         * modules/pty-tests: New file.
27011         * tests/test-pty-c++.cc: New file.
27012         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27013
27014 2010-03-19  Eric Blake  <eblake@redhat.com>
27015
27016         logb: fix documentation
27017         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27018         1.5 declaration bug.
27019
27020         forkpty, openpty: prefer glibc's const-safe prototype
27021         * lib/forkpty.c (rpl_forkpty): New file.
27022         * lib/openpty.c (rpl_openpty): Likewise.
27023         * modules/forkpty (Files): Distribute it.
27024         * modules/openpty (Files): Likewise.
27025         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27026         check...
27027         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27028         replacement for for non-const BSD signature.
27029         * modules/pty (Makefile.am): Substitute witnesses.
27030         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27031         * tests/test-forkpty.c: Update signature check.
27032         * tests/test-openpty.c: Likewise.
27033         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27034         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27035
27036         forkpty, openpty: split functions into new modules
27037         * modules/pty (Makefile.am): Substitute new witnesses.
27038         (Libraries): Move library detection...
27039         * modules/forkpty: ...into new module.
27040         * modules/openpty: Another new module.
27041         * modules/pty-tests: Rename and split...
27042         * modules/forkpty-tests: ...to this...
27043         * modules/openpty-tests: ...and this.
27044         * tests/test-pty.c: Rename and split...
27045         * tests/test-forkpty.c: ...to this...
27046         * tests/test-openpty.c: ...and this.
27047         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27048         (gl_PTY): Split library searching...
27049         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27050         (gl_FORKPTY, gl_OPENPTY): New macros.
27051         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27052         * NEWS: Mention the split.
27053         * MODULES.html.sh (Misc): Document the modules.
27054         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27055         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27056
27057         pty: improve replacement header
27058         * lib/pty.in.h: New file.
27059         * modules/pty (Files): Ship it.
27060         (Makefile.am): Always build replacement.
27061         * m4/pty.m4: Rename...
27062         * m4/pty_h.m4: ...to this.
27063         (gl_PTY): Modernize setting of witness macros; update check of
27064         forkpty to take proper advantage of cache.
27065         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27066
27067         getopt: avoid compiler warning
27068         * lib/getopt.c (attribute_hidden): Remove unused macro.
27069
27070 2010-03-18  Bruno Haible  <bruno@clisp.org>
27071
27072         Fix link errors on Solaris 8.
27073         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27074         * modules/search-tests (test_search_c___LDADD): Likewise.
27075         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27076         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27077         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27078         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27079         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27080         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27081         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27082
27083 2010-03-18  Bruno Haible  <bruno@clisp.org>
27084
27085         Fix bug introduced on 2010-03-14.
27086         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27087         (gl_SPAWN_H): Require it.
27088         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27089         Reported by Simon Josefsson.
27090
27091 2010-03-18  Bruno Haible  <bruno@clisp.org>
27092
27093         Fix typo introduced on 2009-12-31.
27094         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27095         posix_spawn_file_actions_adddup2.
27096
27097 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27098         and Eric Blake  <eblake@redhat.com>
27099
27100         test-vc-list-files-git: make more robust
27101         * tests/test-vc-list-files-git.sh: Unset problematic environment
27102         variables.  Chain commands together.
27103
27104 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27105
27106         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27107         `AC_CHECK_DECL' invocation.
27108
27109 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27110
27111         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27112         appears before executable statements. Suggested by Petr Sumbera
27113         <Petr.Sumbera@Sun.COM>.
27114
27115 2010-03-14  Bruno Haible  <bruno@clisp.org>
27116
27117         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27118         portability problems. Instead use a simpler test.
27119         (main): Check that invalid arguments are rejected only on Linux.
27120
27121 2010-03-14  Bruno Haible  <bruno@clisp.org>
27122
27123         Fix bug introduced on 2009-12-31.
27124         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27125         gl_PREREQ_SYS_H_WINSOCK2 always.
27126         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27127         SYS_SOCKET_H variable.
27128         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27129         Update comments.
27130         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27131         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27132         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27133         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27134         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27135
27136 2010-03-14  Bruno Haible  <bruno@clisp.org>
27137
27138         Fix values returned by sinl, cosl.
27139         * lib/trigl.h: Add specification comments.
27140         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27141         that combines the values from the precomputed table with the values of
27142         the Chebyshev polynomials.
27143
27144 2010-03-14  Bruno Haible  <bruno@clisp.org>
27145
27146         Fix compilation error when modules 'posix_spawn[p]' are not used.
27147         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27148         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27149
27150 2010-03-14  Bruno Haible  <bruno@clisp.org>
27151
27152         Fix compilation error on mingw when module 'time_r' is not used.
27153         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27154         is 1.
27155         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27156         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27157         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27158         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27159
27160 2010-03-14  Bruno Haible  <bruno@clisp.org>
27161
27162         Fix compilation error with Sun C.
27163         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27164         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27165         instead of GCC specific ULONG_LONG_MAX.
27166         * lib/xstrtoll.c: Likewise.
27167         * lib/xstrtoull.c: Likewise.
27168
27169 2010-03-13  Bruno Haible  <bruno@clisp.org>
27170
27171         Allow the user to disable C++ code and tests.
27172         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27173         (gl_PROG_ANSI_CXX): Require it.
27174
27175 2010-03-13  Bruno Haible  <bruno@clisp.org>
27176
27177         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27178         cases.
27179
27180 2010-03-13  Bruno Haible  <bruno@clisp.org>
27181
27182         Test that gnulib does not break the standard C++ headers.
27183         * tests/test-locale-c++2.cc: New file.
27184         * modules/locale-tests (Files): Add it.
27185         (Makefile.am): Compile it for test-locale-c++.
27186         * tests/test-math-c++2.cc: New file.
27187         * modules/math-tests (Files): Add it.
27188         (Makefile.am): Compile it for test-math-c++.
27189         * tests/test-signal-c++2.cc: New file.
27190         * modules/signal-tests (Files): Add it.
27191         (Makefile.am): Compile it for test-signal-c++.
27192         * tests/test-stdio-c++2.cc: New file.
27193         * modules/stdio-tests (Files): Add it.
27194         (Makefile.am): Compile it for test-stdio-c++.
27195         * tests/test-stdlib-c++2.cc: New file.
27196         * modules/stdlib-tests (Files): Add it.
27197         (Makefile.am): Compile it for test-stdlib-c++.
27198         * tests/test-string-c++2.cc: New file.
27199         * modules/string-tests (Files): Add it.
27200         (Makefile.am): Compile it for test-string-c++.
27201         * tests/test-time-c++2.cc: New file.
27202         * modules/time-tests (Files): Add it.
27203         (Makefile.am): Compile it for test-time-c++.
27204         Reported by John W. Eaton <jwe@gnu.org>.
27205
27206 2010-03-13  Bruno Haible  <bruno@clisp.org>
27207
27208         * gnulib-tool (func_usage): Clarify which options are available for
27209         --create-testdir and --create-megatestdir.
27210
27211 2010-03-13  Bruno Haible  <bruno@clisp.org>
27212
27213         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27214         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27215         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27216         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27217         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27218         when appropriate.
27219         Reported by Jim Meyering.
27220
27221 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27222
27223         * gnulib-tool (func_import): Explain origin of code.
27224
27225 2010-03-12  Bruno Haible  <bruno@clisp.org>
27226
27227         Fix problem with automake's definition of CXXLINK.
27228         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27229         Reported by Simon Josefsson and Ludovic Courtès.
27230
27231 2010-03-12  Bruno Haible  <bruno@clisp.org>
27232
27233         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27234         stable releases.
27235
27236 2010-03-11  Bruno Haible  <bruno@clisp.org>
27237
27238         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27239         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27240         whether the system provides one variant or multiple variants of the
27241         function.
27242         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27243         C++ compilers.
27244         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27245         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27246         Reported by Jim Meyering.
27247
27248 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27249
27250         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27251
27252 2010-03-08  Bruno Haible  <bruno@clisp.org>
27253
27254         gnulib-tool: Add support for --libtool in --create-testdir.
27255         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27256         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27257
27258 2010-03-08  Eric Blake  <eblake@redhat.com>
27259
27260         gnulib-tool.texi: mention possibility of git submodule
27261         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27262         submodules.
27263         * doc/.gitignore: Ignore another generated file.
27264
27265 2010-03-08  Karl Berry  <karl@gnu.org>
27266
27267         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27268         of committing gnulib files while skipping others.
27269
27270 2010-03-07  Bruno Haible  <bruno@clisp.org>
27271
27272         Tests of module 'wctype' in C++ mode.
27273         * tests/test-wctype-c++.cc: New file.
27274         * modules/wctype-tests (Files): Add it and tests/signature.h.
27275         (Depends-on): Add ansi-c++-opt.
27276         (Makefile.am): Arrange to compile and run test-wctype-c++.
27277
27278         Tests of module 'wchar' in C++ mode.
27279         * tests/test-wchar-c++.cc: New file.
27280         * modules/wchar-tests (Files): Add it and tests/signature.h.
27281         (Depends-on): Add ansi-c++-opt.
27282         (Makefile.am): Arrange to compile and run test-wchar-c++.
27283         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27284         gl_MODULE_INDICATOR.
27285
27286         Tests of module 'unistd' in C++ mode.
27287         * tests/test-unistd-c++.cc: New file.
27288         * modules/unistd-tests (Files): Add it and tests/signature.h.
27289         (Depends-on): Add ansi-c++-opt.
27290         (Makefile.am): Arrange to compile and run test-unistd-c++.
27291         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27292         gl_MODULE_INDICATOR.
27293
27294         Tests of module 'time' in C++ mode.
27295         * tests/test-time-c++.cc: New file.
27296         * modules/time-tests (Files): Add it and tests/signature.h.
27297         (Depends-on): Add ansi-c++-opt.
27298         (Makefile.am): Arrange to compile and run test-time-c++.
27299         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27300
27301         Tests of module 'sys_time' in C++ mode.
27302         * tests/test-sys_time-c++.cc: New file.
27303         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27304         (Depends-on): Add ansi-c++-opt.
27305         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27306         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27307         gl_MODULE_INDICATOR.
27308
27309         Tests of module 'sys_stat' in C++ mode.
27310         * tests/test-sys_stat-c++.cc: New file.
27311         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27312         (Depends-on): Add ansi-c++-opt.
27313         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27314         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27315         gl_MODULE_INDICATOR.
27316
27317         Tests of module 'sys_socket' in C++ mode.
27318         * tests/test-sys_socket-c++.cc: New file.
27319         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27320         (Depends-on): Add ansi-c++-opt.
27321         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27322         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27323         gl_MODULE_INDICATOR.
27324
27325         Tests of module 'sys_select' in C++ mode.
27326         * tests/test-sys_select-c++.cc: New file.
27327         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27328         (Depends-on): Add ansi-c++-opt.
27329         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27330         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27331         gl_MODULE_INDICATOR.
27332
27333         Tests of module 'sys_ioctl' in C++ mode.
27334         * tests/test-sys_ioctl-c++.cc: New file.
27335         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27336         (Depends-on): Add ansi-c++-opt.
27337         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27338         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27339         gl_MODULE_INDICATOR.
27340
27341         Tests of module 'string' in C++ mode.
27342         * tests/test-string-c++.cc: New file.
27343         * modules/string-tests (Files): Add it and tests/signature.h.
27344         (Depends-on): Add ansi-c++-opt.
27345         (Makefile.am): Arrange to compile and run test-string-c++.
27346         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27347         gl_MODULE_INDICATOR.
27348
27349         Tests of module 'stdlib' in C++ mode.
27350         * tests/test-stdlib-c++.cc: New file.
27351         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27352         (Depends-on): Add ansi-c++-opt.
27353         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27354         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27355         gl_MODULE_INDICATOR.
27356
27357         Tests of module 'stdio' in C++ mode.
27358         * tests/test-stdio-c++.cc: New file.
27359         * modules/stdio-tests (Files): Add it and tests/signature.h.
27360         (Depends-on): Add ansi-c++-opt.
27361         (Makefile.am): Arrange to compile and run test-stdio-c++.
27362         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27363         gl_MODULE_INDICATOR.
27364
27365         Tests of module 'spawn' in C++ mode.
27366         * tests/test-spawn-c++.cc: New file.
27367         * modules/spawn-tests (Files): Add it and tests/signature.h.
27368         (Depends-on): Add ansi-c++-opt.
27369         (Makefile.am): Arrange to compile and run test-spawn-c++.
27370         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27371         gl_MODULE_INDICATOR.
27372
27373         Tests of module 'signal' in C++ mode.
27374         * tests/test-signal-c++.cc: New file.
27375         * modules/signal-tests (Files): Add it and tests/signature.h.
27376         (Depends-on): Add ansi-c++-opt.
27377         (Makefile.am): Arrange to compile and run test-signal-c++.
27378         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27379         gl_MODULE_INDICATOR.
27380
27381         Tests of module 'search' in C++ mode.
27382         * tests/test-search-c++.cc: New file.
27383         * modules/search-tests (Files): Add it and tests/signature.h.
27384         (Depends-on): Add ansi-c++-opt.
27385         (Makefile.am): Arrange to compile and run test-search-c++.
27386         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27387         gl_MODULE_INDICATOR.
27388
27389         Tests of module 'math' in C++ mode.
27390         * tests/test-math-c++.cc: New file.
27391         * modules/math-tests (Files): Add it and tests/signature.h.
27392         (Depends-on): Add ansi-c++-opt.
27393         (Makefile.am): Arrange to compile and run test-math-c++.
27394         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27395
27396         Tests of module 'locale' in C++ mode.
27397         * tests/test-locale-c++.cc: New file.
27398         * modules/locale-tests (Files): Add it and tests/signature.h.
27399         (Depends-on): Add ansi-c++-opt.
27400         (Makefile.am): Arrange to compile and run test-locale-c++.
27401         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27402         gl_MODULE_INDICATOR.
27403
27404         Tests of module 'langinfo' in C++ mode.
27405         * tests/test-langinfo-c++.cc: New file.
27406         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27407         (Depends-on): Add ansi-c++-opt.
27408         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27409         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27410         gl_MODULE_INDICATOR.
27411
27412         Tests of module 'iconv-h' in C++ mode.
27413         * tests/test-iconv-h-c++.cc: New file.
27414         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27415         (Depends-on): Add ansi-c++-opt.
27416         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27417
27418         Tests of module 'glob' in C++ mode.
27419         * tests/test-glob-c++.cc: New file.
27420         * modules/glob-tests (Files): Add it.
27421         (Depends-on): Add ansi-c++-opt.
27422         (Makefile.am): Arrange to compile and run test-glob-c++.
27423
27424         Tests of module 'fcntl-h' in C++ mode.
27425         * tests/test-fcntl-h-c++.cc: New file.
27426         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27427         (Depends-on): Add ansi-c++-opt.
27428         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27429         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27430         gl_MODULE_INDICATOR.
27431
27432         Tests of module 'dirent' in C++ mode.
27433         * tests/test-dirent-c++.cc: New file.
27434         * modules/dirent-tests (Files): Add it and tests/signature.h.
27435         (Depends-on): Add ansi-c++-opt.
27436         (Makefile.am): Arrange to compile and run test-dirent-c++.
27437         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27438         gl_MODULE_INDICATOR.
27439
27440         New module 'ansi-c++-opt'.
27441         * modules/ansi-c++-opt: New file.
27442         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27443
27444         Document C++ namespace mode.
27445         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27446
27447         wctype: Avoid #define replacements in C++ mode.
27448         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27449         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27450         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27451         In C++, define a namespaced alias symbol.
27452         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27453         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27454         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27455         rule.
27456
27457         wchar: Avoid #define replacements in C++ mode.
27458         * lib/wchar.in.h: Include c++defs.h.
27459         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27460         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27461         symbol.
27462         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27463         * modules/wchar (Depends-on): Add c++defs.
27464         (Makefile.am): Update wchar.h rule.
27465
27466         unistd: Avoid #define replacements in C++ mode.
27467         * lib/unistd.in.h: Include c++defs.h.
27468         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27469         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27470         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27471         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27472         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27473         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27474         symbol.
27475         (environ): Update.
27476         * modules/unistd (Depends-on): Add c++defs.
27477         (Makefile.am): Update unistd.h rule.
27478
27479         time: Avoid #define replacements in C++ mode.
27480         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27481         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27482         define a namespaced alias symbol.
27483         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27484         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27485         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27486         * modules/time (Depends-on): Add c++defs, warn-on-use.
27487         (Makefile.am): Update time.h rule.
27488         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27489         * modules/nanosleep (configure.ac): Likewise.
27490         * modules/strptime (configure.ac): Likewise.
27491         * modules/timegm (configure.ac): Likewise.
27492
27493         sys_time: Avoid #define replacements in C++ mode.
27494         * lib/sys_time.in.h: Include c++defs.h.
27495         (gettimeofday): In C++, define a namespaced alias symbol.
27496         * modules/sys_time (Depends-on): Add c++defs.
27497         (Makefile.am): Update sys/time.h rule.
27498
27499         sys_stat: Avoid #define replacements in C++ mode.
27500         * lib/sys_stat.in.h: Include c++defs.h.
27501         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27502         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27503         namespaced alias symbol.
27504         In C++, define a namespaced alias symbol.
27505         * modules/sys_stat (Depends-on): Add c++defs.
27506         (Makefile.am): Update sys/stat.h rule.
27507
27508         sys_socket: Avoid #define replacements in C++ mode.
27509         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27510         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27511         definitions also when the system has a <sys/socket.h>.
27512         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27513         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27514         In C++, define a namespaced alias symbol.
27515         * modules/sys_socket (Depends-on): Add c++defs.
27516         (Makefile.am): Update sys/socket.h rule.
27517
27518         sys_select: Avoid #define replacements in C++ mode.
27519         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27520         definitions also when the system has a <sys/select.h>.
27521         (select): In C++, define a namespaced alias symbol.
27522         * modules/sys_select (Depends-on): Add c++defs.
27523         (Makefile.am): Update sys/select.h rule.
27524
27525         sys_ioctl: Avoid #define replacements in C++ mode.
27526         * lib/sys_ioctl.in.h: Include c++defs.h.
27527         (ioctl): In C++, define a namespaced alias symbol.
27528         * modules/sys_ioctl (Depends-on): Add c++defs.
27529         (Makefile.am): Update sys/ioctl.h rule.
27530
27531         string: Avoid #define replacements in C++ mode.
27532         * lib/string.in.h: Include c++defs.h.
27533         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27534         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27535         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27536         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27537         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27538         * modules/string (Depends-on): Add c++defs.
27539         (Makefile.am): Update string.h rule.
27540
27541         stdlib: Avoid #define replacements in C++ mode.
27542         * lib/stdlib.in.h: Include c++defs.h.
27543         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27544         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27545         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27546         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27547         symbol.
27548         * modules/stdlib (Depends-on): Add c++defs.
27549         (Makefile.am): Update stdlib.h rule.
27550
27551         stdio: Avoid #define replacements in C++ mode.
27552         * lib/stdio.in.h: Include c++defs.h.
27553         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27554         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27555         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27556         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27557         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27558         namespaced alias symbol.
27559         * modules/stdio (Depends-on): Add c++defs.
27560         (Makefile.am): Update stdio.h rule.
27561
27562         spawn: Avoid #define replacements in C++ mode.
27563         * lib/spawn.in.h: Include c++defs.h.
27564         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27565         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27566         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27567         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27568         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27569         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27570         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27571         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27572         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27573         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27574         In C++, define a namespaced alias symbol.
27575         * modules/spawn (Depends-on): Add c++defs.
27576         (Makefile.am): Update spawn.h rule.
27577
27578         signal: Avoid #define replacements in C++ mode.
27579         * lib/signal.in.h: Include c++defs.h.
27580         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27581         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27582         namespaced alias symbol.
27583         * modules/signal (Depends-on): Add c++defs.
27584         (Makefile.am): Update signal.h rule.
27585
27586         search: Avoid #define replacements in C++ mode.
27587         * lib/search.in.h: Include c++defs.h.
27588         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27589         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27590         symbol.
27591         * modules/search (Depends-on): Add c++defs.
27592         (Makefile.am): Update search.h rule.
27593
27594         math: Avoid #define replacements in C++ mode.
27595         * lib/math.in.h: Include c++defs.h.
27596         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27597         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27598         trunc, truncl): In C++, define a namespaced alias symbol.
27599         * modules/math (Depends-on): Add c++defs.
27600         (Makefile.am): Update math.h rule.
27601
27602         locale: Avoid #define replacements in C++ mode.
27603         * lib/locale.in.h: Include c++defs.h.
27604         (duplocale): In C++, define a namespaced alias symbol.
27605         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27606         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27607         * modules/locale (Depends-on): Add c++defs.
27608         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27609
27610         langinfo: Avoid #define replacements in C++ mode.
27611         * lib/langinfo.in.h: Include c++defs.h.
27612         (nl_langinfo): In C++, define a namespaced alias symbol.
27613         * modules/langinfo (Depends-on): Add c++defs.
27614         (Makefile.am): Update langinfo.h rule.
27615
27616         iconv-h: Avoid #define replacements in C++ mode.
27617         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27618         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27619         symbol.
27620         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27621         whenever iconv is present.
27622         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27623         (Makefile.am): Update iconv.h rule.
27624
27625         glob: Avoid #define replacements in C++ mode.
27626         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27627         (_gl_glob_errfunc_fn): New type.
27628         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27629         symbol.
27630         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27631         (Makefile.am): Update glob.h rule.
27632
27633         fcntl-h: Avoid #define replacements in C++ mode.
27634         * lib/fcntl.in.h: Include c++defs.h.
27635         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27636         * modules/fcntl-h (Depends-on): Add c++defs.
27637         (Makefile.am): Update fcntl.h rule.
27638
27639         dirent: Avoid #define replacements in C++ mode.
27640         * lib/dirent.in.h: Include c++defs.h.
27641         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27642         namespaced alias symbol.
27643         (dirfd): Update declaration.
27644         * modules/dirent (Depends-on): Add c++defs.
27645         (Makefile.am): Update dirent.h rule.
27646
27647         ctype: Make it usable in C++ code.
27648         * lib/ctype.in.h: Include c++defs.h.
27649         (isblank): Declare as extern "C".
27650         * modules/ctype (Depends-on): Add c++defs.
27651         (Makefile.am): Update ctype.h rule.
27652
27653         New module 'c++defs'.
27654         * modules/c++defs: New file.
27655         * build-aux/c++defs.h: New file.
27656         Reported by John W. Eaton <jwe@gnu.org>.
27657
27658 2010-03-07  Bruno Haible  <bruno@clisp.org>
27659
27660         logb: Provide missing declaration for Cygwin.
27661         * lib/math.in.h (logb): New declaration.
27662         * m4/logb.m4: New file.
27663         * modules/logb (Files): Add m4/logb.m4.
27664         (Depends-on): Add math.
27665         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27666         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27668         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27669         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27670
27671 2010-03-07  Bruno Haible  <bruno@clisp.org>
27672
27673         Fix test-cond link error.
27674         * tests/test-cond.c: Include <stdio.h>.
27675
27676 2010-03-07  Bruno Haible  <bruno@clisp.org>
27677
27678         Fix test-dirent-safer link error.
27679         * modules/dirent-safer-tests (Makefile.am): Define
27680         test_dirent_safer_LDADD.
27681
27682 2010-03-07  Bruno Haible  <bruno@clisp.org>
27683
27684         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27685         among default module list.
27686
27687 2010-03-07  Bruno Haible  <bruno@clisp.org>
27688
27689         Fix link error on platforms with GNU libiconv.
27690         * modules/unistr/u8-strcoll-tests (Makefile): Define
27691         test_u8_strcoll_LDADD.
27692         * modules/unistr/u16-strcoll-tests (Makefile): Define
27693         test_u16_strcoll_LDADD.
27694         * modules/unistr/u32-strcoll-tests (Makefile): Define
27695         test_u32_strcoll_LDADD.
27696
27697 2010-03-07  Bruno Haible  <bruno@clisp.org>
27698
27699         Use POSIX declarations for socket functions.
27700         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27701         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27702         rpl_sendto): Change declaration to match POSIX.
27703         * lib/connect.c (rpl_connect): Likewise.
27704         * lib/accept.c (rpl_accept): Likewise.
27705         * lib/bind.c (rpl_bind): Likewise.
27706         * lib/getpeername.c (rpl_getpeername): Likewise.
27707         * lib/getsockname.c (rpl_getsockname): Likewise.
27708         * lib/recv.c (rpl_recv): Likewise.
27709         * lib/send.c (rpl_send): Likewise.
27710         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27711         * lib/sendto.c (rpl_sendto): Likewise.
27712
27713 2010-03-06  Bruno Haible  <bruno@clisp.org>
27714
27715         Clarify access, euidaccess, faccessat.
27716         * doc/posix-functions/faccessat.texi: Mention security problem under
27717         "Other problems", not "Portability problems".
27718         * doc/posix-functions/access.texi: Likewise. Mention a related security
27719         problem.
27720         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27721         * lib/euidaccess.c: Add comments about platforms.
27722         * lib/unistd.in.h (access, euidaccess): Add warnings.
27723
27724 2010-03-07  Bruno Haible  <bruno@clisp.org>
27725
27726         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27727         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27728         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27729         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27730         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27731         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27732         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27733         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27734         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27735         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27736         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27737         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27738         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27739         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27740         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27741         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27742         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27743         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27744         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27745         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27746         Likewise.
27747         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27748         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27749         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27750         Likewise.
27751         * tests/test-spawn.c (main): Make it work when
27752         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27753
27754 2010-03-07  Bruno Haible  <bruno@clisp.org>
27755
27756         Fix incorrect Makefile.am generation in German locale.
27757         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27758         Execute sed command with character range in C locale.
27759
27760 2010-03-06  Bruno Haible  <bruno@clisp.org>
27761
27762         Tests for module 'iconv-h'.
27763         * modules/iconv-h-tests: New file.
27764         * tests/test-iconv-h.c: New file.
27765
27766         New module 'iconv-h'.
27767         * modules/iconv-h: New file.
27768         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27769         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27770         (configure.ac): Remove gl_ICONV_H.
27771         (Makefile.am): Remove rule for iconv.h.
27772
27773 2010-03-06  Bruno Haible  <bruno@clisp.org>
27774
27775         More consistent naming of *.m4 files.
27776         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27777         * modules/wctype (Files): Update.
27778
27779         More consistent naming of *.m4 files.
27780         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27781         * modules/wchar (Files): Update.
27782
27783 2010-03-06  Jim Meyering  <meyering@redhat.com>
27784
27785         euidaccess: relax license to LGPLv2+
27786         * modules/euidaccess (License): Relax to LGPLv2+.
27787
27788 2010-03-06  Bruno Haible  <bruno@clisp.org>
27789
27790         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27791         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27792         (Makefile.am): Augment lib_SOURCES instead.
27793
27794 2010-03-04  Jim Meyering  <meyering@redhat.com>
27795
27796         utime: remove obsolete module
27797         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27798         unnecessary for years, and has been marked as obsolete for 10 months.
27799         * modules/utime: Remove file.
27800         * lib/utime.c: Remove file.
27801         * m4/utime.m4: Remove file.
27802         * m4/utimes-null.m4: Remove file.
27803         * doc/posix-functions/utime.texi (utime): Remove reference to
27804         the module.  Move the sole "fixed by gnulib" item into the
27805         "problems not fixed by Gnulib" list.
27806         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27807
27808 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27809
27810         * modules/exit (License): Relax license to LGPLv2+.
27811         (Status): Mark as obsolete.
27812         * NEWS: Mention deprecated 'exit' module.
27813         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27814         of now obsolete 'exit'.
27815
27816 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27817
27818         fts-lgpl: remove unused module
27819         * modules/fts-lgpl: Remove.
27820         * MODULES.html.sh (func_all_modules): Adjust.
27821         * check-module (find_included_lib_files): Adjust.
27822         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27823
27824 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27825
27826         copy-acl: enhance Solaris ACL error handling
27827         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27828         * lib/set-mode-acl.c (qset_acl): Likewise.
27829
27830 2010-03-02  Bruno Haible  <bruno@clisp.org>
27831
27832         spawn: Don't override the system defined values on FreeBSD 8.
27833         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27834         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27835         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27836         if HAVE_POSIX_SPAWN is 1.
27837         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27838
27839 2010-03-01  Bruno Haible  <bruno@clisp.org>
27840
27841         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27842         regarding Automake.
27843
27844 2010-02-25  Bruno Haible  <bruno@clisp.org>
27845
27846         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27847         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27848         setting, not afterwards.
27849         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27850
27851 2010-02-24  Eric Blake  <eblake@redhat.com>
27852
27853         bootstrap, git-version-gen: use timestamp
27854         * build-aux/git-version-gen (scriptversion): Force UTC.
27855         * build-aux/bootstrap (scriptversion): New variable.
27856
27857         bootstrap: allow older git
27858         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27859         older than 1.6.4.  Requested by the libvirt project.
27860
27861 2010-02-23  Eric Blake  <eblake@redhat.com>
27862
27863         warn-on-use: work with old autoconf
27864         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27865         AS_VAR semantics of autoconf 2.60.
27866         Reported by Bruno Haible.
27867
27868         bootstrap: improve some comments
27869         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27870         clarification comments.
27871
27872         gettimeofday: provide correct function
27873         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27874         when replacement is declared, otherwise provide gettimeofday.
27875         Reported by Michael Goffioul.
27876
27877 2010-02-23  Jim Meyering  <meyering@redhat.com>
27878
27879         lib-ignore: relax license to "unlimited", not LGPLv2+
27880         * modules/lib-ignore (License): Relax to "unlimited".
27881
27882 2010-02-23  Jim Meyering  <meyering@redhat.com>
27883
27884         lib-ignore: relax license to LGPLv2+
27885         * modules/lib-ignore (License): Relax to LGPLv2+.
27886
27887 2010-02-22  Eric Blake  <eblake@redhat.com>
27888
27889         lseek: avoid bash 3.2 broken pipe bug
27890         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27891         warning from bash 3.2.
27892         Reported by Ben Pfaff, with analysis from Bruno Haible.
27893
27894         bootstrap: support non-FSF copyright holder
27895         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27896         bootstrap.conf override of COPYRIGHT_HOLDER.
27897         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27898
27899         bootstrap: interoperate with gettext 0.14.1
27900         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27901
27902         bootstrap: allow for alternate submodule location
27903         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27904         hardcoding submodule location.
27905         (gnulib_mk): Allow direct use of Makefile.am.
27906
27907         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27908         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27909         rather than reconfiguring where the submodule points.
27910
27911         gettimeofday: restore support for platforms that lack function
27912         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27913         replacement if function is missing.
27914         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27915         * modules/sys_time (Makefile.am): Substitute it.
27916         * lib/sys_time.in.h (gettimeofday): Check it.
27917         Reported by Michael Goffioul.
27918
27919 2010-02-21  Bruno Haible  <bruno@clisp.org>
27920
27921         * lib/stdio.in.h (obstack_printf): Fix typo.
27922
27923 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27924
27925         vc-list-files: use bzr ls's -R option
27926         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27927         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27928
27929 2010-02-21  Jim Meyering  <meyering@redhat.com>
27930
27931         init.sh: fix EXEEXT shims to work also for names like test-prog
27932         * tests/init.sh: Re-exec a better shell, when needed.
27933         If the current shell lacks support for posix $(...), an init.sh-using
27934         test will now try to find a shell that supports that.  If EXEEXT is
27935         nonempty, we also require support for hyphen-in-alias-name and shell
27936         substitutions like ${var#glob}.  Failure to find such a shell results
27937         in a skipped test.
27938
27939 2010-02-21  Bruno Haible  <bruno@clisp.org>
27940
27941         Really work around around "broken pipe" error message from bash 3.2.
27942         * gnulib-tool (func_reset_sigpipe): Remove function.
27943         (echo): In bash 3.2, define to a function that uses printf.
27944         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27945
27946 2010-02-20  Bruno Haible  <bruno@clisp.org>
27947
27948         Restore support for automake 1.9.6 with autoconf 2.61.
27949         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27950         Reported by James Youngman <jay@gnu.org>.
27951
27952 2010-02-20  Bruno Haible  <bruno@clisp.org>
27953
27954         Improve *printf warning condition.
27955         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27956         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27957         and the function is overridden due to SIGPIPE emulation.
27958
27959 2010-02-20  Bruno Haible  <bruno@clisp.org>
27960
27961         * lib/stdio.in.h: Tweak comments.
27962
27963 2010-02-19  Bruno Haible  <bruno@clisp.org>
27964
27965         Make it easier to find modules. New gnulib-tool option '--find'.
27966         * gnulib-tool: New option --find.
27967         (func_usage): Document it.
27968         (func_sanitize_modulelist): New function, extracted from
27969         func_all_modules.
27970         (func_all_modules): Invoke it.
27971         * doc/gnulib-tool.texi (Which modules?): New node.
27972
27973 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27974
27975         * lib/sys_select.in.h: Provide select replacement even if
27976         sys/select.h exists on a system, for Interix.
27977
27978 2010-02-18  Jim Meyering  <meyering@redhat.com>
27979
27980         init.sh: don't use $(...) just yet
27981         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27982         to accommodate e.g., Solaris' /bin/sh.
27983
27984 2010-02-17  Bruno Haible  <bruno@clisp.org>
27985
27986         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27987         Reported by Ludovic Courtès <ludo@gnu.org>.
27988
27989 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27990
27991         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27992         linking with -lintl.
27993
27994 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27995
27996         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27997         if not provided by the system's netdb.h.  Reported by
27998         ludo@gnu.org (Ludovic Courtès).
27999
28000 2010-02-15  Jim Meyering  <meyering@redhat.com>
28001
28002         init.sh: improve portability and efficiency
28003         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28004         "dummy" in a for loop.
28005         Use '!', not '^' to select the complement of a character set used
28006         in a "case" statement.
28007         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28008         Suggestions from Eric Blake.
28009
28010         init.sh: automatically accommodate programs with the .exe suffix
28011         Automatically arrange for an invocation of "prog" to execute the
28012         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28013         may use the simpler "prog", yet still work when built on a system
28014         that requires specifying the added suffix.
28015         Do this by constructing a function named "prog" that invokes
28016         "prog.exe" for each .exe file in selected directories.
28017         * tests/init.sh (find_exe_basenames_): New function.
28018         (create_exe_shim_functions_): New function.
28019         (path_prepend_): Use it.
28020
28021         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28022         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28023         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28024
28025 2010-02-14  Jim Meyering  <meyering@redhat.com>
28026
28027         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28028         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28029         (sc_prohibit_hash_pjw_without_use): New rule.
28030
28031         maint.mk: allow the default upload destination dir to be overridden
28032         * top/maint.mk (upload_dest_dir_): Define with a default that
28033         preserves the status quo.
28034         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28035         Reported by Peter Simons.
28036
28037         maint.mk: prohibit inclusion of "hash.h" without_use
28038         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28039
28040 2010-02-10  Jim Meyering  <meyering@redhat.com>
28041
28042         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28043         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28044
28045 2010-02-09  Eric Blake  <ebb9@byu.net>
28046         and Bruno Haible  <bruno@clisp.org>
28047
28048         obstack-printf-posix: ensure declaration
28049         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28050         extracted from gl_FUNC_OBSTACK_PRINTF.
28051         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28052         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28053         Likewise.
28054         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28055         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28056         0.
28057
28058 2010-02-08  Bruno Haible  <bruno@clisp.org>
28059
28060         gnulib-tool: Fix typo in 2010-02-07 commit.
28061         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28062         Reported by Eric Blake.
28063
28064 2010-02-07  Bruno Haible  <bruno@clisp.org>
28065
28066         gnulib-tool: Fix up caching patches.
28067         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28068         option --no-cache. Use associative arrays when supported by the shell.
28069         (sed_comments): New variable.
28070         (modcache): Renamed from do_cache.
28071         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28072         abbreviate unnecessarily.
28073         (have_associative): New variable.
28074         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28075         way also for ksh and zsh.
28076         (func_init_sed_convert_to_cache_statements): New function, extracted
28077         from func_cache_lookup_module. Add support for associative arrays.
28078         Don't set the c_MODULE_cached variable here. Ignore all lines before
28079         the first field header. Remove only the final newline, not all trailing
28080         newlines. Support empty fields correctly. Limit the use of 'eval' to
28081         assignments.
28082         (func_get_description, func_get_status, func_get_notice,
28083         func_get_applicability, func_get_filelist, func_get_dependencies,
28084         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28085         func_get_automake_snippet, func_get_include_directive,
28086         func_get_link_directive, func_get_license, func_get_maintainer):
28087         Update documentation. List the unoptimized code first. Add support for
28088         associative arrays. Limit the use of 'eval' to assignments.
28089         (func_get_applicability): Undo stylistic pessimisations.
28090         (func_get_automake_snippet, func_get_include_directive): Reduce code
28091         duplication.
28092         (func_modules_transitive_closure, func_modules_add_dummy,
28093         func_modules_notice, func_modules_to_filelist, func_add_file,
28094         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28095         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28096         func_create_testdir, func_create_megatestdir): Update documentation.
28097
28098 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28099
28100         * gnulib-tool (func_cache_lookup_module): Store the module name
28101         belonging to the cache variable; error out if two different
28102         module names map to the same cache variable name.
28103
28104 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28105
28106         gnulib-tool: Make caching optional.
28107         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28108         Update matching short versions of --no-changelog.
28109         (func_usage): Update.
28110         (sed_extract_cache_prog): Renamed from ...
28111         (sed_extract_prog): ... this; revert to old extraction script.
28112         (func_get_description, func_get_status)
28113         (func_get_notice, func_get_applicability, func_get_filelist)
28114         (func_get_dependencies, func_get_autoconf_early_snippet)
28115         (func_get_autoconf_snippet, func_get_automake_snippet)
28116         (func_get_include_directive, func_get_link_directive)
28117         (func_get_license, func_get_maintainer): If $do_cache is false,
28118         use old, non-caching extraction scripts.
28119         Suggestion by Bruno Haible.
28120
28121 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28122
28123         gnulib-tool: cache module metainformation.
28124         * gnulib-tool (sed_extract_prog): Match newline before each
28125         header, and rewrite header to a shell variable suffix.
28126         (func_cache_var, func_cache_lookup_module): New functions,
28127         to turn a module name into a cache variable prefix, and to
28128         look up and cache module metainformation.
28129         (func_get_description, func_get_status)
28130         (func_get_notice, func_get_applicability, func_get_filelist)
28131         (func_get_dependencies, func_get_autoconf_early_snippet)
28132         (func_get_autoconf_snippet, func_get_automake_snippet)
28133         (func_get_include_directive, func_get_link_directive)
28134         (func_get_license, func_get_maintainer): Use
28135         func_cache_lookup_module.
28136
28137 2010-02-07  Bruno Haible  <bruno@clisp.org>
28138
28139         fnctl: Fix missing dependency.
28140         * modules/fcntl (Depends-on): Add getdtablesize.
28141         Reported by John W. Eaton <jwe@gnu.org>.
28142
28143 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28144
28145         Argp: fix recognition of short alias options.
28146
28147         * lib/argp-parse.c (convert_options): Fix improper use of
28148         `|' between character values.
28149         * tests/test-argp.c (group1_option): New alias option
28150         --read (-r).
28151         (group1_parser): Special handling for 'r'.
28152         (test15): New test case.
28153         (test_fun): Add test15.
28154         * tests/test-argp-2.sh: Update expected --help and --usage
28155         outputs.
28156
28157 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28158
28159         * tests/test-argp.c: Fix indentation.
28160
28161 2010-02-04  Eric Blake  <ebb9@byu.net>
28162
28163         gettimeofday: expose type of second argument
28164         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28165         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28166         * tests/test-gettimeofday.c: Use it to silence warning.
28167         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28168         the issue.
28169
28170 2010-02-03  Jim Meyering  <meyering@redhat.com>
28171
28172         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28173         * lib/regcomp.c (TYPE_SIGNED): Define.
28174         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28175
28176         regcomp.c: avoid a new -Wshadow warning
28177         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28178
28179 2010-02-01  Jim Meyering  <meyering@redhat.com>
28180
28181         removing useless parentheses in cpp #define directives
28182         For motivation, see commit c0221df4, "define STREQ(a,b)
28183         consistently, removing useless parentheses"
28184         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28185         * lib/mountlist.c (MNT_IGNORE): Likewise.
28186         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28187
28188 2010-02-01  Eric Blake  <ebb9@byu.net>
28189
28190         sys_time: use link-warning
28191         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28192         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28193         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28194         * modules/sys_time (Depends-on): Add warn-on-use.
28195         (Makefile.am): Always build replacement.
28196         (configure.ac): Update substitutions.
28197         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28198         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28199         bother with SYS_TIME_H.
28200         * modules/gettimeofday (configure.ac): Declare indicator.
28201         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28202         in use.
28203
28204         closein-tests: silence compiler warning
28205         * tests/test-closein.c (main): Ignore fread result.
28206         * modules/closein-tests (Depends-on): Add ignore-value.
28207
28208         tests: silence warning about system return
28209         * tests/test-areadlink-with-size.c (main): Ignore system result.
28210         * tests/test-areadlink.c (main): Likewise.
28211         * tests/test-areadlinkat-with-size.c (main): Likewise.
28212         * tests/test-areadlinkat.c (main): Likewise.
28213         * tests/test-canonicalize-lgpl.c (main): Likewise.
28214         * tests/test-canonicalize.c (main): Likewise.
28215         * tests/test-chown.c (main): Likewise.
28216         * tests/test-fchownat.c (main): Likewise.
28217         * tests/test-fdutimensat.c (main): Likewise.
28218         * tests/test-fstatat.c (main): Likewise.
28219         * tests/test-futimens.c (main): Likewise.
28220         * tests/test-lchown.c (main): Likewise.
28221         * tests/test-link.c (main): Likewise.
28222         * tests/test-linkat.c (main): Likewise.
28223         * tests/test-lstat.c (main): Likewise.
28224         * tests/test-mkdir.c (main): Likewise.
28225         * tests/test-mkdirat.c (main): Likewise.
28226         * tests/test-mkfifo.c (main): Likewise.
28227         * tests/test-mkfifoat.c (main): Likewise.
28228         * tests/test-mknod.c (main): Likewise.
28229         * tests/test-readlink.c (main): Likewise.
28230         * tests/test-remove.c (main): Likewise.
28231         * tests/test-rename.c (main): Likewise.
28232         * tests/test-renameat.c (main): Likewise.
28233         * tests/test-rmdir.c (main): Likewise.
28234         * tests/test-symlink.c (main): Likewise.
28235         * tests/test-symlinkat.c (main): Likewise.
28236         * tests/test-unlink.c (main): Likewise.
28237         * tests/test-unlinkat.c (main): Likewise.
28238         * tests/test-utimens.c (main): Likewise.
28239         * tests/test-utimensat.c (main): Likewise.
28240         * modules/areadlink-tests (Depends-on): Add ignore-value.
28241         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28242         * modules/areadlinkat-tests (Depends-on): Likewise.
28243         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28244         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28245         * modules/canonicalize-tests (Depends-on): Likewise.
28246         * modules/chown-tests (Depends-on): Likewise.
28247         * modules/fdutimensat-tests (Depends-on): Likewise.
28248         * modules/futimens-tests (Depends-on): Likewise.
28249         * modules/lchown-tests (Depends-on): Likewise.
28250         * modules/link-tests (Depends-on): Likewise.
28251         * modules/linkat-tests (Depends-on): Likewise.
28252         * modules/lstat-tests (Depends-on): Likewise.
28253         * modules/mkdir-tests (Depends-on): Likewise.
28254         * modules/mkfifo-tests (Depends-on): Likewise.
28255         * modules/mkfifoat-tests (Depends-on): Likewise.
28256         * modules/mknod-tests (Depends-on): Likewise.
28257         * modules/openat-tests (Depends-on): Likewise.
28258         * modules/readlink-tests (Depends-on): Likewise.
28259         * modules/remove-tests (Depends-on): Likewise.
28260         * modules/rename-tests (Depends-on): Likewise.
28261         * modules/renameat-tests (Depends-on): Likewise.
28262         * modules/rmdir-tests (Depends-on): Likewise.
28263         * modules/symlink-tests (Depends-on): Likewise.
28264         * modules/symlinkat-tests (Depends-on): Likewise.
28265         * modules/unlink-tests (Depends-on): Likewise.
28266         * modules/utimens-tests (Depends-on): Likewise.
28267         * modules/utimensat-tests (Depends-on): Likewise.
28268
28269 2010-01-31  Bruno Haible  <bruno@clisp.org>
28270
28271         Perform the same test for many <math.h> functions.
28272         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28273         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28274         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28275         of gl_MATHFUNC.
28276         * modules/acos (configure.ac): Likewise.
28277         * modules/asin (configure.ac): Likewise.
28278         * modules/atan (configure.ac): Likewise.
28279         * modules/atan2 (configure.ac): Likewise.
28280         * modules/cbrt (configure.ac): Likewise.
28281         * modules/copysign (configure.ac): Likewise.
28282         * modules/cos (configure.ac): Likewise.
28283         * modules/cosh (configure.ac): Likewise.
28284         * modules/erf (configure.ac): Likewise.
28285         * modules/erfc (configure.ac): Likewise.
28286         * modules/exp (configure.ac): Likewise.
28287         * modules/fmod (configure.ac): Likewise.
28288         * modules/hypot (configure.ac): Likewise.
28289         * modules/j0 (configure.ac): Likewise.
28290         * modules/j1 (configure.ac): Likewise.
28291         * modules/jn (configure.ac): Likewise.
28292         * modules/lgamma (configure.ac): Likewise.
28293         * modules/log (configure.ac): Likewise.
28294         * modules/log10 (configure.ac): Likewise.
28295         * modules/log1p (configure.ac): Likewise.
28296         * modules/pow (configure.ac): Likewise.
28297         * modules/remainder (configure.ac): Likewise.
28298         * modules/sin (configure.ac): Likewise.
28299         * modules/sinh (configure.ac): Likewise.
28300         * modules/tan (configure.ac): Likewise.
28301         * modules/tanh (configure.ac): Likewise.
28302         * modules/y0 (configure.ac): Likewise.
28303         * modules/y1 (configure.ac): Likewise.
28304         * modules/yn (configure.ac): Likewise.
28305         Suggested by Paolo Bonzini.
28306
28307 2010-01-31  Bruno Haible  <bruno@clisp.org>
28308
28309         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28310
28311 2010-01-31  Bruno Haible  <bruno@clisp.org>
28312
28313         Work around getdelim() bug on FreeBSD 8.0.
28314         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28315         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28316         not work.
28317         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28318         is 1.
28319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28320         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28321         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28322         a non-zero size.
28323         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28324
28325 2010-01-31  Bruno Haible  <bruno@clisp.org>
28326
28327         Work around getline() bug on FreeBSD 8.0.
28328         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28329         and a non-zero size.
28330         * tests/test-getline.c (main): Likewise.
28331         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28332         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28333
28334 2010-01-28  Eric Blake  <ebb9@byu.net>
28335
28336         regex: fix build failure
28337         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28338         platforms.
28339
28340 2010-01-28  Jim Meyering  <meyering@redhat.com>
28341
28342         regex: do not ignore memory allocation failure
28343         * lib/regex_internal.c (create_cd_newstate): Detect
28344         re_node_set_init_copy failure.   Extracted from glibc commit
28345         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28346
28347         regex: sync more white-space changes from libc
28348         * lib/regex_internal.c: White-space only changes.
28349         * lib/regexec.c: Likewise.
28350
28351         regex: add many uses of __attribute_warn_unused_result__
28352         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28353         * lib/regexec.c: Likewise.
28354         Extracted from a messy glibc commit.
28355
28356         regcomp.c: spelling and merge-artifact from glibc
28357         * lib/regcomp.c: Merge remainder of glibc's
28358         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28359
28360         regcomp.c: sync white-space changes from glibc
28361         * lib/regcomp.c: Merge to accommodate white space
28362         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28363
28364         regcomp.c: do not ignore internal return values
28365         * lib/regcomp.c: Do not ignore internal return values.
28366         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28367         but without its white-space changes and spelling fixes.
28368
28369         regex_internal.h: define __attribute_warn_unused_result__
28370         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28371
28372         maint: add a syntax-check rule to check for vulnerable Makefile.in
28373         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28374
28375 2010-01-27  Jim Meyering  <meyering@redhat.com>
28376
28377         ncftpput-ftp: clean up spaces
28378         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28379         Remove trailing blanks.
28380
28381 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28382
28383         * build-aux/git-version-gen: Fix copyright statement.
28384         * build-aux/gnupload: Likewise.
28385         * tests/test-arcfour.c: Likewise.
28386         * tests/test-arctwo.c: Likewise.
28387         * tests/test-count-one-bits.c: Likewise.
28388         * tests/test-crc.c: Likewise.
28389         * tests/test-des.c: Likewise.
28390         * tests/test-gc-arcfour.c: Likewise.
28391         * tests/test-gc-arctwo.c: Likewise.
28392         * tests/test-gc-des.c: Likewise.
28393         * tests/test-gc-hmac-md5.c: Likewise.
28394         * tests/test-gc-hmac-sha1.c: Likewise.
28395         * tests/test-gc-md2.c: Likewise.
28396         * tests/test-gc-md4.c: Likewise.
28397         * tests/test-gc-md5.c: Likewise.
28398         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28399         * tests/test-gc-rijndael.c: Likewise.
28400         * tests/test-gc-sha1.c: Likewise.
28401         * tests/test-gc.c: Likewise.
28402         * tests/test-gethostname.c: Likewise.
28403         * tests/test-gettimeofday.c: Likewise.
28404         * tests/test-hash.c: Likewise.
28405         * tests/test-hmac-md5.c: Likewise.
28406         * tests/test-hmac-sha1.c: Likewise.
28407         * tests/test-md2.c: Likewise.
28408         * tests/test-md4.c: Likewise.
28409         * tests/test-md5.c: Likewise.
28410         * tests/test-memchr.c: Likewise.
28411         * tests/test-memchr2.c: Likewise.
28412         * tests/test-memcmp.c: Likewise.
28413         * tests/test-memmem.c: Likewise.
28414         * tests/test-memrchr.c: Likewise.
28415         * tests/test-rawmemchr.c: Likewise.
28416         * tests/test-read-file.c: Likewise.
28417         * tests/test-rijndael.c: Likewise.
28418         * tests/test-sockets.c: Likewise.
28419         * tests/test-strchrnul.c: Likewise.
28420         * tests/test-strstr.c: Likewise.
28421         * tests/test-strtod.c: Likewise.
28422         * build-aux/ncftpput-ftp: Likewise.
28423
28424 2010-01-26  Eric Blake  <ebb9@byu.net>
28425
28426         ignore-value: update recommended header name
28427         * modules/ignore-value (Include): Only use <> for headers that
28428         exist in glibc.
28429
28430 2010-01-26  Jim Meyering  <meyering@redhat.com>
28431
28432         test-userspec.c: avoid compiler warnings
28433         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28434         and "initialization discards qualifiers..." warnings.
28435         Put the first "uid" in its own scope, and make char* members "const".
28436
28437 2010-01-25  Bruno Haible  <bruno@clisp.org>
28438
28439         gnulib-tool: Make warning diagnostics consistent.
28440         * gnulib-tool (func_warning): New function.
28441         Use it everywhere where gnulib-tool produces output to stderr and it is
28442         not a fatal error.
28443
28444 2010-01-25  Bruno Haible  <bruno@clisp.org>
28445
28446         Fix test dependencies.
28447         * modules/xstrtol-tests (Depends-on): Add inttypes.
28448         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28449
28450 2010-01-25 Pádraig Brady <P@draigBrady.com>
28451
28452         syntax-check: detect incorrect boolean macro values in config.h
28453         * modules/maintainer-makefile (configure.ac): Parameterize the location
28454         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28455         The logic is from Eric Blake and the location indicated by Jim Meyering.
28456         Note the more natural CONFIG_HEADER name is prohibited by automake
28457         for backwards compatibility reasons.
28458         * top/maint.mk (sc_Wundef_boolean): New rule.
28459
28460 2010-01-25  Jim Meyering  <meyering@redhat.com>
28461
28462         bootstrap: detect MacOS 10.6's shasum, too
28463         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28464         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28465
28466 2010-01-23  Jim Meyering  <meyering@redhat.com>
28467
28468         xstrtoll: new module
28469         * modules/xstrtoll: New file.
28470         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28471         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28472         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28473         ./configure fails if you use this module and lack "long long".
28474         * modules/xstrtoll-tests: New module.
28475         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28476         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28477         new init.sh-based test framework.
28478
28479 2010-01-24  Bruno Haible  <bruno@clisp.org>
28480
28481         Tests for module 'yn'.
28482         * modules/yn-tests: New file.
28483         * tests/test-yn.c: New file.
28484
28485         Tests for module 'y1'.
28486         * modules/y1-tests: New file.
28487         * tests/test-y1.c: New file.
28488
28489         Tests for module 'y0'.
28490         * modules/y0-tests: New file.
28491         * tests/test-y0.c: New file.
28492
28493         Tests for module 'tanh'.
28494         * modules/tanh-tests: New file.
28495         * tests/test-tanh.c: New file.
28496
28497         Tests for module 'tan'.
28498         * modules/tan-tests: New file.
28499         * tests/test-tan.c: New file.
28500
28501         Tests for module 'sqrt'.
28502         * modules/sqrt-tests: New file.
28503         * tests/test-sqrt.c: New file.
28504
28505         Tests for module 'sinh'.
28506         * modules/sinh-tests: New file.
28507         * tests/test-sinh.c: New file.
28508
28509         Tests for module 'sin'.
28510         * modules/sin-tests: New file.
28511         * tests/test-sin.c: New file.
28512
28513         Tests for module 'rint'.
28514         * modules/rint-tests: New file.
28515         * tests/test-rint.c: New file.
28516
28517         Tests for module 'remainder'.
28518         * modules/remainder-tests: New file.
28519         * tests/test-remainder.c: New file.
28520
28521         Tests for module 'pow'.
28522         * modules/pow-tests: New file.
28523         * tests/test-pow.c: New file.
28524
28525         Tests for module 'nextafter'.
28526         * modules/nextafter-tests: New file.
28527         * tests/test-nextafter.c: New file.
28528
28529         Tests for module 'modf'.
28530         * modules/modf-tests: New file.
28531         * tests/test-modf.c: New file.
28532
28533         Tests for module 'logb'.
28534         * modules/logb-tests: New file.
28535         * tests/test-logb.c: New file.
28536
28537         Tests for module 'log1p'.
28538         * modules/log1p-tests: New file.
28539         * tests/test-log1p.c: New file.
28540
28541         Tests for module 'log10'.
28542         * modules/log10-tests: New file.
28543         * tests/test-log10.c: New file.
28544
28545         Tests for module 'log'.
28546         * modules/log-tests: New file.
28547         * tests/test-log.c: New file.
28548
28549         Tests for module 'lgamma'.
28550         * modules/lgamma-tests: New file.
28551         * tests/test-lgamma.c: New file.
28552
28553         Tests for module 'ldexp'.
28554         * modules/ldexp-tests: New file.
28555         * tests/test-ldexp.c: New file.
28556
28557         Tests for module 'jn'.
28558         * modules/jn-tests: New file.
28559         * tests/test-jn.c: New file.
28560
28561         Tests for module 'j1'.
28562         * modules/j1-tests: New file.
28563         * tests/test-j1.c: New file.
28564
28565         Tests for module 'j0'.
28566         * modules/j0-tests: New file.
28567         * tests/test-j0.c: New file.
28568
28569         Tests for module 'hypot'.
28570         * modules/hypot-tests: New file.
28571         * tests/test-hypot.c: New file.
28572
28573         Tests for module 'fmod'.
28574         * modules/fmod-tests: New file.
28575         * tests/test-fmod.c: New file.
28576
28577         Tests for module 'fabs'.
28578         * modules/fabs-tests: New file.
28579         * tests/test-fabs.c: New file.
28580
28581         Tests for module 'exp'.
28582         * modules/exp-tests: New file.
28583         * tests/test-exp.c: New file.
28584
28585         Tests for module 'erfc'.
28586         * modules/erfc-tests: New file.
28587         * tests/test-erfc.c: New file.
28588
28589         Tests for module 'erf'.
28590         * modules/erf-tests: New file.
28591         * tests/test-erf.c: New file.
28592
28593         Tests for module 'cosh'.
28594         * modules/cosh-tests: New file.
28595         * tests/test-cosh.c: New file.
28596
28597         Tests for module 'cos'.
28598         * modules/cos-tests: New file.
28599         * tests/test-cos.c: New file.
28600
28601         Tests for module 'copysign'.
28602         * modules/copysign-tests: New file.
28603         * tests/test-copysign.c: New file.
28604
28605         Tests for module 'cbrt'.
28606         * modules/cbrt-tests: New file.
28607         * tests/test-cbrt.c: New file.
28608
28609         Tests for module 'atan2'.
28610         * modules/atan2-tests: New file.
28611         * tests/test-atan2.c: New file.
28612
28613         Tests for module 'atan'.
28614         * modules/atan-tests: New file.
28615         * tests/test-atan.c: New file.
28616
28617         Tests for module 'asin'.
28618         * modules/asin-tests: New file.
28619         * tests/test-asin.c: New file.
28620
28621         Tests for module 'acos'.
28622         * modules/acos-tests: New file.
28623         * tests/test-acos.c: New file.
28624
28625 2010-01-24  Bruno Haible  <bruno@clisp.org>
28626
28627         Fix tests for common <math.h> functions.
28628         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28629         code snippet that references the function pointer, rather than merely
28630         calling the function. Substitute the FUNC_LIBM variable.
28631         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28632         * modules/acos (configure.ac): Likewise.
28633         * modules/asin (configure.ac): Likewise.
28634         * modules/atan (configure.ac): Likewise.
28635         * modules/atan2 (configure.ac): Likewise.
28636         * modules/cbrt (configure.ac): Likewise.
28637         * modules/copysign (configure.ac): Likewise.
28638         * modules/cos (configure.ac): Likewise.
28639         * modules/cosh (configure.ac): Likewise.
28640         * modules/erf (configure.ac): Likewise.
28641         * modules/erfc (configure.ac): Likewise.
28642         * modules/exp (configure.ac): Likewise.
28643         * modules/fabs (configure.ac): Likewise.
28644         * modules/fmod (configure.ac): Likewise.
28645         * modules/hypot (configure.ac): Likewise.
28646         * modules/j0 (configure.ac): Likewise.
28647         * modules/j1 (configure.ac): Likewise.
28648         * modules/jn (configure.ac): Likewise.
28649         * modules/ldexp (configure.ac): Likewise.
28650         * modules/lgamma (configure.ac): Likewise.
28651         * modules/log (configure.ac): Likewise.
28652         * modules/log10 (configure.ac): Likewise.
28653         * modules/log1p (configure.ac): Likewise.
28654         * modules/logb (configure.ac): Likewise.
28655         * modules/modf (configure.ac): Likewise.
28656         * modules/nextafter (configure.ac): Likewise.
28657         * modules/pow (configure.ac): Likewise.
28658         * modules/remainder (configure.ac): Likewise.
28659         * modules/rint (configure.ac): Likewise.
28660         * modules/sin (configure.ac): Likewise.
28661         * modules/sinh (configure.ac): Likewise.
28662         * modules/tan (configure.ac): Likewise.
28663         * modules/tanh (configure.ac): Likewise.
28664         * modules/y0 (configure.ac): Likewise.
28665         * modules/y1 (configure.ac): Likewise.
28666         * modules/yn (configure.ac): Likewise.
28667
28668 2010-01-24  Bruno Haible  <bruno@clisp.org>
28669
28670         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28671         * tests/test-acosl.c (x): New variable.
28672         (main): Store argument in x and fetch it from x.
28673         * tests/test-asinl.c (x): New variable.
28674         (main): Store argument in x and fetch it from x.
28675         * tests/test-atanl.c (x): New variable.
28676         (main): Store argument in x and fetch it from x.
28677         * tests/test-cosl.c (x): New variable.
28678         (main): Store argument in x and fetch it from x.
28679         * tests/test-expl.c (x): New variable.
28680         (main): Store argument in x and fetch it from x.
28681         * tests/test-logl.c (x): New variable.
28682         (main): Store argument in x and fetch it from x.
28683         * tests/test-sinl.c (x): New variable.
28684         (main): Store argument in x and fetch it from x.
28685         * tests/test-sqrtl.c (x): New variable.
28686         (main): Store argument in x and fetch it from x.
28687         * tests/test-tanl.c (x): New variable.
28688         (main): Store argument in x and fetch it from x.
28689
28690 2010-01-24  Bruno Haible  <bruno@clisp.org>
28691
28692         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28693         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28694         assignments to the initial TESTS_ENVIRONMENT.
28695         * doc/gnulib.texi (Unit test modules): Document it.
28696         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28697         TESTS_ENVIRONMENT.
28698         * modules/btowc-tests (Makefile.am): Likewise.
28699         * modules/c-stack-tests (Makefile.am): Likewise.
28700         * modules/c-strcase-tests (Makefile.am): Likewise.
28701         * modules/copy-file-tests (Makefile.am): Likewise.
28702         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28703         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28704         * modules/mbrtowc-tests (Makefile.am): Likewise.
28705         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28706         * modules/mbscasestr-tests (Makefile.am): Likewise.
28707         * modules/mbschr-tests (Makefile.am): Likewise.
28708         * modules/mbscspn-tests (Makefile.am): Likewise.
28709         * modules/mbsinit-tests (Makefile.am): Likewise.
28710         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28711         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28712         * modules/mbspbrk-tests (Makefile.am): Likewise.
28713         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28714         * modules/mbsrchr-tests (Makefile.am): Likewise.
28715         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28716         * modules/mbsspn-tests (Makefile.am): Likewise.
28717         * modules/mbsstr-tests (Makefile.am): Likewise.
28718         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28719         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28720         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28721         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28722         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28723         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28724         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28725         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28726         * modules/wcrtomb-tests (Makefile.am): Likewise.
28727         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28728         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28729         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28730         assignments from TESTS_ENVIRONMENT.
28731         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28732         augmentation.
28733         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28734         * modules/atexit-tests (Makefile.am): Likewise.
28735         * modules/binary-io-tests (Makefile.am): Likewise.
28736         * modules/closein-tests (Makefile.am): Likewise.
28737         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28738         * modules/exclude-tests (Makefile.am): Likewise.
28739         * modules/fflush-tests (Makefile.am): Likewise.
28740         * modules/fpending-tests (Makefile.am): Likewise.
28741         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28742         * modules/freadahead-tests (Makefile.am): Likewise.
28743         * modules/freadptr-tests (Makefile.am): Likewise.
28744         * modules/freadseek-tests (Makefile.am): Likewise.
28745         * modules/fseek-tests (Makefile.am): Likewise.
28746         * modules/fseeko-tests (Makefile.am): Likewise.
28747         * modules/ftell-tests (Makefile.am): Likewise.
28748         * modules/ftello-tests (Makefile.am): Likewise.
28749         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28750         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28751         * modules/lseek-tests (Makefile.am): Likewise.
28752         * modules/parse-duration-tests (Makefile.am): Likewise.
28753         * modules/perror-tests (Makefile.am): Likewise.
28754         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28755         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28756         * modules/pipe-tests (Makefile.am): Likewise.
28757         * modules/pread-tests (Makefile.am): Likewise.
28758         * modules/printf-posix-tests (Makefile.am): Likewise.
28759         * modules/select-tests (Makefile.am): Likewise.
28760         * modules/sigpipe-tests (Makefile.am): Likewise.
28761         * modules/tsearch-tests (Makefile.am): Likewise.
28762         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28763         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28764         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28765         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28766         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28767         * modules/version-etc-tests (Makefile.am): Likewise.
28768         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28769         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28770         * modules/xalloc-die-tests (Makefile.am): Likewise.
28771         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28772         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28773         * modules/xstrtol-tests (Makefile.am): Likewise.
28774         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28775         * modules/yesno-tests (Makefile.am): Likewise.
28776         Suggested by Jim Meyering.
28777
28778 2010-01-24  Bruno Haible  <bruno@clisp.org>
28779
28780         More documentation.
28781         * doc/gnulib.texi (Writing modules): New chapter.
28782         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28783         the new chapter.
28784
28785 2010-01-24  Jim Meyering  <meyering@redhat.com>
28786
28787         maint.mk: do not prepend "./" after filtering
28788         * top/maint.mk (_prepend_srcdir_prefix): New variable
28789         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28790         "./" when $(srcdir) is ".".
28791
28792         define STREQ(a,b) consistently, removing useless parentheses
28793         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28794         since the only risk is that "a" or "b" contains an unparenthesized
28795         comma, but if either did that, STREQ would have 3 or more arguments.
28796         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28797         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28798         * lib/hash-triple.c (STREQ): Likewise.
28799         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28800         * lib/getugroups.c (STREQ): Likewise.
28801
28802 2010-01-23  Jim Meyering  <meyering@redhat.com>
28803
28804         maint.mk: fix syntax-check in a non-srcdir build directory
28805         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28806         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28807
28808 2010-01-22  Jim Meyering  <meyering@redhat.com>
28809
28810         userspec: add unit tests
28811         * tests/test-userspec.c: New file.
28812         * modules/userspec-tests: Likewise.
28813
28814 2010-01-21  Jim Meyering  <meyering@redhat.com>
28815
28816         maint.mk: handle source file names containing "." robustly
28817         * top/maint.mk (_dot_escaped_srcdir): Define.
28818         (VC_LIST): Use it in LHS of sed substitution.
28819
28820 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28821
28822         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28823         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28824         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28825         from a non-srcdir build.
28826
28827 2010-01-20  Eric Blake  <ebb9@byu.net>
28828
28829         warn-on-use: use instead of link-warning
28830         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28831         * modules/unistd (Depends-on, Makefile.am): Likewise.
28832         * modules/arpa_inet (Depends-on): Replace link-warning with
28833         warn-on-use.
28834         (Makefile.am): Update rules accordingly.
28835         * modules/ctype (Depends-on, Makefile.am): Likewise.
28836         * modules/dirent (Depends-on, Makefile.am): Likewise.
28837         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28838         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28839         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28840         * modules/locale (Depends-on, Makefile.am): Likewise.
28841         * modules/math (Depends-on, Makefile.am): Likewise.
28842         * modules/search (Depends-on, Makefile.am): Likewise.
28843         * modules/signal (Depends-on, Makefile.am): Likewise.
28844         * modules/spawn (Depends-on, Makefile.am): Likewise.
28845         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28846         * modules/string (Depends-on, Makefile.am): Likewise.
28847         * modules/strings (Depends-on, Makefile.am): Likewise.
28848         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28849         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28850         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28851         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28852         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28853         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28854         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28855         * modules/wchar (Depends-on, Makefile.am): Likewise.
28856         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28857         should be poisoned.
28858         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28859         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28860         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28861         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28862         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28863         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28864         * m4/math_h.m4 (gl_MATH_H): Likewise.
28865         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28866         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28867         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28868         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28869         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28870         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28871         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28872         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28873         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28874         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28875         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28876         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28877         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28878         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28879         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28880         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28881         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28882         GL_LINK_WARNING.
28883         * lib/ctype.in.h: Likewise.
28884         * lib/dirent.in.h: Likewise.
28885         * lib/fcntl.in.h: Likewise.
28886         * lib/inttypes.in.h: Likewise.
28887         * lib/langinfo.in.h: Likewise.
28888         * lib/locale.in.h: Likewise.
28889         * lib/math.in.h: Likewise.
28890         * lib/search.in.h: Likewise.
28891         * lib/signal.in.h: Likewise.
28892         * lib/spawn.in.h: Likewise.
28893         * lib/stdio.in.h: Likewise.
28894         * lib/stdlib.in.h: Likewise.
28895         * lib/string.in.h: Likewise.
28896         * lib/strings.in.h: Likewise.
28897         * lib/sys_file.in.h: Likewise.
28898         * lib/sys_ioctl.in.h: Likewise.
28899         * lib/sys_select.in.h: Likewise.
28900         * lib/sys_socket.in.h: Likewise.
28901         * lib/sys_stat.in.h: Likewise.
28902         * lib/sys_times.in.h: Likewise.
28903         * lib/sys_utsname.in.h: Likewise.
28904         * lib/unistd.in.h: Likewise.
28905         * lib/wchar.in.h: Likewise.
28906
28907 2010-01-20  Bruno Haible  <bruno@clisp.org>
28908
28909         Avoid duplicate -lm.
28910         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28911         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28912         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28913         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28914         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28915         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28916         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28917         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28918         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28919         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28920         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28921         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28922         Reported by Paolo Bonzini.
28923
28924 2010-01-19  Bruno Haible  <bruno@clisp.org>
28925
28926         langinfo, nl_langinfo: Relicense under LGPLv2+.
28927         * modules/langinfo (License): Change to LGPLv2+.
28928         * modules/nl_langinfo (License): Likewise.
28929         Patch by David Lutterkort <lutter@redhat.com>.
28930
28931 2010-01-19  Bruno Haible  <bruno@clisp.org>
28932
28933         Avoid compilation error with cc on OSF/1 5.1.
28934         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28935         statement, not before.
28936         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28937
28938 2010-01-18  Bruno Haible  <bruno@clisp.org>
28939
28940         Avoid a link error due to the __printf__ symbol.
28941         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28942         and 2.6.x.
28943         (__format__, __printf__): Remove definitions.
28944         * lib/argp-fmtstream.h: Likewise.
28945         * lib/argp.h: Likewise.
28946         * lib/error.h: Likewise.
28947         * lib/vasnprintf.h: Likewise.
28948         * lib/xprintf.h: Likewise.
28949         * lib/xvasprintf.h: Likewise.
28950         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28951
28952 2010-01-18  Bruno Haible  <bruno@clisp.org>
28953
28954         Tests for module 'tanl'.
28955         * modules/tanl-tests: New file.
28956         * tests/test-tanl.c: New file.
28957
28958         Tests for module 'sqrtl'.
28959         * modules/sqrtl-tests: New file.
28960         * tests/test-sqrtl.c: New file.
28961
28962         Tests for module 'sinl'.
28963         * modules/sinl-tests: New file.
28964         * tests/test-sinl.c: New file.
28965
28966         Tests for module 'logl'.
28967         * modules/logl-tests: New file.
28968         * tests/test-logl.c: New file.
28969
28970         Tests for module 'expl'.
28971         * modules/expl-tests: New file.
28972         * tests/test-expl.c: New file.
28973
28974         Tests for module 'cosl'.
28975         * modules/cosl-tests: New file.
28976         * tests/test-cosl.c: New file.
28977
28978         Tests for module 'atanl'.
28979         * modules/atanl-tests: New file.
28980         * tests/test-atanl.c: New file.
28981
28982         Tests for module 'asinl'.
28983         * modules/asinl-tests: New file.
28984         * tests/test-asinl.c: New file.
28985
28986         Tests for module 'acosl'.
28987         * modules/acosl-tests: New file.
28988         * tests/test-acosl.c: New file.
28989
28990         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28991         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28992         tanl): Use the standard gnulib idiom.
28993         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28994         * lib/sinl.c: Likewise.
28995         * lib/tanl.c: Don't include trigl.c.
28996         (kernel_tanl): Make static.
28997         * lib/sincosl.c: Include trigl.h first.
28998         * lib/trigl.c: Likewise.
28999         * m4/acosl.m4: New file.
29000         * m4/asinl.m4: New file.
29001         * m4/atanl.m4: New file.
29002         * m4/cosl.m4: New file.
29003         * m4/expl.m4: New file.
29004         * m4/logl.m4: New file.
29005         * m4/sinl.m4: New file.
29006         * m4/sqrtl.m4: New file.
29007         * m4/tanl.m4: New file.
29008         * m4/mathl.m4: Remove file.
29009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29010         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29011         Don't initialize GNULIB_MATHL.
29012         * modules/acosl: New file.
29013         * modules/asinl: New file.
29014         * modules/atanl: New file.
29015         * modules/cosl: New file.
29016         * modules/expl: New file.
29017         * modules/logl: New file.
29018         * modules/sinl: New file.
29019         * modules/sqrtl: New file.
29020         * modules/tanl: New file.
29021         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29022         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29023         substitute GNULIB_MATHL.
29024         * modules/mathl: Rewritten.
29025         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29026         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29027         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29028         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29029         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29030         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29031         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29032         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29033         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29034
29035 2010-01-18  Bruno Haible  <bruno@clisp.org>
29036
29037         sqrt: Make gl_FUNC_SQRT requirable.
29038         * m4/sqrt.m4: New file.
29039         * modules/sqrt (Files): Add it.
29040         (configure.ac): Invoke gl_FUNC_SQRT.
29041
29042 2010-01-18  Bruno Haible  <bruno@clisp.org>
29043
29044         New modules for common <math.h> functions.
29045         * m4/mathfunc.m4: New file.
29046         * modules/acos: New file.
29047         * modules/asin: New file.
29048         * modules/atan: New file.
29049         * modules/atan2: New file.
29050         * modules/cbrt: New file.
29051         * modules/copysign: New file.
29052         * modules/cos: New file.
29053         * modules/cosh: New file.
29054         * modules/erf: New file.
29055         * modules/erfc: New file.
29056         * modules/exp: New file.
29057         * modules/fabs: New file.
29058         * modules/fmod: New file.
29059         * modules/hypot: New file.
29060         * modules/j0: New file.
29061         * modules/j1: New file.
29062         * modules/jn: New file.
29063         * modules/ldexp: New file.
29064         * modules/lgamma: New file.
29065         * modules/log: New file.
29066         * modules/log10: New file.
29067         * modules/log1p: New file.
29068         * modules/logb: New file.
29069         * modules/modf: New file.
29070         * modules/nextafter: New file.
29071         * modules/pow: New file.
29072         * modules/remainder: New file.
29073         * modules/rint: New file.
29074         * modules/sin: New file.
29075         * modules/sinh: New file.
29076         * modules/sqrt: New file.
29077         * modules/tan: New file.
29078         * modules/tanh: New file.
29079         * modules/y0: New file.
29080         * modules/y1: New file.
29081         * modules/yn: New file.
29082         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29083         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29084         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29085         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29086         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29087         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29088         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29089         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29090         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29091         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29092         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29093         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29094         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29095         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29096         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29097         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29098         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29099         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29100         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29101         * doc/posix-functions/log.texi: Mention the 'log' module.
29102         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29103         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29104         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29105         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29106         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29107         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29108         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29109         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29110         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29111         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29112         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29113         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29114         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29115         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29116         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29117         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29118
29119 2010-01-18  Jim Meyering  <meyering@redhat.com>
29120
29121         ignore-value: relax license to LGPLv2+
29122         * modules/ignore-value (License): Relax to LGPLv2+.
29123
29124         getdate: don't leak when TZ contains two or more '"'s
29125         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29126         double quote in TZ after the first one.
29127
29128         readtokens: do not leak internal token_lengths buffer
29129         * lib/readtokens.c (readtokens): Free the local, lengths,
29130         when the supplied "token_lengths" parameter is NULL.
29131
29132 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29133
29134         Fix a couple of missing LIBTHREAD link failures on AIX.
29135         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29136         $(LIBTHREAD).
29137         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29138
29139         Link test-poll against INET_PTON_LIB.
29140         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29141         for inet_pton on Solaris 10.
29142
29143 2010-01-17  Bruno Haible  <bruno@clisp.org>
29144
29145         unistdio/*-sprintf: Fix typo in module description.
29146         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29147         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29148         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29149         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29150         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29151         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29152         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29153         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29154
29155 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29156
29157         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29158         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29159         variables in shell case patterns, for AIX and HP-UX ksh.
29160
29161         Split large sed scripts, for HP-UX sed.
29162         * modules/stdio: Split sed scripts around 50 sed commands,
29163         to avoid HP-UX limit of 99 commands, in the near future.
29164         * modules/string: Likewise.
29165         * modules/unistd: Likewise.
29166
29167         gnulib-tool: avoid writing in the current directory.
29168         * gnulib-tool (func_emit_lib_Makefile_am)
29169         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29170         not in the current directory, so concurrent gnulib-tool
29171         instances do not interfere.
29172
29173 2010-01-16  Jim Meyering  <meyering@redhat.com>
29174
29175         doc: update users.txt
29176         * users.txt: Add grep.
29177         (diffutils, gzip): Update URLs.
29178
29179 2010-01-12  Bruno Haible  <bruno@clisp.org>
29180
29181         posix_spawn: Avoid test failure on Cygwin.
29182         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29183         characters.
29184         Reported by Simon Josefsson.
29185
29186 2010-01-12  Bruno Haible  <bruno@clisp.org>
29187
29188         * tests/test-cond.c (main): When skipping the test, show the reason.
29189
29190 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29191
29192         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29193
29194 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29195
29196         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29197         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29198
29199 2010-01-12  Eric Blake  <ebb9@byu.net>
29200
29201         build: guarantee AS_VAR_IF
29202         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29203         (gl_AS_VAR_IF): Move...
29204         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29205         Reported by Simon Josefsson.
29206
29207 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29208
29209         * lib/stdio.in.h: Fix typo.
29210
29211 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29212
29213         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29214         libgpg-error.
29215
29216 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29217
29218         * tests/test-xalloc-die.sh: Use $EXEEXT.
29219
29220 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29221             Bruno Haible  <bruno@clisp.org>
29222
29223         getlogin, getlogin_r: Avoid test failure.
29224         * tests/test-getlogin.c: Include <stdio.h>.
29225         (main): Skip the test when the function fails because stdin is not a
29226         tty.
29227         * tests/test-getlogin_r.c: Include <stdio.h>.
29228         (main): Skip the test when the function fails because stdin is not a
29229         tty.
29230
29231 2010-01-11  Eric Blake  <ebb9@byu.net>
29232
29233         tests: avoid more large file warnings
29234         * tests/test-fflush.c: Avoid warning about ftell use.
29235         * tests/test-fseek.c: Avoid warning about fseek use.
29236
29237 2010-01-10  Bruno Haible  <bruno@clisp.org>
29238
29239         nproc: Work better on Linux when /proc and /sys are not mounted.
29240         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29241         as lower bound when, on glibc/Linux systems,
29242         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29243         Suggested by Pádraig Brady <P@draigbrady.com>.
29244         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29245
29246         nproc: Refactor.
29247         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29248         extracted from num_processors.
29249         (num_processors): Call it.
29250
29251 2010-01-11  Jim Meyering  <meyering@redhat.com>
29252
29253         utimecmp: avoid new warning from upcoming gcc-4.5.0
29254         * lib/utimecmp.c (BILLION): Define using #define rather than an
29255         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29256
29257 2010-01-11  Eric Blake  <ebb9@byu.net>
29258
29259         math: add portability warnings for classification macros
29260         * modules/math (Depends-on): Add warn-on-use.
29261         (Makefile.am): Provide new substitutions.
29262         * m4/math_h.m4 (gl_MATH_H): Require inline.
29263         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29264         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29265         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29266         implement warnings.
29267
29268         unistd: warn on use of environ without module
29269         * modules/unistd (Depends-on): Add warn-on-use.
29270         (Makefile.am): Provide new substitutions.
29271         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29272         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29273
29274         stdio: warn on suspicious uses
29275         * modules/stdio (Depends-on): Add warn-on-use.
29276         (Makefile.am): Provide new substitutions.
29277         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29278         fseeko.
29279         * lib/stdio.in.h (gets): Always warn on use.
29280         (fseek, ftell): Adjust when warnings are issued, and honor
29281         _GL_NO_LARGE_FILES as a way to silence the warning.
29282         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29283         any warning about large file offsets.
29284         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29285         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29286         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29287         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29288         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29289         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29290         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29291         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29292
29293         warn-on-use: new module
29294         * modules/warn-on-use: New file.
29295         * build-aux/warn-on-use.h: Likewise.
29296         * m4/warn-on-use.m4: Likewise.
29297         * MODULES.html.sh (Support for building): Mention it.
29298
29299 2010-01-10  Bruno Haible  <bruno@clisp.org>
29300
29301         Tests for module 'unistr/u32-strdup'.
29302         * modules/unistr/u32-strdup-tests: New file.
29303         * tests/unistr/test-u32-strdup.c: New file.
29304
29305         Tests for module 'unistr/u16-strdup'.
29306         * modules/unistr/u16-strdup-tests: New file.
29307         * tests/unistr/test-u16-strdup.c: New file.
29308
29309         Tests for module 'unistr/u8-strdup'.
29310         * modules/unistr/u8-strdup-tests: New file.
29311         * tests/unistr/test-u8-strdup.c: New file.
29312         * tests/unistr/test-strdup.h: New file.
29313
29314         Tests for module 'unistr/u32-strncmp'.
29315         * modules/unistr/u32-strncmp-tests: New file.
29316         * tests/unistr/test-u32-strncmp.c: New file.
29317
29318         Tests for module 'unistr/u16-strncmp'.
29319         * modules/unistr/u16-strncmp-tests: New file.
29320         * tests/unistr/test-u16-strncmp.c: New file.
29321
29322         Tests for module 'unistr/u8-strncmp'.
29323         * modules/unistr/u8-strncmp-tests: New file.
29324         * tests/unistr/test-u8-strncmp.c: New file.
29325         * tests/unistr/test-strncmp.h: New file.
29326
29327         Tests for module 'unistr/u32-strcoll'.
29328         * modules/unistr/u32-strcoll-tests: New file.
29329         * tests/unistr/test-u32-strcoll.c: New file.
29330
29331         Tests for module 'unistr/u16-strcoll'.
29332         * modules/unistr/u16-strcoll-tests: New file.
29333         * tests/unistr/test-u16-strcoll.c: New file.
29334
29335         Tests for module 'unistr/u8-strcoll'.
29336         * modules/unistr/u8-strcoll-tests: New file.
29337         * tests/unistr/test-u8-strcoll.c: New file.
29338
29339         Tests for module 'unistr/u32-strcmp'.
29340         * modules/unistr/u32-strcmp-tests: New file.
29341         * tests/unistr/test-u32-strcmp.c: New file.
29342         * tests/unistr/test-u32-strcmp.h: New file.
29343
29344         Tests for module 'unistr/u16-strcmp'.
29345         * modules/unistr/u16-strcmp-tests: New file.
29346         * tests/unistr/test-u16-strcmp.c: New file.
29347         * tests/unistr/test-u16-strcmp.h: New file.
29348
29349         Tests for module 'unistr/u8-strcmp'.
29350         * modules/unistr/u8-strcmp-tests: New file.
29351         * tests/unistr/test-u8-strcmp.c: New file.
29352         * tests/unistr/test-u8-strcmp.h: New file.
29353         * tests/unistr/test-strcmp.h: New file.
29354
29355         Tests for module 'unistr/u32-strncat'.
29356         * modules/unistr/u32-strncat-tests: New file.
29357         * tests/unistr/test-u32-strncat.c: New file.
29358
29359         Tests for module 'unistr/u16-strncat'.
29360         * modules/unistr/u16-strncat-tests: New file.
29361         * tests/unistr/test-u16-strncat.c: New file.
29362
29363         Tests for module 'unistr/u8-strncat'.
29364         * modules/unistr/u8-strncat-tests: New file.
29365         * tests/unistr/test-u8-strncat.c: New file.
29366         * tests/unistr/test-strncat.h: New file.
29367
29368         Tests for module 'unistr/u32-strcat'.
29369         * modules/unistr/u32-strcat-tests: New file.
29370         * tests/unistr/test-u32-strcat.c: New file.
29371
29372         Tests for module 'unistr/u16-strcat'.
29373         * modules/unistr/u16-strcat-tests: New file.
29374         * tests/unistr/test-u16-strcat.c: New file.
29375
29376         Tests for module 'unistr/u8-strcat'.
29377         * modules/unistr/u8-strcat-tests: New file.
29378         * tests/unistr/test-u8-strcat.c: New file.
29379         * tests/unistr/test-strcat.h: New file.
29380
29381         Tests for module 'unistr/u32-stpncpy'.
29382         * modules/unistr/u32-stpncpy-tests: New file.
29383         * tests/unistr/test-u32-stpncpy.c: New file.
29384
29385         Tests for module 'unistr/u16-stpncpy'.
29386         * modules/unistr/u16-stpncpy-tests: New file.
29387         * tests/unistr/test-u16-stpncpy.c: New file.
29388
29389         Tests for module 'unistr/u8-stpncpy'.
29390         * modules/unistr/u8-stpncpy-tests: New file.
29391         * tests/unistr/test-u8-stpncpy.c: New file.
29392         * tests/unistr/test-stpncpy.h: New file.
29393
29394         Tests for module 'unistr/u32-strncpy'.
29395         * modules/unistr/u32-strncpy-tests: New file.
29396         * tests/unistr/test-u32-strncpy.c: New file.
29397
29398         Tests for module 'unistr/u16-strncpy'.
29399         * modules/unistr/u16-strncpy-tests: New file.
29400         * tests/unistr/test-u16-strncpy.c: New file.
29401
29402         Tests for module 'unistr/u8-strncpy'.
29403         * modules/unistr/u8-strncpy-tests: New file.
29404         * tests/unistr/test-u8-strncpy.c: New file.
29405         * tests/unistr/test-strncpy.h: New file.
29406
29407         Tests for module 'unistr/u32-stpcpy'.
29408         * modules/unistr/u32-stpcpy-tests: New file.
29409         * tests/unistr/test-u32-stpcpy.c: New file.
29410
29411         Tests for module 'unistr/u16-stpcpy'.
29412         * modules/unistr/u16-stpcpy-tests: New file.
29413         * tests/unistr/test-u16-stpcpy.c: New file.
29414
29415         Tests for module 'unistr/u8-stpcpy'.
29416         * modules/unistr/u8-stpcpy-tests: New file.
29417         * tests/unistr/test-u8-stpcpy.c: New file.
29418         * tests/unistr/test-stpcpy.h: New file.
29419
29420         Tests for module 'unistr/u32-strcpy'.
29421         * modules/unistr/u32-strcpy-tests: New file.
29422         * tests/unistr/test-u32-strcpy.c: New file.
29423
29424         Tests for module 'unistr/u16-strcpy'.
29425         * modules/unistr/u16-strcpy-tests: New file.
29426         * tests/unistr/test-u16-strcpy.c: New file.
29427
29428         Tests for module 'unistr/u8-strcpy'.
29429         * modules/unistr/u8-strcpy-tests: New file.
29430         * tests/unistr/test-u8-strcpy.c: New file.
29431         * tests/unistr/test-strcpy.h: New file.
29432
29433         Tests for module 'unistr/u32-strnlen'.
29434         * modules/unistr/u32-strnlen-tests: New file.
29435         * tests/unistr/test-u32-strnlen.c: New file.
29436
29437         Tests for module 'unistr/u16-strnlen'.
29438         * modules/unistr/u16-strnlen-tests: New file.
29439         * tests/unistr/test-u16-strnlen.c: New file.
29440
29441         Tests for module 'unistr/u8-strnlen'.
29442         * modules/unistr/u8-strnlen-tests: New file.
29443         * tests/unistr/test-u8-strnlen.c: New file.
29444         * tests/unistr/test-strnlen.h: New file.
29445
29446         Tests for module 'unistr/u32-strlen'.
29447         * modules/unistr/u32-strlen-tests: New file.
29448         * tests/unistr/test-u32-strlen.c: New file.
29449
29450         Tests for module 'unistr/u16-strlen'.
29451         * modules/unistr/u16-strlen-tests: New file.
29452         * tests/unistr/test-u16-strlen.c: New file.
29453
29454         Tests for module 'unistr/u8-strlen'.
29455         * modules/unistr/u8-strlen-tests: New file.
29456         * tests/unistr/test-u8-strlen.c: New file.
29457
29458         Tests for module 'unistr/u32-prev'.
29459         * modules/unistr/u32-prev-tests: New file.
29460         * tests/unistr/test-u32-prev.c: New file.
29461
29462         Tests for module 'unistr/u16-prev'.
29463         * modules/unistr/u16-prev-tests: New file.
29464         * tests/unistr/test-u16-prev.c: New file.
29465
29466         Tests for module 'unistr/u8-prev'.
29467         * modules/unistr/u8-prev-tests: New file.
29468         * tests/unistr/test-u8-prev.c: New file.
29469
29470         Tests for module 'unistr/u32-next'.
29471         * modules/unistr/u32-next-tests: New file.
29472         * tests/unistr/test-u32-next.c: New file.
29473
29474         Tests for module 'unistr/u16-next'.
29475         * modules/unistr/u16-next-tests: New file.
29476         * tests/unistr/test-u16-next.c: New file.
29477
29478         Tests for module 'unistr/u8-next'.
29479         * modules/unistr/u8-next-tests: New file.
29480         * tests/unistr/test-u8-next.c: New file.
29481
29482         Tests for module 'unistr/u32-strmbtouc'.
29483         * modules/unistr/u32-strmbtouc-tests: New file.
29484         * tests/unistr/test-u32-strmbtouc.c: New file.
29485
29486         Tests for module 'unistr/u16-strmbtouc'.
29487         * modules/unistr/u16-strmbtouc-tests: New file.
29488         * tests/unistr/test-u16-strmbtouc.c: New file.
29489
29490         Tests for module 'unistr/u8-strmbtouc'.
29491         * modules/unistr/u8-strmbtouc-tests: New file.
29492         * tests/unistr/test-u8-strmbtouc.c: New file.
29493
29494         Tests for module 'unistr/u32-strmblen'.
29495         * modules/unistr/u32-strmblen-tests: New file.
29496         * tests/unistr/test-u32-strmblen.c: New file.
29497
29498         Tests for module 'unistr/u16-strmblen'.
29499         * modules/unistr/u16-strmblen-tests: New file.
29500         * tests/unistr/test-u16-strmblen.c: New file.
29501
29502         Tests for module 'unistr/u8-strmblen'.
29503         * modules/unistr/u8-strmblen-tests: New file.
29504         * tests/unistr/test-u8-strmblen.c: New file.
29505
29506         Tests for module 'unistr/u32-cpy-alloc'.
29507         * modules/unistr/u32-cpy-alloc-tests: New file.
29508         * tests/unistr/test-u32-cpy-alloc.c: New file.
29509
29510         Tests for module 'unistr/u16-cpy-alloc'.
29511         * modules/unistr/u16-cpy-alloc-tests: New file.
29512         * tests/unistr/test-u16-cpy-alloc.c: New file.
29513
29514         Tests for module 'unistr/u8-cpy-alloc'.
29515         * modules/unistr/u8-cpy-alloc-tests: New file.
29516         * tests/unistr/test-u8-cpy-alloc.c: New file.
29517         * tests/unistr/test-cpy-alloc.h: New file.
29518
29519         Tests for module 'unistr/u32-mbsnlen'.
29520         * modules/unistr/u32-mbsnlen-tests: New file.
29521         * tests/unistr/test-u32-mbsnlen.c: New file.
29522
29523         Tests for module 'unistr/u16-mbsnlen'.
29524         * modules/unistr/u16-mbsnlen-tests: New file.
29525         * tests/unistr/test-u16-mbsnlen.c: New file.
29526
29527         Tests for module 'unistr/u8-mbsnlen'.
29528         * modules/unistr/u8-mbsnlen-tests: New file.
29529         * tests/unistr/test-u8-mbsnlen.c: New file.
29530
29531         Tests for module 'unistr/u32-chr'.
29532         * modules/unistr/u32-chr-tests: New file.
29533         * tests/unistr/test-u32-chr.c: New file.
29534
29535         Tests for module 'unistr/u16-chr'.
29536         * modules/unistr/u16-chr-tests: New file.
29537         * tests/unistr/test-u16-chr.c: New file.
29538
29539         Tests for module 'unistr/u8-chr'.
29540         * modules/unistr/u8-chr-tests: New file.
29541         * tests/unistr/test-u8-chr.c: New file.
29542         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29543
29544         Tests for module 'unistr/u32-cmp2'.
29545         * modules/unistr/u32-cmp2-tests: New file.
29546         * tests/unistr/test-u32-cmp2.c: New file.
29547
29548         Tests for module 'unistr/u16-cmp2'.
29549         * modules/unistr/u16-cmp2-tests: New file.
29550         * tests/unistr/test-u16-cmp2.c: New file.
29551
29552         Tests for module 'unistr/u8-cmp2'.
29553         * modules/unistr/u8-cmp2-tests: New file.
29554         * tests/unistr/test-u8-cmp2.c: New file.
29555         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29556
29557         Tests for module 'unistr/u32-cmp'.
29558         * modules/unistr/u32-cmp-tests: New file.
29559         * tests/unistr/test-u32-cmp.c: New file.
29560
29561         Tests for module 'unistr/u16-cmp'.
29562         * modules/unistr/u16-cmp-tests: New file.
29563         * tests/unistr/test-u16-cmp.c: New file.
29564
29565         Tests for module 'unistr/u8-cmp'.
29566         * modules/unistr/u8-cmp-tests: New file.
29567         * tests/unistr/test-u8-cmp.c: New file.
29568         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29569
29570         Tests for module 'unistr/u32-set'.
29571         * modules/unistr/u32-set-tests: New file.
29572         * tests/unistr/test-u32-set.c: New file.
29573
29574         Tests for module 'unistr/u16-set'.
29575         * modules/unistr/u16-set-tests: New file.
29576         * tests/unistr/test-u16-set.c: New file.
29577
29578         Tests for module 'unistr/u8-set'.
29579         * modules/unistr/u8-set-tests: New file.
29580         * tests/unistr/test-u8-set.c: New file.
29581         * tests/unistr/test-set.h: New file.
29582
29583         Tests for module 'unistr/u32-move'.
29584         * modules/unistr/u32-move-tests: New file.
29585         * tests/unistr/test-u32-move.c: New file.
29586
29587         Tests for module 'unistr/u16-move'.
29588         * modules/unistr/u16-move-tests: New file.
29589         * tests/unistr/test-u16-move.c: New file.
29590
29591         Tests for module 'unistr/u8-move'.
29592         * modules/unistr/u8-move-tests: New file.
29593         * tests/unistr/test-u8-move.c: New file.
29594         * tests/unistr/test-move.h: New file.
29595
29596         Tests for module 'unistr/u32-cpy'.
29597         * modules/unistr/u32-cpy-tests: New file.
29598         * tests/unistr/test-u32-cpy.c: New file.
29599
29600         Tests for module 'unistr/u16-cpy'.
29601         * modules/unistr/u16-cpy-tests: New file.
29602         * tests/unistr/test-u16-cpy.c: New file.
29603
29604         Tests for module 'unistr/u8-cpy'.
29605         * modules/unistr/u8-cpy-tests: New file.
29606         * tests/unistr/test-u8-cpy.c: New file.
29607         * tests/unistr/test-cpy.h: New file.
29608
29609 2010-01-09  Bruno Haible  <bruno@clisp.org>
29610
29611         Tests for module 'unistr/u32-uctomb'.
29612         * modules/unistr/u32-uctomb-tests: New file.
29613         * tests/unistr/test-u32-uctomb.c: New file.
29614
29615         Tests for module 'unistr/u16-uctomb'.
29616         * modules/unistr/u16-uctomb-tests: New file.
29617         * tests/unistr/test-u16-uctomb.c: New file.
29618
29619         Tests for module 'unistr/u8-uctomb'.
29620         * modules/unistr/u8-uctomb-tests: New file.
29621         * tests/unistr/test-u8-uctomb.c: New file.
29622
29623         Tests for module 'unistr/u32-mbtoucr'.
29624         * modules/unistr/u32-mbtoucr-tests: New file.
29625         * tests/unistr/test-u32-mbtoucr.c: New file.
29626
29627         Tests for module 'unistr/u16-mbtoucr'.
29628         * modules/unistr/u16-mbtoucr-tests: New file.
29629         * tests/unistr/test-u16-mbtoucr.c: New file.
29630
29631         Tests for module 'unistr/u8-mbtoucr'.
29632         * modules/unistr/u8-mbtoucr-tests: New file.
29633         * tests/unistr/test-u8-mbtoucr.c: New file.
29634
29635         Tests for module 'unistr/u32-mbtouc'.
29636         * modules/unistr/u32-mbtouc-tests: New file.
29637         * tests/unistr/test-u32-mbtouc.c: New file.
29638
29639         Tests for module 'unistr/u16-mbtouc'.
29640         * modules/unistr/u16-mbtouc-tests: New file.
29641         * tests/unistr/test-u16-mbtouc.c: New file.
29642
29643         Tests for module 'unistr/u8-mbtouc'.
29644         * modules/unistr/u8-mbtouc-tests: New file.
29645         * tests/unistr/test-u8-mbtouc.c: New file.
29646
29647         Tests for module 'unistr/u32-mbtouc-unsafe'.
29648         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29649         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29650         * tests/unistr/test-u32-mbtouc.h: New file.
29651
29652         Tests for module 'unistr/u16-mbtouc-unsafe'.
29653         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29654         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29655         * tests/unistr/test-u16-mbtouc.h: New file.
29656
29657         Tests for module 'unistr/u8-mbtouc-unsafe'.
29658         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29659         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29660         * tests/unistr/test-u8-mbtouc.h: New file.
29661
29662         Tests for module 'unistr/u32-mblen'.
29663         * modules/unistr/u32-mblen-tests: New file.
29664         * tests/unistr/test-u32-mblen.c: New file.
29665
29666         Tests for module 'unistr/u16-mblen'.
29667         * modules/unistr/u16-mblen-tests: New file.
29668         * tests/unistr/test-u16-mblen.c: New file.
29669
29670         Tests for module 'unistr/u8-mblen'.
29671         * modules/unistr/u8-mblen-tests: New file.
29672         * tests/unistr/test-u8-mblen.c: New file.
29673
29674         Tests for module 'unistr/u32-to-u16'.
29675         * modules/unistr/u32-to-u16-tests: New file.
29676         * tests/unistr/test-u32-to-u16.c: New file.
29677
29678         Tests for module 'unistr/u32-to-u8'.
29679         * modules/unistr/u32-to-u8-tests: New file.
29680         * tests/unistr/test-u32-to-u8.c: New file.
29681
29682         Tests for module 'unistr/u16-to-u32'.
29683         * modules/unistr/u16-to-u32-tests: New file.
29684         * tests/unistr/test-u16-to-u32.c: New file.
29685
29686         Tests for module 'unistr/u16-to-u8'.
29687         * modules/unistr/u16-to-u8-tests: New file.
29688         * tests/unistr/test-u16-to-u8.c: New file.
29689
29690         Tests for module 'unistr/u8-to-u32'.
29691         * modules/unistr/u8-to-u32-tests: New file.
29692         * tests/unistr/test-u8-to-u32.c: New file.
29693
29694         Tests for module 'unistr/u8-to-u16'.
29695         * modules/unistr/u8-to-u16-tests: New file.
29696         * tests/unistr/test-u8-to-u16.c: New file.
29697
29698         Tests for module 'unistr/u32-check'.
29699         * modules/unistr/u32-check-tests: New file.
29700         * tests/unistr/test-u32-check.c: New file.
29701
29702         Tests for module 'unistr/u16-check'.
29703         * modules/unistr/u16-check-tests: New file.
29704         * tests/unistr/test-u16-check.c: New file.
29705
29706         Tests for module 'unistr/u8-check'.
29707         * modules/unistr/u8-check-tests: New file.
29708         * tests/unistr/test-u8-check.c: New file.
29709
29710         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29711         (category_equals): New function.
29712         (main): Add more tests.
29713         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29714
29715         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29716
29717 2010-01-10  Bruno Haible  <bruno@clisp.org>
29718
29719         unistr/u*-strcoll: Try harder to distinguish different strings.
29720         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29721         compare s1 and s2 to see if they are different.
29722
29723 2010-01-10  Bruno Haible  <bruno@clisp.org>
29724
29725         unistr/u*-stpncpy: Fix the return value.
29726         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29727         description of the return value consistent with stpncpy in glibc.
29728         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29729         written non-NUL unit.
29730
29731 2010-01-10  Bruno Haible  <bruno@clisp.org>
29732
29733         unistr/u*-next: Add missing dependencies.
29734         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29735         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29736         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29737
29738 2010-01-10  Bruno Haible  <bruno@clisp.org>
29739
29740         unistr/u8-mbsnlen: Fix return value for incomplete character.
29741         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29742         u8_mblen.
29743         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29744         Remove unistr/u8-mblen.
29745         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29746         u16_mblen.
29747         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29748         Remove unistr/u16-mblen.
29749
29750 2010-01-10  Bruno Haible  <bruno@clisp.org>
29751
29752         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29753         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29754         Reported by Brian Gough <bjg@gnu.org> and
29755         Chris Clayton <chris2553@googlemail.com> via
29756         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29757
29758 2010-01-09  Bruno Haible  <bruno@clisp.org>
29759
29760         unistr/u16-to-u32: Reject invalid input.
29761         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29762         u16_mbtouc.
29763         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29764         Remove unistr/u16-mbtouc.
29765
29766         unistr/u16-to-u8: Reject invalid input.
29767         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29768         u16_mbtouc.
29769         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29770         Remove unistr/u16-mbtouc.
29771
29772         unistr/u8-to-u32: Reject invalid input.
29773         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29774         u8_mbtouc.
29775         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29776         Remove unistr/u8-mbtouc.
29777
29778         unistr/u8-to-u16: Reject invalid input.
29779         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29780         u8_mbtouc.
29781         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29782         Remove unistr/u8-mbtouc.
29783
29784 2010-01-09  Bruno Haible  <bruno@clisp.org>
29785
29786         Tests for module 'getlogin'.
29787         * modules/getlogin-tests: New file.
29788         * tests/test-getlogin.c: New file.
29789
29790         New module 'getlogin'.
29791         * lib/unistd.in.h (getlogin): New declaration.
29792         * lib/getlogin.c: New file.
29793         * m4/getlogin.m4: New file.
29794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29795         HAVE_GETLOGIN.
29796         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29797         HAVE_GETLOGIN.
29798         * modules/getlogin: New file.
29799         * doc/posix-functions/getlogin.texi: Mention the new module.
29800         Reported by John W. Eaton <jwe@gnu.org>.
29801
29802 2010-01-09  Bruno Haible  <bruno@clisp.org>
29803
29804         getlogin_r: Support for native Windows.
29805         * lib/getlogin_r.c: Include <windows.h>
29806         (getlogin_r): Implement for native Windows.
29807         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29808         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29809         via John W. Eaton <jwe@gnu.org>.
29810
29811 2010-01-09  Bruno Haible  <bruno@clisp.org>
29812
29813         getlogin_r: Small fixes.
29814         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29815         succeeds.
29816         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29817         before testing whether getlogin_r is declared. No need to set
29818         HAVE_DECL_GETLOGIN_R to 1.
29819         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29820
29821 2010-01-09  Bruno Haible  <bruno@clisp.org>
29822
29823         * lib/unistd.in.h (getlogin_r): Add comment.
29824
29825 2010-01-09  Bruno Haible  <bruno@clisp.org>
29826
29827         Tests for module 'getlogin_r'.
29828         * modules/getlogin_r-tests: New file.
29829         * tests/test-getlogin_r.c: New file.
29830
29831 2010-01-09  Jim Meyering  <meyering@redhat.com>
29832
29833         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29834         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29835         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29836
29837 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29838
29839         * lib/dup2.c (rpl_dup2): Improve comment.
29840
29841 2010-01-08  Eric Blake  <ebb9@byu.net>
29842
29843         maint.mk: allow packages to add makefile @@ exceptions
29844         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29845         (sc_makefile_check): Rename...
29846         (sc_makefile_at_at_check): ...to this, and use hook.
29847
29848         dup2: work around mingw bug
29849         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29850         Reported by Simon Josefsson.
29851
29852 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29853
29854         glob: Fix C++ compilation.
29855         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29856         C++.
29857
29858 2010-01-07  Bruno Haible  <bruno@clisp.org>
29859
29860         Fix indentation of wctype.in.h, broken since 2007-01-06.
29861         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29862
29863 2010-01-07  Bruno Haible  <bruno@clisp.org>
29864
29865         mbslen: Avoid collision with system function.
29866         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29867         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29868         * m4/mbslen.m4: New file.
29869         * modules/mbslen (Files): Add it.
29870         (configure.ac): Invoke gl_MBSLEN.
29871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29872         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29873         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29874         via Ian Beckwith <ianb@erislabs.net>.
29875
29876 2010-01-07  Bruno Haible  <bruno@clisp.org>
29877
29878         dirent: Document the last fix.
29879         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29880
29881 2010-01-07  Bruno Haible  <bruno@clisp.org>
29882
29883         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29884         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29885         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29886         va_list are defined.
29887         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29888         Reported by Eric Blake.
29889
29890 2010-01-07  Bruno Haible  <bruno@clisp.org>
29891
29892         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29893         * modules/xlist (Depends-on): Add 'list',
29894         * modules/xoset (Depends-on): Add 'oset'.
29895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29896
29897 2010-01-07  Bruno Haible  <bruno@clisp.org>
29898
29899         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29900         * doc/posix-functions/strncasecmp.texi: Likewise.
29901
29902 2010-01-07  Bruno Haible  <bruno@clisp.org>
29903
29904         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29905
29906 2010-01-07  John W. Eaton  <jwe@octave.org>
29907
29908         wctype: allow C++ use
29909         * lib/wctype.in.h: Add extern "C" block for C++.
29910
29911 2010-01-06  Eric Blake  <ebb9@byu.net>
29912
29913         maint.mk: detect incorrect GFDL usage
29914         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29915
29916 2010-01-06  Jim Meyering  <meyering@redhat.com>
29917         and Eric Blake  <ebb9@byu.net>
29918
29919         maint.mk: ignore multi-line copyright in NEWS
29920         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29921
29922 2010-01-06  Eric Blake  <ebb9@byu.net>
29923
29924         select: add missing dependency
29925         * modules/select-tests (Depends-on): Move sockets dependency...
29926         * modules/select (Depends-on): ...here.
29927         Reported by Ian Beckwith.
29928
29929         doc: regenerate INSTALL
29930         * doc/INSTALL: Reflect recent autoconf update.
29931         * doc/INSTALL.ISO: Likewise.
29932         * doc/INSTALL.UTF-8: Likewise.
29933
29934         pread: fix compilation on glibc
29935         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29936         Reported by Ralf Wildenhues.
29937
29938         dirent: fix test failure
29939         * lib/dirent.in.h (includes): Guarantee ino_t.
29940         Reported by Ralf Wildenhues.
29941
29942 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29943
29944         linkat, renameat: avoid bad free
29945         * lib/at-func2.c (at_func2): Fix typo.
29946         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29947
29948 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29949
29950         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29951         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29952         to avoid failure of symlink test later.
29953
29954 2010-01-06  Eric Blake  <ebb9@byu.net>
29955
29956         stdio, unistd: guarantee ssize_t
29957         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29958         2008 are exposed when needed.
29959         * lib/stdio.in.h (includes): Likewise.
29960         Reported by Ralf Wildenhues.
29961
29962 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29963
29964         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29965         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29966         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29967
29968 2010-01-06  Jim Meyering  <meyering@redhat.com>
29969
29970         readtokens: this module *does* require xalloc.h
29971         It uses only functions that were omitted by the old syntax-check rule.
29972         * lib/readtokens.c: Include "xalloc.h" once again.
29973         * modules/readtokens (Depends-on): Add xalloc.
29974         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29975
29976 2010-01-05  Eric Blake  <ebb9@byu.net>
29977
29978         maint: support 'make announcement' from a VPATH build
29979         * top/maint.mk (announcement): Look for correct NEWS file.
29980
29981 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29982
29983         utimens (fdutimens): ignore a negative FD, per contract
29984         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29985         when we have a valid file descriptor.  Otherwise, using a brand
29986         new glibc (with just-patched futimens that now fails with EBADF)
29987         would cause this function to fail with ENOSYS.
29988         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29989         See also http://bugzilla.redhat.com/552320.
29990
29991 2010-01-05  Eric Blake  <ebb9@byu.net>
29992
29993         strcase: document what it provides
29994         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29995         gnulib module.
29996         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29997         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29998
29999 2010-01-05  Jim Meyering  <meyering@redhat.com>
30000
30001         maint: remove useless inclusions of "xalloc.h"
30002         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30003         * lib/readtokens.c: Likewise.
30004         * lib/same.c: Likewise.
30005         * modules/getloadavg (Depends-on): Remove xalloc.
30006         * modules/readtokens: Likewise.
30007         * modules/same: Likewise.
30008
30009         maint.mk: include 4 more function names in alloca.h-checking regexp
30010         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30011         regexp.  Before, we would give a false-positive (saying alloca.h
30012         is included unnecessarily) when the only uses involved omitted symbols.
30013
30014         xalloc.h: use consistent formatting
30015         * lib/xalloc.h: Move declarations to start in the first column.
30016
30017 2010-01-05  Eric Blake  <ebb9@byu.net>
30018
30019         mkdir: avoid xalloc
30020         * lib/mkdir.c (includes): Drop unused header.
30021         Reported by John W. Eaton.
30022
30023 2010-01-04  Jim Meyering  <meyering@redhat.com>
30024
30025         nl_langinfo: avoid configure-time syntax error
30026         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30027         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30028         the empty string.  Don't let that provoke a shell syntax error.
30029
30030         regcomp, regexec, fnmatch: avoid array bounds read error
30031         * lib/regcomp.c (build_equiv_class): From glibc:
30032         Use only the low 24 bits of a findidx return value as an index
30033         into the weights array.  Patch by Ulrich Drepper:
30034         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30035         * lib/regexec.c (check_node_accept_bytes): Likewise.
30036         * lib/fnmatch_loop.c (FCT): Likewise.
30037
30038         regcomp: skip collseq lookup when there are no rules
30039         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30040         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30041
30042         regcomp: recognize ill-formed { } expressions
30043         * lib/regcomp.c (parse_dup_op): From glibc:
30044         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30045
30046         regcomp: fix typo in comment
30047         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30048         s/satisfy/satisfies/.
30049
30050         regcomp: sync from glibc: remove dead store
30051         * lib/regcomp.c (duplicate_node_closure): Remove useless
30052         search_duplicated_node call and dead store.
30053
30054         regcomp: sync from glibc; always use nl_langinfo
30055         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30056         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30057         * modules/regex (Depends-on): Add nl_langinfo.
30058
30059 2010-01-04  Eric Blake  <ebb9@byu.net>
30060
30061         fdopendir: fix configure test
30062         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30063
30064 2010-01-01  Bruno Haible  <bruno@clisp.org>
30065
30066         wchar: Remove unused configure check.
30067         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30068
30069 2010-01-01  Eric Blake  <ebb9@byu.net>
30070
30071         headers: make check of system header explicit
30072         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30073         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30074         ourselves.
30075         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30076         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30077         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30078         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30079         internals.
30080         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30081         missing.
30082         Suggested by Bruno Haible.
30083
30084 2010-01-01  Jim Meyering  <meyering@redhat.com>
30085
30086         ChangeLog: tweak to eliminate unnecessary copyright line
30087         * ChangeLog: Remove a copyright line that was mistakenly updated
30088         by today's update-copyright run.  Reported by Eric Blake.
30089
30090         test-update-copyright: don't let envvar setting cause test failure
30091         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30092
30093 2010-01-01  Bruno Haible  <bruno@clisp.org>
30094
30095         localename: Avoid gcc warning.
30096         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30097         function if it is not used.
30098
30099 2010-01-01  Jim Meyering  <meyering@redhat.com>
30100
30101         update nearly all FSF copyright year lists to include 2010
30102         Use the same procedure as for 2009, outlined in
30103         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30104
30105         version-etc: set COPYRIGHT_YEAR to 2010
30106         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30107
30108 2009-12-31  Eric Blake  <ebb9@byu.net>
30109
30110         doc: correct availability of cygwin 1.5.x getopt
30111         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30112         variables.
30113         * doc/posix-functions/opterr.texi (opterr): Likewise.
30114         * doc/posix-functions/optind.texi (optind): Likewise.
30115         * doc/posix-functions/optopt.texi (optopt): Likewise.
30116         * doc/posix-functions/tzname.texi (tzname): Likewise.
30117
30118         openat: update maintainer
30119         * modules/openat (Maintainer): Add myself.
30120
30121         utimens: avoid shadowing warning
30122         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30123         buffers into one, to avoid shadowing, as well as avoiding a
30124         redundant stat.
30125         Reported by Jim Meyering.
30126
30127         test-dup2: avoid compiler warning
30128         * tests/test-dup2.c (is_inheritable): Only define if used.
30129
30130 2010-01-01  Bruno Haible  <bruno@clisp.org>
30131
30132         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30133         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30134         defined, use wctomb instead of wcrtomb.
30135
30136 2010-01-01  Bruno Haible  <bruno@clisp.org>
30137
30138         iconv: Reject native Solaris iconv.
30139         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30140         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30141
30142 2009-12-31  Bruno Haible  <bruno@clisp.org>
30143
30144         * tests/test-signal.c (main): Remove test of 'SIG'.
30145
30146 2009-12-31  Bruno Haible  <bruno@clisp.org>
30147
30148         spawn: Fix incomplete fix.
30149         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30150         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30151         warnings for GNULIB_POSIXCHECK again.
30152         Reported by Eric Blake.
30153
30154 2009-12-31  Bruno Haible  <bruno@clisp.org>
30155
30156         Avoid namespace pollution on glibc systems.
30157         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30158         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30159         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30160         glibc systems.
30161
30162 2009-12-31  Bruno Haible  <bruno@clisp.org>
30163
30164         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30165         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30166         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30167         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30168         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30169         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30170         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30171
30172 2009-12-31  Bruno Haible  <bruno@clisp.org>
30173
30174         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30175         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30176         afterwards.
30177
30178 2009-12-31  Bruno Haible  <bruno@clisp.org>
30179
30180         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30181         SYS_UTSNAME_H.
30182
30183 2009-12-31  Bruno Haible  <bruno@clisp.org>
30184
30185         spawn: Fix misapplied patch.
30186         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30187         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30188         warnings for GNULIB_POSIXCHECK.
30189
30190 2009-12-31  Bruno Haible  <bruno@clisp.org>
30191
30192         times: Update after sys_times changed.
30193         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30194         * modules/times (Files): Add it.
30195         (configure.ac): Invoke gl_FUNC_TIMES.
30196
30197 2009-12-31  Bruno Haible  <bruno@clisp.org>
30198
30199         Use AC_C_INLINE where necessary.
30200         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30201         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30202         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30203         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30204         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30205         * m4/mbiter.m4 (gl_MBITER): Likewise.
30206         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30207         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30208         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30209         * modules/u64 (configure.ac): Likewise.
30210
30211 2009-12-31  Bruno Haible  <bruno@clisp.org>
30212
30213         Use AC_C_INLINE instead of module 'inline' where possible.
30214         * modules/inline (Description): Clarify purpose.
30215         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30216         * modules/count-one-bits (Depends-on): Remove inline.
30217         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30218         * modules/openat (Depends-on): Remove inline.
30219         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30220         instead of depending on module 'inline'.
30221         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30222         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30223         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30224         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30225         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30226         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30227         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30228         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30229         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30230         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30231         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30232         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30233         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30234         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30235         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30236         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30237         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30238         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30239         Likewise.
30240         * modules/unictype/property-ascii-hex-digit (Depends-on,
30241         configure.ac): Likewise.
30242         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30243         configure.ac): Likewise.
30244         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30245         configure.ac): Likewise.
30246         * modules/unictype/property-bidi-block-separator (Depends-on,
30247         configure.ac): Likewise.
30248         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30249         configure.ac): Likewise.
30250         * modules/unictype/property-bidi-common-separator (Depends-on,
30251         configure.ac): Likewise.
30252         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30253         Likewise.
30254         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30255         configure.ac): Likewise.
30256         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30257         configure.ac): Likewise.
30258         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30259         configure.ac): Likewise.
30260         * modules/unictype/property-bidi-european-digit (Depends-on,
30261         configure.ac): Likewise.
30262         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30263         configure.ac): Likewise.
30264         * modules/unictype/property-bidi-left-to-right (Depends-on,
30265         configure.ac): Likewise.
30266         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30267         configure.ac): Likewise.
30268         * modules/unictype/property-bidi-other-neutral (Depends-on,
30269         configure.ac): Likewise.
30270         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30271         Likewise.
30272         * modules/unictype/property-bidi-segment-separator (Depends-on,
30273         configure.ac): Likewise.
30274         * modules/unictype/property-bidi-whitespace (Depends-on,
30275         configure.ac): Likewise.
30276         * modules/unictype/property-combining (Depends-on, configure.ac):
30277         Likewise.
30278         * modules/unictype/property-composite (Depends-on, configure.ac):
30279         Likewise.
30280         * modules/unictype/property-currency-symbol (Depends-on,
30281         configure.ac): Likewise.
30282         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30283         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30284         Likewise.
30285         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30286         configure.ac): Likewise.
30287         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30288         Likewise.
30289         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30290         Likewise.
30291         * modules/unictype/property-extender (Depends-on, configure.ac):
30292         Likewise.
30293         * modules/unictype/property-format-control (Depends-on, configure.ac):
30294         Likewise.
30295         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30296         Likewise.
30297         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30298         Likewise.
30299         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30300         Likewise.
30301         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30302         Likewise.
30303         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30304         Likewise.
30305         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30306         Likewise.
30307         * modules/unictype/property-id-start (Depends-on, configure.ac):
30308         Likewise.
30309         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30310         Likewise.
30311         * modules/unictype/property-ids-binary-operator (Depends-on,
30312         configure.ac): Likewise.
30313         * modules/unictype/property-ids-trinary-operator (Depends-on,
30314         configure.ac): Likewise.
30315         * modules/unictype/property-ignorable-control (Depends-on,
30316         configure.ac): Likewise.
30317         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30318         Likewise.
30319         * modules/unictype/property-join-control (Depends-on, configure.ac):
30320         Likewise.
30321         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30322         Likewise.
30323         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30324         Likewise.
30325         * modules/unictype/property-logical-order-exception (Depends-on,
30326         configure.ac): Likewise.
30327         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30328         Likewise.
30329         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30330         * modules/unictype/property-non-break (Depends-on, configure.ac):
30331         Likewise.
30332         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30333         Likewise.
30334         * modules/unictype/property-numeric (Depends-on, configure.ac):
30335         Likewise.
30336         * modules/unictype/property-other-alphabetic (Depends-on,
30337         configure.ac): Likewise.
30338         * modules/unictype/property-other-default-ignorable-code-point
30339         (Depends-on, configure.ac): Likewise.
30340         * modules/unictype/property-other-grapheme-extend (Depends-on,
30341         configure.ac): Likewise.
30342         * modules/unictype/property-other-id-continue (Depends-on,
30343         configure.ac): Likewise.
30344         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30345         Likewise.
30346         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30347         Likewise.
30348         * modules/unictype/property-other-math (Depends-on, configure.ac):
30349         Likewise.
30350         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30351         Likewise.
30352         * modules/unictype/property-paired-punctuation (Depends-on,
30353         configure.ac): Likewise.
30354         * modules/unictype/property-paragraph-separator (Depends-on,
30355         configure.ac): Likewise.
30356         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30357         Likewise.
30358         * modules/unictype/property-pattern-white-space (Depends-on,
30359         configure.ac): Likewise.
30360         * modules/unictype/property-private-use (Depends-on, configure.ac):
30361         Likewise.
30362         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30363         Likewise.
30364         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30365         Likewise.
30366         * modules/unictype/property-radical (Depends-on, configure.ac):
30367         Likewise.
30368         * modules/unictype/property-sentence-terminal (Depends-on,
30369         configure.ac): Likewise.
30370         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30371         Likewise.
30372         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30373         * modules/unictype/property-terminal-punctuation (Depends-on,
30374         configure.ac): Likewise.
30375         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30376         Likewise.
30377         * modules/unictype/property-unassigned-code-value (Depends-on,
30378         configure.ac): Likewise.
30379         * modules/unictype/property-unified-ideograph (Depends-on,
30380         configure.ac): Likewise.
30381         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30382         Likewise.
30383         * modules/unictype/property-variation-selector (Depends-on,
30384         configure.ac): Likewise.
30385         * modules/unictype/property-white-space (Depends-on, configure.ac):
30386         Likewise.
30387         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30388         Likewise.
30389         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30390         Likewise.
30391         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30392         Likewise.
30393         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30394         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30395         Likewise.
30396
30397 2009-12-31  Bruno Haible  <bruno@clisp.org>
30398
30399         Remove unnecessary AC_C_INLINE invocation.
30400         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30401         since 2009-08-21.
30402
30403 2009-12-31  Jim Meyering  <meyering@redhat.com>
30404
30405         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30406         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30407         With this change, we can all remove the gpg_key_ID = ... definition
30408         from our respective cfg.mk files.
30409
30410         maint.mk: create announcement template in ~/, not in /tmp
30411         * top/maint.mk (emit_upload_commands): Adjust.
30412         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30413         Remove temporary file, .ci-msg.
30414
30415 2009-12-31  Eric Blake  <ebb9@byu.net>
30416
30417         link-warning: always build headers with link warnings
30418         * modules/arpa_inet (Makefile.am): Always build replacement
30419         header.
30420         * modules/ctype (Makefile.am): Likewise.
30421         * modules/dirent (Makefile.am): Likewise.
30422         * modules/inttypes (Makefile.am): Likewise.
30423         * modules/langinfo (Makefile.am): Likewise.
30424         * modules/locale (Makefile.am): Likewise.
30425         * modules/spawn (Makefile.am): Likewise.
30426         * modules/sys_file (Makefile.am): Likewise.
30427         * modules/sys_ioctl (Makefile.am): Likewise.
30428         * modules/sys_select (Makefile.am): Likewise.
30429         * modules/sys_socket (Makefile.am): Likewise.
30430         * modules/sys_times (Makefile.am): Likewise.
30431         * modules/sys_utsname (Makefile.am): Likewise.
30432         * modules/sys_wait (Makefile.am): Likewise.
30433         * modules/wchar (Makefile.am): Likewise.
30434         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30435         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30436         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30437         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30438         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30439         Likewise.
30440         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30441         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30442         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30443         Likewise.
30444         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30445         Likewise.
30446         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30447         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30448         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30449         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30450         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30451         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30452         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30453         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30454         (gl_WCHAR_H_DEFAULTS): Likewise.
30455
30456 2009-12-31  Eric Blake  <ebb9@byu.net>
30457
30458         signal, spawn: use link warnings
30459         * lib/signal.in.h (sigset_t): Make unconditional.
30460         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30461         (sigpending, sigprocmask, sigaction): Add link warnings.
30462         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30463         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30464         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30465         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30466         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30467         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30468         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30469         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30470         (posix_spawn_file_actions_destroy)
30471         (posix_spawn_file_actions_addopen)
30472         (posix_spawn_file_actions_addclose)
30473         (posix_spawn_file_actions_adddup2): Likewise.
30474         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30475         * tests/test-signal.c (main): Enhance test.
30476
30477         spawn: improve wrapper support
30478         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30479         (gl_SPAWN_H_DEFAULTS): New defaults.
30480         * modules/spawn (Makefile.am): Substitute them.
30481         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30482         Only declare if missing or broken.
30483
30484         sys_times, sys_utsname: use include_next
30485         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30486         header.
30487         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30488         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30489         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30490         * modules/sys_times (Depends-on): Add include_next.
30491         (Makefile.am): Substitute additional values.
30492         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30493         * lib/sys_times.in.h (includes): Include native header, if
30494         available.
30495         * lib/sys_utsname.in.h (includes): Likewise.
30496         * tests/test-sys_times.c (main): Enhance test.
30497
30498         fdutimensat: revert prior patch
30499         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30500         utimens.h.
30501         Reported by Bruno Haible.
30502
30503 2009-12-30  Eric Blake  <ebb9@byu.net>
30504
30505         sys_wait: drop link-warning dependency
30506         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30507         link-warning efforts.
30508         * lib/sys_wait.in.h: Likewise.
30509
30510         fdutimensat: remove bogus dependency
30511         * modules/fdutimensat (Depends-on): Drop inline.
30512
30513         unistd: fix typo
30514         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30515
30516 2009-12-30  Bruno Haible  <bruno@clisp.org>
30517
30518         Fix compilation error with Solaris cc.
30519         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30520         * lib/unicase/u16-is-invariant.c: Likewise.
30521         * lib/unicase/u32-is-invariant.c: Likewise.
30522         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30523
30524 2009-12-30  Bruno Haible  <bruno@clisp.org>
30525
30526         Fix test crash.
30527         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30528         locales.
30529         Reported by Simon Josefsson <simon@josefsson.org>.
30530
30531 2009-12-30  Bruno Haible  <bruno@clisp.org>
30532
30533         Fix compilation error on most platforms.
30534         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30535         Reported by Simon Josefsson <simon@josefsson.org>
30536         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30537
30538 2009-12-30  Eric Blake  <ebb9@byu.net>
30539
30540         futimens, utimensat: work around ntfs-3g bug
30541         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30542         a ctime bug is present, and expand workaround to cover ntfs-3g.
30543         * lib/utimens.c (fdutimens, lutimens): Likewise.
30544         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30545         (validate_timespec): Adjust return value.
30546         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30547         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30548         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30549
30550 2009-12-29  Eric Blake  <ebb9@byu.net>
30551
30552         link-warning: make usage consistent
30553         * modules/ctype (Depends-on): Add link-warning.
30554         (Makefile.am): Update rules accordingly.
30555         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30556         * modules/locale (Depends-on, Makefile.am): Likewise.
30557         * modules/sys_file (Makefile.am): Likewise.
30558         * modules/getopt-posix (Makefile.am): Delete unused link warning
30559         efforts.
30560         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30561         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30562         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30563         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30564
30565         stdio: remove unused variables
30566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30567         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30568         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30569
30570         tests: test more substitute headers
30571         * modules/ctype-tests: New file.
30572         * modules/dirent-tests: Likewise.
30573         * modules/spawn-tests: Likewise.
30574         * modules/sys_file-tests: Likewise.
30575         * modules/sys_ioctl-tests: Likewise.
30576         * modules/sys_wait-tests: Likewise.
30577         * tests/test-ctype.c: Likewise.
30578         * tests/test-dirent.c: Likewise.
30579         * tests/test-spawn.c: Likewise.
30580         * tests/test-sys_file.c: Likewise.
30581         * tests/test-sys_ioctl.c: Likewise.
30582         * tests/test-sys_wait.c: Likewise.
30583         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30584         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30585         whether or not flock is in use.
30586
30587         tests: remove License section from module
30588         * modules/arpa_inet-tests: Remove unneeded section.
30589         * modules/byteswap-tests: Likewise.
30590         * modules/ceilf-tests: Likewise.
30591         * modules/ceill-tests: Likewise.
30592         * modules/crypto/des-tests: Likewise.
30593         * modules/crypto/gc-arcfour-tests: Likewise.
30594         * modules/crypto/gc-arctwo-tests: Likewise.
30595         * modules/crypto/gc-des-tests: Likewise.
30596         * modules/crypto/gc-hmac-md5-tests: Likewise.
30597         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30598         * modules/crypto/gc-md2-tests: Likewise.
30599         * modules/crypto/gc-md4-tests: Likewise.
30600         * modules/crypto/gc-md5-tests: Likewise.
30601         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30602         * modules/crypto/gc-rijndael-tests: Likewise.
30603         * modules/crypto/gc-sha1-tests: Likewise.
30604         * modules/crypto/gc-tests: Likewise.
30605         * modules/crypto/md2-tests: Likewise.
30606         * modules/crypto/md4-tests: Likewise.
30607         * modules/fcntl-h-tests: Likewise.
30608         * modules/floorf-tests: Likewise.
30609         * modules/floorl-tests: Likewise.
30610         * modules/frexp-nolibm-tests: Likewise.
30611         * modules/frexp-tests: Likewise.
30612         * modules/frexpl-nolibm-tests: Likewise.
30613         * modules/frexpl-tests: Likewise.
30614         * modules/getaddrinfo-tests: Likewise.
30615         * modules/inttypes-tests: Likewise.
30616         * modules/isfinite-tests: Likewise.
30617         * modules/isinf-tests: Likewise.
30618         * modules/ldexpl-tests: Likewise.
30619         * modules/locale-tests: Likewise.
30620         * modules/math-tests: Likewise.
30621         * modules/netdb-tests: Likewise.
30622         * modules/netinet_in-tests: Likewise.
30623         * modules/printf-frexp-tests: Likewise.
30624         * modules/printf-frexpl-tests: Likewise.
30625         * modules/priv-set-tests: Likewise.
30626         * modules/random_r-tests: Likewise.
30627         * modules/round-tests: Likewise.
30628         * modules/roundf-tests: Likewise.
30629         * modules/roundl-tests: Likewise.
30630         * modules/search-tests: Likewise.
30631         * modules/select-tests: Likewise.
30632         * modules/signal-tests: Likewise.
30633         * modules/stdbool-tests: Likewise.
30634         * modules/stddef-tests: Likewise.
30635         * modules/stdint-tests: Likewise.
30636         * modules/stdio-tests: Likewise.
30637         * modules/stdlib-tests: Likewise.
30638         * modules/string-tests: Likewise.
30639         * modules/strings-tests: Likewise.
30640         * modules/sys_select-tests: Likewise.
30641         * modules/sys_socket-tests: Likewise.
30642         * modules/sys_stat-tests: Likewise.
30643         * modules/sys_time-tests: Likewise.
30644         * modules/sys_utsname-tests: Likewise.
30645         * modules/sysexits-tests: Likewise.
30646         * modules/time-tests: Likewise.
30647         * modules/trunc-tests: Likewise.
30648         * modules/truncf-tests: Likewise.
30649         * modules/truncl-tests: Likewise.
30650         * modules/tsearch-tests: Likewise.
30651         * modules/unistd-tests: Likewise.
30652         * modules/wchar-tests: Likewise.
30653         * modules/wctype-tests: Likewise.
30654
30655         tests: fix license on several tests
30656         * tests/test-des.c: Update to GPLv3+.
30657         * tests/test-flock.c: Likewise.
30658         * tests/test-fsync.c: Likewise.
30659         * tests/test-futimens.h: Likewise.
30660         * tests/test-gc-arcfour.c: Likewise.
30661         * tests/test-gc-arctwo.c: Likewise.
30662         * tests/test-gc-des.c: Likewise.
30663         * tests/test-gc-hmac-md5.c: Likewise.
30664         * tests/test-gc-hmac-sha1.c: Likewise.
30665         * tests/test-gc-md2.c: Likewise.
30666         * tests/test-gc-md4.c: Likewise.
30667         * tests/test-gc-md5.c: Likewise.
30668         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30669         * tests/test-gc-rijndael.c: Likewise.
30670         * tests/test-gc-sha1.c: Likewise.
30671         * tests/test-gc.c: Likewise.
30672         * tests/test-getcwd.c: Likewise.
30673         * tests/test-link.c: Likewise.
30674         * tests/test-link.h: Likewise.
30675         * tests/test-lutimens.h: Likewise.
30676         * tests/test-md2.c: Likewise.
30677         * tests/test-md4.c: Likewise.
30678         * tests/test-mkdir.h: Likewise.
30679         * tests/test-rename.c: Likewise.
30680         * tests/test-rename.h: Likewise.
30681         * tests/test-safe-alloc.c: Likewise.
30682         * tests/test-utimens-common.h: Likewise.
30683         * tests/test-utimens.h: Likewise.
30684
30685         maint: sync license texts
30686         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30687         * doc/gpl-3.0.texi: Revert copyright year update.
30688         * doc/lgpl-3.0.texi: Likewise.
30689
30690 2009-12-29  Jim Meyering  <meyering@redhat.com>
30691
30692         update nearly all FSF copyright year lists to include 2009
30693         The files named by the following are exempted:
30694             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30695               test -f "$dst" && { echo "$dst"; continue; }
30696               test -d "$dst" || continue
30697               echo "$dst"/$(basename "$src")
30698             done > exempt
30699             git ls-files tests/unictype >> exempt
30700         In the remaining files, convert to all-interval notation if
30701         - there is already at least one year interval like 2000-2003
30702         - the file is maintained by me
30703         - the file is in lib/uni*/, where that style already prevails
30704         Otherwise, use update-copyright's default.
30705
30706 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30707         and Eric Blake  <ebb9@byu.net>
30708
30709         tests: don't require debug system() to pass
30710         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30711         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30712         * tests/test-unlink.h (test_unlink_func): Likewise.
30713         * tests/test-fstatat.c (main): ...into callers.
30714         * tests/test-lstat.c (main): Likewise.
30715         * tests/test-rmdir.c (main): Likewise.
30716         * tests/test-unlink.c (main): Likewise.
30717         * tests/test-unlinkat.c (main): Likewise.
30718         * tests/test-areadlink-with-size.c (main): Don't require a
30719         debug-only system call to pass, aiding cross-testing to mingw.
30720         * tests/test-areadlink.c (main): Likewise.
30721         * tests/test-areadlinkat-with-size.c (main): Likewise.
30722         * tests/test-areadlinkat.c (main): Likewise.
30723         * tests/test-canonicalize-lgpl.c (main): Likewise.
30724         * tests/test-canonicalize.c (main): Likewise.
30725         * tests/test-chown.c (main): Likewise.
30726         * tests/test-fchownat.c (main): Likewise.
30727         * tests/test-lchown.c (main): Likewise.
30728         * tests/test-fdutimensat.c (main): Likewise.
30729         * tests/test-futimens.c (main): Likewise.
30730         * tests/test-link.c (main): Likewise.
30731         * tests/test-linkat.c (main): Likewise.
30732         * tests/test-mkdir.c (main): Likewise.
30733         * tests/test-mkdirat.c (main): Likewise.
30734         * tests/test-mkfifo.c (main): Likewise.
30735         * tests/test-mkfifoat.c (main): Likewise.
30736         * tests/test-mknod.c (main): Likewise.
30737         * tests/test-readlink.c (main): Likewise.
30738         * tests/test-remove.c (main): Likewise.
30739         * tests/test-rename.c (main): Likewise.
30740         * tests/test-renameat.c (main): Likewise.
30741         * tests/test-symlink.c (main): Likewise.
30742         * tests/test-symlinkat.c (main): Likewise.
30743         * tests/test-utimens.c (main): Likewise.
30744         * tests/test-utimensat.c (main): Likewise.
30745
30746 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30747
30748         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30749         on $(UNUSED_PARAMETER_H) to avoid build failure.
30750
30751 2009-12-28  Jim Meyering  <meyering@redhat.com>
30752
30753         update-copyright: you may specify a max. line length other than 72
30754         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30755
30756         maint: use consistent FSF copyright line syntax
30757         * lib/posixtm.c: Add missing comma in FSF copyright line.
30758         * lib/posixtm.h: Likewise.
30759         * lib/getugroups.c: Add missing ", Inc.".
30760
30761         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30762         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30763         FSF copyright line.  Remove trailing blanks.
30764
30765 2009-12-28  Eric Blake  <ebb9@byu.net>
30766
30767         test-dup2: reduce dependencies
30768         * modules/cloexec (Configure.ac): Set witness.
30769         * modules/dup2-tests (Depends-on): Drop cloexec.
30770         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30771         not present.
30772         Suggested by Bruno Haible.
30773
30774 2009-12-26  Bruno Haible  <bruno@clisp.org>
30775
30776         Remove an unneeded dependency.
30777         * modules/fseterr (Depends-on): Remove dup2.
30778
30779 2009-12-26  Eric Blake  <ebb9@byu.net>
30780
30781         tests: use macros.h in more places
30782         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30783         (ASSERT_STREAM): Provide default of stderr.
30784         * tests/test-dirent-safer.c: Include macros.h, using alternate
30785         stream for assertions.
30786         * tests/test-dup-safer.c: Likewise.
30787         * tests/test-freopen-safer.c: Likewise.
30788         * tests/test-getopt.c: Likewise.
30789         * tests/test-openat-safer.c: Likewise.
30790         * tests/test-pipe.c: Likewise.
30791         * tests/test-popen-safer.c: Likewise.
30792         * modules/dirent-safer-tests (Files): Include macros.h.
30793         * modules/unistd-safer-tests (Files): Likewise.
30794         * modules/freopen-safer-tests (Files): Likewise.
30795         * modules/getopt-posix-tests (Files): Likewise.
30796         * modules/openat-safer-tests (Files): Likewise.
30797         * modules/pipe-tests (Files): Likewise.
30798
30799 2009-12-26  Bruno Haible  <bruno@clisp.org>
30800
30801         javacomp: Portability fix.
30802         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30803         that it also works on Solaris.
30804
30805 2009-12-26  Bruno Haible  <bruno@clisp.org>
30806
30807         localename: Fix storage allocation of gl_locale_name_thread's result.
30808         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30809         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30810         all platforms that have 'uselocale'.
30811         (gl_locale_name_thread_unsafe): New function, extracted from
30812         gl_locale_name_thread.
30813         (gl_locale_name_thread): Call struniq on all platforms that have
30814         'uselocale'.
30815         * tests/test-localename.c (test_locale_name_thread): Check that the
30816         resulting strings are permanently allocated.
30817         * modules/localename-tests (Depends-on): Add strdup.
30818
30819 2009-12-26  Bruno Haible  <bruno@clisp.org>
30820
30821         * tests/test-localename.c (categories): Fill in the strings.
30822
30823 2009-12-26  Jim Meyering  <meyering@redhat.com>
30824
30825         isdir: complete the removal of m4/isdir.m4
30826         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30827
30828         isdir: clean up, since at least grep still uses it
30829         * lib/isdir.c: Include "isdir.h".
30830         (S_ISDIR): Remove now-unneeded definition.
30831         * modules/isdir (Files): Add lib/isdir.h.
30832         * lib/isdir.h: New file, with declaration.
30833         * m4/isdir.m4: Remove file -- unneeded.
30834
30835 2009-12-25  Bruno Haible  <bruno@clisp.org>
30836
30837         selinux-h: Make generated .h files standalone.
30838         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30839         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30840         * lib/se-selinux.in.h: Likewise.
30841         * modules/selinux-h (Depends-on): Add unused-parameter.
30842         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30843         selinux/selinux.h and selinux/context.h.
30844         Suggested by Eric Blake.
30845
30846 2009-12-25  Bruno Haible  <bruno@clisp.org>
30847
30848         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30849         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30850         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30851         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30852         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30853
30854 2009-12-24  Bruno Haible  <bruno@clisp.org>
30855
30856         openat: Fix warning.
30857         * lib/openat-proc.c: Include <unistd.h>.
30858
30859 2009-12-24  Bruno Haible  <bruno@clisp.org>
30860
30861         New module 'unused-parameter'.
30862         * build-aux/unused-parameter.h: New file, extracted from earlier
30863         gnulib-common.m4.
30864         * modules/unused-parameter: New file.
30865         * lib/unistr.h: Include unused-parameter.h.
30866         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30867         _GL_UNUSED.
30868         * modules/unistr/base (Depends-on): Add unused-parameter.
30869
30870 2009-12-24  Bruno Haible  <bruno@clisp.org>
30871
30872         Add missing dependencies to 'extensions' module.
30873         * m4/extensions.m4: Add comment.
30874         * modules/accept4 (Depends-on): Add extensions.
30875         * modules/dup3 (Depends-on): Likewise.
30876         * modules/fcntl (Depends-on): Likewise.
30877         * modules/futimens (Depends-on): Likewise.
30878         * modules/mknod (Depends-on): Likewise.
30879         * modules/pipe2 (Depends-on): Likewise.
30880         * modules/stat-time (Depends-on): Likewise.
30881         * modules/strcasestr-simple (Depends-on): Likewise.
30882         * modules/strsignal (Depends-on): Likewise.
30883         * modules/utimensat (Depends-on): Likewise.
30884         * modules/localcharset (Depends-on): Likewise. Needed because of
30885         gl_FCNTL_O_FLAGS.
30886         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30887         AC_TYPE_MBSTATE_T.
30888         * modules/wcsnrtombs (Depends-on): Likewise.
30889         * modules/wcsrtombs (Depends-on): Likewise.
30890
30891 2009-12-24  Bruno Haible  <bruno@clisp.org>
30892
30893         binary-io: Avoid gcc warning due to SET_BINARY.
30894         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30895         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30896
30897 2009-12-24  Bruno Haible  <bruno@clisp.org>
30898
30899         Avoid future namespace pollution on glibc systems.
30900         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30901         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30902         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30903         glibc systems.
30904
30905 2009-12-24  Bruno Haible  <bruno@clisp.org>
30906
30907         Refactor common macros used in tests.
30908         * tests/macros.h: New file.
30909         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30910         and/or <stdlib.h>, if appropriate.
30911         (ASSERT, SIZEOF): Remove macros.
30912         * tests/test-areadlink-with-size.c: Likewise.
30913         * tests/test-areadlinkat.c: Likewise.
30914         * tests/test-areadlinkat-with-size.c: Likewise.
30915         * tests/test-argmatch.c: Likewise.
30916         * tests/test-argv-iter.c: Likewise.
30917         * tests/test-array-mergesort.c: Likewise.
30918         * tests/test-array_list.c: Likewise.
30919         * tests/test-array_oset.c: Likewise.
30920         * tests/test-avltree_list.c: Likewise.
30921         * tests/test-avltree_oset.c: Likewise.
30922         * tests/test-avltreehash_list.c: Likewise.
30923         * tests/test-base64.c: Likewise.
30924         * tests/test-binary-io.c: Likewise.
30925         * tests/test-bitrotate.c: Likewise.
30926         * tests/test-btowc.c: Likewise.
30927         * tests/test-byteswap.c: Likewise.
30928         * tests/test-c-ctype.c: Likewise.
30929         * tests/test-c-stack.c: Likewise.
30930         * tests/test-c-strcasecmp.c: Likewise.
30931         * tests/test-c-strcasestr.c: Likewise.
30932         * tests/test-c-strncasecmp.c: Likewise.
30933         * tests/test-c-strstr.c: Likewise.
30934         * tests/test-canonicalize-lgpl.c: Likewise.
30935         * tests/test-canonicalize.c: Likewise.
30936         * tests/test-carray_list.c: Likewise.
30937         * tests/test-ceilf1.c: Likewise.
30938         * tests/test-ceilf2.c: Likewise.
30939         * tests/test-ceill.c: Likewise.
30940         * tests/test-chown.c: Likewise.
30941         * tests/test-cloexec.c: Likewise.
30942         * tests/test-copy-acl.c: Likewise.
30943         * tests/test-copy-file.c: Likewise.
30944         * tests/test-count-one-bits.c: Likewise.
30945         * tests/test-dprintf-posix.c: Likewise.
30946         * tests/test-dup2.c: Likewise.
30947         * tests/test-dup3.c: Likewise.
30948         * tests/test-duplocale.c: Likewise.
30949         * tests/test-fbufmode.c: Likewise.
30950         * tests/test-fchdir.c: Likewise.
30951         * tests/test-fchownat.c: Likewise.
30952         * tests/test-fcntl-safer.c: Likewise.
30953         * tests/test-fcntl.c: Likewise.
30954         * tests/test-fdopendir.c: Likewise.
30955         * tests/test-fdutimensat.c: Likewise.
30956         * tests/test-fflush2.c: Likewise.
30957         * tests/test-file-has-acl.c: Likewise.
30958         * tests/test-filevercmp.c: Likewise.
30959         * tests/test-flock.c: Likewise.
30960         * tests/test-floorf1.c: Likewise.
30961         * tests/test-floorf2.c: Likewise.
30962         * tests/test-floorl.c: Likewise.
30963         * tests/test-fnmatch.c: Likewise.
30964         * tests/test-fopen.h: Likewise.
30965         * tests/test-fpending.c: Likewise.
30966         * tests/test-fprintf-posix.c: Likewise.
30967         * tests/test-fpurge.c: Likewise.
30968         * tests/test-freadable.c: Likewise.
30969         * tests/test-freadahead.c: Likewise.
30970         * tests/test-freading.c: Likewise.
30971         * tests/test-freadptr.c: Likewise.
30972         * tests/test-freadptr2.c: Likewise.
30973         * tests/test-freadseek.c: Likewise.
30974         * tests/test-freopen.c: Likewise.
30975         * tests/test-frexp.c: Likewise.
30976         * tests/test-frexpl.c: Likewise.
30977         * tests/test-fseek.c: Likewise.
30978         * tests/test-fseeko.c: Likewise.
30979         * tests/test-fstatat.c: Likewise.
30980         * tests/test-fstrcmp.c: Likewise.
30981         * tests/test-fsync.c: Likewise.
30982         * tests/test-ftell.c: Likewise.
30983         * tests/test-ftello.c: Likewise.
30984         * tests/test-func.c: Likewise.
30985         * tests/test-futimens.c: Likewise.
30986         * tests/test-fwritable.c: Likewise.
30987         * tests/test-fwriting.c: Likewise.
30988         * tests/test-getcwd.c: Likewise.
30989         * tests/test-getdate.c: Likewise.
30990         * tests/test-getdelim.c: Likewise.
30991         * tests/test-getdtablesize.c: Likewise.
30992         * tests/test-getgroups.c: Likewise.
30993         * tests/test-getline.c: Likewise.
30994         * tests/test-getndelim2.c: Likewise.
30995         * tests/test-glob.c: Likewise.
30996         * tests/test-hash.c: Likewise.
30997         * tests/test-i-ring.c: Likewise.
30998         * tests/test-iconv-utf.c: Likewise.
30999         * tests/test-iconv.c: Likewise.
31000         * tests/test-idpriv-drop.c: Likewise.
31001         * tests/test-idpriv-droptemp.c: Likewise.
31002         * tests/test-inet_ntop.c: Likewise.
31003         * tests/test-inet_pton.c: Likewise.
31004         * tests/test-isblank.c: Likewise.
31005         * tests/test-isfinite.c: Likewise.
31006         * tests/test-isinf.c: Likewise.
31007         * tests/test-isnan.c: Likewise.
31008         * tests/test-isnand.h: Likewise.
31009         * tests/test-isnanf.h: Likewise.
31010         * tests/test-isnanl.h: Likewise.
31011         * tests/test-lchown.c: Likewise.
31012         * tests/test-ldexpl.c: Likewise.
31013         * tests/test-link.c: Likewise.
31014         * tests/test-linkat.c: Likewise.
31015         * tests/test-linked_list.c: Likewise.
31016         * tests/test-linkedhash_list.c: Likewise.
31017         * tests/test-localename.c: Likewise.
31018         * tests/test-lseek.c: Likewise.
31019         * tests/test-lstat.c: Likewise.
31020         * tests/test-mbmemcasecmp.c: Likewise.
31021         * tests/test-mbmemcasecoll.c: Likewise.
31022         * tests/test-mbrtowc.c: Likewise.
31023         * tests/test-mbscasecmp.c: Likewise.
31024         * tests/test-mbscasestr1.c: Likewise.
31025         * tests/test-mbscasestr2.c: Likewise.
31026         * tests/test-mbscasestr3.c: Likewise.
31027         * tests/test-mbscasestr4.c: Likewise.
31028         * tests/test-mbschr.c: Likewise.
31029         * tests/test-mbscspn.c: Likewise.
31030         * tests/test-mbsinit.c: Likewise.
31031         * tests/test-mbsncasecmp.c: Likewise.
31032         * tests/test-mbsnrtowcs.c: Likewise.
31033         * tests/test-mbspbrk.c: Likewise.
31034         * tests/test-mbspcasecmp.c: Likewise.
31035         * tests/test-mbsrchr.c: Likewise.
31036         * tests/test-mbsrtowcs.c: Likewise.
31037         * tests/test-mbsspn.c: Likewise.
31038         * tests/test-mbsstr1.c: Likewise.
31039         * tests/test-mbsstr2.c: Likewise.
31040         * tests/test-mbsstr3.c: Likewise.
31041         * tests/test-memchr.c: Likewise.
31042         * tests/test-memchr2.c: Likewise.
31043         * tests/test-memcmp.c: Likewise.
31044         * tests/test-memmem.c: Likewise.
31045         * tests/test-memrchr.c: Likewise.
31046         * tests/test-mkdir.c: Likewise.
31047         * tests/test-mkdirat.c: Likewise.
31048         * tests/test-mkfifo.c: Likewise.
31049         * tests/test-mkfifoat.c: Likewise.
31050         * tests/test-mknod.c: Likewise.
31051         * tests/test-nanosleep.c: Likewise.
31052         * tests/test-nl_langinfo.c: Likewise.
31053         * tests/test-obstack-printf.c: Likewise.
31054         * tests/test-open.c: Likewise.
31055         * tests/test-openat.c: Likewise.
31056         * tests/test-pipe-filter-gi1.c: Likewise.
31057         * tests/test-pipe-filter-gi2-main.c: Likewise.
31058         * tests/test-pipe-filter-ii1.c: Likewise.
31059         * tests/test-pipe-filter-ii2-main.c: Likewise.
31060         * tests/test-pipe2.c: Likewise.
31061         * tests/test-popen.h: Likewise.
31062         * tests/test-posixtm.c: Likewise.
31063         * tests/test-pread.c: Likewise.
31064         * tests/test-printf-frexp.c: Likewise.
31065         * tests/test-printf-frexpl.c: Likewise.
31066         * tests/test-printf-posix.c: Likewise.
31067         * tests/test-priv-set.c: Likewise.
31068         * tests/test-quotearg.c: Likewise.
31069         * tests/test-random_r.c: Likewise.
31070         * tests/test-rawmemchr.c: Likewise.
31071         * tests/test-rbtree_list.c: Likewise.
31072         * tests/test-rbtree_oset.c: Likewise.
31073         * tests/test-rbtreehash_list.c: Likewise.
31074         * tests/test-readlink.c: Likewise.
31075         * tests/test-remove.c: Likewise.
31076         * tests/test-rename.c: Likewise.
31077         * tests/test-renameat.c: Likewise.
31078         * tests/test-rmdir.c: Likewise.
31079         * tests/test-round1.c: Likewise.
31080         * tests/test-roundf1.c: Likewise.
31081         * tests/test-roundl.c: Likewise.
31082         * tests/test-safe-alloc.c: Likewise.
31083         * tests/test-sameacls.c: Likewise.
31084         * tests/test-set-mode-acl.c: Likewise.
31085         * tests/test-setenv.c: Likewise.
31086         * tests/test-sigaction.c: Likewise.
31087         * tests/test-signbit.c: Likewise.
31088         * tests/test-sleep.c: Likewise.
31089         * tests/test-snprintf-posix.c: Likewise.
31090         * tests/test-snprintf.c: Likewise.
31091         * tests/test-sprintf-posix.c: Likewise.
31092         * tests/test-stat-time.c: Likewise.
31093         * tests/test-stat.c: Likewise.
31094         * tests/test-strcasestr.c: Likewise.
31095         * tests/test-strchrnul.c: Likewise.
31096         * tests/test-strerror.c: Likewise.
31097         * tests/test-striconv.c: Likewise.
31098         * tests/test-striconveh.c: Likewise.
31099         * tests/test-striconveha.c: Likewise.
31100         * tests/test-strsignal.c: Likewise.
31101         * tests/test-strstr.c: Likewise.
31102         * tests/test-strtod.c: Likewise.
31103         * tests/test-strverscmp.c: Likewise.
31104         * tests/test-symlink.c: Likewise.
31105         * tests/test-symlinkat.c: Likewise.
31106         * tests/test-trunc1.c: Likewise.
31107         * tests/test-trunc2.c: Likewise.
31108         * tests/test-truncf1.c: Likewise.
31109         * tests/test-truncf2.c: Likewise.
31110         * tests/test-truncl.c: Likewise.
31111         * tests/test-uname.c: Likewise.
31112         * tests/test-unlink.c: Likewise.
31113         * tests/test-unlinkat.c: Likewise.
31114         * tests/test-unsetenv.c: Likewise.
31115         * tests/test-usleep.c: Likewise.
31116         * tests/test-utimens.c: Likewise.
31117         * tests/test-utimensat.c: Likewise.
31118         * tests/test-vasnprintf-posix.c: Likewise.
31119         * tests/test-vasnprintf-posix2.c: Likewise.
31120         * tests/test-vasnprintf.c: Likewise.
31121         * tests/test-vasprintf-posix.c: Likewise.
31122         * tests/test-vasprintf.c: Likewise.
31123         * tests/test-vdprintf-posix.c: Likewise.
31124         * tests/test-vfprintf-posix.c: Likewise.
31125         * tests/test-vprintf-posix.c: Likewise.
31126         * tests/test-vsnprintf-posix.c: Likewise.
31127         * tests/test-vsnprintf.c: Likewise.
31128         * tests/test-vsprintf-posix.c: Likewise.
31129         * tests/test-wcrtomb.c: Likewise.
31130         * tests/test-wcsnrtombs.c: Likewise.
31131         * tests/test-wcsrtombs.c: Likewise.
31132         * tests/test-wctype.c: Likewise.
31133         * tests/test-wcwidth.c: Likewise.
31134         * tests/test-xfprintf-posix.c: Likewise.
31135         * tests/test-xmemdup0.c: Likewise.
31136         * tests/test-xprintf-posix.c: Likewise.
31137         * tests/test-xvasprintf.c: Likewise.
31138         * tests/unicase/test-locale-language.c: Likewise.
31139         * tests/unicase/test-mapping-part1.h: Likewise.
31140         * tests/unicase/test-predicate-part1.h: Likewise.
31141         * tests/unicase/test-u8-casecmp.c: Likewise.
31142         * tests/unicase/test-u8-casecoll.c: Likewise.
31143         * tests/unicase/test-u8-casefold.c: Likewise.
31144         * tests/unicase/test-u8-is-cased.c: Likewise.
31145         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31146         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31147         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31148         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31149         * tests/unicase/test-u8-tolower.c: Likewise.
31150         * tests/unicase/test-u8-totitle.c: Likewise.
31151         * tests/unicase/test-u8-toupper.c: Likewise.
31152         * tests/unicase/test-u16-casecmp.c: Likewise.
31153         * tests/unicase/test-u16-casecoll.c: Likewise.
31154         * tests/unicase/test-u16-casefold.c: Likewise.
31155         * tests/unicase/test-u16-is-cased.c: Likewise.
31156         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31157         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31158         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31159         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31160         * tests/unicase/test-u16-tolower.c: Likewise.
31161         * tests/unicase/test-u16-totitle.c: Likewise.
31162         * tests/unicase/test-u16-toupper.c: Likewise.
31163         * tests/unicase/test-u32-casecmp.c: Likewise.
31164         * tests/unicase/test-u32-casecoll.c: Likewise.
31165         * tests/unicase/test-u32-casefold.c: Likewise.
31166         * tests/unicase/test-u32-is-cased.c: Likewise.
31167         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31168         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31169         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31170         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31171         * tests/unicase/test-u32-tolower.c: Likewise.
31172         * tests/unicase/test-u32-totitle.c: Likewise.
31173         * tests/unicase/test-u32-toupper.c: Likewise.
31174         * tests/unicase/test-ulc-casecmp.c: Likewise.
31175         * tests/unicase/test-ulc-casecoll.c: Likewise.
31176         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31177         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31178         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31179         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31180         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31181         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31182         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31183         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31184         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31185         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31186         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31187         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31188         * tests/unictype/test-bidi_byname.c: Likewise.
31189         * tests/unictype/test-bidi_name.c: Likewise.
31190         * tests/unictype/test-bidi_of.c: Likewise.
31191         * tests/unictype/test-bidi_test.c: Likewise.
31192         * tests/unictype/test-block_list.c: Likewise.
31193         * tests/unictype/test-block_of.c: Likewise.
31194         * tests/unictype/test-block_test.c: Likewise.
31195         * tests/unictype/test-categ_and.c: Likewise.
31196         * tests/unictype/test-categ_and_not.c: Likewise.
31197         * tests/unictype/test-categ_byname.c: Likewise.
31198         * tests/unictype/test-categ_name.c: Likewise.
31199         * tests/unictype/test-categ_none.c: Likewise.
31200         * tests/unictype/test-categ_of.c: Likewise.
31201         * tests/unictype/test-categ_or.c: Likewise.
31202         * tests/unictype/test-categ_test_withtable.c: Likewise.
31203         * tests/unictype/test-combining.c: Likewise.
31204         * tests/unictype/test-decdigit.c: Likewise.
31205         * tests/unictype/test-digit.c: Likewise.
31206         * tests/unictype/test-mirror.c: Likewise.
31207         * tests/unictype/test-numeric.c: Likewise.
31208         * tests/unictype/test-pr_byname.c: Likewise.
31209         * tests/unictype/test-pr_test.c: Likewise.
31210         * tests/unictype/test-predicate-part1.h: Likewise.
31211         * tests/unictype/test-scripts.c: Likewise.
31212         * tests/unictype/test-sy_c_ident.c: Likewise.
31213         * tests/unictype/test-sy_java_ident.c: Likewise.
31214         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31215         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31216         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31217         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31218         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31219         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31220         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31221         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31222         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31223         * tests/uninorm/test-compat-decomposition.c: Likewise.
31224         * tests/uninorm/test-composition.c: Likewise.
31225         * tests/uninorm/test-decomposing-form.c: Likewise.
31226         * tests/uninorm/test-decomposition.c: Likewise.
31227         * tests/uninorm/test-u8-nfc.c: Likewise.
31228         * tests/uninorm/test-u8-nfd.c: Likewise.
31229         * tests/uninorm/test-u8-nfkc.c: Likewise.
31230         * tests/uninorm/test-u8-nfkd.c: Likewise.
31231         * tests/uninorm/test-u8-normcmp.c: Likewise.
31232         * tests/uninorm/test-u8-normcoll.c: Likewise.
31233         * tests/uninorm/test-u16-nfc.c: Likewise.
31234         * tests/uninorm/test-u16-nfd.c: Likewise.
31235         * tests/uninorm/test-u16-nfkc.c: Likewise.
31236         * tests/uninorm/test-u16-nfkd.c: Likewise.
31237         * tests/uninorm/test-u16-normcmp.c: Likewise.
31238         * tests/uninorm/test-u16-normcoll.c: Likewise.
31239         * tests/uninorm/test-u32-nfc.c: Likewise.
31240         * tests/uninorm/test-u32-nfd.c: Likewise.
31241         * tests/uninorm/test-u32-nfkc.c: Likewise.
31242         * tests/uninorm/test-u32-nfkd.c: Likewise.
31243         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31244         * tests/uninorm/test-u32-normcmp.c: Likewise.
31245         * tests/uninorm/test-u32-normcoll.c: Likewise.
31246         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31247         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31248         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31249         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31250         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31251         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31252         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31253         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31254         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31255         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31256         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31257         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31258         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31259         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31260         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31261         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31262         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31263         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31264         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31265         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31266         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31267         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31268         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31269         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31270         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31271         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31272         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31273         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31274         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31275         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31276         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31277         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31278         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31279         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31280         * tests/uniwidth/test-u8-width.c: Likewise.
31281         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31282         * tests/uniwidth/test-u16-width.c: Likewise.
31283         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31284         * tests/uniwidth/test-u32-width.c: Likewise.
31285         * tests/uniwidth/test-uc_width.c: Likewise.
31286         * tests/uniwidth/test-uc_width2.c: Likewise.
31287         * modules/acl-tests (Files): Add tests/macros.h.
31288         * modules/areadlink-tests (Files): Likewise.
31289         * modules/areadlink-with-size-tests (Files): Likewise.
31290         * modules/areadlinkat-tests (Files): Likewise.
31291         * modules/areadlinkat-with-size-tests (Files): Likewise.
31292         * modules/argmatch-tests (Files): Likewise.
31293         * modules/argv-iter-tests (Files): Likewise.
31294         * modules/array-list-tests (Files): Likewise.
31295         * modules/array-mergesort-tests (Files): Likewise.
31296         * modules/array-oset-tests (Files): Likewise.
31297         * modules/avltree-list-tests (Files): Likewise.
31298         * modules/avltree-oset-tests (Files): Likewise.
31299         * modules/avltreehash-list-tests (Files): Likewise.
31300         * modules/base64-tests (Files): Likewise.
31301         * modules/binary-io-tests (Files): Likewise.
31302         * modules/bitrotate-tests (Files): Likewise.
31303         * modules/btowc-tests (Files): Likewise.
31304         * modules/byteswap-tests (Files): Likewise.
31305         * modules/c-ctype-tests (Files): Likewise.
31306         * modules/c-stack-tests (Files): Likewise.
31307         * modules/c-strcase-tests (Files): Likewise.
31308         * modules/c-strcasestr-tests (Files): Likewise.
31309         * modules/c-strstr-tests (Files): Likewise.
31310         * modules/canonicalize-lgpl-tests (Files): Likewise.
31311         * modules/canonicalize-tests (Files): Likewise.
31312         * modules/carray-list-tests (Files): Likewise.
31313         * modules/ceilf-tests (Files): Likewise.
31314         * modules/ceill-tests (Files): Likewise.
31315         * modules/chown-tests (Files): Likewise.
31316         * modules/cloexec-tests (Files): Likewise.
31317         * modules/copy-file-tests (Files): Likewise.
31318         * modules/count-one-bits-tests (Files): Likewise.
31319         * modules/dprintf-posix-tests (Files): Likewise.
31320         * modules/dup2-tests (Files): Likewise.
31321         * modules/dup3-tests (Files): Likewise.
31322         * modules/duplocale-tests (Files): Likewise.
31323         * modules/fbufmode-tests (Files): Likewise.
31324         * modules/fchdir-tests (Files): Likewise.
31325         * modules/fcntl-safer-tests (Files): Likewise.
31326         * modules/fcntl-tests (Files): Likewise.
31327         * modules/fdopendir-tests (Files): Likewise.
31328         * modules/fdutimensat-tests (Files): Likewise.
31329         * modules/fflush-tests (Files): Likewise.
31330         * modules/filevercmp-tests (Files): Likewise.
31331         * modules/flock-tests (Files): Likewise.
31332         * modules/floorf-tests (Files): Likewise.
31333         * modules/floorl-tests (Files): Likewise.
31334         * modules/fnmatch-tests (Files): Likewise.
31335         * modules/fopen-safer-tests (Files): Likewise.
31336         * modules/fopen-tests (Files): Likewise.
31337         * modules/fpending-tests (Files): Likewise.
31338         * modules/fprintf-posix-tests (Files): Likewise.
31339         * modules/fpurge-tests (Files): Likewise.
31340         * modules/freadable-tests (Files): Likewise.
31341         * modules/freadahead-tests (Files): Likewise.
31342         * modules/freading-tests (Files): Likewise.
31343         * modules/freadptr-tests (Files): Likewise.
31344         * modules/freadseek-tests (Files): Likewise.
31345         * modules/freopen-tests (Files): Likewise.
31346         * modules/frexp-nolibm-tests (Files): Likewise.
31347         * modules/frexp-tests (Files): Likewise.
31348         * modules/frexpl-nolibm-tests (Files): Likewise.
31349         * modules/frexpl-tests (Files): Likewise.
31350         * modules/fseek-tests (Files): Likewise.
31351         * modules/fseeko-tests (Files): Likewise.
31352         * modules/fstrcmp-tests (Files): Likewise.
31353         * modules/fsync-tests (Files): Likewise.
31354         * modules/ftell-tests (Files): Likewise.
31355         * modules/ftello-tests (Files): Likewise.
31356         * modules/func-tests (Files): Likewise.
31357         * modules/futimens-tests (Files): Likewise.
31358         * modules/fwritable-tests (Files): Likewise.
31359         * modules/fwriting-tests (Files): Likewise.
31360         * modules/getcwd-tests (Files): Likewise.
31361         * modules/getdate-tests (Files): Likewise.
31362         * modules/getdelim-tests (Files): Likewise.
31363         * modules/getdtablesize-tests (Files): Likewise.
31364         * modules/getgroups-tests (Files): Likewise.
31365         * modules/getline-tests (Files): Likewise.
31366         * modules/getndelim2-tests (Files): Likewise.
31367         * modules/glob-tests (Files): Likewise.
31368         * modules/hash-tests (Files): Likewise.
31369         * modules/i-ring-tests (Files): Likewise.
31370         * modules/iconv-tests (Files): Likewise.
31371         * modules/iconv_open-utf-tests (Files): Likewise.
31372         * modules/idpriv-drop-tests (Files): Likewise.
31373         * modules/idpriv-droptemp-tests (Files): Likewise.
31374         * modules/inet_ntop-tests (Files): Likewise.
31375         * modules/inet_pton-tests (Files): Likewise.
31376         * modules/isblank-tests (Files): Likewise.
31377         * modules/isfinite-tests (Files): Likewise.
31378         * modules/isinf-tests (Files): Likewise.
31379         * modules/isnan-tests (Files): Likewise.
31380         * modules/isnand-nolibm-tests (Files): Likewise.
31381         * modules/isnand-tests (Files): Likewise.
31382         * modules/isnanf-nolibm-tests (Files): Likewise.
31383         * modules/isnanf-tests (Files): Likewise.
31384         * modules/isnanl-nolibm-tests (Files): Likewise.
31385         * modules/isnanl-tests (Files): Likewise.
31386         * modules/lchown-tests (Files): Likewise.
31387         * modules/ldexpl-tests (Files): Likewise.
31388         * modules/link-tests (Files): Likewise.
31389         * modules/linkat-tests (Files): Likewise.
31390         * modules/linked-list-tests (Files): Likewise.
31391         * modules/linkedhash-list-tests (Files): Likewise.
31392         * modules/localename-tests (Files): Likewise.
31393         * modules/lseek-tests (Files): Likewise.
31394         * modules/lstat-tests (Files): Likewise.
31395         * modules/mbmemcasecmp-tests (Files): Likewise.
31396         * modules/mbmemcasecoll-tests (Files): Likewise.
31397         * modules/mbrtowc-tests (Files): Likewise.
31398         * modules/mbscasecmp-tests (Files): Likewise.
31399         * modules/mbscasestr-tests (Files): Likewise.
31400         * modules/mbschr-tests (Files): Likewise.
31401         * modules/mbscspn-tests (Files): Likewise.
31402         * modules/mbsinit-tests (Files): Likewise.
31403         * modules/mbsncasecmp-tests (Files): Likewise.
31404         * modules/mbsnrtowcs-tests (Files): Likewise.
31405         * modules/mbspbrk-tests (Files): Likewise.
31406         * modules/mbspcasecmp-tests (Files): Likewise.
31407         * modules/mbsrchr-tests (Files): Likewise.
31408         * modules/mbsrtowcs-tests (Files): Likewise.
31409         * modules/mbsspn-tests (Files): Likewise.
31410         * modules/mbsstr-tests (Files): Likewise.
31411         * modules/memchr-tests (Files): Likewise.
31412         * modules/memchr2-tests (Files): Likewise.
31413         * modules/memcmp-tests (Files): Likewise.
31414         * modules/memmem-tests (Files): Likewise.
31415         * modules/memrchr-tests (Files): Likewise.
31416         * modules/mkdir-tests (Files): Likewise.
31417         * modules/mkfifo-tests (Files): Likewise.
31418         * modules/mkfifoat-tests (Files): Likewise.
31419         * modules/mknod-tests (Files): Likewise.
31420         * modules/nanosleep-tests (Files): Likewise.
31421         * modules/nl_langinfo-tests (Files): Likewise.
31422         * modules/obstack-printf-tests (Files): Likewise.
31423         * modules/open-tests (Files): Likewise.
31424         * modules/openat-tests (Files): Likewise.
31425         * modules/pipe-filter-gi-tests (Files): Likewise.
31426         * modules/pipe-filter-ii-tests (Files): Likewise.
31427         * modules/pipe2-tests (Files): Likewise.
31428         * modules/popen-safer-tests (Files): Likewise.
31429         * modules/popen-tests (Files): Likewise.
31430         * modules/posixtm-tests (Files): Likewise.
31431         * modules/pread-tests (Files): Likewise.
31432         * modules/printf-frexp-tests (Files): Likewise.
31433         * modules/printf-frexpl-tests (Files): Likewise.
31434         * modules/printf-posix-tests (Files): Likewise.
31435         * modules/priv-set-tests (Files): Likewise.
31436         * modules/quotearg-tests (Files): Likewise.
31437         * modules/random_r-tests (Files): Likewise.
31438         * modules/rawmemchr-tests (Files): Likewise.
31439         * modules/rbtree-list-tests (Files): Likewise.
31440         * modules/rbtree-oset-tests (Files): Likewise.
31441         * modules/rbtreehash-list-tests (Files): Likewise.
31442         * modules/readlink-tests (Files): Likewise.
31443         * modules/remove-tests (Files): Likewise.
31444         * modules/rename-tests (Files): Likewise.
31445         * modules/renameat-tests (Files): Likewise.
31446         * modules/rmdir-tests (Files): Likewise.
31447         * modules/round-tests (Files): Likewise.
31448         * modules/roundf-tests (Files): Likewise.
31449         * modules/roundl-tests (Files): Likewise.
31450         * modules/safe-alloc-tests (Files): Likewise.
31451         * modules/setenv-tests (Files): Likewise.
31452         * modules/sigaction-tests (Files): Likewise.
31453         * modules/signbit-tests (Files): Likewise.
31454         * modules/sleep-tests (Files): Likewise.
31455         * modules/snprintf-posix-tests (Files): Likewise.
31456         * modules/snprintf-tests (Files): Likewise.
31457         * modules/sprintf-posix-tests (Files): Likewise.
31458         * modules/stat-tests (Files): Likewise.
31459         * modules/stat-time-tests (Files): Likewise.
31460         * modules/strcasestr-tests (Files): Likewise.
31461         * modules/strchrnul-tests (Files): Likewise.
31462         * modules/strerror-tests (Files): Likewise.
31463         * modules/striconv-tests (Files): Likewise.
31464         * modules/striconveh-tests (Files): Likewise.
31465         * modules/striconveha-tests (Files): Likewise.
31466         * modules/strsignal-tests (Files): Likewise.
31467         * modules/strstr-tests (Files): Likewise.
31468         * modules/strtod-tests (Files): Likewise.
31469         * modules/strverscmp-tests (Files): Likewise.
31470         * modules/symlink-tests (Files): Likewise.
31471         * modules/symlinkat-tests (Files): Likewise.
31472         * modules/trunc-tests (Files): Likewise.
31473         * modules/truncf-tests (Files): Likewise.
31474         * modules/truncl-tests (Files): Likewise.
31475         * modules/uname-tests (Files): Likewise.
31476         * modules/unicase/cased-tests (Files): Likewise.
31477         * modules/unicase/ignorable-tests (Files): Likewise.
31478         * modules/unicase/locale-language-tests (Files): Likewise.
31479         * modules/unicase/tolower-tests (Files): Likewise.
31480         * modules/unicase/totitle-tests (Files): Likewise.
31481         * modules/unicase/toupper-tests (Files): Likewise.
31482         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31483         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31484         * modules/unicase/u8-casefold-tests (Files): Likewise.
31485         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31486         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31487         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31488         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31489         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31490         * modules/unicase/u8-tolower-tests (Files): Likewise.
31491         * modules/unicase/u8-totitle-tests (Files): Likewise.
31492         * modules/unicase/u8-toupper-tests (Files): Likewise.
31493         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31494         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31495         * modules/unicase/u16-casefold-tests (Files): Likewise.
31496         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31497         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31498         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31499         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31500         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31501         * modules/unicase/u16-tolower-tests (Files): Likewise.
31502         * modules/unicase/u16-totitle-tests (Files): Likewise.
31503         * modules/unicase/u16-toupper-tests (Files): Likewise.
31504         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31505         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31506         * modules/unicase/u32-casefold-tests (Files): Likewise.
31507         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31508         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31509         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31510         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31511         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31512         * modules/unicase/u32-tolower-tests (Files): Likewise.
31513         * modules/unicase/u32-totitle-tests (Files): Likewise.
31514         * modules/unicase/u32-toupper-tests (Files): Likewise.
31515         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31516         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31517         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31518         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31519         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31520         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31521         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31522         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31523         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31524         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31525         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31526         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31527         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31528         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31529         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31530         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31531         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31532         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31533         * modules/unictype/block-list-tests (Files): Likewise.
31534         * modules/unictype/block-of-tests (Files): Likewise.
31535         * modules/unictype/block-test-tests (Files): Likewise.
31536         * modules/unictype/category-C-tests (Files): Likewise.
31537         * modules/unictype/category-Cc-tests (Files): Likewise.
31538         * modules/unictype/category-Cf-tests (Files): Likewise.
31539         * modules/unictype/category-Cn-tests (Files): Likewise.
31540         * modules/unictype/category-Co-tests (Files): Likewise.
31541         * modules/unictype/category-Cs-tests (Files): Likewise.
31542         * modules/unictype/category-L-tests (Files): Likewise.
31543         * modules/unictype/category-Ll-tests (Files): Likewise.
31544         * modules/unictype/category-Lm-tests (Files): Likewise.
31545         * modules/unictype/category-Lo-tests (Files): Likewise.
31546         * modules/unictype/category-Lt-tests (Files): Likewise.
31547         * modules/unictype/category-Lu-tests (Files): Likewise.
31548         * modules/unictype/category-M-tests (Files): Likewise.
31549         * modules/unictype/category-Mc-tests (Files): Likewise.
31550         * modules/unictype/category-Me-tests (Files): Likewise.
31551         * modules/unictype/category-Mn-tests (Files): Likewise.
31552         * modules/unictype/category-N-tests (Files): Likewise.
31553         * modules/unictype/category-Nd-tests (Files): Likewise.
31554         * modules/unictype/category-Nl-tests (Files): Likewise.
31555         * modules/unictype/category-No-tests (Files): Likewise.
31556         * modules/unictype/category-P-tests (Files): Likewise.
31557         * modules/unictype/category-Pc-tests (Files): Likewise.
31558         * modules/unictype/category-Pd-tests (Files): Likewise.
31559         * modules/unictype/category-Pe-tests (Files): Likewise.
31560         * modules/unictype/category-Pf-tests (Files): Likewise.
31561         * modules/unictype/category-Pi-tests (Files): Likewise.
31562         * modules/unictype/category-Po-tests (Files): Likewise.
31563         * modules/unictype/category-Ps-tests (Files): Likewise.
31564         * modules/unictype/category-S-tests (Files): Likewise.
31565         * modules/unictype/category-Sc-tests (Files): Likewise.
31566         * modules/unictype/category-Sk-tests (Files): Likewise.
31567         * modules/unictype/category-Sm-tests (Files): Likewise.
31568         * modules/unictype/category-So-tests (Files): Likewise.
31569         * modules/unictype/category-Z-tests (Files): Likewise.
31570         * modules/unictype/category-Zl-tests (Files): Likewise.
31571         * modules/unictype/category-Zp-tests (Files): Likewise.
31572         * modules/unictype/category-Zs-tests (Files): Likewise.
31573         * modules/unictype/category-and-not-tests (Files): Likewise.
31574         * modules/unictype/category-and-tests (Files): Likewise.
31575         * modules/unictype/category-byname-tests (Files): Likewise.
31576         * modules/unictype/category-name-tests (Files): Likewise.
31577         * modules/unictype/category-none-tests (Files): Likewise.
31578         * modules/unictype/category-of-tests (Files): Likewise.
31579         * modules/unictype/category-or-tests (Files): Likewise.
31580         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31581         * modules/unictype/combining-class-tests (Files): Likewise.
31582         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31583         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31584         * modules/unictype/ctype-blank-tests (Files): Likewise.
31585         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31586         * modules/unictype/ctype-digit-tests (Files): Likewise.
31587         * modules/unictype/ctype-graph-tests (Files): Likewise.
31588         * modules/unictype/ctype-lower-tests (Files): Likewise.
31589         * modules/unictype/ctype-print-tests (Files): Likewise.
31590         * modules/unictype/ctype-punct-tests (Files): Likewise.
31591         * modules/unictype/ctype-space-tests (Files): Likewise.
31592         * modules/unictype/ctype-upper-tests (Files): Likewise.
31593         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31594         * modules/unictype/decimal-digit-tests (Files): Likewise.
31595         * modules/unictype/digit-tests (Files): Likewise.
31596         * modules/unictype/mirror-tests (Files): Likewise.
31597         * modules/unictype/numeric-tests (Files): Likewise.
31598         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31599         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31600         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31601         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31602         Likewise.
31603         * modules/unictype/property-bidi-block-separator-tests (Files):
31604         Likewise.
31605         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31606         Likewise.
31607         * modules/unictype/property-bidi-common-separator-tests (Files):
31608         Likewise.
31609         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31610         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31611         Likewise.
31612         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31613         Likewise.
31614         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31615         Likewise.
31616         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31617         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31618         Likewise.
31619         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31620         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31621         Likewise.
31622         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31623         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31624         * modules/unictype/property-bidi-segment-separator-tests (Files):
31625         Likewise.
31626         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31627         * modules/unictype/property-byname-tests (Files): Likewise.
31628         * modules/unictype/property-combining-tests (Files): Likewise.
31629         * modules/unictype/property-composite-tests (Files): Likewise.
31630         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31631         * modules/unictype/property-dash-tests (Files): Likewise.
31632         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31633         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31634         Likewise.
31635         * modules/unictype/property-deprecated-tests (Files): Likewise.
31636         * modules/unictype/property-diacritic-tests (Files): Likewise.
31637         * modules/unictype/property-extender-tests (Files): Likewise.
31638         * modules/unictype/property-format-control-tests (Files): Likewise.
31639         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31640         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31641         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31642         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31643         * modules/unictype/property-hyphen-tests (Files): Likewise.
31644         * modules/unictype/property-id-continue-tests (Files): Likewise.
31645         * modules/unictype/property-id-start-tests (Files): Likewise.
31646         * modules/unictype/property-ideographic-tests (Files): Likewise.
31647         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31648         * modules/unictype/property-ids-trinary-operator-tests (Files):
31649         Likewise.
31650         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31651         * modules/unictype/property-iso-control-tests (Files): Likewise.
31652         * modules/unictype/property-join-control-tests (Files): Likewise.
31653         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31654         * modules/unictype/property-line-separator-tests (Files): Likewise.
31655         * modules/unictype/property-logical-order-exception-tests (Files):
31656         Likewise.
31657         * modules/unictype/property-lowercase-tests (Files): Likewise.
31658         * modules/unictype/property-math-tests (Files): Likewise.
31659         * modules/unictype/property-non-break-tests (Files): Likewise.
31660         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31661         * modules/unictype/property-numeric-tests (Files): Likewise.
31662         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31663         * modules/unictype/property-other-default-ignorable-code-point-tests
31664         (Files): Likewise.
31665         * modules/unictype/property-other-grapheme-extend-tests (Files):
31666         Likewise.
31667         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31668         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31669         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31670         * modules/unictype/property-other-math-tests (Files): Likewise.
31671         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31672         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31673         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31674         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31675         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31676         * modules/unictype/property-private-use-tests (Files): Likewise.
31677         * modules/unictype/property-punctuation-tests (Files): Likewise.
31678         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31679         * modules/unictype/property-radical-tests (Files): Likewise.
31680         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31681         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31682         * modules/unictype/property-space-tests (Files): Likewise.
31683         * modules/unictype/property-terminal-punctuation-tests (Files):
31684         Likewise.
31685         * modules/unictype/property-test-tests (Files): Likewise.
31686         * modules/unictype/property-titlecase-tests (Files): Likewise.
31687         * modules/unictype/property-unassigned-code-value-tests (Files):
31688         Likewise.
31689         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31690         * modules/unictype/property-uppercase-tests (Files): Likewise.
31691         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31692         * modules/unictype/property-white-space-tests (Files): Likewise.
31693         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31694         * modules/unictype/property-xid-start-tests (Files): Likewise.
31695         * modules/unictype/property-zero-width-tests (Files): Likewise.
31696         * modules/unictype/scripts-tests (Files): Likewise.
31697         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31698         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31699         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31700         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31701         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31702         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31703         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31704         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31705         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31706         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31707         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31708         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31709         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31710         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31711         * modules/uninorm/composition-tests (Files): Likewise.
31712         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31713         * modules/uninorm/decomposition-tests (Files): Likewise.
31714         * modules/uninorm/filter-tests (Files): Likewise.
31715         * modules/uninorm/nfc-tests (Files): Likewise.
31716         * modules/uninorm/nfd-tests (Files): Likewise.
31717         * modules/uninorm/nfkc-tests (Files): Likewise.
31718         * modules/uninorm/nfkd-tests (Files): Likewise.
31719         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31720         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31721         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31722         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31723         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31724         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31725         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31726         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31727         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31728         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31729         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31730         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31731         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31732         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31733         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31734         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31735         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31736         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31737         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31738         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31739         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31740         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31741         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31742         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31743         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31744         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31745         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31746         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31747         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31748         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31749         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31750         * modules/uniwidth/u8-width-tests (Files): Likewise.
31751         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31752         * modules/uniwidth/u16-width-tests (Files): Likewise.
31753         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31754         * modules/uniwidth/u32-width-tests (Files): Likewise.
31755         * modules/uniwidth/width-tests (Files): Likewise.
31756         * modules/unlink-tests (Files): Likewise.
31757         * modules/unsetenv-tests (Files): Likewise.
31758         * modules/usleep-tests (Files): Likewise.
31759         * modules/utimens-tests (Files): Likewise.
31760         * modules/utimensat-tests (Files): Likewise.
31761         * modules/vasnprintf-posix-tests (Files): Likewise.
31762         * modules/vasnprintf-tests (Files): Likewise.
31763         * modules/vasprintf-posix-tests (Files): Likewise.
31764         * modules/vasprintf-tests (Files): Likewise.
31765         * modules/vdprintf-posix-tests (Files): Likewise.
31766         * modules/vfprintf-posix-tests (Files): Likewise.
31767         * modules/vprintf-posix-tests (Files): Likewise.
31768         * modules/vsnprintf-posix-tests (Files): Likewise.
31769         * modules/vsnprintf-tests (Files): Likewise.
31770         * modules/vsprintf-posix-tests (Files): Likewise.
31771         * modules/wcrtomb-tests (Files): Likewise.
31772         * modules/wcsnrtombs-tests (Files): Likewise.
31773         * modules/wcsrtombs-tests (Files): Likewise.
31774         * modules/wctype-tests (Files): Likewise.
31775         * modules/wcwidth-tests (Files): Likewise.
31776         * modules/xmemdup0-tests (Files): Likewise.
31777         * modules/xprintf-posix-tests (Files): Likewise.
31778         * modules/xvasprintf-tests (Files): Likewise.
31779
31780 2009-12-24  Eric Blake  <ebb9@byu.net>
31781
31782         test-nanosleep: fix typo
31783         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31784         patch.
31785         Reported by Bruno Haible.
31786
31787 2009-12-24  Bruno Haible  <bruno@clisp.org>
31788
31789         Reduce namespace pollution on glibc systems.
31790         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31791         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31792         systems.
31793         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31794         <getopt.h> on glibc systems.
31795         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31796         systems.
31797         * lib/fcntl.c: Include <unistd.h> here instead.
31798
31799 2009-12-24  Bruno Haible  <bruno@clisp.org>
31800
31801         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31802
31803 2009-12-24  Eric Blake  <ebb9@byu.net>
31804
31805         tests: add signature checks
31806         * tests/signature.h (SIGNATURE_CHECK): New file.
31807         * modules/atexit-tests (Files): Use it.
31808         * modules/btowc-tests (Files): Likewise.
31809         * modules/canonicalize-lgpl-tests (Files): Likewise.
31810         * modules/ceilf-tests (Files): Likewise.
31811         * modules/ceill-tests (Files): Likewise.
31812         * modules/chown-tests (Files): Likewise.
31813         * modules/dprintf-posix-tests (Files): Likewise.
31814         * modules/dup2-tests (Files): Likewise.
31815         * modules/dup3-tests (Files): Likewise.
31816         * modules/duplocale-tests (Files): Likewise.
31817         * modules/fchdir-tests (Files): Likewise.
31818         * modules/fcntl-tests (Files): Likewise.
31819         * modules/fdopendir-tests (Files): Likewise.
31820         * modules/fflush-tests (Files): Likewise.
31821         * modules/flock-tests (Files): Likewise.
31822         * modules/floorf-tests (Files): Likewise.
31823         * modules/floorl-tests (Files): Likewise.
31824         * modules/fnmatch-tests (Files): Likewise.
31825         * modules/fopen-tests (Files): Likewise.
31826         * modules/fprintf-posix-tests (Files): Likewise.
31827         * modules/freopen-tests (Files): Likewise.
31828         * modules/frexp-nolibm-tests (Files): Likewise.
31829         * modules/frexp-tests (Files): Likewise.
31830         * modules/frexpl-nolibm-tests (Files): Likewise.
31831         * modules/frexpl-tests (Files): Likewise.
31832         * modules/fseek-tests (Files): Likewise.
31833         * modules/fseeko-tests (Files): Likewise.
31834         * modules/fsync-tests (Files): Likewise.
31835         * modules/ftell-tests (Files): Likewise.
31836         * modules/ftello-tests (Files): Likewise.
31837         * modules/futimens-tests (Files): Likewise.
31838         * modules/getaddrinfo-tests (Files): Likewise.
31839         * modules/getcwd-tests (Files): Likewise.
31840         * modules/getdelim-tests (Files): Likewise.
31841         * modules/getdtablesize-tests (Files): Likewise.
31842         * modules/getgroups-tests (Files): Likewise.
31843         * modules/gethostname-tests (Files): Likewise.
31844         * modules/getline-tests (Files): Likewise.
31845         * modules/getopt-posix-tests (Files): Likewise.
31846         * modules/gettimeofday-tests (Files): Likewise.
31847         * modules/glob-tests (Files): Likewise.
31848         * modules/iconv-tests (Files): Likewise.
31849         * modules/inet_ntop-tests (Files): Likewise.
31850         * modules/inet_pton-tests (Files): Likewise.
31851         * modules/isblank-tests (Files): Likewise.
31852         * modules/lchown-tests (Files): Likewise.
31853         * modules/ldexpl-tests (Files): Likewise.
31854         * modules/link-tests (Files): Likewise.
31855         * modules/linkat-tests (Files): Likewise.
31856         * modules/lseek-tests (Files): Likewise.
31857         * modules/lstat-tests (Files): Likewise.
31858         * modules/mbrtowc-tests (Files): Likewise.
31859         * modules/mbsinit-tests (Files): Likewise.
31860         * modules/mbsnrtowcs-tests (Files): Likewise.
31861         * modules/mbsrtowcs-tests (Files): Likewise.
31862         * modules/memchr-tests (Files): Likewise.
31863         * modules/memcmp-tests (Files): Likewise.
31864         * modules/memmem-tests (Files): Likewise.
31865         * modules/memrchr-tests (Files): Likewise.
31866         * modules/mkdir-tests (Files): Likewise.
31867         * modules/mkfifo-tests (Files): Likewise.
31868         * modules/mkfifoat-tests (Files): Likewise.
31869         * modules/mknod-tests (Files): Likewise.
31870         * modules/nanosleep-tests (Files): Likewise.
31871         * modules/nl_langinfo-tests (Files): Likewise.
31872         * modules/obstack-printf-tests (Files): Likewise.
31873         * modules/open-tests (Files): Likewise.
31874         * modules/openat-tests (Files): Likewise.
31875         * modules/perror-tests (Files): Likewise.
31876         * modules/pipe2-tests (Files): Likewise.
31877         * modules/poll-tests (Files): Likewise.
31878         * modules/popen-tests (Files): Likewise.
31879         * modules/posix_spawn-tests (Files): Likewise.
31880         * modules/posix_spawnp-tests (Files): Likewise.
31881         * modules/pread-tests (Files): Likewise.
31882         * modules/printf-posix-tests (Files): Likewise.
31883         * modules/pty-tests (Files): Likewise.
31884         * modules/random_r-tests (Files): Likewise.
31885         * modules/rawmemchr-tests (Files): Likewise.
31886         * modules/readlink-tests (Files): Likewise.
31887         * modules/remove-tests (Files): Likewise.
31888         * modules/rename-tests (Files): Likewise.
31889         * modules/renameat-tests (Files): Likewise.
31890         * modules/rmdir-tests (Files): Likewise.
31891         * modules/round-tests (Files): Likewise.
31892         * modules/roundf-tests (Files): Likewise.
31893         * modules/roundl-tests (Files): Likewise.
31894         * modules/select-tests (Files): Likewise.
31895         * modules/setenv-tests (Files): Likewise.
31896         * modules/sigaction-tests (Files): Likewise.
31897         * modules/sleep-tests (Files): Likewise.
31898         * modules/snprintf-posix-tests (Files): Likewise.
31899         * modules/snprintf-tests (Files): Likewise.
31900         * modules/sprintf-posix-tests (Files): Likewise.
31901         * modules/stat-tests (Files): Likewise.
31902         * modules/strcasestr-tests (Files): Likewise.
31903         * modules/strchrnul-tests (Files): Likewise.
31904         * modules/strerror-tests (Files): Likewise.
31905         * modules/strsignal-tests (Files): Likewise.
31906         * modules/strstr-tests (Files): Likewise.
31907         * modules/strtod-tests (Files): Likewise.
31908         * modules/strverscmp-tests (Files): Likewise.
31909         * modules/symlink-tests (Files): Likewise.
31910         * modules/symlinkat-tests (Files): Likewise.
31911         * modules/times-tests (Files): Likewise.
31912         * modules/trunc-tests (Files): Likewise.
31913         * modules/truncf-tests (Files): Likewise.
31914         * modules/truncl-tests (Files): Likewise.
31915         * modules/tsearch-tests (Files): Likewise.
31916         * modules/uname-tests (Files): Likewise.
31917         * modules/unlink-tests (Files): Likewise.
31918         * modules/unsetenv-tests (Files): Likewise.
31919         * modules/usleep-tests (Files): Likewise.
31920         * modules/utimensat-tests (Files): Likewise.
31921         * modules/vasprintf-tests (Files): Likewise.
31922         * modules/vdprintf-posix-tests (Files): Likewise.
31923         * modules/vfprintf-posix-tests (Files): Likewise.
31924         * modules/vprintf-posix-tests (Files): Likewise.
31925         * modules/vsnprintf-posix-tests (Files): Likewise.
31926         * modules/vsnprintf-tests (Files): Likewise.
31927         * modules/vsprintf-posix-tests (Files): Likewise.
31928         * modules/wcrtomb-tests (Files): Likewise.
31929         * modules/wcsnrtombs-tests (Files): Likewise.
31930         * modules/wcsrtombs-tests (Files): Likewise.
31931         * modules/wcwidth-tests (Files): Likewise.
31932         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31933         * tests/test-isinf.c (isinf): Likewise.
31934         * tests/test-isnan.c (isnan): Likewise.
31935         * tests/test-signbit.c (signbit): Likewise.
31936         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31937         declaration, either as macro or with correct signature.
31938         (select): Ensure function under test is declared with correct
31939         signature in correct header.
31940         * tests/test-atexit.c (atexit): Likewise.
31941         * tests/test-btowc.c (btowc): Likewise.
31942         * tests/test-canonicalize-lgpl.c (realpath)
31943         (canonicalize_file_name): Likewise.
31944         * tests/test-ceilf1.c (ceilf): Likewise.
31945         * tests/test-ceill.c (ceill): Likewise.
31946         * tests/test-chown.c (chown): Likewise.
31947         * tests/test-dprintf-posix.c (dprintf): Likewise.
31948         * tests/test-dup2.c (dup2): Likewise.
31949         * tests/test-dup3.c (dup3): Likewise.
31950         * tests/test-duplocale.c (duplocale): Likewise.
31951         * tests/test-fchdir.c (fchdir): Likewise.
31952         * tests/test-fchownat.c (fchownat): Likewise.
31953         * tests/test-fcntl.c (fcntl): Likewise.
31954         * tests/test-fdopendir.c (fdopendir): Likewise.
31955         * tests/test-fflush.c (fflush): Likewise.
31956         * tests/test-flock.c (flock): Likewise.
31957         * tests/test-floorf1.c (floorf): Likewise.
31958         * tests/test-floorl.c (floorl): Likewise.
31959         * tests/test-fnmatch.c (fnmatch): Likewise.
31960         * tests/test-fopen.c (fopen): Likewise.
31961         * tests/test-fprintf-posix.c (fprintf): Likewise.
31962         * tests/test-freopen.c (freopen): Likewise.
31963         * tests/test-frexp.c (frexp): Likewise.
31964         * tests/test-frexpl.c (frexpl): Likewise.
31965         * tests/test-fseek.c (fseek): Likewise.
31966         * tests/test-fseeko.c (fseeko): Likewise.
31967         * tests/test-fstatat.c (fstatat): Likewise.
31968         * tests/test-fsync.c (fsync): Likewise.
31969         * tests/test-ftell.c (ftell): Likewise.
31970         * tests/test-ftello.c (ftello): Likewise.
31971         * tests/test-futimens.c (futimens): Likewise.
31972         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31973         (gai_strerror): Likewise.
31974         * tests/test-getcwd.c (getcwd): Likewise.
31975         * tests/test-getdelim.c (getdelim): Likewise.
31976         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31977         * tests/test-getgroups.c (getgroups): Likewise.
31978         * tests/test-gethostname.c (gethostname): Likewise.
31979         * tests/test-getline.c (getline): Likewise.
31980         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31981         Likewise.
31982         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31983         * tests/test-glob.c (glob, globfree): Likewise.
31984         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31985         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31986         * tests/test-inet_pton.c (inet_pton): Likewise.
31987         * tests/test-isblank.c (isblank): Likewise.
31988         * tests/test-lchown.c (lchown): Likewise.
31989         * tests/test-ldexpl.c (ldexpl): Likewise.
31990         * tests/test-link.c (link): Likewise.
31991         * tests/test-linkat.c (linkat): Likewise.
31992         * tests/test-lseek.c (lseek): Likewise.
31993         * tests/test-lstat.c (lstat): Likewise.
31994         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31995         * tests/test-mbsinit.c (mbsinit): Likewise.
31996         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31997         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31998         * tests/test-memchr.c (memchr): Likewise.
31999         * tests/test-memcmp.c (memcmp): Likewise.
32000         * tests/test-memmem.c (memmem): Likewise.
32001         * tests/test-memrchr.c (memrchr): Likewise.
32002         * tests/test-mkdir.c (mkdir): Likewise.
32003         * tests/test-mkdirat.c (mkdirat): Likewise.
32004         * tests/test-mkfifo.c (mkfifo): Likewise.
32005         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32006         * tests/test-mknod.c (mknod): Likewise.
32007         * tests/test-nanosleep.c (nanosleep): Likewise.
32008         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32009         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32010         Likewise.
32011         * tests/test-open.c (open): Likewise.
32012         * tests/test-openat.c (openat): Likewise.
32013         * tests/test-perror.c (perror): Likewise.
32014         * tests/test-pipe2.c (pipe2): Likewise.
32015         * tests/test-poll.c (poll): Likewise.
32016         * tests/test-popen.c (popen, pclose): Likewise.
32017         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32018         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32019         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32020         (posix_spawn_file_actions_destroy)
32021         (posix_spawn_file_actions_addclose)
32022         (posix_spawn_file_actions_addopen)
32023         (posix_spawn_file_actions_adddup2): Likewise.
32024         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32025         * tests/test-pread.c (pread): Likewise.
32026         * tests/test-printf-posix.c (printf): Likewise.
32027         * tests/test-pty.c (openpty, forkpty): Likewise.
32028         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32029         (random_r): Likewise.
32030         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32031         * tests/test-readlink.c (readlink): Likewise.
32032         * tests/test-remove.c (remove): Likewise.
32033         * tests/test-rename.c (rename): Likewise.
32034         * tests/test-renameat.c (renameat): Likewise.
32035         * tests/test-rmdir.c (rmdir): Likewise.
32036         * tests/test-round1.c (round): Likewise.
32037         * tests/test-roundf1.c (roundf): Likewise.
32038         * tests/test-roundl.c (roundl): Likewise.
32039         * tests/test-setenv.c (setenv): Likewise.
32040         * tests/test-sigaction.c (sigaction): Likewise.
32041         * tests/test-sleep.c (sleep): Likewise.
32042         * tests/test-snprintf.c (snprintf): Likewise.
32043         * tests/test-sprintf-posix.c (sprintf): Likewise.
32044         * tests/test-stat.c (stat): Likewise.
32045         * tests/test-stpncpy.c (stpncpy): Likewise.
32046         * tests/test-strcasestr.c (strcasestr): Likewise.
32047         * tests/test-strchrnul.c (strchrnul): Likewise.
32048         * tests/test-strerror.c (strerror): Likewise.
32049         * tests/test-strsignal.c (strsignal): Likewise.
32050         * tests/test-strstr.c (strstr): Likewise.
32051         * tests/test-strtod.c (strtod): Likewise.
32052         * tests/test-strverscmp.c (strverscmp): Likewise.
32053         * tests/test-symlink.c (symlink): Likewise.
32054         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32055         * tests/test-times.c (times): Likewise.
32056         * tests/test-trunc1.c (trunc): Likewise.
32057         * tests/test-truncf1.c (truncf): Likewise.
32058         * tests/test-truncl.c (truncl): Likewise.
32059         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32060         Likewise.
32061         * tests/test-uname.c (uname): Likewise.
32062         * tests/test-unlink.c (unlink): Likewise.
32063         * tests/test-unlinkat.c (unlinkat): Likewise.
32064         * tests/test-unsetenv.c (unsetenv): Likewise.
32065         * tests/test-usleep.c (usleep): Likewise.
32066         * tests/test-utimensat.c (utimensat): Likewise.
32067         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32068         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32069         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32070         * tests/test-vprintf-posix.c (vprintf): Likewise.
32071         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32072         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32073         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32074         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32075         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32076         * tests/test-wcwidth.c (wcwidth): Likewise.
32077
32078         build: pull in conditional headers during GNULIB_POSIXCHECK
32079         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32080         definitions from any conditionally-included headers.
32081         * lib/stdlib.in.h (includes): Likewise.
32082         * lib/unistd.in.h (includes): Likewise.
32083
32084 2009-12-24  Bruno Haible  <bruno@clisp.org>
32085
32086         * tests/test-argv-iter.c: Include header file being tested immediately
32087         after config.h.
32088         * tests/test-base64.c: Likewise.
32089         * tests/test-flock.c: Likewise.
32090         * tests/test-fsync.c: Likewise.
32091         * tests/test-getdate.c: Likewise.
32092         * tests/test-getndelim2.c: Likewise.
32093         * tests/test-isfinite.c: Likewise.
32094         * tests/test-isinf.c: Likewise.
32095         * tests/test-strerror.c: Likewise.
32096         * tests/test-strsignal.c: Likewise.
32097
32098 2009-12-23  Eric Blake  <ebb9@byu.net>
32099
32100         unistd: work around cygwin bug
32101         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32102         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32103         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32104
32105 2009-12-23  Bruno Haible  <bruno@clisp.org>
32106
32107         localename: More tests.
32108         * tests/test-localename.c (SIZEOF): New macro.
32109         (categories): New variable.
32110         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32111         test_locale_name_default): Add test w.r.t. thread locale.
32112         (test_locale_name_thread): New function.
32113         (main): Invoke it.
32114
32115         localename: Make aware of thread locale.
32116         * lib/localename.h (gl_locale_name_thread): New declaration.
32117         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32118         behaviour with respect to thread locale.
32119         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32120         <langinfo.h>, glthread/lock.h.
32121         (SIZE_BITS): New macro.
32122         (string_hash): New function.
32123         (struct hash_node): New type.
32124         (HASH_TABLE_SIZE): New macro.
32125         (struniq_hash_table, struniq_lock): New variables.
32126         (struniq): New function.
32127         (gl_locale_name_thread): New function.
32128         (gl_locale_name): Invoke it.
32129         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32130         * modules/localename (Depends-on): Add lock.
32131         Reported by Mike Gran <spk121@yahoo.com>.
32132
32133 2009-12-23  Eric Blake  <ebb9@byu.net>
32134
32135         va-args: new module
32136         * modules/va-args: New file.
32137         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32138         * MODULES.html.sh (Core language properties): Mention it.
32139
32140         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32141         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32142         named alias for __attribute__((__unused__)).
32143         * lib/chown.c: Update client.
32144         * lib/fchmodat.c: Likewise.
32145         * lib/fts.c: Likewise.
32146         * lib/getdate.y: Likewise.
32147         * lib/getgroups.c: Likewise.
32148         * lib/getopt.c: Likewise.
32149         * lib/getugroups.c: Likewise.
32150         * lib/mkdir.c: Likewise.
32151         * lib/mkfifo.c: Likewise.
32152         * lib/mkfifoat.c: Likewise.
32153         * lib/mknod.c: Likewise.
32154         * lib/mknodat.c: Likewise.
32155         * lib/readlink.c: Likewise.
32156         * lib/se-context.in.h: Likewise.
32157         * lib/se-selinux.in.h: Likewise.
32158         * lib/sockets.c: Likewise.
32159         * lib/symlink.c: Likewise.
32160         * lib/symlinkat.c: Likewise.
32161         * lib/unicodeio.c: Likewise.
32162         * lib/unistr.h: Likewise.
32163         * tests/test-areadlink.c: Likewise.
32164         * tests/test-areadlinkat.c: Likewise.
32165         * tests/test-filenamecat.c: Likewise.
32166         * tests/test-fseeko.c: Likewise.
32167         * tests/test-ftello.c: Likewise.
32168         * tests/test-getdate.c: Likewise.
32169         * tests/test-getgroups.c: Likewise.
32170         * tests/test-gethostname.c: Likewise.
32171         * tests/test-quotearg.c: Likewise.
32172         * tests/test-version-etc.c: Likewise.
32173         * tests/test-xalloc-die.c: Likewise.
32174         * tests/test-xfprintf-posix.c: Likewise.
32175         * tests/test-xprintf-posix.c: Likewise.
32176         * tests/test-xvasprintf.c: Likewise.
32177
32178         tests: avoid compiler warnings
32179         * tests/test-fcntl.c (main): Delete unused parameters.
32180         * tests/test-freopen-safer.c (main): Likewise.
32181         * tests/test-xalloc-die.c (main): Mark unused parameters.
32182         * tests/test-fseeko.c (main): Likewise.
32183         * tests/test-ftello.c (main): Likewise.
32184         * tests/test-nanosleep.c (main): Avoid declaration warning.
32185         * tests/test-sleep.c (main): Likewise.
32186         * tests/test-unsetenv.c (main): Silence warning about string
32187         literal.
32188         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32189
32190 2009-12-23  Bruno Haible  <bruno@clisp.org>
32191
32192         * tests/test-localename.c (test_locale_name): New function, extracted
32193         from main. Also test mixed situations.
32194         (test_locale_name_posix, test_locale_name_environ,
32195         test_locale_name_default): New functions.
32196         (main): Invoke them all.
32197         * modules/localename-tests (configure.ac): Test for newlocale.
32198
32199 2009-12-23  Bruno Haible  <bruno@clisp.org>
32200
32201         unistd: Ensure getcwd gets declared before being overridden.
32202         * lib/unistd.in.h: Conditionally include <io.h>.
32203
32204 2009-12-22  Bruno Haible  <bruno@clisp.org>
32205
32206         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32207         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32208         (gl_WCHAR_H): Invoke it.
32209         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32210         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32211         Reported by Karl Berry <karl@freefriends.org>.
32212
32213 2009-12-22  Eric Blake  <ebb9@byu.net>
32214
32215         math, unistd: avoid redundant includes
32216         * lib/math.in.h (isnan): No need to re-include <math.h>.
32217         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32218
32219         getsubopt: work around cygwin bug
32220         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32221         avoid conflicting with system getsubopt.
32222         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32223         bug.
32224
32225         getopt: synchronize from glibc
32226         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32227         parameter order.  Adjust all callers.
32228         (_getopt_internal_r, main): Adjust quoting in error messages.
32229         Drop considerations for outdated POSIX 1003.2 error message.
32230         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32231         callers.
32232         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32233
32234         test-getopt: test stderr behavior
32235         * modules/getopt-posix-tests (Depends-on): Add dup2.
32236         * tests/test-getopt.c (ASSERT): Avoid stderr.
32237         (main): Move stderr to a temporary file.
32238         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32239         Instead, add parameter to inform caller if output occurred.
32240         (test_getopt): Adjust all existing tests to expect silence, and
32241         add new tests of leading ":".
32242         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32243         glibc shortcomings with leading "-:" or "+:" in optstring.
32244         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32245         Likewise.
32246         * doc/posix-functions/getopt.texi (getopt): Likewise.
32247
32248         test-getopt: enhance test
32249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32250         supports optind=0.
32251         * tests/test-getopt.c (OPTIND_MIN): Move...
32252         * tests/test-getopt.h (OPTIND_MIN): ...here.
32253         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32254         Require that optind=0 works, since modern BSD supports it in
32255         addition to optreset, and since coreutils expects it.
32256         (test_getopt_long_only): New test.
32257         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32258         glibc shortcomings with 'W;', and enforcement of optind=0.
32259         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32260         Likewise.
32261
32262 2009-12-21  Bruno Haible  <bruno@clisp.org>
32263
32264         localename: Improvements for MacOS X and Cygwin.
32265         * lib/localename.h (gl_locale_name_environ): New declaration.
32266         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32267         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32268         (gl_locale_name_posix): Invoke it.
32269         (gl_locale_name_default): Add comments. Use Windows native API also on
32270         Cygwin.
32271
32272 2009-12-21  Bruno Haible  <bruno@clisp.org>
32273
32274         Update list of Win32 locale ids.
32275         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32276         (LANG_SAMI): Renamed from LANG_SAAMI.
32277         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32278         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32279         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32280         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32281         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32282         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32283         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32284         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32285         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32286         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32287         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32288         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32289         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32290         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32291         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32292         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32293         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32294         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32295         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32296         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32297         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32298         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32299         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32300         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32301         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32302         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32303         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32304         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32305         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32306         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32307         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32308         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32309         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32310         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32311         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32312         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32313         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32314         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32315         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32316         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32317         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32318         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32319         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32320         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32321         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32322         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32323         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32324         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32325         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32326         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32327         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32328         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32329         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32330         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32331         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32332         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32333         Add more languages and countries for Sami, Sorbian. Add more countries
32334         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32335         for Pashto. Change country for Syriac, Tswana.
32336
32337 2009-12-21  Eric Blake  <ebb9@byu.net>
32338
32339         test-utimens: avoid spurious failure
32340         * tests/test-chown.h (nap): Factor...
32341         * tests/nap.h: ...into new file.
32342         * tests/test-lchown.h (nap): Avoid duplication.
32343         * tests/test-utimens-common.h (nap): Use shared implementation,
32344         necessary on file systems with 1-second resolution.
32345         * modules/chown-tests (Files): Include new file.
32346         * modules/fdutimensat-tests (Files): Likewise.
32347         * modules/futimens-tests (Files): Likewise.
32348         * modules/lchown-tests (Files): Likewise.
32349         * modules/openat-tests (Files): Likewise.
32350         * modules/utimens-tests (Files): Likewise.
32351         * modules/utimensat-tests (Files): Likewise.
32352
32353 2009-12-19  Eric Blake  <ebb9@byu.net>
32354
32355         futimens, utimensat: work around Linux bug
32356         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32357         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32358         * lib/utimensat.c (rpl_utimensat): Work around it.
32359         * lib/futimens.c (rpl_futimens): Adjust comment.
32360
32361         utimens: work around Linux ctime bug
32362         * lib/utimens.c (detect_ctime_bug): New helper function.
32363         (update_timespec): Differentiate between workaround needed for
32364         this bug vs. what is needed for systems that lack utimensat.
32365         (fdutimens, lutimens): Work around bug.
32366
32367         utimens: check for ctime update
32368         * tests/test-utimens-common.h (check_ctime): Define.
32369         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32370         * tests/test-futimens.h (test_futimens): Likewise.
32371         * tests/test-lutimens.h (test_lutimens): Likewise.
32372         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32373         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32374
32375 2009-12-19  Bruno Haible  <bruno@clisp.org>
32376
32377         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32378         * tests/test-dprintf-posix2.sh: New file.
32379         * tests/test-dprintf-posix2.c: New file.
32380         * modules/dprintf-posix-tests (Files): Add them.
32381         (configure.ac): Check for getrlimit and setrlimit.
32382         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32383
32384 2009-12-19  Bruno Haible  <bruno@clisp.org>
32385
32386         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32387         * tests/test-fprintf-posix3.sh: New file.
32388         * tests/test-fprintf-posix3.c: New file.
32389         * modules/fprintf-posix-tests (Files): Add them.
32390         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32391
32392 2009-12-19  Eric Blake  <ebb9@byu.net>
32393
32394         dirfd: fix prototype
32395         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32396         * lib/dirfd.c (dirfd): Likewise.
32397
32398         canonicalize: reduce memory usage
32399         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32400         allocation to size.
32401         Reported by Solar Designer <solar@openwall.com>.
32402
32403 2009-12-19  Bruno Haible  <bruno@clisp.org>
32404
32405         New module attribute 'Applicability'.
32406         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32407         * gnulib-tool: New option --extract-applicability.
32408         (func_usage): Document it.
32409         (sed_extract_prog): Recognize it.
32410         (func_get_applicability): New function.
32411         (func_import): Generalize handling of 'link-warning' module.
32412         * modules/link-warning (Applicability): New section.
32413         * modules/arg-nonnull (Applicability): New section.
32414         Repoted by Simon Josefsson <simon@josefsson.org>.
32415
32416 2009-12-19  Bruno Haible  <bruno@clisp.org>
32417
32418         fflush: tweak
32419         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32420         * lib/fseeko.c (rpl_fseeko): Likewise.
32421
32422 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32423
32424         * lib/gl_list.h: Fix typo in comment.
32425
32426 2009-12-16  Eric Blake  <ebb9@byu.net>
32427
32428         fcntl: use to simplify other modules
32429         * modules/cloexec (Depends-on): Add fcntl.
32430         * modules/fchdir (Depends-on): Likewise.
32431         * modules/fd-safer-flag (Depends-on): Likewise.
32432         * modules/unistd-safer (Depends-on): Likewise.
32433         * modules/dup3 (configure.ac): Set module indicator.
32434         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32435         missing.
32436         * lib/fchdir.c (_gl_register_dup): Fix comment.
32437         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32438         * lib/dup-safer.c (dup_safer): Likewise.
32439         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32440         * lib/dup3.c (dup3): Likewise.
32441         * tests/test-fchdir.c (main): Enhance test.
32442         Fixes a dup_cloexec bug reported by Ondřej Vašík.
32443
32444         fcntl: port portions of fcntl to mingw
32445         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32446         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32447         replacement for mingw.
32448         * modules/fcntl (Description): Update.
32449         (Depends-on): Add dup2.
32450         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32451         * modules/fcntl-h (Makefile.am): Substitute it.
32452         * lib/fcntl.in.h (fcntl): Update declaration.
32453         (F_DUPFD, F_GETFD): New macros, when needed.
32454         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32455         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32456         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32457         we now guarantee.
32458
32459         fcntl: work around cygwin bug in F_DUPFD
32460         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32461         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32462         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32463         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32464         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32465
32466         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32467         * modules/fcntl (Files): List new files.
32468         (configure.ac): Run a test.
32469         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32470         * lib/fcntl.c (rpl_fcntl): Likewise.
32471         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32472         (gl_FCNTL_H): Always replace fcntl.h.
32473         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32474         * lib/fcntl.in.h (fcntl): Declare replacement.
32475         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32476         needed, plus a witness.
32477         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32478         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32479         * tests/test-fcntl.c: New file.
32480         * modules/fcntl-tests: Likewise.
32481
32482         binary-io: avoid potential compilation warning
32483         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32484         directives.
32485
32486         fflush: avoid compilation error on NetBSD
32487         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32488         between off_t and fpos_t, since the latter is sometimes a struct.
32489         * lib/fseeko.c (rpl_fseeko): Likewise.
32490         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32491
32492 2009-12-15  Eric Blake  <ebb9@byu.net>
32493
32494         fcntl-h, stdio, sys_ioctl: fix declarations
32495         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32496         function must not take arguments.
32497         * lib/sys_ioctl.in.h (ioctl): Likewise.
32498         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32499         (open): Add a link warning.
32500
32501 2009-12-15  Jim Meyering  <meyering@redhat.com>
32502
32503         areadlink, areadlink-with-size: relax license to LGPLv2+
32504         * modules/areadlink (License): Relax to LGPLv2+.
32505         * modules/areadlink-with-size (License): Likewise.
32506
32507 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32508             Bruno Haible  <bruno@clisp.org>
32509
32510         *printf: Fix memory leak.
32511         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32512         * lib/vfprintf.c (vfprintf): Likewise.
32513         * lib/dprintf.c (dprintf): Likewise.
32514         * lib/vdprintf.c (vdprintf): Likewise.
32515
32516 2009-12-14  Eric Blake  <ebb9@byu.net>
32517
32518         accept4: adjust module dependencies
32519         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32520
32521         utimens: one more try at avoiding compiler warning
32522         * lib/utimens.c (lutimens): Lower scope of result.
32523
32524 2009-12-13  Bruno Haible  <bruno@clisp.org>
32525
32526         Move the malloc checking from module 'list' to new module 'xlist'.
32527         * modules/xlist: New file.
32528         * lib/gl_xlist.h: New file.
32529         * lib/gl_xlist.c: New file.
32530         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32531         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32532         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32533         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32534         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32535         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32536         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32537         gl_sortedlist_nx_add): New declarations.
32538         (struct gl_list_implementation): Rename and change methods accordingly.
32539         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32540         (gl_list_nx_create): Renamed from gl_list_create.
32541         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32542         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32543         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32544         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32545         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32546         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32547         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32548         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32549         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32550         gl_list_create_empty.
32551         (gl_list_nx_create): Renamed from gl_list_create.
32552         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32553         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32554         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32555         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32556         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32557         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32558         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32559         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32560         * lib/gl_array_list.c: Don't include xalloc.h.
32561         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32562         NULL upon out-of-memory.
32563         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32564         out-of-memory.
32565         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32566         Change return type to 'int'.
32567         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32568         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32569         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32570         upon out-of-memory.
32571         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32572         upon out-of-memory.
32573         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32574         upon out-of-memory.
32575         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32576         upon out-of-memory.
32577         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32578         out-of-memory.
32579         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32580         Update.
32581         (gl_array_list_implementation): Update.
32582         * lib/gl_carray_list.c: Don't include xalloc.h.
32583         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32584         Return NULL upon out-of-memory.
32585         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32586         out-of-memory.
32587         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32588         Change return type to 'int'.
32589         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32590         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32591         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32592         upon out-of-memory.
32593         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32594         upon out-of-memory.
32595         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32596         out-of-memory.
32597         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32598         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32599         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32600         Update.
32601         (gl_carray_list_implementation): Update.
32602         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32603         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32604         gl_linked_create_empty. Return NULL upon out-of-memory.
32605         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32606         out-of-memory.
32607         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32608         Change return type to 'int'. Return -1 upon out-of-memory.
32609         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32610         out-of-memory.
32611         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32612         upon out-of-memory.
32613         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32614         upon out-of-memory.
32615         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32616         NULL upon out-of-memory.
32617         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32618         upon out-of-memory.
32619         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32620         out-of-memory.
32621         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32622         Update.
32623         * lib/gl_linked_list.c: Don't include xalloc.h.
32624         (gl_linked_list_implementation): Update.
32625         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32626         (add_to_bucket): Change return type to 'int'.
32627         (gl_linkedhash_list_implementation): Update.
32628         * lib/gl_anytree_list1.h (free_subtree): New function.
32629         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32630         gl_tree_create_empty. Return NULL upon out-of-memory.
32631         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32632         Change return type to 'int'. Return -1 upon out-of-memory.
32633         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32634         out-of-memory.
32635         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32636         (gl_tree_remove_node): New function, moved here from
32637         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32638         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32639         Update.
32640         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32641         malloc, not xmalloc. Return NULL upon out-of-memory.
32642         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32643         out-of-memory.
32644         (gl_tree_remove_node_from_tree): New function, extracted from
32645         gl_tree_remove_node.
32646         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32647         upon out-of-memory.
32648         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32649         out-of-memory.
32650         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32651         upon out-of-memory.
32652         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32653         upon out-of-memory.
32654         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32655         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32656         not xmalloc. Return NULL upon out-of-memory.
32657         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32658         out-of-memory.
32659         (gl_tree_remove_node_from_tree): New function, extracted from
32660         gl_tree_remove_node.
32661         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32662         upon out-of-memory.
32663         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32664         out-of-memory.
32665         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32666         upon out-of-memory.
32667         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32668         upon out-of-memory.
32669         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32670         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32671         gl_anytree_list1.h before gl_anyavltree_list2.h.
32672         (gl_avltree_list_implementation): Update.
32673         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32674         gl_anytree_list1.h before gl_anyavltree_list2.h.
32675         (gl_rbtree_list_implementation): Update.
32676         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32677         Change return type to 'int'. Return -1 upon out-of-memory. Use
32678         __builtin_expect.
32679         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32680         (gl_avltreehash_list_implementation): Update.
32681         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32682         (gl_rbtreehash_list_implementation): Update.
32683         * modules/array-list (Depends-on): Remove xalloc.
32684         * modules/carray-list (Depends-on): Likewise.
32685         * modules/linked-list (Depends-on): Likewise.
32686         * modules/linkedhash-list (Depends-on): Likewise.
32687         * modules/avltree-list (Depends-on): Likewise.
32688         * modules/rbtree-list (Depends-on): Likewise.
32689         * modules/avltreehash-list (Depends-on): Likewise.
32690         * modules/rbtreehash-list (Depends-on): Likewise.
32691
32692         * modules/xsublist: New file.
32693         * lib/gl_xsublist.h: New file.
32694         * lib/gl_xsublist.c: New file.
32695         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32696         (gl_sublist_nx_create): New declaration.
32697         * lib/gl_sublist.c: Don't include xalloc.h.
32698         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32699         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32700         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32701         Change return type to 'int'. Return -1 upon out-of-memory.
32702         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32703         upon out-of-memory.
32704         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32705         NULL upon out-of-memory.
32706         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32707         upon out-of-memory.
32708         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32709         NULL upon out-of-memory.
32710         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32711         NULL upon out-of-memory.
32712         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32713         upon out-of-memory.
32714         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32715         (gl_sublist_list_implementation): Update.
32716         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32717         upon out-of-memory.
32718         * modules/sublist (Depends-on): Remove xalloc.
32719
32720         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32721         * tests/test-carray_list.c: Likewise.
32722         * tests/test-linked_list.c: Likewise.
32723         * tests/test-linkedhash_list.c: Likewise.
32724         * tests/test-avltree_list.c: Likewise.
32725         * tests/test-rbtree_list.c: Likewise.
32726         * tests/test-avltreehash_list.c: Likewise.
32727         * tests/test-rbtreehash_list.c: Likewise.
32728         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32729         * modules/carray-list-tests (Makefile.am): Likewise.
32730         * modules/linked-list-tests (Makefile.am): Likewise.
32731         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32732         * modules/avltree-list-tests (Makefile.am): Likewise.
32733         * modules/rbtree-list-tests (Makefile.am): Likewise.
32734         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32735         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32736
32737         * NEWS: Mention the changes.
32738
32739         * lib/clean-temp.c: Include gl_xlist.h.
32740         * modules/clean-temp (Depends-on): Add xlist.
32741
32742         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32743         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32744
32745         * tests/test-array_oset.c: Include gl_xlist.h.
32746         * modules/array-oset-tests (Depends-on): Add xlist.
32747
32748         Reported by José E. Marchesi <jemarch@gnu.org>.
32749
32750 2009-12-13  Bruno Haible  <bruno@clisp.org>
32751
32752         Move the malloc checking from module 'oset' to new module 'xoset'.
32753         * modules/xoset: New file.
32754         * lib/gl_xoset.h: New file.
32755         * lib/gl_xoset.c: New file.
32756         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32757         declarations.
32758         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32759         (struct gl_oset_implementation): Rename and change methods accordingly.
32760         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32761         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32762         'int'. Mark as __warn_unused_result__.
32763         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32764         gl_oset_create_empty.
32765         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32766         'int'.
32767         * lib/gl_array_oset.c: Don't include xalloc.h.
32768         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32769         malloc, not xmalloc.
32770         (grow): Change return type to 'int'. Don't call xalloc_die.
32771         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32772         to 'int'.
32773         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32774         'int'.
32775         (gl_array_oset_implementation): Update.
32776         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32777         gl_tree_create_empty.
32778         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32779         'int'.
32780         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32781         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32782         xmalloc.
32783         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32784         not xmalloc.
32785         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32786         xmalloc.
32787         (gl_avltree_oset_implementation): Update.
32788         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32789         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32790         xmalloc.
32791         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32792         not xmalloc.
32793         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32794         xmalloc.
32795         (gl_rbtree_oset_implementation): Update.
32796         * modules/array-oset (Depends-on): Remove xalloc.
32797         * modules/avltree-oset (Depends-on): Likewise.
32798         * modules/rbtree-oset (Depends-on): Likewise.
32799         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32800         * tests/test-avltree_oset.c: Likewise.
32801         * tests/test-rbtree_oset.c: Likewise.
32802         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32803         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32804         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32805         * NEWS: Mention the change.
32806
32807 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32808
32809         maint.mk: allow a project to override release-prep commands
32810         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32811         commands into a new rule.
32812         (release-prep): New rule.
32813         (release-prep-hook): New overridable variable.
32814
32815 2009-12-13  Bruno Haible  <bruno@clisp.org>
32816
32817         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32818
32819 2009-12-13  Jim Meyering  <meyering@redhat.com>
32820
32821         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32822         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32823
32824 2009-12-12  Bruno Haible  <bruno@clisp.org>
32825
32826         duplocale: Tweak.
32827         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32828
32829 2009-12-12  Karl Berry  <karl@gnu.org>
32830
32831         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32832
32833 2009-12-12  Bruno Haible  <bruno@clisp.org>
32834
32835         * m4/po.m4: Undo incorrect untabification.
32836
32837 2009-12-12  Bruno Haible  <bruno@clisp.org>
32838
32839         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32840         * modules/c-strtod (Depends-on): Add locale.
32841         * modules/c-strtold (Depends-on): Likewise.
32842
32843 2009-12-12  Bruno Haible  <bruno@clisp.org>
32844
32845         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32846
32847 2009-12-11  Eric Blake  <ebb9@byu.net>
32848
32849         setenv: relax requirement in light of POSIX ruling
32850         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32851         not NULL.
32852         * tests/test-setenv.c (main): Relax test.
32853         * tests/test-unsetenv.c (main): Likewise.
32854         * doc/posix-functions/setenv.texi (setenv): Document this.
32855         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32856
32857 2009-12-11  Bruno Haible  <bruno@clisp.org>
32858
32859         New module 'fd-safer-flag'.
32860         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32861         * lib/dup-safer.c (dup_safer_flag): Remove function.
32862         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32863         * lib/fd-safer.c (fd_safer_flag): Remove function.
32864         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32865         * modules/cloexec (configure.ac): Drop indicator macro.
32866         * modules/fd-safer-flag: New file.
32867         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32868         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32869         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32870
32871 2009-12-11  Bruno Haible  <bruno@clisp.org>
32872
32873         Tests for module 'nl_langinfo'.
32874         * modules/nl_langinfo-tests: New file.
32875         * tests/test-nl_langinfo.sh: New file.
32876         * tests/test-nl_langinfo.c: New file.
32877
32878         New module 'nl_langinfo'.
32879         * lib/nl_langinfo.c: New file.
32880         * m4/nl_langinfo.m4: New file.
32881         * modules/nl_langinfo: New file.
32882         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32883
32884 2009-12-11  Bruno Haible  <bruno@clisp.org>
32885
32886         Tests for module 'langinfo'.
32887         * modules/langinfo-tests: New file.
32888         * tests/test-langinfo.c: New file.
32889
32890         New module 'langinfo'.
32891         * lib/langinfo.in.h: New file.
32892         * m4/langinfo_h.m4: New file.
32893         * modules/langinfo: New file.
32894         * doc/posix-headers/langinfo.texi: Mention the new module.
32895
32896 2009-12-11  Bruno Haible  <bruno@clisp.org>
32897
32898         * lib/config.charset: Untabify.
32899
32900 2009-12-11  Bruno Haible  <bruno@clisp.org>
32901
32902         * modules/unistd-safer (configure.ac): Drop indicator macro.
32903
32904 2009-12-11  Bruno Haible  <bruno@clisp.org>
32905
32906         Move pipe2-safer code to its own file.
32907         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32908         * lib/pipe-safer.c (pipe2_safer): Remove function.
32909         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32910         (Makefile.am): Add it to lib_SOURCES.
32911
32912 2009-12-10  Bruno Haible  <bruno@clisp.org>
32913
32914         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32915
32916 2009-12-10  Bruno Haible  <bruno@clisp.org>
32917
32918         Declare which arguments expect non-NULL values, for GCC and clang.
32919         * build-aux/arg-nonnull.h: New file.
32920         * modules/arg-nonnull: New file.
32921         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32922         (inet_ntop, inet_pton): Use it.
32923         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32924         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32925         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32926         (open, openat): Use it.
32927         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32928         (fnmatch): Use it.
32929         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32930         (getopt, getopt_long, getopt_long_only): Use it.
32931         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32932         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32933         Use it.
32934         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32935         (iconv_open): Use it.
32936         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32937         (strtoimax, strtoumax): Use it.
32938         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32939         (duplocale): Use it.
32940         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32941         (frexp, frexpl): Use it.
32942         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32943         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32944         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32945         (tsearch, tfind, tdelete, twalk): Use it.
32946         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32947         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32948         sigpending): Use it.
32949         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32950         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32951         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32952         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32953         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32954         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32955         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32956         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32957         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32958         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32959         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32960         Use it.
32961         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32962         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32963         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32964         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32965         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32966         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32967         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32968         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32969         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32970         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32971         strtoull, unsetenv): Use it.
32972         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32973         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32974         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32975         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32976         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32977         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32978         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32979         (strcasecmp, strncasecmp): Use it.
32980         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32981         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32982         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32983         rpl_setsockopt): Use it.
32984         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32985         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32986         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32987         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32988         (gettimeofday): Use it.
32989         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32990         (times): Use it.
32991         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32992         (uname): Use it.
32993         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32994         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32995         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32996         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32997         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32998         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32999         unlinkat, write): Use it.
33000         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33001         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33002         * lib/argv-iter.h: Include arg-nonnull.h.
33003         (_ATTRIBUTE_NONNULL_): Remove macro.
33004         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33005         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33006         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33007         optimization.
33008         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33009         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33010         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33011         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33012         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33013         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33014         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33015         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33016         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33017         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33018         * modules/dirent (Depends-on): Add arg-nonnull.
33019         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33020         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33021         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33022         * modules/fnmatch (Depends-on): Add arg-nonnull.
33023         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33024         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33025         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33026         * modules/glob (Depends-on): Add arg-nonnull.
33027         (Makefile.am): Insert arg-nonnull.h into glob.h.
33028         * modules/iconv_open (Depends-on): Add arg-nonnull.
33029         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33030         * modules/inttypes (Depends-on): Add arg-nonnull.
33031         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33032         * modules/locale (Depends-on): Add arg-nonnull.
33033         (Makefile.am): Insert arg-nonnull.h into locale.h.
33034         * modules/math (Depends-on): Add arg-nonnull.
33035         (Makefile.am): Insert arg-nonnull.h into math.h.
33036         * modules/netdb (Depends-on): Add arg-nonnull.
33037         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33038         * modules/search (Depends-on): Add arg-nonnull.
33039         (Makefile.am): Insert arg-nonnull.h into search.h.
33040         * modules/signal (Depends-on): Add arg-nonnull.
33041         (Makefile.am): Insert arg-nonnull.h into signal.h.
33042         * modules/spawn (Depends-on): Add arg-nonnull.
33043         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33044         * modules/stdio (Depends-on): Add arg-nonnull.
33045         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33046         * modules/stdlib (Depends-on): Add arg-nonnull.
33047         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33048         * modules/string (Depends-on): Add arg-nonnull.
33049         (Makefile.am): Insert arg-nonnull.h into string.h.
33050         * modules/strings (Depends-on): Add arg-nonnull.
33051         (Makefile.am): Insert arg-nonnull.h into strings.h.
33052         * modules/sys_socket (Depends-on): Add arg-nonnull.
33053         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33054         * modules/sys_stat (Depends-on): Add arg-nonnull.
33055         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33056         * modules/sys_time (Depends-on): Add arg-nonnull.
33057         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33058         * modules/sys_times (Depends-on): Add arg-nonnull.
33059         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33060         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33061         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33062         * modules/time (Depends-on): Add arg-nonnull.
33063         (Makefile.am): Insert arg-nonnull.h into time.h.
33064         * modules/unistd (Depends-on): Add arg-nonnull.
33065         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33066         * modules/wchar (Depends-on): Add arg-nonnull.
33067         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33068         * modules/argv-iter (Depends-on): Add arg-nonnull.
33069         * tests/test-canonicalize.c (null_ptr): New function.
33070         (main): Use it.
33071         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33072         (main): Use it.
33073         * tests/test-memmem.c (null_ptr): New function.
33074         (main): Use it.
33075         Reported by Jim Meyering.
33076
33077 2009-12-10  Bruno Haible  <bruno@clisp.org>
33078
33079         Use spaces for indentation, not tabs.
33080         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33081         * m4/*.m4: Untabify.
33082         * build-aux/*.h: Untabify.
33083         * tests/**/*.[hc]: Untabify.
33084         * README: New section "Indent with spaces, not TABs", based on
33085         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33086         * NEWS: Mention the change.
33087
33088 2009-12-10  Bruno Haible  <bruno@clisp.org>
33089
33090         pty test: Fix link error.
33091         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33092         test_pty_LDADD.
33093
33094 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33095
33096         * modules/pty: New file.
33097         * modules/pty-tests: New file.
33098         * m4/pty.m4: New file.
33099         * tests/test-pty.c: New file.
33100         * doc/glibc-headers/pty.texi: Modified.
33101         * doc/glibc-functions/forkpty.texi: Modified.
33102         * doc/glibc-functions/openpty.texi: Modified.
33103
33104 2009-12-10  Bruno Haible  <bruno@clisp.org>
33105
33106         Avoid syntax error in C++ mode.
33107         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33108
33109 2009-12-10  Bruno Haible  <bruno@clisp.org>
33110
33111         Use sed with option -e.
33112         * gnulib-tool (func_version, func_emit_copyright_notice,
33113         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33114         option -e to sed.
33115         * modules/link-warning (Makefile.am): Likewise.
33116
33117 2009-12-10  Jim Meyering  <meyering@redhat.com>
33118
33119         mgetgroups: do not write bytes beyond end of malloc'd buffer
33120         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33121         username, we call getgroups with a one-element-shorter buffer,
33122         but still told it the length was original, max_n_groups.
33123
33124 2009-12-09  Eric Blake  <ebb9@byu.net>
33125
33126         cloexec: relax license
33127         * modules/cloexec (Maintainer): Add myself.
33128         (License): Use LGPL, not GPL.
33129
33130         link-warning: optimize generation
33131         * modules/link-warning (Makefile.am): Reduce process usage.
33132
33133 2009-12-09  Bruno Haible  <bruno@clisp.org>
33134
33135         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33136         workaround was added on 2009-11-17.
33137
33138 2009-12-09  Jim Meyering  <meyering@redhat.com>
33139             Bruno Haible  <bruno@clisp.org>
33140
33141         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33142         * modules/link-warning (Makefile.am): Make the comment-removing sed
33143         command more robust in the face of bootstrap-prepended comment lines.
33144
33145 2009-12-09  Bruno Haible  <bruno@clisp.org>
33146
33147         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33148         most one group.
33149
33150 2009-12-09  Simon Josefsson <simon@josefsson.org>
33151             Bruno Haible  <bruno@clisp.org>
33152
33153         * build-aux/link-warning.h: Add copyright notice.
33154         * modules/link-warning (Makefile.am): Generate link-warning.h from
33155         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33156         * NEWS: Mention change in link-warning module.
33157         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33158         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33159         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33160         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33161         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33162         * modules/math (Makefile.am): Add dependency to math.h.
33163         * modules/search (Makefile.am): Add dependency to search.h.
33164         * modules/signal (Makefile.am): Add dependency to signal.h.
33165         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33166         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33167         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33168         * modules/string (Makefile.am): Add dependency to string.h.
33169         * modules/strings (Makefile.am): Add dependency to strings.h.
33170         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33171         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33172         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33173         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33174         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33175         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33176         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33177         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33178         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33179
33180 2009-12-09  Bruno Haible  <bruno@clisp.org>
33181
33182         fchdir: Optimize away rpl_fstat when possible.
33183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33184         REPLACE_OPEN_DIRECTORY.
33185         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33186
33187 2009-12-09  Bruno Haible  <bruno@clisp.org>
33188
33189         * lib/fchdir.c: Update comment.
33190
33191 2009-12-09  Bruno Haible  <bruno@clisp.org>
33192
33193         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33194
33195 2009-12-08  Eric Blake  <ebb9@byu.net>
33196
33197         fchdir: avoid memory leak on re-registration.
33198         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33199
33200 2009-12-08  Jim Meyering  <meyering@redhat.com>
33201
33202         init.sh: avoid Solaris 10 /bin/sh portability problem
33203         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33204         sourced script:
33205           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33206           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33207           bar
33208         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33209         and two tests used that idiom.
33210         * tests/init.sh: Update suggested usage comments.
33211         (path_prepend_): New function, to be used in place
33212         of the --src-path=DIR option.
33213         (setup_): Move PATH-prepending code into path_prepend_.
33214         * tests/test-pread.sh: Adapt to new usage.
33215         * tests/test-xalloc-die.sh: Likewise.
33216
33217 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33218
33219         * doc/gnulib.texi (Glibc pty.h): Add.
33220         * doc/glibc-functions/forkpty.texi: Add.
33221         * doc/glibc-functions/openpty.texi: Add.
33222         Suggested by Bruno Haible.
33223
33224 2009-12-08  Eric Blake  <ebb9@byu.net>
33225
33226         fchdir: fix logic bugs
33227         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33228         * tests/test-fchdir.c (main): Enhance test.
33229         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33230         is in use.
33231
33232         dup2: fix logic bugs
33233         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33234         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33235         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33236         exists.
33237         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33238
33239 2009-12-07  Eric Blake  <ebb9@byu.net>
33240
33241         unlink: fix m4 detection
33242         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33243
33244         unistd-safer: add unit test
33245         * modules/unistd-safer-tests: New file.
33246         * tests/test-dup-safer.c: Likewise.
33247         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33248         * tests/test-dup2.c (setmode): Likewise.
33249         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33250
33251         cloexec: preserve text vs. binary across dup_cloexec
33252         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33253         mode.
33254         * modules/dup2-tests (Depends-on): Add binary-io.
33255         * modules/cloexec-tests (Depends-on): Likewise.
33256         * tests/test-dup2.c (setmode, is_mode): New helpers.
33257         (main): Add tests that translation mode is preserved.
33258         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33259         Reported by Bruno Haible.
33260
33261         mgetgroups: reduce duplicate listings
33262         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33263         resulting array.
33264         * tests/test-chown.h (test_chown): Simplify client.
33265         * tests/test-lchown.h (test_lchown): Likewise.
33266
33267 2009-12-06  Bruno Haible  <bruno@clisp.org>
33268
33269         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33270         value.
33271
33272 2009-12-06  Bruno Haible  <bruno@clisp.org>
33273
33274         * lib/progname.c: Include stdio.h, stdlib.h.
33275         (set_program_name): Reject a NULL argument.
33276
33277 2009-12-05  Eric Blake  <ebb9@byu.net>
33278
33279         pipe2-safer: new module
33280         * modules/pipe2-safer: New file.
33281         * lib/unistd-safer.h (pipe2_safer): New prototype.
33282         * lib/unistd--.h (pipe2): New wrapper.
33283         * lib/pipe-safer.c (pipe2_safer): New function.
33284         * modules/pipe (Depends-on): Add pipe2-safer.
33285         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33286
33287         stdlib-safer: preserve cloexec flag for mkostemp[s]
33288         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33289         fd_safer_flag.
33290
33291         unistd-safer: allow preservation of cloexec status via flag
33292         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33293         prototypes.
33294         * lib/dup-safer.c (dup_safer_flag): New function.
33295         * lib/fd-safer.c (fd_safer_flag): Likewise.
33296         * modules/cloexec (configure.ac): Set witness.
33297
33298         test-dup2: enhance test
33299         * modules/dup2-tests (Depends-on): Add cloexec.
33300         * tests/test-dup2.c (main): Enhance test.
33301
33302         cloexec: add dup_cloexec
33303         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33304         header and comments.
33305         * lib/cloexec.c (set_cloexec_flag): Add comments.
33306         (dup_cloexec): New function, with mingw implementation borrowed
33307         from...
33308         * lib/w32spawn.h (dup_noinherit): ...here.
33309         * modules/execute (Depends-on): Add cloexec.
33310         * modules/pipe (Depends-on): Likewise.
33311         * modules/cloexec (Depends-on): Add dup2.
33312         * modules/cloexec-tests (Files): New file.
33313         * tests/test-cloexec.c: Likewise.
33314
33315         test-xalloc-die: fix test for mingw
33316         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33317         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33318         directory and .exe suffix off argv[0] output.
33319
33320         test-fseeko: fix test for mingw
33321         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33322         than undefining fseek, so test will pass on mingw.
33323
33324 2009-12-05  Bruno Haible  <bruno@clisp.org>
33325
33326         * lib/progname.h (set_program_name): Clarify specification.
33327         * lib/progname.c (set_program_name): Likewise.
33328         Reported by Jim Meyering.
33329
33330 2009-12-05  Jim Meyering  <meyering@redhat.com>
33331
33332         maint.mk: backslash-escape parens in default regexp
33333         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33334         backslash-escape the literal parentheses.
33335
33336         maint.mk: news-date-check: use grep -E
33337         * top/maint.mk (today): Define a Make variable, not a...
33338         (news-date-check): ...shell variable.
33339         (news-date-regexp): Use the Make variable.
33340         Use grep's -E option.  Change the failing diagnostic to mention
33341         the variable, $(news-date-regexp).
33342
33343 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33344
33345         maintainer-makefile: allow customization of NEWS entry format
33346         * top/maint.mk (news-date-regexp): New overridable variable.
33347         (news-date-check): Use it.
33348
33349 2009-12-04  Eric Blake  <ebb9@byu.net>
33350
33351         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33352         * lib/mgetgroups.h (xgetgroups): New prototype.
33353         * lib/mgetgroups.c (xgetgroups): New wrapper.
33354         (mgetgroups): Handle ENOSYS.
33355         * modules/mgetgroups (Depends-on): Add realloc.
33356         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33357
33358         mgetgroups: avoid argument promotion issues with -1
33359         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33360         for invalid gid_t.
33361         * tests/test-chown.h (getegid, test_chown): Likewise.
33362         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33363
33364 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33365
33366         exclude: Fix header file problems.
33367         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33368
33369 2009-12-01  Jim Meyering  <meyering@redhat.com>
33370
33371         fts: fts_open: do not let an empty string cause immediate failure
33372         This is required in support of GNU rm, for which the command
33373         "rm A '' B" must process and remove both A and B, in spite of
33374         the empty string argument.
33375         * lib/fts.c (fts_open): Do not let the presence of an empty string
33376         cause fts_open to fail immediately.  Most fts-using tools must be
33377         able to process all arguments, in order, and can be expected to
33378         diagnose such arguments themselves.
33379
33380 2009-11-30  Eric Blake  <ebb9@byu.net>
33381
33382         utimens: fix compilation error
33383         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33384         Declare variable at right scope.
33385
33386 2009-11-29  Jim Meyering  <meyering@redhat.com>
33387
33388         bootstrap: handle perl-5.11's changed --version output
33389         * build-aux/bootstrap (get_version): Handle perl separately,
33390         since perl-5.11's --version output is different.
33391
33392 2009-11-28  Jim Meyering  <meyering@redhat.com>
33393
33394         userspec: depend on the inttostr module, too
33395         * modules/userspec (Depends-on): Add inttostr.
33396
33397         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33398         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33399         number of MAXUID when it evaluates to (uid_t) -1.
33400         Likewise for group ID.  Reported by Matt McCutchen in
33401         <http://savannah.gnu.org/bugs/?28113>
33402
33403         userspec: reformat to use spaces, not TABs
33404         * lib/userspec.c: Expand TABs to spaces.
33405         Add Emacs' "indent-tabs-mode: nil" hint.
33406
33407 2009-11-27  Eric Blake  <ebb9@byu.net>
33408
33409         getopt-gnu: flush out another BSD bug
33410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33411         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33412         flush out BSD bug.
33413         * tests/test-getopt.h (test_getopt): End lists with NULL.
33414         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33415         (test_getopt_long_posix): Enhance test.
33416         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33417         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33418         getopt-gnu.
33419         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33420         Likewise.
33421
33422 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33423
33424         * modules/idpriv-droptemp-tests (Notice): Fix text.
33425
33426 2009-11-27  Jim Meyering  <meyering@redhat.com>
33427
33428         test-xalloc-die: avoid spurious failure due to libtool argv difference
33429         In a libtool-enabled project, this test would fail due to a difference
33430         in the emitted program name, e.g.,
33431         -test-xalloc-die: memory exhausted
33432         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33433         Use program to avoid that.
33434         * modules/xalloc-die-tests (Depends-on): Add progname.
33435         * tests/test-xalloc-die.c: Include progname.h".
33436         (program_name): Remove decl.
33437         (main): Call set_program_name.
33438         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33439
33440 2009-11-26  Richard Jones  <rjones@redhat.com>
33441
33442         w32sock: leave win32 error in place.
33443         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33444
33445 2009-11-26  Eric Blake  <ebb9@byu.net>
33446
33447         init.sh: suggest to use skip_ and fail_ functions in comments
33448         * tests/init.sh: Add a sentence.
33449
33450 2009-11-25  Bruno Haible  <bruno@clisp.org>
33451
33452         init.sh: add documentation in comments
33453         * tests/init.sh: Add some developer and user documentation.
33454
33455 2009-11-26  Jim Meyering  <meyering@redhat.com>
33456
33457         init.sh: accommodate even those who specify bogus srcdir manually
33458         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33459         configure-time tests to be sanitized, so that there is no need to
33460         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33461         (with no double quotes) suffices.  However, since tests may be
33462         invoked manually, and since you may explicitly set srcdir to the
33463         name of a directory containing spaces, do quote its uses here.
33464         * tests/test-pread.sh: Likewise.
33465         Suggested by Bruno Haible.
33466
33467         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33468         * tests/test-pread.sh: Write no data into the pipe, because
33469         test-pread actually reads none.  This avoids a diagnostic,
33470         "bash: echo: write error: Broken pipe", that arises in the unusual
33471         event something is ignoring SIGPIPE, and might be interpreted
33472         as some sort of failure.  Reported by Bruno Haible.
33473
33474 2009-11-25  Jim Meyering  <meyering@redhat.com>
33475
33476         test-pread: cover failure with ESPIPE and EINVAL
33477         * tests/test-pread.c (main): Test for failure, too.
33478         * tests/test-pread.sh: Invoke with stdin on a pipe.
33479         Suggested by Eric Blake.
33480
33481         pread: improvement and fix
33482         * modules/pread (Depends-on): Depend on lseek, for portability to
33483         e.g., mingw.  Suggested by Eric Blake.
33484         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33485
33486         unistd.in.h: correct declaration of pread
33487         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33488         Reported by Richard W.M. Jones.
33489
33490         test-pread.sh: distribute the test script
33491         * modules/pread-tests (Files): Include test-pread.sh.
33492
33493         test-pread.sh: clean up
33494         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33495         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33496         That is unnecessary, since it's always ".".
33497         Suggestion from Eric Blake.
33498
33499         test-pread.sh: make executable
33500         * tests/test-pread.sh: Set executable bit.
33501         Reported by Eric Blake.
33502
33503         correct typo in test-pread.sh
33504         * tests/test-pread.sh: Add #! line.
33505
33506         test pread
33507         * tests/test-pread.c: New file.
33508         * tests/test-pread.sh: Likewise.
33509         * modules/pread-tests: Likewise.
33510
33511         pread: new module
33512         * modules/pread: New file.
33513         * lib/unistd.in.h (pread): Define/declare.
33514         * lib/pread.c (pread): New file.
33515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33516         * modules/unistd (Makefile.am): Substitute witnesses.
33517         * doc/posix-functions/pread.texi (pread): Update.
33518         * MODULES.html.sh: Add pread.
33519
33520 2009-11-25  Jim Meyering  <meyering@redhat.com>
33521
33522         tests/init.sh: new file to be used via most *.sh tests
33523         * tests/init.sh: New file.
33524
33525 2009-11-25  Eric Blake  <ebb9@byu.net>
33526
33527         utimens: work around older Linux failure with symlinks
33528         * lib/utimens.c (lutimensat_works_really): New variable.
33529         (fdutimens, lutimens): Use it to manage kernels that support
33530         nanosecond times on files, but not on symlinks.
33531         Reported by Ondřej Vašík.
33532
33533         utimes: fix configure grammar
33534         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33535
33536 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33537
33538         regex: Fix fastmap for multibyte character ranges.
33539         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33540         characters when a multibyte character range is included.
33541
33542 2009-11-22  Andy Wingo  <wingo@pobox.com>
33543
33544         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33545         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33546
33547 2009-11-24  Bruno Haible  <bruno@clisp.org>
33548
33549         doc: Most *_l functions exist in MacOS X 10.5.
33550         * doc/posix-functions/duplocale.texi: Update platforms list.
33551         * doc/posix-functions/freelocale.texi: Likewise.
33552         * doc/posix-functions/newlocale.texi: Likewise.
33553         * doc/posix-functions/uselocale.texi: Likewise.
33554         * doc/posix-functions/isalnum_l.texi: Likewise.
33555         * doc/posix-functions/isalpha_l.texi: Likewise.
33556         * doc/posix-functions/isblank_l.texi: Likewise.
33557         * doc/posix-functions/iscntrl_l.texi: Likewise.
33558         * doc/posix-functions/isdigit_l.texi: Likewise.
33559         * doc/posix-functions/isgraph_l.texi: Likewise.
33560         * doc/posix-functions/islower_l.texi: Likewise.
33561         * doc/posix-functions/isprint_l.texi: Likewise.
33562         * doc/posix-functions/ispunct_l.texi: Likewise.
33563         * doc/posix-functions/isspace_l.texi: Likewise.
33564         * doc/posix-functions/isupper_l.texi: Likewise.
33565         * doc/posix-functions/iswalnum_l.texi: Likewise.
33566         * doc/posix-functions/iswalpha_l.texi: Likewise.
33567         * doc/posix-functions/iswblank_l.texi: Likewise.
33568         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33569         * doc/posix-functions/iswctype_l.texi: Likewise.
33570         * doc/posix-functions/iswdigit_l.texi: Likewise.
33571         * doc/posix-functions/iswgraph_l.texi: Likewise.
33572         * doc/posix-functions/iswlower_l.texi: Likewise.
33573         * doc/posix-functions/iswprint_l.texi: Likewise.
33574         * doc/posix-functions/iswpunct_l.texi: Likewise.
33575         * doc/posix-functions/iswspace_l.texi: Likewise.
33576         * doc/posix-functions/iswupper_l.texi: Likewise.
33577         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33578         * doc/posix-functions/isxdigit_l.texi: Likewise.
33579         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33580         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33581         * doc/posix-functions/strcoll_l.texi: Likewise.
33582         * doc/posix-functions/strfmon_l.texi: Likewise.
33583         * doc/posix-functions/strftime_l.texi: Likewise.
33584         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33585         * doc/posix-functions/strxfrm_l.texi: Likewise.
33586         * doc/posix-functions/tolower_l.texi: Likewise.
33587         * doc/posix-functions/toupper_l.texi: Likewise.
33588         * doc/posix-functions/towctrans_l.texi: Likewise.
33589         * doc/posix-functions/towlower_l.texi: Likewise.
33590         * doc/posix-functions/towupper_l.texi: Likewise.
33591         * doc/posix-functions/wcscoll_l.texi: Likewise.
33592         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33593         * doc/posix-functions/wctrans_l.texi: Likewise.
33594         * doc/posix-functions/wctype_l.texi: Likewise.
33595         * doc/glibc-functions/strptime_l.texi: Likewise.
33596         * doc/glibc-functions/strtod_l.texi: Likewise.
33597         * doc/glibc-functions/strtof_l.texi: Likewise.
33598         * doc/glibc-functions/strtol_l.texi: Likewise.
33599         * doc/glibc-functions/strtold_l.texi: Likewise.
33600         * doc/glibc-functions/strtoll_l.texi: Likewise.
33601         * doc/glibc-functions/strtoul_l.texi: Likewise.
33602         * doc/glibc-functions/strtoull_l.texi: Likewise.
33603         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33604         * doc/glibc-functions/wcstod_l.texi: Likewise.
33605         * doc/glibc-functions/wcstof_l.texi: Likewise.
33606         * doc/glibc-functions/wcstol_l.texi: Likewise.
33607         * doc/glibc-functions/wcstold_l.texi: Likewise.
33608         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33609         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33610         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33611
33612 2009-11-24  Bruno Haible  <bruno@clisp.org>
33613
33614         duplocale: Fix logic bug.
33615         * lib/duplocale.c: Don't include <langinfo.h>.
33616         (_NL_LOCALE_NAME): Remove macro.
33617         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33618         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33619
33620 2009-11-23  Jim Meyering  <meyering@redhat.com>
33621
33622         test-update-copyright: don't hard-code /usr/bin/perl
33623         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33624         perl to print the current year.  Gilles Espinasse reported that
33625         the replaced use of perl was hard-coded as /usr/bin/perl.
33626
33627 2009-11-23  Bruno Haible  <bruno@clisp.org>
33628
33629         duplocale: Add support for glibc 2.3.x.
33630         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33631
33632 2009-11-22  Bruno Haible  <bruno@clisp.org>
33633
33634         vasnprintf: Tiny optimization.
33635         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33636         MacOS X.
33637
33638 2009-11-22  Bruno Haible  <bruno@clisp.org>
33639
33640         Tests for module 'duplocale'.
33641         * modules/duplocale-tests: New file.
33642         * tests/test-duplocale.c: New file.
33643
33644         New module 'duplocale'.
33645         * m4/duplocale.m4: New file.
33646         * lib/locale.in.h (duplocale): New declaration.
33647         * lib/duplocale.c: New file.
33648         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33649         gl_LOCALE_H_DEFAULTS): New macros.
33650         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33651         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33652         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33653         REPLACE_DUPLOCALE.
33654         * modules/duplocale: New file.
33655         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33656
33657 2009-11-22  Bruno Haible  <bruno@clisp.org>
33658
33659         * modules/locale-tests (configure.ac): Test for newlocale function.
33660         * tests/test-locale.c: When the system has extended locale functions,
33661         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33662
33663         locale: Make locale_t available when possible.
33664         * lib/locale.in.h: Include <xlocale.h> when it exists.
33665         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33666         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33667         * modules/locale (Depends-on): Add extensions.
33668         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33669         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33670
33671 2009-11-22  Bruno Haible  <bruno@clisp.org>
33672
33673         Add comments.
33674         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33675         invocation.
33676         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33677         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33678         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33679
33680 2009-11-22  Bruno Haible  <bruno@clisp.org>
33681
33682         error: account for the possibility of freopen (stdout).
33683         * lib/error.c: Include <unistd.h>.
33684         (flush_stdout): New function, extracted from error and error_at_line.
33685         Determine stdout's fd dynamically.
33686         (error, error_at_line): Invoke flush_stdout.
33687         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33688         * modules/error (Depends-on): Add unistd.
33689
33690 2009-11-22  Bruno Haible  <bruno@clisp.org>
33691
33692         diffseq: Add comment.
33693         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33694
33695 2009-11-22  Jim Meyering  <meyering@redhat.com>
33696
33697         c-stack: avoid defining an unused static function
33698         * lib/c-stack.c (find_stack_direction): Do not define this function
33699         when it will not be used.
33700
33701         diffseq: avoid spurious gcc warnings
33702         * lib/diffseq.h (IF_LINT2): Define.
33703         (compareseq): Use it to initialize two members of "part".
33704         This avoids two used-uninitialized warnings.
33705
33706 2009-11-21  Jim Meyering  <meyering@redhat.com>
33707
33708         c-stack: avoid "ignoring return value of `write'" warning
33709         * lib/c-stack.c: Include "ignore-value.h".
33710         (die): Explicitly ignore each write return value.
33711         * modules/c-stack (Depends-on): Add ignore-value.
33712
33713 2009-11-21  Bruno Haible  <bruno@clisp.org>
33714
33715         diffseq: reduce scope of variable 'best'.
33716         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33717         variable, earlier used for two different purposes.
33718
33719 2009-11-21  Jim Meyering  <meyering@redhat.com>
33720
33721         diffseq: remove useless assignment to "best"
33722         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33723         assignment.  At that point "best" is already guaranteed to be zero.
33724
33725 2009-11-20  Eric Blake  <ebb9@byu.net>
33726
33727         build: mention ftp redirector in release announcements
33728         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33729         values that used to come from cfg.mk; mention FTP redirect URL.
33730         * build-aux/announce-gen: Mention the mirror list.
33731         Suggested by Karl Berry.
33732
33733         nanosleep: improve port to mingw
33734         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33736         LIB_NANOSLEEP, but only when needed.
33737         * modules/select (Link): Document LIBSOCKET.
33738         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33739         enough.
33740
33741         nanosleep: work around cygwin bug
33742         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33743         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33744         bug.
33745         (getnow): Delete, not needed.
33746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33747         LIB_CLOCK_GETTIME.
33748         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33749         clock-time, gettime.
33750         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33751         bug.
33752         * modules/nanosleep-tests: New test.
33753         * tests/test-nanosleep.c: New file.
33754
33755         sleep: work around cygwin bug
33756         * lib/sleep.c (rpl_sleep): Work around the bug.
33757         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33758         (gl_PREREQ_SLEEP): Delete unused macro.
33759         * modules/sleep (Depends-on): Add verify.
33760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33761         * modules/unistd (Makefile.am): Substitute witness.
33762         * lib/unistd.in.h (sleep): Update prototype.
33763         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33764         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33765         * modules/sleep-tests (Depends-on): Check for alarm.
33766
33767 2009-11-20  Jim Meyering  <meyering@redhat.com>
33768
33769         maint.mk: improve sc_prohibit_magic_number_exit
33770         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33771         so it does not match uses like System.exit(1).
33772         Add comments showing how to correct all offenders.
33773
33774 2009-11-19  Eric Blake  <ebb9@byu.net>
33775
33776         xalloc-die-tests: add missing library
33777         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33778
33779         test-xvasprintf: silence compiler warnings
33780         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33781         empty string from gcc.
33782
33783 2009-11-19  Jim Meyering  <meyering@redhat.com>
33784
33785         xfreopen: new module, from coreutils
33786         * modules/xfreopen: New module.
33787         * lib/xfreopen.c: New file.
33788         * lib/xfreopen.h: New file.
33789         * MODULES.html.sh (File stream based Input/Output"): Add it.
33790
33791 2009-11-19  Eric Blake  <ebb9@byu.net>
33792
33793         manywarnings: depend on warnings
33794         * modules/manywarnings (Depends-on): Add warnings.
33795
33796         build: avoid compiler warnings
33797         * lib/select.c (rpl_select): Delete unused variable.
33798         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33799
33800 2009-11-18  Eric Blake  <ebb9@byu.net>
33801
33802         tests: avoid false negative with --with-packager
33803         * tests/test-version-etc.sh: Discard packager information.
33804         * tests/test-argp-version-etc-1.sh: Likewise.
33805         Reported by Mike Frysinger.
33806
33807         utimens: fix regression on Solaris
33808         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33809         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33810         can only change fd timestamps via futimesat.  Instead, use an
33811         additional witness macro to avoid BSD bug.
33812         Reported by Jim Meyering.
33813
33814 2009-11-17  Eric Blake  <ebb9@byu.net>
33815
33816         usleep: use it to simplify tests
33817         * modules/stat-time-tests (Depends-on): Add usleep.
33818         (configure.ac): Drop usleep check.
33819         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33820         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33821         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33822         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33823         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33824         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33825         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33826         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33827         Likewise.
33828         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33829         * tests/test-lchown.h (nap): Likewise.
33830         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33831         * tests/test-stat-time.c (nap): Likewise.
33832         * tests/test-utimens-common.h (nap): Update comments.
33833
33834         usleep: new module
33835         * modules/usleep: New file.
33836         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33837         * lib/usleep.c (usleep): Likewise.
33838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33839         * modules/unistd (Makefile.am): Substitute witnesses.
33840         * lib/unistd.in.h (usleep): Add declaration.
33841         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33842         * MODULES.html.sh (Date and time): Likewise.
33843         * modules/usleep-tests (Depends-on): New test.
33844         * tests/test-usleep.c: New file.
33845
33846         chown: work around OpenBSD bug
33847         * lib/chown.c (rpl_chown): Work around the bug.
33848         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33849         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33850         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33851         * modules/chown (Depends-on): Add stdbool.
33852         * modules/lchown (Depends-on): Likewise.
33853         * doc/posix-functions/chown.texi (chown): Document the bug.
33854         * doc/posix-functions/lchown.texi (lchown): Likewise.
33855         * tests/test-lchown.h (test_chown): Relax test.
33856
33857         mkstemp: avoid conflict with C++ keyword template
33858         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33859         * lib/mkostemp.c (mkostemp): Likewise.
33860         * lib/mkostemps.c (mkostemps): Likewise.
33861         * lib/mkstemp.c (mkstemp): Likewise.
33862         * lib/mkstemps.c (mkstemps): Likewise.
33863
33864         xalloc-die-tests: optimize
33865         * tests/test-xalloc-die.sh: Reduce number of processes.
33866
33867 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33868
33869         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33870         patch from ludo@gnu.org (Ludovic Courtès).
33871
33872 2009-11-17  Jim Meyering  <meyering@redhat.com>
33873
33874         version-etc: use proper license string
33875         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33876         * modules/version-etc-fsf: Likewise.
33877
33878 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33879
33880         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33881         printed to stdout.  Deal with EOL differences.
33882
33883 2009-11-17  Eric Blake  <ebb9@byu.net>
33884
33885         unsetenv: work around Solaris bug
33886         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33887         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33888         Reported by Jim Meyering.
33889
33890         vasnprintf: avoid compiler warnings
33891         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33892         variables.
33893         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33894
33895 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33896
33897         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33898         settings since xalloc-die is no longer the self test,
33899         xalloc-die.sh is.
33900
33901 2009-11-17  Jim Meyering  <meyering@redhat.com>
33902
33903         test-xalloc-die.sh: make the code agree with the commit log
33904         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33905         at the end, just in case you happen to have a test-xalloc-die
33906         program in some other PATH directory.
33907
33908         test-xalloc-die.sh: fix a portability bug
33909         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33910         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33911         Otherwise, argv[0] (as often seen in diagnostics) would be too
33912         system-dependent, sometimes with, and sometimes without the leading "./".
33913
33914         version-etc-fsf: relax license to LGPLv3+
33915         * modules/version-etc-fsf (License): Relax license.
33916
33917 2009-11-16  Eric Blake  <ebb9@byu.net>
33918
33919         xalloc-die-tests: avoid printing null pointer
33920         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33921         shell script.
33922         * tests/test-xalloc-die.c (program_name): Declare.
33923         * tests/test-xalloc-die.sh (tmpfiles): New file.
33924
33925         setenv, unsetenv: work around various bugs
33926         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33927         (setenv) [HAVE_SETENV]: Work around bugs.
33928         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33929         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33930         for bugs.
33931         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33932         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33934         * modules/stdlib (Makefile.am): Update substitutions.
33935         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33936         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33937         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33938         * modules/setenv-tests: New test.
33939         * modules/unsetenv-tests: Likewise.
33940         * tests/test-setenv.c: New file.
33941         * tests/test-unsetenv.c: Likewise.
33942
33943 2009-11-16  Jim Meyering  <meyering@redhat.com>
33944
33945         version-etc: relax license to LGPLv3+
33946         * modules/version-etc (License): Relax license.
33947
33948         better AC_REQUIRE expanded-before-required-warning avoidance
33949         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33950         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33951         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33952         which is no longer needed.
33953
33954 2009-11-16  Eric Blake  <ebb9@byu.net>
33955
33956         test-freading: clean up temporary file
33957         * tests/test-freading.c (main): Remove file on success, and use
33958         ASSERT more liberally.
33959         Reported by Jim Meyering.
33960
33961 2009-11-16  Jim Meyering  <meyering@redhat.com>
33962
33963         avoid new AC_REQUIRE expanded-before-required warnings
33964         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33965         merely using it.
33966         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33967         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33968
33969 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33970
33971         * tests/test-xalloc-die.c: New file.
33972         * modules/xalloc-die-tests: New file.
33973         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33974         XFAIL_TESTS so it can be appended by modules.
33975
33976 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33977
33978         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33979         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33980
33981 2009-11-14  Eric Blake  <ebb9@byu.net>
33982
33983         fnmatch: avoid compiler warning
33984         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33985         to silence compiler warning about mismatch signedness in ?:.
33986         Reported by Robert Millan.
33987
33988         intprops: add double-inclusion guard
33989         * lib/intprops.h: Allow idempotent includes.
33990         Suggested by Bruce Korb.
33991
33992         openat: detect Solaris fchownat bug
33993         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33994         penalizing glibc chownat when only lchownat is broken.
33995         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33996         trailing slash bugs.
33997         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33998         * modules/openat-tests (Files): Include more files.
33999         (Depends-on): Add mgetgroups, sleep, stat-time.
34000         (configure.ac): Add additional checks.
34001         (Makefile.am): Build new test.
34002         * tests/test-fchownat.c: New file.
34003
34004         lchown: detect Solaris and FreeBSD bug
34005         * lib/lchown.c (rpl_lchown): Work around bug.
34006         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34008         * modules/unistd (Makefile.am): Populate it.
34009         * lib/unistd.in.h (lchown): Update declaration.
34010         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34011         * modules/lchown-tests: New file.
34012         * tests/test-lchown.h (test_lchown): Likewise.
34013         * tests/test-lchown.c (main): Likewise.
34014
34015         chown: detect Solaris and FreeBSD bug
34016         * lib/chown.c (rpl_chown): Work around bug.
34017         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34018         (gl_PREREQ_CHOWN): Delete.
34019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34020         * modules/unistd (Makefile.am): Populate it.
34021         * lib/unistd.in.h (chown): Update declaration.
34022         * lib/lchown.c (chown): Update client.
34023         * modules/lchown (Depends-on): Add lstat.
34024         * doc/posix-functions/chown.texi (chown): Document the bug.
34025         * doc/posix-functions/getgroups.texi (getgroups): Document
34026         getgroups pitfall.
34027         * modules/chown-tests: New file.
34028         * tests/test-chown.h (test_chown): Likewise.
34029         * tests/test-chown.c (main): Likewise.
34030
34031 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34032
34033         gnulib-tool: correctly detect absence of m4 directories
34034         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34035
34036 2009-11-14  Jim Meyering  <meyering@redhat.com>
34037
34038         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34039         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34040
34041 2009-11-14  John W. Eaton  <jwe@gnu.org>
34042
34043         strftime.h: wrap funtion declaration in extern "C" block
34044         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34045
34046 2009-11-13  Eric Blake  <ebb9@byu.net>
34047
34048         getgroups: avoid compiler warning
34049         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34050
34051         getgroups: work around FreeBSD bug
34052         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34053         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34054         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34055         * tests/test-getgroups.c (main): Fix buffer overrun.
34056
34057         getgroups: avoid compilation failure
34058         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34059         * modules/getgroups (Depends-on): Add stdint.
34060
34061 2009-11-13  Jim Meyering  <meyering@redhat.com>
34062
34063         test-getgroups: avoid compilation failure
34064         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34065
34066 2009-11-13  Eric Blake  <ebb9@byu.net>
34067
34068         mgetgroups: new module, taken from coreutils
34069         * modules/mgetgroups: New file.
34070         * lib/mgetgroups.h: Likewise.
34071         * lib/mgetgroups.c (mgetgroups): Likewise.
34072         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34073         * MODULES.html.sh (Users and groups): Mention it.
34074
34075         getgroups: don't expose GETGROUPS_T to user
34076         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34077         an element at a time if GETGROUPS_T is wrong size.
34078         * lib/getugroups.h (getugroups): Change signature.
34079         * lib/unistd.in.h (getgroups): Likewise.
34080         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34081         signature needs fixing.
34082         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34083         AC_TYPE_GETGROUPS.
34084         * modules/group-member (Depends-on): Add getgroups.
34085         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34086         (group_member): Rely on getgroups replacement.
34087         * lib/getugroups.c (getugroups): Use gid_t.
34088         * tests/test-getgroups.c (main): Likewise.
34089         * NEWS: Mention the signature change.
34090         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34091         problem with signature.
34092         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34093         GETGROUPS_T is still useful for setgroups.
34094
34095         getgroups, getugroups: provide stubs for mingw
34096         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34097         * lib/getugroups.c (getugroups): Likewise.
34098         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34099         function.  Modernize replacement scheme.
34100         (gl_PREREQ_GETGROUPS): Delete.
34101         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34102         * modules/getgroups (configure.ac): Declare witness.
34103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34104         * modules/unistd (Depends-on): Substitute witness.
34105         * lib/unistd.in.h (getgroups): Declare replacement.
34106
34107         getgroups: avoid calling exit
34108         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34109         drop xalloc.
34110         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34111         dependencies.
34112         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34113         exiting, in the rare case of malloc failure.
34114
34115         getgroups: fix logic error
34116         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34117         has more than 20 groups.
34118         * modules/getgroups-tests: New test.
34119         * tests/test-getgroups.c: New file.
34120
34121 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34122
34123         * tests/test-base64.c: Improve.
34124
34125 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34126
34127         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34128         Blake <ebb9@byu.net>.
34129
34130 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34131
34132         * tests/test-xvasprintf.c: Add %s%s related checks.
34133
34134 2009-11-12  Eric Blake  <ebb9@byu.net>
34135
34136         version-etc: match standards.texi style
34137         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34138         and use <> only for URLs.
34139
34140 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34141
34142         fts: do not fail on a submount during traversal
34143         * lib/fts.c (fts_build): Read the stat info again after opening
34144         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34145         Original report at http://bugzilla.redhat.com/501848.
34146
34147 2009-11-12  Jim Meyering  <meyering@redhat.com>
34148
34149         bootstrap: sync from coreutils
34150         * build-aux/bootstrap (bootstrap_epilogue): New function.
34151         Use git_modules_config in one more place.  This make bootstrap's
34152         --gnulib-srcdir option more useful for testing.
34153
34154         bootstrap: generalize autoheader check
34155         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34156         AC_CONFIG_HEADERS.
34157
34158 2009-11-11  Eric Blake  <ebb9@byu.net>
34159
34160         mkfifoat: use new modules for Solaris and BSD bugs
34161         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34162         * lib/mkfifoat.c (mknodat): Split...
34163         * lib/mknodat.c (mknodat): ...into new file.
34164         * modules/mkfifoat (Files): Ship new file.
34165         (Depends-on): Add mkfifo, mknod.
34166         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34167         (Depends-on): Add symlink.
34168         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34169         redundant with test_mkfifo.h.
34170         (do_mkfifoat, do_mknodat): New helpers.
34171
34172         mknod: new module
34173         * modules/mknod: New file.
34174         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34175         * lib/mknod.c (mknod): Likewise.
34176         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34177         defaults.
34178         * modules/sys_stat (Makefile.am): Substitute them.
34179         * lib/sys_stat.in.h (mknod): Declare replacement.
34180         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34181         Document it.
34182         * doc/posix-functions/mknod.texi (mknod): Likewise.
34183         * modules/mknod-tests: New test.
34184         * tests/test-mknod.c: Likewise.
34185
34186         mkfifo: new module
34187         * modules/mkfifo: New file.
34188         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34189         * lib/mkfifo.c (mkfifo): Likewise.
34190         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34191         defaults.
34192         * modules/sys_stat (Makefile.am): Substitute them.
34193         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34194         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34195         Document it.
34196         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34197         * modules/mkfifo-tests: New test.
34198         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34199         from test-mkfifoat.c.
34200         * tests/test-mkfifo.c: New file.
34201
34202         readlink: detect FreeBSD bug
34203         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34204         slash on symlink.
34205         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34206         * tests/test-readlink.h (test_readlink): Enhance test.
34207
34208         symlink: detect FreeBSD bug
34209         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34210         slash on symlink.
34211         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34212         * tests/test-symlink.h (test_symlink): Enhance test.
34213
34214 2009-11-10  Eric Blake  <ebb9@byu.net>
34215
34216         link: detect FreeBSD bug
34217         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34218         symlink.
34219         * doc/posix-functions/link.texi (link): Document the bug.
34220         * tests/test-link.h (test_link): Enhance test.
34221         * tests/test-linkat.c (main): Update caller.
34222
34223         unlink, remove: detect FreeBSD bug
34224         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34225         slash on symlink.
34226         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34227         * doc/posix-functions/remove.texi (remove): Likewise.
34228         * tests/test-unlink.h (test_unlink): Enhance test.
34229         * tests/test-remove.c (main): Likewise.
34230
34231 2009-11-09  Eric Blake  <ebb9@byu.net>
34232
34233         rename: detect FreeBSD bug
34234         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34235         slash on symlink.
34236         * modules/renameat-tests (Depends-on): Add filenamecat.
34237         * tests/test-rename.h (test_rename): Allow one more errno.
34238         * tests/test-renameat.c (main): Likewise.
34239         * doc/posix-functions/rename.texi (rename): Document the bug.
34240
34241         open: detect FreeBSD bug
34242         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34243         symlink.
34244         * doc/posix-functions/open.texi (open): Document the bug.
34245         * doc/posix-functions/utimes.texi (utimes): Likewise.
34246         * tests/test-open.h (test_open): Add parameters, and test symlink
34247         handling.
34248         * tests/test-open.c (main): Adjust caller.
34249         * tests/test-fcntl-safer.c (main): Likewise.
34250         * modules/open-tests (Depends-on): Add stdbool, symlink.
34251         * modules/fcntl-safer-tests (Depends-on): Likewise.
34252         * tests/test-openat.c (main): Add test-open tests.
34253
34254         stat: detect FreeBSD bug
34255         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34256         symlink.
34257         * doc/posix-functions/stat.texi (stat): Document the bug.
34258         * tests/test-stat.h (test_stat_func): Add argument.
34259         * tests/test-stat.c (main): Adjust caller.
34260         * tests/test-fstatat.c (main): Likewise.
34261         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34262         Reported by Jim Meyering.
34263
34264 2009-11-09  James Youngman  <jay@gnu.org>
34265
34266         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34267         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34268
34269 2009-11-08  Jim Meyering  <meyering@redhat.com>
34270
34271         utimens: remove invalid futimesat call
34272         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34273         It used the file descriptor of the target file as the DIR_FD
34274         parameter and NULL as the file name.  That caused failure with
34275         errno == EFAULT on FreeBSD-8.0-rc2
34276
34277 2009-11-07  Eric Blake  <ebb9@byu.net>
34278
34279         fflush, freadseek: use fseeko, not fseek
34280         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34281         (clear_ungetc_buffer): Avoid potential problems on large files.
34282         * lib/freadseek.c (freadseek): Likewise.
34283         * modules/freadseek (Depends-on): Add fseeko.
34284         * modules/fseek (configure.ac): Set a witness.
34285         * tests/test-fflush.c (main): Use fseeko.
34286         * tests/test-fpurge.c (fseek): Disable link warning.
34287         * tests/test-freadable.c (fseek): Likewise.
34288         * tests/test-freading.c (fseek): Likewise.
34289         * tests/test-fseeko.c (fseek): Likewise.
34290         * tests/test-ftell.c (fseek): Likewise.
34291         * tests/test-ftello.c (fseek): Likewise.
34292         * tests/test-fwritable.c (fseek): Likewise.
34293         * tests/test-fwriting.c (fseek): Likewise.
34294
34295 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34296
34297         * modules/memchr (Depends-on): Drop getpagesize dependency.
34298
34299 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34300
34301         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34302         Reported by Ludovic Courtès.
34303         * build-aux/pmccabe2html: Improve example usage.
34304         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34305
34306 2009-11-06  Jim Meyering  <meyering@redhat.com>
34307
34308         do-release-commit-and-tag: New module.
34309         Automate the release-commit and tag process.
34310         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34311         * modules/do-release-commit-and-tag: New file.
34312         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34313
34314 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34315
34316         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34317         because test-select.c uses inet_pton.
34318
34319 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34320
34321         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34322         GETADDRINFO_LIB.  Bump serial number.
34323         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34324         Suggested by Eric Blake <ebb9@byu.net>.
34325
34326 2009-11-05  Eric Blake  <ebb9@byu.net>
34327
34328         strtod: detect darwin bug
34329         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34330         Reported by Leo Davis.
34331
34332         freopen-safer: new module
34333         * modules/freopen-safer: New module.
34334         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34335         * lib/freopen-safer.c (freopen_safer): New file.
34336         * lib/stdio-safer.h (freopen_safer): New declaration.
34337         * lib/stdio--.h (freopen): New override.
34338         * MODULES.html.sh (File stream based Input/Output): Mention it.
34339         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34340         freopen-safer module.
34341         * doc/posix-functions/stderr.texi (stderr): Likewise.
34342         * doc/posix-functions/stdin.texi (stdin): Likewise.
34343         * doc/posix-functions/stdout.texi (stdout): Likewise.
34344         * modules/freopen-safer-tests: New test.
34345         * tests/test-reopen-safer.c: New file.
34346
34347 2009-11-05  Jim Meyering  <meyering@redhat.com>
34348
34349         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34350         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34351
34352 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34353
34354         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34355
34356 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34357
34358         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34359
34360 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34361
34362         Fix link error.
34363         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34364         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34365
34366 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34367
34368         * tests/test-func.c: Also test value of __func__.
34369
34370 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34371
34372         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34373         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34374
34375 2009-11-05  Bruno Haible  <bruno@clisp.org>
34376
34377         Fix link error.
34378         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34379         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34380         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34381
34382 2009-11-05  Bruno Haible  <bruno@clisp.org>
34383
34384         Tests for module 'inet_pton'.
34385         * modules/inet_pton-tests: New file.
34386         * tests/test-inet_pton.c: New file.
34387
34388 2009-11-05  Bruno Haible  <bruno@clisp.org>
34389
34390         Tests for module 'inet_ntop'.
34391         * modules/inet_ntop-tests: New file.
34392         * tests/test-inet_ntop.c: New file.
34393
34394 2009-11-04  Eric Blake  <ebb9@byu.net>
34395
34396         stdlib-safer: wrap all mkstemp variants
34397         * modules/mkostemp (configure.ac): Set witness.
34398         * modules/mkostemps (configure.ac): Likewise.
34399         * modules/mkstemps (configure.ac): Likewise.
34400         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34401         (mkstemps_safer): Wrap more functions.
34402         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34403         wrapping.
34404         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34405         (mkstemps_safer): Implement the wrappers.
34406
34407         mkstemps, mkostemps: new modules
34408         * modules/mkostemps: New module.
34409         * modules/mkstemps: Likewise.
34410         * lib/mkostemps.c (mkostemps): New file.
34411         * lib/mkstemps.c (mkstemps): Likewise.
34412         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34413         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34415         * modules/stdlib (Makefile.am): Substitute them.
34416         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34417         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34418         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34419         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34420         * MODULES.html.sh (File system functions): Mention them.
34421
34422         tempname: resync from glibc
34423         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34424         same values for __GT_FILE as glibc.  Abort even when assertions
34425         are disabled.
34426         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34427         match its value otherwise.  Allow idempotent inclusion.
34428         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34429         * lib/mkostemp.c (mkostemp): Likewise.
34430         * lib/mkstemp.c (mkstemp): Likewise.
34431         * lib/tmpfile.c (tmpfile): Likewise.
34432         * NEWS: Document this.
34433
34434         utimens: fix use of futimens on older Linux
34435         * lib/utimens.c (fdutimens): Use updated, rather than original,
34436         timespec to avoid bug in older Linux kernel.
34437         Reported by Simon Josefsson.
34438
34439 2009-11-04  Bruno Haible  <bruno@clisp.org>
34440
34441         Make num_processors more flexible and consistent.
34442         * lib/nproc.h (enum nproc_query): New type.
34443         (num_processors): Add a 'query' argument.
34444         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34445         (num_processors): Add a 'query' argument. Test the value of the
34446         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34447         mingw, count the number of CPUs available for the current process.
34448         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34449         Check for sched_getaffinity and sched_getaffinity_np.
34450         * modules/nproc (Depends-on): Add c-ctype, extensions.
34451         * NEWS: Mention the change.
34452
34453 2009-11-03  Bruno Haible  <bruno@clisp.org>
34454
34455         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34456
34457 2009-11-03  Jim Meyering  <meyering@redhat.com>
34458
34459         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34460         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34461         if it is defined.
34462
34463 2009-11-02  Eric Blake  <ebb9@byu.net>
34464
34465         mktime, timegm: share common declaration
34466         * lib/mktime-internal.h: New file.
34467         * lib/mktime.c: Use it rather than open-coding a declaration.
34468         * lib/timegm.c: Likewise.
34469         * modules/mktime (Files): Ship it.
34470         * modules/timegm (Files): Likewise.
34471         Suggested by Bruno Haible.
34472
34473         test-update-copyright: update test to match script changes
34474         * tests/test-update-copyright.sh: Avoid hard-coding perl
34475         location.  Don't update *.bak created by earlier runs.
34476
34477 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34478             Simon Josefsson  <simon@josefsson.org>
34479             Bruno Haible  <bruno@clisp.org>
34480
34481         Fix link error on Solaris 8.
34482         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34483         also in libnsl. Define also INET_PTON_LIB.
34484         * modules/inet_pton (Link): New section.
34485
34486 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34487             Bruno Haible  <bruno@clisp.org>
34488
34489         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34490         * modules/inet_ntop (Link): New section.
34491         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34492
34493 2009-11-02  Eric Blake  <ebb9@byu.net>
34494
34495         maint: avoid compiler warnings in m4 macros
34496         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34497         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34498
34499 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34500
34501         * m4/pmccabe2html.m4: Remove file.
34502         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34503         function.  Change maintainer.
34504         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34505         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34506         Courtès).
34507
34508 2009-10-31  Eric Blake  <ebb9@byu.net>
34509
34510         fseeko: fix m4 regression
34511         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34512         regression from 2009-10-27.
34513         Reported by Ralf Wildenhues.
34514
34515 2009-10-31  Jim Meyering  <meyering@redhat.com>
34516
34517         inttostr: aesthetics and improved (compile-time) safety
34518         Define inttype_is_signed rather than inttype_is_unsigned,
34519         since the sole use is via "#if inttype_is_signed".
34520         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34521         inttype_is_unsigned.
34522         * lib/offtostr.c (inttype_is_signed): Likewise.
34523         * lib/uinttostr.c (inttype_is_signed): Likewise.
34524         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34525         * lib/inttostr.c (inttostr): Use verify to cross-check the
34526         inttype_is_signed value and the signedness of the actual type.
34527         * modules/inttostr (Depends-on): Add verify.
34528
34529 2009-10-30  Eric Blake  <ebb9@byu.net>
34530
34531         build: avoid compiler warnings
34532         * lib/fchmodat.c (lchmod): Mark unused variables.
34533         * lib/getopt.c (_getopt_initialize): Likewise.
34534         * lib/mktime.c (__mktime_internal): Provide prototype.
34535         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34536         older gcc that do not understand #pragma GCC diagnostic.
34537         * lib/uinttostr.c (inttype_is_unsigned): Define.
34538         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34539
34540 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34541
34542         stat: fix compilation on AIX
34543         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34544         only see struct stat64.
34545
34546 2009-10-30  Eric Blake  <ebb9@byu.net>
34547
34548         exclude: make more robust
34549         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34550         rather than masking a coding bug.
34551         Suggested by Bruno Haible.
34552
34553 2009-10-30  Jim Meyering  <meyering@redhat.com>
34554
34555         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34556         Rather than putting #!/usr/bin/perl on the first line,
34557         start with a variant of what's recommended by "man perlrun" that
34558         invokes the first "perl" program from your shell's search path.
34559         * build-aux/gitlog-to-changelog: Replace #!... as above.
34560         Add a "Local Variables" perl mode setting.
34561         Prompted by a patch from Ludovic Courtès.
34562         Improved by Eric Blake.
34563         * build-aux/useless-if-before-free: Likewise.
34564         * build-aux/announce-gen: Likewise.
34565         * build-aux/update-copyright: Likewise.
34566
34567 2009-10-29  Eric Blake  <ebb9@byu.net>
34568
34569         filenamecat-lgpl: adjust clients
34570         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34571         filenamecat.
34572         * modules/renameat (Depends-on): Likewise.
34573
34574         filenamecat: split into filenamecat-lgpl
34575         * modules/filenamecat-lgpl: New module.
34576         * modules/filenamecat (Files): Move library-safe files into
34577         filenamecat-lgpl.
34578         (Depends-on): Add filenamecat-lgpl.
34579         (configure.ac): Declare witness.
34580         * lib/filenamecat.h (file_name_concat): Only declare when using
34581         GPL module.
34582         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34583         Move...
34584         * lib/filenamecat-lgpl.c: ...into new file.
34585         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34586         (gl_FILE_NAME_CONCAT): Use it.
34587         * MODULES.html.sh (File system functions): Mention new module.
34588
34589         argp: avoid memory leak
34590         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34591         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34592         base_name, since the latter malloc()s and can call exit().
34593         Leak introduced 2006-07-03.
34594
34595         dirname-lgpl: adjust clients that don't need full dirname
34596         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34597         * modules/filenamecat (Depends-on): Likewise.
34598         * modules/linkat (Depends-on): Likewise.
34599         * modules/mkancesdirs (Depends-on): Likewise.
34600         * modules/mkdir (Depends-on): Likewise.
34601         * modules/openat (Depends-on): Likewise.
34602         * modules/savewd (Depends-on): Likewise.
34603         * modules/rename (Depends-on): Likewise.
34604         (License): Relax license.
34605         * modules/mkdir-tests (Depends-on): Drop progname.
34606         (Makefile.am): Delete unneeded LDADD.
34607         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34608
34609         dirname: split into dirname-lgpl
34610         * modules/dirname-lgpl: New module.
34611         * modules/dirname (Files): Move library-safe files into
34612         dirname-lgpl.
34613         (Depends-on): Add dirname-lgpl.
34614         (configure.ac): Declare witness.
34615         * modules/double-slash-root (License): Relax license.
34616         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34617         module.
34618         * lib/dirname.c (dir_len, mdir_name): Move...
34619         * lib/dirname-lgpl.c: ...into new file.
34620         * lib/basename.c (last_component, base_len): Move...
34621         * lib/basename-lgpl.c: ...into new file.
34622         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34623         (gl_DIRNAME): Use it.
34624         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34625         Mention new module.
34626         * modules/dirname-tests (Depends-on): Add progname.
34627         * tests/test-dirname.c (program_name): Delete.
34628
34629         mkdir: make safe for libraries
34630         * modules/mkdir (Depends-on): Drop xalloc.
34631         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34632         exit.
34633
34634         tests: avoid some compiler warnings
34635         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34636         literals.
34637         * tests/test-memchr.c (main): Avoid type mismatch.
34638         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34639         * tests/test-base64.c (main): Likewise.
34640         * tests/test-getdelim.c (main): Likewise.
34641         * tests/test-gethostname.c (main): Likewise.
34642         * tests/test-getline.c (main): Likewise.
34643         * tests/test-netinet_in.c (main): Likewise.
34644         * tests/test-select.c (open_server_socket, main): Likewise.
34645         * tests/test-select-stdin.c (main): Likewise.
34646         * tests/test-sockets.c (main): Likewise.
34647         * tests/test-strsignal.c (main): Likewise.
34648         * tests/test-sys_select.c (main): Likewise.
34649         * tests/test-sys_socket.c (main): Likewise.
34650         * tests/test-u64.c (main): Likewise.
34651         * tests/test-xfprintf-posix.c (main): Likewise.
34652         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34653
34654         sockets: avoid compiler warning
34655         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34656
34657         maint: detect usage(1) and other suspicious exits
34658         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34659
34660 2009-10-29  Jim Meyering  <meyering@redhat.com>
34661
34662         timespec: long-to-int truncation could make timespec_cmp malfunction
34663         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34664         a multiple of 2^32 nanoseconds as no difference.
34665
34666 2009-10-28  Jim Meyering  <meyering@redhat.com>
34667
34668         fprintftime: wrap macro code argument in "do {...} while(0)"
34669         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34670         cpy macro must be a statement that can be followed by a semicolon.
34671         Now that the else clause contains a comment and is hence longer
34672         than one line, I require curly braces.  That in turn requires
34673         that we wrap this code block in the standard do...while(0).
34674
34675         fprintftime: remove stray semicolon from previous change
34676         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34677
34678         fprintftime: avoid a warning about ignored fwrite return value
34679         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34680         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34681         that is unsafe.
34682         * modules/fprintftime (Depends-on): Add ignore-value.
34683
34684         exclude: avoid an unwarranted warning
34685         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34686
34687 2009-10-27  Eric Blake  <ebb9@byu.net>
34688
34689         fseek: avoid compilation failure when fflush is replaced
34690         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34691         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34692         module is in use.
34693         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34694         module is not in use; since REPLACE_FSEEK worked otherwise.
34695         (GNULIB_FTELLO): Likewise for ftell.
34696         Reported by Ian Beckwith and others.
34697
34698 2009-10-27  Bruno Haible  <bruno@clisp.org>
34699
34700         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34701         Reported by Jim Meyering.
34702
34703 2009-10-27  Jim Meyering  <jim@meyering.net>
34704             Bruno Haible  <bruno@clisp.org>
34705
34706         Avoid warning despite dropping the return value of fwrite.
34707         * lib/unicodeio.c: Include ignore-value.h.
34708         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34709         * modules/unicodeio (Depends-on): Add ignore-value.
34710
34711 2009-10-26  Eric Blake  <ebb9@byu.net>
34712
34713         areadlinkat: fix fallback path
34714         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34715         pointer and zero.
34716
34717 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34718
34719         Use a better IO block size for modern systems
34720         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34721         * lib/md2.c: Likewise.
34722         * lib/md4.c: Likewise.
34723         * lib/md5.c: Likewise.
34724         * lib/sha1.c: Likewise.
34725         * lib/sha256.c: Likewise.
34726         * lib/sha512.c: Likewise.
34727
34728 2009-10-22  Eric Blake  <ebb9@byu.net>
34729
34730         tests: avoid several compiler warnings
34731         * tests/test-getcwd.c (main): Avoid buffer underflow.
34732         * tests/test-getdate.c (main): String literals are not safe with
34733         putenv, so use setenv.  Declare unused argument.
34734         * modules/getdate-tests (Depends-on): Add setenv.
34735         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34736         problems with string literals in char *.
34737         * tests/test-hash.c (main): Avoid shadowing declaration.
34738         (insert_new): Treat string literals as char const *.
34739         * tests/test-getopt.h (test_getopt): Likewise.
34740         (getopt_loop): Alter types to minimize casting elsewhere.
34741         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34742         (test_getopt_long_posix): Likewise.
34743         (do_getopt_long): Add wrapper to minimize casting.
34744         * tests/test-atexit.c (clear_temp_file): Use void.
34745         * tests/test-areadlink-with-size.c (main): Declare unused
34746         arguments.
34747         * tests/test-areadlink.c (main): Likewise.
34748         * tests/test-areadlinkat-with-size.c (main): Likewise.
34749         * tests/test-areadlinkat.c (main): Likewise.
34750         * tests/test-canonicalize-lgpl.c (main): Likewise.
34751         * tests/test-canonicalize.c (main): Likewise.
34752         * tests/test-dirent-safer.c (main): Likewise.
34753         * tests/test-dirname.c (main): Likewise.
34754         * tests/test-dup2.c (main): Likewise.
34755         * tests/test-fchdir.c (main): Likewise.
34756         * tests/test-fcntl-h.c (main): Likewise.
34757         * tests/test-fcntl-safer.c (main): Likewise.
34758         * tests/test-fdopendir.c (main): Likewise.
34759         * tests/test-fdutimensat.c (main): Likewise.
34760         * tests/test-fflush.c (main): Likewise.
34761         * tests/test-filenamecat.c (main): Likewise.
34762         * tests/test-filevercmp.c (main): Likewise.
34763         * tests/test-fopen-safer.c (main): Likewise.
34764         * tests/test-fopen.c (main): Likewise.
34765         * tests/test-fpending.c (main): Likewise.
34766         * tests/test-fpurge.c (main): Likewise.
34767         * tests/test-freading.c (main): Likewise.
34768         * tests/test-fstatat.c (main): Likewise.
34769         * tests/test-fsync.c (main): Likewise.
34770         * tests/test-futimens.c (main): Likewise.
34771         * tests/test-getndelim2.c (main): Likewise.
34772         * tests/test-gettimeofday.c (main): Likewise.
34773         * tests/test-getopt.c (main): Likewise.
34774         * tests/test-i-ring.c (main): Likewise.
34775         * tests/test-inttypes.c (main): Likewise.
34776         * tests/test-link.c (main): Likewise.
34777         * tests/test-lstat.c (main): Likewise.
34778         * tests/test-math.c (main): Likewise.
34779         * tests/test-md5.c (main): Likewise.
34780         * tests/test-memchr2.c (main): Likewise.
34781         * tests/test-memrchr.c (main): Likewise.
34782         * tests/test-mkdir.c (main): Likewise.
34783         * tests/test-mkdirat.c (main): Likewise.
34784         * tests/test-mkfifoat.c (main): Likewise.
34785         * tests/test-open.c (main): Likewise.
34786         * tests/test-openat-safer.c (main): Likewise.
34787         * tests/test-openat.c (main): Likewise.
34788         * tests/test-quotearg.c (main): Likewise.
34789         * tests/test-rawmemchr.c (main): Likewise.
34790         * tests/test-readlink.c (main): Likewise.
34791         * tests/test-remove.c (main): Likewise.
34792         * tests/test-rename.c (main): Likewise.
34793         * tests/test-renameat.c (main): Likewise.
34794         * tests/test-rmdir.c (main): Likewise.
34795         * tests/test-sha1.c (main): Likewise.
34796         * tests/test-signal.c (main): Likewise.
34797         * tests/test-sigaction.c (main): Likewise.
34798         * tests/test-stat.c (main): Likewise.
34799         * tests/test-stat-time.c (main): Likewise.
34800         * tests/test-stddef.c (main): Likewise.
34801         * tests/test-stdint.c (main): Likewise.
34802         * tests/test-stdio.c (main): Likewise.
34803         * tests/test-stdlib.c (main): Likewise.
34804         * tests/test-strchrnul.c (main): Likewise.
34805         * tests/test-strerror.c (main): Likewise.
34806         * tests/test-string.c (main): Likewise.
34807         * tests/test-strtod.c (main): Likewise.
34808         * tests/test-strverscmp.c (main): Likewise.
34809         * tests/test-symlink.c (main): Likewise.
34810         * tests/test-symlinkat.c (main): Likewise.
34811         * tests/test-sys_stat.c (main): Likewise.
34812         * tests/test-sys_time.c (main): Likewise.
34813         * tests/test-time.c (main): Likewise.
34814         * tests/test-unistd.c (main): Likewise.
34815         * tests/test-unlink.c (main): Likewise.
34816         * tests/test-unlinkat.c (main): Likewise.
34817         * tests/test-utimens.c (main): Likewise.
34818         * tests/test-utimensat.c (main): Likewise.
34819         * tests/test-version-etc.c (main): Likewise.
34820         * tests/test-wchar.c (main): Likewise.
34821         * tests/test-wctype.c (main): Likewise.
34822         * tests/test-xprintf-posix.c (main): Likewise.
34823         * tests/test-posixtm.c (main): Likewise.
34824         (STREQ): Delete unused macro.
34825         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34826         shadowed variables.
34827         * tests/test-memchr.c (main): Likewise.
34828
34829 2009-10-21  Eric Blake  <ebb9@byu.net>
34830
34831         areadlinkat: avoid failure on older glibc
34832         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34833         rather than mis-comparing 0 against FUNC_RESULT of char*.
34834
34835 2009-10-21  Bruno Haible  <bruno@clisp.org>
34836
34837         * modules/stpncpy (License): Relicense under LGPLv2+.
34838         Reported by David Lutterkort <lutter@redhat.com>.
34839
34840 2009-10-20  Eric Blake  <ebb9@byu.net>
34841
34842         utimensat: work around Solaris 9 bug
34843         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34844         has trailing slash bugs.
34845         * tests/test-lutimens.h (test_lutimens): Enhance test.
34846         * tests/test-utimens.h (test_utimens): Likewise.
34847         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34848         * doc/posix-functions/utimes.texi (utimes): Likewise.
34849         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34850         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34851         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34852         * doc/posix-functions/futimens.texi (futimens): Likewise.
34853
34854         fdutimensat: new module
34855         * modules/fdutimensat: New file.
34856         * lib/fdutimensat.c (fdutimensat): Likewise.
34857         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34858         * MODULES.html.sh (File system functions): Mention module.
34859         * modules/fdutimensat-tests: New test.
34860         * tests/test-fdutimensat.c: Likewise.
34861
34862         doc: regenerate INSTALL
34863         * doc/INSTALL: Reflect recent autoconf update.
34864         * doc/INSTALL.ISO: Likewise.
34865         * doc/INSTALL.UTF-8: Likewise.
34866
34867 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34868
34869         acl: warn if ACL support is not detected
34870         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34871
34872 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34873
34874         * lib/nproc.h: Add extern "C" block for C++.
34875
34876 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34877             Bruno Haible  <bruno@clisp.org>
34878
34879         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34880         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34881         * doc/posix-functions/isalpha.texi: Likewise.
34882         * doc/posix-functions/isblank.texi: Likewise.
34883         * doc/posix-functions/iscntrl.texi: Likewise.
34884         * doc/posix-functions/isdigit.texi: Likewise.
34885         * doc/posix-functions/isgraph.texi: Likewise.
34886         * doc/posix-functions/islower.texi: Likewise.
34887         * doc/posix-functions/isprint.texi: Likewise.
34888         * doc/posix-functions/ispunct.texi: Likewise.
34889         * doc/posix-functions/isspace.texi: Likewise.
34890         * doc/posix-functions/isupper.texi: Likewise.
34891         * doc/posix-functions/isxdigit.texi: Likewise.
34892
34893 2009-10-18  Bruno Haible  <bruno@clisp.org>
34894
34895         Tests for module 'isblank'.
34896         * modules/isblank-tests: New file.
34897         * tests/test-isblank.c: New file.
34898
34899         New module 'isblank'.
34900         * lib/isblank.c: New file.
34901         * m4/isblank.m4: New file.
34902         * modules/isblank: New file.
34903         * doc/posix-functions/isblank.texi: Mention the new module.
34904
34905 2009-10-18  Bruno Haible  <bruno@clisp.org>
34906
34907         New module 'ctype'.
34908         * lib/ctype.in.h: New file.
34909         * m4/ctype.m4: New file.
34910         * modules/ctype: New file.
34911         * doc/posix-headers/ctype.texi: Mention the new module.
34912
34913 2009-10-18  Jim Meyering  <meyering@redhat.com>
34914
34915         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34916         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34917         right after its initialization, rather than farther down.
34918         Keeping these in close proximity makes it easier to ensure
34919         that each such variable is initialized.  E.g.,
34920
34921             LIB_CLOCK_GETTIME=
34922             AC_SUBST([LIB_CLOCK_GETTIME])
34923
34924         This change also increments these serial numbers.
34925         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34926         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34927         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34928
34929 2009-10-18  Bruno Haible  <bruno@clisp.org>
34930
34931         Don't let environment variables perturb build.
34932         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34933         (gl_PREREQ_GETHRXTIME): ... not here.
34934
34935 2009-10-18  Bruno Haible  <bruno@clisp.org>
34936
34937         Avoid symlink attack in localcharset module.
34938         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34939         (O_NOFOLLOW): Define fallback.
34940         (get_charset_aliases): Don't open the file if it is a symbolic link.
34941         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34942         gl_FCNTL_H.
34943         (gl_FCNTL_H): Require it.
34944         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34945         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34946         Reported by Fergal Glynn <fglynn@veracode.com>.
34947
34948 2009-10-18  Bruno Haible  <bruno@clisp.org>
34949
34950         Implement nproc for mingw.
34951         * lib/nproc.c: Include <windows.h>
34952         (num_processors): On native Windows platforms, try GetSystemInfo.
34953
34954 2009-10-18  Bruno Haible  <bruno@clisp.org>
34955
34956         Implement nproc for IRIX.
34957         * lib/nproc.c: Include <sys/sysmp.h>.
34958         (num_processors): On IRIX systems, try sysmp.
34959         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34960
34961 2009-10-18  Bruno Haible  <bruno@clisp.org>
34962
34963         Implement nproc for HP-UX.
34964         * lib/nproc.c: Include <sys/pstat.h>
34965         (num_processors): On HP-UX systems, try pstat_getdynamic.
34966         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34967         pstat_getdynamic.
34968
34969 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34970             Bruno Haible  <bruno@clisp.org>
34971
34972         Implement nproc for NetBSD, OpenBSD.
34973         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34974         (ARRAY_SIZE): New macro.
34975         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34976         * m4/nproc.m4: New file.
34977         * modules/nproc (Files): Add m4/nproc.m4.
34978         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34979         (Makefile.am): Instead, augment lib_SOURCES.
34980
34981 2009-10-18  Bruno Haible  <bruno@clisp.org>
34982
34983         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34984         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34985         sys/param.h.
34986
34987 2009-10-16  Eric Blake  <ebb9@byu.net>
34988
34989         utimensat: new module
34990         * modules/utimensat: New file.
34991         * lib/utimensat.c (utimensat): Likewise.
34992         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34993         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34994         so we can work around Linux bugs.
34995         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34996         * modules/sys_stat (Makefile.am): Substitute them.
34997         * lib/sys_stat.in.h (utimensat): Declare it.
34998         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34999         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35000         * modules/utimensat-tests: New test.
35001         * tests/test-utimensat.c: Likewise.
35002
35003         utimens: let lutimens work on non-symlinks
35004         * lib/utimens.c (lutimens): Fall back to utimens rather than
35005         failing with ENOSYS, when file is not a symlink.
35006         (utimens): Reduce redirection.
35007         * tests/test-lutimens.h (test_lutimens): Update test to cover
35008         non-symlinks.
35009         * tests/test-utimens.h (test_utimens): Update test to cover
35010         symlinks.
35011         * tests/test-utimens.c (main): Update caller.
35012
35013         utimens: cache whether utimensat syscall works
35014         * lib/utimens.c (utimensat_works_really): New cache variable.
35015         (fdutimens, lutimens): Use it to avoid failing syscall.
35016
35017         test-stat-time, test-utimens: improve portability
35018         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35019         ext4 on alpha, and for cygwin.
35020         * tests/test-utimens-common.h: New file.
35021         (nap): Factor delays into single function.
35022         * tests/test-lutimens.h (test_lutimens): Use new header.
35023         * tests/test-futimens.h (test_futimens): Likewise.
35024         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35025         timestamps to occur from same machine, as was done previously for
35026         test_utimens.
35027         * modules/utimens-tests (Files): Ship new file.
35028         * modules/futimens-tests (Files): Likewise.
35029         Reported in part by Jim Meyering.
35030
35031         sys_stat: sort replacement declarations
35032         * lib/sys_stat.in.h: Sort declarations.
35033         * lib/futimens.c (futimens): Fix typo.
35034
35035 2009-10-15  Jim Meyering  <meyering@redhat.com>
35036
35037         don't let environment settings perturb build
35038         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35039         could cause a configure-time and/or build-time malfunction.
35040         Typically, a configure-time function-in-library test is performed
35041         via code like this:
35042
35043           LIB_VAR=
35044           AC_SUBST([LIB_VAR])
35045           prefix_saved_LIBS=$LIBS
35046             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35047                        [test "$ac_cv_search_FUNC" = "none required" ||
35048                         LIB_VAR=$ac_cv_search_FUNC])
35049           LIBS=$prefix_saved_LIBS
35050
35051         However, in each of the files affected by this change, the LIB_VAR=
35052         initialization was omitted.  Thus, when set in the environment, its
35053         value would propagate into generated Makefiles when FUNC is not found
35054         in LIB_NAME.
35055         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35056         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35058
35059 2009-10-14  Eric Blake  <ebb9@byu.net>
35060
35061         fchdir: avoid infinite recursion in mingw
35062         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35063         recursing.
35064
35065         test-stat-time: port to mingw
35066         * tests/test-stat-time.c (force_unlink): Return a value.
35067         (test_ctime) [W32]: Fix compilation error.
35068         (nap): Don't call usleep with too large an argument.  Use
35069         force_unlink.
35070         * doc/pastposix-functions/usleep.texi (usleep): Document the
35071         portability issue.
35072
35073 2009-10-13  Jim Meyering  <meyering@redhat.com>
35074
35075         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35076         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35077         * modules/pipe-filter-ii: Likewise.
35078         * modules/sys_socket-tests: Likewise.
35079         * modules/tsearch-tests: Likewise.
35080         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35081         (check): Depend on it.
35082
35083 2009-10-12  Eric Blake  <ebb9@byu.net>
35084
35085         utimens-tests: port to NFS file systems
35086         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35087         comparisons to avoid spurious failures from timestamp drift
35088         between NFS machines.
35089
35090 2009-10-12  Eric Blake  <ebb9@byu.net>
35091
35092         stat-time-tests: minor cleanups
35093         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35094         * tests/test-stat-time.c (nap): Separate assignment from call.
35095         Suggested by Paolo Bonzini and Bruno Haible.
35096
35097         sys_stat: guarantee struct timespec
35098         * lib/sys_stat.in.h (includes): Always include <time.h>
35099         * modules/sys_stat (Depends-on): Add time.
35100         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35101         mode_t permission values.
35102         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35103         get at subsecond timestamps.
35104
35105 2009-10-10  Eric Blake  <ebb9@byu.net>
35106
35107         futimens: new module
35108         * modules/futimens: New file.
35109         * lib/futimens.c (futimens): Likewise.
35110         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35111         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35112         we can work around Linux bugs.
35113         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35114         * modules/sys_stat (Makefile.am): Substitute them.
35115         * lib/sys_stat.in.h (futimens): Declare it.
35116         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35117         * doc/posix-functions/futimens.texi (futimens): Likewise.
35118         * modules/futimens-tests: New test.
35119         * tests/test-futimens.c: Likewise.
35120
35121         utimens: introduce fdutimens
35122         * lib/utimens.h (fdutimens): New prototype.
35123         * lib/utimens.c (gl_futimens): Move guts...
35124         (fdutimens): ...to new interface.
35125         * tests/test-utimens.c (do_fdutimens): Use it.
35126
35127         utimens: add UTIME_NOW and UTIME_OMIT support
35128         * lib/utimens.c (validate_timespec, update_timespec): New helper
35129         functions.
35130         (gl_futimens, lutimens): Use them.
35131         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35132         stdbool, sys_stat.
35133         (Link): Mention resulting library dependency.
35134         * modules/utimecmp (Link): Likewise.
35135         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35136         (Makefile.am): Pick up library dependency.
35137         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35138         definition.
35139         * tests/test-sys_stat.c: Test the definitions.
35140         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35141         * NEWS: Document library dependency.
35142
35143         utimecmp: support symlink timestamps
35144         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35145         hashing when possible.  Use pathconf when available.
35146         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35147         * modules/utimecmp (Depends-on): Add lstat.
35148
35149         utimens: add lutimens interface
35150         * lib/utimens.c (lutimens): New function.
35151         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35152         * lib/utimens.h (lutimens): Declare new interface.
35153         * tests/test-utimens.c (main): Enhance test.
35154         * tests/test-lutimens.h (test_lutimens): New file.
35155         * modules/utimens-tests (Files): Distribute it.
35156         (Depends-on): Add symlink.
35157         (configure.ac): Check for usleep.
35158
35159         utimens: validate futimens usage
35160         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35161         fewer syscalls on failure later on.  Avoid compiler warning on
35162         mingw.
35163         * modules/utimens (Depends-on): Add dup2.
35164
35165         utimens: add test
35166         * modules/utimens-tests: New test.
35167         * tests/test-utimens.h: New file.
35168         * tests/test-futimens.h: Likewise.
35169         * tests/test-utimens.c: Likewise.
35170
35171         doc: mention timestamp portability issues
35172         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35173         instead.
35174         * doc/posix-functions/utime.texi (utime): Likewise.
35175         * doc/posix-functions/utimes.texi (utimes): Likewise.
35176         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35177         instead.
35178         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35179         module.
35180         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35181         Mention weakness with symlink timestamps.
35182         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35183         to utimensat/futimens instead.
35184         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35185
35186         test-dup2: enhance test
35187         * tests/test-dup2.c (main): Also check AT_FDCWD.
35188
35189         test-stat-time: avoid more spurious failures
35190         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35191         xfs; and avoid race if the two timestamps cross quantization edge.
35192
35193         relocatable: prefer 'file system' over 'filesystem'
35194         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35195         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35196         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35197         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35198         * lib/relocatable.c (compute_curr_prefix): Likewise.
35199
35200 2009-10-10  Jim Meyering  <meyering@redhat.com>
35201
35202         stat-time-tests: check for the usleep function
35203         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35204
35205 2009-10-10  Bruno Haible  <bruno@clisp.org>
35206
35207         * modules/xnanosleep: Put the Link section after the Include section.
35208
35209 2009-10-09  Eric Blake  <ebb9@byu.net>
35210
35211         dup2: work around FreeBSD 6.1 bug
35212         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35213         * doc/posix-functions/dup2.texi (dup2): Document it.
35214         Reported by Nelson H. F. Beebe and Jim Meyering.
35215
35216         test-stat-time: port to buggy NFS clients
35217         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35218         (test_ctime): Also skip test if mtime and ctime are skewed.
35219
35220         maint: prefer 'file system' over 'filesystem'
35221         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35222         * doc/posix-functions/lstat.texi (lstat): Likewise.
35223         * lib/file-has-acl.c (file_has_acl): Likewise.
35224         * lib/fwriteerror.c [TEST]: Likewise.
35225         * tests/test-areadlink.h (test_areadlink): Likewise.
35226         * tests/test-areadlinkat-with-size.c (main): Likewise.
35227         * tests/test-areadlinkat.c (main): Likewise.
35228         * tests/test-canonicalize-lgpl.c (main): Likewise.
35229         * tests/test-canonicalize.c (main): Likewise.
35230         * tests/test-fstatat.c (main): Likewise.
35231         * tests/test-linkat.c (main): Likewise.
35232         * tests/test-lstat.h (test_lstat_func): Likewise.
35233         * tests/test-mkdir.h (test_mkdir): Likewise.
35234         * tests/test-readlink.h (test_readlink): Likewise.
35235         * tests/test-remove.c (main): Likewise.
35236         * tests/test-rename.h (test_rename): Likewise.
35237         * tests/test-renameat.c (main): Likewise.
35238         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35239         * tests/test-symlink.h (test_symlink): Likewise.
35240         * tests/test-symlinkat.c (main): Likewise.
35241         * tests/test-unlink.h (test_unlink_func): Likewise.
35242         * tests/test-unlinkat.c (main): Likewise.
35243
35244         maint: make realtime library usage explicit
35245         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35246         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35247         * modules/settime (Link): Likewise.
35248         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35249
35250         test-stat-time: speed up execution
35251         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35252         warning on mingw.
35253         (nap): New helper function.
35254         (prepare_test): Use it to reduce sleep time.
35255         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35256         execution.
35257         * modules/stat-time-tests (configure.ac): Check for usleep.
35258
35259 2009-10-09  Jim Meyering  <meyering@redhat.com>
35260
35261         selinux-h: always use getfilecon wrappers
35262         * lib/getfilecon.c: New file.
35263         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35264         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35265         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35266         (fgetfilecon): Provide a stub.
35267         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35268         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35269         file unconditionally.
35270         When <selinux/selinux.h> is found, arrange to use wrappers.
35271         * modules/selinux-h (Files): Add getfilecon.c.
35272         (Makefile.am): Substitute include-next-related bits
35273         into the now-always-generated selinux/selinux.h file.
35274         * doc/glibc-functions/lgetfilecon.texi: New file.
35275         * doc/glibc-functions/fgetfilecon.texi: New file.
35276         * doc/glibc-functions/getfilecon.texi: New file.
35277         * doc/glibc-functions/getfilecon-desc.texi: New file.
35278         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35279         which to pull in the new files.
35280         * MODULES.html.sh (Misc): Add selinux-h.
35281
35282 2009-10-08  Jim Meyering  <meyering@redhat.com>
35283
35284         unistd: fix comment typo
35285         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35286
35287 2009-10-08  Eric Blake  <ebb9@byu.net>
35288
35289         areadlink: use SIZE_MAX consistently
35290         * modules/areadlink (Depends-on): Add stdint.
35291         * modules/areadlink-with-size (Depends-on): Likewise.
35292         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35293         gives NULL; drop sys/types, since unistd gives size_t; and add
35294         stdint for SIZE_MAX.
35295         (SIZE_MAX): Rely on headers.
35296         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35297         and add stdint.
35298         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35299         (SIZE_MAX): Likewise.
35300         (INITIAL_BUF_SIZE): Turn into enum.
35301         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35302
35303 2009-10-08  Jim Meyering  <meyering@redhat.com>
35304
35305         areadlinkat: avoid compilation failure
35306         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35307         Fix typo in comment.
35308
35309 2009-10-07  Eric Blake  <ebb9@byu.net>
35310
35311         areadlinkat-with-size: new module
35312         * modules/areadlinkat-with-size: New module.
35313         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35314         * lib/areadlink.h (areadlinkat): Declare it.
35315         * MODULES.html.sh (File system functions): Mention it.
35316         * modules/areadlinkat-with-size-tests: New test.
35317         * tests/test-areadlinkat-with-size.c: New file.
35318
35319         xreadlinkat: new module
35320         * modules/xreadlinkat: New module.
35321         * lib/xreadlinkat.c (xreadlinkat): New file.
35322         * lib/xreadlink.h (xreadlinkat): Declare it.
35323         * MODULES.html.sh (File system functions): Mention it.
35324
35325         areadlinkat: new module
35326         * lib/at-func.c (FUNC_FAIL): New define.
35327         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35328         * modules/areadlinkat: New module.
35329         * lib/linkat.c (areadlinkat): Move...
35330         * lib/areadlinkat.c (areadlinkat): ...to new file.
35331         * lib/areadlink.h (areadlinkat): Declare it.
35332         * modules/linkat (Depends-on): Add areadlinkat.
35333         * MODULES.html.sh (File system functions): Mention it.
35334         * modules/areadlinkat-tests: New test.
35335         * tests/test-areadlinkat.c: New file.
35336
35337         areadlink, areadlink-with-size: add tests
35338         * modules/areadlink-tests: New test.
35339         * modules/areadlink-with-size-tests: Likewise.
35340         * tests/test-areadlink.h: New file.
35341         * tests/test-areadlink.c: Likewise.
35342         * tests/test-areadlink-with-size.c: Likewise.
35343
35344         maint: minor cleanups
35345         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35346         _UNUSED_PARAMETER_ instead.
35347         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35348         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35349         * modules/linkat-tests (Files): Distribute test-link.h.
35350
35351         openat, utimens: whitespace cleanup
35352         * lib/openat.c: Prefer space throughout, rather than mix of 8
35353         spaces vs. tabs.
35354         * lib/at-func.c: Likewise.
35355         * lib/utimens.c: Likewise.
35356
35357         openat: avoid using wrong fd
35358         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35359         working directory chooses same fd.
35360         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35361
35362         mkdir, mkdirat: fix cygwin 1.5.x bug
35363         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35364         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35365         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35366         bug.
35367         (gl_PREREQ_MKDIR): Delete unused macro.
35368         * modules/mkdir (Files): Track file rename.
35369         (configure.ac): Update macro name.
35370         * modules/openat (Depends-on): Add mkdir.
35371         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35372
35373         mkdir, mkdirat: add tests
35374         * modules/mkdir-tests: New test.
35375         * tests/test-mkdir.h: New file.
35376         * tests/test-mkdir.c: Likewise.
35377         * tests/test-mkdirat.c: Likewise.
35378         * modules/openat-tests (Files): Add new files.
35379         (Makefile.am): Run new test.
35380
35381 2009-10-06  Eric Blake  <ebb9@byu.net>
35382
35383         doc: tweak *at function documentation
35384         * doc/posix-functions/faccessat.texi (faccessat): Mention
35385         known issue with replacement.
35386         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35387         * doc/posix-functions/linkat.texi (linkat): Likewise.
35388         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35389         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35390         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35391         * doc/posix-functions/renameat.texi (renameat): Likewise.
35392         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35393
35394         openat: fix GNU/Hurd bug in unlinkat
35395         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35396         broken.
35397         * doc/posix-functions/unlink.texi (unlink): Document this.
35398         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35399
35400         fdopendir: fix GNU/Hurd bug
35401         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35402         allowing non-directory fds.
35403         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35404         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35405         * modules/dirent (Makefile.am): Substitute it.
35406         * lib/dirent.in.h (fdopendir): Declare replacement.
35407         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35408         * tests/test-fdopendir.c (main): Test something other than
35409         /dev/null, since on Hurd that behaves like a directory.
35410
35411         test-symlink: port to GNU/Hurd
35412         * tests/test-symlink.h (test_symlink): Relax expected errno.
35413
35414         doc: tweak more cygwin information
35415         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35416         now compatible with glibc.
35417         * doc/posix-functions/getopt.texi (getopt): Likewise.
35418
35419         getopt-gnu: add another test
35420         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35421         guarantee behavior relied on by m4.
35422         * tests/test-getopt.c (main): Use it.
35423         * modules/getopt-posix-tests (Depends-on): Add setenv.
35424         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35425
35426         getopt: fix compilation on darwin
35427         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35428         include.
35429         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35430         Reported by Ludovic Courtès.
35431
35432 2009-10-06  Bruno Haible  <bruno@clisp.org>
35433
35434         * modules/size_max (Description): Discourage its use.
35435         Reported by Simon Josefsson.
35436
35437 2009-10-06  Jim Meyering  <meyering@redhat.com>
35438
35439         linkat: avoid compilation failure
35440         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35441
35442 2009-10-05  Eric Blake  <ebb9@byu.net>
35443
35444         linkat: support Linux 2.6.17
35445         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35446         linkat on Linux, but allow cache variable override.
35447         * lib/linkat.c (rpl_linkat): Define override.
35448         * modules/linkat (Depends-on): Add symlinkat.
35449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35450         * modules/unistd (Makefile.am): Substitute it.
35451         * lib/unistd.in.h (linkat): Declare replacement.
35452         Reported by Pádraig Brady.
35453
35454         quotearg: port test to systems with C.UTF-8 locale
35455         * tests/test-quotearg.c (struct result_strings): Add another
35456         member, differentiating between C.ASCII and C.UTF-8 handling.
35457         (compare_strings): Add parameter.
35458         (main): Adjust all callers.
35459
35460         getopt: avoid clash with FreeBSD _getopt_internal
35461         * lib/getopt.in.h (_getopt_internal): Override the name.
35462         * lib/getopt_int.h (includes): Pick up any overrides.
35463         Reported by Reuben Thomas.
35464
35465         hash: allow C89 compilation
35466         * lib/hash.c (check_tuning): Move declaration before statement.
35467         Reported by Reuben Thomas.
35468
35469 2009-10-05  Karl Berry  <karl@gnu.org>
35470
35471         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35472
35473 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35474             Bruno Haible  <bruno@clisp.org>
35475
35476         * lib/uname.c (uname): Use a table-driven algorithm to compute
35477         Windows NT versions.
35478
35479 2009-10-04  Bruno Haible  <bruno@clisp.org>
35480
35481         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35482         program_invocation_short_name.
35483         * modules/progname (configure.ac): Test for presence of
35484         program_invocation_short_name.
35485         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35486
35487 2009-10-04  Bruno Haible  <bruno@clisp.org>
35488
35489         * lib/progname.c (set_program_name): Fix comment.
35490         Reported by Jim Meyering.
35491
35492 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35493             Bruno Haible  <bruno@clisp.org>
35494
35495         * lib/uname.c: Include <string.h>.
35496         (uname): Do only one call to GetVersionEx in the common case.
35497
35498 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35499             Bruno Haible  <bruno@clisp.org>
35500
35501         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35502         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35503         (uname): Add support for Windows CE and various non-x86 CPU types.
35504
35505 2009-10-03  Bruno Haible  <bruno@clisp.org>
35506
35507         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35508         invocation to tests/configure.ac.
35509         Reported by Ian Beckwith <ianb@erislabs.net>.
35510
35511 2009-10-02  Eric Blake  <ebb9@byu.net>
35512
35513         fchdir: avoid compiler warning
35514         * lib/fchdir.c (canonicalize_file_name)
35515         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35516
35517         test-open: support mingw errno values
35518         * tests/test-open.h (test_open): Relax test.
35519         * tests/test-fopen.h (test_fopen): Likewise.
35520         * tests/test-openat-safer.c (main): Likewise.
35521
35522         open: fix opening directory on mingw
35523         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35524
35525         test-open: on GNU/Hurd, /dev/null is a directory
35526         * tests/test-fopen.h (main): Rename...
35527         (test_fopen): ...to this.  Use a guaranteed non-directory when
35528         confirming open behavior on trailing slash.
35529         * tests/test-openat-safer.c (main): Likewise.
35530         * tests/test-open.h (main): Likewise....
35531         (test_open): ...to this.
35532         * tests/test-fopen.c (main): Adjust caller.
35533         * tests/test-fopen-safer.c (main): Likewise.
35534         * tests/test-open.c (main): Likewise.
35535         * tests/test-fcntl-safer.c (main): Likewise.
35536         Reported by Samuel Thibault.
35537
35538         rename, fchdir: don't ignore chdir failure
35539         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35540         * lib/rename.c (rpl_rename) [W32]: Likewise.
35541         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35542         an empty destination directory if source cannot be renamed,
35543         although there is still possibility for failure.
35544         * doc/posix-functions/rename.texi (rename): Document the race.
35545         Reported by Jim Meyering.
35546
35547         maint: cleanup whitespace in recent commits
35548         * lib/rename.c (rpl_rename): Remove tabs.
35549         * tests/test-link.h (test_link): Likewise.
35550         * lib/fchdir.c (get_name): Likewise.
35551         Reported by Jim Meyering.
35552
35553 2009-10-02  Ben Pfaff  <blp@gnu.org>
35554
35555         relocatable-prog-wrapper: Add missing dependency on
35556         double-slash-root.
35557         * modules/relocatable-prog-wrapper: Add dependency.
35558         Reported by Ian Beckwith <ianb@erislabs.net>.
35559
35560 2009-10-02  Eric Blake  <ebb9@byu.net>
35561
35562         renameat: fix Solaris bugs
35563         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35564         needed fixing.
35565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35566         * modules/stdio (Makefile.am): Substitute it.
35567         * lib/stdio.in.h (renameat): Declare replacement.
35568         * lib/renameat.c (rpl_renameat): Implement fix.
35569
35570         renameat: new module
35571         * modules/renameat: New file.
35572         * lib/renameat.c (renameat): Likewise.
35573         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35575         * modules/stdio (Makefile.am): Substitute them.
35576         * lib/stdio.in.h (renameat): Declare it.
35577         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35578         * doc/posix-functions/renameat.texi (renameat): Likewise.
35579         * modules/renameat-tests: New test.
35580         * tests/test-renameat.c: Likewise.
35581
35582         rename: fix mingw bugs
35583         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35584         directory overwrite bugs.
35585
35586         rename: fix another cygwin 1.5 bug
35587         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35588         checks.
35589         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35590         unnecessary cygwin workarounds.  Also work around bug with moving
35591         full directory onto an empty one.
35592         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35593
35594         rename-dest-slash: merge into rename module
35595         * modules/rename-dest-slash (Status): Mark obsolete.
35596         (Depends-on): Add rename.
35597         (Files): Let rename do it all.
35598         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35599         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35600         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35601         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35602         * lib/rename.c (rpl_rename): Update comments.
35603
35604         rename: fix cygwin 1.5.x bugs
35605         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35606         * lib/rename.c (rpl_rename): Work around them.
35607         * modules/rename (Depends-on): Add same-inode.
35608
35609         rename: fix Solaris 10 bug
35610         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35611         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35612         was the only bug.
35613
35614         rename: fix Solaris 9 bug
35615         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35616         on non-directory.  Avoid calling exit.
35617         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35618         strdup.
35619         * modules/rename-tests (Depends-on): Drop lstat.
35620         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35621         (gl_PREREQ_RENAME): Delete unused macro.
35622
35623         rename-dest-slash: fix NetBSD bug
35624         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35625         links.
35626         * modules/rename-dest-slash (Depends-on): Add same-inode.
35627
35628         rename-tests: new test, exposes several platform bugs
35629         * modules/rename-tests: New file.
35630         * tests/test-rename.h: Likewise.
35631         * tests/test-rename.c: Likewise.
35632         * doc/posix-functions/rename.texi (rename): Improve documentation,
35633         including bugs that will eventually be fixed in gnulib.
35634
35635 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35636
35637         * lib/uname.c: Include <stdlib.h>
35638         (uname): Assume version info is available.
35639
35640 2009-10-02  Jim Meyering  <meyering@redhat.com>
35641
35642         gnu-web-doc-update: correct --help output
35643         * build-aux/gnu-web-doc-update: Make --help output relevant.
35644
35645         gnu-web-doc-update: add standard options
35646         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35647
35648         gnu-web-doc-update: New module.
35649         Use this script to automatically update the on-line web documentation
35650         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35651         * modules/gnu-web-doc-update: New file, from coreutils.
35652         * build-aux/gnu-web-doc-update: New script.
35653
35654 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35655
35656         link: LoadLibrary is not needed.
35657         * lib/link.c: Use GetModuleHandle.
35658
35659 2009-10-01  Eric Blake  <ebb9@byu.net>
35660
35661         getopt: bump serial number
35662         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35663         change.
35664
35665         tests: tighten link, rmdir, and remove tests
35666         * tests/test-link.h (includes): No need to use <config.h> here.
35667         Clean up if directory hard link was created, otherwise test for
35668         trailing '.'.
35669         * tests/test-linkat.c (main): Simplify.
35670         * tests/test-remove.c (main): Enhance test for trailing '.'.
35671         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35672
35673 2009-10-01  Jim Meyering  <meyering@redhat.com>
35674
35675         maint.mk: requiring "make major" was annoying, for a "minor" release.
35676         What is intended is "stable", to contrast with alpha and beta,
35677         so require "make stable", not "make major".
35678         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35679         (get_tool_versions): Likewise.
35680         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35681
35682 2009-09-30  Ben Pfaff  <blp@gnu.org>
35683
35684         Fix broken build of replacement for Windows tmpfile().
35685         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35686         flags argument added along with the 'mkostemp' module.
35687
35688 2009-09-28  Bruno Haible  <bruno@clisp.org>
35689
35690         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35691         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35692         to 'remove_elt'.
35693         (gl_list_remove): Update.
35694         * lib/gl_list.c (gl_list_remove): Update.
35695         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35696         to 'remove_elt'.
35697         (gl_oset_remove): Update.
35698         * lib/gl_list.c (gl_oset_remove): Update.
35699         Reported by Eric Blake.
35700
35701 2009-09-28  Eric Blake  <ebb9@byu.net>
35702
35703         doc: mention yet more cygwin 1.7 status
35704         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35705         cygwin.
35706         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35707         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35708
35709         argp: fix test failure
35710         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35711         that are not upper-case.  Pass correct range to tolower.
35712
35713 2009-09-27  Jim Meyering  <meyering@redhat.com>
35714
35715         test-yesno: work around sparc-dash here-document infelicity
35716         Without this change, the literal \177 byte in a here document
35717         would make dash 0.5.5.1-3 access uninitialized memory.
35718         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35719         Instead, use a marker, "@", and filter through tr to create the desired
35720         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35721
35722 2009-09-27  Bruno Haible  <bruno@clisp.org>
35723
35724         Disable untested support for new flavours of ACLs on AIX.
35725         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35726         progress.
35727         * lib/set-mode-acl.c (qset_acl): Likewise.
35728
35729 2008-12-07  Bruno Haible  <bruno@clisp.org>
35730
35731         Add support for new flavours of ACLs on AIX. (Untested.)
35732         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35733         (file_has_acl): Add support for newer AIX.
35734         * lib/set-mode-acl.c (qset_acl): Likewise.
35735         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35736         Rainer Tammer <tammer@tammer.net>.
35737
35738 2009-09-26  Eric Blake  <ebb9@byu.net>
35739
35740         argp: fix compilation of getopt
35741         * lib/getopt.in.h (includes): Use different guard than glibc.
35742         Reported by Sergey Poznyakoff.
35743
35744         doc: mention more cygwin 1.7 status
35745         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35746         bug.
35747         * doc/posix-functions/execl.texi (execl): Likewise.
35748         * doc/posix-functions/execle.texi (execle): Likewise.
35749         * doc/posix-functions/execlp.texi (execlp): Likewise.
35750         * doc/posix-functions/execv.texi (execv): Likewise.
35751         * doc/posix-functions/execve.texi (execve): Likewise.
35752         * doc/posix-functions/execvp.texi (execvp): Likewise.
35753         * doc/glibc-functions/canonicalize_file_name.texi
35754         (canonicalize_file_name): Cygwin 1.7 now provides this.
35755         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35756         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35757         on AT_SYMLINK_NOFOLLOW.
35758
35759 2009-09-24  Eric Blake  <ebb9@byu.net>
35760
35761         test-linkat: make test more robust
35762         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35763
35764         getopt: fix inclusion guards for cygwin
35765         * modules/getopt-posix (Depends-on): Add include-next.
35766         (Makefile.am): Substitute more items in replacement header.
35767         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35768         <getopt.h>.
35769         * lib/getopt.in.h (includes): Use split inclusion guard, and
35770         prefer <getopt.h> over include <unistd.h> when one is present.
35771         (option): Also override name of 'struct option'.
35772
35773         same-inode: revert prior change; it is not yet ready
35774         * NEWS: Undo mention of this change.
35775         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35776         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35777         * lib/cycle-check.c (cycle_check): Likewise.
35778         * lib/same.c (same_name): Likewise.
35779         * lib/at-func2.c (at_func2): Likewise.
35780
35781 2009-09-23  Eric Blake  <ebb9@byu.net>
35782
35783         linkat: new module
35784         * modules/linkat: New file.
35785         * lib/at-func2.c (at_func2): Likewise.
35786         * lib/linkat.c (linkat): Likewise.
35787         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35788         * lib/openat-priv.h (at_func2): Add declaration.
35789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35790         * modules/unistd (Makefile.am): Substitute them.
35791         * lib/unistd.in.h (linkat): Declare it.
35792         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35793         * doc/posix-functions/linkat.texi (linkat): Likewise.
35794         * doc/posix-functions/link.texi (link): Tweak wording.
35795         * tests/test-link.c (main): Move guts...
35796         * tests/test-link.h (test_link): ...into new file.
35797         * modules/linkat-tests: New test.
35798         * tests/test-linkat.c: Likewise.
35799         * modules/link-tests (Files): Ship new file.
35800         (Depends-on): Add stdbool.
35801
35802         dirname: add library-safe mdir_name
35803         * lib/dirname.h (mdir_name): New prototype.
35804         * lib/dirname.c (dir_name): Move guts...
35805         (mdir_name): ...to new function that avoids xalloc_die.
35806
35807         fchdir: another mingw fix
35808         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35809         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35810         on mingw (where it has not yet been ported), and make it optional
35811         elsewhere.
35812         (_gl_register_fd): Use it.
35813
35814         same-inode: make SAME_INODE tri-state, to port to mingw
35815         * NEWS: Mention this change.
35816         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35817         st_ino always being 0.
35818         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35819         * lib/cycle-check.c (cycle_check): Likewise.
35820         * lib/same.c (same_name): Likewise.
35821
35822         lstat: avoid mingw compilation error
35823         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35824         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35825         lstat ourselves.
35826         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35827         was adequate.
35828         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35829         the checks for lstat.
35830         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35831
35832         link: fix test failure on Solaris 9
35833         * lib/link.c (rpl_link): Don't assume link will catch bogus
35834         trailing slash on source.
35835
35836         test-symlinkat: enhance test
35837         * tests/test-readlink.c (main): Move guts...
35838         * tests/test-readlink.h (test_readlink): ...into new file.
35839         * tests/test-symlink.c (main): Move guts...
35840         * tests/test-symlink.h (test_symlink): ...into new file.
35841         * tests/test-symlinkat.c (main): Use new files for further
35842         coverage.
35843         (do_symlink, do_readlink): New helper functions.
35844         * modules/symlink-tests (Files): Ship new file.
35845         (Depends-on): Add stdbool.
35846         * modules/readlink-tests (Files): Ship new file.
35847         (Depends-on): Add stdbool.
35848         * modules/symlinkat-tests (Files): Use new files.
35849
35850 2009-09-23  Eric Blake  <ebb9@byu.net>
35851
35852         readlink: document portability issue with symlink length
35853         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35854         systems have bogus st_size on symlinks, and mention the
35855         areadlink-with-size module.
35856         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35857         * doc/posix-functions/readlink.texi (readlink): Mention the
35858         areadlink module, and ERANGE failure.
35859         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35860         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35861
35862         readlink: fix Solaris 9 bug with trailing slash
35863         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35864         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35865         * doc/posix-functions/readlink.texi (readlink): Document this.
35866         * modules/readlink-tests: New test.
35867         * tests/test-readlink.c: Likewise.
35868
35869         readlink: fix cygwin 1.5.x bug with return type
35870         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35871         * lib/unistd.in.h (readlink): Use ssize_t.
35872         * lib/readlink.c (readlink): Likewise.
35873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35874         * modules/unistd (Makefile.am): Substitute it.
35875         * lib/unistd.in.h (readlink): Declare replacement.
35876         * doc/posix-functions/readlink.texi (readlink): Document this.
35877
35878         symlink: use throughout gnulib
35879         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35880         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35881         symlink is not used.
35882         * modules/symlinkat (Depends-on): Add symlink.
35883         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35884         * modules/canonicalize-tests (Depends-on): Likewise.
35885         * modules/lstat-tests (Depends-on): Likewise.
35886         * modules/openat-tests (Depends-on): Likewise.
35887         * modules/remove-tests (Depends-on): Likewise.
35888         * modules/rmdir-tests (Depends-on): Likewise.
35889         * modules/unlink-tests (Depends-on): Likewise.
35890         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35891         * tests/test-canonicalize.c (symlink): Likewise.
35892         * tests/test-fstatat.c (symlink): Likewise.
35893         * tests/test-lstat.c (symlink): Likewise.
35894         * tests/test-remove.c (symlink): Likewise.
35895         * tests/test-rmdir.c (symlink): Likewise.
35896         * tests/test-unlink.c (symlink): Likewise.
35897         * tests/test-unlinkat.c (symlink): Likewise.
35898
35899         symlink: new module, for Solaris 9 bug
35900         * modules/symlink: New file.
35901         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35902         * lib/symlink.c: Likewise.
35903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35904         * modules/unistd (Makefile.am): Substitute them.
35905         * lib/unistd.in.h (symlink): Declare replacement.
35906         * MODULES.html.sh (File system functions): Mention it.
35907         * doc/posix-functions/symlink.texi (symlink): Likewise.
35908         * modules/symlink-tests: New test.
35909         * tests/test-symlink.c: Likewise.
35910
35911 2009-09-23  Bruno Haible  <bruno@clisp.org>
35912
35913         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35914         when needed.
35915         Test case: gnulib-tool --import --with-tests atexit inttypes.
35916         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35917
35918 2009-09-23  Bruno Haible  <bruno@clisp.org>
35919
35920         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35921         subcommand, not in a subshell.
35922
35923 2009-09-22  Eric Blake  <ebb9@byu.net>
35924
35925         unistd: sort replacement declarations
35926         * lib/unistd.in.h: Sort declarations.
35927
35928         open, openat: minor optimization
35929         * lib/open.c (open): If open succeeded, len is non-zero.
35930         * lib/openat.c (rpl_openat): Likewise.
35931
35932         link-follow: ensure correct result
35933         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35934         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35935         distinguish between possible failures.
35936
35937 2009-09-21  Eric Blake  <ebb9@byu.net>
35938
35939         fts: avoid compiler warning
35940         * lib/fts.c (dirent_inode_sort_may_be_useful)
35941         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35942
35943 2009-09-19  Bruno Haible  <bruno@clisp.org>
35944
35945         * lib/progreloc.c (canonicalize_file_name): New declaration.
35946
35947 2009-09-19  Eric Blake  <ebb9@byu.net>
35948
35949         link: fix quoting
35950         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35951
35952         openat: fix openat bugs on Solaris 9
35953         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35954         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35955         * modules/openat (Depends-on): Add open.
35956         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35957         * modules/fcntl-h (Makefile.am): Substitute it.
35958         * lib/fcntl.in.h (openat): Declare replacement.
35959         * doc/posix-functions/openat.texi (openat): Document this.
35960
35961         openat: move fstatat and unlinkat into correct files
35962         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35963         compiled.
35964         * lib/openat.c (fstatat, unlinkat): Move...
35965         * lib/fstatat.c (fstatat): ...into correct files.
35966         * lib/unlinkat.c (unlinkat): Likewise.
35967
35968         openat: fix unlinkat bugs on Solaris 9
35969         * lib/unlinkat.c (unlinkat): New file.
35970         * modules/openat (Depends-on): Add unlink.
35971         (Files): Distribute it.
35972         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35973         trailing slash behavior is broken.
35974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35975         * modules/unistd (Makefile.am): Substitute it.
35976         * lib/unistd.in.h (unlinkat): Declare replacement.
35977         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35978
35979         openat: fix fstatat bugs on Solaris 9
35980         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35981         stat.
35982         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35983
35984         test-unlinkat: enhance test, to expose Solaris 9 bug
35985         * tests/test-unlink.c (main): Factor guts...
35986         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35987         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35988         * tests/test-rmdir.c (main): Adjust caller.
35989         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35990         (unlinker): New helper function.
35991         (rmdirat): Enhance check.
35992         * modules/rmdir-tests (Depends-on): Add stdbool.
35993         * modules/unlink-tests (Depends-on): Likewise.
35994         (Files): Add test-unlink.h.
35995         * modules/openat-tests (Files): Likewise.
35996         (Depends-on): Add unlinkdir.
35997
35998         test-fstatat: new test, to expose Solaris 9 bugs
35999         * tests/test-stat.c (main): Factor guts...
36000         * tests/test-stat.h (test_stat_func): ...into new file.
36001         * tests/test-lstat.c (main): Factor guts...
36002         * tests/test-lstat.h (test_lstat_func): ...into new file.
36003         * tests/test-fstatat.c: New file.
36004         * modules/stat-tests (Files): Add test-stat.h.
36005         * modules/lstat-tests (Files): Add test-lstat.h.
36006         (Depends-on): Add stdbool.
36007         * modules/openat-tests (Depends-on): Add pathmax.
36008         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36009         (Makefile.am): Run new test.
36010
36011         remove: new module, for mingw and Solaris 9 bugs
36012         * modules/remove: New file.
36013         * lib/remove.c: Likewise.
36014         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36015         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36016         * modules/stdio (Makefile.am): Use them.
36017         * lib/stdio.in.h (remove): Declare replacement.
36018         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36019         * doc/posix-functions/remove.texi (remove): Likewise.
36020         * modules/remove-tests: New test.
36021         * tests/test-remove.c: Likewise.
36022
36023         unlink: new module, for Solaris 9 bug
36024         * modules/unlink: New file.
36025         * lib/unlink.c: Likewise.
36026         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36028         * modules/unistd (Makefile.am): Use them.
36029         * lib/unistd.in.h (stat): Declare replacement.
36030         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36031         * doc/posix-functions/unlink.texi (unlink): Likewise.
36032         * modules/unlink-tests: New test.
36033         * tests/test-unlink.c: Likewise.
36034
36035         lstat: fix Solaris 9 bug
36036         * lib/lstat.c (lstat): Also check for trailing slash on
36037         non-symlink, non-directories.  Use stat module to simplify logic.
36038         * doc/posix-functions/lstat.texi (lstat): Document it.
36039         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36040         (configure.ac): Check for symlink.
36041         * tests/test-lstat.c (main): Add more tests.
36042
36043         stat: add as dependency to other modules
36044         * modules/chown (Depends-on): Add stat.
36045         * modules/euidaccess (Depends-on): Likewise.
36046         * modules/fchdir (Depends-on): Likewise.
36047         * modules/isdir (Depends-on): Likewise.
36048         * modules/link (Depends-on): Likewise.
36049         * modules/lstat (Depends-on): Likewise.
36050         * modules/mkdir-p (Depends-on): Likewise.
36051         * modules/modechange (Depends-on): Likewise.
36052         * modules/open (Depends-on): Likewise.
36053         * modules/readlink (Depends-on): Likewise.
36054         * modules/same (Depends-on): Likewise.
36055
36056         stat: fix Solaris 9 bug
36057         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36058         slash.
36059         * lib/stat.c (rpl_stat): Work around it.
36060         * doc/posix-functions/stat.texi (stat): Update documentation.
36061
36062         stat: new module, for mingw bug
36063         * modules/stat: New file.
36064         * lib/stat.c: Likewise.
36065         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36066         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36067         * modules/sys_stat (Makefile.am): Use them.
36068         * lib/sys_stat.in.h (stat): Declare replacement.
36069         * lib/openat.c (fstatat): Deal with lstat and stat being function
36070         macros.
36071         * modules/openat (Depends-on): Add inline.
36072         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36073         * doc/posix-functions/stat.texi (stat): Likewise.
36074         * modules/stat-tests: New test.
36075         * tests/test-stat.c: Likewise.
36076
36077 2009-09-19  Jim Meyering  <meyering@redhat.com>
36078
36079         syntax-check: detect unnecessary inclusion of canonicalize.h
36080         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36081
36082 2009-09-19  Eric Blake  <ebb9@byu.net>
36083
36084         canonicalize-lgpl: adjust clients to use correct header
36085         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36086         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36087         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36088         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36089         * lib/progreloc.c (includes): Likewise.
36090
36091 2009-09-19  Jim Meyering  <meyering@redhat.com>
36092
36093         test-posixtm.c: correct a comment
36094         * tests/test-posixtm.c: Correct first-line comment.
36095         Spotted by Eric Blake.
36096
36097 2009-09-16  Jim Meyering  <meyering@redhat.com>
36098
36099         posixtm-tests: make T const-correct; add a test case
36100         * tests/test-posixtm.c (T): Declare const.
36101         Add a test for -(2^31+1).
36102         Remove useless can-succeed-only-in-2002 test.
36103
36104         posixtm-tests: adjust the sole failing test
36105         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36106         expected output matches what mktime now produces.  Cross-checked via
36107         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36108
36109         posixtm: move #ifdef'd tests into a new module
36110         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36111         * tests/test-posixtm.c: ... this new file.
36112         * modules/posixtm-tests: New module.
36113
36114 2009-09-19  Eric Blake  <ebb9@byu.net>
36115
36116         openat: simplify use of at-func.c
36117         * lib/at-func.c (includes): Include prerequisites here, to
36118         simplify requirements on client files.
36119         * lib/openat-priv.h: Add double-inclusion guard.
36120         * lib/faccessat.c (includes): Simplify.
36121         * lib/fchmodat.c (includes): Likewise.
36122         * lib/fchownat.c (includes): Likewise.
36123         * lib/mkdirat.c (includes): Likewise.
36124         * lib/mkfifoat.c (includes): Likewise.
36125         * lib/symlinkat.c (includes): Likewise.
36126
36127         openat: allow return of fd 0
36128         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36129         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36130         unistd-safer.
36131         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36132         <fcntl.h>; this module does not leak fds.
36133         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36134         must be allowed to return 0, leaving openat_safer to add the
36135         safety.
36136         (openat_permissive): Avoid writing to just-opened fd 2 if
36137         restoring the current directory fails.
36138         * lib/openat-die.c (openat_restore_fail): Add comment.
36139         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36140         (save_cwd): Guarantee safe fd, but without use of open_safer.
36141         * tests/test-openat.c: New test.
36142         * modules/openat-tests (Files, Makefile.am): Distribute and build
36143         new file.
36144
36145         relocatable-prog-wrapper: fix build
36146         * modules/relocatable-prog-wrapper (Files): Update name of
36147         canonicalize m4 file, broken on 2009-09-17.
36148         Reported by emad hajjar <aleppos@hotmail.com>.
36149
36150 2009-09-19  Bruno Haible  <bruno@clisp.org>
36151
36152         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36153         * lib/safe-alloc.c: Likewise.
36154         Reported by Ian Beckwith <ianb@erislabs.net>.
36155
36156 2009-09-18  Bruno Haible  <bruno@clisp.org>
36157
36158         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36159         Reported by <erobles@sensacd.com.mx>.
36160
36161 2009-09-17  Eric Blake  <ebb9@byu.net>
36162
36163         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36164         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36165         slashes when checking if last component is missing.
36166         * tests/test-canonicalize.c (main): Test this.
36167
36168         canonicalize, canonicalize-lgpl: honor // if distinct from /
36169         * modules/canonicalize (Files): Add double-slash-root.m4.
36170         * modules/canonicalize-lgpl (Files): Likewise.
36171         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36172         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36173         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36174         fallback definition.
36175         (canonicalize_filename_mode): Use it to protect //.
36176         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36177         (__realpath): Likewise.
36178         * tests/test-canonicalize.c (main): Test this.
36179         * tests/test-canonicalize-lgpl.c (main): Likewise.
36180         * modules/canonicalize-tests (Depends-on): Add same-inode.
36181         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36182
36183         canonicalize-lgpl: fix glibc bug with trailing slash
36184         * m4/canonicalize-lgpl.m4: Move contents...
36185         * m4/canonicalize.m4: ...here.
36186         (gl_CANONICALIZE_LGPL): Factor realpath check...
36187         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36188         glibc 2.3.5 bug, fixed 2005-04-27.
36189         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36190         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36191         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36192         * modules/canonicalize-lgpl (Files): Manage file rename.
36193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36194         * modules/stdlib (Makefile.am): Substitute witness.
36195         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36196         is needed.
36197         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36198         replacement is required.
36199         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36200         * doc/glibc-functions/canonicalize_file_name.texi
36201         (canonicalize_file_name): Document this.
36202         * doc/posix-functions/realpath.texi (realpath): Likewise.
36203
36204         canonicalize-lgpl: reject non-directory with trailing slash
36205         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36206         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36207         catches failures in glibc 2.3.5.
36208         * tests/test-canonicalize.c (main): Likewise.
36209
36210         canonicalize-lgpl: use native realpath if it works
36211         * lib/canonicalize-lgpl.c (realpath): Guard with
36212         FUNC_REALPATH_WORKS.
36213         * lib/stdlib.in.h (realpath): Make declaration optional based on
36214         HAVE_REALPATH.
36215         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36216         native realpath works.
36217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36218         * modules/stdlib (Makefile.am): Substitute witness.
36219
36220         canonicalize, canonicalize-lgpl: use <stdlib.h>
36221         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36222         (Include): Mention <stdlib.h>.
36223         (configure.ac): Mention functions we provide.
36224         * modules/canonicalize (configure.ac): Likewise.
36225         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36226         realpath if canonicalize_file_name is missing.
36227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36228         * modules/stdlib (Makefile.am): Substitute witnesses.
36229         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36230         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36231         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36232         * NEWS: Document this.
36233         * doc/glibc-functions/canonicalize_file_name.texi
36234         (canonicalize_file_name): Likewise.
36235         * doc/posix-functions/realpath.texi (realpath): Likewise.
36236         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36237
36238         test-canonicalize: consolidate into single C program
36239         * tests/test-canonicalize.sh: Delete; move setup into...
36240         * tests/test-canonicalize.c (main): ...the program, making it
36241         easier to run in debugger.  Add some tests.
36242         * modules/canonicalize-tests (Files): Remove unused file.
36243         (Depends-on): Add progname.
36244         (configure.ac, Makefile.am): Simplify.
36245
36246         test-canonicalize-lgpl: consolidate into single C program
36247         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36248         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36249         easier to run in debugger.  Add some tests.
36250         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36251         (configure.ac, Makefile.am): Simplify.
36252
36253         canonicalize: avoid resolvepath
36254         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36255         unnecessary checks.
36256         * lib/canonicalize.c (includes): Simplify.
36257         (canonicalize_file_name): Drop resolvepath implementation.
36258         * modules/canonicalize (Depends-on): Drop filenamecat.
36259
36260         canonicalize: don't lose errno
36261         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36262         over calls to free.
36263
36264         canonicalize: simplify errno handling
36265         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36266         assignment.
36267
36268         canonicalize, canonicalize-lgpl: update module dependencies
36269         * modules/canonicalize (Depends-on): Add extensions, lstat,
36270         pathmax, stdlib.
36271         (Files): Drop pathmax.h.
36272         (configure.ac): Adjust macro name.
36273         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36274         lstat, stdlib, sys_stat.
36275         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36276         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36277         extensions.
36278         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36279         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36280         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36281         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36282         declaration, if available.
36283         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36284         we can rely on the readlink module.
36285         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36286         (includes): Use <unistd.h> unconditionally.
36287
36288 2009-09-17  Eric Blake  <ebb9@byu.net>
36289
36290         maint: make Include sections of modules consistent
36291         * modules/alloca: Use only header name; no need to list #include.
36292         * modules/alloca-opt: Likewise.
36293         * modules/arpa_inet: Likewise.
36294         * modules/canon-host: Likewise.
36295         * modules/configmake: Likewise.
36296         * modules/dirent: Likewise.
36297         * modules/eealloc: Likewise.
36298         * modules/environ: Likewise.
36299         * modules/fchdir: Likewise.
36300         * modules/fcntl: Likewise.
36301         * modules/fcntl-h: Likewise.
36302         * modules/gethrxtime: Likewise.
36303         * modules/gettime: Likewise.
36304         * modules/ignore-value: Likewise.
36305         * modules/inet_ntop: Likewise.
36306         * modules/inet_pton: Likewise.
36307         * modules/inttypes: Likewise.
36308         * modules/isnand-nolibm: Likewise.
36309         * modules/isnanf-nolibm: Likewise.
36310         * modules/mbchar: Likewise.
36311         * modules/mbfile: Likewise.
36312         * modules/mbiter: Likewise.
36313         * modules/mbuiter: Likewise.
36314         * modules/netdb: Likewise.
36315         * modules/netinet_in: Likewise.
36316         * modules/nproc: Likewise.
36317         * modules/pagealign_alloc: Likewise.
36318         * modules/poll: Likewise.
36319         * modules/printf-frexp: Likewise.
36320         * modules/pthread: Likewise.
36321         * modules/putenv: Likewise.
36322         * modules/random_r: Likewise.
36323         * modules/relocatable-prog: Likewise.
36324         * modules/search: Likewise.
36325         * modules/select: Likewise.
36326         * modules/selinux-h: Likewise.
36327         * modules/settime: Likewise.
36328         * modules/signal: Likewise.
36329         * modules/size_max: Likewise.
36330         * modules/socklen: Likewise.
36331         * modules/ssize_t: Likewise.
36332         * modules/stdarg: Likewise.
36333         * modules/stdbool: Likewise.
36334         * modules/stddef: Likewise.
36335         * modules/stdint: Likewise.
36336         * modules/stdio: Likewise.
36337         * modules/stdlib: Likewise.
36338         * modules/string: Likewise.
36339         * modules/strings: Likewise.
36340         * modules/sys_file: Likewise.
36341         * modules/sys_ioctl: Likewise.
36342         * modules/sys_select: Likewise.
36343         * modules/sys_socket: Likewise.
36344         * modules/sys_stat: Likewise.
36345         * modules/sys_time: Likewise.
36346         * modules/sys_times: Likewise.
36347         * modules/sys_utsname: Likewise.
36348         * modules/sys_wait: Likewise.
36349         * modules/sysexits: Likewise.
36350         * modules/time: Likewise.
36351         * modules/times: Likewise.
36352         * modules/tmpfile: Likewise.
36353         * modules/trim: Likewise.
36354         * modules/unistd: Likewise.
36355         * modules/wchar: Likewise.
36356         * modules/wctype: Likewise.
36357
36358 2009-09-17  Bruno Haible  <bruno@clisp.org>
36359
36360         Make getdate.y compile on QNX and NetBSD 5 / i386.
36361         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36362         TIME_T_FITS_IN_LONG_INT.
36363         * lib/getdate.y (long_time_t): New type.
36364         (relative_time): Change type of 'seconds' field to long_time_t.
36365         (get_date): Update types of local variables. Check against overflow
36366         during conversion from long_time_t to time_t.
36367         Reported by Matt Kraai <kraai@ftbfs.org>
36368         and Hasso Tepper <hasso@netbsd.org>.
36369
36370 2009-09-17  Bruno Haible  <bruno@clisp.org>
36371
36372         * modules/COPYING: Update copyright years.
36373         * modules/README: Likeiwse.
36374         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36375         Reported by Ian Beckwith <ianb@erislabs.net>.
36376
36377 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36378
36379         * users.txt: Update references for gnuit package.
36380
36381 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36382
36383         * m4/getdelim.m4: Fix typo in copyright line.
36384
36385 2009-09-17  Bruno Haible  <bruno@clisp.org>
36386
36387         * lib/atoll.c: Use the standard header with GPL copyright.
36388         * lib/argz.in.h: Likewise.
36389         * lib/glob.c: Likewise.
36390         * lib/glob-libc.h: Likewise.
36391         * lib/random_r.c: Likewise.
36392         * lib/siglist.h: Likewise.
36393         * lib/strsignal.c: Likewise.
36394         Reported by Ian Beckwith <ianb@erislabs.net>.
36395
36396 2009-09-17  Eric Blake  <ebb9@byu.net>
36397
36398         rmdir: ensure correct dependency order
36399         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36400
36401 2009-09-17  Bruno Haible  <bruno@clisp.org>
36402
36403         Disable assertion that fails on NetBSD 5 / i386.
36404         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36405         Reported by Sam Steingold <sds@gnu.org>
36406         and Hasso Tepper <hasso@netbsd.org>.
36407
36408 2009-09-16  Eric Blake  <ebb9@byu.net>
36409
36410         unlinkdir: port to mingw
36411         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36412         on which no one can unlink a directory.
36413
36414         stdlib: sort witness names
36415         * modules/stdlib (Makefile.am): Sort replacements.
36416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36417         * lib/stdlib.in.h: Likewise.
36418
36419         parse-duration-tests: avoid link failure
36420         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36421         LIBINTL.
36422         Reported by Tom G. Christensen.
36423
36424         openat-tests: ensure unlinkat behaves like rmdir
36425         * tests/test-rmdir.c (main): Factor guts...
36426         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36427         * modules/rmdir-tests (Files): Ship new file.
36428         * modules/openat-tests: New test.
36429         * tests/test-unlinkat.c: Likewise.
36430
36431         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36432         * modules/rmdir-errno (Status, Notice): Now obsolete.
36433
36434         rmdir: work around cygwin 1.5.x and mingw bugs
36435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36436         * lib/rmdir.c (rmdir): Work around it.
36437         * modules/rmdir (Status, Notice): No longer obsolete.
36438         (Files): Add dos.m4.
36439         (Depends-on): Add unistd.
36440         (configure.ac): Set witnesses.
36441         (License): Relax to LGPLv2+.
36442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36443         * modules/unistd (Makefile.am): Substitute witnesses.
36444         * lib/unistd.in.h (rmdir): Declare replacement.
36445         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36446         * modules/rmdir-tests: New tests.
36447         * tests/test-rmdir.c: Likewise.
36448
36449 2009-09-15  Eric Blake  <ebb9@byu.net>
36450
36451         fchdir: improve use of replacement functions
36452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36453         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36454         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36455         REPLACE_CLOSEDIR.
36456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36457         * modules/sys_stat (Makefile.am): Substitute correct witness.
36458         * modules/dirent (Makefile.am): Likewise.
36459         * modules/unistd (Makefile.am): Likewise.
36460         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36461         * lib/unistd.in.h (dup): Likewise.
36462         * lib/sys_stat.in.h (fstat): Likewise.
36463
36464         maint: ignore gnulib-tool temp files
36465         * .gitignore: Ignore files created during gnulib-tool --test.
36466
36467 2009-09-13  Jim Meyering  <meyering@redhat.com>
36468
36469         posixtm: don't reject a time that specify "60" as the number of seconds
36470         * lib/posixtm.c (posixtime): The code to reject invalid dates
36471         would also reject a time specified with the .60 suffix.
36472         But POSIX allows that, in order to accommodate leap seconds.
36473         So don't reject it.
36474         (main): Adjust tests accordingly.
36475         * modules/posixtm (Depends-on): Add stpcpy.
36476
36477 2009-09-11  Jim Meyering  <meyering@redhat.com>
36478
36479         announce-gen: include [$release_type] in emitted Subject:
36480         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36481         e.g., [stable] in the emitted Subject: line.
36482
36483 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36484
36485         Remove obsolete macros from several modules.
36486         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36487         obsolete Autoconf macros with their modern counterparts.
36488         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36489         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36490         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36491         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36492         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36493         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36494         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36495         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36496         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36497         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36498         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36499         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36500         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36501         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36502         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36503         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36504         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36505         * m4/time_r.m4 (gl_TIME_R): Likewise.
36506         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36507         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36508         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36509
36510         Fix copyright header in build-aux scripts.
36511         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36512         recommendation.
36513         * build-aux/ncftpput-ftp: Likewise.
36514         * build-aux/update-copyright: Likewise.
36515
36516 2009-09-09  Eric Blake  <ebb9@byu.net>
36517
36518         test-link: allow Linux choice of errno
36519         * tests/test-link.c (main): Relax test for alternate error.
36520
36521         strndup: fix improper m4 caching
36522         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36523         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36524         (gl_PREREQ_STRNDUP): Delete.
36525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36526         * modules/string (Makefile.am): Substitute it.
36527         * lib/string.in.h (strndup): Modernize prototype.
36528
36529         getcwd: port to mingw
36530         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36531         different from the POSIX assumptions made throughout the getcwd
36532         module; fortunately, the mingw getcwd does not need replacement.
36533         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36534         * modules/getcwd-tests: New test.
36535         * tests/test-getcwd.c: Likewise.
36536
36537         link: fix platform bugs
36538         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36539         * lib/link.c (link): Work around them.  Fix related mingw bug.
36540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36541         * modules/unistd (Makefile.am): Substitute it.
36542         * lib/unistd.in.h (link): Declare replacement.
36543         * doc/posix-functions/link.texi (link): Document this.
36544         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36545
36546         test-link: consolidate into single C program, test more cases
36547         * tests/test-link.sh: Delete.
36548         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36549         at least Cygwin and Solaris.
36550         * modules/link-tests (Files): Remove unused file.
36551         (Depends-on): Add errno, sys_stat.
36552         (Makefile.am): Simplify.
36553
36554 2009-09-08  Bruno Haible  <bruno@clisp.org>
36555
36556         Work around towlower, towupper bug on mingw.
36557         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36558         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36559         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36560         * doc/posix-functions/towupper.texi: Likewise.
36561         Reported by Eric Blake.
36562
36563 2009-09-08  Jim Meyering  <meyering@redhat.com>
36564
36565         build: don't try to run autoheader if we don't use it
36566         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36567         is not used in configure.ac.
36568
36569 2009-09-08  Eric Blake  <ebb9@byu.net>
36570
36571         euidaccess: fix compilation error
36572         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36573
36574         rawmemchr: relax license
36575         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36576         okay.
36577         Reported by Jim Meyering.
36578
36579         mkfifoat: new module
36580         * modules/mkfifoat: New file.
36581         * lib/mkfifoat.c: Likewise.
36582         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36583         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36584         * modules/sys_stat (Makefile.am): Use them.
36585         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36586         * MODULES.html.sh (File system functions): Mention module.
36587         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36588         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36589         * modules/mkfifoat-tests: New test.
36590         * tests/test-mkfifoat.c: Likewise.
36591
36592         strchrnul: relax license
36593         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36594         okay.
36595         Reported by Jim Meyering.
36596
36597 2009-09-08  Eric Blake  <ebb9@byu.net>
36598
36599         fstatat: fix compilation on Solaris
36600         * lib/fstatat.c (includes): Add fcntl.h.
36601         Reported by Pádraig Brady.
36602
36603 2009-09-07  Eric Blake  <ebb9@byu.net>
36604
36605         rename: modernize replacement
36606         * modules/rename (Depends-on): Add stdio.
36607         (configure.ac): Declare witness.
36608         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36609         stdio take care of replacement.
36610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36611         * modules/stdio (Makefile.am): Substitute them.
36612         * lib/stdio.in.h (rename): Declare replacement.
36613         * lib/rename.c (includes): Allow cross-compilation to non-windows
36614         machines.
36615         * doc/posix-functions/rename.texi (rename): Improve
36616         documentation.
36617
36618         stdio: sort witness names
36619         * modules/stdio (Makefile.am): Sort replacements.
36620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36621         * lib/stdio.in.h: Likewise.
36622
36623         getcwd: minor cleanups
36624         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36625         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36626
36627         openat: provide more convenience names
36628         * modules/faccessat (configure.ac): Add C witness.
36629         * lib/unistd.in.h (readlinkat): Fix typo.
36630         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36631         convenience wrappers.
36632         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36633         wrappers in syntax checks.
36634
36635 2009-09-06  Eric Blake  <ebb9@byu.net>
36636
36637         doc: fix comments in recent patches
36638         * lib/faccessat.c: Mention correct function.
36639         * lib/fchmodat.c: Likewise.
36640         * lib/fchownat.c: Likewise.
36641         * lib/symlinkat.c: Likewise.
36642         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36643         constants.
36644
36645         faccessat, symlinkat: continue cleanup of previous patch
36646         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36647         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36648         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36650         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36651         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36652         set.
36653
36654 2009-09-06  Bruno Haible  <bruno@clisp.org>
36655
36656         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36657         (fstatat): Declare if GNULIB_FSTATAT is set.
36658         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36659         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36660         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36661         * modules/fcntl-h (Files): Remove m4/openat.m4.
36662         * modules/sys_stat (Files): Remove m4/openat.m4.
36663         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36664         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36665         * modules/unistd (Files): Remove m4/openat.m4.
36666         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36667         GNULIB_OPENAT.
36668         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36669         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36671         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36672         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36673         gl_OPENAT_DEFAULTS.
36674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36675         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36676         Don't require gl_OPENAT_DEFAULTS.
36677         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36678         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36679         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36680         (gl_OPENAT_DEFAULTS): Remove macro.
36681
36682 2009-09-06  Bruno Haible  <bruno@clisp.org>
36683
36684         * modules/openat (configure.ac): Remove unneeded witness.
36685
36686 2009-09-06  Bruno Haible  <bruno@clisp.org>
36687
36688         Set errno to ENOSYS when a function is entirely unsupported.
36689         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36690         EOPNOTSUPP.
36691         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36692         * modules/chown (Depends-on): Remove errno.
36693
36694 2009-09-06  Bruno Haible  <bruno@clisp.org>
36695
36696         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36697
36698 2009-09-06  Bruno Haible  <bruno@clisp.org>
36699
36700         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36701
36702 2009-09-06  Ben Pfaff  <blp@gnu.org>
36703             Bruno Haible  <bruno@clisp.org>
36704
36705         Work around a glibc bug in strtok_r.
36706         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36707         Undefine if UNDEFINE_STRTOK_R is set.
36708         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36710         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36711         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36712         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36713         UNDEFINE_STRTOK_R.
36714         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36715
36716 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36717
36718         exclude: minor fix
36719         * lib/exclude.c: Include wctype.h
36720
36721 2009-09-06  Akim Demaille  <demaille@gostai.com>
36722
36723         bootstrap: improve error message
36724         * build-aux/bootstrap (find_tool): Upon failure, report the list
36725         of candidates.
36726         Honor the initial value of the envvar.
36727
36728 2009-09-05  Eric Blake  <ebb9@byu.net>
36729
36730         symlinkat: new module
36731         * modules/symlinkat: New file.
36732         * lib/symlinkat.c: Likewise.
36733         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36735         * modules/unistd (Makefile.am): Use them.
36736         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36737         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36738         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36739         * MODULES.html.sh (File system functions): Mention module.
36740         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36741         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36742         * modules/symlinkat-tests: New test.
36743         * tests/test-symlinkat.c: Likewise.
36744
36745         test-openat-safer: add more checks
36746         * tests/test-openat-safer.c (main): Check more code paths.
36747
36748 2009-09-05  Jim Meyering  <meyering@redhat.com>
36749
36750         syntax-check: detect unnecessary inclusion of openat.h
36751         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36752
36753 2009-09-05  Bruno Haible  <bruno@clisp.org>
36754
36755         Support towlower, towupper.
36756         * doc/posix-functions/towlower.texi: Mention module wctype.
36757         * doc/posix-functions/towupper.texi: Likewise.
36758         * lib/wctype.in.h (towlower, towupper): New functions.
36759         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36760         (ASSERT): New macro.
36761         (e): New variable.
36762         (main): Test also towlower, towupper. Test WEOF argument.
36763         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36764
36765 2009-09-05  Bruno Haible  <bruno@clisp.org>
36766
36767         Fix conversion behaviour when the input is invalid.
36768         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36769         mark occurring in first pass of indirect conversion.
36770         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36771         input.
36772         Found by clang's static analyzer.
36773
36774 2009-09-05  Bruno Haible  <bruno@clisp.org>
36775
36776         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36777         where direct conversion is possible.
36778
36779 2009-09-04  Eric Blake  <ebb9@byu.net>
36780
36781         openat: fail with ENOENT on empty name
36782         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36783         buffer.
36784
36785         link-follow: fix logic bug in prior patch
36786         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36787         reversed sense of yes and no in prior patch.  Avoid confusing
36788         compilation failure with desired semantics.
36789
36790         link-follow: accomodate mingw and cross-compilation
36791         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36792         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36793         cross-compilation results to -1, to make linkat easier to
36794         implement when cross-compiling.  Trivially support mingw.
36795         * modules/link-follow (configure.ac): Call new name.
36796         * NEWS: Mention this.
36797
36798 2009-09-03  Eric Blake  <ebb9@byu.net>
36799
36800         faccessat: compile replacement
36801         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36802         needed.
36803
36804         fts: fix compilation error
36805         * lib/fts.c (includes): Re-add "openat.h", for
36806         openat_needs_fchdir.
36807
36808         faccessat: new module
36809         * modules/faccessat: New file.
36810         * lib/faccessat.c: Likewise.
36811         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36813         * modules/unistd (Makefile.am): Use it.
36814         * lib/unistd.in.h (faccessat): Declare it.
36815         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36816         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36817         * MODULES.html.sh (File system functions): Mention it.
36818         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36819         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36820
36821         euidaccess: prefer POSIX over non-standard implementation
36822         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36823         * lib/euidaccess.c (euidaccess): Use it if available.
36824
36825         openat: make template easier to use
36826         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36827         AT_FUNC_F2 to be undefined.
36828         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36829         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36830         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36831         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36832         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36833         Likewise.
36834         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36835         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36836         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36837         Likewise.
36838
36839         openat: declare in POSIX headers
36840         * NEWS: Mention this.
36841         * modules/openat (configure.ac): Declare witnesses.
36842         (Depends-on): Add fcntl-h, sys_stat, unistd.
36843         (Include): Mention correct headers.
36844         * modules/fcntl-h (Depends-on): Add link-warning.
36845         (Files): Add openat.m4.
36846         (Makefile.am): Substitute witnesses.
36847         * modules/sys_stat (Files, Makefile.am): Likewise.
36848         * modules/unistd (Files, Makefile.am): Likewise.
36849         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36850         (gl_OPENAT_DEFAULTS): New macro.
36851         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36853         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36854         (SYS_STAT_H): Remove unused variable.
36855         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36856         * lib/fcntl--.h (includes): Remove unneeded header.
36857         * lib/openat-safer.c (includes): Likewise.
36858         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36859         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36860         appropriate headers.
36861         (__OPENAT_PREFIX): Delete.
36862         * lib/fcntl.in.h (openat): Provide declaration.
36863         (AT_FDCWD): Fix Solaris bug.
36864         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36865         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36866         * lib/fchmodat.c (includes):  Adjust to find declaration.
36867         * lib/fchownat.c (includes): Likewise.
36868         * lib/mkdirat.c (includes): Likewise.
36869         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36870         still visible.
36871
36872 2009-09-02  Eric Blake  <ebb9@byu.net>
36873
36874         errno: use consistently
36875         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36876         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36877         * lib/canonicalize.c (ELOOP): Likewise.
36878         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36879         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36880         * lib/lchown.c (EOPNOTSUPP): Likewise.
36881         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36882         * lib/savewd.c (ESTALE): Likewise.
36883         * lib/settime.c (ENOSYS): Likewise.
36884         * lib/utimens.c (ENOSYS): Likewise.
36885         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36886         * lib/chdir-safer.c (ELOOP): Likewise.
36887         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36888         * modules/c-stack (Depends-on): Add errno.
36889         * modules/canonicalize (Depends-on): Likewise.
36890         * modules/chdir-safer (Depends-on): Likewise.
36891         * modules/fdopendir (Depends-on): Likewise.
36892         * modules/inet_ntop (Depends-on): Likewise.
36893         * modules/inet_pton (Depends-on): Likewise.
36894         * modules/lchown (Depends-on): Likewise.
36895         * modules/openat (Depends-on): Likewise.
36896         * modules/savewd (Depends-on): Likewise.
36897         * modules/settime (Depends-on): Likewise.
36898         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36899
36900         fts: avoid leaking fds
36901         * modules/fts (Depends-on): Add cloexec.
36902         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36903         flag.
36904
36905         fts: make directory fds more robust
36906         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36907         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36908
36909         backupfile, chdir-long, fts, savedir: make safer
36910         * lib/backupfile.c (includes): Use "dirent--.h", since
36911         numbered_backup can write to stderr during readdir.
36912         * lib/savedir.c (includes): Likewise.
36913         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36914         emulation can write to stderr on failure.
36915         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36916         * lib/getcwd.c: Document why opendir_safer is unused.
36917         * lib/glob.c: Likewise.
36918         * lib/scandir.c: Likewise.
36919         * lib/openat-proc.c: Likewise, for open_safer.
36920         * modules/backupfile (Depends-on): Add dirent-safer.
36921         * modules/savedir (Depends-on): Likewise.
36922         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36923         * modules/chdir-long (Depends-on): Add openat-safer.
36924
36925         openat-safer: new module
36926         * modules/openat-safer: New file.
36927         * lib/openat-safer.c: Likewise.
36928         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36929         * lib/fcntl-safer.h (openat_safer): Declare.
36930         * lib/fcntl--.h (openat): Override.
36931         * MODULES.html.sh (File descriptor based I/O): Mention it.
36932         * lib/openat.h: Add double-inclusion guards.
36933         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36934         "fcntl--.h", so we can implement openat.
36935         * modules/openat-safer-tests: New test.
36936         * tests/test-openat-safer.c: New file.
36937
36938         dirent-safer: new module
36939         * modules/dirent-safer: New file.
36940         * lib/dirent--.h: Likewise.
36941         * lib/dirent-safer.h: Likewise.
36942         * lib/opendir-safer.c: Likewise.
36943         * m4/dirent-safer.m4: Likewise.
36944         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36945         * modules/dirent-safer-tests: New test.
36946         * tests/test-dirent-safer.c: New file.
36947         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36948
36949         fdopendir: optimize on mingw
36950         * lib/unistd.in.h (_gl_directory_name): New prototype.
36951         * lib/fchdir.c (_gl_directory_name): Implement it.
36952         (fchdir): Use it to simplify implementation.
36953         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36954         fchdir, when available, to avoid calling [f]chdir().
36955
36956         fdopendir: split into its own module
36957         * lib/openat.c (fdopendir): Move...
36958         * lib/fdopendir.c: ...into new file.
36959         * modules/fdopendir: New module.
36960         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36961         * modules/openat (Depends-on): Add fdopendir.
36962         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36963         fdopendir here.
36964         * modules/savedir (Depends-on): Only need fdopendir, not full
36965         openat.
36966         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36967         * lib/openat.h (fdopendir): Drop prototype.
36968         * lib/dirent.in.h (fdopendir): Provide prototype.
36969         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36970         * modules/dirent (Makefile.am): Substitute them.
36971         * MODULES.html.sh (File system functions): Mention it.
36972         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36973         * modules/fdopendir-tests: New file.
36974         * tests/test-fdopendir.c: Likewise.
36975
36976         fchdir: use more consistent macro convention
36977         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36978         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36979         REPLACE_FCHDIR, rather than relying on config.h macros.
36980         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36981         inside a single make-time REPLACE_FCHDIR block, rather than using
36982         the config.h FCHDIR_REPLACEMENT.
36983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36984         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36985         Manage fstat replacement.
36986         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36987         REPLACE_FCHDIR.
36988         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36989         (Makefile.am): Substitute REPLACE_FCHDIR.
36990         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36991         FCHDIR_REPLACEMENT.
36992         * lib/dup-safer.c (dup_safer): Likewise.
36993         * lib/dup2.c (rpl_dup2): Likewise.
36994         * lib/dup3.c (rpl_dup3): Likewise.
36995         * lib/open.c (rpl_open): Likewise.
36996
36997         fchdir: simplify error handling, and support dup3
36998         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36999         stdbool, malloc-posix, realloc-posix.
37000         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37001         (ensure_dirs_slot): Return false on allocation failure.
37002         (rpl_dup2): Delete.
37003         (_gl_register_dup): New function.
37004         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37005         (_gl_register_fd): Close fd on allocation failure.
37006         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37007         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37008         prototype.
37009         (rpl_dup2_fchdir): Delete prototype.
37010         * lib/open.c (open): Update caller.
37011         * lib/dup2.c (dup2): Track fchdir metadata.
37012         * lib/dup3.c (dup3): Likewise.
37013         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37014         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37015
37016 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37017
37018         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37019         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37020         don't pass arguments to AC_OUTPUT.
37021
37022 2009-09-02  Bruno Haible  <bruno@clisp.org>
37023
37024         * modules/mkdtemp (License): Relicense under LGPLv2+.
37025         Reported by Paolo Bonzini.
37026
37027 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37028
37029         Replace uses of obsolete autoconf macros in Jim's modules.
37030         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37031         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37032         can evoke a warning from autoconf when run with -Wobsolete
37033         enabled.  They were declared obsolete for good reasons (see
37034         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37035         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37036         should not continue using the deprecated macros.
37037         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37038         obsolete Autoconf macros with modern counterparts.
37039         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37040         * m4/dos.m4 (gl_AC_DOS): Likewise.
37041         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37042         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37043         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37044         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37045         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37046         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37047         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37048         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37049         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37050         Likewise.
37051         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37052         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37053         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37054         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37055         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37056         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37057
37058 2009-09-01  Eric Blake  <ebb9@byu.net>
37059
37060         fchdir: fix off-by-one bug in previous patch
37061         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37062         (_gl_unregister_fd): Delete useless if.
37063
37064 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37065
37066         maint.mk: sort the list of syntax-check rules
37067         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37068         easier to get a sense of progress when the rules are run sequentially
37069         and take a long time.
37070
37071 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37072
37073         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37074         * modules/netinet_in: Likewise.
37075         * modules/sys_file: Likewise.
37076         * modules/sys_ioctl: Likewise.
37077         * modules/sys_select: Likewise.
37078         * modules/sys_socket: Likewise.
37079         * modules/sys_stat: Likewise.
37080         * modules/sys_time: Likewise.
37081         * modules/sys_times: Likewise.
37082         * modules/sys_utsname: Likewise.
37083         * modules/sys_wait: Likewise.
37084
37085 2009-09-01  Jim Meyering  <meyering@redhat.com>
37086
37087         fts: help ensure that return values are not ignored
37088         * lib/fts_.h (__GNUC_PREREQ): Define.
37089         (__attribute_warn_unused_result__): Define.
37090         (fts_children, fts_close, fts_open, fts_read): Declare with
37091         __attribute_warn_unused_result__.
37092
37093         fts: fts_close now fails also when closing a dir file descriptor fails
37094         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37095         and propagate to caller, along with errno.
37096
37097         announce-gen: correct formatting in --help output
37098         * build-aux/announce-gen (usage): Move the one-line description in
37099         --help output "up", to where it belongs, just after Usage:.
37100
37101 2009-08-31  Eric Blake  <ebb9@byu.net>
37102
37103         fchdir: port to mingw
37104         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37105         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37106         opened, then use a substitute.
37107         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37108         replacement.
37109         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37110         (_gl_register_fd): No need to check stat if open already filters
37111         all directories.
37112         (fchdir): Fix error condition to match POSIX.
37113         * modules/fchdir (Depends-on): Add sys_stat.
37114         * doc/posix-functions/open.texi (open): Document the limitation.
37115         * modules/fchdir-tests: New file.
37116         * tests/test-fchdir.c: Likewise.
37117
37118         canonicalize: allow cross-testing from cygwin to mingw
37119         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37120         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37121         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37122         Likewise.
37123         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37124         target does not support symlinks.
37125         * tests/test-canonicalize-lgpl.sh: Likewise.
37126
37127         chown: avoid compilation warning on mingw
37128         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37129         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37130         mingw.
37131         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37132         * modules/chown (Depends-on): Add errno.
37133
37134 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37135
37136         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37137         command.
37138
37139 2009-08-31  Jim Meyering  <meyering@redhat.com>
37140
37141         canonicalize: remove useless initialization
37142         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37143         initialization of local, "end".
37144
37145 2009-08-30  Bruno Haible  <bruno@clisp.org>
37146
37147         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37148         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37149         ENOSYS.
37150
37151 2009-08-30  Bruno Haible  <bruno@clisp.org>
37152
37153         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37154         /usr/xpg4/bin/tr when it exists.
37155         * tests/test-pipe-filter-gi1.sh: Likewise.
37156
37157 2009-08-30  Bruno Haible  <bruno@clisp.org>
37158
37159         Work around deficient /usr/bin/id program on Solaris.
37160         * tests/test-file-has-acl.sh (ID): New variable.
37161         * tests/test-set-mode-acl.sh (ID): Likewise.
37162         * tests/test-copy-acl.sh (ID): Likewise.
37163         * tests/test-copy-file.sh (ID): Likewise.
37164
37165 2009-08-30  Bruno Haible  <bruno@clisp.org>
37166
37167         New module 'xstriconveh'.
37168         * lib/xstriconveh.h: New file.
37169         * lib/xstriconveh.c: New file.
37170         * modules/xstriconveh: New file.
37171
37172 2009-08-30  Bruno Haible  <bruno@clisp.org>
37173
37174         Make it easier to use mem_cd_iconveh.
37175         * lib/striconveh.h (iconveh_t): New type.
37176         (iconveh_open, iconveh_close): New declarations.
37177         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37178         with a single 'const iconveh_t *' argument.
37179         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37180         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37181         with a single 'const iconveh_t *' argument.
37182         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37183         * tests/test-striconveh.c (main): Update.
37184         * NEWS: Mention the change.
37185
37186 2009-08-30  Bruno Haible  <bruno@clisp.org>
37187
37188         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37189         problem.
37190
37191 2009-08-30  Bruno Haible  <bruno@clisp.org>
37192
37193         Work around iconv_open problem on Solaris.
37194         * lib/iconv_open-solaris.gperf: New file.
37195         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37196         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37197         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37198         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37199         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37200         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37201
37202 2009-08-29  Jim Meyering  <meyering@redhat.com>
37203
37204         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37205         * top/maint.mk (cvs-check): Remove target; it was just an alias
37206         to the better-named vc-diff-check.
37207         (maintainer-distcheck): Remove rule.  It was used only from
37208         the (alpha/beta/major) target, and all of its commands but one
37209         were coreutils-specific.
37210         (vc-dist): Remove rule.
37211         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37212         Run vc-diff-check, not vc-dist.
37213         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37214
37215 2009-08-27  Bruno Haible  <bruno@clisp.org>
37216
37217         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37218         of 0.
37219
37220 2009-08-27  Bruno Haible  <bruno@clisp.org>
37221
37222         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37223         compilers.
37224         * doc/func.texi: Document the SunPRO C bug.
37225
37226 2009-08-27  Bruno Haible  <bruno@clisp.org>
37227
37228         Fix link error on Solaris.
37229         * tests/test-parse-duration.c (xstrdup): Remove function.
37230
37231 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37232
37233         ignore-value: handle pointer types, too
37234         * lib/ignore-value.h (__attribute__): Remove definition.
37235         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37236         of a more concise and more-often effective "(void) i" statement.
37237         (ignore_ptr): New function to suppress warnings from functions that
37238         return pointers, and to make it explicit that one function doesn't
37239         handle all cases.
37240
37241 2009-08-25  Bruno Haible  <bruno@clisp.org>
37242
37243         dup2: work around a Linux bug.
37244         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37245         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37246         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37247         Reported by Simon Josefsson.
37248
37249 2009-08-25  Jim Meyering  <meyering@redhat.com>
37250
37251         libguestfs uses gnulib
37252         * users.txt: Add libguestfs.
37253
37254 2009-08-24  Eric Blake  <ebb9@byu.net>
37255
37256         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37257         * lib/pipe2.c (includes): Add binary-io.h.
37258         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37259
37260 2009-08-24  Bruno Haible  <bruno@clisp.org>
37261
37262         Tolerate declared but missing accept4 syscall.
37263         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37264         available.
37265         * lib/sys_socket.in.h (accept4): If the function is already present,
37266         override it.
37267         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37268         * modules/accept4 (Makefile.am): Compile accept4.c always.
37269         Reported by Paolo Bonzini and Eric Blake.
37270
37271 2009-08-23  Bruno Haible  <bruno@clisp.org>
37272
37273         New module 'accept4'.
37274         * lib/sys_socket.in.h (accept4): New declaration.
37275         * lib/accept4.c: New file.
37276         * m4/accept4.m4: New file.
37277         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37278         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37279         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37280         HAVE_ACCEPT4.
37281         * modules/accept4: New file.
37282         * doc/glibc-functions/accept4.texi: Mention the new module.
37283
37284 2009-08-24  Jim Meyering  <meyering@redhat.com>
37285
37286         progname: also set global program_invocation_name, when possible
37287         Before this change, a libtool-enabled program that calls glibc's
37288         error function would report the program name as
37289         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37290         * modules/progname (configure.ac): Check for a declaration of
37291         program_invocation_name.
37292         * lib/progname.c:  Include <errno.h>.
37293         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37294         Set program_invocation_name.
37295
37296 2009-08-23  Bruno Haible  <bruno@clisp.org>
37297
37298         * lib/dup3.c: Include <string.h>.
37299
37300 2009-08-23  Bruno Haible  <bruno@clisp.org>
37301
37302         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37303         * lib/pipe2.c (pipe2): Likewise.
37304         Suggested by Eric Blake.
37305
37306 2009-08-23  Bruno Haible  <bruno@clisp.org>
37307
37308         Tolerate declared but missing dup3 syscall.
37309         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37310         * lib/unistd.in.h (dup3): If the function is already present,
37311         override it.
37312         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37313         * modules/dup3 (Makefile.am): Compile dup3.c always.
37314         Reported by Paolo Bonzini.
37315
37316 2009-08-23  Bruno Haible  <bruno@clisp.org>
37317
37318         Tolerate declared but missing pipe2 syscall.
37319         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37320         available.
37321         * lib/unistd.in.h (pipe2): If the function is already present,
37322         override it.
37323         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37324         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37325         Reported by Paolo Bonzini.
37326
37327 2009-08-23  Bruno Haible  <bruno@clisp.org>
37328
37329         * lib/pipe2.c (pipe2): Move #ifs inside function.
37330
37331 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37332
37333         quotearg: document limitations of quote_these_too
37334         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37335         those limitations are created.
37336         * lib/quotearg.h (set_char_quoting): Document that digits and
37337         letters that are special after backslash are not permitted.
37338         (quotearg_char): Cross-reference set_char_quoting documentation.
37339
37340 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37341
37342         quotearg: implement custom_quoting_style
37343         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37344         right_quote fields.
37345         (set_custom_quoting): New public function.
37346         (quotearg_buffer_restyled): Add left_quote and right_quote
37347         arguments, handle them very much like locale quoting, and update
37348         all uses.
37349         (quotearg_n_custom): New public function.
37350         (quotearg_n_custom_mem): New public function.
37351         (quotearg_custom): New public function.
37352         (quotearg_custom_mem): New public function.
37353         * lib/quotearg.h: Prototype and document new public functions.
37354         (enum quoting_style): For escape_quoting_style and
37355         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37356         ignored even though they're otherwise like c_quoting_style.
37357         Add custom_quoting_style member and document with comparison to
37358         clocale_quoting_style.
37359         * tests/test-quotearg.c (custom_quotes): New array.
37360         (custom_results): New array.
37361         (main): Extend to test custom quoting.
37362
37363 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37364
37365         quotearg: fix right quote escaping when it's in quote_these_too
37366         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37367         quote, be sure to prepend only one backslash.
37368         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37369         (main): Test it.
37370
37371 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37372
37373         quotearg-tests: test escaping of embedded locale quotes
37374         * tests/test-quotearg.c (struct result_strings): Add member for
37375         new input.
37376         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37377         (inputs): Add new input.
37378         (results_g): Add expected results.
37379         (flag_results): Likewise.
37380         (locale_results): Likewise.
37381         (compare_strings): Check those.
37382
37383 2009-08-23  Bruno Haible  <bruno@clisp.org>
37384
37385         Tests for module 'dup3'.
37386         * modules/dup3-tests: New file.
37387         * tests/test-dup3.c: New file.
37388
37389         New module 'dup3'.
37390         * lib/unistd.in.h (dup3): New declaration.
37391         * lib/dup3.c: New file.
37392         * m4/dup3.m4: New file.
37393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37394         HAVE_DUP3.
37395         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37396         * modules/dup3: New file.
37397         * doc/glibc-functions/dup3.texi: Mention the new module.
37398
37399 2009-08-23  Bruno Haible  <bruno@clisp.org>
37400
37401         Tweak the dup2 test.
37402         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37403         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37404         the test file is still empty. Fix argument order of lseek.
37405
37406 2009-08-23  Bruno Haible  <bruno@clisp.org>
37407
37408         Avoid test link errors when the modules getopt-gnu, gettext are used.
37409         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37411
37412 2009-08-23  Bruno Haible  <bruno@clisp.org>
37413
37414         Fix getdtablesize() on mingw.
37415         * lib/getdtablesize.c (getdtablesize): Implement differently.
37416         * lib/unistd.in.h (getdtablesize): Improve comment.
37417
37418 2009-08-23  Bruno Haible  <bruno@clisp.org>
37419
37420         New module 'mkostemp'.
37421         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37422         * lib/stdlib.in.h (mksotemp): New declaration.
37423         * lib/mkostemp.c: New file, from glibc with modifications.
37424         * lib/tempname.h (GT_FILE): Remove outdated comment.
37425         (gen_tempname): Add flags argument.
37426         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37427         (__GT_FILE): Map to 1.
37428         (small_open, large_open): Remove macros.
37429         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37430         * lib/mkstemp.c (mkstemp): Update.
37431         * lib/mkdtemp.c (mkdtemp): Likewise.
37432         * m4/mkostemp.m4: New file.
37433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37434         HAVE_MKOSTEMP.
37435         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37436         HAVE_MKOSTEMP.
37437         * modules/mkostemp: New file, based on modules/mkstemp.
37438         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37439         * NEWS: Mention the change.
37440
37441 2009-08-23  Bruno Haible  <bruno@clisp.org>
37442
37443         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37444         Reported by Eric Blake.
37445
37446 2009-08-23  Bruno Haible  <bruno@clisp.org>
37447
37448         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37449         Reported by Eric Blake.
37450
37451 2009-08-23  Bruno Haible  <bruno@clisp.org>
37452
37453         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37454         * modules/pipe2 (Depends-on): Likewise.
37455
37456 2009-08-23  Eric Blake  <ebb9@byu.net>
37457
37458         fcntl-h: add O_TTY_INIT support
37459         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37460         * tests/test-fcntl-h.c (o): Test it.
37461         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37462
37463         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37464         * modules/fcntl: Move <fcntl.h> header replacement...
37465         * modules/fcntl-h: ...to new name, so as not to collide with
37466         like-named function.
37467         * tests/test-fcntl.c: Rename...
37468         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37469         * modules/fcntl-tests: Rename...
37470         * modules/fcntl-h-tests: ...to this.  Update test file name.
37471         * modules/chdir-long (Depends-on): Update clients.
37472         * modules/chdir-safer (Depends-on): Likewise.
37473         * modules/fcntl-safer (Depends-on): Likewise.
37474         * modules/fts (Depends-on): Likewise.
37475         * modules/mkancesdirs (Depends-on): Likewise.
37476         * modules/mkdir-p (Depends-on): Likewise.
37477         * modules/open (Depends-on): Likewise.
37478         * modules/savewd (Depends-on): Likewise.
37479         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37480         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37481
37482 2009-08-22  Bruno Haible  <bruno@clisp.org>
37483
37484         * modules/binary-io (License): Relicense under LGPL.
37485         * modules/pipe2 (License): Likewise.
37486
37487 2009-08-22  Bruno Haible  <bruno@clisp.org>
37488
37489         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37490         return value.
37491         * lib/pipe-filter-gi.c (filter_init): Likewise.
37492         Reported by Eric Blake.
37493
37494 2009-08-22  Bruno Haible  <bruno@clisp.org>
37495
37496         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37497         * modules/pipe (Depends-on): Add pipe2.
37498
37499 2009-08-22  Bruno Haible  <bruno@clisp.org>
37500
37501         Tests for module 'pipe2'.
37502         * modules/pipe2-tests: New file.
37503         * tests/test-pipe2.c: New file.
37504
37505         New module 'pipe2'.
37506         * lib/unistd.in.h (pipe2): New declaration.
37507         * lib/pipe2.c: New file.
37508         * m4/pipe2.m4: New file.
37509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37510         HAVE_PIPE2.
37511         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37512         * modules/pipe2: New file.
37513         * doc/glibc-functions/pipe2.texi: Mention the new module.
37514
37515 2009-08-22  Bruno Haible  <bruno@clisp.org>
37516
37517         Reference some new glibc functions.
37518         * doc/glibc-functions/accept4.texi: New file.
37519         * doc/glibc-functions/dup3.texi: New file.
37520         * doc/glibc-functions/mkostemp.texi: New file.
37521         * doc/glibc-functions/pipe2.texi: New file.
37522         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37523         (Glibc sys/socket.h): Refer to accept4.
37524         (Glibc unistd.h): Refer to dup3, pipe2.
37525         Reported by Eric Blake.
37526
37527 2009-08-22  Jim Meyering  <meyering@redhat.com>
37528             Bruno Haible  <bruno@clisp.org>
37529
37530         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37531         This makes it so packages using automake-1.11's silent-rules option
37532         can print e.g., a single "GEN    configmake.h" line, rather than
37533         the 30+ statements that perform the job.  If you want to see the
37534         actual commands, you can still run "make V=1".
37535         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37536         so that make output is abbreviated when those variables are defined
37537         appropriately.
37538         * modules/argz: Likewise.
37539         * modules/arpa_inet: Likewise.
37540         * modules/byteswap: Likewise.
37541         * modules/configmake: Likewise.
37542         * modules/dirent: Likewise.
37543         * modules/errno: Likewise.
37544         * modules/fcntl: Likewise.
37545         * modules/float: Likewise.
37546         * modules/fnmatch: Likewise.
37547         * modules/getopt-posix: Likewise.
37548         * modules/glob: Likewise.
37549         * modules/iconv_open: Likewise.
37550         * modules/inttypes: Likewise.
37551         * modules/localcharset: Likewise.
37552         * modules/locale: Likewise.
37553         * modules/math: Likewise.
37554         * modules/netdb: Likewise.
37555         * modules/netinet_in: Likewise.
37556         * modules/poll: Likewise.
37557         * modules/posix_spawnp-tests: Likewise.
37558         * modules/sched: Likewise.
37559         * modules/search: Likewise.
37560         * modules/selinux-h: Likewise.
37561         * modules/signal: Likewise.
37562         * modules/spawn: Likewise.
37563         * modules/stdarg: Likewise.
37564         * modules/stdbool: Likewise.
37565         * modules/stddef: Likewise.
37566         * modules/stdint: Likewise.
37567         * modules/stdio: Likewise.
37568         * modules/stdlib: Likewise.
37569         * modules/string: Likewise.
37570         * modules/strings: Likewise.
37571         * modules/sys_file: Likewise.
37572         * modules/sys_ioctl: Likewise.
37573         * modules/sys_select: Likewise.
37574         * modules/sys_socket: Likewise.
37575         * modules/sys_stat: Likewise.
37576         * modules/sys_time: Likewise.
37577         * modules/sys_times: Likewise.
37578         * modules/sys_utsname: Likewise.
37579         * modules/sys_wait: Likewise.
37580         * modules/sysexits: Likewise.
37581         * modules/time: Likewise.
37582         * modules/unistd: Likewise.
37583         * modules/wchar: Likewise.
37584         * modules/wctype: Likewise.
37585
37586 2009-08-22  Jim Meyering  <meyering@redhat.com>
37587
37588         announce-gen: detect write failure
37589         * build-aux/announce-gen: Add Coda at end.
37590         Remove equivalent-but-more-verbose block at top.
37591
37592 2009-08-19  Akim Demaille  <demaille@gostai.com>
37593
37594         bootstrap: --help to stdout.
37595         * bootstrap (usage): Don't send --help to stderr.
37596         Use a here doc instead of a long string.
37597
37598 2009-08-21  Eric Blake  <ebb9@byu.net>
37599
37600         test-popen-safer: split from test-popen
37601         * tests/test-popen.c (main): Move...
37602         * tests/test-popen.h: ...into new file.
37603         * tests/test-popen-safer2.c: New file.
37604         * modules/popen-tests (Files): Add test-popen.h.
37605         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37606         Suggested by Bruno Haible.
37607
37608         test-fcntl-safer: split from test-open
37609         * tests/test-open.c (main): Move...
37610         * tests/test-open.h: ...into new file.
37611         * tests/test-fcntl-safer.c: New file.
37612         * modules/open-tests (Files): Add test-open.h.
37613         * modules/fcntl-safer-tests: New file.
37614         Suggested by Bruno Haible.
37615
37616         test-fopen-safer: split from test-fopen
37617         * tests/test-fopen.c (main): Move...
37618         * tests/test-fopen.h: ...into new file.
37619         * tests/test-fopen-safer.c: New file.
37620         * modules/fopen-tests (Files): Add test-fopen.h.
37621         * modules/fopen-safer-tests: New file.
37622         Suggested by Bruno Haible.
37623
37624 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37625
37626         popen-safer: test O_CLOEXEC at run-time.
37627         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37628
37629 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37630
37631         fcntl: move more flags to the header
37632         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37633         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37634         * lib/fcntl.in.h: Do both things here.
37635
37636 2009-08-21  Jim Meyering  <meyering@redhat.com>
37637
37638         consistently remove $@-t before redirecting to it
37639         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37640         * modules/alloca-opt: Likewise.
37641         * modules/byteswap: Likewise.
37642         * modules/fnmatch: Likewise.
37643         * modules/getopt-posix: Likewise.
37644         * modules/glob: Likewise.
37645         * modules/poll: Likewise.
37646         * modules/posix_spawnp-tests: Likewise.
37647         * modules/sys_socket: Likewise.
37648         * modules/sysexits: Likewise.
37649
37650 2009-08-21  Eric Blake  <ebb9@byu.net>
37651
37652         popen: simplify access to original popen
37653         * lib/popen.c (rpl_popen): No need to worry about popen being a
37654         macro.
37655         Reported by Bruno Haible.
37656
37657 2009-08-20  Eric Blake  <ebb9@byu.net>
37658
37659         build: avoid some compiler warnings
37660         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37661         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37662         type.
37663         (new_exclude_segment, excluded_file_pattern_p)
37664         (excluded_file_name_p): Reduce scope.
37665         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37666         old-style declaration.
37667
37668 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37669
37670         * tests/test-exclude1.sh: Handle Windows EOL.
37671         * tests/test-exclude2.sh: Likewise.
37672         * tests/test-exclude3.sh: Likewise.
37673         * tests/test-exclude4.sh: Likewise.
37674         * tests/test-exclude5.sh: Likewise.
37675         * tests/test-exclude6.sh: Likewise.
37676         * tests/test-exclude7.sh: Likewise.
37677
37678 2009-08-19  Akim Demaille  <demaille@gostai.com>
37679
37680         bootstrap: find sha1sum when named gsha1sum.
37681         * bootstrap (find_tool): New.
37682         ($SHA1SUM): New.
37683         Use it.
37684
37685 2009-08-20  Jim Meyering  <meyering@redhat.com>
37686
37687         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37688         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37689         expression that converts "." in a file name to "\." in the resulting
37690         regexp.  Start with a dummy statement, so that prior shell variable
37691         definitions are expanded portably.  Reported by Simon Josefsson.
37692
37693 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37694
37695         Fix polling for writeability of a screen buffer.
37696         * lib/poll.c: Distinguish input and screen buffers for the
37697         Win32 implementation.
37698         * lib/select.c: Likewise.
37699
37700 2009-08-19  Eric Blake  <ebb9@byu.net>
37701
37702         popen-safer: prevent popen from clobbering std descriptors
37703         * modules/popen-safer: New file.
37704         * lib/popen-safer.c: Likewise.
37705         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37706         * lib/stdio--.h (popen): Provide override.
37707         * lib/stdio-safer.h (popen_safer): Provide declaration.
37708         * tests/test-popen.c (includes): Partially test this.
37709         * modules/popen-safer-tests: New file, for more tests.
37710         * tests/test-popen-safer.c: Likewise.
37711         * MODULES.html.sh (file stream based Input/Output): Mention it.
37712
37713         tests: test some of the *-safer modules
37714         * modules/fopen-safer (Depends-on): Add fopen.
37715         * modules/fcntl-safer (Depends-on): Add fcntl.
37716         * modules/stdlib-safer (Depends-on): Add stdlib.
37717         (configure.ac): Set indicator.
37718         * modules/unistd-safer (configure.ac): Likewise.
37719         * modules/tmpfile-safer (configure.ac): Likewise.
37720         (Depends-on): Add tmpfile.
37721         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37722         active.
37723         * tests/test-fopen.c (includes): Test safer versions when they are
37724         in use.
37725         * tests/test-open.c (includes): Likewise.
37726
37727         popen: fix cygwin 1.5 bug when stdin closed
37728         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37729         * modules/popen: New file.
37730         * modules/popen-tests: Likewise.
37731         * tests/test-popen.c: Likewise.
37732         * m4/popen.m4: Likewise.
37733         * lib/popen.c: Likewise.
37734         * lib/stdio.in.h (popen): New declaration.
37735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37736         * modules/stdio (Makefile.am): Likewise.
37737         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37738
37739 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37740
37741         maint.mk: give full control over update-copyright exclusions
37742         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37743         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37744         (update-copyright): Don't force inclusion of top-level
37745         ChangeLog.  Don't force exclusion of all COPYING files, but make
37746         them the default exclusion instead.
37747
37748 2009-08-16  Bruno Haible  <bruno@clisp.org>
37749
37750         Fix test failures on Solaris 10.
37751         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37752         tests when Solaris iconv() is used.
37753         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37754         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37755         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37756         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37757         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37758
37759 2009-08-16  Bruno Haible  <bruno@clisp.org>
37760
37761         Fix test failures on Solaris 10.
37762         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37763         'tr' program and pass it as first argument.
37764         * tests/test-pipe-filter-gi1.sh: Likewise.
37765         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37766         program as first argument.
37767         * tests/test-pipe-filter-gi1.c (main): Likewise.
37768
37769 2009-08-16  Eric Blake  <ebb9@byu.net>
37770
37771         fpurge: fix previous commits
37772         * modules/fpurge (Makefile.am): Make replacement conditional,
37773         partially reverting 2007-04-29 change; missed in previous
37774         attempt.
37775         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37776         is missing.
37777
37778 2009-08-16  Bruno Haible  <bruno@clisp.org>
37779
37780         Clarify fpurge's effect on the file position.
37781         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37782         * tests/test-fpurge.c (main): Make a second pass for checking the file
37783         position.
37784
37785 2009-08-16  Bruno Haible  <bruno@clisp.org>
37786
37787         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37788         declaration of fpurge is missing.
37789         * tests/test-fpurge.c (main): Check that the file has not more contents
37790         than expected. Close the file before removing it.
37791
37792 2009-08-15  Eric Blake  <ebb9@byu.net>
37793
37794         fpurge: don't wrap working cygwin implementation
37795         * lib/fpurge.c (fpurge): Fix comment typo.
37796         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37797         1.7 to avoid replacement.
37798         * tests/test-fpurge.c (main): Enhance test.
37799
37800 2009-08-15  Eric Blake  <ebb9@byu.net>
37801         and Jim Meyering  <meyering@redhat.com>
37802
37803         test-update-copyright: skip if perl is insufficient
37804         * tests/test-update-copyright.sh: Failure to run maintainer tool
37805         should not cause testsuite failure on cygwin 1.5.
37806
37807 2009-08-14  Eric Blake  <ebb9@byu.net>
37808
37809         doc: mention more functions added in cygwin 1.7.0
37810         * doc/posix-headers/limits.texi (limits.h): Update for recent
37811         cygwin additions.
37812         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37813         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37814         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37815         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37816         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37817
37818 2009-08-14  Eric Blake  <ebb9@byu.net>
37819
37820         maint.mk: simplify update-copyright rule
37821         * top/maint.mk (update-copyright-local): Delete, and document how
37822         to do it in cfg.mk instead.
37823         (update-copyright-exclude-regexp): Delete, and document how to do
37824         it in .x-update-copyright instead.
37825         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37826         exclude ChangeLog.
37827
37828 2009-08-14  Bruno Haible  <bruno@clisp.org>
37829
37830         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37831
37832 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37833
37834         maint.mk: support update-copyright-env
37835         * top/maint.mk (update-copyright-env): Define place-holder.
37836         (update-copyright): Expand $(update-copyright-env) before
37837         invoking update-copyright.
37838
37839 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37840
37841         update-copyright: implement forced reformatting
37842         * build-aux/update-copyright: Implement and document
37843         UPDATE_COPYRIGHT_FORCE.
37844         * tests/test-update-copyright.sh: Test it.
37845
37846 2009-08-14  Eric Blake  <ebb9@byu.net>
37847         and Bruno Haible  <bruno@clisp.org>
37848
37849         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37850         * tests/test-locale.c: Revert previous patch related to NULL.
37851         * tests/test-stdio.c: Likewise.
37852         * tests/test-stdlib.c: Likewise.
37853         * tests/test-string.c: Likewise.
37854         * tests/test-unistd.c: Likewise.
37855         * modules/time-tests (Depends-on): Add verify.
37856         * modules/wchar-tests (Depends-on): Likewise.
37857         * tests/test-time.c: Test for NULL compliance.
37858         * tests/test-wchar.c: Likewise.
37859         * modules/locale (Depends-on): Add stddef.
37860         * modules/stdio (Depends-on): Likewise.
37861         * modules/stdlib (Depends-on): Likewise.
37862         * modules/string (Depends-on): Likewise.
37863         * modules/time (Depends-on): Likewise.
37864         * modules/unistd (Depends-on): Likewise.
37865         * modules/wchar (Depends-on): Likewise.
37866         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37867         * lib/stdlib.in.h (includes): Likewise.
37868         * lib/string.in.h (includes): Likewise.
37869         * lib/time.in.h (includes): Likewise.
37870         * lib/unistd.in.h (includes): Likewise.
37871         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37872         replaced.
37873         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37874         * m4/stddef_h.m4: New file.
37875         * modules/stddef: Likewise.
37876         * lib/stddef.in.h: Likewise.
37877         * modules/stddef-tests: Likewise.
37878         * tests/test-stddef.c: Likewise.
37879         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37880         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37881         * doc/posix-headers/locale.texi (locale.h): Likewise.
37882         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37883         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37884         * doc/posix-headers/string.texi (string.h): Likewise.
37885         * doc/posix-headers/time.texi (time.h): Likewise.
37886         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37887         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37888
37889 2009-08-14  Eric Blake  <ebb9@byu.net>
37890
37891         doc: improve git diff of texinfo files
37892         * .gitattributes: Add rule for *.texi files, with hint on how to
37893         use it.
37894         Copied from m4, and based on a report by Bruno Haible.
37895
37896 2009-08-14  Bruno Haible  <bruno@clisp.org>
37897
37898         Disable multithread support by default on Cygwin 1.5.x for real.
37899         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37900
37901 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37902
37903         update-copyright: much ado about intervals
37904         * build-aux/update-copyright: Implement and document
37905         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37906         of copyright year intervals.
37907         Also, document UPDATE_COPYRIGHT_YEAR.
37908         * tests/test-update-copyright.sh: Test it.
37909
37910         update-copyright: convert 2-digit to 4-digit years
37911         * build-aux/update-copyright: Implement and document.
37912         * tests/test-update-copyright.sh: Update.
37913
37914 2009-08-14  Jim Meyering  <meyering@redhat.com>
37915
37916         test-exclude: avoid coreutils "make check" failure
37917         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37918         just as in test-argmatch.c.
37919
37920 2009-08-13  Eric Blake  <ebb9@byu.net>
37921
37922         test-dup2: fix bad assumption
37923         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37924         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37925
37926         test-version-etc: fix CRLF portability issue
37927         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37928         recognize \r.
37929         * tests/test-argp-version-etc-1.sh: Likewise.
37930
37931         getopt: update client modules
37932         * modules/argp (Depends-on): Use getopt-gnu.
37933         * modules/git-merge-changelog (Depends-on): Likewise.
37934         * modules/long-options (Depends-on): Likewise.
37935         * modules/xstrtol (Depends-on): Likewise.
37936
37937 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37938
37939         * tests/test-version-etc.sh: Don't fail on different
37940         project/version.  Don't fail on CRLF differences.  Rewrite to use
37941         multiple -e instead of multiple sed forks, suggested by Eric Blake
37942         <ebb9@byu.net>.
37943         * tests/test-argp-version-etc-1.sh: Likewise.
37944
37945 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37946
37947         * tests/test-version-etc.sh: Don't fail on different
37948         project/version.
37949
37950 2009-08-12  Bruno Haible  <bruno@clisp.org>
37951
37952         Tests for modules 'getopt-posix', 'getopt-gnu'.
37953         * modules/getopt-posix-tests: New file.
37954         * tests/test-getopt.c: New file.
37955         * tests/test-getopt.h: New file.
37956         * tests/test-getopt_long.h: New file.
37957
37958         New modules 'getopt-posix', 'getopt-gnu'.
37959         * modules/getopt-gnu: New file, renamed from modules/getopt.
37960         * modules/getopt-posix: New file.
37961         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37962         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37963         (gl_GETOPT): Remove macro.
37964         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37965         Disable the test against BSD systems that declare optreset. Test
37966         against mingw bug. Test against lack of support of optional arguments
37967         on many platforms.
37968         * doc/glibc-headers/getopt.texi: Update module name and list of
37969         relevant platforms.
37970         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37971         'getopt-gnu' and more portability problems.
37972         * NEWS: Mention the changes.
37973
37974 2009-08-12  Bruno Haible  <bruno@clisp.org>
37975
37976         Ensure that optarg etc. get declared by <unistd.h>.
37977         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37978         AC_USE_SYSTEM_EXTENSIONS.
37979         * modules/getopt (Depends-on): Add 'extensions'.
37980
37981 2009-08-12  Bruno Haible  <bruno@clisp.org>
37982
37983         Avoid test link errors.
37984         * modules/pipe-filter-ii-tests (Makefile.am): Define
37985         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37986         * modules/pipe-filter-gi-tests (Makefile.am): Define
37987         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37988         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37989
37990 2009-08-12  Bruno Haible  <bruno@clisp.org>
37991
37992         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37993         gl_GETOPT_SUBSTITUTE before.
37994         (gl_GETOPT): Use it.
37995         * m4/argp.m4 (gl_ARGP): Update.
37996         Reported by Sergey Poznyakoff.
37997
37998         * m4/getopt.m4: Reorder macros.
37999         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38000         (gl_GETOPT_SUBSTITUTE): Remove macro.
38001
38002 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38003
38004         Minor improvement in gitlog-to-changelog
38005
38006         * build-aux/gitlog-to-changelog: New option `--format' makes
38007         output format string configurable.
38008
38009 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38010
38011         Optimize exclude: use hash tables for non-wildcard patterns.
38012
38013         * lib/exclude.c: Include hash.h and mbuiter.h
38014         (struct exclude_pattern, exclude_segment): New data types.
38015         (struct exclude): Rewrite.
38016         (fnmatch_pattern_has_wildcards): New function.
38017         (new_exclude_segment, free_exclude_segment): New functions.
38018         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38019         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38020         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38021         * modules/exclude: Depend on hash and mbuiter.
38022
38023         * modules/exclude-tests: New file.
38024         * tests/test-exclude.c: New file.
38025         * tests/test-exclude1.sh: New file.
38026         * tests/test-exclude2.sh: New file.
38027         * tests/test-exclude3.sh: New file.
38028         * tests/test-exclude4.sh: New file.
38029         * tests/test-exclude5.sh: New file.
38030         * tests/test-exclude6.sh: New file.
38031         * tests/test-exclude7.sh: New file.
38032
38033 2009-08-12  Bruno Haible  <bruno@clisp.org>
38034
38035         Ensure that getopt() gets declared by <unistd.h>.
38036         * lib/unistd.in.h: Conditionally include getopt.h.
38037         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38038         Set GNULIB_UNISTD_H_GETOPT.
38039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38040         GNULIB_UNISTD_H_GETOPT.
38041         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38042
38043 2009-08-12  Bruno Haible  <bruno@clisp.org>
38044
38045         Clarify logic.
38046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38047         gl_replace_getopt instead of GETOPT_H.
38048
38049 2009-08-12  Bruno Haible  <bruno@clisp.org>
38050
38051         * m4/getopt.m4: Add comments.
38052
38053 2009-08-12  Bruno Haible  <bruno@clisp.org>
38054
38055         Disable multithread support by default on Cygwin 1.5.x.
38056         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38057         set gl_use_threads=no if not specified otherwise.
38058
38059 2009-08-11  Bruno Haible  <bruno@clisp.org>
38060
38061         Avoid compilation error on NetBSD 5.0.
38062         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38063         * tests/test-stdio.c: Likewise.
38064         * tests/test-stdlib.c: Likewise.
38065         * tests/test-string.c: Likewise.
38066         * tests/test-unistd.c: Likewise.
38067         Reported by Greg Troxel <gdt@ir.bbn.com>
38068         at <https://savannah.gnu.org/support/?106973>.
38069
38070 2009-08-11  Bruno Haible  <bruno@clisp.org>
38071
38072         * modules/dup2-tests (Depends-on): Remove close.
38073
38074         Undo 2009-07-19 commit.
38075         * modules/acl-tests (Depends-on): Remove close.
38076         * modules/binary-io-tests (Depends-on): Likewise.
38077         * modules/closein-tests (Depends-on): Likewise.
38078         * modules/flock-tests (Depends-on): Likewise.
38079         * modules/fsync-tests (Depends-on): Likewise.
38080         * modules/lseek-tests (Depends-on): Likewise.
38081         * modules/pipe-tests (Depends-on): Likewise.
38082         * modules/posix_spawn-tests (Depends-on): Likewise.
38083         * modules/posix_spawnp-tests (Depends-on): Likewise.
38084         * modules/stat-time-tests (Depends-on): Likewise.
38085         * modules/yesno-tests (Depends-on): Likewise.
38086
38087 2009-08-10  Bruno Haible  <bruno@clisp.org>
38088
38089         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38090
38091 2009-08-10  Bruno Haible  <bruno@clisp.org>
38092
38093         Fix a gcc warning.
38094         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38095
38096 2009-08-10  Bruno Haible  <bruno@clisp.org>
38097
38098         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38099         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38100         not only the first time.
38101         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38102         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38103         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38104         is 1, not only the the first time.
38105
38106 2009-08-10  Bruno Haible  <bruno@clisp.org>
38107
38108         Make it possible to use module 'gethostname' without module 'close'.
38109         * lib/unistd.in.h (close): Evoke a link error only if
38110         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38112         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38113         * modules/unistd (Makefile.am): Substitute
38114         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38115         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38116         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38117         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38118         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38119         * modules/sys_ioctl (Makefile.am): Substitute
38120         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38121         * modules/socket (configure.ac): On native Windows, set
38122         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38123         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38124         Reported by Sam Steingold <sds@gnu.org>.
38125
38126 2009-08-10  Bruno Haible  <bruno@clisp.org>
38127
38128         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38129         * modules/ioctl (configure.ac): Likewise.
38130
38131 2009-08-10  Bruno Haible  <bruno@clisp.org>
38132
38133         Avoid collision between gnulib wrapper and libintl wrapper.
38134         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38135         already defined in intl/printf.c.
38136         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38137         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38138
38139 2009-08-09  Bruno Haible  <bruno@clisp.org>
38140
38141         Make <sys/select.h> really self-contained, also on Solaris 10.
38142         * lib/sys_select.in.h: Include <string.h>.
38143         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38144         Solaris 10 problem.
38145         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38146         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38147         Reported by Jim Meyering.
38148
38149 2009-08-09  Bruno Haible  <bruno@clisp.org>
38150
38151         Avoid warnings from 'aclocal' that are due to a use of macro name
38152         AM_XGETTEXT_OPTION that is not defined in automake.
38153         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38154         automake.
38155         * modules/error (configure.ac): Likewise.
38156         * modules/propername (configure.ac): Likewise.
38157         * modules/vasprintf (configure.ac): Likewise.
38158         * modules/verror (configure.ac): Likewise.
38159         * modules/xprintf (configure.ac): Likewise.
38160         * modules/xvasprintf (configure.ac): Likewise.
38161
38162 2009-08-08  Bruno Haible  <bruno@clisp.org>
38163
38164         Avoid compilation error in C++ mode.
38165         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38166         Reported by Sam Steingold <sds@gnu.org>.
38167
38168 2009-08-08  Bruno Haible  <bruno@clisp.org>
38169
38170         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38171         for the various Unix platforms.
38172         * doc/posix-headers/limits.texi: Update platforms list regarding
38173         HOST_NAME_MAX.
38174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38175
38176 2009-08-07  Jim Meyering  <meyering@redhat.com>
38177
38178         selinux-at: fix typo in a comment
38179         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38180         Spotted by Paolo Bonzini.
38181
38182         selinux-at: remove redundant m4 code, add documentation
38183         * modules/selinux-at (configure.ac): Remove redundant code.
38184         LIB_SELINUX is already set via the dependent module, selinux-h.
38185         (Include): Add quotes around selinux-at.h.
38186         * lib/selinux-at.h: Add documentation.
38187         Reported by Bruno Haible in
38188         http://marc.info/?l=gnulib-bug&m=124958988300749
38189
38190 2009-08-07  Bruno Haible  <bruno@clisp.org>
38191
38192         Avoid link error on MacOS X 10.3 and 10.4.
38193         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38194         on non-ELF systems.
38195         * lib/argp-pv.c (argp_program_version): Likewise.
38196         Reported by Simon Josefsson.
38197
38198 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38199
38200         * tests/test-version-etc.sh: Use $EXEEXT.
38201
38202 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38203
38204         update-copyright: update documentation to point to maint.mk
38205         * build-aux/update-copyright: Here.
38206
38207 2009-08-06  Jim Meyering  <meyering@redhat.com>
38208
38209         maint.mk: support update-copyright-local
38210         * top/maint.mk (update-copyright-local): Define place-holder.
38211         (update-copyright): Depend on $(update-copyright-local).
38212
38213 2009-08-06  Jim Meyering  <meyering@redhat.com>
38214
38215         selinux-at: new module
38216         Initially written for coreutils, this module will soon be
38217         used by findutils, too.
38218         * MODULES.html.sh [Misc]: Add selinux-at.
38219         * lib/selinux-at.h: New file, from coreutils.
38220         * lib/selinux-at.c: Likewise.
38221         * modules/selinux-at: Likewise.
38222         (License): Change from LGPL to GPL, since it depends
38223         on the GPL'd openat module.
38224
38225         doc: update README
38226         * README: Remove references to cogito.
38227         Remove cvs-repo-updating instructions from 2007.
38228         Don't imply that CVS is better if you have limited disk space.
38229
38230 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38231
38232         update-copyright: support C-style comments
38233         * build-aux/update-copyright: Implement and document.
38234         * tests/test-update-copyright.sh: Test.
38235
38236 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38237
38238         update-copyright: support omitted "(C)"
38239         * build-aux/update-copyright: Implement and document.  Also,
38240         allow variable whitespace before "(C)".
38241         * tests/test-update-copyright.sh: Test.
38242
38243 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38244
38245         update-copyright: don't trip on non-FSF copyright statements
38246         * build-aux/update-copyright: Fix so that the first correctly
38247         formatted FSF copyright statement is recognized no matter what
38248         appears before it.  Update documentation.
38249         * tests/test-update-copyright.sh: Test that.
38250
38251 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38252
38253         update-copyright: clean up code a little
38254         * build-aux/update-copyright: Append "_re" to the name of any
38255         variable holding a regular expression.
38256         Replace "old" and "new" with "stmt" in variable names.
38257         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38258         handled correctly.
38259         Format code more consistently.
38260
38261 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38262
38263         update-copyright-tests: improve portability
38264         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38265         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38266
38267 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38268
38269         update-copyright: support @copyright{} and &copy;
38270         * build-aux/update-copyright: Implement and document.
38271         * tests/test-update-copyright.sh: Test.
38272
38273 2009-08-04  Jim Meyering  <meyering@redhat.com>
38274
38275         update-copyright-tests: correctly test EOL=\r\n handling
38276         * tests/test-update-copyright.sh: Put \r at the end of some lines
38277         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38278
38279         maint.mk: make update-copyright exclusion list more configurable
38280         * top/maint.mk (update-copyright): Default to excluding COPYING,
38281         but allow an override, in case someone does want to update that file.
38282
38283         maint.mk: don't update copyright date in COPYING
38284         * top/maint.mk (update-copyright): Exclude COPYING.
38285
38286         maint.mk: add a copyright-updating rule
38287         * top/maint.mk (update-copyright): New rule.
38288         Derived from coreutils/Makefile.am.
38289
38290         update-copyright: rename some variables
38291         * build-aux/update-copyright: Rename a few variables for clarity.
38292         Tweak syntax.  List Joel E. Denny as coauthor.
38293
38294 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38295
38296         update-copyright: fix bug for 2-digit last year and add tests
38297         * build-aux/update-copyright: Fix bug.
38298         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38299         specified.
38300         * modules/update-copyright-tests: New
38301         * tests/test-update-copyright.sh: New.
38302
38303 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38304
38305         update-copyright: handle leading tabs in line prefix
38306         * build-aux/update-copyright: Count leading tabs as 8 spaces
38307         when computing margin.  This helps with the formatting of
38308         ChangeLogs, for example.
38309         Fix documentation a little.
38310
38311 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38312
38313         update-copyright: support EOL=\r\n
38314         * build-aux/update-copyright: Implement that.
38315
38316 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38317
38318         update-copyright: automatically format copyright statements
38319         * build-aux/update-copyright: Implement that.
38320         Also, be a little more predictable and safer by always failing
38321         when the full copyright format is not perfectly recognized as an
38322         unbroken whole.  Discussed at
38323         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38324         Rewrite documentation.
38325
38326 2009-08-03  Bruno Haible  <bruno@clisp.org>
38327
38328         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38329
38330 2009-08-02  Bruno Haible  <bruno@clisp.org>
38331
38332         Tests for module 'uname'.
38333         * modules/uname-tests: New file.
38334         * tests/test-uname.c: New file.
38335
38336         New module 'uname'.
38337         * lib/uname.c: New file.
38338         * m4/uname.m4: New file.
38339         * modules/uname: New file.
38340         * doc/posix-functions/uname.texi: Mention the new module.
38341
38342 2009-08-02  Bruno Haible  <bruno@clisp.org>
38343
38344         Tests for module 'sys_utsname'.
38345         * modules/sys_utsname-tests: New file.
38346         * tests/test-sys_utsname.c: New file.
38347
38348         New module 'sys_utsname'.
38349         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38350         * m4/sys_utsname_h.m4: New file.
38351         * modules/sys_utsname: New file.
38352         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38353
38354 2009-08-02  Bruno Haible  <bruno@clisp.org>
38355
38356         Implicitly initialize the sockets library.
38357         * lib/gethostname.c: Include sockets.h.
38358         (rpl_gethostname): Invoke gl_sockets_startup.
38359         * lib/socket.c: Include sockets.h.
38360         (rpl_socket): Invoke gl_sockets_startup.
38361         * modules/gethostname (Depends-on): Add sockets.
38362         * modules/socket (Depends-on): Likewise.
38363         * tests/test-poll.c: Don't include sockets.h.
38364         (main): Don't invoke gl_sockets_startup.
38365         * tests/test-select.c: Don't include sockets.h.
38366         (main): Don't invoke gl_sockets_startup.
38367
38368 2009-08-02  Bruno Haible  <bruno@clisp.org>
38369
38370         Allow multiple calls to gl_sockets_startup.
38371         * lib/sockets.c (initialized_sockets_version): New variable.
38372         (gl_sockets_startup): Do nothing if already called for this or a higher
38373         version.
38374         (gl_sockets_cleanup): Reset initialized_sockets_version.
38375
38376 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38377
38378         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38379         different project/version.
38380
38381 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38382             Bruno Haible  <bruno@clisp.org>
38383
38384         Tests for module 'pipe-filter-gi'.
38385         * modules/pipe-filter-gi-tests: New file.
38386         * tests/test-pipe-filter-gi1.sh: New file.
38387         * tests/test-pipe-filter-gi1.c: New file.
38388         * tests/test-pipe-filter-gi2.sh: New file.
38389         * tests/test-pipe-filter-gi2-main.c: New file.
38390         * tests/test-pipe-filter-gi2-child.c: New file.
38391
38392         New module 'pipe-filter-gi'.
38393         * lib/pipe-filter-gi.c: New file.
38394         * modules/pipe-filter-gi: New file.
38395
38396 2009-08-02  Bruno Haible  <bruno@clisp.org>
38397             Paolo Bonzini  <bonzini@gnu.org>
38398
38399         Tests for module 'pipe-filter-ii'.
38400         * modules/pipe-filter-ii-tests: New file.
38401         * tests/test-pipe-filter-ii1.sh: New file.
38402         * tests/test-pipe-filter-ii1.c: New file.
38403         * tests/test-pipe-filter-ii2.sh: New file.
38404         * tests/test-pipe-filter-ii2-main.c: New file.
38405         * tests/test-pipe-filter-ii2-child.c: New file.
38406
38407         New module 'pipe-filter-ii'.
38408         * lib/pipe-filter.h: New file.
38409         * lib/pipe-filter-ii.c: New file.
38410         * lib/pipe-filter-aux.h: New file.
38411         * modules/pipe-filter-ii: New file.
38412
38413 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38414
38415         * lib/gc-libgcrypt.c: Change copyright to FSF.
38416         * lib/gc-gnulib.c: Likewise.
38417
38418 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38419
38420         * lib/gethostname.c: Include limits.h.
38421
38422 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38423             Bruno Haible  <bruno@clisp.org>
38424
38425         Ensure HOST_NAME_MAX as part of the gethostname module.
38426         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38427         define also HOST_NAME_MAX.
38428         * tests/test-gethostname.c: Include <limits.h>.
38429         (main): Check also HOST_NAME_MAX.
38430         * doc/posix-headers/limits.texi: Document the mingw problem.
38431
38432 2009-08-02  Bruno Haible  <bruno@clisp.org>
38433
38434         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38435         Add comments.
38436
38437 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38438
38439         * lib/gethostname.c: Add Windows wrapper.
38440         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38441         * modules/gethostname: Depend on sys_socket & errno, for also
38442         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38443         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38444
38445 2009-07-31  Jim Meyering  <meyering@redhat.com>
38446
38447         getloadavg: fix symbol name in comment
38448         * lib/getloadavg.c: Correct a typo I introduced when adding
38449         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38450         Matt Kraai spotted the problem.
38451
38452 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38453
38454         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38455         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38456         code also if ! defined N_NAME_POINTER.
38457         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38458         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38459         but the n_name member is a 12-byte array.
38460
38461 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38462
38463         update-copyright: generalize comment handling
38464         * build-aux/update-copyright: Handle copyright statements
38465         within more comment styles.
38466         Document usage.
38467         Report any file with an external copyright holder or parse failure.
38468
38469 2009-07-29  Jim Meyering  <meyering@redhat.com>
38470
38471         mktime: correct setting of REPLACE_MKTIME
38472         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38473
38474         update-copyright: new module
38475         * modules/update-copyright: New file.
38476         * build-aux/update-copyright: New file.
38477         * MODULES.html.sh (maint+release support): Add update-copyright.
38478
38479 2009-07-27  Bruno Haible  <bruno@clisp.org>
38480
38481         Fix compilation error when <ctime> is used and mktime is replaced.
38482         * lib/time.in.h (mktime): New declaration.
38483         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38484         REPLACE_MKTIME instead of defining mktime in config.h.
38485         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38486         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38487         Reported by Ross McFarland <rwmcfa1@neces.com>.
38488
38489 2009-07-27  Bruno Haible  <bruno@clisp.org>
38490
38491         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38492         Reported by Matt Kraai <mkraai@beckman.com>.
38493
38494 2009-07-25  Jim Meyering  <meyering@redhat.com>
38495
38496         maint.mk: avoid warnings about missing files
38497         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38498         diagnostic when .prev-version does not exist.
38499         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38500         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38501         nonexistent cfg.mk.
38502         Suggestions from Simon Josefsson.
38503
38504 2009-07-25  Bruno Haible  <bruno@clisp.org>
38505
38506         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38507         defined as macros. Needed on QNX 6.4.1.
38508         Reported by Matt Kraai <mkraai@beckman.com>.
38509
38510 2009-07-23  Jim Meyering  <meyering@redhat.com>
38511
38512         maint.mk: invoke "make dist" with a working value of XZ_OPT
38513         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38514
38515 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38516
38517         Make fseeko.c compile on QNX.
38518         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38519
38520 2009-07-22  Peter Simons  <simons@cryp.to>
38521
38522         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38523         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38524         * lib/md4.h: Likewise.
38525         * lib/md5.h: Likewise.
38526         * lib/sha1.h: Likewise.
38527         * lib/sha256.h: Likewise.
38528         * lib/sha512.h: Likewise.
38529
38530         tests-sha1: don't assign literal string to 'char *' variable
38531         * tests/test-sha1.c (main): Declare locals with "const" to match
38532         attributes of the right hand side.
38533
38534 2009-07-21  Eric Blake  <ebb9@byu.net>
38535
38536         dup2: fix more mingw problems
38537         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38538         fd to itself.
38539         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38540         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38541         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38542         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38543         care of mingw bugs.
38544
38545 2009-07-21  Jim Meyering  <meyering@redhat.com>
38546
38547         vc-list-files: avoid failure when /bin/sh is dash
38548         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38549         On some Debian based systems, /bin/sh is a symlink to dash, and running
38550         this command would omit the "/" following each 'tests' prefix:
38551           dash -x build-aux/vc-list-files -C . tests
38552         That is because bash and dash work differently:
38553           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38554           bash ok
38555           dash odd
38556
38557 2009-07-21  Eric Blake  <ebb9@byu.net>
38558
38559         dup2-tests: test previous patch
38560         * modules/dup2-tests: New file.
38561         * tests/test-dup2.c: Likewise.
38562         * tests/test-open.c (main): Avoid unspecified behavior.
38563         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38564         test.
38565
38566         dup2: work around mingw and cygwin 1.5 bug
38567         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38569         * modules/unistd (Makefile.am): Substitute it.
38570         * lib/unistd.in.h (dup2): Declare the replacement.
38571         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38572         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38573         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38574         * modules/execute (Depends-on): Add dup2.
38575         * modules/fseterr (Depends-on): Likewise.
38576         * modules/pipe (Depends-on): Likewise.
38577         * modules/posix_spawn-internal (Depends-on): Likewise.
38578
38579 2009-07-21  Bruno Haible  <bruno@clisp.org>
38580
38581         * modules/.gitattributes: New file.
38582
38583 2009-07-20  Bruno Haible  <bruno@clisp.org>
38584
38585         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38586         (main): Use it.
38587
38588 2009-07-20  Eric Blake  <ebb9@byu.net>
38589
38590         test-pipe: make a bit more robust.
38591         * tests/test-pipe.c (myerr): Allow error messages regardless of
38592         what we do to stderr.
38593         (test_pipe): Rearrange to avoid deadlock.
38594         (child_main): Try a larger read, to ensure we avoided deadlock.
38595         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38596         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38597         if misused.
38598
38599 2009-07-19  Jim Meyering  <meyering@redhat.com>
38600
38601         fts: avoid false-positive cycle-detection
38602         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38603         for each new command line argument.
38604
38605 2009-07-19  Bruno Haible  <bruno@clisp.org>
38606
38607         Fix build error on mingw with the modules sys_select and unistd.
38608         * modules/acl-tests (Depends-on): Add close.
38609         * modules/binary-io-tests (Depends-on): Likewise.
38610         * modules/closein-tests (Depends-on): Likewise.
38611         * modules/flock-tests (Depends-on): Likewise.
38612         * modules/fsync-tests (Depends-on): Likewise.
38613         * modules/lseek-tests (Depends-on): Likewise.
38614         * modules/pipe-tests (Depends-on): Likewise.
38615         * modules/posix_spawn-tests (Depends-on): Likewise.
38616         * modules/posix_spawnp-tests (Depends-on): Likewise.
38617         * modules/stat-time-tests (Depends-on): Likewise.
38618         * modules/yesno-tests (Depends-on): Likewise.
38619
38620 2009-07-19  Bruno Haible  <bruno@clisp.org>
38621
38622         Unify conditionals.
38623         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38624         macros, not at the compiler macros.
38625         * lib/pipe.c: Likewise.
38626         * lib/execute.c: Likewise.
38627         * lib/spawni.c: Likewise.
38628
38629 2009-07-19  Bruno Haible  <bruno@clisp.org>
38630
38631         Fix handling of closed stdin/stdout/stderr on mingw.
38632         * lib/w32spawn.h: Include unistd.h.
38633         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38634         file descriptor with O_NOINHERIT flag.
38635         (fd_safer_noinherit): New function, based on fd-safer.c.
38636         (dup_safer_noinherit): New function, based on dup-safer.c.
38637         (undup_safer_noinherit): New function.
38638         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38639         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38640         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38641         instead of fd_safer.
38642         * tests/test-pipe.c: Include <windows.h>.
38643         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38644         result.
38645
38646         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38647         from main.
38648         (test_pipe): Pass an extra argument for disambiguation.
38649         (main): Invoke parent_main or child_main.
38650
38651         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38652         consistently.
38653
38654 2009-07-18  Eric Blake  <ebb9@byu.net>
38655
38656         test-pipe: fix mingw build
38657         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38658
38659 2009-07-18  Bruno Haible  <bruno@clisp.org>
38660
38661         * modules/pipe-tests (Makefile.am): Fix typo.
38662
38663 2009-07-18  Eric Blake  <ebb9@byu.net>
38664
38665         error: fix mingw build
38666         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38667         Reported by Bruno Haible.
38668
38669         error: avoid undefined use of stdout
38670         * lib/error.c (error, error_at_line): Check that fd 1 is open
38671         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38672         is handling faults and the close_stdout module wants to report the
38673         detection of closed stdout as an error.
38674
38675 2009-07-17  Eric Blake  <ebb9@byu.net>
38676
38677         pipe: be robust in face of closed fds
38678         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38679         should cause child to misbehave.
38680         * modules/pipe-tests: New module.
38681         * tests/test-pipe.c: New file.
38682         * tests/test-pipe.sh: New file.
38683         Reported by Akim Demaille.
38684
38685 2009-07-14  Bruno Haible  <bruno@clisp.org>
38686
38687         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38688         Reported by anonymous kc.
38689
38690 2009-07-07  Jim Meyering  <meyering@redhat.com>
38691
38692         maint.mk: don't look for translatable strings in *.m4 or *.mk
38693         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38694         when searching for translatable strings.
38695
38696 2009-07-05  Jim Meyering  <meyering@redhat.com>
38697
38698         remove superfluous parentheses in STREQ definition
38699         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38700         * lib/getugroups.c (STREQ): Likewise.
38701         * lib/fnmatch.c (STREQ): Likewise.
38702         Spotted by Bruno Haible.
38703
38704 2009-07-04  Jim Meyering  <meyering@redhat.com>
38705
38706         argv-iter: new module
38707         * MODULES.html.sh: Add argv-iter.
38708         * lib/argv-iter.c, lib/argv-iter.h: New files.
38709         * modules/argv-iter: New file.
38710         * modules/argv-iter-tests: New file.
38711         * tests/test-argv-iter.c: Test it.
38712
38713 2009-07-04  Bruno Haible  <bruno@clisp.org>
38714
38715         Fix assertion.
38716         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38717         contains more exact copies of a given entry than file2, leave the extra
38718         copies unpaired rather than aborting.
38719         Reported by Eric Blake.
38720
38721 2009-07-02  Bruno Haible  <bruno@clisp.org>
38722
38723         Speedup git-merge-changelog for git cherry-pick.
38724         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38725         (entries_mapping_get): New function, extracted from compute_mapping.
38726         (entries_mapping_reverse_get): New function.
38727         (compute_mapping): Add a 'full' argument. Return the result in a
38728         'struct entries_mapping'.
38729         (main): Update. Access the mappings through entries_mapping_get.
38730         Reported by Eric Blake.
38731
38732 2009-07-02  Bruno Haible  <bruno@clisp.org>
38733
38734         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38735         best_i.
38736
38737 2009-07-02  Bruno Haible  <bruno@clisp.org>
38738
38739         Speed up approximate search for matching ChangeLog entries.
38740         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38741         argument. Call fstrcmp_bounded instead of fstrcmp.
38742         (compute_mapping, try_split_merged_entry, main): Update callers.
38743
38744 2009-07-02  Bruno Haible  <bruno@clisp.org>
38745
38746         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38747
38748 2009-06-30  Bruno Haible  <bruno@clisp.org>
38749
38750         Reduce the number of uc_is_cased calls.
38751         * lib/unicase.h (casing_suffix_context_t): Add
38752         'first_char_except_ignorable' field.
38753         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38754         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38755         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38756         Update initializer.
38757         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38758         case-ignorable characters.
38759         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38760         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38761         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38762         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38763         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38764
38765 2009-06-30  Bruno Haible  <bruno@clisp.org>
38766
38767         Tests for module 'unicase/ignorable'.
38768         * modules/unicase/ignorable-tests: New file.
38769         * tests/unicase/test-ignorable.c: New file, generated by
38770         gen-uni-tables.
38771
38772         Tests for module 'unicase/cased'.
38773         * modules/unicase/cased-tests: New file.
38774         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38775         * tests/unicase/test-predicate-part1.h: New file, derived from
38776         tests/unictype/test-predicate-part1.h.
38777         * tests/unicase/test-predicate-part2.h: New file, same as
38778         tests/unictype/test-predicate-part2.h.
38779
38780         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38781         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38782         (output_casing_properties): New function.
38783         (main): Call it.
38784         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38785         * lib/unicase/cased.c: Include unictype/bitmap.h.
38786         (uc_is_cased): Define through a bitmap lookup.
38787         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38788         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38789         (uc_is_case_ignorable): Define through a bitmap lookup.
38790         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38791         lib/unictype/bitmap.h.
38792         (Depends-on): Add inline. Clean up.
38793         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38794         lib/unictype/bitmap.h.
38795         (Depends-on): Add inline. Clean up.
38796         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38797         recognition.
38798         * tests/unicase/test-u16-tolower.c (main): Likewise.
38799         * tests/unicase/test-u32-tolower.c (main): Likewise.
38800
38801 2009-06-30  Bruno Haible  <bruno@clisp.org>
38802
38803         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38804         * lib/unicase/u16-casemap.c: Likewise.
38805         * lib/unicase/u32-casemap.c: Likewise.
38806
38807 2009-06-29  Bruno Haible  <bruno@clisp.org>
38808
38809         Define u32_casefold as a wrapper around u32_ct_casefold.
38810         * lib/unicase/u32-casefold.c: Update.
38811         * modules/unicase/u32-casefold (Depends-on): Add
38812         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38813         unicase/empty-suffix-context. Clean up.
38814
38815         Define u16_casefold as a wrapper around u16_ct_casefold.
38816         * lib/unicase/u16-casefold.c: Update.
38817         * modules/unicase/u16-casefold (Depends-on): Add
38818         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38819         unicase/empty-suffix-context. Clean up.
38820
38821         Define u8_casefold as a wrapper around u8_ct_casefold.
38822         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38823         * lib/unicase/u8-casefold.c: Update.
38824         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38825         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38826
38827         Define u32_totitle as a wrapper around u32_ct_totitle.
38828         * lib/unicase/u32-totitle.c: Update.
38829         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38830         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38831
38832         Define u16_totitle as a wrapper around u16_ct_totitle.
38833         * lib/unicase/u16-totitle.c: Update.
38834         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38835         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38836
38837         Define u8_totitle as a wrapper around u8_ct_totitle.
38838         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38839         functions.
38840         (FUNC): Delegate to U_CT_TOTITLE.
38841         * lib/unicase/u8-totitle.c: Update.
38842         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38843         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38844
38845         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38846         invocation.
38847         * modules/unicase/u32-tolower (Depends-on): Add
38848         unicase/empty-prefix-context, unicase/empty-suffix-context.
38849
38850         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38851         invocation.
38852         * modules/unicase/u16-tolower (Depends-on): Add
38853         unicase/empty-prefix-context, unicase/empty-suffix-context.
38854
38855         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38856         * modules/unicase/u8-tolower (Depends-on): Add
38857         unicase/empty-prefix-context, unicase/empty-suffix-context.
38858
38859         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38860         invocation.
38861         * modules/unicase/u32-toupper (Depends-on): Add
38862         unicase/empty-prefix-context, unicase/empty-suffix-context.
38863
38864         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38865         invocation.
38866         * modules/unicase/u16-toupper (Depends-on): Add
38867         unicase/empty-prefix-context, unicase/empty-suffix-context.
38868
38869         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38870         * modules/unicase/u8-toupper (Depends-on): Add
38871         unicase/empty-prefix-context, unicase/empty-suffix-context.
38872
38873         New module 'unicase/u32-ct-casefold'.
38874         * lib/unicase/u32-ct-casefold.c: New file.
38875         * modules/unicase/u32-ct-casefold: New file.
38876
38877         New module 'unicase/u16-ct-casefold'.
38878         * lib/unicase/u16-ct-casefold.c: New file.
38879         * modules/unicase/u16-ct-casefold: New file.
38880
38881         New module 'unicase/u8-ct-casefold'.
38882         * lib/unicase/u8-ct-casefold.c: New file.
38883         * lib/unicase/u-ct-casefold.h: New file, derived from
38884         lib/unicase/u-casefold.h.
38885         * modules/unicase/u8-ct-casefold: New file.
38886
38887         New module 'unicase/u32-ct-totitle'.
38888         * lib/unicase/u32-ct-totitle.c: New file.
38889         * modules/unicase/u32-ct-totitle: New file.
38890
38891         New module 'unicase/u16-ct-totitle'.
38892         * lib/unicase/u16-ct-totitle.c: New file.
38893         * modules/unicase/u16-ct-totitle: New file.
38894
38895         New module 'unicase/u8-ct-totitle'.
38896         * lib/unicase/u8-ct-totitle.c: New file.
38897         * lib/unicase/u-ct-totitle.h: New file, derived from
38898         lib/unicase/u-totitle.h.
38899         * modules/unicase/u8-ct-totitle: New file.
38900
38901         New module 'unicase/u32-ct-tolower'.
38902         * lib/unicase/u32-ct-tolower.c: New file.
38903         * modules/unicase/u32-ct-tolower: New file.
38904
38905         New module 'unicase/u16-ct-tolower'.
38906         * lib/unicase/u16-ct-tolower.c: New file.
38907         * modules/unicase/u16-ct-tolower: New file.
38908
38909         New module 'unicase/u8-ct-tolower'.
38910         * lib/unicase/u8-ct-tolower.c: New file.
38911         * modules/unicase/u8-ct-tolower: New file.
38912
38913         New module 'unicase/u32-ct-toupper'.
38914         * lib/unicase/u32-ct-toupper.c: New file.
38915         * modules/unicase/u32-ct-toupper: New file.
38916
38917         New module 'unicase/u16-ct-toupper'.
38918         * lib/unicase/u16-ct-toupper.c: New file.
38919         * modules/unicase/u16-ct-toupper: New file.
38920
38921         New module 'unicase/u8-ct-toupper'.
38922         * lib/unicase/u8-ct-toupper.c: New file.
38923         * modules/unicase/u8-ct-toupper: New file.
38924
38925         Add context arguments to u*_casemap functions.
38926         * lib/unicase/unicasemap.h: Include unicase.h.
38927         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38928         suffix_context arguments.
38929         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38930         functions.
38931         (FUNC): Add prefix_context and suffix_context arguments. Use
38932         uc_is_cased and uc_is_case_ignorable.
38933         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38934         * lib/unicase/u16-casemap.c: Likewise.
38935         * lib/unicase/u32-casemap.c: Likewise.
38936         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38937         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38938         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38939         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38940         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38941         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38942
38943         New module 'unicase/u32-suffix-context'.
38944         * lib/unicase/u32-suffix-context.c: New file.
38945         * modules/unicase/u32-suffix-context: New file.
38946
38947         New module 'unicase/u16-suffix-context'.
38948         * lib/unicase/u16-suffix-context.c: New file.
38949         * modules/unicase/u16-suffix-context: New file.
38950
38951         New module 'unicase/u8-suffix-context'.
38952         * lib/unicase/u8-suffix-context.c: New file.
38953         * lib/unicase/u-suffix-context.h: New file.
38954         * modules/unicase/u8-suffix-context: New file.
38955
38956         New module 'unicase/empty-suffix-context'.
38957         * lib/unicase/empty-suffix-context.c: New file.
38958         * modules/unicase/empty-suffix-context: New file.
38959
38960         New module 'unicase/u32-prefix-context'.
38961         * lib/unicase/u32-prefix-context.c: New file.
38962         * modules/unicase/u32-prefix-context: New file.
38963
38964         New module 'unicase/u16-prefix-context'.
38965         * lib/unicase/u16-prefix-context.c: New file.
38966         * modules/unicase/u16-prefix-context: New file.
38967
38968         New module 'unicase/u8-prefix-context'.
38969         * lib/unicase/u8-prefix-context.c: New file.
38970         * lib/unicase/u-prefix-context.h: New file.
38971         * lib/unicase/context.h: New file.
38972         * modules/unicase/u8-prefix-context: New file.
38973
38974         New module 'unicase/empty-prefix-context'.
38975         * lib/unicase/empty-prefix-context.c: New file.
38976         * modules/unicase/empty-prefix-context: New file.
38977
38978         New module 'unicase/ignorable'.
38979         * lib/unicase/ignorable.c: New file.
38980         * modules/unicase/ignorable: New file.
38981
38982         New module 'unicase/cased'.
38983         * lib/unicase/caseprop.h: New file.
38984         * lib/unicase/cased.c: New file.
38985         * modules/unicase/cased: New file.
38986
38987         New functions for case mapping of substrings.
38988         * lib/unicase.h (casing_prefix_context_t): New type.
38989         (unicase_empty_prefix_context): New variable.
38990         (u8_casing_prefix_context, u16_casing_prefix_context,
38991         u32_casing_prefix_context, u8_casing_prefixes_context,
38992         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38993         declarations.
38994         (casing_suffix_context_t): New type.
38995         (unicase_empty_suffix_context): New variable.
38996         (u8_casing_suffix_context, u16_casing_suffix_context,
38997         u32_casing_suffix_context, u8_casing_suffixes_context,
38998         u16_casing_suffixes_context, u32_casing_suffixes_context,
38999         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39000         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39001         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39002         declarations.
39003
39004 2009-06-28  Jim Meyering  <meyering@redhat.com>
39005
39006         boostrap: indent only with spaces
39007         * build-aux/bootstrap: Indent only with spaces, never TABs.
39008
39009         bootstrap: split long lines
39010         * build-aux/bootstrap: Keep line length < 80.
39011
39012         bootstrap: sync from coreutils
39013         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39014         just as autoreconf does.  Verify a list of prerequisite
39015         package-name,version-number pairs if defined in bootstrap.conf.
39016         Refer to README-prereq, if prerequisites are not satisfied.
39017
39018 2009-06-27  Eric Blake  <ebb9@byu.net>
39019
39020         tests: add test for bogus NULL definition
39021         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39022         * tests/test-stdlib.c: Likewise.
39023         * tests/test-string.c: Likewise.
39024         * tests/test-locale.c: Likewise.
39025         * tests/test-unistd.c: Likewise.
39026         * modules/stdio-tests (Depends-on): Add verify.
39027         * modules/stdlib-tests (Depends-on): Likewise.
39028         * modules/string-tests (Depends-on): Likewise.
39029         * modules/locale-tests (Depends-on): Likewise.
39030         * modules/unistd-tests (Depends-on): Likewise.
39031
39032 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39033
39034         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39035         self-explaining comment.
39036         * m4/selinux-selinux-h: Update serial.
39037         (gl_LIBSELINUX): New macro, adding a warning for missing development
39038         packages to code extracted from...
39039         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39040         Add warning for missing development packages here, too.
39041
39042 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39043
39044         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39045
39046 2009-06-25  Eric Blake  <ebb9@byu.net>
39047
39048         version-etc: fix regression
39049         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39050         gcc.
39051         (version_etc): Use it, to catch bugs with trailing NULL.
39052         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39053         (version_etc_va): Fix logic bug.
39054         * modules/version-etc-tests: Add test.
39055         * tests/test-version-etc.c: New file.
39056         * tests/test-version-etc.sh: Likewise.
39057
39058 2009-06-25  Sam Steingold  <sds@gnu.org>
39059
39060         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39061         mbtowc declaration.
39062
39063 2009-06-25  Eric Blake  <ebb9@byu.net>
39064
39065         fpurge: migrate into <stdio.h>
39066         * lib/fpurge.h: Delete...
39067         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39068         * lib/fpurge.c (fpurge): Change declaring header.
39069         * modules/fpurge (Files): Drop deleted file.
39070         (Depends-on): Add stdio.
39071         (configure.ac): Set witness.
39072         * modules/stdio (Makefile.am): Support fpurge macros.
39073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39074         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39075         * lib/fflush.c: Update client.
39076         * tests/test-fpurge.c: Likewise.
39077         * NEWS: Mention the change.
39078
39079 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39080
39081         * lib/argp-version-etc.c (program_authors): Add const
39082         qualifier.
39083         * lib/version-etc.c: Fix typos in the comments.
39084         * modules/argp-version-etc: Depends on version-etc.
39085
39086 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39087
39088         argp-version-etc: new module.
39089
39090         * lib/argp-version-etc.c: New file.
39091         * lib/argp-version-etc.h: New file.
39092         * modules/argp-version-etc: New file.
39093         * modules/argp-version-etc-tests: New file.
39094         * tests/test-argp-version-etc.c: New test.
39095         * tests/test-argp-version-etc-1.sh: New test.
39096
39097 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39098
39099         Provide additional interfaces and documentation for version-etc
39100         module.
39101
39102         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39103         interfaces.
39104         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39105         prototypes.
39106
39107 2009-06-24  Bruno Haible  <bruno@clisp.org>
39108
39109         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39110         HAVE_LIB${NAME} macro.
39111         Reported by Sam Steingold <sds@gnu.org>.
39112
39113 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39114
39115         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39116         needed.
39117
39118 2009-06-21  Bruno Haible  <bruno@clisp.org>
39119
39120         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39121         work.
39122         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39123         together with LIB${NAME}, LTLIB${NAME}.
39124         Reported by Sam Steingold <sds@gnu.org>.
39125
39126 2009-06-20  Jim Meyering  <meyering@redhat.com>
39127
39128         tests: make sc_require_test_exit_idiom more generic
39129         * top/maint.mk (Exit_witness_file): New overridable variable.
39130         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39131         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39132
39133 2009-06-19  Jim Meyering  <meyering@redhat.com>
39134
39135         hash: reverse order of src/dst parameters in an internal interface
39136         * lib/hash.c (transfer_entries): Reverse order of parameters to
39137         put DST before SRC.  Adjust callers.
39138
39139         tests: test-hash: avoid wholesale duplication
39140         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39141         Instead, use a loop and add a single conditional.
39142
39143         tests: test-hash: allow seed selection via a command line argument
39144         * tests/test-hash.c (get_seed): New function.
39145         (main): Use it.
39146
39147 2009-06-19  Eric Blake  <ebb9@byu.net>
39148
39149         hash: avoid memory leak on allocation failure
39150         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39151         failure.  Factor repeated algorithm...
39152         (transfer_entries): ...into new helper routine.
39153         (hash_delete): React to hash_rehash return value.
39154
39155         hash: reduce memory pressure in hash_rehash no-op case
39156         * lib/hash.c (next_prime): Avoid overflow.
39157         (hash_initialize): Factor bucket size computation...
39158         (compute_bucket_size): ...into new helper function.
39159         (hash_rehash): Use new function and open coding to reduce memory
39160         pressure, and avoid a memory leak in USE_OBSTACK code.
39161         Reported by Jim Meyering.
39162
39163 2009-06-18  Eric Blake  <ebb9@byu.net>
39164
39165         hash: make rotation more obvious
39166         * modules/hash (Depends-on): Add bitrotate and stdint.
39167         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39168         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39169         (SIZE_MAX): Rely on headers for definition.
39170         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39171         (raw_hasher): Use rotr_sz.
39172         Suggested by Jim Meyering.
39173
39174         hash: fix memory leak in last patch
39175         * lib/hash.c (hash_rehash): Avoid memory leak.
39176
39177         hash: avoid no-op rehashing
39178         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39179
39180         hash: provide default callback functions
39181         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39182         (hash_initialize): Use them as defaults.
39183         * tests/test-hash.c (main): Test this.
39184
39185         hash: minor optimization
39186         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39187         when possible.
39188         (hash_initialize): Document this promise.
39189         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39190         * tests/test-hash.c (hash_compare_strings): Test this.
39191
39192 2009-06-18  Bruno Haible  <bruno@clisp.org>
39193
39194         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39195         going to be replaced anyway.
39196
39197 2009-06-18  Bruno Haible  <bruno@clisp.org>
39198
39199         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39200         in one place.
39201         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39202         be replaced anyway.
39203
39204 2009-06-18  Eric Blake  <ebb9@byu.net>
39205
39206         hash: check for resize before insertion
39207         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39208         threshold before insertion, so that a pathological hash_rehash
39209         that fills every bucket can still trigger another rehash.
39210
39211 2009-06-18  Jim Meyering  <meyering@redhat.com>
39212
39213         hash-tests: add a loop around the small tests
39214         * tests/test-hash.c (main): Repeat small tests with selected
39215         small initial table sizes.
39216
39217 2009-06-17  Eric Blake  <ebb9@byu.net>
39218
39219         hash: minor cleanups
39220         * lib/hash.h (hash_entry): Make opaque, by moving...
39221         * lib/hash.c (hash_entry): ...here.
39222         (hash_insert): Clarify restrictions on what can be inserted.
39223         (hash_get_next): Clarify when it is safe to remove an element
39224         during traversal.
39225         (check_tuning): Skip verification when tuning is known safe.
39226         (hash_initialize): Clarify restrictions on tuning.
39227
39228 2009-06-17  Jim Meyering  <jim@meyering.net>
39229         and Eric Blake  <ebb9@byu.net>
39230
39231         hash-tests: new module
39232         * modules/hash-tests: New file.
39233         * tests/test-hash.c: New file.
39234
39235 2009-06-17  Eric Blake  <ebb9@byu.net>
39236
39237         strstr-simple: document new module
39238         * MODULES.html.sh: Document new module.
39239
39240         strstr, strcasestr: replace on platforms with broken memchr
39241         * modules/strstr: Split into...
39242         * modules/strstr-simple: ...new module that does not care about
39243         performance, but does care about glibc bug.
39244         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39245         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39246         if platform memchr is broken, per Debian bug 521737.
39247         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39248         memchr.
39249         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39250         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39251         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39252         * modules/mountlist (Depends-on): Add strstr-simple.
39253         * modules/gen-uni-tables (Depends-on): Likewise.
39254         * modules/argz (Depends-on): Add strstr.
39255
39256 2009-06-17  Bruno Haible  <bruno@clisp.org>
39257
39258         * modules/posix_spawn-internal (Depends-on): Add errno.
39259
39260 2009-06-17  Bruno Haible  <bruno@clisp.org>
39261
39262         Define missing ESTALE on Interix 3.5.
39263         * lib/errno.in.h (ESTALE): Assign a value if missing.
39264         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39265         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39266         missing.
39267         * doc/posix-headers/errno.texi: Mention the Interix bug.
39268         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39269
39270 2009-06-15  Eric Blake  <ebb9@byu.net>
39271
39272         memchr, memchr2: add valgrind exception
39273         * lib/memchr.valgrind: New file.
39274         * lib/memchr2.valgrind: New file.
39275         * modules/memchr (Files): Distribute valgrind file.
39276         * modules/memchr2 (Files): Likewise.
39277
39278         docs: memchr is no longer obsolete
39279         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39280         * lib/string.in.h (memchr): Simplify logic.
39281
39282 2009-06-14  Jim Meyering  <meyering@redhat.com>
39283
39284         link-follow: fix the "checking..." message to not mention trailing slash
39285         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39286         never considered trailing slashes.
39287
39288 2009-06-14  Bruno Haible  <bruno@clisp.org>
39289
39290         * m4/memchr.m4: Mention also the bug on IA-64.
39291         * doc/posix-functions/memchr.texi: Likewise.
39292
39293 2009-06-12  Eric Blake  <ebb9@byu.net>
39294
39295         memchr: detect broken x86_64 and alpha implementations
39296         * modules/memchr-tests (Depends-on): Move mmap detection...
39297         * modules/memchr (Depends-on): ...here.
39298         (configure.ac): Set indicator.
39299         * lib/string.in.h (memchr): Declare replacement.
39300         * modules/string (Makefile.am): Trigger replacement.
39301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39302         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39303         bugs.
39304         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39305         * modules/getpagesize (License): Relax license.
39306
39307 2009-06-11  Bruno Haible  <bruno@clisp.org>
39308
39309         * lib/idpriv.h: Add more references.
39310
39311 2009-06-08  Bruno Haible  <bruno@clisp.org>
39312
39313         Tests for module 'idpriv-droptemp'.
39314         * modules/idpriv-droptemp-tests: New file.
39315         * tests/test-idpriv-droptemp.sh: New file.
39316         * tests/test-idpriv-droptemp.su.sh: New file.
39317         * tests/test-idpriv-droptemp.c: New file.
39318
39319         New module 'idpriv-droptemp'.
39320         * lib/idpriv-droptemp.c: New file.
39321         * modules/idpriv-droptemp: New file.
39322
39323 2009-06-08  Bruno Haible  <bruno@clisp.org>
39324
39325         Tests for module 'idpriv-drop'.
39326         * modules/idpriv-drop-tests: New file.
39327         * tests/test-idpriv-drop.sh: New file.
39328         * tests/test-idpriv-drop.su.sh: New file.
39329         * tests/test-idpriv-drop.c: New file.
39330
39331         New module 'idpriv-drop'.
39332         * lib/idpriv.h: New file.
39333         * lib-idpriv-drop.c: New file.
39334         * m4/idpriv.m4: New file.
39335         * modules/idpriv-drop: New file.
39336
39337 2009-06-08  Bruno Haible  <bruno@clisp.org>
39338
39339         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39340         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39341         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39342         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39343         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39344         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39345         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39346
39347 2009-06-08  Eric Blake  <ebb9@byu.net>
39348
39349         test-strstr: use memory fence, when possible
39350         * tests/test-strstr.c (main): Use memory fence, in order to be
39351         more likely to trigger Debian bug 521737.
39352         * modules/strstr-tests (Files): Pull in additional files.
39353
39354         memchr: no longer obsolete, for wider field testing
39355         * modules/memchr (Status, Notice): Delete, this module is no
39356         longer obsolete.
39357         * modules/vasnprintf (Depends-on): Add memchr.
39358
39359 2009-06-07  Jim Meyering  <meyering@redhat.com>
39360
39361         hash: declare some functions with the warn_unused_result attribute
39362         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39363
39364 2009-06-07  Bruno Haible  <bruno@clisp.org>
39365
39366         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39367         Reported by Eric Blake.
39368
39369 2009-06-06  Eric Blake  <ebb9@byu.net>
39370
39371         test-alignof: fix typo with long double
39372         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39373         compiler error.
39374
39375 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39376
39377         Escape non-texinfo { and }s.
39378         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39379         markup error.
39380
39381 2009-06-04  Jim Meyering  <meyering@redhat.com>
39382
39383         gitlog-to-changelog: don't infloop on an empty commit log
39384         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39385         Reported by Boris Petersen <transacid@centerim.org>.
39386
39387 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39388
39389         version-etc: extend for packagers
39390         Add three new configure options, intended for packagers:
39391           --with-packager="packager name"
39392           --with-packager-version="packager-specific version"
39393           --with-packager-bug-reports="packager bug reporting"
39394         An example with coreutils:
39395           $ ./configure \
39396             --with-packager=Gentoo \
39397             --with-packager-bug-report=http://bugs.gentoo.org/ \
39398             --with-packager-version="patchset 1.6"
39399           $ ./src/ls --version | head -n2
39400           ls (GNU coreutils) 7.1-dirty
39401           Packaged by Gentoo (patchset 1.6)
39402         Note that the bug reporting info via --help doesn't show up because
39403         coreutils uses its own custom emit_bug_reporting_address() implementation
39404         in src/system.h.  If it didn't, it'd look like:
39405           $ ./src/ls --help | tail -n4
39406           Report bugs to <bug-coreutils@gnu.org>.
39407           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39408           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39409           General help using GNU software: <http://www.gnu.org/gethelp/>.
39410         * lib/version-etc.c: Print new information, if provided.
39411         * m4/version-etc.m4: New file.
39412         * modules/version-etc (Files): Add m4/version-etc.m4.
39413         (configure.ac): Add gl_VERSION_ETC.
39414
39415 2009-05-31  Bruno Haible  <bruno@clisp.org>
39416
39417         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39418         and 'int64_t'.
39419         * modules/alignof-tests (Dependencies): Add stdint.
39420         Reported by Eric Blake.
39421
39422 2009-05-31  Bruno Haible  <bruno@clisp.org>
39423
39424         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39425         restriction due to compiler bugs.
39426         Reported by Eric Blake.
39427
39428 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39429             Bruno Haible  <bruno@clisp.org>
39430
39431         Fix test-alignof failure.
39432         * lib/alignof.h (alignof_slot): New macro.
39433         (alignof_type): New macro, with the same semantics as the previous
39434         'alignof'.
39435         (alignof): Alias to alignof_slot.
39436         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39437         check that the results are usable as constant expressions.
39438
39439 2009-05-31  Bruno Haible  <bruno@clisp.org>
39440
39441         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39442         * tests/test-memchr.c (main): Check that memchr does not read past the
39443         first occurrence of the byte.
39444         * tests/test-strstr.c (main): Update comment.
39445         Suggested by Eric Blake.
39446
39447 2009-05-30  Bruno Haible  <bruno@clisp.org>
39448
39449         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39450         detail how to use dumpbin.
39451         Reported by David Byron <dbyron@dbyron.com>.
39452
39453 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39454
39455         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39456
39457 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39458
39459         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39460
39461 2009-05-28  Bruno Haible  <bruno@clisp.org>
39462
39463         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39464         build-aux/ files.
39465
39466 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39467
39468         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39469
39470 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39471
39472         * gnulib-tool (sed_transform_main_lib_file)
39473         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39474         regexps.
39475
39476 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39477
39478         * tests/test-strstr.c: Add another self-test.
39479         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39480         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39481
39482 2009-05-23  Bruno Haible  <bruno@clisp.org>
39483
39484         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39485         change.
39486
39487 2009-05-21  Bruno Haible  <bruno@clisp.org>
39488
39489         Simplify use of mode_t varargs.
39490         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39491         uses 'mode_t' or 'int'.
39492         * lib/openat.c (openat): Likewise.
39493         * lib/open-safer.c (open_safer): Likewise.
39494         * m4/mode_t.m4: New file.
39495         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39496         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39497         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39498         * modules/open (Files): Add m4/mode_t.m4.
39499         * modules/openat (Files): Likewise.
39500         * modules/fcntl-safer (Files): Likewise.
39501         Suggested by Eric Blake.
39502
39503 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39504
39505         * doc/glibc-functions/fallocate.texi: New file.
39506         * doc/gnulib.texi: Include it.
39507
39508 2009-05-21  Eric Blake  <ebb9@byu.net>
39509             Bruno Haible  <bruno@clisp.org>
39510
39511         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39512         invocations.
39513         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39514
39515 2009-05-21  Eric Blake  <ebb9@byu.net>
39516             Bruno Haible  <bruno@clisp.org>
39517
39518         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39519         include_next. Fix of 2008-11-20 commit.
39520         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39521         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39522         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39523         NEXT_MATH_H.
39524         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39525         instead of NEXT_MATH_H.
39526
39527 2009-05-21  Bruno Haible  <bruno@clisp.org>
39528
39529         Avoid redefinition warnings for SIZE_MAX.
39530         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39531         Reported by Simon Josefsson.
39532
39533 2009-05-21  Bruno Haible  <bruno@clisp.org>
39534
39535         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39536         AC_CACHE_VAL.
39537
39538 2009-05-20  Bruno Haible  <bruno@clisp.org>
39539
39540         Make zeroptr.h work on mingw.
39541         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39542         mprotect.
39543         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39544         * modules/memchr2-tests (configure.ac): Likewise.
39545         * modules/memcmp-tests (configure.ac): Likewise.
39546         * modules/memmem-tests (configure.ac): Likewise.
39547         * modules/memrchr-tests (configure.ac): Likewise.
39548         Reported by Simon Josefsson.
39549
39550 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39551
39552         * tests/test-glob.c: Include string.h for strcmp prototype.
39553
39554 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39555
39556         * modules/getdelim (Depends-on): Add explicit stdint, although it
39557         was implicitly already pulled in via realloc-posix.
39558         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39559
39560 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39561
39562         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39563         G. Christensen" <tgc@jupiterrise.com>.
39564         * m4/sys_socket_h.m4: Check for sa_family_t.
39565         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39566         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39567         * tests/test-sys_socket.c: Check that sa_family_t works.
39568
39569 2009-05-18  Eric Blake  <ebb9@byu.net>
39570
39571         maint.mk: allow gnulib_dir in VPATH build
39572         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39573
39574 2009-05-15  Jim Meyering  <meyering@redhat.com>
39575
39576         maint.mk: Give gnulib_dir a default definition.
39577         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39578         Thus, most packages no longer need to specify this variable in cfg.mk
39579
39580 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39581
39582         rename.m4: fix typos that would make non-mingw cross-configure fail
39583         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39584
39585 2009-05-13  Eric Blake  <ebb9@byu.net>
39586
39587         mmap-anon: avoid out-of-order autoconf expansion
39588         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39589         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39590         * modules/memchr-tests (Depends-on): Add extensions.
39591         * modules/memchr2-tests (Depends-on): Add extensions.
39592         * modules/memcmp-tests (Depends-on): Add extensions.
39593         * modules/memmem-tests (Depends-on): Add extensions.
39594         * modules/memrchr-tests (Depends-on): Add extensions.
39595
39596 2009-05-13  Bruno Haible  <bruno@clisp.org>
39597
39598         Make some tests ISO C 99 compliant.
39599         * tests/zerosize-ptr.h: New file.
39600         * tests/test-memchr.c: Include zerosize-ptr.h.
39601         (main): Use a zero-size object pointer instead of NULL.
39602         * tests/test-memchr2.c: Include zerosize-ptr.h.
39603         (main): Use a zero-size object pointer instead of NULL.
39604         * tests/test-memcmp.c: Include zerosize-ptr.h.
39605         (main): Use a zero-size object pointer instead of NULL.
39606         * tests/test-memmem.c: Include zerosize-ptr.h.
39607         (main): Use a zero-size object pointer instead of NULL.
39608         * tests/test-memrchr.c: Include zerosize-ptr.h.
39609         (main): Use a zero-size object pointer instead of NULL.
39610         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39611         m4/mmap-anon.m4.
39612         (Depends-on): Add getpagesize.
39613         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39614         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39615         m4/mmap-anon.m4.
39616         (Depends-on): Add getpagesize.
39617         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39618         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39619         m4/mmap-anon.m4.
39620         (Depends-on): Add getpagesize.
39621         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39622         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39623         m4/mmap-anon.m4.
39624         (Depends-on): Add getpagesize.
39625         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39626         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39627         m4/mmap-anon.m4.
39628         (Depends-on): Add getpagesize.
39629         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39630
39631 2009-05-12  Bruno Haible  <bruno@clisp.org>
39632
39633         Tests for module 'alignof'.
39634         * modules/alignof-tests: New file.
39635         * tests/test-alignof.c: New file.
39636
39637 2009-05-12  Bruno Haible  <bruno@clisp.org>
39638
39639         Fix alignof macro.
39640         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39641         vendor compilers that are always correct.
39642
39643 2009-05-12  Bruno Haible  <bruno@clisp.org>
39644
39645         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39646         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39647         not whether its fully works.
39648
39649 2009-05-12  Bruno Haible  <bruno@clisp.org>
39650
39651         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39652
39653 2009-05-12  Jim Meyering  <meyering@redhat.com>
39654
39655         * top/maint.mk: Adjust backslash alignment.
39656
39657 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39658
39659         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39660
39661 2009-05-11  Eric Blake  <ebb9@byu.net>
39662
39663         argp: avoid undefined behavior
39664         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39665         macros.
39666
39667 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39668
39669         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39670         user.name to prevent git commit from complaining.
39671
39672 2009-05-10  Bruno Haible  <bruno@clisp.org>
39673
39674         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39675         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39676         it rewrites every file name only once.
39677         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39678
39679 2009-05-08  Bruno Haible  <bruno@clisp.org>
39680
39681         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39682         instead of 'max'.
39683
39684 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39685
39686         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39687         sockaddr_storage test.
39688
39689 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39690
39691         * modules/sys_socket (Makefile.am): Substitute
39692         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39693         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39694         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39695         * tests/test-sys_socket.c: Check sockaddr_storage.
39696
39697 2009-05-08  Bruno Haible  <bruno@clisp.org>
39698
39699         New module 'alignof'.
39700         * lib/alignof.h: New file.
39701         * modules/alignof: New file.
39702
39703 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39704             Bruno Haible  <bruno@clisp.org>
39705
39706         Fix test-file-has-acl on FreeBSD.
39707         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39708         mask is implicitly added.
39709         * tests/test-file-has-acl.c: Include <signal.h>.
39710         (main): Terminate the test after 5 seconds.
39711         * modules/acl-tests (configure.ac): Check for alarm function.
39712
39713 2009-05-04  Bruno Haible  <bruno@clisp.org>
39714
39715         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39716         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39717         * modules/errno (configure.ac): Drop AC_REQUIRE.
39718         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39719         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39720
39721 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39722
39723         * modules/glob-tests: New module.
39724         * tests/test-glob.c: Add.
39725
39726 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39727
39728         * modules/fnmatch-tests: New module.
39729         * tests/test-fnmatch.c: Add.
39730
39731 2009-05-04  Eric Blake  <ebb9@byu.net>
39732
39733         maint: make the new no-submodule-changes rule VPATH-safe
39734         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39735
39736 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39737             Bruno Haible  <bruno@clisp.org>
39738
39739         acl: Fix infinite loop on FreeBSD.
39740         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39741         of return value from acl_get_entry.
39742         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39743         Likewise.
39744
39745 2009-05-03  Bruno Haible  <bruno@clisp.org>
39746
39747         * lib/acl-internal.h (acl_entries): Clarify return value.
39748         * lib/acl_entries.c (acl_entries): Likewise.
39749
39750 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39751
39752         Bug fix in acl module.
39753         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39754
39755 2009-05-03  Bruno Haible  <bruno@clisp.org>
39756
39757         Create gperf-generated file in the source dir, not in the build dir.
39758         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39759         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39760         * modules/unicase/locale-language (unicase/locale-languages.h):
39761         Likewise.
39762         * modules/unicase/special-casing (unicase/special-casing-table.h):
39763         Likewise.
39764         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39765         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39766         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39767         Reported by Ralf Wildenhues.
39768
39769 2009-05-03  Bruno Haible  <bruno@clisp.org>
39770
39771         * modules/fnmatch (Description, configure.ac): Taken from
39772         fnmatch-posix.
39773         * modules/fnmatch-posix: Turn into a symbolic reference to the
39774         'fnmatch' module, and deprecate.
39775         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39776
39777 2009-05-03  Bruno Haible  <bruno@clisp.org>
39778
39779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39780         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39781         Reported by Ralf Wildenhues.
39782
39783 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39784
39785         * m4/fnmatch.m4: Fix fnmatch re-define.
39786
39787 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39788
39789         priv-set: new module and tests; adapt write-any-file
39790         * lib/priv-set.c: New file.
39791         * lib/priv-set.h: New file.
39792         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39793         * lib/write-any-file.c: Simplify by using priv-set module.
39794         * m4/priv-set.m4: New file.
39795         * modules/priv-set: New file.
39796         * modules/unlinkdir: Add dependency on priv-set module.
39797         * modules/write-any-file: Likewise.
39798
39799         Tests for module 'priv-set'.
39800         * modules/priv-set-tests: New file.
39801         * tests/test-priv-set.c: New file.
39802
39803 2009-05-03  Jim Meyering  <meyering@redhat.com>
39804             Bruno Haible  <bruno@clisp.org>
39805
39806         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39807         use the converted UTF-8 variant of the name instead.
39808
39809 2009-05-03  Jim Meyering  <meyering@redhat.com>
39810
39811         tests: tighten some getdate tests
39812         * tests/test-getdate.c (main): Tighten tests: require equality,
39813         not just greater than.  Set TZ envvar to UTC0.
39814
39815 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39816
39817         getdate: correctly interpret "next monday" when run on a Monday
39818         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39819         that e.g., "next tues" (when run on a tuesday) results in a date
39820         that is one week in the future, and not today's date.
39821         I.e., add a week when the wday is the same as the current one.
39822         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39823         and earlier by Martin Bernreuther and Jan Minář.
39824         * tests/test-getdate.c (main): Check that "next DAY" is always in
39825         the future and that "last DAY" is always in the past.
39826
39827 2009-05-02  Jim Meyering  <meyering@redhat.com>
39828
39829         build: ensure that a release build fails when a submodule is unclean
39830         * top/maint.mk (no-submodule-changes): New rule.
39831         (alpha beta major): Depend on it.
39832
39833 2009-05-02  Bruno Haible  <bruno@clisp.org>
39834
39835         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39836         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39837         shell variable gl_fnmatch_required to detect which variant is
39838         requested.
39839         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39840         gl_FUNC_FNMATCH_POSIX.
39841         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39842         exclude fnmatch-posix.
39843
39844 2009-05-02  Bruno Haible  <bruno@clisp.org>
39845
39846         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39847         * modules/mbsrtowcs (License): Change to LGPLv2+.
39848         * modules/strnlen1 (License): Likewise.
39849         Reported by Simon Josefsson.
39850
39851 2009-05-02  Bruno Haible  <bruno@clisp.org>
39852
39853         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39854         "cross".
39855         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39856         gnulib-tool was called with option --source-base=lib.
39857
39858 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39859
39860         Use automake *-local hooks without commands, for extensibility.
39861         * modules/localcharset (Makefile.am): Rename install-exec-local
39862         rule to install-exec-localcharset, and make it a prerequisite of
39863         install-exec-local.  Likewise, rename the uninstall-local rule to
39864         uninstall-localcharset, and make it a prerequisite of the former.
39865
39866 2009-05-01  Bruno Haible  <bruno@clisp.org>
39867
39868         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39869         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39870         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39871         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39872         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39873         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39874         m4/locale-zh.m4, m4/codeset.m4.
39875
39876         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39877         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39878         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39879         m4/locale-zh.m4.
39880
39881         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39882         REPLACE_WCRTOMB if mbstate_t must be replaced.
39883         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39884         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39885
39886 2009-05-01  Bruno Haible  <bruno@clisp.org>
39887
39888         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39889         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39890         dngettext, dcngettext, textdomain, bindtextdomain,
39891         bind_textdomain_codeset): Undefine before redefining.
39892
39893 2009-04-30  Bruno Haible  <bruno@clisp.org>
39894
39895         Fix bug introduced on 2009-04-25.
39896         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39897         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39898         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39899         is defined.
39900         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39901         is defined.
39902         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39903         is defined.
39904         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39905
39906 2009-04-28  Bruno Haible  <bruno@clisp.org>
39907
39908         Comment tweaks.
39909         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39910         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39911         * lib/unicase.h (u*_casexfrm): Likewise.
39912         Reported by Paolo Bonzini.
39913
39914 2009-04-28  Bruno Haible  <bruno@clisp.org>
39915
39916         Fix a compilation error.
39917         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39918         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39919         Reported by Jim Meyering.
39920
39921 2009-04-27  Bruno Haible  <bruno@clisp.org>
39922
39923         New module 'libunistring'.
39924         * modules/libunistring: New file.
39925         * m4/libunistring.m4: New file.
39926         * MODULES.html.sh (Unicode string functions): Add it.
39927
39928 2009-04-27  Eric Blake  <ebb9@byu.net>
39929
39930         maint.mk: allow package-specific header to provide <config.h>
39931         * top/maint.mk (sc_require_config_h): New variable.
39932         (sc_require_config_h, sc_require_config_h_first): Use it.
39933
39934 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39935
39936         * top/maint.mk (sc_avoid_if_before_free): Except
39937         useless-if-before-free script.
39938
39939 2009-04-27  Eric Blake  <ebb9@byu.net>
39940
39941         maintainer-makefile: depend on all required helper scripts
39942         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39943         useless-if-before-free.
39944         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39945         version, rather than assuming gnulib checkout is available.
39946         Reported by Simen Josefsson.
39947
39948 2009-04-26  Bruno Haible  <bruno@clisp.org>
39949
39950         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39951         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39952         "../" or "..".
39953
39954 2009-04-26  Bruno Haible  <bruno@clisp.org>
39955
39956         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39957         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39958         AC_LIB_HAVE_LINKFLAGS.
39959
39960 2009-04-26  Bruno Haible  <bruno@clisp.org>
39961
39962         Simplify calling convention of u*_conv_from_encoding.
39963         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39964         u32_conv_from_encoding): Expect a resultbuf argument and return the
39965         result directly as a pointer.
39966         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39967         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39968         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39969         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39970         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39971         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39972         Update.
39973         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39974         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39975         * lib/vasnprintf.c (VASNPRINTF): Update.
39976         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39977         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39978         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39979         * NEWS: Mention the change.
39980
39981 2009-04-26  Bruno Haible  <bruno@clisp.org>
39982
39983         Simplify calling convention of u*_conv_to_encoding.
39984         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39985         u32_conv_to_encoding): Expect a resultbuf argument and return the
39986         result directly as a pointer.
39987         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39988         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39989         freeing scaled_offsets if mem_iconveha failed.
39990         * lib/unicase/u-casexfrm.h (FUNC): Update.
39991         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39992         * lib/vasnprintf.c (VASNPRINTF): Update.
39993         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39994         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39995         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39996         * NEWS: Mention the change.
39997
39998 2009-04-26  Bruno Haible  <bruno@clisp.org>
39999
40000         Avoid test failures on AIX and OSF/1.
40001         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40002         malloc(0).
40003         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40004         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40005         Likewise.
40006         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40007         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40008         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40009         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40010         * doc/posix-functions/malloc.texi: Document the portability problem
40011         related to malloc(0).
40012
40013 2009-04-26  Bruno Haible  <bruno@clisp.org>
40014
40015         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40016         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40017         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40018
40019 2009-04-25  Bruno Haible  <bruno@clisp.org>
40020
40021         Avoid link error when creating a namespace clean library.
40022         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40023         as macro with arguments if already defined as an alias.
40024         * lib/signbitf.c (gl_signbitf): Don't undefine.
40025         * lib/signbitd.c (gl_signbitd): Don't undefine.
40026         * lib/signbitl.c (gl_signbitl): Don't undefine.
40027
40028 2009-04-25  Jim Meyering  <meyering@redhat.com>
40029
40030         vc-list-files: fix another quoting bug
40031         * build-aux/vc-list-files: Avoid sed backslash expansion
40032         of pathological directory names.
40033
40034 2009-04-25  Eric Blake  <ebb9@byu.net>
40035
40036         vc-list-files: fix shell quoting error
40037         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40038         timestamp.
40039
40040 2009-04-25  Jim Meyering  <meyering@redhat.com>
40041
40042         vc-list-files: restore lost functionality with subdir argument
40043         * build-aux/vc-list-files: When given a non-"." sub-directory
40044         argument, substitute the $dir/ prefix back onto each resulting name.
40045         Otherwise, coreutils' root_tests check would fail.
40046
40047 2009-04-24  Eric Blake  <ebb9@byu.net>
40048
40049         vc-list-files: ignore git symlinks
40050         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40051         than ls-files, to ignore git symlinks.
40052
40053         maint.mk: import improvements from m4
40054         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40055         (move_if_change): Delete unused macro.
40056         (news-date-check, vc-diff-check): Support VPATH builds.
40057         (announcement): Likewise.  Split --bootstrap-tools list...
40058         (boostrap-tools): ...into separate list, which can be overridden
40059         in cfg.mk.
40060         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40061         requiring dependency on useless-if-before-free module.
40062         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40063         Support VPATH builds.
40064
40065 2009-04-24  Jim Meyering  <meyering@redhat.com>
40066
40067         maint.mk: remove coreutils-specific rules and variables
40068         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40069         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40070         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40071
40072         maint.mk: remove obsolete rule
40073         * top/maint.mk (rel-check): Remove rule.
40074         (WGET, WGETFLAGS): Remove now-unused variables.
40075
40076 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40077
40078         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40079         consistency.
40080
40081         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40082         '$(PATH_SEPARATOR)' instead of ':'.
40083
40084 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40085
40086         * lib/getopt1.c (main): Use 'const' for static array.
40087
40088 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40089
40090         * top/maint.mk: Sync with coreutils.
40091         * NEWS: Explain incompatibilities.
40092
40093 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40094             Bruno Haible  <bruno@clisp.org>
40095
40096         Fix cross-compilation results.
40097         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40098         statement, as third argument of AC_TRY_RUN.
40099         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40100         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40101         Likewise.
40102         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40103         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40104         Likewise.
40105         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40106         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40107         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40108
40109 2009-04-20  Bruno Haible  <bruno@clisp.org>
40110
40111         Avoid test failure on mingw.
40112         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40113
40114 2009-04-20  Bruno Haible  <bruno@clisp.org>
40115
40116         Avoid compilation error on mingw.
40117         * modules/localename-tests (Depends-on): Add locale.
40118
40119 2009-04-19  Bruno Haible  <bruno@clisp.org>
40120
40121         Support for building a shared library on Windows platforms.
40122         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40123         (main): Test the presence of UNINORM_NFC here.
40124         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40125         (main): Test the presence of UNINORM_NFD here.
40126         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40127         (main): Test the presence of UNINORM_NFKC here.
40128         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40129         (main): Test the presence of UNINORM_NFKD here.
40130
40131 2009-04-19  Bruno Haible  <bruno@clisp.org>
40132
40133         Avoid a compiler warning.
40134         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40135         Change type of variable 'sequence'.
40136
40137 2009-04-19  Bruno Haible  <bruno@clisp.org>
40138
40139         * modules/configmake (Makefile.am): When the contents of configmake.h
40140         does not change, arrange to preserve its modification time.
40141
40142 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40143
40144         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40145         gettext domain.
40146
40147 2009-04-16  Jim Meyering  <meyering@redhat.com>
40148
40149         useless-if-before-free: improve conversion code
40150         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40151         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40152
40153 2009-04-14  Bruno Haible  <bruno@clisp.org>
40154
40155         * modules/fcntl (Depends-on): Add extensions.
40156         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40157
40158 2009-04-12  Ben Pfaff  <blp@gnu.org>
40159
40160         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40161         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40162
40163 2009-03-20  Ben Pfaff  <blp@gnu.org>
40164
40165         Make rename replace existing destinations on Windows.
40166         * m4/rename.m4: Add test for Mingw.
40167         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40168         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40169         * doc/posix-functions/rename.texi: Document.
40170
40171 2009-04-10  Bruno Haible  <bruno@clisp.org>
40172
40173         New include file "iconveh.h".
40174         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40175         * lib/striconveh.h: Include it.
40176         (enum iconv_ilseq_handler): Remove definition.
40177         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40178         striconveh.h.
40179         * lib/striconveha.c: Include striconveh.h.
40180         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40181         * modules/striconveh (Files): Add lib/iconveh.h.
40182         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40183         lib/striconveh.h.
40184
40185 2009-04-10  Bruno Haible  <bruno@clisp.org>
40186
40187         * lib/uniconv.h: Update comment.
40188
40189 2009-04-10  Bruno Haible  <bruno@clisp.org>
40190
40191         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40192         always.
40193         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40194         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40195         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40196         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40197         "unistring-notinline.h", so that the function gets defined always.
40198         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40199         * lib/unistr/u8-uctomb.c: Likewise.
40200         * lib/unistr/u16-mbtouc.c: Likewise.
40201         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40202         * lib/unistr/u16-uctomb.c: Likewise.
40203         * lib/unistr/u32-mbtouc.c: Likewise.
40204         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40205         * lib/unistr/u32-uctomb.c: Likewise.
40206
40207 2009-04-10  Bruno Haible  <bruno@clisp.org>
40208
40209         Mark 'utime' obsolete.
40210         * modules/utime (Status, Notice): New sections.
40211         Suggested by Jim Meyering.
40212
40213         Fix cross-compile guess for utime test.
40214         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40215         autoconf.
40216         * doc/posix-functions/utime.texi: Give more precisions.
40217         Reported by Jan <ipif@ymail.com>.
40218
40219 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40220
40221         filevercmp: correct today's change
40222         * lib/filevercmp.c: Also handle coreutils' test inputs.
40223         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40224
40225         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40226         for reporting it.
40227         * lib/filevercmp.c: Special handle for "", "." and "..".
40228         * tests/test-filevercmp.c: Enlarge the set suite.
40229
40230 2009-04-07  Jim Meyering  <meyering@redhat.com>
40231
40232         useless-if-before-free: show how to remove braced useless free, too
40233         * build-aux/useless-if-before-free: still only in a comment, though.
40234
40235 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40236
40237         maint.mk: import changes to syntax-check macros from coreutils
40238         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40239         Use them in the relevant macros.
40240
40241 2009-04-06  Bruno Haible  <bruno@clisp.org>
40242
40243         Fix unportable use of bit-fields.
40244         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40245         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40246         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40247
40248 2009-04-06  Bruno Haible  <bruno@clisp.org>
40249
40250         Avoid test failures on AIX and OSF/1.
40251         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40252         that malloc(0) = NULL.
40253         * tests/unicase/test-u8-tolower.c (check): Likewise.
40254         * tests/unicase/test-u8-totitle.c (check): Likewise.
40255         * tests/unicase/test-u8-toupper.c (check): Likewise.
40256         * tests/unicase/test-u16-casefold.c (check): Likewise.
40257         * tests/unicase/test-u16-tolower.c (check): Likewise.
40258         * tests/unicase/test-u16-totitle.c (check): Likewise.
40259         * tests/unicase/test-u16-toupper.c (check): Likewise.
40260         * tests/unicase/test-u32-casefold.c (check): Likewise.
40261         * tests/unicase/test-u32-tolower.c (check): Likewise.
40262         * tests/unicase/test-u32-totitle.c (check): Likewise.
40263         * tests/unicase/test-u32-toupper.c (check): Likewise.
40264         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40265         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40266         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40267         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40268         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40269         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40270         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40271         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40272         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40273         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40274         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40275         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40276
40277 2009-04-05  Bruno Haible  <bruno@clisp.org>
40278
40279         Work around an autoconf limitation.
40280         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40281         comment line if it would be longer than 3 KB.
40282
40283 2009-04-05  Bruno Haible  <bruno@clisp.org>
40284
40285         Avoid test failure with libiconv-1.13.
40286         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40287         of the expected test results.
40288
40289 2009-04-05  Bruno Haible  <bruno@clisp.org>
40290
40291         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40292         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40293         that it should be installed.
40294
40295 2009-04-05  Bruno Haible  <bruno@clisp.org>
40296
40297         * gnulib-tool: New option --copy-file.
40298         (func_usage): Document it.
40299         (func_dest_tmpfilename): Moved out of func_import.
40300         (func_add_file, func_update_file): New functions, extracted from
40301         func_import.
40302         (func_import): Update.
40303
40304 2009-04-05  Karl Berry  <karl@gnu.org>
40305
40306         * README: prominently mention gnulib-tool.
40307         Rearrange sections so getting the code is near the top.
40308
40309 2009-04-05  Bruno Haible  <bruno@clisp.org>
40310
40311         * lib/unicase.h: Mention u*_cmp2.
40312         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40313         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40314         * lib/unicase/ulc-casecmp.c: Likewise.
40315         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40316         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40317         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40318         unistr/u8-cmp.
40319         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40320         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40321         unistr/u16-cmp.
40322         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40323         unistr/u32-cmp.
40324
40325         * lib/uninorm.h: Mention u*_cmp2.
40326         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40327         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40328         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40329         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40330         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40331         unistr/u8-cmp.
40332         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40333         unistr/u16-cmp.
40334         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40335         unistr/u32-cmp.
40336
40337         New module 'unistr/u32-cmp2'.
40338         * lib/unistr/u32-cmp2.c: New file.
40339         * modules/unistr/u32-cmp2: New file.
40340
40341         New module 'unistr/u16-cmp2'.
40342         * lib/unistr/u16-cmp2.c: New file.
40343         * modules/unistr/u16-cmp2: New file.
40344
40345         New module 'unistr/u8-cmp2'.
40346         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40347         * lib/unistr/u8-cmp2.c: New file.
40348         * lib/unistr/u-cmp2.h: New file.
40349         * modules/unistr/u8-cmp2: New file.
40350
40351 2009-04-05  Bruno Haible  <bruno@clisp.org>
40352
40353         * lib/unictype.h (uc_property_is_valid): New macro.
40354         * tests/unictype/test-pr_byname.c (main): Use it.
40355
40356         * lib/unistr.h: Doc fixes.
40357         * lib/uniconv.h: Doc fixes.
40358         * lib/unictype.h: Doc fixes.
40359
40360 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40361
40362         Port coreutils 7.2 to Solaris 8.
40363
40364         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40365         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40366         for Solaris 8.  This is a bit of a hack, as it means it's the
40367         caller's responsibility to add -lnsl if needed, but most likely it
40368         won't be needed since only getaddrinfo uses this and getaddrinfo
40369         isn't needed on Solaris 8.
40370
40371         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40372         problem to Solaris 8 encountered with coreutils 7.2, which
40373         resulted in a message "fnmatch.c:292: warning: passing argument 4
40374         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40375         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40376
40377 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40378
40379         * m4/ld-version-script.m4: Add FIXME comment.
40380
40381 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40382
40383         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40384         SOVERSION variable.
40385
40386 2009-04-02  Bruno Haible  <bruno@clisp.org>
40387
40388         * Makefile (info, html, dvi, pdf): Combine the rules.
40389         Suggested by Jim Meyering.
40390
40391 2009-04-01  Bruno Haible  <bruno@clisp.org>
40392
40393         * Makefile (info, html, dvi, pdf): New targets.
40394         Reported by Reuben Thomas <rrt@sc3d.org>.
40395
40396 2009-04-01  Bruno Haible  <bruno@clisp.org>
40397
40398         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40399         can be put into PATH.
40400         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40401
40402 2009-04-01  Bruno Haible  <bruno@clisp.org>
40403
40404         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40405
40406 2009-04-01  Bruno Haible  <bruno@clisp.org>
40407
40408         Rename module 'visibility'.
40409         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40410         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40411         * doc/gnulib.texi: Update.
40412         * MODULES.html.sh (Misc): Update.
40413         * NEWS: Mention the change.
40414
40415 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40416
40417         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40418         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40419         Eric Blake <ebb9@byu.net> for review.
40420         * MODULES.html.sh: Add lib-msvc-compat.
40421         * doc/gnulib.texi: Link to new section.
40422         * m4/ld-output-def.m4: New file.
40423         * doc/ld-output-def.texi: New file.
40424
40425 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40426
40427         Rename ld-version-script to lib-symbol-versions.  Suggested by
40428         Bruno Haible <bruno@clisp.org>.
40429         * modules/ld-version-script: Renamed to lib-symbol-versions.
40430         * doc/ld-version-script.texi: Fix module name.
40431         * MODULES.html.sh: Add lib-symbol-versions.
40432
40433 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40434
40435         * modules/u64-tests: New file.
40436         * tests/test-u64.c: New file.
40437
40438 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40439
40440         * MODULES.html.sh: Mention u64.
40441         * modules/u64: New module.
40442         * modules/crypto/sha512: Depend on u64 module instead of providing
40443         u64.h.
40444
40445 2009-03-27  Eric Blake  <ebb9@byu.net>
40446
40447         test-strerror: make debugging EAI_SYSTEM easier
40448         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40449         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40450         failure was EAI_SYSTEM.
40451
40452 2009-03-25  Bruno Haible  <bruno@clisp.org>
40453
40454         Fix a problem with --enable-relocatable on Solaris 7.
40455         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40456         since 2008-02-24.
40457
40458 2009-03-25  Eric Blake  <ebb9@byu.net>
40459
40460         test-sockets: avoid gcc warning
40461         * tests/test-sockets.c (main): Silence compiler warning.
40462
40463 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40464
40465         New modules nproc, pthread, contributed by Glen Lenker.
40466
40467         * MODULES.html.sh: Add pthread, nproc.
40468         * lib/nproc.c: New file.
40469         * lib/nproc.h: New file.
40470         * lib/pthread.in.h: New file.
40471         * m4/pthread.m4: New file.
40472         * modules/nproc: New file.
40473         * modules/pthread: New file.
40474
40475 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40476
40477         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40478         New variable.
40479
40480 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40481
40482         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40483         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40484         * tests/test-filevercmp.c: Add tests for backup suffixes.
40485
40486 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40487
40488         * modules/stdlib (Depends-on): Add stdint, needed when defining
40489         struct random_data on, for example, HP-UX 10.20.  Reported by
40490         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40491
40492 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40493
40494         * lib/readline.c (readline): Call fflush on stdout after printing
40495         prompt.
40496
40497 2009-03-20  Bruno Haible  <bruno@clisp.org>
40498
40499         Remove dependency from 'close' module to -lws2_32 on native Windows.
40500         * lib/close-hook.h: New file.
40501         * lib/close-hook.c: New file.
40502         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40503         w32sock.h.
40504         (_gl_close_fd_maybe_socket): Remove function.
40505         (rpl_close): Invoke execute_all_close_hooks instead of
40506         _gl_close_fd_maybe_socket.
40507         * lib/sockets.c: Include close-hook.h, w32sock.h.
40508         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40509         (close_sockets_hook): New variable.
40510         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40511         (gl_sockets_cleanup): Unregister it.
40512         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40513         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40514         * modules/close-hook: New file.
40515         * modules/close (Files): Remove lib/w32sock.h.
40516         (Depends-on): Add close-hook.
40517         (Link): Remove section.
40518         * modules/sockets (Files): Add lib/w32sock.h.
40519         (Depends-on): Add close-hook.
40520         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40521         invocation.
40522         * NEWS: Mention that LIB_CLOSE is gone.
40523
40524 2009-03-23  Eric Blake  <ebb9@byu.net>
40525
40526         signal-tests: test previous patch
40527         * tests/test-signal.c: New file.
40528         * modules/signal-tests: Likewise.
40529
40530         signal.h: always support 'volatile sig_atomic_t'
40531         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40532         (gl_SIGNAL_H_DEFAULTS): Add a default.
40533         * modules/signal (Makefile.am): Substitute if needed.
40534         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40535         users can blindly add volatile.
40536         * doc/posix-headers/signal.texi (signal.h): Document it.
40537         Reported by Matthew Woehlke.
40538
40539 2009-03-23  Jim Meyering  <meyering@redhat.com>
40540
40541         pathmax: PATH_MAX: use pathconf only when available
40542         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40543         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40544         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40545         This avoids a link failure in a PSP cross-compilation environment
40546         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40547
40548         * lib/vasnprintf.c (divide): Fix typo in comment.
40549
40550 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40551
40552         * gnulib-tool (func_filter_filelist): Fix comment.
40553
40554 2009-03-20  Bruno Haible  <bruno@clisp.org>
40555
40556         Make sockets.h self-contained.
40557         * lib/sockets.c: Include sockets.h first.
40558         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40559
40560 2009-03-19  Eric Blake  <ebb9@byu.net>
40561
40562         doc: mention more functions added in cygwin 1.7.0
40563         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40564         addition.
40565         * doc/posix-functions/log2f.texi: Likewise.
40566
40567 2009-03-19  Jim Meyering  <meyering@redhat.com>
40568
40569         fsusage: avoid syntax error due to statement-before-declaration
40570         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40571         after all declarations.  Reported by Matthew Woehlke in
40572         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40573
40574 2009-03-18  Eric Blake  <ebb9@byu.net>
40575
40576         build-aux/compile: sync from automake
40577         * build-aux/compile: New file, from automake.
40578         * config/srclist.txt: Mention build-aux/compile.
40579
40580 2009-03-17  Bruno Haible  <bruno@clisp.org>
40581
40582         * lib/git-merge-changelog.c: Fix typo in comment.
40583         Reported by Reuben Thomas <rrt@sc3d.org>.
40584
40585 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40586
40587         * m4/regex.m4: update and improve help for
40588         --without-included-regex.
40589
40590 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40591
40592         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40593         failure on missing include files.
40594
40595 2009-03-17  Eric Blake  <ebb9@byu.net>
40596
40597         doc: mention more functions added in cygwin 1.7.0
40598         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40599         addition.
40600         * doc/posix-functions/fwscanf.texi: Likewise.
40601         * doc/posix-functions/swprintf.texi: Likewise.
40602         * doc/posix-functions/swscanf.texi: Likewise.
40603         * doc/posix-functions/vfwprintf.texi: Likewise.
40604         * doc/posix-functions/vfwscanf.texi: Likewise.
40605         * doc/posix-functions/vswprintf.texi: Likewise.
40606         * doc/posix-functions/vswscanf.texi: Likewise.
40607         * doc/posix-functions/vwprintf.texi: Likewise.
40608         * doc/posix-functions/vwscanf.texi: Likewise.
40609         * doc/posix-functions/wcscasecmp.texi: Likewise.
40610         * doc/posix-functions/wcsdup.texi: Likewise.
40611         * doc/posix-functions/wcsftime.texi: Likewise.
40612         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40613         * doc/posix-functions/wprintf.texi: Likewise.
40614         * doc/posix-functions/wscanf.texi: Likewise.
40615         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40616
40617 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40618
40619         maint.mk: really add $(AM_MAKEFLAGS)
40620         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40621         was inadvertently omitted in the last commit.
40622         Spotted by Bruno Haible.
40623
40624         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40625         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40626         $(AM_MAKEFLAGS)' rather than plain `make'.
40627
40628         gnulib-tool: execute $MAKE not make
40629         * gnulib-tool: Default $MAKE to 'make'.
40630         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40631         than make.  Initialize $MAKE in the do-autobuild script.
40632
40633         gnulib-tool: use $MAKE not make in generated files
40634         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40635         make, in generated files.  Initialize $MAKE in the do-autobuild
40636         script.
40637
40638         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40639
40640         GNUmakefile: disable parallelism only for multiple, recursive targets
40641         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40642         additions in the Makefile.
40643         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40644         by Automake.
40645         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40646         are listed on the command line and at least one of them is
40647         listed in $(ALL_RECURSIVE_TARGETS).
40648
40649 2009-03-14  Bruno Haible  <bruno@clisp.org>
40650
40651         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40652         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40653         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40654         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40655         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40656         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40657         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40658         unistr/u8-uctomb.
40659         * modules/unistr/u8-strchr (Depends-on): Likewise.
40660         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40661         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40662         unistr/u16-uctomb.
40663         * modules/unistr/u16-strchr (Depends-on): Likewise.
40664         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40665
40666 2009-03-12  Bruno Haible  <bruno@clisp.org>
40667
40668         Work around select() bug on Interix 3.5.
40669         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40670         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40671         * m4/select.m4: New file.
40672         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40673         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40674         * modules/select (Files): Add m4/select.m4.
40675         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40676         * modules/nanosleep (Depends-on): Add select.
40677         * modules/poll (Depends-on): Likewise.
40678         * doc/posix-functions/select.texi: Mention the Interix bug.
40679         Reported by Markus Duft <mduft@gentoo.org>.
40680
40681         * lib/select.c: Renamed from lib/winsock-select.c.
40682         * modules/select (Files): Add lib/select.c, remove
40683         lib/winsock-select.c.
40684         (configure.ac): Update.
40685
40686 2009-03-12  Jim Meyering  <meyering@redhat.com>
40687
40688         avoid gcc warnings about unused macro definitions
40689         * lib/readtokens.c (STREQ): Remove unused definition.
40690         * lib/xmalloc.c (SIZE_MAX): Likewise.
40691         * lib/openat-die.c (N_): Likewise.
40692         * lib/mountlist.c (SIZE_MAX): Remove definition.
40693         Instead, include <stdint.h>.
40694         * lib/readutmp.c: Likewise.
40695         * modules/readutmp (Depends-on): Add stdint.
40696         * modules/mountlist (Depends-on): Add stdint.
40697         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40698
40699 2009-03-10  Bruno Haible  <bruno@clisp.org>
40700
40701         Tests for module 'mbmemcasecoll'.
40702         * modules/mbmemcasecoll-tests: New file.
40703         * tests/test-mbmemcasecoll1.sh: New file.
40704         * tests/test-mbmemcasecoll2.sh: New file.
40705         * tests/test-mbmemcasecoll3.sh: New file.
40706         * tests/test-mbmemcasecoll.c: New file.
40707
40708         New module 'mbmemcasecoll'.
40709         * lib/mbmemcasecoll.h: New file.
40710         * lib/mbmemcasecoll.c: New file.
40711         * modules/mbmemcasecoll: New file.
40712
40713         * tests/test-mbmemcasecmp.h: New file, extracted from
40714         tests/test-mbmemcasecmp.c.
40715         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40716         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40717         (main): Update.
40718         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40719
40720 2009-03-09  Bruno Haible  <bruno@clisp.org>
40721
40722         Tests for module 'mbmemcasecmp'.
40723         * modules/mbmemcasecmp-tests: New file.
40724         * tests/test-mbmemcasecmp1.sh: New file.
40725         * tests/test-mbmemcasecmp2.sh: New file.
40726         * tests/test-mbmemcasecmp3.sh: New file.
40727         * tests/test-mbmemcasecmp.c: New file.
40728
40729         New module 'mbmemcasecmp'.
40730         * lib/mbmemcasecmp.h: New file.
40731         * lib/mbmemcasecmp.c: New file.
40732         * modules/mbmemcasecmp: New file.
40733
40734 2009-03-09  Bruno Haible  <bruno@clisp.org>
40735
40736         Tests for module 'unicase/ulc-casecoll'.
40737         * modules/unicase/ulc-casecoll-tests: New file.
40738         * tests/unicase/test-ulc-casecoll1.sh: New file.
40739         * tests/unicase/test-ulc-casecoll2.sh: New file.
40740         * tests/unicase/test-ulc-casecoll.c: New file.
40741
40742         New module 'unicase/ulc-casecoll'.
40743         * lib/unicase.h (ulc_casecoll): New declaration.
40744         * lib/unicase/ulc-casecoll.c: New file.
40745         * modules/unicase/ulc-casecoll: New file.
40746
40747         New module 'unicase/ulc-casexfrm'.
40748         * lib/unicase.h (ulc_casexfrm): New declaration.
40749         * lib/unicase/ulc-casexfrm.c: New file.
40750         * modules/unicase/ulc-casexfrm: New file.
40751
40752 2009-03-09  Bruno Haible  <bruno@clisp.org>
40753
40754         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40755         invocations.
40756
40757         * m4/mbscasecmp.m4: Remove file.
40758         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40759         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40760
40761         * m4/mbscasestr.m4: Remove file.
40762         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40763         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40764
40765         * m4/mbschr.m4: Remove file.
40766         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40767         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40768
40769         * m4/mbscspn.m4: Remove file.
40770         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40771         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40772
40773         * m4/mbslen.m4: Remove file.
40774         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40775         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40776
40777         * m4/mbsncasecmp.m4: Remove file.
40778         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40779         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40780
40781         * m4/mbsnlen.m4: Remove file.
40782         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40783         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40784
40785         * m4/mbspbrk.m4: Remove file.
40786         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40787         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40788
40789         * m4/mbspcasecmp.m4: Remove file.
40790         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40791         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40792
40793         * m4/mbsrchr.m4: Remove file.
40794         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40795         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40796
40797         * m4/mbssep.m4: Remove file.
40798         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40799         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40800
40801         * m4/mbsspn.m4: Remove file.
40802         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40803         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40804
40805         * m4/mbsstr.m4: Remove file.
40806         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40807         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40808
40809         * m4/mbstok_r.m4: Remove file.
40810         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40811         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40812
40813         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40814
40815         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40816         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40817
40818         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40819
40820 2009-03-08  Bruno Haible  <bruno@clisp.org>
40821
40822         Tests for module 'unicase/ulc-casecmp'.
40823         * modules/unicase/ulc-casecmp-tests: New file.
40824         * tests/unicase/test-ulc-casecmp1.sh: New file.
40825         * tests/unicase/test-ulc-casecmp2.sh: New file.
40826         * tests/unicase/test-ulc-casecmp.c: New file.
40827
40828         New module 'unicase/ulc-casecmp'.
40829         * lib/unicase.h (ulc_casecmp): New declaration.
40830         * lib/unicase/ulc-casecmp.c: New file.
40831         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40832         'const SRC_UNIT *'.
40833         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40834         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40835         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40836         * modules/unicase/ulc-casecmp: New file.
40837
40838         Tests for module 'unicase/u32-is-cased'.
40839         * modules/unicase/u32-is-cased-tests: New file.
40840         * tests/unicase/test-u32-is-cased.c: New file.
40841
40842         Tests for module 'unicase/u16-is-cased'.
40843         * modules/unicase/u16-is-cased-tests: New file.
40844         * tests/unicase/test-u16-is-cased.c: New file.
40845
40846         Tests for module 'unicase/u8-is-cased'.
40847         * modules/unicase/u8-is-cased-tests: New file.
40848         * tests/unicase/test-u8-is-cased.c: New file.
40849         * tests/unicase/test-is-cased.h: New file.
40850
40851         New module 'unicase/u32-is-cased'.
40852         * lib/unicase/u32-is-cased.c: New file.
40853         * modules/unicase/u32-is-cased: New file.
40854
40855         New module 'unicase/u16-is-cased'.
40856         * lib/unicase/u16-is-cased.c: New file.
40857         * modules/unicase/u16-is-cased: New file.
40858
40859         New module 'unicase/u8-is-cased'.
40860         * lib/unicase/u8-is-cased.c: New file.
40861         * lib/unicase/u-is-cased.h: New file.
40862         * modules/unicase/u8-is-cased: New file.
40863
40864         Tests for module 'unicase/u32-is-casefolded'.
40865         * modules/unicase/u32-is-casefolded-tests: New file.
40866         * tests/unicase/test-u32-is-casefolded.c: New file.
40867
40868         Tests for module 'unicase/u16-is-casefolded'.
40869         * modules/unicase/u16-is-casefolded-tests: New file.
40870         * tests/unicase/test-u16-is-casefolded.c: New file.
40871
40872         Tests for module 'unicase/u8-is-casefolded'.
40873         * modules/unicase/u8-is-casefolded-tests: New file.
40874         * tests/unicase/test-u8-is-casefolded.c: New file.
40875         * tests/unicase/test-is-casefolded.h: New file.
40876
40877         New module 'unicase/u32-is-casefolded'.
40878         * lib/unicase/u32-is-casefolded.c: New file.
40879         * modules/unicase/u32-is-casefolded: New file.
40880
40881         New module 'unicase/u16-is-casefolded'.
40882         * lib/unicase/u16-is-casefolded.c: New file.
40883         * modules/unicase/u16-is-casefolded: New file.
40884
40885         New module 'unicase/u8-is-casefolded'.
40886         * lib/unicase/u8-is-casefolded.c: New file.
40887         * modules/unicase/u8-is-casefolded: New file.
40888
40889         Tests for module 'unicase/u32-is-titlecase'.
40890         * modules/unicase/u32-is-titlecase-tests: New file.
40891         * tests/unicase/test-u32-is-titlecase.c: New file.
40892
40893         Tests for module 'unicase/u16-is-titlecase'.
40894         * modules/unicase/u16-is-titlecase-tests: New file.
40895         * tests/unicase/test-u16-is-titlecase.c: New file.
40896
40897         Tests for module 'unicase/u8-is-titlecase'.
40898         * modules/unicase/u8-is-titlecase-tests: New file.
40899         * tests/unicase/test-u8-is-titlecase.c: New file.
40900         * tests/unicase/test-is-titlecase.h: New file.
40901
40902         New module 'unicase/u32-is-titlecase'.
40903         * lib/unicase/u32-is-titlecase.c: New file.
40904         * modules/unicase/u32-is-titlecase: New file.
40905
40906         New module 'unicase/u16-is-titlecase'.
40907         * lib/unicase/u16-is-titlecase.c: New file.
40908         * modules/unicase/u16-is-titlecase: New file.
40909
40910         New module 'unicase/u8-is-titlecase'.
40911         * lib/unicase/u8-is-titlecase.c: New file.
40912         * modules/unicase/u8-is-titlecase: New file.
40913
40914         Tests for module 'unicase/u32-is-lowercase'.
40915         * modules/unicase/u32-is-lowercase-tests: New file.
40916         * tests/unicase/test-u32-is-lowercase.c: New file.
40917
40918         Tests for module 'unicase/u16-is-lowercase'.
40919         * modules/unicase/u16-is-lowercase-tests: New file.
40920         * tests/unicase/test-u16-is-lowercase.c: New file.
40921
40922         Tests for module 'unicase/u8-is-lowercase'.
40923         * modules/unicase/u8-is-lowercase-tests: New file.
40924         * tests/unicase/test-u8-is-lowercase.c: New file.
40925         * tests/unicase/test-is-lowercase.h: New file.
40926
40927         New module 'unicase/u32-is-lowercase'.
40928         * lib/unicase/u32-is-lowercase.c: New file.
40929         * modules/unicase/u32-is-lowercase: New file.
40930
40931         New module 'unicase/u16-is-lowercase'.
40932         * lib/unicase/u16-is-lowercase.c: New file.
40933         * modules/unicase/u16-is-lowercase: New file.
40934
40935         New module 'unicase/u8-is-lowercase'.
40936         * lib/unicase/u8-is-lowercase.c: New file.
40937         * modules/unicase/u8-is-lowercase: New file.
40938
40939         Tests for module 'unicase/u32-is-uppercase'.
40940         * modules/unicase/u32-is-uppercase-tests: New file.
40941         * tests/unicase/test-u32-is-uppercase.c: New file.
40942
40943         Tests for module 'unicase/u16-is-uppercase'.
40944         * modules/unicase/u16-is-uppercase-tests: New file.
40945         * tests/unicase/test-u16-is-uppercase.c: New file.
40946
40947         Tests for module 'unicase/u8-is-uppercase'.
40948         * modules/unicase/u8-is-uppercase-tests: New file.
40949         * tests/unicase/test-u8-is-uppercase.c: New file.
40950         * tests/unicase/test-is-uppercase.h: New file.
40951
40952         New module 'unicase/u32-is-uppercase'.
40953         * lib/unicase/u32-is-uppercase.c: New file.
40954         * modules/unicase/u32-is-uppercase: New file.
40955
40956         New module 'unicase/u16-is-uppercase'.
40957         * lib/unicase/u16-is-uppercase.c: New file.
40958         * modules/unicase/u16-is-uppercase: New file.
40959
40960         New module 'unicase/u8-is-uppercase'.
40961         * lib/unicase/u8-is-uppercase.c: New file.
40962         * modules/unicase/u8-is-uppercase: New file.
40963
40964         New module 'unicase/u32-is-invariant'.
40965         * lib/unicase/u32-is-invariant.c: New file.
40966         * modules/unicase/u32-is-invariant: New file.
40967
40968         New module 'unicase/u16-is-invariant'.
40969         * lib/unicase/u16-is-invariant.c: New file.
40970         * modules/unicase/u16-is-invariant: New file.
40971
40972         New module 'unicase/u8-is-invariant'.
40973         * lib/unicase/u8-is-invariant.c: New file.
40974         * lib/unicase/invariant.h: New file.
40975         * lib/unicase/u-is-invariant.h: New file.
40976         * modules/unicase/u8-is-invariant: New file.
40977
40978         Tests for module 'unicase/u32-casecoll'.
40979         * modules/unicase/u32-casecoll-tests: New file.
40980         * tests/unicase/test-u32-casecoll.c: New file.
40981
40982         Tests for module 'unicase/u16-casecoll'.
40983         * modules/unicase/u16-casecoll-tests: New file.
40984         * tests/unicase/test-u16-casecoll.c: New file.
40985
40986         Tests for module 'unicase/u8-casecoll'.
40987         * modules/unicase/u8-casecoll-tests: New file.
40988         * tests/unicase/test-u8-casecoll.c: New file.
40989
40990         New module 'unicase/u32-casecoll'.
40991         * lib/unicase/u32-casecoll.c: New file.
40992         * modules/unicase/u32-casecoll: New file.
40993
40994         New module 'unicase/u16-casecoll'.
40995         * lib/unicase/u16-casecoll.c: New file.
40996         * modules/unicase/u16-casecoll: New file.
40997
40998         New module 'unicase/u8-casecoll'.
40999         * lib/unicase/u8-casecoll.c: New file.
41000         * lib/unicase/u-casecoll.h: New file.
41001         * modules/unicase/u8-casecoll: New file.
41002
41003         New module 'unicase/u32-casexfrm'.
41004         * lib/unicase/u32-casexfrm.c: New file.
41005         * modules/unicase/u32-casexfrm: New file.
41006
41007         New module 'unicase/u16-casexfrm'.
41008         * lib/unicase/u16-casexfrm.c: New file.
41009         * modules/unicase/u16-casexfrm: New file.
41010
41011         New module 'unicase/u8-casexfrm'.
41012         * lib/unicase/u8-casexfrm.c: New file.
41013         * lib/unicase/u-casexfrm.h: New file.
41014         * modules/unicase/u8-casexfrm: New file.
41015
41016         Tests for module 'unicase/u32-casecmp'.
41017         * modules/unicase/u32-casecmp-tests: New file.
41018         * tests/unicase/test-u32-casecmp.c: New file.
41019
41020         Tests for module 'unicase/u16-casecmp'.
41021         * modules/unicase/u16-casecmp-tests: New file.
41022         * tests/unicase/test-u16-casecmp.c: New file.
41023
41024         Tests for module 'unicase/u8-casecmp'.
41025         * modules/unicase/u8-casecmp-tests: New file.
41026         * tests/unicase/test-u8-casecmp.c: New file.
41027         * tests/unicase/test-casecmp.h: New file.
41028
41029         New module 'unicase/u32-casecmp'.
41030         * lib/unicase/u32-casecmp.c: New file.
41031         * modules/unicase/u32-casecmp: New file.
41032
41033         New module 'unicase/u16-casecmp'.
41034         * lib/unicase/u16-casecmp.c: New file.
41035         * modules/unicase/u16-casecmp: New file.
41036
41037         New module 'unicase/u8-casecmp'.
41038         * lib/unicase/u8-casecmp.c: New file.
41039         * lib/unicase/u-casecmp.h: New file.
41040         * modules/unicase/u8-casecmp: New file.
41041
41042         Tests for module 'unicase/u32-casefold'.
41043         * modules/unicase/u32-casefold-tests: New file.
41044         * tests/unicase/test-u32-casefold.c: New file.
41045
41046         Tests for module 'unicase/u16-casefold'.
41047         * modules/unicase/u16-casefold-tests: New file.
41048         * tests/unicase/test-u16-casefold.c: New file.
41049
41050         Tests for module 'unicase/u8-casefold'.
41051         * modules/unicase/u8-casefold-tests: New file.
41052         * tests/unicase/test-u8-casefold.c: New file.
41053
41054         New module 'unicase/u32-casefold'.
41055         * lib/unicase/u32-casefold.c: New file.
41056         * modules/unicase/u32-casefold: New file.
41057
41058         New module 'unicase/u16-casefold'.
41059         * lib/unicase/u16-casefold.c: New file.
41060         * modules/unicase/u16-casefold: New file.
41061
41062         New module 'unicase/u8-casefold'.
41063         * lib/unicase/u8-casefold.c: New file.
41064         * lib/unicase/u-casefold.h: New file.
41065         * modules/unicase/u8-casefold: New file.
41066
41067         New module 'unicase/tocasefold'.
41068         * lib/unicase/casefold.h: New file.
41069         * lib/unicase/tocasefold.c: New file.
41070         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41071         * modules/unicase/tocasefold: New file.
41072
41073         Tests for module 'unicase/u32-totitle'.
41074         * modules/unicase/u32-totitle-tests: New file.
41075         * tests/unicase/test-u32-totitle.c: New file.
41076
41077         Tests for module 'unicase/u16-totitle'.
41078         * modules/unicase/u16-totitle-tests: New file.
41079         * tests/unicase/test-u16-totitle.c: New file.
41080
41081         Tests for module 'unicase/u8-totitle'.
41082         * modules/unicase/u8-totitle-tests: New file.
41083         * tests/unicase/test-u8-totitle.c: New file.
41084
41085         New module 'unicase/u32-totitle'.
41086         * lib/unicase/u32-totitle.c: New file.
41087         * modules/unicase/u32-totitle: New file.
41088
41089         New module 'unicase/u16-totitle'.
41090         * lib/unicase/u16-totitle.c: New file.
41091         * modules/unicase/u16-totitle: New file.
41092
41093         New module 'unicase/u8-totitle'.
41094         * lib/unicase/u8-totitle.c: New file.
41095         * lib/unicase/u-totitle.h: New file.
41096         * modules/unicase/u8-totitle: New file.
41097
41098         Tests for module 'unicase/u32-tolower'.
41099         * modules/unicase/u32-tolower-tests: New file.
41100         * tests/unicase/test-u32-tolower.c: New file.
41101
41102         Tests for module 'unicase/u16-tolower'.
41103         * modules/unicase/u16-tolower-tests: New file.
41104         * tests/unicase/test-u16-tolower.c: New file.
41105
41106         Tests for module 'unicase/u8-tolower'.
41107         * modules/unicase/u8-tolower-tests: New file.
41108         * tests/unicase/test-u8-tolower.c: New file.
41109
41110         New module 'unicase/u32-tolower'.
41111         * lib/unicase/u32-tolower.c: New file.
41112         * modules/unicase/u32-tolower: New file.
41113
41114         New module 'unicase/u16-tolower'.
41115         * lib/unicase/u16-tolower.c: New file.
41116         * modules/unicase/u16-tolower: New file.
41117
41118         New module 'unicase/u8-tolower'.
41119         * lib/unicase/u8-tolower.c: New file.
41120         * modules/unicase/u8-tolower: New file.
41121
41122         Tests for module 'unicase/u32-toupper'.
41123         * modules/unicase/u32-toupper-tests: New file.
41124         * tests/unicase/test-u32-toupper.c: New file.
41125
41126         Tests for module 'unicase/u16-toupper'.
41127         * modules/unicase/u16-toupper-tests: New file.
41128         * tests/unicase/test-u16-toupper.c: New file.
41129
41130         Tests for module 'unicase/u8-toupper'.
41131         * modules/unicase/u8-toupper-tests: New file.
41132         * tests/unicase/test-u8-toupper.c: New file.
41133
41134         New module 'unicase/u32-toupper'.
41135         * lib/unicase/u32-toupper.c: New file.
41136         * modules/unicase/u32-toupper: New file.
41137
41138         New module 'unicase/u16-toupper'.
41139         * lib/unicase/u16-toupper.c: New file.
41140         * modules/unicase/u16-toupper: New file.
41141
41142         New module 'unicase/u8-toupper'.
41143         * lib/unicase/u8-toupper.c: New file.
41144         * modules/unicase/u8-toupper: New file.
41145
41146         New module 'unicase/u32-casemap'.
41147         * lib/unicase/u32-casemap.c: New file.
41148         * modules/unicase/u32-casemap: New file.
41149
41150         New module 'unicase/u16-casemap'.
41151         * lib/unicase/u16-casemap.c: New file.
41152         * modules/unicase/u16-casemap: New file.
41153
41154         New module 'unicase/u8-casemap'.
41155         * lib/unicase/unicasemap.h: New file.
41156         * lib/unicase/u8-casemap.c: New file.
41157         * lib/unicase/u-casemap.h: New file.
41158         * modules/unicase/u8-casemap: New file.
41159
41160         New module 'unicase/special-casing'.
41161         * lib/unicase/special-casing.h: New file.
41162         * lib/unicase/special-casing.c: New file.
41163         * lib/unicase/special-casing-table.gperf: New file, generated by
41164         gen-uni-tables.c.
41165         * modules/unicase/special-casing: New file.
41166
41167         Tests for module 'unicase/locale-language'.
41168         * modules/unicase/locale-language-tests: New file.
41169         * tests/unicase/test-locale-language.sh: New file.
41170         * tests/unicase/test-locale-language.c: New file.
41171
41172         New module 'unicase/locale-language'.
41173         * lib/unicase/locale-language.c: New file.
41174         * lib/unicase/locale-languages.gperf: New file.
41175         * modules/unicase/locale-language: New file.
41176
41177         Generate more tables for case conversion and case folding.
41178         * lib/gen-uni-tables.c (SCC_*): New enum items.
41179         (struct special_casing_rule): New type.
41180         (casing_rules, num_casing_rules, allocated_casing_rules): New
41181         variables.
41182         (add_casing_rule, fill_casing_rules): New functions.
41183         (struct casefold_rule): New type.
41184         (casefolding_rules, num_casefolding_rules,
41185         allocated_casefolding_rules): New variables.
41186         (fill_casefolding_rules): New function.
41187         (unicode_casefold): New variable.
41188         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41189         sort_casing_rules, output_casing_rules): New functions.
41190         (main): Accept to more arguments: SpecialCasing.txt and
41191         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41192         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41193         Output mapping for casefolding.
41194
41195         * lib/unicase.h: Include stdbool.h, uninorm.h.
41196         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41197         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41198         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41199         arguments.
41200         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41201         resultp arguments.
41202         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41203         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41204         resultp arguments.
41205         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41206         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41207         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41208         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41209         declarations.
41210         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41211
41212 2009-03-08  Bruno Haible  <bruno@clisp.org>
41213
41214         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41215         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41216         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41217         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41218
41219 2009-03-07  Bruno Haible  <bruno@clisp.org>
41220
41221         Adjust u*_normcmp, u*_normcoll API.
41222         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41223         u16_normcoll, u32_normcoll): Change failure conventions.
41224         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41225         errno and return -1.
41226         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41227
41228 2009-03-07  Bruno Haible  <bruno@clisp.org>
41229
41230         Tests for module 'uninorm/u32-normcoll'.
41231         * modules/uninorm/u32-normcoll-tests: New file.
41232         * tests/uninorm/test-u32-normcoll.c: New file.
41233
41234         Tests for module 'uninorm/u16-normcoll'.
41235         * modules/uninorm/u16-normcoll-tests: New file.
41236         * tests/uninorm/test-u16-normcoll.c: New file.
41237
41238         Tests for module 'uninorm/u8-normcoll'.
41239         * modules/uninorm/u8-normcoll-tests: New file.
41240         * tests/uninorm/test-u8-normcoll.c: New file.
41241
41242 2009-03-07  Bruno Haible  <bruno@clisp.org>
41243
41244         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41245         tests/uninorm/test-u32-normcmp.c.
41246         * tests/uninorm/test-u32-normcmp.c: Include it.
41247         (test_nonascii): New function, extracted from main. Add some more
41248         tests.
41249         (main): Invoke test_ascii and test_nonascii.
41250         * modules/uninorm/u32-normcmp-tests (Files): Add
41251         tests/uninorm/test-u32-normcmp.h.
41252         (Depends-on): Remove uninorm/u32-normcmp.
41253
41254         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41255         tests/uninorm/test-u16-normcmp.c.
41256         * tests/uninorm/test-u16-normcmp.c: Include it.
41257         (test_nonascii): New function, extracted from main. Add some more
41258         tests.
41259         (main): Invoke test_ascii and test_nonascii.
41260         * modules/uninorm/u16-normcmp-tests (Files): Add
41261         tests/uninorm/test-u16-normcmp.h.
41262         (Depends-on): Remove uninorm/u16-normcmp.
41263
41264         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41265         tests/uninorm/test-u8-normcmp.c.
41266         * tests/uninorm/test-u8-normcmp.c: Include it.
41267         (test_nonascii): New function, extracted from main. Add some more
41268         tests.
41269         (main): Invoke test_ascii and test_nonascii.
41270         * modules/uninorm/u8-normcmp-tests (Files): Add
41271         tests/uninorm/test-u8-normcmp.h.
41272         (Depends-on): Remove uninorm/u8-normcmp.
41273
41274 2009-03-07  Bruno Haible  <bruno@clisp.org>
41275
41276         New module 'uninorm/u32-normcoll'.
41277         * lib/uninorm/u32-normcoll.c: New file.
41278         * modules/uninorm/u32-normcoll: New file.
41279
41280         New module 'uninorm/u16-normcoll'.
41281         * lib/uninorm/u16-normcoll.c: New file.
41282         * modules/uninorm/u16-normcoll: New file.
41283
41284         New module 'uninorm/u8-normcoll'.
41285         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41286         declarations.
41287         * lib/uninorm/u8-normcoll.c: New file.
41288         * lib/uninorm/u-normcoll.h: New file.
41289         * modules/uninorm/u8-normcoll: New file.
41290
41291         New module 'uninorm/u32-normxfrm'.
41292         * lib/uninorm/u32-normxfrm.c: New file.
41293         * modules/uninorm/u32-normxfrm: New file.
41294
41295         New module 'uninorm/u16-normxfrm'.
41296         * lib/uninorm/u16-normxfrm.c: New file.
41297         * modules/uninorm/u16-normxfrm: New file.
41298
41299         New module 'uninorm/u8-normxfrm'.
41300         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41301         declarations.
41302         * lib/uninorm/u8-normxfrm.c: New file.
41303         * lib/uninorm/u-normxfrm.h: New file.
41304         * modules/uninorm/u8-normxfrm: New file.
41305
41306 2009-03-07  Bruno Haible  <bruno@clisp.org>
41307
41308         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41309         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41310         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41311
41312 2009-03-07  Bruno Haible  <bruno@clisp.org>
41313
41314         New module 'memxfrm'.
41315         * lib/memxfrm.h: New file.
41316         * lib/memxfrm.c: New file.
41317         * modules/memxfrm: New file.
41318
41319 2009-03-07  Bruno Haible  <bruno@clisp.org>
41320
41321         New module 'memcmp2'.
41322         * lib/memcmp2.h: New file.
41323         * lib/memcmp2.c: New file.
41324         * modules/memcmp2: New file.
41325
41326 2009-03-07  Bruno Haible  <bruno@clisp.org>
41327
41328         Tests for module 'uninorm/decomposing-form'.
41329         * modules/uninorm/decomposing-form-tests: New file.
41330         * tests/uninorm/test-decomposing-form.c: New file.
41331
41332         New module 'uninorm/decomposing-form'.
41333         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41334         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41335         Add 'decomposing_variant' field.
41336         * lib/uninorm/decomposing-form.c: New file.
41337         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41338         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41339         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41340         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41341         * modules/uninorm/decomposing-form: New file.
41342         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41343         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41344
41345 2009-03-07  Bruno Haible  <bruno@clisp.org>
41346
41347         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41348         strings.
41349
41350 2009-03-06  Bruno Haible  <bruno@clisp.org>
41351
41352         Tests for module 'uninorm/u32-normcmp'.
41353         * tests/uninorm/test-u32-normcmp.c: New file.
41354         * modules/uninorm/u32-normcmp-tests: New file.
41355
41356         Tests for module 'uninorm/u16-normcmp'.
41357         * tests/uninorm/test-u16-normcmp.c: New file.
41358         * modules/uninorm/u16-normcmp-tests: New file.
41359
41360         Tests for module 'uninorm/u8-normcmp'.
41361         * tests/uninorm/test-u8-normcmp.c: New file.
41362         * modules/uninorm/u8-normcmp-tests: New file.
41363
41364         New module 'uninorm/u32-normcmp'.
41365         * lib/uninorm/u32-normcmp.c: New file.
41366         * modules/uninorm/u32-normcmp: New file.
41367
41368         New module 'uninorm/u16-normcmp'.
41369         * lib/uninorm/u16-normcmp.c: New file.
41370         * modules/uninorm/u16-normcmp: New file.
41371
41372         New module 'uninorm/u8-normcmp'.
41373         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41374         declarations.
41375         * lib/uninorm/u8-normcmp.c: New file.
41376         * lib/uninorm/u-normcmp.h: New file.
41377         * modules/uninorm/u8-normcmp: New file.
41378
41379 2009-03-06  Bruno Haible  <bruno@clisp.org>
41380
41381         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41382         Reported by Eric Blake.
41383
41384 2009-03-06  Eric Blake  <ebb9@byu.net>
41385             Bruno Haible  <bruno@clisp.org>
41386
41387         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41388         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41389         condition.
41390         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41391         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41392         condition.
41393         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41394
41395 2009-03-06  Eric Blake  <ebb9@byu.net>
41396
41397         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41398         to avoid compiler warnings.
41399         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41400
41401 2009-03-05  Bruno Haible  <bruno@clisp.org>
41402
41403         * tests/test-ftell.c (main): Disable test beyond end of file on
41404         FreeMiNT.
41405         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41406
41407 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41408
41409         * lib/filevercmp.c: Move hidden files up in ordering.
41410         * tests/test-filevercmp.c: Add tests for hidden files.
41411
41412 2009-03-04  Bruno Haible  <bruno@clisp.org>
41413
41414         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41415         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41416         AM_CFLAGS.
41417         Reported by Simon Josefsson.
41418
41419 2009-03-03  Bruno Haible  <bruno@clisp.org>
41420
41421         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41422         Reported by Simon Josefsson.
41423
41424         * doc/ld-version-script.texi: Update node reference.
41425
41426 2009-03-03  Bruno Haible  <bruno@clisp.org>
41427
41428         * modules/visibility (License): Change to 'unlimited'.
41429         Suggested by Simon Josefsson.
41430
41431 2009-03-03  Jim Meyering  <meyering@redhat.com>
41432
41433         unlinkdir: cannot_unlink_dir may modify process state
41434         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41435         it's neither thread-safe nor appropriate for use in a library.
41436
41437 2009-03-03  Eric Blake  <ebb9@byu.net>
41438
41439         test-closein: silence test under Darwin
41440         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41441         care if it dies from EPIPE or EBADF.
41442
41443 2009-03-03  Bruno Haible  <bruno@clisp.org>
41444
41445         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41446         earlier.
41447         * doc/visibility.texi: Fix @node and @section.
41448
41449 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41450
41451         * doc/gnulib.texi: Link to sections for ld version script and
41452         visibility.
41453         * doc/visibility.texi: Add @node and @section.
41454         * modules/ld-version-script: New module.
41455         * m4/ld-version-script.m4: New file.
41456         * doc/ld-version-script.texi: New file.
41457
41458 2009-03-02  David Lutterkort  <lutter@redhat.com>
41459
41460         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41461         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41462
41463 2009-03-02  Bruno Haible  <bruno@clisp.org>
41464
41465         * doc/visibility.texi: Mention libtool's -export-symbols option.
41466
41467 2009-03-02  Jim Meyering  <meyering@redhat.com>
41468
41469         announce-gen: new option: --no-print-checksums
41470         * build-aux/announce-gen (usage): Describe it.
41471         (print_checksums): Print a newline here, not in the [*] footnote.
41472         (main): Honor it.
41473
41474 2009-03-01  Bruno Haible  <bruno@clisp.org>
41475
41476         Use socklen_t in the native Windows replacements prototypes.
41477         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41478         instead of 'int'.
41479         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41480         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41481         * modules/getsockopt (Depends-on): Add socklen.
41482         * modules/setsockopt (Depends-on): Add socklen.
41483
41484 2009-03-01  Bruno Haible  <bruno@clisp.org>
41485
41486         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41487         least 4.2.
41488
41489 2009-03-01  Eric Blake  <ebb9@byu.net>
41490             Bruno Haible  <bruno@clisp.org>
41491
41492         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41493         error messages.
41494         * lib/wait-process.c (wait_subprocess): Omit error message about
41495         deadly signal sent to the child of termsigp != NULL.
41496
41497 2009-03-01  Eric Blake  <ebb9@byu.net>
41498
41499         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41500
41501 2009-03-01  Bruno Haible  <bruno@clisp.org>
41502
41503         Avoid a gcc warning.
41504         * tests/test-sched.c (b): Make global.
41505         Reported by Eric Blake.
41506
41507 2009-01-19  Martin Lambers  <marlam@marlam.de>
41508
41509         Provide POSIX semantics for socket timeout options on W32.
41510         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41511         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41512         * modules/setsockopt: Depend on sys_time module for struct timeval.
41513         * modules/getsockopt: Depend on sys_time module for struct timeval.
41514
41515 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41516
41517         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41518         __USE_GNU, for consistency with netdb.in.h.
41519         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41520
41521 2009-03-01  Bruno Haible  <bruno@clisp.org>
41522
41523         More support for FreeMiNT.
41524         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41525         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41526
41527 2009-03-01  Bruno Haible  <bruno@clisp.org>
41528
41529         More support for FreeMiNT.
41530         * lib/fpurge.c (fpurge): Correct last commit.
41531         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41532
41533 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41534
41535         Fix unportable awk script in vc-list-files.
41536         * build-aux/vc-list-files: In the replacement awk script, use
41537         substr with a second argument of 1, not zero.
41538         Report by Simon Josefsson.
41539
41540 2009-02-28  Bruno Haible  <bruno@clisp.org>
41541
41542         More support for FreeMiNT.
41543         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41544         to FreeMiNT today.
41545         * lib/fwriting.c (fwriting): Likewise.
41546         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41547
41548 2009-02-28  Bruno Haible  <bruno@clisp.org>
41549
41550         * tests/test-freadseek.c (main): Disable test beyond end of file on
41551         FreeMiNT.
41552         * tests/test-ftello.c (main): Likewise.
41553         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41554
41555 2009-02-28  Bruno Haible  <bruno@clisp.org>
41556
41557         Add tentative support for FreeMiNT.
41558         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41559         * lib/fpurge.c (fpurge): Likewise.
41560         * lib/freadable.c (freadable): Likewise.
41561         * lib/freading.c (freading): Likewise.
41562         * lib/freadptr.c (freadptr): Likewise.
41563         * lib/freadseek.c (freadptrinc): Likewise.
41564         * lib/fseeko.c (rpl_fseeko): Likewise.
41565         * lib/fseterr.c (fseterr): Likewise.
41566         * lib/fwritable.c (fwritable): Likewise.
41567         * lib/fwriting.c (fwriting): Likewise.
41568         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41569         Hourihane.
41570         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41571
41572 2009-02-28  Bruno Haible  <bruno@clisp.org>
41573
41574         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41575         SIGCHLD.
41576         Reported by Jim Meyering.
41577
41578 2009-02-28  Bruno Haible  <bruno@clisp.org>
41579
41580         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41581         Mention the results of these tests on various platforms.
41582         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41583         order.
41584         * doc/posix-functions/printf.texi: Likewise.
41585         * doc/posix-functions/snprintf.texi: Likewise.
41586         * doc/posix-functions/sprintf.texi: Likewise.
41587         * doc/posix-functions/vfprintf.texi: Likewise.
41588         * doc/posix-functions/vprintf.texi: Likewise.
41589         * doc/posix-functions/vsnprintf.texi: Likewise.
41590         * doc/posix-functions/vsprintf.texi: Likewise.
41591         * doc/glibc-functions/obstack_printf.texi: Likewise.
41592         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41593
41594 2009-02-28  Bruno Haible  <bruno@clisp.org>
41595
41596         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41597         Reported by Loïc Minier <lool@dooz.org>.
41598
41599 2009-02-27  Bruno Haible  <bruno@clisp.org>
41600
41601         * gnulib-tool (func_import): Make the sed expression used to create the
41602         sed script for updating the .gitignore file POSIX compliant.
41603         Reported by Eric Blake.
41604
41605 2009-02-27  Bruno Haible  <bruno@clisp.org>
41606
41607         * gnulib-tool (sed): Don't alias as "sed --posix".
41608         Reported by Eric Blake.
41609
41610 2009-02-27  Bruno Haible  <bruno@clisp.org>
41611
41612         Avoid test link errors.
41613         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41614         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41615         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41616         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41618
41619 2009-02-27  Bruno Haible  <bruno@clisp.org>
41620
41621         Avoid spurious "(cached)" in configure output.
41622         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41623         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41624         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41625         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41626         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41627         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41628         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41629         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41630         Reported by Eric Blake.
41631
41632 2009-02-27  Eric Blake  <ebb9@byu.net>
41633
41634         printf: fix regression in previous patch
41635         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41636
41637 2009-02-27  Bruno Haible  <bruno@clisp.org>
41638
41639         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41640         value.
41641         * lib/stdint.in.h: Likewise.
41642         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41643
41644 2009-02-27  Eric Blake  <ebb9@byu.net>
41645
41646         doc: mention more functions added in cygwin 1.7.0
41647         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41648         addition.
41649         * doc/posix-functions/open_wmemstream.texi: Likewise.
41650         * doc/posix-functions/wcsnlen.texi: Likewise.
41651         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41652         * doc/posix-functions/wcstod.texi: Likewise.
41653         * doc/posix-functions/wcstof.texi: Likewise.
41654         * doc/posix-functions/wcstoimax.texi: Likewise.
41655         * doc/posix-functions/wcstok.texi: Likewise.
41656         * doc/posix-functions/wcstoumax.texi: Likewise.
41657
41658         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41660         * doc/posix-functions/fprintf.texi: Update.
41661         * doc/posix-functions/printf.texi: Update.
41662         * doc/posix-functions/snprintf.texi: Update.
41663         * doc/posix-functions/sprintf.texi: Update.
41664         * doc/posix-functions/vfprintf.texi: Update.
41665         * doc/posix-functions/vprintf.texi: Update.
41666         * doc/posix-functions/vsnprintf.texi: Update.
41667         * doc/posix-functions/vsprintf.texi: Update.
41668         * doc/glibc-functions/obstack_printf.texi: Update.
41669         * doc/glibc-functions/obstack_vprintf.texi: Update.
41670
41671 2009-02-26  Eric Blake  <ebb9@byu.net>
41672
41673         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41674         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41675         compilation bug by using runtime conversion.
41676         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41677         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41678         * modules/ceill-tests (Files): Use nan.h.
41679         * modules/floorl-tests (Files): Likewise.
41680         * modules/frexpl-tests (Files): Likewise.
41681         * modules/isnanl-tests (Files): Likewise.
41682         * modules/ldexpl-tests (Files): Likewise.
41683         * modules/roundl-tests (Files): Likewise.
41684         * modules/truncl-tests (Files): Likewise.
41685         * tests/test-ceill.c (main): Use a working NaN.
41686         * tests/test-floorl.c (main): Likewise.
41687         * tests/test-frexpl.c (main): Likewise.
41688         * tests/test-isnan.c (test_long_double): Likewise.
41689         * tests/test-isnanl.h (main): Likewise.
41690         * tests/test-ldexpl.h (main): Likewise.
41691         * tests/test-roundl.h (main): Likewise.
41692         * tests/test-truncl.h (main): Likewise.
41693         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41694
41695 2009-02-26  Eric Blake  <ebb9@byu.net>
41696             Bruno Haible  <bruno@clisp.org>
41697
41698         Work around a *printf bug with %ls on Solaris.
41699         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41700         precision is specified, sprintf stops converting the wide string
41701         argument when the number of bytes that have been produced by this
41702         conversion equals or exceeds the precision.
41703         * doc/posix-functions/fprintf.texi: Update.
41704         * doc/posix-functions/printf.texi: Update.
41705         * doc/posix-functions/snprintf.texi: Update.
41706         * doc/posix-functions/sprintf.texi: Update.
41707         * doc/posix-functions/vfprintf.texi: Update.
41708         * doc/posix-functions/vprintf.texi: Update.
41709         * doc/posix-functions/vsnprintf.texi: Update.
41710         * doc/posix-functions/vsprintf.texi: Update.
41711         * doc/glibc-functions/obstack_printf.texi: Update.
41712         * doc/glibc-functions/obstack_vprintf.texi: Update.
41713
41714 2009-02-26  Eric Blake  <ebb9@byu.net>
41715
41716         stdlib: favor compiler check of random.h
41717         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41718         to avoid an ObjC random.h installed by Swarm.
41719
41720 2009-02-26  Bruno Haible  <bruno@clisp.org>
41721
41722         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41723         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41724         Reported by Gary V. Vaughan <gary@gnu.org>.
41725
41726 2009-02-26  Bruno Haible  <bruno@clisp.org>
41727
41728         Fix *printf behaviour regarding the %ls directive.
41729         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41730         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41731         NEED_PRINTF_DIRECTIVE_LS.
41732         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41733         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41734         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41735         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41736         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41737         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41738         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41739         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41740         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41741         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41742         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41743         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41744         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41745         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41746         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41747         * doc/posix-functions/fprintf.texi: Update.
41748         * doc/posix-functions/printf.texi: Update.
41749         * doc/posix-functions/snprintf.texi: Update.
41750         * doc/posix-functions/sprintf.texi: Update.
41751         * doc/posix-functions/vfprintf.texi: Update.
41752         * doc/posix-functions/vprintf.texi: Update.
41753         * doc/posix-functions/vsnprintf.texi: Update.
41754         * doc/posix-functions/vsprintf.texi: Update.
41755         * doc/glibc-functions/obstack_printf.texi: Update.
41756         * doc/glibc-functions/obstack_vprintf.texi: Update.
41757         Reported by Eric Blake.
41758
41759 2009-02-25  Bruno Haible  <bruno@clisp.org>
41760
41761         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41762         with known value.
41763         Reported by Gary V. Vaughan <gary@gnu.org>.
41764
41765 2009-02-25  Bruno Haible  <bruno@clisp.org>
41766
41767         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41768         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41769         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41770         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41771         Reported by Gary V. Vaughan <gary@gnu.org>.
41772
41773 2009-02-25  Bruno Haible  <bruno@clisp.org>
41774
41775         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41776         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41777         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41778         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41779         Reported by Gary V. Vaughan <gary@gnu.org>.
41780
41781 2009-02-25  Eric Blake  <ebb9@byu.net>
41782
41783         tests: skip fseek/ftell tests if ungetc is broken
41784         * m4/ungetc.m4: New file.
41785         * modules/fseek-tests: Split test, so ungetc dependency is
41786         separate from rest of test.
41787         * modules/fseeko-tests: Likewise.
41788         * modules/ftell-tests: Likewise.
41789         * modules/ftello-tests: Likewise.
41790         * tests/test-fseek.c (main): Isolate ungetc dependency.
41791         * tests/test-fseeko.c (main): Likewise.
41792         * tests/test-ftell.c (main): Likewise.
41793         * tests/test-ftello.c (main): Likewise.
41794         * tests/test-fseek2.sh: New file.
41795         * tests/test-fseeko2.sh: Likewise.
41796         * tests/test-ftell2.sh: Likewise.
41797         * tests/test-ftello2.sh: Likewise.
41798
41799 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41800
41801         test-getaddrinfo: fix usage of skip return code 77
41802         * tests/test-gettaddrinfo.c: Return skip code 77 only
41803         for first occurance of skip (4x77 is not 77)
41804
41805 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41806
41807         strtod: avoid C99 decl-after-statement
41808         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41809
41810 2009-02-24  Eric Blake  <ebb9@byu.net>
41811
41812         strtod: detect HP-UX 11.31 bug
41813         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41814         Reported by Gary V. Vaughan.
41815
41816 2009-02-23  Bruno Haible  <bruno@clisp.org>
41817
41818         Fix invalid read past end of memory block.
41819         * lib/vasnprintf.c (DCHAR_SET): Define.
41820         (local_wcslen): Define only when needed.
41821         (local_strnlen, local_wcsnlen): New functions.
41822         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41823         directives that involve a conversion ourselves.
41824         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41825         wcsnlen, mbrtowc, wcrtomb.
41826         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41827         * tests/test-vasprintf-posix.c (test_function): Likewise.
41828         * tests/test-snprintf-posix.h (test_function): Likewise.
41829         * tests/test-sprintf-posix.h (test_function): Likewise.
41830         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41831
41832 2009-02-22  Bruno Haible  <bruno@clisp.org>
41833
41834         Implement new clarified decomposition of Hangul syllables.
41835         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41836         of type LTV, return only a pairwise decomposition.
41837         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41838         Likewise.
41839         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41840         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41841         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41842
41843 2009-02-22  Bruno Haible  <bruno@clisp.org>
41844
41845         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41846         zero-length results and shrink excess allocated memory.
41847         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41848         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41849         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41850         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41851         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41852         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41853         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41854         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41855         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41856         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41857         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41858         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41859
41860 2009-02-21  Bruno Haible  <bruno@clisp.org>
41861
41862         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41863         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41864         spaces after a period. Put a space between a macro name and its
41865         argument list. Trivial rewordings.
41866         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41867         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41868         (main): Return 0 explicitly.
41869
41870 2009-02-21  Bruno Haible  <bruno@clisp.org>
41871
41872         Tests for module 'uninorm/filter'.
41873         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41874         * modules/uninorm/filter-tests: New file.
41875
41876         New module 'uninorm/filter'.
41877         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41878         uninorm_filter_flush, uninorm_filter_free): New declarations.
41879         * lib/uninorm/uninorm-filter.c: New file.
41880         * modules/uninorm/filter: New file.
41881
41882 2009-02-21  Bruno Haible  <bruno@clisp.org>
41883
41884         Tests for module 'uninorm/nfkc'.
41885         * tests/uninorm/test-nfkc.c: New file.
41886         * tests/uninorm/test-u8-nfkc.c: New file.
41887         * tests/uninorm/test-u16-nfkc.c: New file.
41888         * tests/uninorm/test-u32-nfkc.c: New file.
41889         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41890         * tests/uninorm/test-u32-nfkc-big.c: New file.
41891         * modules/uninorm/nfkc-tests: New file.
41892
41893         New module 'uninorm/nfkc'.
41894         * lib/uninorm/nfkc.c: New file.
41895         * modules/uninorm/nfkc: New file.
41896
41897         Tests for module 'uninorm/nfkd'.
41898         * tests/uninorm/test-nfkd.c: New file.
41899         * tests/uninorm/test-u8-nfkd.c: New file.
41900         * tests/uninorm/test-u16-nfkd.c: New file.
41901         * tests/uninorm/test-u32-nfkd.c: New file.
41902         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41903         * tests/uninorm/test-u32-nfkd-big.c: New file.
41904         * modules/uninorm/nfkd-tests: New file.
41905
41906         New module 'uninorm/nfkd'.
41907         * lib/uninorm/nfkd.c: New file.
41908         * modules/uninorm/nfkd: New file.
41909
41910         Tests for module 'uninorm/nfc'.
41911         * tests/uninorm/test-nfc.c: New file.
41912         * tests/uninorm/test-u8-nfc.c: New file.
41913         * tests/uninorm/test-u16-nfc.c: New file.
41914         * tests/uninorm/test-u32-nfc.c: New file.
41915         * tests/uninorm/test-u32-nfc-big.sh: New file.
41916         * tests/uninorm/test-u32-nfc-big.c: New file.
41917         * modules/uninorm/nfc-tests: New file.
41918
41919         New module 'uninorm/nfc'.
41920         * lib/uninorm/nfc.c: New file.
41921         * modules/uninorm/nfc: New file.
41922
41923         Tests for module 'uninorm/nfd'.
41924         * tests/uninorm/test-nfd.c: New file.
41925         * tests/uninorm/test-u8-nfd.c: New file.
41926         * tests/uninorm/test-u16-nfd.c: New file.
41927         * tests/uninorm/test-u32-nfd.c: New file.
41928         * tests/uninorm/test-u32-nfd-big.sh: New file.
41929         * tests/uninorm/test-u32-nfd-big.c: New file.
41930         * tests/uninorm/test-u32-normalize-big.h: New file.
41931         * tests/uninorm/test-u32-normalize-big.c: New file.
41932         * tests/uninorm/NormalizationTest.txt: New file, created from
41933         Unicode 5.1.0 NormalizationTest.txt.
41934         * modules/uninorm/nfd-tests: New file.
41935
41936         New module 'uninorm/nfd'.
41937         * lib/uninorm/nfd.c: New file.
41938         * modules/uninorm/nfd: New file.
41939
41940         New module 'uninorm/u32-normalize'.
41941         * lib/uninorm/u32-normalize.c: New file.
41942         * modules/uninorm/u32-normalize: New file.
41943
41944         New module 'uninorm/u16-normalize'.
41945         * lib/uninorm/u16-normalize.c: New file.
41946         * modules/uninorm/u16-normalize: New file.
41947
41948         New module 'uninorm/u8-normalize'.
41949         * lib/uninorm/u8-normalize.c: New file.
41950         * lib/uninorm/normalize-internal.h: New file.
41951         * lib/uninorm/u-normalize-internal.h: New file.
41952         * modules/uninorm/u8-normalize: New file.
41953
41954         New module 'uninorm/decompose-internal'.
41955         * lib/uninorm/decompose-internal.c: New file.
41956         * modules/uninorm/decompose-internal: New file.
41957
41958         Tests for module 'uninorm/composition'.
41959         * tests/uninorm/test-composition.c: New file.
41960         * modules/uninorm/composition-tests: New file.
41961
41962         New module 'uninorm/composition'.
41963         * lib/uninorm/composition.c: New file.
41964         * lib/uninorm/composition-table.gperf: New file, generated by
41965         gen-uni-tables.
41966         * modules/uninorm/composition: New file.
41967
41968         Tests for module 'uninorm/compat-decomposition'.
41969         * tests/uninorm/test-compat-decomposition.c: New file.
41970         * modules/uninorm/compat-decomposition-tests: New file.
41971
41972         New module 'uninorm/compat-decomposition'.
41973         * lib/uninorm/decompose-internal.h: New file.
41974         * lib/uninorm/compat-decomposition.c: New file.
41975         * modules/uninorm/compat-decomposition: New file.
41976
41977         Tests for module 'uninorm/canonical-decomposition'.
41978         * tests/uninorm/test-canonical-decomposition.c: New file.
41979         * modules/uninorm/canonical-decomposition-tests: New file.
41980
41981         New module 'uninorm/canonical-decomposition'.
41982         * lib/uninorm/canonical-decomposition.c: New file.
41983         * modules/uninorm/canonical-decomposition: New file.
41984
41985         Tests for module 'uninorm/decomposition'.
41986         * tests/uninorm/test-decomposition.c: New file.
41987         * modules/uninorm/decomposition-tests: New file.
41988
41989         New module 'uninorm/decomposition'.
41990         * lib/uninorm/decomposition.c: New file.
41991         * modules/uninorm/decomposition: New file.
41992
41993         New module 'uninorm/decomposition-table'.
41994         * lib/uninorm/decomposition-table.h: New file.
41995         * lib/uninorm/decomposition-table.c: New file.
41996         * lib/uninorm/decomposition-table1.h: New file, generated by
41997         gen-uni-tables.
41998         * lib/uninorm/decomposition-table2.h: New file, generated by
41999         gen-uni-tables.
42000         * modules/uninorm/decomposition-table: New file.
42001
42002         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42003         (UC_DECOMP_*): New enumeration items.
42004         (get_decomposition): New function.
42005         (struct decomp_table): New type.
42006         (output_decomposition, output_decomposition_tables): New functions.
42007         (unicode_composition_exclusions): New variable.
42008         (fill_composition_exclusions, debug_output_composition_tables): New
42009         functions.
42010         (main): Accept one more argument. Invoke fill_composition_exclusions.
42011         Output decomposition and composition tables.
42012
42013         New module 'uninorm/base'.
42014         * lib/uninorm.h: New file.
42015         * lib/unictype.h: Update comment.
42016         * modules/uninorm/base: New file.
42017
42018 2009-02-21  David Lutterkort  <lutter@redhat.com>
42019
42020         Tests for module 'safe-alloc'.
42021         * tests/test-safe-alloc.c: New file.
42022         * modules/safe-alloc-tests: New file.
42023
42024         New module 'safe-alloc'.
42025         * lib/safe-alloc.h: New file.
42026         * lib/safe-alloc.c: New file.
42027         * m4/safe-alloc.m4: New file.
42028         * modules/safe-alloc: New file.
42029         * doc/safe-alloc.texi: New file.
42030         * doc/gnulib.texi: Include it.
42031         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42032         safe-alloc.
42033
42034 2009-02-18  Bruno Haible  <bruno@clisp.org>
42035
42036         Fix link error on non-glibc systems.
42037         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42038         variable.
42039         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42040
42041 2009-02-18  Jim Meyering  <meyering@redhat.com>
42042
42043         fts: avoid used-uninitialized error due to recent change
42044         * lib/fts.c (fts_read): Guard uses of the new member,
42045         parent->fts_n_dirs_remaining, since it's not relevant for
42046         the parent of a directory specified on the command-line.
42047
42048 2009-02-17  James Youngman  <jay@gnu.org>
42049             Bruno Haible  <bruno@clisp.org>
42050
42051         * m4/include_next.m4: Reformulate comment.
42052
42053 2009-02-16  Jim Meyering  <meyering@redhat.com>
42054
42055         fts: add #if guards so that the fts_lgpl module still builds
42056         * lib/fts.c: Guard just-added hash-table-using parts with
42057         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42058         Reported by Simon Josefsson.
42059
42060 2009-02-15  Bruno Haible  <bruno@clisp.org>
42061
42062         * modules/array-mergesort-tests: New file.
42063         * tests/test-array-mergesort.c: New file.
42064
42065         New module 'array-mergesort'.
42066         * modules/array-mergesort: New file.
42067         * lib/array-mergesort.h: New file.
42068
42069 2009-02-15  Bruno Haible  <bruno@clisp.org>
42070
42071         Fix 2009-02-07 commit.
42072         * lib/gen-uni-tables.c (output_predicate, output_category,
42073         output_combclass, output_bidi_category, output_decimal_digit,
42074         output_digit, output_numeric, output_mirror, output_scripts,
42075         output_ident_category, output_simple_mapping): Fix format directives.
42076         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42077
42078 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42079
42080         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42081         fixes are available from IBM.
42082
42083 2009-02-13  Jim Meyering  <meyering@redhat.com>
42084
42085         fts: arrange not to stat non-directories in more cases
42086         This makes GNU find (when it doesn't need to stat each file)
42087         *much* more efficient at traversing reiserfs file systems.
42088         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42089         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42090         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42091         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42092         (leaf_optimization_applies): New function.
42093         (LCO_hash, LCO_compare): New helper functions.
42094         (link_count_optimize_ok): New function.
42095         (fts_stat): Initialize new member (if dir).
42096         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42097         we've just stat'ed a directory.  Skip the stat call when possible.
42098         ---
42099         Note this AFS-related exchange:
42100         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42101         and note find's pioctl call in find/fstype.c.
42102         But that is necessary only if you want to enable the
42103         optimization for AFS, and for now, I don't.
42104
42105         fts: move a function definition "up" (no semantic change)
42106         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42107         "up" to precede upcoming use of a related function.
42108
42109 2009-02-11  Jim Meyering  <meyering@redhat.com>
42110
42111         fts: correct internal computation of nlinks (optimization-related)
42112         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42113         whether the current entry is a directory, so don't test it.
42114
42115 2009-02-10  Bruno Haible  <bruno@clisp.org>
42116
42117         Tests for module 'uniwbrk/ulc-wordbreaks'.
42118         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42119         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42120         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42121
42122         Tests for module 'uniwbrk/u32-wordbreaks'.
42123         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42124         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42125
42126         Tests for module 'uniwbrk/u16-wordbreaks'.
42127         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42128         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42129
42130         Tests for module 'uniwbrk/u8-wordbreaks'.
42131         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42132         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42133
42134 2009-02-10  Bruno Haible  <bruno@clisp.org>
42135
42136         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42137         property.
42138         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42139         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42140         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42141
42142 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42143
42144         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42145         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42146
42147 2009-02-10  Bruno Haible  <bruno@clisp.org>
42148
42149         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42150         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42151         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42152         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42153         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42154         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42155
42156 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42157
42158         * lib/sockets.h (gl_fd_to_handle): New function.
42159
42160         * tests/test-sockets.c: Call gl_fd_to_handle.
42161
42162 2009-02-09  Bruno Haible  <bruno@clisp.org>
42163
42164         * doc/havelib.texi: Document the conventions on bi-arch systems.
42165
42166 2009-02-08  Bruno Haible  <bruno@clisp.org>
42167
42168         Document the AC_LIB_LINKFLAGS macro.
42169         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42170         * doc/gnulib.texi: Include it.
42171
42172 2009-02-08  Bruno Haible  <bruno@clisp.org>
42173
42174         Fix wrong order of sections, compared to TOC.
42175         * doc/gnulib.texi: Include relocatable-maint.texi after the
42176         "Regular expressions" node, not before.
42177
42178 2009-02-08  Bruno Haible  <bruno@clisp.org>
42179
42180         Tests for module 'unicase/totitle'.
42181         * modules/unicase/totitle-tests: New file.
42182
42183         Tests for module 'unicase/tolower'.
42184         * modules/unicase/tolower-tests: New file.
42185
42186         Tests for module 'unicase/toupper'.
42187         * modules/unicase/toupper-tests: New file.
42188         * tests/unicase/test-mapping-part1.h: New file.
42189         * tests/unicase/test-mapping-part2.h: New file.
42190
42191         New module 'unicase/totitle'.
42192         * modules/unicase/totitle: New file.
42193         * lib/unicase/totitle.c: New file.
42194
42195         New module 'unicase/tolower'.
42196         * modules/unicase/tolower: New file.
42197         * lib/unicase/tolower.c: New file.
42198
42199         New module 'unicase/toupper'.
42200         * modules/unicase/toupper: New file.
42201         * lib/unicase/toupper.c: New file.
42202         * lib/unicase/simple-mapping.h: New file.
42203
42204         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42205         (mapping_table): New structure.
42206         (output_simple_mapping): New function.
42207         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42208         * modules/gen-uni-tables (Description): Update.
42209         * lib/unicase/toupper.h: New file, automatically generated by
42210         gen-uni-tables.
42211         * lib/unicase/tolower.h: New file, automatically generated by
42212         gen-uni-tables.
42213         * lib/unicase/totitle.h: New file, automatically generated by
42214         gen-uni-tables.
42215         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42216         gen-uni-tables.
42217         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42218         gen-uni-tables.
42219         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42220         gen-uni-tables.
42221
42222         New module 'unicase/base'.
42223         * modules/unicase/base: New file.
42224         * lib/unicase.h: New file.
42225
42226 2009-02-08  Bruno Haible  <bruno@clisp.org>
42227
42228         New module 'uniwbrk/ulc-wordbreaks'.
42229         * modules/uniwbrk/ulc-wordbreaks: New file.
42230         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42231
42232         New module 'uniwbrk/u32-wordbreaks'.
42233         * modules/uniwbrk/u32-wordbreaks: New file.
42234         * lib/uniwbrk/u32-wordbreaks.c: New file.
42235
42236         New module 'uniwbrk/u16-wordbreaks'.
42237         * modules/uniwbrk/u16-wordbreaks: New file.
42238         * lib/uniwbrk/u16-wordbreaks.c: New file.
42239
42240         New module 'uniwbrk/u8-wordbreaks'.
42241         * modules/uniwbrk/u8-wordbreaks: New file.
42242         * lib/uniwbrk/u8-wordbreaks.c: New file.
42243         * lib/uniwbrk/u-wordbreaks.h: New file.
42244
42245         New module 'uniwbrk/table'.
42246         * modules/uniwbrk/table: New file.
42247         * lib/uniwbrk/wbrktable.h: New file.
42248         * lib/uniwbrk/wbrktable.c: New file.
42249
42250         New module 'uniwbrk/wordbreak-property'.
42251         * modules/uniwbrk/wordbreak-property: New file.
42252         * lib/uniwbrk/wordbreak-property.c: New file.
42253
42254         * lib/gen-uni-tables.c (WBP_*): New enum items.
42255         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42256         (unicode_org_wbp): New variable.
42257         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42258         New functions.
42259         (wbp_table): New structure.
42260         (output_wbp, output_wbrk_tables): New functions.
42261         (main): Accept additional argument. Invoke fill_org_wbp,
42262         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42263         output_wbrk_tables.
42264         * modules/gen-uni-tables (Description): Update.
42265         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42266         gen-uni-tables.
42267
42268         New module 'uniwbrk/base'.
42269         * modules/uniwbrk/base: New file.
42270         * lib/uniwbrk.h: New file.
42271
42272 2009-02-08  Bruno Haible  <bruno@clisp.org>
42273
42274         Update to Unicode 5.1.0.
42275         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42276         U+2185..U+2188.
42277         (is_property_default_ignorable_code_point): Don't include characters
42278         of category Cc or Cs and not-a-characters.
42279         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42280         U+0D79, U+109E, U+109F, U+A60C.
42281         * lib/unictype/bidi_of.h: Regenerated.
42282         * lib/unictype/blocks.h: Regenerated.
42283         * lib/unictype/categ_C.h: Regenerated.
42284         * lib/unictype/categ_Cf.h: Regenerated.
42285         * lib/unictype/categ_Cn.h: Regenerated.
42286         * lib/unictype/categ_L.h: Regenerated.
42287         * lib/unictype/categ_Ll.h: Regenerated.
42288         * lib/unictype/categ_Lm.h: Regenerated.
42289         * lib/unictype/categ_Lo.h: Regenerated.
42290         * lib/unictype/categ_Lu.h: Regenerated.
42291         * lib/unictype/categ_M.h: Regenerated.
42292         * lib/unictype/categ_Mc.h: Regenerated.
42293         * lib/unictype/categ_Me.h: Regenerated.
42294         * lib/unictype/categ_Mn.h: Regenerated.
42295         * lib/unictype/categ_N.h: Regenerated.
42296         * lib/unictype/categ_Nd.h: Regenerated.
42297         * lib/unictype/categ_Nl.h: Regenerated.
42298         * lib/unictype/categ_No.h: Regenerated.
42299         * lib/unictype/categ_P.h: Regenerated.
42300         * lib/unictype/categ_Pd.h: Regenerated.
42301         * lib/unictype/categ_Pe.h: Regenerated.
42302         * lib/unictype/categ_Pf.h: Regenerated.
42303         * lib/unictype/categ_Pi.h: Regenerated.
42304         * lib/unictype/categ_Po.h: Regenerated.
42305         * lib/unictype/categ_Ps.h: Regenerated.
42306         * lib/unictype/categ_S.h: Regenerated.
42307         * lib/unictype/categ_Sk.h: Regenerated.
42308         * lib/unictype/categ_Sm.h: Regenerated.
42309         * lib/unictype/categ_So.h: Regenerated.
42310         * lib/unictype/categ_of.h: Regenerated.
42311         * lib/unictype/combining.h: Regenerated.
42312         * lib/unictype/ctype_alnum.h: Regenerated.
42313         * lib/unictype/ctype_alpha.h: Regenerated.
42314         * lib/unictype/ctype_graph.h: Regenerated.
42315         * lib/unictype/ctype_lower.h: Regenerated.
42316         * lib/unictype/ctype_print.h: Regenerated.
42317         * lib/unictype/ctype_punct.h: Regenerated.
42318         * lib/unictype/ctype_upper.h: Regenerated.
42319         * lib/unictype/decdigit.h: Regenerated.
42320         * lib/unictype/digit.h: Regenerated.
42321         * lib/unictype/mirror.h: Regenerated.
42322         * lib/unictype/numeric.h: Regenerated.
42323         * lib/unictype/pr_alphabetic.h: Regenerated.
42324         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42325         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42326         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42327         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42328         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42329         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42330         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42331         * lib/unictype/pr_combining.h: Regenerated.
42332         * lib/unictype/pr_dash.h: Regenerated.
42333         * lib/unictype/pr_decimal_digit.h: Regenerated.
42334         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42335         * lib/unictype/pr_deprecated.h: Regenerated.
42336         * lib/unictype/pr_diacritic.h: Regenerated.
42337         * lib/unictype/pr_extender.h: Regenerated.
42338         * lib/unictype/pr_format_control.h: Regenerated.
42339         * lib/unictype/pr_grapheme_base.h: Regenerated.
42340         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42341         * lib/unictype/pr_grapheme_link.h: Regenerated.
42342         * lib/unictype/pr_id_continue.h: Regenerated.
42343         * lib/unictype/pr_id_start.h: Regenerated.
42344         * lib/unictype/pr_ideographic.h: Regenerated.
42345         * lib/unictype/pr_ignorable_control.h: Regenerated.
42346         * lib/unictype/pr_lowercase.h: Regenerated.
42347         * lib/unictype/pr_math.h: Regenerated.
42348         * lib/unictype/pr_numeric.h: Regenerated.
42349         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42350         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42351         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42352         * lib/unictype/pr_other_id_continue.h: Regenerated.
42353         * lib/unictype/pr_other_lowercase.h: Regenerated.
42354         * lib/unictype/pr_other_math.h: Regenerated.
42355         * lib/unictype/pr_punctuation.h: Regenerated.
42356         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42357         * lib/unictype/pr_soft_dotted.h: Regenerated.
42358         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42359         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42360         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42361         * lib/unictype/pr_uppercase.h: Regenerated.
42362         * lib/unictype/pr_xid_continue.h: Regenerated.
42363         * lib/unictype/pr_xid_start.h: Regenerated.
42364         * lib/unictype/pr_zero_width.h: Regenerated.
42365         * lib/unictype/scripts.h: Regenerated.
42366         * lib/unictype/scripts_byname.gperf: Regenerated.
42367         * lib/unictype/sy_java_ident.h: Regenerated.
42368         * lib/unilbrk/lbrkprop1.h: Regenerated.
42369         * lib/unilbrk/lbrkprop2.h: Regenerated.
42370         * tests/unictype/test-categ_C.c: Regenerated.
42371         * tests/unictype/test-categ_Cf.c: Regenerated.
42372         * tests/unictype/test-categ_Cn.c: Regenerated.
42373         * tests/unictype/test-categ_L.c: Regenerated.
42374         * tests/unictype/test-categ_Ll.c: Regenerated.
42375         * tests/unictype/test-categ_Lm.c: Regenerated.
42376         * tests/unictype/test-categ_Lo.c: Regenerated.
42377         * tests/unictype/test-categ_Lu.c: Regenerated.
42378         * tests/unictype/test-categ_M.c: Regenerated.
42379         * tests/unictype/test-categ_Mc.c: Regenerated.
42380         * tests/unictype/test-categ_Me.c: Regenerated.
42381         * tests/unictype/test-categ_Mn.c: Regenerated.
42382         * tests/unictype/test-categ_N.c: Regenerated.
42383         * tests/unictype/test-categ_Nd.c: Regenerated.
42384         * tests/unictype/test-categ_Nl.c: Regenerated.
42385         * tests/unictype/test-categ_No.c: Regenerated.
42386         * tests/unictype/test-categ_P.c: Regenerated.
42387         * tests/unictype/test-categ_Pd.c: Regenerated.
42388         * tests/unictype/test-categ_Pe.c: Regenerated.
42389         * tests/unictype/test-categ_Pf.c: Regenerated.
42390         * tests/unictype/test-categ_Pi.c: Regenerated.
42391         * tests/unictype/test-categ_Po.c: Regenerated.
42392         * tests/unictype/test-categ_Ps.c: Regenerated.
42393         * tests/unictype/test-categ_S.c: Regenerated.
42394         * tests/unictype/test-categ_Sk.c: Regenerated.
42395         * tests/unictype/test-categ_Sm.c: Regenerated.
42396         * tests/unictype/test-categ_So.c: Regenerated.
42397         * tests/unictype/test-ctype_alnum.c: Regenerated.
42398         * tests/unictype/test-ctype_alpha.c: Regenerated.
42399         * tests/unictype/test-ctype_graph.c: Regenerated.
42400         * tests/unictype/test-ctype_lower.c: Regenerated.
42401         * tests/unictype/test-ctype_print.c: Regenerated.
42402         * tests/unictype/test-ctype_punct.c: Regenerated.
42403         * tests/unictype/test-ctype_upper.c: Regenerated.
42404         * tests/unictype/test-decdigit.h: Regenerated.
42405         * tests/unictype/test-digit.h: Regenerated.
42406         * tests/unictype/test-numeric.h: Regenerated.
42407         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42408         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42409         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42410         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42411         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42412         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42413         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42414         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42415         * tests/unictype/test-pr_combining.c: Regenerated.
42416         * tests/unictype/test-pr_dash.c: Regenerated.
42417         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42418         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42419         * tests/unictype/test-pr_deprecated.c: Regenerated.
42420         * tests/unictype/test-pr_diacritic.c: Regenerated.
42421         * tests/unictype/test-pr_extender.c: Regenerated.
42422         * tests/unictype/test-pr_format_control.c: Regenerated.
42423         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42424         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42425         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42426         * tests/unictype/test-pr_id_continue.c: Regenerated.
42427         * tests/unictype/test-pr_id_start.c: Regenerated.
42428         * tests/unictype/test-pr_ideographic.c: Regenerated.
42429         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42430         * tests/unictype/test-pr_lowercase.c: Regenerated.
42431         * tests/unictype/test-pr_math.c: Regenerated.
42432         * tests/unictype/test-pr_numeric.c: Regenerated.
42433         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42434         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42435         Regenerated.
42436         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42437         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42438         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42439         * tests/unictype/test-pr_other_math.c: Regenerated.
42440         * tests/unictype/test-pr_punctuation.c: Regenerated.
42441         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42442         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42443         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42444         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42445         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42446         * tests/unictype/test-pr_uppercase.c: Regenerated.
42447         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42448         * tests/unictype/test-pr_xid_start.c: Regenerated.
42449         * tests/unictype/test-pr_zero_width.c: Regenerated.
42450
42451         Update to Unicode 5.1.0.
42452         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42453         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42454         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42455         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42456         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42457         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42458         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42459         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42460         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42461         (nonspacing_table_ind): Update.
42462         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42463
42464         Update to Unicode 5.1.0.
42465         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42466         code transform.
42467         * lib/uniname/uniname.c (unicode_character_name,
42468         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42469         * lib/uniname/uninames.h: Regenerated.
42470         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42471
42472 2009-02-07  Bruno Haible  <bruno@clisp.org>
42473
42474         Merge gen-ctype and gen-lbrk into a single program.
42475         * lib/gen-uni-tables.c: New file, incorporating
42476         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42477         Add directory prefixes to the names of the generated files.
42478         * lib/unictype/gen-ctype.c: Remove file.
42479         * lib/unilbrk/gen-lbrk.c: Remove file.
42480         * modules/gen-uni-tables: New file.
42481         * modules/unictype/gen-ctype: Remove file.
42482         * modules/unilbrk/gen-lbrk: Remove file.
42483
42484 2009-02-07  Bruno Haible  <bruno@clisp.org>
42485
42486         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42487
42488         New module 'unistr/u32-strcoll'.
42489         * modules/unistr/u32-strcoll: New file.
42490         * lib/unistr/u32-strcoll.c: New file.
42491
42492         New module 'unistr/u16-strcoll'.
42493         * modules/unistr/u16-strcoll: New file.
42494         * lib/unistr/u16-strcoll.c: New file.
42495
42496         New module 'unistr/u8-strcoll'.
42497         * modules/unistr/u8-strcoll: New file.
42498         * lib/unistr/u8-strcoll.c: New file.
42499         * lib/unistr/u-strcoll.h: New file.
42500
42501 2009-02-07  Bruno Haible  <bruno@clisp.org>
42502
42503         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42504         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42505         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42506         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42507         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42508         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42509
42510 2009-02-07  Bruno Haible  <bruno@clisp.org>
42511
42512         Make 64-bit clean.
42513         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42514         output_combclass, output_bidi_category, output_decimal_digit,
42515         output_digit, output_numeric, output_mirror, output_scripts,
42516         output_ident_category): Use proper width specifier in format strings.
42517
42518 2009-02-07  Bruno Haible  <bruno@clisp.org>
42519
42520         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42521         failure behaviour.
42522
42523 2009-02-07  Jim Meyering  <meyering@redhat.com>
42524
42525         regex: avoid compilation failure with upcoming gcc-4.4
42526         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42527         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42528         "... error: integer overflow in preprocessor expression".
42529
42530 2009-02-05  Ben Pfaff  <blp@gnu.org>
42531
42532         Fix link errors on Windows when close module is used.
42533         * modules/close: Add $(LIB_CLOSE) to Link section.
42534         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42535         $(LIB_CLOSE) on Windows.
42536
42537 2009-02-05  Jim Meyering  <meyering@redhat.com>
42538
42539         still avoid unused-parameter warnings, but do it cleanly
42540         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42541         (get_fs_usage): Cast to void instead.
42542         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42543         (dev_from_mount_options, read_file_system_list): Cast to void.
42544         Prompted by Bruno Haible.
42545
42546 2009-02-04  Jim Meyering  <meyering@redhat.com>
42547
42548         fsusage.c: correct copyright year
42549         * lib/fsusage.c: Reflect year in which the change is pushed into
42550
42551         avoid misc. warnings
42552         * lib/fsusage.c (UNUSED_PARAM): Define.
42553         (get_fs_usage): Mark parameter "disk" as unused.
42554         * lib/getugroups.c (getgrent): Use "void" in prototype.
42555         * lib/mountlist.c: Mark unused parameters.
42556         (read_file_system_list): Declare a local with "const".
42557         * lib/nanosleep.c (getnow): Declare static.
42558         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42559
42560         dirfd: set errno upon failure
42561         * lib/dirfd.c: Include <errno.h>.
42562         Set errno to ENOTSUP when returning -1.
42563         * modules/dirfd (Depends-on): Add errno.
42564         Suggested by John Kodis <kodis@comcast.net>.
42565
42566 2009-02-01  Bruno Haible  <bruno@clisp.org>
42567
42568         Don't assume sizeof (long) >= sizeof (void *).
42569         * lib/memcmp.c: Include stdint.h.
42570         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42571         srcp2 to 'const byte *'.
42572         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42573         types to uintptr_t.
42574         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42575         * modules/memcmp (Depends-on): Add stdint.
42576         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42577
42578 2009-01-30  Eric Blake  <ebb9@byu.net>
42579
42580         fix more require-before-expand issues
42581         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42582         expand, AC_PROG_AWK.
42583         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42584
42585 2009-01-28  Eric Blake  <ebb9@byu.net>
42586
42587         version-etc: use consistent URL formatting
42588         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42589         Improve formatting.  Use fputs for string without %.
42590
42591 2009-01-28  Jim Meyering  <meyering@redhat.com>
42592
42593         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42594         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42595         "underquoted definition of NAME" from autoconf-2.59.
42596
42597 2009-01-28  Bruno Haible  <bruno@clisp.org>
42598
42599         * doc/gnulib.texi: Add "Obsolete modules" to index.
42600
42601 2009-01-28  Jim Meyering  <meyering@redhat.com>
42602
42603         useless-if-before-free: recognize more variants
42604         * build-aux/useless-if-before-free: Also recognize e.g.,
42605         if (NULL != p) free (p);
42606
42607 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42608
42609         test-getaddrinfo: skip (don't fail) this test when there's no network
42610         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42611         on the presumption that it means you lack network access.
42612
42613 2009-01-26  Jim Meyering  <meyering@redhat.com>
42614
42615         fflush: avoid warnings on modern systems
42616         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42617         pos and result, into scopes where they're used.
42618
42619 2009-01-26  Eric Blake  <ebb9@byu.net>
42620
42621         Silence warning reintroduced by recent extensions patch.
42622         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42623         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42624         autoconf.
42625
42626         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42627         * m4/00gnulib.m4: New file.
42628         * gnulib-tool (func_get_filelist): Always use it.
42629         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42630         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42631
42632 2009-01-25  Bruno Haible  <bruno@clisp.org>
42633
42634         Make test-quotearg work on MacOS X and AIX.
42635         * tests/test-quotearg.sh: New file.
42636         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42637         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42638         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42639         include <libintl.h>.
42640         (fake_locale): Remove variable.
42641         (gettext, dgettext, dcgettext): Remove functions.
42642         (main): Instead of setting a fake locale, set a real locale. Call
42643         textdomain and bindtextdomain.
42644         * modules/quotearg-tests (Files): Add the new files.
42645         (Depends-on): Add gettext, setenv, unsetenv.
42646         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42647         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42648         Augment TESTS_ENVIRONMENT.
42649
42650 2009-01-25  Bruno Haible  <bruno@clisp.org>
42651
42652         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42653         fr_FR.ISO8859-1 locale on MacOS X.
42654         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42655         ja_JP.eucJP locale on MacOS X.
42656         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42657         zh_CN.GB18030 locale on MacOS X.
42658
42659 2009-01-25  Bruno Haible  <bruno@clisp.org>
42660
42661         Avoid link errors on MacOS X 10.3.
42662         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42663         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42664
42665 2009-01-25  Bruno Haible  <bruno@clisp.org>
42666
42667         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42668         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42669         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42670         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42671         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42672         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42673         posix_spawnattr_init, posix_spawnattr_setsigmask,
42674         posix_spawnattr_setflags, posix_spawnattr_destroy.
42675
42676         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42677         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42678         * modules/execute (Files): Remove m4/posix_spawn.m4.
42679         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42680         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42681         posix_spawnattr_init, posix_spawnattr_setsigmask,
42682         posix_spawnattr_setflags, posix_spawnattr_destroy.
42683
42684 2009-01-25  Bruno Haible  <bruno@clisp.org>
42685
42686         * lib/glthread/threadlib.c: Include <stdlib.h>.
42687
42688 2009-01-25  Bruno Haible  <bruno@clisp.org>
42689
42690         * lib/glthread/threadlib.c (dummy): New declaration.
42691
42692 2009-01-25  Bruno Haible  <bruno@clisp.org>
42693
42694         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42695         multibyte characters also for the GB18030 encoding. Don't crash when
42696         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42697
42698 2009-01-25  Bruno Haible  <bruno@clisp.org>
42699
42700         Avoid redefining 'struct random_data' on OSF/1 5.1.
42701         * lib/stdlib.in.h: Include <random.h> if it exists.
42702         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42703         HAVE_RANDOM_H. Include <random.h> when testing whether
42704         'struct random_data' exists.
42705         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42706
42707 2009-01-25  Bruno Haible  <bruno@clisp.org>
42708
42709         Don't install charset.alias on MacOS X >= 10.3.
42710         * lib/localcharset.c (DARWIN7): New macro.
42711         (get_charset_aliases): Hardcode the result for Darwin7.
42712         * modules/localcharset (install-exec-local): Don't install
42713         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42714
42715 2009-01-25  Bruno Haible  <bruno@clisp.org>
42716
42717         Don't install charset.alias on mingw and Cygwin.
42718         * modules/localcharset (install-exec-local): Don't install
42719         charset.alias on mingw and Cygwin, if the file does not yet exist.
42720         The result for these platforms is hardcoded in localcharset.c.
42721
42722 2009-01-25  Bruno Haible  <bruno@clisp.org>
42723
42724         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42725         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42726         before requiring AC_USE_SYSTEM_EXTENSIONS.
42727
42728 2009-01-25  Jim Meyering  <meyering@redhat.com>
42729
42730         c-strtod: avoid warnings
42731         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42732         "assignment discards qualifiers from pointer target type" warnings.
42733
42734 2009-01-24  Bruno Haible  <bruno@clisp.org>
42735
42736         Add support for non-UTF-8 locales on MacOS X.
42737         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42738         canonical encodings. For Darwin 7 and newer, don't map traditional
42739         encodings to UTF-8.
42740         Reported by Vincent Lefevre <vincent@vinc17.org>
42741         at <http://savannah.gnu.org/bugs/?25235>.
42742
42743 2009-01-24  Bruno Haible  <bruno@clisp.org>
42744
42745         * doc/gnulib.texi (Obsolete modules): New section.
42746         Reported by Mike Frysinger <vapier@gentoo.org>.
42747
42748 2009-01-24  Bruno Haible  <bruno@clisp.org>
42749
42750         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42751         (%.dvi): New rule.
42752
42753 2009-01-24  Bruno Haible  <bruno@clisp.org>
42754
42755         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42756         Reported by Eric Blake.
42757
42758 2009-01-24  Bruno Haible  <bruno@clisp.org>
42759
42760         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42761         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42762         Reported by Gary V. Vaughan <gary@gnu.org>.
42763
42764 2009-01-24  Bruno Haible  <bruno@clisp.org>
42765
42766         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42767
42768 2009-01-23  Bruno Haible  <bruno@clisp.org>
42769
42770         Make c-strtod, c-strtold usable in libraries.
42771         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42772         (C_STRTOD): Call strdup instead of xstrdup.
42773         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42774         * modules/c-strtold (Depends-on): Likewise.
42775         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42776         * NEWS: Mention the change.
42777         Reported by Michael Gold <mgold@ncf.ca>.
42778
42779 2009-01-23  Jim Meyering  <meyering@redhat.com>
42780
42781         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42782         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42783         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42784
42785 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42786
42787         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42788         GNU CoreUtils.
42789         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42790         * modules/version-etc (Description): Update.
42791
42792 2009-01-22  Bruno Haible  <bruno@clisp.org>
42793
42794         Cache the C locale object.
42795         * lib/c-strtod.c (c_locale_cache): New variable.
42796         (c_locale): New function.
42797         (C_STRTOD): Use it, and don't call freelocale.
42798         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42799         Suggested by Paolo Bonzini.
42800
42801 2009-01-21  Bruno Haible  <bruno@clisp.org>
42802
42803         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42804         conditions other than overflow.
42805
42806 2009-01-21  Bruno Haible  <bruno@clisp.org>
42807
42808         * lib/c-strtod.c: Include errno.h.
42809         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42810         value from STRTOD_L and STRTOD.
42811
42812 2009-01-21  Bruno Haible  <bruno@clisp.org>
42813         and Jim Meyering  <meyering@redhat.com>
42814
42815         nanosleep: skip configure test (fail it) for apple universal builds
42816         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42817         universal builds, assume that nanosleep does not work.
42818         * modules/nanosleep (Depends-on): Add multiarch.
42819
42820         mktime: skip configure test (fail it) for apple universal builds
42821         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42822         universal builds, assume that mktime does not work.
42823         * modules/mktime (Depends-on): Add multiarch.
42824
42825 2009-01-21  Eric Blake  <ebb9@byu.net>
42826
42827         multiarch: avoid expand-before-require warning
42828         * modules/multiarch (configure.ac): Require, rather than expand,
42829         gl_MULTIARCH.
42830         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42831         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42832         enforce that all clients require it.  Partial reversion of
42833         2008-12-29 patch.
42834
42835         error: avoid expand-before-require warning
42836         * modules/errno (configure.ac): Require, rather than expand,
42837         gl_HEADER_ERRNO_H.
42838         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42839         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42840         enforce that all clients require it.
42841
42842         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42843         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42844         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42845         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42846
42847 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42848
42849         Revert:
42850         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42851
42852         regex: do not depend on obsolete modules.
42853         * modules/regex: Remove memcmp and memmove.
42854
42855 2009-01-20  Bruno Haible  <bruno@clisp.org>
42856
42857         Make the 'link' module link on Windows NT 4.
42858         * lib/link.c (_WIN32_WINNT): Don't define.
42859         (CreateHardLinkFuncType): New type.
42860         (CreateHardLinkFunc, initialized): New variables.
42861         (initialize): New function.
42862         (link): Invoke CreateHardLink indirectly through the function pointer.
42863
42864 2009-01-20  Bruno Haible  <bruno@clisp.org>
42865
42866         Fix compilation failure on mingw.
42867         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42868
42869 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42870
42871         * doc/c-strtod.texi: Mention a couple of restrictions.
42872
42873 2009-01-20  Jim Meyering  <meyering@redhat.com>
42874
42875         gettimeofday: move more declarations out of functions
42876         * lib/gettimeofday.c: Move extern declarations of tzset and
42877         gmtime out of containing functions.  Prompted by Bruno Haible.
42878
42879 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42880
42881         regex: do not depend on obsolete modules.
42882         * modules/regex: Remove memcmp and memmove.
42883
42884 2009-01-19  Bruno Haible  <bruno@clisp.org>
42885
42886         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42887         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42888         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42889         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42890         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42891
42892 2009-01-19  Bruno Haible  <bruno@clisp.org>
42893
42894         * tests/test-link.c: Include <errno.h>.
42895         (main): Exit with code 77 when a hard link cannot be created due to
42896         the file system.
42897         * tests/test-link.sh: Skip test when a hard link cannot be created due
42898         to the file system.
42899         Suggested by Eric Blake.
42900
42901 2009-01-19  Martin Lambers  <marlam@marlam.de>
42902
42903         * modules/link-tests: New file.
42904         * tests/test-link.sh: New file.
42905         * tests/test-link.c: New file.
42906
42907 2009-01-19  Eric Blake  <ebb9@byu.net>
42908
42909         doc: mention another function added in cygwin 1.7.0
42910         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42911         Another new function in cygwin 1.7.
42912
42913 2009-01-19  Bruno Haible  <bruno@clisp.org>
42914
42915         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42916         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42917         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42918         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42919         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42920         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42921         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42922         * m4/md4.m4 (gl_MD4): Likewise.
42923         * m4/md5.m4 (gl_MD5): Likewise.
42924         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42925         * m4/sha1.m4 (gl_SHA1): Likewise.
42926         * m4/sha256.m4 (gl_SHA256): Likewise.
42927         * m4/sha512.m4 (gl_SHA512): Likewise.
42928
42929 2009-01-19  Bruno Haible  <bruno@clisp.org>
42930
42931         * modules/uniname/uniname-tests (Depends-on): Add progname.
42932         * tests/uniname/test-uninames.c: Include progname.h.
42933         (main): Call set_program_name.
42934
42935         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42936         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42937         (main): Call set_program_name.
42938
42939         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42940         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42941         (main): Call set_program_name.
42942
42943         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42944         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42945         (main): Call set_program_name.
42946
42947         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42948         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42949         (main): Call set_program_name.
42950
42951         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42952         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42953         (main): Call set_program_name.
42954
42955         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42956         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42957         (main): Call set_program_name.
42958
42959         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42960         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42961         (main): Call set_program_name.
42962
42963         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42964         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42965         (main): Call set_program_name.
42966
42967 2009-01-19  Eric Blake  <ebb9@byu.net>
42968
42969         test-unistd: test previous patch
42970         * tests/test-unistd.c: Test *_FILENO macros.
42971
42972         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42973         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42974         Guarantee a definition.
42975         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42976         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42977         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42978         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42979         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42980         Likewise.
42981         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42982         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42983         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42984         Likewise.
42985         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42986         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42987         (STDERR_FILENO): Likewise.
42988         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42989         (STDERR_FILENO): Likewise.
42990         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42991         (STDERR_FILENO): Likewise.
42992         Reported by Elbert Pol.
42993
42994 2009-01-19  Eric Blake  <ebb9@byu.net>
42995
42996         doc: mention more functions added in cygwin 1.7.0
42997         * doc/posix-functions/abort.texi (abort): Update wording related
42998         to cygwin.
42999         * doc/posix-functions/daylight.texi (daylight): Likewise.
43000         * doc/posix-functions/optarg.texi (optarg): Likewise.
43001         * doc/posix-functions/optarg.texi (opterr): Likewise.
43002         * doc/posix-functions/optarg.texi (optind): Likewise.
43003         * doc/posix-functions/optarg.texi (optopt): Likewise.
43004         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43005         worked in 1.5.x, and was withdrawn in 1.7.
43006         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43007         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43008         cygwin versions.
43009         * doc/posix-functions/perror.texi (perror): Likewise.
43010         * doc/posix-functions/printf.texi (printf): Likewise.
43011         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43012         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43013         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43014         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43015         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43016         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43017         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43018         Likewise.
43019         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43020         Likewise.
43021         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43022         this function.
43023         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43024         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43025         Likewise.
43026         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43027         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43028         * doc/posix-functions/confstr.texi (confstr): Likewise.
43029         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43030         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43031         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43032         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43033         * doc/posix-functions/fputws.texi (fputws): Likewise.
43034         * doc/posix-functions/fwide.texi (fwide): Likewise.
43035         * doc/posix-functions/getwc.texi (getwc): Likewise.
43036         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43037         * doc/posix-functions/putwc.texi (putwc): Likewise.
43038         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43039         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43040         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43041         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43042         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43043         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43044         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43045         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43046         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43047         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43048         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43049
43050 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43051
43052         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43053         * lib/ioctl.c: Include <sys/ioctl.h>.
43054
43055 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43056
43057         * modules/getdate-tests (Depends-on): Add progname.
43058         * tests/test-getdate.c: Use progname module, to avoid link errors
43059         on non-glibc systems.
43060
43061 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43062
43063         * modules/filenamecat-tests (Depends-on): Add progname.
43064         * modules/fstrcmp-tests (Depends-on): Likewise.
43065
43066         * tests/test-filenamecat.c: Use progname module, to avoid link
43067         errors on non-glibc systems.
43068         * tests/test-fstrcmp.c: Likewise.
43069
43070 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43071
43072         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43073         * lib/gettimeofday.c: Move extern declaration out of function.
43074
43075 2009-01-18  Bruno Haible  <bruno@clisp.org>
43076
43077         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43078         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43079         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43080
43081 2009-01-18  Bruno Haible  <bruno@clisp.org>
43082
43083         * lib/strftime.c (MEMPCPY): Remove unused macro.
43084         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43085
43086 2009-01-18  Martin Lambers  <marlam@marlam.de>
43087
43088         New module 'link'.
43089         * lib/unistd.in.h (link): New declaration.
43090         * lib/link.c: New file.
43091         * m4/link.m4: New file.
43092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43093         HAVE_LINK.
43094         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43095         * modules/link: New file.
43096         * doc/posix-functions/link.texi: Mention the new module.
43097
43098 2009-01-18  Bruno Haible  <bruno@clisp.org>
43099
43100         * tests/test-avltree_list.c (main): Call set_program_name.
43101         * tests/test-avltree_oset.c (main): Likewise.
43102         * tests/test-obstack-printf.c: Include progname.h.
43103         (main): Call set_program_name.
43104         * tests/test-quotearg.c: Include progname.h.
43105         (main): Call set_program_name.
43106         * tests/test-xmemdup0.c: Include progname.h.
43107         (main): Call set_program_name.
43108
43109 2009-01-18  Bruno Haible  <bruno@clisp.org>
43110
43111         New module 'alphasort'.
43112         * lib/dirent.in.h (alphasort): New declaration.
43113         * lib/alphasort.c: New file, from glibc with modifications.
43114         * m4/alphasort.m4: New file.
43115         * modules/alphasort: New file.
43116         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43117         HAVE_ALPHASORT.
43118         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43119         HAVE_ALPHASORT.
43120         * doc/posix-functions/alphasort.texi: Mention the new module and the
43121         portability problems.
43122
43123 2009-01-18  Bruno Haible  <bruno@clisp.org>
43124
43125         New module 'scandir'.
43126         * lib/dirent.in.h (scandir): New declaration.
43127         * lib/scandir.c: New file, from glibc with modifications.
43128         * m4/scandir.m4: New file.
43129         * modules/scandir: New file.
43130         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43131         HAVE_SCANDIR.
43132         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43133         HAVE_SCANDIR.
43134         * doc/posix-functions/scandir.texi: Mention the new module and the
43135         portability problems.
43136
43137 2009-01-17  Bruno Haible  <bruno@clisp.org>
43138
43139         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43140         Update documentation.
43141         (func_remove_suffix): Escape all dots in the suffix. Update
43142         documentation.
43143         (func_filter_filelist): Update documentation.
43144         Reported by Ralf Wildenhues.
43145
43146 2009-01-17  Bruno Haible  <bruno@clisp.org>
43147
43148         * modules/dprintf-posix-tests: New file.
43149         * tests/test-dprintf-posix.sh: New file.
43150         * tests/test-dprintf-posix.c: New file.
43151
43152         New modules 'dprintf', 'dprintf-posix'.
43153         * lib/stdio.in.h (dprintf): New declaration.
43154         * lib/dprintf.c: New file.
43155         * m4/dprintf.m4: New file.
43156         * m4/dprintf-posix.m4: New file.
43157         * modules/dprintf: New file.
43158         * modules/dprintf-posix: New file.
43159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43160         HAVE_DPRINTF, REPLACE_DPRINTF.
43161         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43162         HAVE_DPRINTF, REPLACE_DPRINTF.
43163         * doc/posix-functions/dprintf.texi: Mention the new modules.
43164
43165 2009-01-17  Bruno Haible  <bruno@clisp.org>
43166
43167         * modules/vdprintf-posix-tests: New file.
43168         * tests/test-vdprintf-posix.sh: New file.
43169         * tests/test-vdprintf-posix.c: New file.
43170
43171         New modules 'vdprintf', 'vdprintf-posix'.
43172         * lib/stdio.in.h (vdprintf): New declaration.
43173         * lib/vdprintf.c: New file.
43174         * m4/vdprintf.m4: New file.
43175         * m4/vdprintf-posix.m4: New file.
43176         * modules/vdprintf: New file.
43177         * modules/vdprintf-posix: New file.
43178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43179         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43180         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43181         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43182         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43183
43184 2009-01-17  Bruno Haible  <bruno@clisp.org>
43185
43186         Fix replacement of fopen on mingw.
43187         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43188         mingw.
43189
43190 2009-01-17  Bruno Haible  <bruno@clisp.org>
43191
43192         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43193         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43194
43195 2009-01-17  Bruno Haible  <bruno@clisp.org>
43196
43197         Avoid test-fflush2.sh failure on mingw.
43198         * tests/test-fflush2.c: Include binary-io.h.
43199         (main): Put standard input into binary mode.
43200         * modules/fflush-tests (Depends-on): Add binary-io.
43201
43202 2009-01-17  Bruno Haible  <bruno@clisp.org>
43203
43204         * lib/wchar.in.h: In another particular situation, include only the
43205         system's <wchar.h> file.
43206         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43207         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43208         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43209
43210 2009-01-17  Bruno Haible  <bruno@clisp.org>
43211
43212         Support for stripping executables in --enable-relocatable.
43213         * build-aux/install-reloc: Expect one more argument, or an environment
43214         variable RELOC_STRIP_PROG. If set, strip the destination program and
43215         its wrapper.
43216         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43217         RELOC_STRIP_PROG.
43218         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43219         to set RELOCATABLE_STRIP.
43220         * NEWS: Mention the new Makefile requirement.
43221
43222 2009-01-17  Bruno Haible  <bruno@clisp.org>
43223
43224         * build-aux/install-reloc: Remove debugging information left over by
43225         C compiler on MacOS X.
43226
43227 2009-01-17  Bruno Haible  <bruno@clisp.org>
43228
43229         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43230         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43231         _NSGetExecutablePath.
43232
43233 2009-01-16  Jim Meyering  <meyering@redhat.com>
43234
43235         strerror: avoid warnings about discarding "const"
43236         * lib/strerror.c (rpl_strerror): Instead of returning a const
43237         string from each and every "case", use a variable, and add a single
43238         cast after the switch.
43239
43240 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43241
43242         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43243
43244 2009-01-16  Bruno Haible  <bruno@clisp.org>
43245
43246         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43247         array initializer syntax that also works in C++ mode.
43248         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43249
43250 2009-01-16  Jim Meyering  <meyering@redhat.com>
43251
43252         poll: suppress a warning
43253         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43254         to ignore "...unsigned expression < 0 is always false" warnings.
43255
43256 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43257
43258         poll: remove declarations of unused variables
43259         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43260         sockbuf and optlen.
43261
43262 2009-01-15  Bruno Haible  <bruno@clisp.org>
43263
43264         Make fflush-after-ungetc POSIX compliant on BSD systems.
43265         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43266         (clear_ungetc_buffer): Implement also for other systems.
43267         (rpl_fflush): On glibc systems, invoke
43268         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43269         clear_ungetc_buffer after fetching the stream's position, not before.
43270
43271 2009-01-15  Bruno Haible  <bruno@clisp.org>
43272
43273         Make fflush-after-ungetc POSIX compliant on glibc systems.
43274         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43275         after ungetc.
43276         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43277         (rpl_fflush): On glibc systems, simply call the system's fflush
43278         function after clearing the ungetc buffer.
43279         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43280         Instead, lseek only to the end of file, then use the system's fseeko
43281         for the rest. On glibc systems, reset the EOF indicator bit.
43282
43283 2009-01-15  Jim Meyering  <meyering@redhat.com>
43284
43285         openmp.m4: revert quote-adding change, for portability to older autoconf
43286         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43287         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43288         Simon Josefsson noticed the problem when using autoconf-2.61.
43289
43290 2009-01-15  Bruno Haible  <bruno@clisp.org>
43291
43292         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43293         * tests/test-fflush2.c (ASSERT): Always fail.
43294         (main): Add two tests for fflush() after ungetc(), taking into account
43295         the Austin Group's clarification.
43296         Suggested by Eric Blake.
43297
43298 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43299
43300         mktime.m4: remove K&R-style function prototypes
43301         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43302         for the Sun C++ compiler.
43303
43304 2009-01-14  Bruno Haible  <bruno@clisp.org>
43305
43306         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43307         while including <wchar.h>.
43308         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43309         the system's <wchar.h> file.
43310         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43311
43312 2009-01-14  Bruno Haible  <bruno@clisp.org>
43313
43314         * m4/csharp.m4: Don't mention gettext on the serial number line.
43315         * m4/csharpexec.m4: Likewise.
43316         * m4/eaccess.m4: Likewise.
43317         * m4/javaexec.m4: Likewise.
43318         * m4/sig_atomic_t.m4: Likewise.
43319         * m4/tmpdir.m4: Likewise.
43320         * m4/intldir.m4: Bump gettext version.
43321         * m4/lib-ld.m4: Likewise.
43322
43323 2009-01-14  Bruno Haible  <bruno@clisp.org>
43324
43325         * lib/progname.c (set_program_name): Add more comments.
43326         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43327
43328 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43329
43330         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43331         were sys/stat.h does not define it.
43332
43333 2009-01-14  Jim Meyering  <meyering@redhat.com>
43334
43335         many *.m4 files: improve m4 quoting
43336         99% of this change was performed by running the following commands:
43337         git ls-files | grep '\.m4$' | xargs perl -pi \
43338           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43339           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43340           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43341           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43342         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43343         The remainder were to add Copyright dates, increment serial numbers,
43344         undo some changes in comments, exclude m4/intl.m4, and add quotes
43345         around the "1" in ",1" where the unusual spacing prohibited the
43346         above regexps from doing the job.  For more details, see
43347         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43348         * m4/acl.m4: Modified.
43349         * m4/afs.m4: Likewise.
43350         * m4/alloca.m4: Likewise.
43351         * m4/argp.m4: Likewise.
43352         * m4/argz.m4: Likewise.
43353         * m4/atexit.m4: Likewise.
43354         * m4/bison-i18n.m4: Likewise.
43355         * m4/bison.m4: Likewise.
43356         * m4/byteswap.m4: Likewise.
43357         * m4/c-stack.m4: Likewise.
43358         * m4/c-strtod.m4: Likewise.
43359         * m4/calloc.m4: Likewise.
43360         * m4/canonicalize-lgpl.m4: Likewise.
43361         * m4/chown.m4: Likewise.
43362         * m4/clock_time.m4: Likewise.
43363         * m4/codeset.m4: Likewise.
43364         * m4/copy-file.m4: Likewise.
43365         * m4/csharp.m4: Likewise.
43366         * m4/csharpcomp.m4: Likewise.
43367         * m4/csharpexec.m4: Likewise.
43368         * m4/d-ino.m4: Likewise.
43369         * m4/d-type.m4: Likewise.
43370         * m4/dirfd.m4: Likewise.
43371         * m4/double-slash-root.m4: Likewise.
43372         * m4/eaccess.m4: Likewise.
43373         * m4/eealloc.m4: Likewise.
43374         * m4/environ.m4: Likewise.
43375         * m4/errno_h.m4: Likewise.
43376         * m4/euidaccess.m4: Likewise.
43377         * m4/execute.m4: Likewise.
43378         * m4/fatal-signal.m4: Likewise.
43379         * m4/fchdir.m4: Likewise.
43380         * m4/fcntl_h.m4: Likewise.
43381         * m4/fileblocks.m4: Likewise.
43382         * m4/filenamecat.m4: Likewise.
43383         * m4/findprog.m4: Likewise.
43384         * m4/flexmember.m4: Likewise.
43385         * m4/fnmatch.m4: Likewise.
43386         * m4/fopen.m4: Likewise.
43387         * m4/fpending.m4: Likewise.
43388         * m4/fprintf-posix.m4: Likewise.
43389         * m4/free.m4: Likewise.
43390         * m4/frexp.m4: Likewise.
43391         * m4/frexpl.m4: Likewise.
43392         * m4/fsusage.m4: Likewise.
43393         * m4/ftruncate.m4: Likewise.
43394         * m4/gc-camellia.m4: Likewise.
43395         * m4/gc-random.m4: Likewise.
43396         * m4/gc.m4: Likewise.
43397         * m4/getaddrinfo.m4: Likewise.
43398         * m4/getcwd-abort-bug.m4: Likewise.
43399         * m4/getcwd-path-max.m4: Likewise.
43400         * m4/getdate.m4: Likewise.
43401         * m4/getdomainname.m4: Likewise.
43402         * m4/getgroups.m4: Likewise.
43403         * m4/gethostname.m4: Likewise.
43404         * m4/gethrxtime.m4: Likewise.
43405         * m4/getline.m4: Likewise.
43406         * m4/getloadavg.m4: Likewise.
43407         * m4/getndelim2.m4: Likewise.
43408         * m4/getpass.m4: Likewise.
43409         * m4/gettext.m4: Likewise.
43410         * m4/gettime.m4: Likewise.
43411         * m4/gettimeofday.m4: Likewise.
43412         * m4/gnulib-common.m4: Likewise.
43413         * m4/group-member.m4: Likewise.
43414         * m4/host-os.m4: Likewise.
43415         * m4/iconv.m4: Likewise.
43416         * m4/iconv_open.m4: Likewise.
43417         * m4/inet_ntop.m4: Likewise.
43418         * m4/inet_pton.m4: Likewise.
43419         * m4/inline.m4: Likewise.
43420         * m4/intldir.m4: Likewise.
43421         * m4/intlmacosx.m4: Likewise.
43422         * m4/intmax.m4: Likewise.
43423         * m4/intmax_t.m4: Likewise.
43424         * m4/inttypes.m4: Likewise.
43425         * m4/inttypes_h.m4: Likewise.
43426         * m4/inttypes-pri.m4: Likewise.
43427         * m4/isapipe.m4: Likewise.
43428         * m4/isnand.m4: Likewise.
43429         * m4/isnanf.m4: Likewise.
43430         * m4/isnanl.m4: Likewise.
43431         * m4/javacomp.m4: Likewise.
43432         * m4/javaexec.m4: Likewise.
43433         * m4/jm-winsz1.m4: Likewise.
43434         * m4/jm-winsz2.m4: Likewise.
43435         * m4/lchown.m4: Likewise.
43436         * m4/lcmessage.m4: Likewise.
43437         * m4/ldexpl.m4: Likewise.
43438         * m4/lib-ld.m4: Likewise.
43439         * m4/lib-link.m4: Likewise.
43440         * m4/libsigsegv.m4: Likewise.
43441         * m4/link-follow.m4: Likewise.
43442         * m4/localcharset.m4: Likewise.
43443         * m4/locale-fr.m4: Likewise.
43444         * m4/locale-ja.m4: Likewise.
43445         * m4/locale-tr.m4: Likewise.
43446         * m4/locale-zh.m4: Likewise.
43447         * m4/lock.m4: Likewise.
43448         * m4/longlong.m4: Likewise.
43449         * m4/ls-mntd-fs.m4: Likewise.
43450         * m4/lstat.m4: Likewise.
43451         * m4/malloc.m4: Likewise.
43452         * m4/mathl.m4: Likewise.
43453         * m4/mbrtowc.m4: Likewise.
43454         * m4/mbstate_t.m4: Likewise.
43455         * m4/mbswidth.m4: Likewise.
43456         * m4/memchr.m4: Likewise.
43457         * m4/memcmp.m4: Likewise.
43458         * m4/memcpy.m4: Likewise.
43459         * m4/memmem.m4: Likewise.
43460         * m4/memmove.m4: Likewise.
43461         * m4/mempcpy.m4: Likewise.
43462         * m4/memrchr.m4: Likewise.
43463         * m4/memset.m4: Likewise.
43464         * m4/minmax.m4: Likewise.
43465         * m4/mkdir-slash.m4: Likewise.
43466         * m4/mkdtemp.m4: Likewise.
43467         * m4/mktime.m4: Likewise.
43468         * m4/mmap-anon.m4: Likewise.
43469         * m4/mountlist.m4: Likewise.
43470         * m4/nanosleep.m4: Likewise.
43471         * m4/nls.m4: Likewise.
43472         * m4/nocrash.m4: Likewise.
43473         * m4/open.m4: Likewise.
43474         * m4/openat.m4: Likewise.
43475         * m4/openmp.m4: Likewise.
43476         * m4/pathmax.m4: Likewise.
43477         * m4/perl.m4: Likewise.
43478         * m4/physmem.m4: Likewise.
43479         * m4/pipe.m4: Likewise.
43480         * m4/po.m4: Likewise.
43481         * m4/poll.m4: Likewise.
43482         * m4/posixtm.m4: Likewise.
43483         * m4/posixver.m4: Likewise.
43484         * m4/printf-frexp.m4: Likewise.
43485         * m4/printf-frexpl.m4: Likewise.
43486         * m4/printf-posix.m4: Likewise.
43487         * m4/printf-posix-rpl.m4: Likewise.
43488         * m4/printf.m4: Likewise.
43489         * m4/progtest.m4: Likewise.
43490         * m4/putenv.m4: Likewise.
43491         * m4/readline.m4: Likewise.
43492         * m4/readlink.m4: Likewise.
43493         * m4/readutmp.m4: Likewise.
43494         * m4/realloc.m4: Likewise.
43495         * m4/regex.m4: Likewise.
43496         * m4/relocatable.m4: Likewise.
43497         * m4/relocatable-lib.m4: Likewise.
43498         * m4/rename-dest-slash.m4: Likewise.
43499         * m4/rename.m4: Likewise.
43500         * m4/rmdir-errno.m4: Likewise.
43501         * m4/rmdir.m4: Likewise.
43502         * m4/roundf.m4: Likewise.
43503         * m4/roundl.m4: Likewise.
43504         * m4/rpmatch.m4: Likewise.
43505         * m4/save-cwd.m4: Likewise.
43506         * m4/selinux-selinux-h.m4: Likewise.
43507         * m4/setenv.m4: Likewise.
43508         * m4/settime.m4: Likewise.
43509         * m4/sig2str.m4: Likewise.
43510         * m4/sig_atomic_t.m4: Likewise.
43511         * m4/signalblocking.m4: Likewise.
43512         * m4/signbit.m4: Likewise.
43513         * m4/sigpipe.m4: Likewise.
43514         * m4/sockets.m4: Likewise.
43515         * m4/sockpfaf.m4: Likewise.
43516         * m4/st_dm_mode.m4: Likewise.
43517         * m4/stat-time.m4: Likewise.
43518         * m4/stdbool.m4: Likewise.
43519         * m4/stdint.m4: Likewise.
43520         * m4/stdint_h.m4: Likewise.
43521         * m4/stpcpy.m4: Likewise.
43522         * m4/stpncpy.m4: Likewise.
43523         * m4/strcase.m4: Likewise.
43524         * m4/strchrnul.m4: Likewise.
43525         * m4/strcspn.m4: Likewise.
43526         * m4/strdup.m4: Likewise.
43527         * m4/strftime.m4: Likewise.
43528         * m4/strndup.m4: Likewise.
43529         * m4/strnlen.m4: Likewise.
43530         * m4/strpbrk.m4: Likewise.
43531         * m4/strptime.m4: Likewise.
43532         * m4/strsep.m4: Likewise.
43533         * m4/strtod.m4: Likewise.
43534         * m4/strtoimax.m4: Likewise.
43535         * m4/strtok_r.m4: Likewise.
43536         * m4/strtol.m4: Likewise.
43537         * m4/strtoll.m4: Likewise.
43538         * m4/strtoul.m4: Likewise.
43539         * m4/strtoull.m4: Likewise.
43540         * m4/strtoumax.m4: Likewise.
43541         * m4/strverscmp.m4: Likewise.
43542         * m4/threadlib.m4: Likewise.
43543         * m4/timegm.m4: Likewise.
43544         * m4/tm_gmtoff.m4: Likewise.
43545         * m4/tmpdir.m4: Likewise.
43546         * m4/tmpfile.m4: Likewise.
43547         * m4/tzset.m4: Likewise.
43548         * m4/uintmax_t.m4: Likewise.
43549         * m4/unlinkdir.m4: Likewise.
43550         * m4/unlocked-io.m4: Likewise.
43551         * m4/uptime.m4: Likewise.
43552         * m4/userspec.m4: Likewise.
43553         * m4/utimbuf.m4: Likewise.
43554         * m4/utime.m4: Likewise.
43555         * m4/utimes-null.m4: Likewise.
43556         * m4/utimes.m4: Likewise.
43557         * m4/vararrays.m4: Likewise.
43558         * m4/vasnprintf.m4: Likewise.
43559         * m4/vfprintf-posix.m4: Likewise.
43560         * m4/vprintf-posix.m4: Likewise.
43561         * m4/wait-process.m4: Likewise.
43562         * m4/wchar_t.m4: Likewise.
43563         * m4/wint_t.m4: Likewise.
43564         * m4/write-any-file.m4: Likewise.
43565         * m4/yield.m4: Likewise.
43566
43567 2009-01-13  Bruno Haible  <bruno@clisp.org>
43568
43569         Avoid test-copy-file.sh failures when ACL support insufficient.
43570         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43571         TESTS_ENVIRONMENT.
43572         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43573         Reported by Jim Meyering.
43574
43575 2009-01-13  Bruno Haible  <bruno@clisp.org>
43576
43577         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43578         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43579         * modules/unistdio/u8-printf-parse (Files): Likewise.
43580         * modules/unistdio/u32-printf-parse (Files): Likewise.
43581         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43582
43583 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43584
43585         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43586         and m4/inttypes_h.m4 too.
43587
43588 2009-01-12  Eric Blake  <ebb9@byu.net>
43589
43590         tests: IRIX 6.2 cc can't compile -0.0 into .data
43591         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43592         rather than at compile-time.
43593         * tests/test-floorl.c (minus_zero): Likewise.
43594         * tests/test-frexpl.c (minus_zero): Likewise.
43595         * tests/test-isnan.c (minus_zerol): Likewise.
43596         * tests/test-isnanl.h (minus_zero): Likewise.
43597         * tests/test-ldexpl.c (minus_zero): Likewise.
43598         * tests/test-roundl.c (minus_zero): Likewise.
43599         * tests/test-signbit.c (minus_zerol): Likewise.
43600         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43601         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43602         * tests/test-truncl.c (minus_zero): Likewise.
43603         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43604         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43605         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43606
43607 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43608
43609         regex: fix glibc bug 9697
43610         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43611         handling.
43612
43613 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43614
43615         regex: fix glibc bug 697
43616         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43617         being NULL also if there are no backreferences.
43618
43619 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43620
43621         regex: merge glibc changes
43622         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43623         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43624         re_string_skip_chars, re_string_reconstruct): Likewise.
43625         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43626
43627 2009-01-07  Jim Meyering  <meyering@redhat.com>
43628
43629         poll: filter through cppi
43630         * lib/poll.c: Indent cpp directives to reflect nesting.
43631
43632 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43633
43634         poll: don't return uninitialized
43635         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43636
43637 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43638
43639         avoid compile failure on AIX 6.1
43640         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43641         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43642
43643 2009-01-04  Jim Meyering  <meyering@redhat.com>
43644
43645         remove duplicate inclusion of <stdio.h>
43646         * tests/test-fprintf-posix.c: Likewise.
43647         * tests/test-printf-posix.c: Likewise.
43648         * tests/test-snprintf-posix.c: Likewise.
43649         * tests/test-sprintf-posix.c: Likewise.
43650         * tests/test-vasprintf-posix.c: Likewise.
43651         * tests/test-vfprintf-posix.c: Likewise.
43652         * tests/test-vprintf-posix.c: Likewise.
43653         * tests/test-vsnprintf-posix.c: Likewise.
43654         * tests/test-vsprintf-posix.c: Likewise.
43655
43656 2009-01-03  Jim Meyering  <meyering@redhat.com>
43657
43658         gnulib-tool: fix sed-based filtering
43659         * gnulib-tool (func_filter_filelist): Remove extra backslash
43660         in sed_fff_filter definition.
43661
43662 2009-01-02  Jim Meyering  <meyering@redhat.com>
43663
43664         strftime: avoid compilation failure on Solaris 2.6
43665         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43666         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43667         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43668         be available.  Reported by Tom G. Christensen.  Details in
43669         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43670
43671 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43672             Bruno Haible  <bruno@clisp.org>
43673
43674         Speed up gnulib-tool by doing more string processing through shell
43675         built-ins.
43676         * gnulib-tool (fast_func_append): New variable.
43677         (func_remove_prefix, func_remove_suffix): New functions.
43678         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43679         (func_filter_filelist): New function.
43680         (func_get_dependencies): Use func_remove_suffix instead of sed.
43681         (func_get_automake_snippet): Use func_filter_filelist instead of a
43682         subshell and sed invocation.
43683
43684 2009-01-01  Bruno Haible  <bruno@clisp.org>
43685
43686         Fix a security bug.
43687         * gnulib-tool (func_import, import, update): Don't allow the characters
43688         '"', '$', '`', '\' in macro arguments that become part of commands that
43689         are evaluated.
43690
43691 2009-01-01  Bruno Haible  <bruno@clisp.org>
43692
43693         * gnulib-tool (func_reset_sigpipe): Add more comments.
43694
43695 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43696
43697         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43698         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43699         already know the answer.
43700
43701 2009-01-01  Jim Meyering  <meyering@redhat.com>
43702
43703         * lib/version-etc.c (version_etc_va): Update copyright year.
43704
43705 2008-12-30  Bruno Haible  <bruno@clisp.org>
43706
43707         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43708         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43709         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43710
43711 2008-12-29  Eric Blake  <ebb9@byu.net>
43712
43713         multiarch: avoid autoconf AC_REQUIRE bug
43714         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43715         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43716         2.63 and older.
43717         Reported by Bruno Haible, and analyzed in
43718         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43719
43720 2008-12-29  Bruno Haible  <bruno@clisp.org>
43721
43722         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43723         files in subdirectories correctly.
43724         Reported by Ralf Wildenhues.
43725
43726 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43727
43728         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43729         rather than 'join FILE -', for Solaris join.
43730
43731 2008-12-29  Bruno Haible  <bruno@clisp.org>
43732
43733         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43734         quoting.
43735         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43736         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43737         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43738         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43739         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43740         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43741         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43742         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43743         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43744         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43745         * m4/nls.m4 (AM_NLS): Likewise.
43746         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43747         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43748         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43749         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43750         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43751         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43752         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43753         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43754         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43755         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43756         * m4/xsize.m4 (gl_XSIZE): Likewise.
43757         Suggested by Jim Meyering.
43758
43759 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43760
43761         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43762         * lib/parse-duration.c: use a switch instead of cascading if's.
43763
43764 2008-12-29  Eric Blake  <ebb9@byu.net>
43765
43766         wchar.h: supply WEOF on Irix 5.3
43767         * lib/wchar.in.h (wint_t): Also supply WEOF.
43768         * lib/wctype.in.h (wint_t): Likewise.
43769         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43770         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43771         Reported by Tom G. Christensen.
43772
43773 2008-12-26  Bruno Haible  <bruno@clisp.org>
43774
43775         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43776         i486, i586, i686.
43777
43778 2008-12-26  Bruno Haible  <bruno@clisp.org>
43779
43780         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43781
43782 2008-12-26  Bruno Haible  <bruno@clisp.org>
43783
43784         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43785         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43786         not __STDC_CONSTANT_MACROS.
43787         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43788
43789 2008-12-25  Bruno Haible  <bruno@clisp.org>
43790
43791         Add support for universal builds to vasnprintf.
43792         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43793         universal builds, guess no.
43794         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43795         * modules/vasprintf-posix (Depends-on): Likewise.
43796         * modules/fprintf-posix (Depends-on): Likewise.
43797         * modules/vfprintf-posix (Depends-on): Likewise.
43798         * modules/snprintf-posix (Depends-on): Likewise.
43799         * modules/vsnprintf-posix (Depends-on): Likewise.
43800         * modules/sprintf-posix (Depends-on): Likewise.
43801         * modules/vsprintf-posix (Depends-on): Likewise.
43802         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43803         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43804         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43805         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43806         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43807         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43808         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43809
43810         Add support for universal builds to <inttypes.h>.
43811         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43812         _SCNu64_PREFIX): In Apple
43813         universal builds, define directly, using _LP64.
43814         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43815         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43816         * modules/inttypes (Depends-on): Add multiarch.
43817         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43818
43819         Add support for universal builds to <stdint.h>.
43820         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43821         universal builds, define directly, using _LP64.
43822         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43823         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43824         and size_t.
43825         * modules/stdint (Depends-on): Add multiarch.
43826         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43827
43828         New module 'multiarch'.
43829         * modules/multiarch: New file.
43830         * m4/multiarch.m4: New file.
43831
43832 2008-12-25  Bruno Haible  <bruno@clisp.org>
43833
43834         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43835
43836 2008-12-25  Bruno Haible  <bruno@clisp.org>
43837
43838         * modules/btowc (License): Relicense under LGPLv2+.
43839         * modules/mbsinit (License): Likewise.
43840         * modules/mbrtowc (License): Likewise.
43841         * modules/wcrtomb (License): Likewise.
43842         * modules/streq (License): Likewise.
43843         Reported by David Lutterkort <lutter@redhat.com>.
43844
43845 2008-12-23  Bruno Haible  <bruno@clisp.org>
43846
43847         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43848
43849 2008-12-23  Bruno Haible  <bruno@clisp.org>
43850
43851         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43852         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43853         GETADDRINFO_LIB, not in LIBS.
43854         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43855         * modules/canon-host (Link): Likewise.
43856         * NEWS: Mention the change.
43857         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43858         GETADDRINFO_LIB.
43859
43860 2008-12-22  Bruno Haible  <bruno@clisp.org>
43861
43862         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43863         * doc/posix-functions/iswalpha_l.texi: Likewise.
43864         * doc/posix-functions/iswblank_l.texi: Likewise.
43865         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43866         * doc/posix-functions/iswctype_l.texi: Likewise.
43867         * doc/posix-functions/iswdigit_l.texi: Likewise.
43868         * doc/posix-functions/iswgraph_l.texi: Likewise.
43869         * doc/posix-functions/iswlower_l.texi: Likewise.
43870         * doc/posix-functions/iswprint_l.texi: Likewise.
43871         * doc/posix-functions/iswpunct_l.texi: Likewise.
43872         * doc/posix-functions/iswspace_l.texi: Likewise.
43873         * doc/posix-functions/iswupper_l.texi: Likewise.
43874         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43875         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43876         * doc/posix-functions/open_wmemstream.texi: Likewise.
43877         * doc/posix-functions/swscanf.texi: Likewise.
43878         * doc/posix-functions/towctrans_l.texi: Likewise.
43879         * doc/posix-functions/towlower.texi: Likewise.
43880         * doc/posix-functions/towlower_l.texi: Likewise.
43881         * doc/posix-functions/towupper.texi: Likewise.
43882         * doc/posix-functions/towupper_l.texi: Likewise.
43883         * doc/posix-functions/vfwprintf.texi: Likewise.
43884         * doc/posix-functions/vfwscanf.texi: Likewise.
43885         * doc/posix-functions/vswscanf.texi: Likewise.
43886         * doc/posix-functions/vwprintf.texi: Likewise.
43887         * doc/posix-functions/vwscanf.texi: Likewise.
43888         * doc/posix-functions/wcpcpy.texi: Likewise.
43889         * doc/posix-functions/wcpncpy.texi: Likewise.
43890         * doc/posix-functions/wcscasecmp.texi: Likewise.
43891         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43892         * doc/posix-functions/wcscoll_l.texi: Likewise.
43893         * doc/posix-functions/wcsdup.texi: Likewise.
43894         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43895         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43896         * doc/posix-functions/wcsnlen.texi: Likewise.
43897         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43898         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43899         * doc/posix-functions/wctrans_l.texi: Likewise.
43900         * doc/posix-functions/wctype_l.texi: Likewise.
43901         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43902         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43903         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43904         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43905         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43906         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43907         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43908         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43909         * doc/glibc-functions/wcschrnul.texi: Likewise.
43910         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43911         * doc/glibc-functions/wcstod_l.texi: Likewise.
43912         * doc/glibc-functions/wcstof_l.texi: Likewise.
43913         * doc/glibc-functions/wcstol_l.texi: Likewise.
43914         * doc/glibc-functions/wcstold_l.texi: Likewise.
43915         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43916         * doc/glibc-functions/wcstoq.texi: Likewise.
43917         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43918         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43919         * doc/glibc-functions/wcstouq.texi: Likewise.
43920         * doc/glibc-functions/wmempcpy.texi: Likewise.
43921
43922 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43923             Eric Blake  <ebb9@byu.net>
43924             Paolo Bonzini  <bonzini@gnu.org>
43925             Bruno Haible  <bruno@clisp.org>
43926
43927         Make c-stack work on Haiku.
43928         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43929         (c_stack_action): Use SA_ONSTACK flag.
43930
43931 2008-12-22  Bruno Haible  <bruno@clisp.org>
43932
43933         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43934
43935 2008-12-22  Bruno Haible  <bruno@clisp.org>
43936
43937         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43938         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43939         being overridden.
43940         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43941         New macros.
43942         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43943         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43944         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43945         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43946
43947 2008-12-22  Bruno Haible  <bruno@clisp.org>
43948
43949         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43950         from test code.
43951
43952 2008-12-22  Eric Blake  <ebb9@byu.net>
43953
43954         Avoid gcc warnings on cygwin.
43955         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43956         Avoid unused variable.
43957         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43958         Likewise.
43959
43960 2008-12-22  Bruno Haible  <bruno@clisp.org>
43961
43962         Remove HAVE_MBRTOWC conditionals.
43963         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43964         (mbscasecmp): Assume mbrtowc function.
43965         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43966         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43967         * lib/mbschr.c: Include mbuiter.h unconditionally.
43968         (mbschr): Assume mbrtowc function.
43969         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43970         (mbscspn): Assume mbrtowc function.
43971         * lib/mbslen.c: Include mbuiter.h unconditionally.
43972         (mbslen): Assume mbrtowc function.
43973         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43974         (mbsncasecmp): Assume mbrtowc function.
43975         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43976         (mbsnlen): Assume mbrtowc function.
43977         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43978         (mbspbrk): Assume mbrtowc function.
43979         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43980         (mbspcasecmp): Assume mbrtowc function.
43981         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43982         (mbsrchr): Assume mbrtowc function.
43983         * lib/mbssep.c: Include mbuiter.h unconditionally.
43984         (mbssep): Assume mbrtowc function.
43985         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43986         (mbsspn): Assume mbrtowc function.
43987         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43988         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43989         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43990         (mbstok_r): Assume mbrtowc function.
43991         * lib/propername.c: Include mbuiter.h unconditionally.
43992         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43993         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43994         (trim2): Assume mbrtowc function.
43995         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43996         (mbsnwidth): Assume mbrtowc function.
43997         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43998         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43999         fallback definitions.
44000         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44001
44002 2008-12-22  Bruno Haible  <bruno@clisp.org>
44003
44004         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44005
44006 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44007
44008         * modules/regex: Request emulations for the mb*/wc* functions we need.
44009         * m4/regex.m4: Don't look for those functions here.
44010         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44011
44012 2008-12-22  Bruno Haible  <bruno@clisp.org>
44013
44014         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44015
44016 2008-12-21  Bruno Haible  <bruno@clisp.org>
44017
44018         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44019         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44020         (Include): Remove conditionalization.
44021         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44022         (Include): Remove conditionalization.
44023         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44024         (Include): Remove conditionalization.
44025         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44026         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44027         * NEWS: Mention the change.
44028         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44029         via Sergey Poznyakoff <gray@gnu.org.ua>.
44030
44031 2008-12-21  Bruno Haible  <bruno@clisp.org>
44032
44033         * MODULES.html.sh (Extended multibyte and wide character utilities
44034         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44035         wcrtomb, wcsrtombs.
44036         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44037         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44038         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44039         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44040
44041 2008-12-21  Bruno Haible  <bruno@clisp.org>
44042
44043         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44044
44045 2008-12-21  Bruno Haible  <bruno@clisp.org>
44046
44047         * modules/wcsnrtombs-tests: New file.
44048         * tests/test-wcsnrtombs1.sh: New file.
44049         * tests/test-wcsnrtombs2.sh: New file.
44050         * tests/test-wcsnrtombs3.sh: New file.
44051         * tests/test-wcsnrtombs4.sh: New file.
44052         * tests/test-wcsnrtombs.c: New file.
44053
44054         New module 'wcsnrtombs'.
44055         * lib/wchar.in.h (wcsnrtombs): New declaration.
44056         * lib/wcsnrtombs.c: New file.
44057         * lib/wcsrtombs-state.c: New file.
44058         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44059         (internal_state): Remove variable.
44060         * m4/wcsnrtombs.m4: New file.
44061         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44062         compilation units.
44063         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44064         HAVE_WCSNRTOMBS.
44065         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44066         HAVE_WCSNRTOMBS.
44067         * modules/wcsnrtombs: New file.
44068         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44069         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44070
44071 2008-12-21  Bruno Haible  <bruno@clisp.org>
44072
44073         * modules/wcsrtombs-tests: New file.
44074         * tests/test-wcsrtombs1.sh: New file.
44075         * tests/test-wcsrtombs2.sh: New file.
44076         * tests/test-wcsrtombs3.sh: New file.
44077         * tests/test-wcsrtombs4.sh: New file.
44078         * tests/test-wcsrtombs.c: New file.
44079
44080         New module 'wcsrtombs'.
44081         * lib/wchar.in.h (wcsrtombs): New declaration.
44082         * lib/wcsrtombs.c: New file.
44083         * m4/wcsrtombs.m4: New file.
44084         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44085         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44086         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44087         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44088         * modules/wcsrtombs: New file.
44089         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44090         bugs.
44091
44092 2008-12-21  Bruno Haible  <bruno@clisp.org>
44093
44094         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44095         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44096         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44097         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44098         if not correct.
44099         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44100         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44101         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44102         m4/locale-zh.m4, m4/codeset.m4.
44103         * doc/posix-functions/wcrtomb.texi: Document the bug.
44104
44105 2008-12-21  Bruno Haible  <bruno@clisp.org>
44106
44107         Work around a btowc() bug on IRIX 6.5.
44108         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44109         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44110         REPLACE_WTOBC if not.
44111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44112         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44113         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44114
44115 2008-12-21  Bruno Haible  <bruno@clisp.org>
44116
44117         * modules/wcrtomb-tests: New file.
44118         * tests/test-wcrtomb.sh: New file.
44119         * tests/test-wcrtomb.c: New file.
44120
44121         New module 'wcrtomb'.
44122         * lib/wchar.in.h (wcrtomb): New declaration.
44123         * lib/wcrtomb.c: New file.
44124         * m4/wcrtomb.m4: New file.
44125         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44126         HAVE_WCRTOMB.
44127         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44128         HAVE_WCRTOMB.
44129         * modules/wcrtomb: New file.
44130         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44131
44132 2008-12-21  Bruno Haible  <bruno@clisp.org>
44133
44134         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44135         * modules/mbsrtowcs (Files): Likewise.
44136         * modules/wctob (Files): Likewise.
44137         * modules/c-strcase-tests (Files): Likewise.
44138         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44139         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44140         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44141         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44142         * modules/vasnprintf-posix-tests (Files): Likewise.
44143
44144 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44145
44146         gitlog-to-changelog: pass all command-line arguments to git-log
44147         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44148         it is sometimes convenient to filter the commits in various ways.
44149         gitlog-to-changelog only allows --since to specify a start date,
44150         but git-log itself supports many other filtering mechanisms.
44151         At the moment, I want to filter by branch name.  Rather than
44152         adding a --branch option to gitlog-to-changelog, it seems more
44153         flexible to simply pass all options directly to git-log and let
44154         git do the work.  Notice that this effectively makes --since a
44155         redundant option for gitlog-to-changelog, but removing it would
44156         require current usage to change since calls would then require
44157         an additional '--'.
44158
44159 2008-12-21  Bruno Haible  <bruno@clisp.org>
44160
44161         * modules/mbsnrtowcs-tests: New file.
44162         * tests/test-mbsnrtowcs1.sh: New file.
44163         * tests/test-mbsnrtowcs2.sh: New file.
44164         * tests/test-mbsnrtowcs3.sh: New file.
44165         * tests/test-mbsnrtowcs4.sh: New file.
44166         * tests/test-mbsnrtowcs.c: New file.
44167
44168         New module 'mbsnrtowcs'.
44169         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44170         * lib/mbsnrtowcs.c: New file.
44171         * lib/mbsrtowcs-state.c: New file.
44172         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44173         (internal_state): Remove variable.
44174         * m4/mbsnrtowcs.m4: New file.
44175         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44176         compilation units.
44177         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44178         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44179         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44180         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44181         * modules/mbsnrtowcs: New file.
44182         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44183         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44184         portability problem.
44185
44186 2008-12-21  Bruno Haible  <bruno@clisp.org>
44187
44188         Work around mbsrtowcs bug.
44189         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44190         (gl_FUNC_MBSRTOWCS): Invoke it.
44191         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44192         m4/locale-zh.m4.
44193         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44194
44195 2008-12-21  Bruno Haible  <bruno@clisp.org>
44196
44197         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44198
44199 2008-12-21  Bruno Haible  <bruno@clisp.org>
44200
44201         Update doc for AIX.
44202         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44203         16-bit wchar_t type.
44204         * doc/posix-functions/btowc.texi: Likewise.
44205         * doc/posix-functions/fgetwc.texi: Likewise.
44206         * doc/posix-functions/fgetws.texi: Likewise.
44207         * doc/posix-functions/fputwc.texi: Likewise.
44208         * doc/posix-functions/fputws.texi: Likewise.
44209         * doc/posix-functions/fwide.texi: Likewise.
44210         * doc/posix-functions/fwprintf.texi: Likewise.
44211         * doc/posix-functions/fwscanf.texi: Likewise.
44212         * doc/posix-functions/getwchar.texi: Likewise.
44213         * doc/posix-functions/getwc.texi: Likewise.
44214         * doc/posix-functions/iswalnum.texi: Likewise.
44215         * doc/posix-functions/iswalpha.texi: Likewise.
44216         * doc/posix-functions/iswblank.texi: Likewise.
44217         * doc/posix-functions/iswcntrl.texi: Likewise.
44218         * doc/posix-functions/iswctype.texi: Likewise.
44219         * doc/posix-functions/iswdigit.texi: Likewise.
44220         * doc/posix-functions/iswgraph.texi: Likewise.
44221         * doc/posix-functions/iswlower.texi: Likewise.
44222         * doc/posix-functions/iswprint.texi: Likewise.
44223         * doc/posix-functions/iswpunct.texi: Likewise.
44224         * doc/posix-functions/iswspace.texi: Likewise.
44225         * doc/posix-functions/iswupper.texi: Likewise.
44226         * doc/posix-functions/iswxdigit.texi: Likewise.
44227         * doc/posix-functions/mbrtowc.texi: Likewise.
44228         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44229         * doc/posix-functions/mbstowcs.texi: Likewise.
44230         * doc/posix-functions/mbtowc.texi: Likewise.
44231         * doc/posix-functions/putwchar.texi: Likewise.
44232         * doc/posix-functions/putwc.texi: Likewise.
44233         * doc/posix-functions/swprintf.texi: Likewise.
44234         * doc/posix-functions/tolower.texi: Likewise.
44235         * doc/posix-functions/toupper.texi: Likewise.
44236         * doc/posix-functions/towctrans.texi: Likewise.
44237         * doc/posix-functions/ungetwc.texi: Likewise.
44238         * doc/posix-functions/vswprintf.texi: Likewise.
44239         * doc/posix-functions/wcrtomb.texi: Likewise.
44240         * doc/posix-functions/wcscat.texi: Likewise.
44241         * doc/posix-functions/wcschr.texi: Likewise.
44242         * doc/posix-functions/wcscmp.texi: Likewise.
44243         * doc/posix-functions/wcscoll.texi: Likewise.
44244         * doc/posix-functions/wcscpy.texi: Likewise.
44245         * doc/posix-functions/wcscspn.texi: Likewise.
44246         * doc/posix-functions/wcsftime.texi: Likewise.
44247         * doc/posix-functions/wcslen.texi: Likewise.
44248         * doc/posix-functions/wcsncat.texi: Likewise.
44249         * doc/posix-functions/wcsncmp.texi: Likewise.
44250         * doc/posix-functions/wcsncpy.texi: Likewise.
44251         * doc/posix-functions/wcspbrk.texi: Likewise.
44252         * doc/posix-functions/wcsrchr.texi: Likewise.
44253         * doc/posix-functions/wcsrtombs.texi: Likewise.
44254         * doc/posix-functions/wcsspn.texi: Likewise.
44255         * doc/posix-functions/wcsstr.texi: Likewise.
44256         * doc/posix-functions/wcstod.texi: Likewise.
44257         * doc/posix-functions/wcstof.texi: Likewise.
44258         * doc/posix-functions/wcstoimax.texi: Likewise.
44259         * doc/posix-functions/wcstok.texi: Likewise.
44260         * doc/posix-functions/wcstold.texi: Likewise.
44261         * doc/posix-functions/wcstoll.texi: Likewise.
44262         * doc/posix-functions/wcstol.texi: Likewise.
44263         * doc/posix-functions/wcstombs.texi: Likewise.
44264         * doc/posix-functions/wcstoull.texi: Likewise.
44265         * doc/posix-functions/wcstoul.texi: Likewise.
44266         * doc/posix-functions/wcstoumax.texi: Likewise.
44267         * doc/posix-functions/wcswidth.texi: Likewise.
44268         * doc/posix-functions/wcsxfrm.texi: Likewise.
44269         * doc/posix-functions/wctob.texi: Likewise.
44270         * doc/posix-functions/wctomb.texi: Likewise.
44271         * doc/posix-functions/wctrans.texi: Likewise.
44272         * doc/posix-functions/wctype.texi: Likewise.
44273         * doc/posix-functions/wcwidth.texi: Likewise.
44274         * doc/posix-functions/wmemchr.texi: Likewise.
44275         * doc/posix-functions/wmemcmp.texi: Likewise.
44276         * doc/posix-functions/wmemcpy.texi: Likewise.
44277         * doc/posix-functions/wmemmove.texi: Likewise.
44278         * doc/posix-functions/wmemset.texi: Likewise.
44279         * doc/posix-functions/wprintf.texi: Likewise.
44280         * doc/posix-functions/wscanf.texi: Likewise.
44281
44282 2008-12-21  Bruno Haible  <bruno@clisp.org>
44283
44284         Update doc for HP-UX 11.11.
44285         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44286         in HP-UX version 11.00, not in all versions of HP-UX 11.
44287         * doc/posix-functions/fwide.texi: Likewise.
44288         * doc/posix-functions/fwprintf.texi: Likewise.
44289         * doc/posix-functions/fwscanf.texi: Likewise.
44290         * doc/posix-functions/inet_ntop.texi: Likewise.
44291         * doc/posix-functions/inet_pton.texi: Likewise.
44292         * doc/posix-functions/mbrlen.texi: Likewise.
44293         * doc/posix-functions/mbrtowc.texi: Likewise.
44294         * doc/posix-functions/mbsinit.texi: Likewise.
44295         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44296         * doc/posix-functions/swprintf.texi: Likewise.
44297         * doc/posix-functions/swscanf.texi: Likewise.
44298         * doc/posix-functions/towctrans.texi: Likewise.
44299         * doc/posix-functions/vfwprintf.texi: Likewise.
44300         * doc/posix-functions/vswprintf.texi: Likewise.
44301         * doc/posix-functions/vwprintf.texi: Likewise.
44302         * doc/posix-functions/wcrtomb.texi: Likewise.
44303         * doc/posix-functions/wcsrtombs.texi: Likewise.
44304         * doc/posix-functions/wcsstr.texi: Likewise.
44305         * doc/posix-functions/wctob.texi: Likewise.
44306         * doc/posix-functions/wctrans.texi: Likewise.
44307         * doc/posix-functions/wmemchr.texi: Likewise.
44308         * doc/posix-functions/wmemcmp.texi: Likewise.
44309         * doc/posix-functions/wmemcpy.texi: Likewise.
44310         * doc/posix-functions/wmemmove.texi: Likewise.
44311         * doc/posix-functions/wmemset.texi: Likewise.
44312         * doc/posix-functions/wprintf.texi: Likewise.
44313         * doc/posix-functions/wscanf.texi: Likewise.
44314
44315 2008-12-21  Bruno Haible  <bruno@clisp.org>
44316
44317         Work around a portability problem.
44318         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44319         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44320
44321 2008-12-20  Bruno Haible  <bruno@clisp.org>
44322
44323         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44324         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44325         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44326         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44327         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44328
44329         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44330         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44331         set.
44332         (GNULIB_defined_mbstate_t): New macro.
44333         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44334         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44335         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44336         reuses the system's mbrtowc function but works around the bugs.
44337         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44338         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44339         macros.
44340         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44341         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44342         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44343         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44344         REPLACE_MBSINIT if mbsinit needs to be overridden.
44345         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44346         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44347         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44348         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44349         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44350         m4/locale-zh.m4.
44351         (Depends): Add mbsinit.
44352         * modules/mbsinit (Depends): Add mbrtowc.
44353         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44354
44355 2008-12-20  Bruno Haible  <bruno@clisp.org>
44356
44357         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44358         so that there are no conversion errors on AIX.
44359         * tests/test-mbsrtowcs.c (main): LIkewise.
44360
44361 2008-12-20  Bruno Haible  <bruno@clisp.org>
44362
44363         Work around wctob bug on Solaris <= 9.
44364         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44365         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44366         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44367         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44368         * modules/wctob (Files): Add m4/locale-fr.m4.
44369         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44370
44371 2008-12-20  Bruno Haible  <bruno@clisp.org>
44372
44373         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44374         /dev/null.
44375         * tests/test-select-in.sh: Likewise.
44376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44377
44378 2008-12-20  Bruno Haible  <bruno@clisp.org>
44379
44380         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44381         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44382         Cygwin 1.5.x.
44383
44384 2008-12-20  Bruno Haible  <bruno@clisp.org>
44385
44386         Ensure mbstate_t is defined on HP-UX 11.11.
44387         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44388         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44389         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44390         AC_USE_SYSTEM_EXTENSIONS.
44391         * modules/fnmatch (Depends-on): Add extensions.
44392         * modules/mbrlen (Depends-on): Likewise.
44393         * modules/mbrtowc (Depends-on): Likewise.
44394         * modules/mbsinit (Depends-on): Likewise.
44395         * modules/mbsrtowcs (Depends-on): Likewise.
44396         * modules/mbswidth (Depends-on): Likewise.
44397         * modules/quotearg (Depends-on): Likewise.
44398         * modules/strftime (Depends-on): Likewise.
44399
44400 2008-12-20  Bruno Haible  <bruno@clisp.org>
44401
44402         Ensure wctob is declared on IRIX 6.5.
44403         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44404         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44405         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44407         of HAVE_WCTOB.
44408         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44409         HAVE_WCTOB.
44410         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44411
44412 2008-12-19  Bruno Haible  <bruno@clisp.org>
44413
44414         * modules/mbsrtowcs-tests: New file.
44415         * tests/test-mbsrtowcs1.sh: New file.
44416         * tests/test-mbsrtowcs2.sh: New file.
44417         * tests/test-mbsrtowcs3.sh: New file.
44418         * tests/test-mbsrtowcs4.sh: New file.
44419         * tests/test-mbsrtowcs.c: New file.
44420
44421         New module 'mbsrtowcs'.
44422         * lib/wchar.in.h (mbsrtowcs): New declaration.
44423         * lib/mbsrtowcs.c: New file.
44424         * m4/mbsrtowcs.m4: New file.
44425         * modules/mbsrtowcs: New file.
44426         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44427         HAVE_MBSRTOWCS.
44428         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44429         HAVE_MBSRTOWCS.
44430         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44431
44432 2008-12-19  Bruno Haible  <bruno@clisp.org>
44433
44434         New module 'mbrlen'.
44435         * lib/wchar.in.h (mbrlen): New declaration.
44436         * lib/mbrlen.c: New file.
44437         * m4/mbrlen.m4: New file.
44438         * modules/mbrlen: New file.
44439         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44440         HAVE_MBRLEN.
44441         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44442         HAVE_MBRLEN.
44443         * doc/posix-functions/mbrlen.texi: Document the new module.
44444
44445 2008-12-19  Bruno Haible  <bruno@clisp.org>
44446
44447         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44448         * modules/mbrtowc (Depends-on): Add verify.
44449         Suggested by Paul Eggert.
44450
44451 2008-12-18  Bruno Haible  <bruno@clisp.org>
44452
44453         * modules/mbsinit-tests: New file.
44454         * tests/test-mbsinit.sh: New file.
44455         * tests/test-mbsinit.c: New file.
44456
44457 2008-12-18  Bruno Haible  <bruno@clisp.org>
44458
44459         * modules/mbrtowc-tests: New file.
44460         * tests/test-mbrtowc1.sh: New file.
44461         * tests/test-mbrtowc2.sh: New file.
44462         * tests/test-mbrtowc3.sh: New file.
44463         * tests/test-mbrtowc4.sh: New file.
44464         * tests/test-mbrtowc.c: New file.
44465
44466         New module 'mbrtowc'.
44467         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44468         mbsinit and mbrtowc.
44469         (mbrtowc): New declaration.
44470         * lib/mbrtowc.c: New file.
44471         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44472         * modules/mbrtowc: New file.
44473         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44474         HAVE_MBRTOWC.
44475         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44476         HAVE_MBRTOWC.
44477         * doc/posix-functions/mbrtowc.texi: Document the new module.
44478
44479 2008-12-18  Bruno Haible  <bruno@clisp.org>
44480
44481         New module 'wctob'.
44482         * lib/wchar.in.h (wctob): New declaration.
44483         * lib/wctob.c: New file.
44484         * m4/wctob.m4: New file.
44485         * modules/wctob: New file.
44486         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44487         HAVE_WCTOB.
44488         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44489         * doc/posix-functions/wctob.texi: Document the new module.
44490
44491 2008-12-18  Bruno Haible  <bruno@clisp.org>
44492
44493         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44494         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44495
44496 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44497
44498         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44499         G. Christensen" <tgc@jupiterrise.com>.
44500
44501         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44502         G. Christensen" <tgc@jupiterrise.com>.
44503
44504         * lib/flock.c: Need to include string.h.  Reported by "Tom
44505         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44506         <ebb9@byu.net>.
44507
44508 2008-12-18  Bruno Haible  <bruno@clisp.org>
44509
44510         * m4/locale-ja.m4: New file, from GNU gettext.
44511
44512 2008-12-17  Bruno Haible  <bruno@clisp.org>
44513
44514         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44515         Suggested by Eric Blake.
44516
44517 2008-12-17  Bruno Haible  <bruno@clisp.org>
44518
44519         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44520
44521 2008-12-17  Bruno Haible  <bruno@clisp.org>
44522
44523         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44524         * modules/mbsinit (Depends-on): Add verify.
44525         Suggested by Paul Eggert.
44526
44527 2008-12-17  Bruno Haible  <bruno@clisp.org>
44528
44529         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44530         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44531         gl_FUNC_MBRTOWC.
44532         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44533         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44534         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44535         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44536         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44537         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44538         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44539         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44540         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44541         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44542         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44543         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44544         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44545         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44546         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44547         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44548         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44549         * modules/trim (configure.ac): Likewise.
44550
44551 2008-12-17  Bruno Haible  <bruno@clisp.org>
44552
44553         * modules/btowc-tests: New file.
44554         * tests/test-btowc1.sh: New file.
44555         * tests/test-btowc2.sh: New file.
44556         * tests/test-btowc.c: New file.
44557
44558         New module 'btowc'.
44559         * lib/wchar.in.h (btowc): New declaration.
44560         * lib/btowc.c: New file.
44561         * m4/btowc.m4: New file.
44562         * modules/btowc: New file.
44563         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44564         HAVE_BTOWC.
44565         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44566         * doc/posix-functions/btowc.texi: Document the new module.
44567
44568 2008-12-17  Bruno Haible  <bruno@clisp.org>
44569
44570         New module 'mbsinit'.
44571         * lib/wchar.in.h (mbsinit): New declaration.
44572         * lib/mbsinit.c: New file.
44573         * m4/mbsinit.m4: New file.
44574         * modules/mbsinit: New file.
44575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44576         HAVE_MBSINIT.
44577         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44578         HAVE_MBSINIT.
44579         * doc/posix-functions/mbsinit.texi: Document the new module.
44580
44581 2008-12-16  Bruno Haible  <bruno@clisp.org>
44582
44583         * lib/unistd.in.h: Add comment.
44584         * tests/test-environ.c: Don't include <stdlib.h>.
44585
44586 2008-12-16  Bruno Haible  <bruno@clisp.org>
44587
44588         * lib/parse-duration.h (parse_duration): Document return value
44589         convention.
44590         * lib/parse-duration.c: Include specification header first. Add
44591         comments.
44592         (_): Remove macro.
44593         (parse_year_month_day, parse_hour_minute_second): Move side effects
44594         outside of strchr call.
44595         (parse_non_iso8601): Move side effects outside of isspace call.
44596         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44597         call.
44598
44599 2008-12-16  Bruno Haible  <bruno@clisp.org>
44600
44601         * tests/test-parse-duration.sh: Produce no output when the test
44602         succeeds.
44603
44604 2008-12-16  Bruno Haible  <bruno@clisp.org>
44605
44606         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44607         expressions.
44608
44609 2008-12-15  Bruno Haible  <bruno@clisp.org>
44610
44611         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44612         * doc/glibc-functions/flistxattr.texi: Likewise.
44613         * doc/glibc-functions/fopencookie.texi: Likewise.
44614         * doc/glibc-functions/fremovexattr.texi: Likewise.
44615         * doc/glibc-functions/fsetxattr.texi: Likewise.
44616         * doc/glibc-functions/getxattr.texi: Likewise.
44617         * doc/glibc-functions/lgetxattr.texi: Likewise.
44618         * doc/glibc-functions/listxattr.texi: Likewise.
44619         * doc/glibc-functions/llistxattr.texi: Likewise.
44620         * doc/glibc-functions/lremovexattr.texi: Likewise.
44621         * doc/glibc-functions/lsetxattr.texi: Likewise.
44622         * doc/glibc-functions/removexattr.texi: Likewise.
44623         * doc/glibc-functions/setxattr.texi: Likewise.
44624         * doc/posix-functions/open_memstream.texi: Likewise.
44625
44626 2008-12-15  Eric Blake  <ebb9@byu.net>
44627
44628         Update doc for cygwin 1.7.
44629         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44630         functions.
44631         * doc/posix-functions/fchmodat.texi: Likewise.
44632         * doc/posix-functions/fchownat.texi: Likewise.
44633         * doc/posix-functions/fdopendir.texi: Likewise.
44634         * doc/posix-functions/fmemopen.texi: Likewise.
44635         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44636         * doc/posix-functions/fstatat.texi: Likewise.
44637         * doc/posix-functions/futimens.texi: Likewise.
44638         * doc/posix-functions/gai_strerror.texi: Likewise.
44639         * doc/posix-functions/getaddrinfo.texi: Likewise.
44640         * doc/posix-functions/getnameinfo.texi: Likewise.
44641         * doc/posix-functions/if_freenameindex.texi: Likewise.
44642         * doc/posix-functions/if_indextoname.texi: Likewise.
44643         * doc/posix-functions/if_nameindex.texi: Likewise.
44644         * doc/posix-functions/if_nametoindex.texi: Likewise.
44645         * doc/posix-functions/insque.texi: Likewise.
44646         * doc/posix-functions/linkat.texi: Likewise.
44647         * doc/posix-functions/llrint.texi: Likewise.
44648         * doc/posix-functions/llrintf.texi: Likewise.
44649         * doc/posix-functions/llrintl.texi: Likewise.
44650         * doc/posix-functions/lockf.texi: Likewise.
44651         * doc/posix-functions/lrintl.texi: Likewise.
44652         * doc/posix-functions/mkdirat.texi: Likewise.
44653         * doc/posix-functions/mkfifoat.texi: Likewise.
44654         * doc/posix-functions/mknodat.texi: Likewise.
44655         * doc/posix-functions/mq_close.texi: Likewise.
44656         * doc/posix-functions/mq_getattr.texi: Likewise.
44657         * doc/posix-functions/mq_notify.texi: Likewise.
44658         * doc/posix-functions/mq_open.texi: Likewise.
44659         * doc/posix-functions/mq_receive.texi: Likewise.
44660         * doc/posix-functions/mq_send.texi: Likewise.
44661         * doc/posix-functions/mq_setattr.texi: Likewise.
44662         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44663         * doc/posix-functions/mq_timedsend.texi: Likewise.
44664         * doc/posix-functions/mq_unlink.texi: Likewise.
44665         * doc/posix-functions/open_memstream.texi: Likewise.
44666         * doc/posix-functions/openat.texi: Likewise.
44667         * doc/posix-functions/posix_fadvise.texi: Likewise.
44668         * doc/posix-functions/posix_fallocate.texi: Likewise.
44669         * doc/posix-functions/posix_madvise.texi: Likewise.
44670         * doc/posix-functions/posix_memalign.texi: Likewise.
44671         * doc/posix-functions/posix_openpt.texi: Likewise.
44672         * doc/posix-functions/readlinkat.texi: Likewise.
44673         * doc/posix-functions/remque.texi: Likewise.
44674         * doc/posix-functions/renameat.texi: Likewise.
44675         * doc/posix-functions/rintl.texi: Likewise.
44676         * doc/posix-functions/sem_unlink.texi: Likewise.
44677         * doc/posix-functions/shm_open.texi: Likewise.
44678         * doc/posix-functions/shm_unlink.texi: Likewise.
44679         * doc/posix-functions/signgam.texi: Likewise.
44680         * doc/posix-functions/sigset.texi: Likewise.
44681         * doc/posix-functions/stpcpy.texi: Likewise.
44682         * doc/posix-functions/stpncpy.texi: Likewise.
44683         * doc/posix-functions/strerror.texi: Likewise.
44684         * doc/posix-functions/strtod.texi: Likewise.
44685         * doc/posix-functions/symlinkat.texi: Likewise.
44686         * doc/posix-functions/unlinkat.texi: Likewise.
44687         * doc/posix-functions/utimensat.texi: Likewise.
44688         * doc/glibc-functions/bindresvport.texi: Likewise.
44689         * doc/glibc-functions/dn_expand.texi: Likewise.
44690         * doc/glibc-functions/exp10.texi: Likewise.
44691         * doc/glibc-functions/exp10f.texi: Likewise.
44692         * doc/glibc-functions/fgetxattr.texi: Likewise.
44693         * doc/glibc-functions/flistxattr.texi: Likewise.
44694         * doc/glibc-functions/fopencookie.texi: Likewise.
44695         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44696         * doc/glibc-functions/fremovexattr.texi: Likewise.
44697         * doc/glibc-functions/fsetxattr.texi: Likewise.
44698         * doc/glibc-functions/getifaddrs.texi: Likewise.
44699         * doc/glibc-functions/getxattr.texi: Likewise.
44700         * doc/glibc-functions/lgetxattr.texi: Likewise.
44701         * doc/glibc-functions/listxattr.texi: Likewise.
44702         * doc/glibc-functions/llistxattr.texi: Likewise.
44703         * doc/glibc-functions/lremovexattr.texi: Likewise.
44704         * doc/glibc-functions/lsetxattr.texi: Likewise.
44705         * doc/glibc-functions/pow10.texi: Likewise.
44706         * doc/glibc-functions/pow10f.texi: Likewise.
44707         * doc/glibc-functions/rcmd_af.texi: Likewise.
44708         * doc/glibc-functions/removexattr.texi: Likewise.
44709         * doc/glibc-functions/res_init.texi: Likewise.
44710         * doc/glibc-functions/res_mkquery.texi: Likewise.
44711         * doc/glibc-functions/res_query.texi: Likewise.
44712         * doc/glibc-functions/res_querydomain.texi: Likewise.
44713         * doc/glibc-functions/res_send.texi: Likewise.
44714         * doc/glibc-functions/rresvport_af.texi: Likewise.
44715         * doc/glibc-functions/setxattr.texi: Likewise.
44716         * doc/glibc-functions/strcasestr.texi: Likewise.
44717
44718 2008-12-15  Bruno Haible  <bruno@clisp.org>
44719
44720         Fix compilation error on OSF/1 4.0.
44721         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44722         <sys/time.h>, simply delegate to the system header.
44723         Reported by Daniel Richard G. <oss@teragram.com>.
44724
44725 2008-12-15  Bruno Haible  <bruno@clisp.org>
44726
44727         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44728         * doc/posix-functions/fchmodat.texi: Likewise.
44729         * doc/posix-functions/fchownat.texi: Likewise.
44730         * doc/posix-functions/fdopendir.texi: Likewise.
44731         * doc/posix-functions/fstatat.texi: Likewise.
44732         * doc/posix-functions/mkdirat.texi: Likewise.
44733         * doc/posix-functions/unlinkat.texi: Likewise.
44734
44735 2008-12-14  Bruno Haible  <bruno@clisp.org>
44736
44737         Update doc for POSIX:2008.
44738         * doc/posix-functions/faccessat.texi: New file.
44739         * doc/posix-functions/fchmodat.texi: New file.
44740         * doc/posix-functions/fchownat.texi: New file.
44741         * doc/posix-functions/fdopendir.texi: New file.
44742         * doc/posix-functions/fstatat.texi: New file.
44743         * doc/posix-functions/futimens.texi: New file.
44744         * doc/posix-functions/linkat.texi: New file.
44745         * doc/posix-functions/mkdirat.texi: New file.
44746         * doc/posix-functions/mkfifoat.texi: New file.
44747         * doc/posix-functions/mknodat.texi: New file.
44748         * doc/posix-functions/open_wmemstream.texi: New file.
44749         * doc/posix-functions/openat.texi: New file.
44750         * doc/posix-functions/psiginfo.texi: New file.
44751         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44752         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44753         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44754         * doc/posix-functions/readlinkat.texi: New file.
44755         * doc/posix-functions/renameat.texi: New file.
44756         * doc/posix-functions/strerror_l.texi: New file.
44757         * doc/posix-functions/symlinkat.texi: New file.
44758         * doc/posix-functions/unlinkat.texi: New file.
44759         * doc/posix-functions/utimensat.texi: New file.
44760         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44761
44762 2008-12-14  Bruno Haible  <bruno@clisp.org>
44763
44764         Update doc for POSIX:2008.
44765         * doc/posix-functions/alphasort.texi: Renamed from
44766         doc/glibc-functions/alphasort.texi.
44767         * doc/posix-functions/dirfd.texi: Renamed from
44768         doc/glibc-functions/dirfd.texi.
44769         * doc/posix-functions/dprintf.texi: Renamed from
44770         doc/glibc-functions/dprintf.texi.
44771         * doc/posix-functions/duplocale.texi: Renamed from
44772         doc/glibc-functions/duplocale.texi.
44773         * doc/posix-functions/fexecve.texi: Renamed from
44774         doc/glibc-functions/fexecve.texi.
44775         * doc/posix-functions/fmemopen.texi: Renamed from
44776         doc/glibc-functions/fmemopen.texi.
44777         * doc/posix-functions/freelocale.texi: Renamed from
44778         doc/glibc-functions/freelocale.texi.
44779         * doc/posix-functions/getdate_err.texi: Renamed from
44780         doc/glibc-functions/getdate_err.texi.
44781         * doc/posix-functions/isalnum_l.texi: Renamed from
44782         doc/glibc-functions/isalnum_l.texi.
44783         * doc/posix-functions/isalpha_l.texi: Renamed from
44784         doc/glibc-functions/isalpha_l.texi.
44785         * doc/posix-functions/isblank_l.texi: Renamed from
44786         doc/glibc-functions/isblank_l.texi.
44787         * doc/posix-functions/iscntrl_l.texi: Renamed from
44788         doc/glibc-functions/iscntrl_l.texi.
44789         * doc/posix-functions/isdigit_l.texi: Renamed from
44790         doc/glibc-functions/isdigit_l.texi.
44791         * doc/posix-functions/isgraph_l.texi: Renamed from
44792         doc/glibc-functions/isgraph_l.texi.
44793         * doc/posix-functions/islower_l.texi: Renamed from
44794         doc/glibc-functions/islower_l.texi.
44795         * doc/posix-functions/isprint_l.texi: Renamed from
44796         doc/glibc-functions/isprint_l.texi.
44797         * doc/posix-functions/ispunct_l.texi: Renamed from
44798         doc/glibc-functions/ispunct_l.texi.
44799         * doc/posix-functions/isspace_l.texi: Renamed from
44800         doc/glibc-functions/isspace_l.texi.
44801         * doc/posix-functions/isupper_l.texi: Renamed from
44802         doc/glibc-functions/isupper_l.texi.
44803         * doc/posix-functions/iswalnum_l.texi: Renamed from
44804         doc/glibc-functions/iswalnum_l.texi.
44805         * doc/posix-functions/iswalpha_l.texi: Renamed from
44806         doc/glibc-functions/iswalpha_l.texi.
44807         * doc/posix-functions/iswblank_l.texi: Renamed from
44808         doc/glibc-functions/iswblank_l.texi.
44809         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44810         doc/glibc-functions/iswcntrl_l.texi.
44811         * doc/posix-functions/iswctype_l.texi: Renamed from
44812         doc/glibc-functions/iswctype_l.texi.
44813         * doc/posix-functions/iswdigit_l.texi: Renamed from
44814         doc/glibc-functions/iswdigit_l.texi.
44815         * doc/posix-functions/iswgraph_l.texi: Renamed from
44816         doc/glibc-functions/iswgraph_l.texi.
44817         * doc/posix-functions/iswlower_l.texi: Renamed from
44818         doc/glibc-functions/iswlower_l.texi.
44819         * doc/posix-functions/iswprint_l.texi: Renamed from
44820         doc/glibc-functions/iswprint_l.texi.
44821         * doc/posix-functions/iswpunct_l.texi: Renamed from
44822         doc/glibc-functions/iswpunct_l.texi.
44823         * doc/posix-functions/iswspace_l.texi: Renamed from
44824         doc/glibc-functions/iswspace_l.texi.
44825         * doc/posix-functions/iswupper_l.texi: Renamed from
44826         doc/glibc-functions/iswupper_l.texi.
44827         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44828         doc/glibc-functions/iswxdigit_l.texi.
44829         * doc/posix-functions/isxdigit_l.texi: Renamed from
44830         doc/glibc-functions/isxdigit_l.texi.
44831         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44832         doc/glibc-functions/mbsnrtowcs.texi.
44833         * doc/posix-functions/mkdtemp.texi: Renamed from
44834         doc/glibc-functions/mkdtemp.texi.
44835         * doc/posix-functions/newlocale.texi: Renamed from
44836         doc/glibc-functions/newlocale.texi.
44837         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44838         doc/glibc-functions/nl_langinfo_l.texi.
44839         * doc/posix-functions/open_memstream.texi: Renamed from
44840         doc/glibc-functions/open_memstream.texi.
44841         * doc/posix-functions/opterr.texi: Renamed from
44842         doc/glibc-functions/opterr.texi.
44843         * doc/posix-functions/optind.texi: Renamed from
44844         doc/glibc-functions/optind.texi.
44845         * doc/posix-functions/optopt.texi: Renamed from
44846         doc/glibc-functions/optopt.texi.
44847         * doc/posix-functions/psignal.texi: Renamed from
44848         doc/glibc-functions/psignal.texi.
44849         * doc/posix-functions/scandir.texi: Renamed from
44850         doc/glibc-functions/scandir.texi.
44851         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44852         doc/glibc-functions/sched_get_priority_min.texi.
44853         * doc/posix-functions/signgam.texi: Renamed from
44854         doc/glibc-functions/signgam.texi.
44855         * doc/posix-functions/stpcpy.texi: Renamed from
44856         doc/glibc-functions/stpcpy.texi.
44857         * doc/posix-functions/stpncpy.texi: Renamed from
44858         doc/glibc-functions/stpncpy.texi.
44859         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44860         doc/glibc-functions/strcasecmp_l.texi.
44861         * doc/posix-functions/strcoll_l.texi: Renamed from
44862         doc/glibc-functions/strcoll_l.texi.
44863         * doc/posix-functions/strfmon_l.texi: Renamed from
44864         doc/glibc-functions/strfmon_l.texi.
44865         * doc/posix-functions/strftime_l.texi: Renamed from
44866         doc/glibc-functions/strftime_l.texi.
44867         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44868         doc/glibc-functions/strncasecmp_l.texi.
44869         * doc/posix-functions/strndup.texi: Renamed from
44870         doc/glibc-functions/strndup.texi.
44871         * doc/posix-functions/strnlen.texi: Renamed from
44872         doc/glibc-functions/strnlen.texi.
44873         * doc/posix-functions/strsignal.texi: Renamed from
44874         doc/glibc-functions/strsignal.texi.
44875         * doc/posix-functions/strxfrm_l.texi: Renamed from
44876         doc/glibc-functions/strxfrm_l.texi.
44877         * doc/posix-functions/timer_gettime.texi: Renamed from
44878         doc/glibc-functions/timer_gettime.texi.
44879         * doc/posix-functions/tolower_l.texi: Renamed from
44880         doc/glibc-functions/tolower_l.texi.
44881         * doc/posix-functions/toupper_l.texi: Renamed from
44882         doc/glibc-functions/toupper_l.texi.
44883         * doc/posix-functions/towctrans_l.texi: Renamed from
44884         doc/glibc-functions/towctrans_l.texi.
44885         * doc/posix-functions/towlower_l.texi: Renamed from
44886         doc/glibc-functions/towlower_l.texi.
44887         * doc/posix-functions/towupper_l.texi: Renamed from
44888         doc/glibc-functions/towupper_l.texi.
44889         * doc/posix-functions/uselocale.texi: Renamed from
44890         doc/glibc-functions/uselocale.texi.
44891         * doc/posix-functions/vdprintf.texi: Renamed from
44892         doc/glibc-functions/vdprintf.texi.
44893         * doc/posix-functions/wcpcpy.texi:
44894         Renamed from doc/glibc-functions/wcpcpy.texi.
44895         * doc/posix-functions/wcpncpy.texi: Renamed from
44896         doc/glibc-functions/wcpncpy.texi.
44897         * doc/posix-functions/wcscasecmp.texi: Renamed from
44898         doc/glibc-functions/wcscasecmp.texi.
44899         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44900         doc/glibc-functions/wcscasecmp_l.texi.
44901         * doc/posix-functions/wcscoll_l.texi: Renamed from
44902         doc/glibc-functions/wcscoll_l.texi.
44903         * doc/posix-functions/wcsdup.texi: Renamed from
44904         doc/glibc-functions/wcsdup.texi.
44905         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44906         doc/glibc-functions/wcsncasecmp.texi.
44907         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44908         doc/glibc-functions/wcsncasecmp_l.texi.
44909         * doc/posix-functions/wcsnlen.texi: Renamed from
44910         doc/glibc-functions/wcsnlen.texi.
44911         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44912         doc/glibc-functions/wcsnrtombs.texi.
44913         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44914         doc/glibc-functions/wcsxfrm_l.texi.
44915         * doc/posix-functions/wctrans_l.texi: Renamed from
44916         doc/glibc-functions/wctrans_l.texi.
44917         * doc/posix-functions/wctype_l.texi: Renamed from
44918         doc/glibc-functions/wctype_l.texi.
44919         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44920         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44921         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44922         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44923         these subsections.
44924         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44925         Remove sections.
44926
44927 2008-12-14  Bruno Haible  <bruno@clisp.org>
44928
44929         Update doc for POSIX:2008.
44930         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44931
44932 2008-12-14  Bruno Haible  <bruno@clisp.org>
44933
44934         Update doc for POSIX:2008.
44935         * doc/pastposix-functions/bcmp.texi: Renamed from
44936         doc/posix-functions/bcmp.texi.
44937         * doc/pastposix-functions/bcopy.texi: Renamed from
44938         doc/posix-functions/bcopy.texi.
44939         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44940         doc/posix-functions/bsd_signal.texi.
44941         * doc/pastposix-functions/bzero.texi: Renamed from
44942         doc/posix-functions/bzero.texi.
44943         * doc/pastposix-functions/ecvt.texi: Renamed from
44944         doc/posix-functions/ecvt.texi.
44945         * doc/pastposix-functions/fcvt.texi: Renamed from
44946         doc/posix-functions/fcvt.texi.
44947         * doc/pastposix-functions/ftime.texi: Renamed from
44948         doc/posix-functions/ftime.texi.
44949         * doc/pastposix-functions/gcvt.texi: Renamed from
44950         doc/posix-functions/gcvt.texi.
44951         * doc/pastposix-functions/getcontext.texi: Renamed from
44952         doc/posix-functions/getcontext.texi.
44953         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44954         doc/posix-functions/gethostbyaddr.texi.
44955         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44956         doc/posix-functions/gethostbyname.texi.
44957         * doc/pastposix-functions/getwd.texi: Renamed from
44958         doc/posix-functions/getwd.texi.
44959         * doc/pastposix-functions/h_errno.texi: Renamed from
44960         doc/posix-functions/h_errno.texi.
44961         * doc/pastposix-functions/index.texi: Renamed from
44962         doc/posix-functions/index.texi.
44963         * doc/pastposix-functions/makecontext.texi: Renamed from
44964         doc/posix-functions/makecontext.texi.
44965         * doc/pastposix-functions/mktemp.texi: Renamed from
44966         doc/posix-functions/mktemp.texi.
44967         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44968         doc/posix-functions/pthread_attr_getstackaddr.texi.
44969         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44970         doc/posix-functions/pthread_attr_setstackaddr.texi.
44971         * doc/pastposix-functions/rindex.texi: Renamed from
44972         doc/posix-functions/rindex.texi.
44973         * doc/pastposix-functions/scalb.texi: Renamed from
44974         doc/posix-functions/scalb.texi.
44975         * doc/pastposix-functions/setcontext.texi: Renamed from
44976         doc/posix-functions/setcontext.texi.
44977         * doc/pastposix-functions/swapcontext.texi: Renamed from
44978         doc/posix-functions/swapcontext.texi.
44979         * doc/pastposix-functions/ualarm.texi: Renamed from
44980         doc/posix-functions/ualarm.texi.
44981         * doc/pastposix-functions/usleep.texi: Renamed from
44982         doc/posix-functions/usleep.texi.
44983         * doc/pastposix-functions/vfork.texi: Renamed from
44984         doc/posix-functions/vfork.texi.
44985         * doc/pastposix-functions/wcswcs.texi: Renamed from
44986         doc/posix-functions/wcswcs.texi.
44987         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44988         (Function Substitutes): Update.
44989
44990 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44991
44992         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44993         m4/strerror.m4.
44994
44995 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44996             Bruno Haible  <bruno@clisp.org>
44997
44998         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44999
45000 2008-12-13  Bruno Haible  <bruno@clisp.org>
45001
45002         * modules/strtoull (Depends-on): Remove unistd.
45003
45004 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45005
45006         * modules/strtoull (Depends-on): Add stdlib.
45007
45008 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45009
45010         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45011
45012 2008-12-10  Jim Meyering  <meyering@redhat.com>
45013
45014         gl_ASSERT: don't say assertions are disabled when they're not
45015         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45016         "checking whether to enable assertions... no", when they are in
45017         fact enabled.  This is solely a bug in the output of configure.
45018         In spite of saying "no", NDEBUG was not defined in that case.
45019         Also, as noted by Eric Blake, leave assertions enabled upon
45020         --enable-assert=INVALID.
45021
45022 2008-12-10  Bruno Haible  <bruno@clisp.org>
45023
45024         Change MODULES.html to refer to POSIX:2008 where possible.
45025         * MODULES.html.sh (POSIX2008_URL): New variable.
45026         (posix_headers): Remove sys/timeb, ucontext.
45027         (posix2001_headers): New variable.
45028         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45029         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45030         index, makecontext, mktemp, pthread_attr_getstackaddr,
45031         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45032         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45033         (posix2001_functions): New variable.
45034         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45035         otherwise.
45036
45037 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45038
45039         add missing include to parse-duration.c
45040         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45041         * modules/parse-duration (Depends-on): Add xalloc.
45042
45043         fix sed script reading maint.mk
45044         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45045         (syntax-check-rules): Use it.
45046
45047 2008-12-09  Bruno Haible  <bruno@clisp.org>
45048
45049         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45050         MacOS X 10.4/PowerPC.
45051         Reported by Simon Josefsson.
45052
45053 2008-12-08  Jim Meyering  <meyering@redhat.com>
45054
45055         work around mingw's lack of some S_IF definitions
45056         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45057         Reported by Simon Josefsson.
45058
45059 2008-12-08  Bruno Haible  <bruno@clisp.org>
45060
45061         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45062         applied to variables. Needed on MacOS X 10.4/PowerPC.
45063         Reported by Simon Josefsson.
45064
45065 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45066         and Eric Blake  <ebb9@byu.net>
45067
45068         assert: honor --enable-assert
45069         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45070         order to honor --enable-assert, rather than treating it as a
45071         synonym for --disable-assert.
45072
45073 2008-12-08  Jim Meyering  <meyering@redhat.com>
45074
45075         * lib/posixtm.c: Remove now-useless declaration of mktime.
45076
45077         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45078
45079 2008-12-07  Bruno Haible  <bruno@clisp.org>
45080
45081         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45082         test_once): Mark functions as static.
45083         * tests/test-tls.c (test_tls): Likewise.
45084
45085 2008-12-07  Bruno Haible  <bruno@clisp.org>
45086
45087         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45088         iconv_register_autodetect.
45089
45090 2008-12-07  Jim Meyering  <meyering@redhat.com>
45091
45092         posixtm.c: avoid a warning
45093         * lib/posixtm.c (posixtime): Don't initialize tm0.
45094         It's no longer needed to placate gcc4's -Wuninitialized,
45095         and the attempt to placate would elicit a new warning.
45096
45097         unicodeio.c: mark unused parameters
45098         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45099         (fallback_failure_callback): Likewise.
45100
45101 2008-12-07  Bruno Haible  <bruno@clisp.org>
45102
45103         * gnulib-tool (func_create_testdir): When building the tests
45104         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45105         Reported by Simon Josefsson.
45106
45107 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45108
45109         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45110
45111 2008-12-06  Bruno Haible  <bruno@clisp.org>
45112
45113         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45114         Suggested by Eric Blake.
45115
45116 2008-12-06  Bruno Haible  <bruno@clisp.org>
45117
45118         Fix a c-stack test failure on MacOS X.
45119         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45120         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45121         handler for SIGBUS as well.
45122         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45123         install a signal handler for SIGBUS as well.
45124         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45125
45126 2008-12-06  Bruno Haible  <bruno@clisp.org>
45127
45128         Advocacy documentation.
45129         * doc/gnulib-intro.texi (Benefits): New section.
45130         * doc/gnulib.texi: Update.
45131
45132 2008-12-06  Bruno Haible  <bruno@clisp.org>
45133
45134         Document the 'manywarnings' module.
45135         * doc/manywarnings.texi: New file.
45136         * doc/gnulib.texi: Include it.
45137
45138 2008-12-05  Eric Blake  <ebb9@byu.net>
45139
45140         tests: silence some gcc warnings
45141         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45142         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45143         type mismatches.
45144
45145 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45146             Bruno Haible  <bruno@clisp.org>
45147
45148         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45149
45150 2008-11-29  Jim Meyering  <meyering@redhat.com>
45151
45152         unicodeio.c: mark unused parameters
45153         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45154         (fallback_failure_callback): Likewise.
45155
45156         fts: fix a thinko
45157         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45158         (set_stat_type): Return S_IF*-valued "type" directly.
45159         Prompted by James Youngman's spotting a related bug.
45160         Confirmed by further testing through find.
45161
45162         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45163         * lib/fts.c (D_TYPE): Define.
45164         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45165         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45166         (s_ifmt_shift_bits): New function.
45167         (set_stat_type): New function.
45168         (fts_build): When not calling fts_stat, call set_stat_type
45169         to propagate dirent.d_type info to fts_read caller.
45170         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45171         fts_statp->st_mode type information may be valid.
45172
45173 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45174
45175         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45176         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45177         <sds@gnu.org>.
45178
45179 2008-11-20  Bruno Haible  <bruno@clisp.org>
45180
45181         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45182         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45183         INCLUDE_NEXT.
45184         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45185         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45186         * modules/math (Makefile.am): Substitute
45187         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45188         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45189
45190 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45191             Bruno Haible  <bruno@clisp.org>
45192
45193         * lib/stdint.in.h: Define all type macros so that their expansion is
45194         a single typedef'ed token. Fixes a compilation failure in Boost which
45195         does "using ::int8_t;".
45196
45197 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45198
45199         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45200         gl_MANYWARN_ALL_GCC.
45201         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45202         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45203         * modules/manywarnings: New file.
45204         * MODULES.html.sh: Mention manywarnings module.
45205
45206 2008-11-18  Bruno Haible  <bruno@clisp.org>
45207
45208         * doc/gnulib-tool.texi (Unit tests): New section.
45209
45210 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45211
45212         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45213         paths like 'lib/po/foo.po'.
45214
45215 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45216
45217         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45218         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45219
45220 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45221
45222         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45223         parameter works.
45224
45225 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45226
45227         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45228
45229 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45230
45231         * modules/parse-duration-tests: New file.
45232         * tests/test-parse-duration.sh: New file.
45233         * tests/test-parse-duration.c: New file.
45234
45235         New module 'parse-duration'.
45236         * lib/parse-duration.h: New file.
45237         * lib/parse-duration.c: New file.
45238         * modules/parse-duration: New file.
45239
45240 2008-11-17  Bruno Haible  <bruno@clisp.org>
45241
45242         * tests/test-select-out.sh: Comment out the first pipe test.
45243         Reported by Simon Josefsson.
45244
45245 2008-11-17  Bruno Haible  <bruno@clisp.org>
45246
45247         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45248         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45249         gl_HOSTENT.
45250
45251 2008-11-17  Bruno Haible  <bruno@clisp.org>
45252
45253         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45254         -lnetwork and -lnet. Needed for Haiku and BeOS.
45255
45256 2008-11-16  Bruno Haible  <bruno@clisp.org>
45257
45258         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45259
45260 2008-11-16  Bruno Haible  <bruno@clisp.org>
45261
45262         Avoid test failure on Haiku.
45263         * tests/test-fsync.c: Include <errno.h>.
45264         (main): Don't require that fsync (0) fails.
45265
45266 2008-11-15  Bruno Haible  <bruno@clisp.org>
45267
45268         New module 'hostent'.
45269         * modules/hostent: New file.
45270         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45271
45272 2008-11-15  Bruno Haible  <bruno@clisp.org>
45273
45274         New module 'servent'.
45275         * modules/servent: New file.
45276         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45277
45278 2008-11-15  Bruno Haible  <bruno@clisp.org>
45279
45280         Avoid generating same test program with two different rules.
45281         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45282         test-frexp to test-frexp-nolibm.
45283         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45284         test-frexpl to test-frexpl-nolibm.
45285
45286 2008-11-15  Bruno Haible  <bruno@clisp.org>
45287
45288         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45289         $(FREXPL_LIBM).
45290
45291 2008-11-15  Bruno Haible  <bruno@clisp.org>
45292
45293         * lib/netdb.in.h: Activate the definitions also when the system's
45294         <netdb.h> has 'struct addrinfo'.
45295         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45296         EAI_OVERFLOW or AI_NUMERICSERV.
45297         * doc/posix-headers/netdb.texi: Document the problem.
45298
45299 2008-11-15  Bruno Haible  <bruno@clisp.org>
45300
45301         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45302
45303         Make the 'sched' module work on platforms where <sched.h> exists but
45304         is incomplete (such as Haiku).
45305         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45306         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45307         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45308         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45309         HAVE_STRUCT_SCHED_PARAM.
45310         * modules/sched (Depends-on): Add include_next.
45311         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45312         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45313         * doc/posix-headers/sched.texi: Document the issue.
45314
45315 2008-11-13  Jim Meyering  <meyering@redhat.com>
45316
45317         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45318         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45319         test would fail due to the difference in the Report bugs to ...
45320         line.  The expected address is empty, "<>", while the actual
45321         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45322
45323 2008-11-12  Bruno Haible  <bruno@clisp.org>
45324
45325         lstat: don't compile lstat.c on systems lacking lstat
45326         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45327         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45328         Reported by Daniel P. Berrange via Jim Meyering.
45329
45330 2008-11-12  Jim Meyering  <meyering@redhat.com>
45331
45332         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45333
45334 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45335
45336         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45337         instead.
45338
45339 2008-11-12  Bruno Haible  <bruno@clisp.org>
45340
45341         * lib/unicodeio.c: Include unistr.h.
45342         (utf8_wctomb): Remove function.
45343         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45344
45345 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45346
45347         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45348         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45349         <bruno@clisp.org>.
45350         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45351
45352 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45353
45354         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45355         * doc/gnulib.texi: Add section for warnings.
45356
45357 2008-11-11  Bruno Haible  <bruno@clisp.org>
45358
45359         * lib/sockets.h: Add a comment.
45360
45361 2008-11-11  Karl Berry  <karl@gnu.org>
45362
45363         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45364
45365 2008-11-11  Eric Blake  <ebb9@byu.net>
45366
45367         fdl.texi: avoid git symlinks
45368         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45369
45370 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45371
45372         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45373
45374 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45375
45376         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45377         (gl_WARN_ADD): Substitute $2 if literal.
45378
45379 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45380
45381         * m4/warning.m4: Remove.
45382
45383 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45384
45385         * m4/warnings.m4: Almost complete rewrite. :-)
45386
45387 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45388
45389         * modules/warnings: New module.
45390         * m4/warnings.m4: New file.
45391         * MODULES.html.sh: Mention warnings module.
45392         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45393         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45394
45395 2008-11-10  Eric Blake  <ebb9@byu.net>
45396
45397         fdl.texi: make a symlink to the latest version
45398         * doc/standards.texi: Revert today's earlier change.
45399         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45400         * doc/fdl.texi: ...and replace this with a symlink to the newer
45401         fdl-1.3.texi.
45402
45403 2008-11-10  Bruno Haible  <bruno@clisp.org>
45404
45405         * tests/test-select-fd.c (main): Accept the result file name as fourth
45406         argument.
45407         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45408         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45409
45410 2008-11-10  Bruno Haible  <bruno@clisp.org>
45411
45412         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45413         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45414         as autoconf-substituted macros.
45415         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45416         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45417         gl_NETDB_H_DEFAULTS. Set these variables.
45418         * modules/netdb (Makefile.am): Substitute these variables.
45419
45420 2008-11-10  Eric Blake  <ebb9@byu.net>
45421
45422         standards.texi: include correct file for FDL 1.3
45423         * doc/standards.texi (GNU Free Documentation License): Change
45424         include file to pull in FDL 1.3, not 1.2.
45425
45426         fdl.texi: revert accidental change to license
45427         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45428
45429 2008-11-10  Bruno Haible  <bruno@clisp.org>
45430
45431         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45432         cross-compiling guesses also when the native compile gives no result.
45433
45434 2008-11-10  Bruno Haible  <bruno@clisp.org>
45435
45436         * lib/spawni.c (__spawni): Force variable into the stack.
45437
45438 2008-11-10  Bruno Haible  <bruno@clisp.org>
45439
45440         Add support for Haiku.
45441         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45442         glibc and BeOS, but also on Haiku.
45443         * lib/fpurge.c (fpurge): Likewise.
45444         * lib/freadable.c (freadable): Likewise.
45445         * lib/freadahead.c (freadahead): Likewise.
45446         * lib/freading.c (freading): Likewise.
45447         * lib/freadptr.c (freadptr): Likewise.
45448         * lib/freadseek.c (freadptrinc): Likewise.
45449         * lib/fseeko.c (rpl_fseeko): Likewise.
45450         * lib/fseterr.c (fseterr): Likewise.
45451         * lib/fwritable.c (fwritable): Likewise.
45452         * lib/fwriting.c (fwriting): Likewise.
45453         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45454
45455 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45456
45457         * lib/config.charset: Treat Haiku like BeOS.
45458
45459 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45460
45461         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45462         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45463
45464 2008-11-08  Bruno Haible  <bruno@clisp.org>
45465
45466         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45467         AC_CACHE_CHECK.
45468
45469 2008-11-08  Bruno Haible  <bruno@clisp.org>
45470
45471         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45472
45473 2008-11-08  Bruno Haible  <bruno@clisp.org>
45474
45475         * tests/test-select-fd.c: New file.
45476         * tests/test-select-in.sh: New file.
45477         * tests/test-select-out.sh: New file.
45478         * tests/test-select-stdin.c: New file.
45479         * modules/select-tests (Files): Add the new files.
45480         (Depends-on): Add gettimeofday.
45481         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45482         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45483         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45484
45485 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45486             Bruno Haible  <bruno@clisp.org>
45487
45488         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45489
45490 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45491
45492         * build-aux/pmccabe2html: Added support for C++ source files.
45493
45494 2008-11-05  Ben Pfaff  <blp@gnu.org>
45495
45496         Fix lib/close.c build on Windows.
45497         * modules/close (Files): Add lib/w32sock.h.
45498
45499 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45500
45501         Accept Bison's NEWS format.
45502         * build-aux/announce-gen (print_news_deltas): Tweak
45503         $re_prefix.
45504
45505 2008-11-04  Bruno Haible  <bruno@clisp.org>
45506
45507         * modules/random_r (Maintainer): Add glibc.
45508
45509 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45510
45511         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45512         by karl@freefriends.org (Karl Berry).
45513         * doc/alloca.texi: Likewise.
45514         * doc/c-ctype.texi: Likewise.
45515         * doc/c-strcase.texi: Likewise.
45516         * doc/c-strcaseeq.texi: Likewise.
45517         * doc/c-strcasestr.texi: Likewise.
45518         * doc/c-strstr.texi: Likewise.
45519         * doc/c-strtod.texi: Likewise.
45520         * doc/c-strtold.texi: Likewise.
45521         * doc/ctime.texi: Likewise.
45522         * doc/error.texi: Likewise.
45523         * doc/fdl.texi: Likewise.
45524         * doc/gcd.texi: Likewise.
45525         * doc/getdate.texi: Likewise.
45526         * doc/gnulib-intro.texi: Likewise.
45527         * doc/gnulib-tool.texi: Likewise.
45528         * doc/gnulib.texi: Likewise.
45529         * doc/inet_ntoa.texi: Likewise.
45530         * doc/maintain.texi: Likewise.
45531         * doc/make-stds.texi: Likewise.
45532         * doc/quote.texi: Likewise.
45533         * doc/regexprops-generic.texi: Likewise.
45534         * doc/standards.texi: Likewise.
45535         * doc/verify.texi: Likewise.
45536         * doc/visibility.texi: Likewise.
45537         * doc/gnulib.texi (GNU Free Documentation License): Include
45538         fdl-1.3.texi instead of fdl.texi.
45539
45540 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45541
45542         * doc/fdl-1.3.texi: New file, from
45543         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45544         * modules/fdl-1.3: Add.
45545         * MODULES.html.sh: Add fdl-1.3.
45546
45547 2008-11-03  Bruno Haible  <bruno@clisp.org>
45548
45549         Make determination of absolute name of header file work with AIX xlc.
45550         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45551         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45552         preprocessing.
45553         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45554         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45555
45556 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45557
45558         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45559         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45560         <ludo@gnu.org>.
45561
45562 2008-11-02  Bruno Haible  <bruno@clisp.org>
45563
45564         Mark 'strpbrk' obsolete.
45565         * modules/strpbrk (Status, Notice): New sections.
45566         * modules/strtok_r (Depends-on): Add strpbrk.
45567
45568 2008-11-02  Bruno Haible  <bruno@clisp.org>
45569
45570         Mark 'strdup' obsolete.
45571         * modules/strdup (Status, Notice): New sections.
45572         * modules/findprog (Depends-on): Add strdup.
45573         * modules/getaddrinfo (Depends-on): Likewise.
45574         * modules/localename (Depends-on): Likewise.
45575         * modules/relocatable-lib (Depends-on): Likewise.
45576         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45577         * modules/relocatable-prog (Depends-on): Likewise.
45578         * modules/trim (Depends-on): Likewise.
45579         * modules/unictype/gen-ctype (Depends-on): Likewise.
45580         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45581
45582 2008-11-02  Bruno Haible  <bruno@clisp.org>
45583
45584         Mark 'strcspn' obsolete.
45585         * modules/strcspn (Status, Notice): New sections.
45586
45587 2008-11-02  Bruno Haible  <bruno@clisp.org>
45588
45589         Mark 'rmdir' obsolete.
45590         * modules/rmdir (Status, Notice): New sections.
45591         * modules/clean-temp (Depends-on): Add rmdir.
45592         * modules/openat (Depends-on): Likewise.
45593
45594 2008-11-02  Bruno Haible  <bruno@clisp.org>
45595
45596         Mark 'raise' obsolete.
45597         * modules/raise (Status, Notice): New sections.
45598         (Include): Specify <signal.h>.
45599         * modules/stdio (Depends-on): Add raise.
45600         * modules/write (Depends-on): Likewise.
45601
45602 2008-11-02  Bruno Haible  <bruno@clisp.org>
45603
45604         Mark 'memset' obsolete.
45605         * modules/memset (Status, Notice): New sections.
45606
45607 2008-11-02  Bruno Haible  <bruno@clisp.org>
45608
45609         Mark 'memmove' obsolete.
45610         * modules/memmove (Status, Notice): New sections.
45611         * modules/argp (Depends-on): Add memmove.
45612         * modules/argz (Depends-on): Likewise.
45613         * modules/canonicalize (Depends-on): Likewise.
45614         * modules/canonicalize-lgpl (Depends-on): Likewise.
45615         * modules/fts (Depends-on): Likewise.
45616         * modules/getcwd (Depends-on): Likewise.
45617         * modules/human (Depends-on): Likewise.
45618         * modules/regex (Depends-on): Likewise.
45619         * modules/striconveh (Depends-on): Likewise.
45620         * modules/trim (Depends-on): Likewise.
45621         * modules/unistr/u8-move (Depends-on): Likewise.
45622         * modules/unistr/u16-move (Depends-on): Likewise.
45623         * modules/unistr/u32-move (Depends-on): Likewise.
45624
45625 2008-11-02  Bruno Haible  <bruno@clisp.org>
45626
45627         Mark 'memcpy' obsolete.
45628         * modules/memcpy (Status, Notice): New sections.
45629
45630 2008-11-02  Bruno Haible  <bruno@clisp.org>
45631
45632         Mark 'memcmp' obsolete.
45633         * modules/memcmp (Status, Notice): New sections.
45634         * modules/argmatch (Depends-on): Add memchr.
45635         * modules/backupfile (Depends-on): Likewise.
45636         * modules/c-strcasestr (Depends-on): Likewise.
45637         * modules/crypto/des (Depends-on): Likewise.
45638         * modules/csharpcomp (Depends-on): Likewise.
45639         * modules/fnmatch (Depends-on): Likewise.
45640         * modules/git-merge-changelog (Depends-on): Likewise.
45641         * modules/isnand (Depends-on): Likewise.
45642         * modules/isnand-nolibm (Depends-on): Likewise.
45643         * modules/isnanf (Depends-on): Likewise.
45644         * modules/isnanf-nolibm (Depends-on): Likewise.
45645         * modules/isnanl (Depends-on): Likewise.
45646         * modules/isnanl-nolibm (Depends-on): Likewise.
45647         * modules/mbchar (Depends-on): Likewise.
45648         * modules/memcoll (Depends-on): Likewise.
45649         * modules/quotearg (Depends-on): Likewise.
45650         * modules/regex (Depends-on): Likewise.
45651         * modules/relocatable-prog (Depends-on): Likewise.
45652         * modules/same (Depends-on): Likewise.
45653         * modules/signbit (Depends-on): Likewise.
45654         * modules/strcasestr-simple (Depends-on): Likewise.
45655         * modules/unictype/gen-ctype (Depends-on): Likewise.
45656         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45657         * modules/uniname/uniname (Depends-on): Likewise.
45658         * modules/unistr/u8-cmp (Depends-on): Likewise.
45659
45660 2008-11-02  Bruno Haible  <bruno@clisp.org>
45661
45662         Mark 'memchr' obsolete.
45663         * modules/memchr (Status, Notice): New sections.
45664         * modules/argp (Depends-on): Add memchr.
45665         * modules/base64 (Depends-on): Likewise.
45666         * modules/c-strcasestr (Depends-on): Likewise.
45667         * modules/chdir-long (Depends-on): Likewise.
45668         * modules/fnmatch (Depends-on): Likewise.
45669         * modules/getsubopt (Depends-on): Likewise.
45670         * modules/git-merge-changelog (Depends-on): Likewise.
45671         * modules/glob (Depends-on): Likewise.
45672         * modules/strcasestr-simple (Depends-on): Likewise.
45673         * modules/strnlen (Depends-on): Likewise.
45674
45675 2008-11-02  Bruno Haible  <bruno@clisp.org>
45676
45677         Mark 'atexit' obsolete.
45678         * modules/atexit (Status, Notice): New sections.
45679         * modules/chdir-long (Depends-on): Add atexit.
45680         * modules/wait-process (Depends-on): Likewise.
45681
45682 2008-11-02  Bruno Haible  <bruno@clisp.org>
45683
45684         * gnulib-tool: New option --with-obsolete.
45685         (func_usage): Document it.
45686         (func_modules_transitive_closure): Drop obsolete dependencies if
45687         incobsolete is not true.
45688         (func_import): Read and save the incobsolete variable to the cache.
45689
45690 2008-11-02  Bruno Haible  <bruno@clisp.org>
45691
45692         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45693         * gnulib-tool: New option --extract-status.
45694         (func_usage): Document it.
45695         (sed_extract_prog): Recognize it.
45696         (func_get_status): New function.
45697
45698 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45699
45700         * modules/sockets (License): Change from LGPL to LGPLv2+.
45701
45702 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45703
45704         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45705
45706 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45707
45708         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45709         Mention times and sys_times.
45710         * modules/sys_times, modules/sys_times-tests: New modules.
45711         * modules/times, modules/times-tests: Likewise
45712         * m4/sys_times_h.m4: New file.
45713         * lib/sys_times.in.h: Likewise
45714         * lib/times.c: Likewise.
45715         * tests/test-sys_times.c: Likewise.
45716         * tests/test-times.c: Likewise.
45717         * doc/posix-headers/sys_times.texi: Update.
45718         * doc/posix-functions/times.texi: Update.
45719
45720 2008-10-28  Jim Meyering  <meyering@redhat.com>
45721
45722         * modules/tempname (Depends-on): Add lstat.
45723
45724         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45725
45726 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45727
45728         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45729         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45730         using idiom used elsewhere in gnulib.
45731
45732 2008-10-27  Jim Meyering  <meyering@redhat.com>
45733
45734         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45735
45736 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45737
45738         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45739         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45740         programs.
45741         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45742
45743 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45744
45745         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45746
45747 2008-10-27  Bruno Haible  <bruno@clisp.org>
45748
45749         * tests/test-lstat.c: Include <stdio.h>.
45750
45751 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45752
45753         * modules/lstat-tests: New module.
45754         * tests/test-lstat.c: New file.
45755
45756 2008-10-26  Jim Meyering  <meyering@redhat.com>
45757
45758         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45759
45760 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45761             Bruno Haible  <bruno@clisp.org>
45762
45763         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45764         * modules/configmake (Include): Add a note that the include must come
45765         after all system headers.
45766         * lib/javaversion.c: Include configmake.h after all other includes.
45767
45768 2008-10-26  Bruno Haible  <bruno@clisp.org>
45769
45770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45771         HAVE_STRUCT_RANDOM_DATA to 1.
45772         (gl_STDLIB_H): Simplify.
45773
45774 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45775
45776         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45777         substitute HAVE_STRUCT_RANDOM_DATA.
45778         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45779         random_data.
45780         * modules/stdlib (Makefile.am): Substitute
45781         HAVE_STRUCT_RANDOM_DATA.
45782
45783 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45784
45785         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45786         * doc/gnulib-intro.texi (Copyright): Likewise.
45787
45788 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45789
45790         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45791         findings.
45792
45793 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45794             Bruno Haible  <bruno@clisp.org>
45795
45796         * lib/unistd.in.h: Include <winsock2.h>.
45797         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45798         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45799         Provide dummy declarations.
45800         (gethostname): Override.
45801         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45802         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45803         gl_PREREQ_SYS_H_WINSOCK2.
45804         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45805         * doc/posix-functions/gethostname.texi: More details.
45806
45807 2008-10-25  Bruno Haible  <bruno@clisp.org>
45808
45809         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45810         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45811         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45812
45813         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45814         here ...
45815         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45816         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45817         gl_UNISTD_H_DEFAULTS.
45818
45819 2008-10-25  Eric Blake  <ebb9@byu.net>
45820
45821         signbit: avoid spurious compiler failure
45822         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45823         declarations inside function.
45824
45825 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45826             Bruno Haible  <bruno@clisp.org>
45827
45828         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45829         * modules/random_r (Depends-on): Add stdint.
45830
45831 2008-10-24  Bruno Haible  <bruno@clisp.org>
45832
45833         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45834         Eggert.
45835         * modules/strerror (License): Likewise.
45836
45837 2008-10-24  Jim Meyering  <meyering@redhat.com>
45838
45839         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45840         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45841
45842 2008-10-24  Eric Blake  <ebb9@byu.net>
45843
45844         getgroups: fix compilation when getgroups is available
45845         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45846         but with <config.h> override of getgroups disabled.
45847
45848 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45849
45850         * doc/gnulib.texi (Header files): Add note about C++ problems.
45851         Explained by Bruno Haible <bruno@clisp.org>.
45852
45853 2008-10-23  Bruno Haible  <bruno@clisp.org>
45854
45855         Define a dummy SA_NODEFER macro on Interix.
45856         * lib/signal.in.h (SA_NODEFER): Define fallback.
45857         Reported by Aleksey Cheusov <cheusov@tut.by> via
45858         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45859
45860 2008-10-23  Bruno Haible  <bruno@clisp.org>
45861
45862         * modules/freadahead (License): Change to LGPLv2+.
45863         Suggested by Simon Josefsson.
45864
45865 2008-10-23  Jim Meyering  <meyering@redhat.com>
45866
45867         random_r: new module
45868         * modules/random_r: New file.
45869         * m4/random_r.m4: New file.
45870         * lib/random_r.c: New file, from glibc.
45871         * modules/random_r-tests: New file.
45872         * tests/test-random_r.c: New file.
45873         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45874          Declare.
45875         (RAND_MAX): Define.
45876         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45877         * modules/stdlib: Substitute them, too.
45878         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45879         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45880         * doc/glibc-functions/random_r.texi: Likewise.
45881         * doc/glibc-functions/setstate_r.texi: Likewise.
45882         * doc/glibc-functions/srandom_r.texi: Likewise.
45883         * config/srclist.txt: Mention it.
45884
45885 2008-10-23  David Lutterkort  <lutter@redhat.com>
45886
45887         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45888         link requirement
45889
45890 2008-10-23  Jim Meyering  <meyering@redhat.com>
45891
45892         selinux-h: mark parameters of stub functions as intentionally unused
45893         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45894         * lib/se-context.in.h: Likewise.
45895
45896 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45897
45898         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45899
45900 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45901
45902         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45903
45904 2008-10-22  Eric Blake  <ebb9@byu.net>
45905
45906         glthread/thread: avoid compiler warning
45907         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45908         Add unreachable abort to silence compiler.
45909
45910 2008-10-22  Eric Blake  <ebb9@byu.net>
45911
45912         netdb: also supply struct addrinfo for cygwin 1.5.x
45913         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45914         older cygwin.
45915         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45916         cygwin.
45917         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45918
45919 2008-10-22  Bruno Haible  <bruno@clisp.org>
45920
45921         * users.txt: Update entry about pspp.
45922
45923 2008-10-21  Bruno Haible  <bruno@clisp.org>
45924
45925         Simplification.
45926         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45927         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45928
45929         Simplification.
45930         * lib/ioctl.c (ioctl): Don't undefine.
45931         * lib/socket.c (socket): Don't undefine.
45932
45933         Remove unused module indicator macros.
45934         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45935         GNULIB_$1 as a C macro.
45936
45937         * doc/posix-functions/close.texi: Undo last change.
45938         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45939         Windows platforms.
45940
45941 2008-10-21  Bruno Haible  <bruno@clisp.org>
45942
45943         Add gethostname() declaration to <unistd.h>.
45944         * lib/unistd.in.h (gethostname): New declaration.
45945         * lib/gethostname.c: Include <unistd.h>.
45946         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45947         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45949         and HAVE_GETHOSTNAME.
45950         * modules/gethostname (Depends-on): Add unistd.
45951         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45952         (Include): Specify <unistd.h>.
45953         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45954         HAVE_GETHOSTNAME.
45955         * tests/test-gethostname.c: Include <unistd.h> first.
45956
45957 2008-10-21  Bruno Haible  <bruno@clisp.org>
45958
45959         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45960         * modules/select-tests (Depends-on): Likewise.
45961         Reported by Simon Josefsson.
45962
45963 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45964
45965         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45966         * lib/accept.c: New file, based on winsock.c.
45967         * lib/bind.c: New file, based on winsock.c.
45968         * lib/connect.c: New file, based on winsock.c.
45969         * lib/getpeername.c: New file, based on winsock.c.
45970         * lib/getsockname.c: New file, based on winsock.c.
45971         * lib/getsockopt.c: New file, based on winsock.c.
45972         * lib/ioctl.c: New file, based on winsock.c.
45973         * lib/listen.c: New file, based on winsock.c.
45974         * lib/recv.c: New file, based on winsock.c.
45975         * lib/recvfrom.c: New file, based on winsock.c.
45976         * lib/send.c: New file, based on winsock.c.
45977         * lib/sendto.c: New file, based on winsock.c.
45978         * lib/setsockopt.c: New file, based on winsock.c.
45979         * lib/shutdown.c: New file, based on winsock.c.
45980         * lib/socket.c: New file, based on winsock.c.
45981         * lib/w32sock.h: New file, based on winsock.c.
45982         * lib/winsock.c: Remove file.
45983         * modules/accept: Likewise.
45984         * modules/bind: Likewise.
45985         * modules/connect: Likewise.
45986         * modules/getpeername: Likewise.
45987         * modules/getsockname: Likewise.
45988         * modules/getsockopt: Likewise.
45989         * modules/ioctl: Likewise.
45990         * modules/listen: Likewise.
45991         * modules/recv: Likewise.
45992         * modules/recvfrom: Likewise.
45993         * modules/send: Likewise.
45994         * modules/sendto: Likewise.
45995         * modules/setsockopt: Likewise.
45996         * modules/shutdown: Likewise.
45997         * modules/socket: Use socket.c instead of winsock.c.
45998         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45999         * doc/posix-functions/accept.texi: Doc fix.
46000         * doc/posix-functions/bind.texi: Doc fix.
46001         * doc/posix-functions/close.texi: Doc fix.
46002         * doc/posix-functions/connect.texi: Doc fix.
46003         * doc/posix-functions/getpeername.texi: Doc fix.
46004         * doc/posix-functions/getsockname.texi: Doc fix.
46005         * doc/posix-functions/getsockopt.texi: Doc fix.
46006         * doc/posix-functions/ioctl.texi: Doc fix.
46007         * doc/posix-functions/listen.texi: Doc fix.
46008         * doc/posix-functions/recv.texi: Doc fix.
46009         * doc/posix-functions/recvfrom.texi: Doc fix.
46010         * doc/posix-functions/send.texi: Doc fix.
46011         * doc/posix-functions/sendto.texi: Doc fix.
46012         * doc/posix-functions/setsockopt.texi: Doc fix.
46013         * doc/posix-functions/shutdown.texi: Doc fix.
46014         * doc/posix-functions/socket.texi: Doc fix.
46015
46016 2008-10-20  Bruno Haible  <bruno@clisp.org>
46017
46018         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46019         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46020         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46021         as an alias for SIGABRT.
46022         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46023         (sigaction): Map it to SIGABRT.
46024         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46025
46026 2008-10-20  Bruno Haible  <bruno@clisp.org>
46027
46028         * lib/fts.c: Don't include lstat.h.
46029         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46030
46031         Move the lstat() declaration to <sys/stat.h>.
46032         * lib/lstat.h: Remove file.
46033         * lib/sys_stat.in.h: Add special invocation convention.
46034         (lstat): New declaration.
46035         * lib/lstat.c (orig_lstat): New function.
46036         (rpl_lstat): Use orig_lstat instead of lstat.
46037         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46038         AC_C_INLINE. Set REPLACE_LSTAT.
46039         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46040         and REPLACE_LSTAT.
46041         * modules/lstat (Files): Remove lib/lstat.h.
46042         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46043         (Include): Specify <sys/stat.h> instead of lstat.h.
46044         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46045         REPLACE_LSTAT.
46046         * NEWS: Mention the change.
46047
46048 2008-10-20  Bruno Haible  <bruno@clisp.org>
46049
46050         * modules/posix_spawn-tests: New file.
46051         * tests/test-posix_spawn3.c: New file.
46052
46053 2008-10-20  Bruno Haible  <bruno@clisp.org>
46054
46055         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46056         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46057         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46058         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46059         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46060
46061 2008-10-20  Bruno Haible  <bruno@clisp.org>
46062
46063         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46064         of posix_spawn on AIX 5.3.
46065
46066 2008-10-20  Bruno Haible  <bruno@clisp.org>
46067
46068         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46069
46070 2008-10-20  Bruno Haible  <bruno@clisp.org>
46071
46072         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46073         of AC_LANG_PROGRAM.
46074
46075 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46076
46077         * lib/netdb.in.h: Don't define GNU specific constants until they
46078         are supported or needed.  Reported by Bruno Haible
46079         <bruno@clisp.org>.
46080
46081 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46082
46083         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46084
46085 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46086
46087         * lib/getaddrinfo.h: Remove file.
46088         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46089         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46090         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46091         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46092         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46093         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46094         * tests/test-getaddrinfo.c: Likewise.
46095         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46096         * NEWS: Mention change.
46097
46098 2008-10-19  Bruno Haible  <bruno@clisp.org>
46099
46100         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46101
46102 2008-10-19  Bruno Haible  <bruno@clisp.org>
46103
46104         * lib/wait-process.c: Include simply <sys/wait.h>.
46105         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46106         WIFSTOPPED): Remove fallback definitions.
46107         * modules/wait-process (Depends-on): Add sys_wait.
46108
46109         New module 'sys_wait'.
46110         * modules/sys_wait: New file.
46111         * lib/sys_wait.in.h: New file, partially copied from
46112         lib/wait-process.c.
46113         * m4/sys_wait_h.m4: New file.
46114         * doc/posix-headers/sys_wait.texi: Mention the new module.
46115
46116 2008-10-19  Bruno Haible  <bruno@clisp.org>
46117
46118         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46119
46120 2008-10-19  Bruno Haible  <bruno@clisp.org>
46121
46122         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46123         * lib/wait-process.c (WAIT_T): Remove type.
46124         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46125         (wait_subprocess): Update.
46126
46127 2008-10-19  Bruno Haible  <bruno@clisp.org>
46128
46129         New module 'atoll'.
46130         * modules/atoll: New file.
46131         * lib/stdlib.in.h (atoll): New declaration.
46132         * lib/atoll.c: New file, from glibc with modifications.
46133         * m4/atoll.m4: New file.
46134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46135         HAVE_ATOLL.
46136         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46137         * doc/posix-functions/atoll.texi: Mention the new module.
46138
46139 2008-10-19  Bruno Haible  <bruno@clisp.org>
46140
46141         Add strtoull() declaration to <stdlib.h>.
46142         * lib/stdlib.in.h (strtoull): New declaration.
46143         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46144         Set HAVE_STRTOULL.
46145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46146         HAVE_STRTOULL.
46147         * modules/strtoull (Depends-on): Add stdlib.
46148         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46149         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46150         HAVE_STRTOULL.
46151
46152 2008-10-19  Bruno Haible  <bruno@clisp.org>
46153
46154         Add strtoll() declaration to <stdlib.h>.
46155         * lib/stdlib.in.h (strtoll): New declaration.
46156         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46157         Set HAVE_STRTOLL.
46158         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46159         HAVE_STRTOLL.
46160         * modules/strtoll (Depends-on): Add stdlib.
46161         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46162         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46163
46164 2008-10-19  Bruno Haible  <bruno@clisp.org>
46165
46166         * modules/bcopy (Depends-on): Add strings.
46167         (Include): Specify <strings.h>.
46168
46169 2008-10-19  Bruno Haible  <bruno@clisp.org>
46170
46171         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46172
46173 2008-10-19  Bruno Haible  <bruno@clisp.org>
46174
46175         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46176         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46177         mingw.
46178
46179 2008-10-19  Bruno Haible  <bruno@clisp.org>
46180
46181         * lib/atanl.c: Don't include isnanl.h.
46182         * lib/cosl.c: Likewise.
46183         * lib/ldexpl.c: Likewise.
46184         * lib/logl.c: Likewise.
46185         * lib/sinl.c: Likewise.
46186         * lib/sqrtl.c: Likewise.
46187         * lib/tanl.c: Likewise.
46188
46189         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46190         * lib/isnanf.h: Remove file.
46191         * lib/isnand.h: Remove file.
46192         * lib/isnanl.h: Remove file.
46193         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46194         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46195         macros.
46196         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46197         HAVE_ISNANF, don't define it as a C macro.
46198         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46199         HAVE_ISNAND, don't define it as a C macro.
46200         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46201         HAVE_ISNANL, don't define it as a C macro.
46202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46203         HAVE_ISNAN[FDL].
46204         * modules/isnanf (Files): Remove lib/isnanf.h.
46205         (Depends-on): Add math.
46206         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46207         (Include): Specify <math.h> instead of isnanf.h.
46208         * modules/isnand (Files): Remove lib/isnand.h.
46209         (Depends-on): Add math.
46210         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46211         (Include): Specify <math.h> instead of isnand.h.
46212         * modules/isnanl (Files): Remove lib/isnanl.h.
46213         (Depends-on): Add math.
46214         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46215         (Include): Specify <math.h> instead of isnanl.h.
46216         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46217         HAVE_ISNAN[FDL].
46218         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46219         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46220         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46221         * NEWS: Mention the change.
46222
46223 2008-10-18  Bruno Haible  <bruno@clisp.org>
46224
46225         Add getusershell(), setusershell(), endusershell() declarations to
46226         <unistd.h>.
46227         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46228         declarations.
46229         * lib/getusershell.c: Include unistd.h.
46230         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46231         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46232         HAVE_GETUSERSHELL.
46233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46234         and HAVE_GETUSERSHELL.
46235         * modules/getusershell (Depends-on): Add unistd, extensions.
46236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46237         (Include): Specify <unistd.h>.
46238         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46239         HAVE_GETUSERSHELL.
46240
46241 2008-10-18  Bruno Haible  <bruno@clisp.org>
46242
46243         Add a getloadavg() declaration to <stdlib.h>.
46244         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46245         getloadavg declaration.
46246         (getloadavg): New declaration.
46247         * lib/getloadavg.c: Include <stdlib.h> first.
46248         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46249         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46250         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46252         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46253         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46254         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46255         (Include): Specify <stdlib.h>.
46256         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46257         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46258
46259 2008-10-18  Bruno Haible  <bruno@clisp.org>
46260
46261         * lib/dirchownmod.c: Don't include lchmod.h.
46262
46263         Move the lchmod() declaration to <sys/stat.h>.
46264         * lib/lchmod.h: Remove file.
46265         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46266         (lchmod): New declaration, moved here from lib/lchown.h.
46267         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46268         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46269         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46270         and HAVE_LCHMOD.
46271         * modules/lchmod (Files): Remove lib/lchmod.h.
46272         (Depends-on): Add sys_stat, extensions.
46273         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46274         (Include): Specify <sys/stat.h> instead of lchmod.h.
46275         * modules/sys_stat (Depends-on): Add link-warning.
46276         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46277         definition of GL_LINK_WARNING.
46278         * NEWS: Mention the change.
46279
46280 2008-10-18  Bruno Haible  <bruno@clisp.org>
46281
46282         * lib/fchdir.c: Don't include dirfd.h.
46283         * lib/fts.c: Likewise.
46284         * lib/getcwd.c: Likewise.
46285         * lib/glob.c: Likewise.
46286
46287         Move the dirfd() declaration to <dirent.h>.
46288         * lib/dirfd.h: Remove file.
46289         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46290         (dirfd): New declaration.
46291         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46292         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46293         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46294         HAVE_DECL_DIRFD.
46295         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46296         HAVE_DECL_DIRFD.
46297         * modules/dirfd (Files): Remove lib/dirfd.h.
46298         (Depends-on): Add dirent, extensions.
46299         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46300         (Include): Specify <dirent.h> instead of dirfd.h.
46301         * modules/dirent (Depends-on): Add link-warning.
46302         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46303         definition of GL_LINK_WARNING.
46304         * NEWS: Mention the change.
46305
46306 2008-10-18  Bruno Haible  <bruno@clisp.org>
46307
46308         Move the euidaccess() declaration to <unistd.h>.
46309         * lib/euidaccess.h: Remove file.
46310         * lib/unistd.in.h (euidaccess): New declaration.
46311         * lib/euidaccess.c: Don't include euidaccess.h.
46312         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46313         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46315         and HAVE_EUIDACCESS.
46316         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46317         (Depends-on): Add unistd.
46318         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46319         (Include): Specify <unistd.h> instead of euidaccess.h.
46320         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46321         HAVE_EUIDACCESS.
46322         * NEWS: Mention the change.
46323
46324 2008-10-18  Bruno Haible  <bruno@clisp.org>
46325
46326         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46327
46328         Move the getdomainname() declaration to <unistd.h>.
46329         * lib/getdomainname.h: Remove file.
46330         * lib/unistd.in.h (getdomainname): New declaration.
46331         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46332         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46333         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46334         HAVE_GETDOMAINNAME.
46335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46336         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46337         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46338         (Depends-on): Add unistd, extensions.
46339         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46340         (Includes): Specify <unistd.h> instead of getdomainname.h.
46341         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46342         HAVE_GETDOMAINNAME.
46343         * NEWS: Mention the change.
46344
46345 2008-10-18  Bruno Haible  <bruno@clisp.org>
46346
46347         * modules/dirent: New file.
46348         * m4/dirent_h.m4: New file.
46349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46350         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46351         * modules/fchdir (Files): Remove lib/dirent.in.h.
46352         (Depends-on): Add dirent.
46353         (Makefile.am): Move rules to modules/dirent.
46354         * doc/posix-headers/dirent.texi: Mention the new module.
46355
46356 2008-10-18  Bruno Haible  <bruno@clisp.org>
46357
46358         Avoid -Wunused-parameter warnings in public gnulib header files.
46359         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46360         macro.
46361         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46362
46363 2008-10-18  Bruno Haible  <bruno@clisp.org>
46364
46365         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46366         * doc/glibc-functions/error.texi: Mention the module 'error'.
46367         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46368         * doc/glibc-functions/getdomainname.texi: Mention the module
46369         'getdomainname'.
46370         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46371         * doc/glibc-functions/getpagesize.texi: Mention the module
46372         'getpagesize'.
46373         * doc/glibc-functions/getusershell.texi: Mention the module
46374         'getusershell'.
46375         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46376         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46377         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46378         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46379         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46380         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46381         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46382         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46383         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46384         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46385         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46386         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46387         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46388         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46389
46390 2008-10-17  Bruno Haible  <bruno@clisp.org>
46391
46392         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46393         HP-UX and IRIX, use -0.0L.
46394         * tests/test-ceill.c (minus_zero): Likewise.
46395         * tests/test-floorl.c (minus_zero): Likewise.
46396         * tests/test-frexpl.c (minus_zero): Likewise.
46397         * tests/test-isnan.c (minus_zerol): Likewise.
46398         * tests/test-isnanl.h (minus_zero): Likewise.
46399         * tests/test-ldexpl.c (minus_zero): Likewise.
46400         * tests/test-roundl.c (minus_zero): Likewise.
46401         * tests/test-signbit.c (minus_zerol): Likewise.
46402         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46403         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46404         * tests/test-truncl.c (minus_zero): Likewise.
46405         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46406         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46407         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46408         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46409
46410 2008-10-17  Bruno Haible  <bruno@clisp.org>
46411
46412         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46413         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46414         that it gets activated only for gcc >= 3.0.
46415         * lib/dirent.in.h: Likewise.
46416         * lib/errno.in.h: Likewise.
46417         * lib/fcntl.in.h: Likewise.
46418         * lib/float.in.h: Likewise.
46419         * lib/iconv.in.h: Likewise.
46420         * lib/inttypes.in.h: Likewise.
46421         * lib/locale.in.h: Likewise.
46422         * lib/math.in.h: Likewise.
46423         * lib/netdb.in.h: Likewise.
46424         * lib/netinet_in.in.h: Likewise.
46425         * lib/search.in.h: Likewise.
46426         * lib/signal.in.h: Likewise.
46427         * lib/spawn.in.h: Likewise.
46428         * lib/stdarg.in.h: Likewise.
46429         * lib/stdint.in.h: Likewise.
46430         * lib/stdio.in.h: Likewise.
46431         * lib/stdlib.in.h: Likewise.
46432         * lib/string.in.h: Likewise.
46433         * lib/strings.in.h: Likewise.
46434         * lib/sys_file.in.h: Likewise.
46435         * lib/sys_ioctl.in.h: Likewise.
46436         * lib/sys_select.in.h: Likewise.
46437         * lib/sys_socket.in.h: Likewise.
46438         * lib/sys_stat.in.h: Likewise.
46439         * lib/sys_time.in.h: Likewise.
46440         * lib/sysexits.in.h: Likewise.
46441         * lib/time.in.h: Likewise.
46442         * lib/unistd.in.h: Likewise.
46443         * lib/wchar.in.h: Likewise.
46444         * lib/wctype.in.h: Likewise.
46445         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46446
46447 2008-10-17  Jim Meyering  <meyering@redhat.com>
46448
46449         ignore-value: don't depend on inline module
46450         * modules/ignore-value (Depends-on): Remove 'inline'.
46451         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46452         Suggestion from Bruno Haible.
46453
46454 2008-10-17  Bruno Haible  <bruno@clisp.org>
46455
46456         New implementation of condition variables for Win32.
46457         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46458         (gl_linked_waitqueue_t): New type.
46459         (gl_cond_t): Use it.
46460         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46461         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46462         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46463         (glthread_cond_init_func, glthread_cond_wait_func,
46464         glthread_cond_timedwait_func, glthread_cond_signal_func,
46465         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46466         Reimplemented on the basis of gl_linked_waitqueue_t.
46467         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46468         gl_waitqueue_t.
46469         (gl_rwlock_t): Update.
46470         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46471
46472 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46473
46474         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46475         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46476
46477 2008-10-17  Jim Meyering  <meyering@redhat.com>
46478
46479         ignore-value: new module
46480         * modules/ignore-value: New file.
46481         * lib/ignore-value.h: New file.
46482         * MODULES.html.sh (Compiler warning management): New section,
46483         just for this module.  More to come.
46484
46485 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46486
46487         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46488         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46489         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46490
46491 2008-10-16  Jim Meyering  <meyering@redhat.com>
46492
46493         openat-die.c: avoid 'no previous prototype' warning
46494         * lib/openat-die.c: Include "openat.h".
46495         Reported by Reuben Thomas <rrt@sc3d.org>.
46496
46497 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46498
46499         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46500         * lib/netdb.in.h: Fix typo.
46501         Reported by Bruno Haible  <bruno@clisp.org>
46502
46503         * lib/netdb.in.h: Include sys/socket.h for platforms without
46504         netdb.h, to get structures like hostent on MinGW.
46505         * modules/netdb (Depends-on): Add sys_socket.
46506
46507 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46508
46509         * modules/netdb, modules/netdb-tests: New file.
46510         * m4/netdb_h.m4: New file.
46511         * lib/netdb.in.h: Add, currently just an empty file pending
46512         definitions.
46513         * tests/test-netdb.c: New file.
46514         * doc/posix-headers/netdb.texi: Mention that we replace it if
46515         needed.
46516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46517         netdb.
46518
46519 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46520
46521         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46522         with code.
46523
46524 2008-10-13  Bruno Haible  <bruno@clisp.org>
46525
46526         * lib/glthread/cond.c (glthread_cond_wait_func,
46527         glthread_cond_timedwait_func): Add a comment.
46528
46529 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46530
46531         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46532         * tests/test-select.c: Likewise,
46533
46534 2008-10-13  Bruno Haible  <bruno@clisp.org>
46535
46536         * lib/glthread/cond.c (glthread_cond_wait_func,
46537         glthread_cond_timedwait_func): Fix variable name.
46538         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46539
46540 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46541
46542         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46543         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46544         struct sockaddr.sa_len.
46545         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46546
46547 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46548
46549         * build-aux/pmccabe2html: Add css and css_url parameters.
46550
46551 2008-10-12  Bruno Haible  <bruno@clisp.org>
46552
46553         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46554         calling aclx_get.
46555         Reported by Rainer Tammer <tammer@tammer.net>.
46556
46557 2008-10-12  Bruno Haible  <bruno@clisp.org>
46558
46559         Use msvcrt aware primitives for creation/termination of Win32 threads.
46560         * lib/glthread/thread.c: Include <process.h>.
46561         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46562         (wrapper_func): Update signature.
46563         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46564
46565 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46566             Bruno Haible  <bruno@clisp.org>
46567
46568         Provide a Win32 implementation of the 'cond' module.
46569         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46570         * lib/glthread/cond.c (glthread_cond_init_func,
46571         glthread_cond_wait_func, glthread_cond_timedwait_func,
46572         glthread_cond_signal_func, glthread_cond_broadcast_func,
46573         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46574         * modules/cond (Dependencies): Add gettimeofday.
46575
46576 2008-10-11  Bruno Haible  <bruno@clisp.org>
46577
46578         Make sleep work on older versions of mingw.
46579         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46580         only whether it exists.
46581         * doc/posix-functions/sleep.texi: Mention the problem with older
46582         versions of mingw.
46583
46584 2008-10-11  Bruno Haible  <bruno@clisp.org>
46585
46586         New module 'shutdown'.
46587         * modules/shutdown: New file.
46588         * lib/sys_socket.in.h (shutdown): New declaration.
46589         * lib/winsock.c (shutdown): New function.
46590         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46591         GNULIB_SHUTDOWN.
46592         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46593         * doc/posix-functions/shutdown.texi: Document the new module.
46594
46595 2008-10-11  Jim Meyering  <meyering@redhat.com>
46596
46597         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46598
46599 2008-10-11  Bruno Haible  <bruno@clisp.org>
46600
46601         New module 'fclose'.
46602         * modules/fclose: New file.
46603         * lib/stdio.in.h (fclose): New declaration.
46604         * lib/fclose.c: New file.
46605         * m4/fclose.m4: New file.
46606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46607         REPLACE_FCLOSE.
46608         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46609         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46610         REPLACE_FCLOSE.
46611         * modules/close (Depends-on): fclose.
46612         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46613
46614 2008-10-11  Bruno Haible  <bruno@clisp.org>
46615
46616         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46617         set errno and don't call _close.
46618
46619 2008-10-10  Bruno Haible  <bruno@clisp.org>
46620
46621         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46622         ACL, not afterwards. Fixes test failure on Cygwin.
46623
46624 2008-10-09  Ben Pfaff  <blp@gnu.org>
46625
46626         * build-aux/announce-gen: Fix gnulib version related part of usage
46627         message.  Die with a useful error message if no tarballs are
46628         found.
46629
46630 2008-10-10  Jim Meyering  <meyering@redhat.com>
46631
46632         bootstrap: use git's --depth=N option only if it's supported
46633         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46634         recognize the --depth option.  Reported by Pádraig Brady.
46635
46636 2008-10-09  Bruno Haible  <bruno@clisp.org>
46637
46638         New module 'ioctl'.
46639         * modules/ioctl: New file.
46640         * lib/sys_socket.in.h (ioctl): Remove declaration.
46641         * lib/winsock.c: Include <sys/ioctl.h>.
46642         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46643         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46644         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46645         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46646         * doc/posix-functions/ioctl.texi: Mention the new module.
46647
46648 2008-10-09  Bruno Haible  <bruno@clisp.org>
46649
46650         New module 'sys_ioctl'.
46651         * lib/sys_ioctl.in.h: New file.
46652         * m4/sys_ioctl_h.m4: New file.
46653         * modules/sys_ioctl: New file.
46654         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46655
46656 2008-10-09  Bruno Haible  <bruno@clisp.org>
46657
46658         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46659         * lib/winsock.c: Include <stdarg.h>.
46660         (rpl_ioctl): Change to second argument 'int' and then varargs.
46661
46662 2008-10-09  Bruno Haible  <bruno@clisp.org>
46663
46664         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46665         when the sys_socket module is present and the system has <winsock2.h>.
46666
46667 2008-10-09  Bruno Haible  <bruno@clisp.org>
46668
46669         * doc/posix-functions/close.texi: Mention module 'close' instead of
46670         module 'sys_socket'.
46671
46672 2008-10-09  Bruno Haible  <bruno@clisp.org>
46673
46674         * doc/glibc-headers/sys_ioctl.texi: New file.
46675         * doc/gnulib.texi: Include it.
46676
46677 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46678             Bruno Haible  <bruno@clisp.org>
46679
46680         Combine the two replacements of 'close'.
46681         * lib/sys_socket.in.h (close): Define to a reminder to include
46682         <unistd.h>.
46683         (_gl_close_fd_maybe_socket): New declaration.
46684         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46685         * lib/winsock.c (close): Remove undefinition.
46686         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46687         needed for the gnulib module 'close'.
46688         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46689         define to an error symbol or to a warning, if suitable.
46690         * lib/close.c: Include <sys/socket.h>.
46691         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46692         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46693         UNISTD_H_HAVE_WINSOCK2_H.
46694         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46696         UNISTD_H_HAVE_WINSOCK2_H.
46697         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46698         (configure.ac): Set a module indicator.
46699         (Makefile.am): Substitute GNULIB_CLOSE.
46700         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46701         * modules/poll-tests (Depends-on): Add close.
46702         * modules/select-tests (Depends-on): Likewise.
46703
46704 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46705             Bruno Haible  <bruno@clisp.org>
46706
46707         New module 'close'.
46708         * modules/close: New file.
46709         * lib/unistd.in.h (close): Move declaration out of the
46710         FCHDIR_REPLACEMENT scope.
46711         (_gl_unregister_fd): New declaration.
46712         * lib/close.c: New file.
46713         * lib/fchdir.c (rpl_close): Remove function.
46714         * m4/close.m4: New file.
46715         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46716         close.
46717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46718         REPLACE_CLOSE.
46719         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46720         REPLACE_CLOSE.
46721         * modules/fchdir (Depends-on): Add close.
46722
46723 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46724             Bruno Haible  <bruno@clisp.org>
46725
46726         * lib/fcntl.in.h (open): Simplify conditionals.
46727         (_gl_register_fd): New declaration.
46728         * lib/fchdir.c (rpl_open): Remove function.
46729         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46730         also.
46731         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46732         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46733         open.
46734
46735 2008-10-09  Jim Meyering  <meyering@redhat.com>
46736
46737         GNUmakefile: use the more name-space-friendly "_version"
46738         * top/GNUmakefile (_dummy): Update.
46739         (_version): Rename from "version".
46740
46741 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46742             Bruno Haible  <bruno@clisp.org>
46743
46744         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46745         rpl_close.
46746         (_gl_register_fd): New function, extracted from rpl_open.
46747         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46748         (rpl_open, rpl_opendir): Use _gl_register_fd.
46749
46750 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46751
46752         Fix organization of 'open' replacement.
46753         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46754         (gl_FUNC_OPEN): Use it.
46755         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46756
46757 2008-10-08  Bruno Haible  <bruno@clisp.org>
46758
46759         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46760
46761 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46762
46763         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46764         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46765         listen).
46766
46767 2008-10-08  Eric Blake  <ebb9@byu.net>
46768
46769         GNUmakefile: add 'make version' target
46770         * top/GNUmakefile (_curr-ver): Split version update rules...
46771         (version): ...into a target.
46772
46773 2008-10-07  Bruno Haible  <bruno@clisp.org>
46774
46775         Use a more portable replacement expression for -0.0L.
46776         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46777         instead of -0.0L. Fix m4 quotation.
46778
46779         * tests/test-signbit.c: Include <float.h>.
46780         (minus_zero): New variable.
46781         (test_signbitl): Use minus_zero instead of -zero.
46782         * modules/signbit-tests (Depends-on): Add float.
46783
46784         * tests/test-ceill.c: Include <float.h>.
46785         (zero): Remove variable.
46786         (minus_zero): New variable.
46787         (main): Use minus_zero instead of -zero.
46788         * modules/ceill-tests (Depends-on): Add float.
46789
46790         * tests/test-floorl.c: Include <float.h>.
46791         (zero): Remove variable.
46792         (minus_zero): New variable.
46793         (main): Use minus_zero instead of -zero.
46794         * modules/floorl-tests (Depends-on): Add float.
46795
46796         * tests/test-roundl.c: Include <float.h>.
46797         (zero): Remove variable.
46798         (minus_zero): New variable.
46799         (main): Use minus_zero instead of -zero.
46800         * modules/roundl-tests (Depends-on): Add float.
46801
46802         * tests/test-truncl.c: Include <float.h>.
46803         (zero): Remove variable.
46804         (minus_zero): New variable.
46805         (main): Use minus_zero instead of -zero.
46806         * modules/truncl-tests (Depends-on): Add float.
46807
46808         * tests/test-frexpl.c (zero): Remove variable.
46809         (minus_zero): New variable.
46810         (main): Use minus_zero instead of -zero.
46811         * modules/frexpl-tests (Depends-on): Add float.
46812
46813         * tests/test-isnan.c (zerol): Remove variable.
46814         (minus_zerol): New variable.
46815         (test_long_double): Use minus_zerol instead of -zerol.
46816         * modules/isnan-tests (Depends-on): Add float.
46817
46818         * tests/test-isnanl.h (zero): Remove variable.
46819         (minus_zero): New variable.
46820         (main): Use minus_zero instead of -zero.
46821         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46822         * modules/isnanl-tests (Depends-on): Add float.
46823
46824         * tests/test-ldexpl.c (zero): Remove variable.
46825         (minus_zero): New variable.
46826         (main): Use minus_zero instead of -zero.
46827         * modules/ldexpl-tests (Depends-on): Add float.
46828
46829         * tests/test-snprintf-posix.h (zerol): Remove variable.
46830         (minus_zerol): New variable.
46831         (test_function): Use minus_zerol instead of -zerol.
46832         * modules/snprintf-posix-tests (Depends-on): Add float.
46833         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46834
46835         * tests/test-sprintf-posix.h (zerol): Remove variable.
46836         (minus_zerol): New variable.
46837         (test_function): Use minus_zerol instead of -zerol.
46838         * modules/sprintf-posix-tests (Depends-on): Add float.
46839         * modules/vsprintf-posix-tests (Depends-on): Add float.
46840
46841         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46842         (minus_zerol): New variable.
46843         (test_function): Use minus_zerol instead of -zerol.
46844         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46845
46846         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46847         (minus_zerol): New variable.
46848         (test_function): Use minus_zerol instead of -zerol.
46849         * modules/vasprintf-posix-tests (Depends-on): Add float.
46850
46851 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46852
46853         * MODULES.html.sh (Support for building documentation): Mention
46854         pmccabe2html.  Sort entries.
46855
46856         Add pmccabe2html module, from gnupdf.
46857         * build-aux/pmccabe.css: New file.
46858         * build-aux/pmccabe2html: New file.
46859         * m4/pmccabe2html.m4: New file.
46860         * modules/pmccabe2html: New file.
46861
46862 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46863
46864         flock: new module
46865         * MODULES.html.sh: Add to list of modules.
46866         * lib/flock.c: flock implementation for Windows and Unix systems
46867         which have fcntl.
46868         * doc/glibc-functions/flock.texi: Update documentation.
46869         * lib/sys_file.in.h: <sys/file.h> header file.
46870         * m4/flock.m4: M4 macros.
46871         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46872         * modules/flock: flock module.
46873         * modules/flock-tests: flock tests module.
46874         * modules/sys_file: sys/file.h module.
46875         * tests/test-flock.c: test suite for flock.
46876
46877 2008-10-06  Jim Meyering  <meyering@redhat.com>
46878
46879         bootstrap: check for LT_INIT more portably still ;-)
46880         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46881         Spotted by Bruno Haible.
46882
46883 2008-10-06  Eric Blake  <ebb9@byu.net>
46884
46885         test-signbit: avoid tripping Irix cc bug on -0.0L
46886         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46887         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46888         entire testsuite consistent and avoids an Irix 6.2 bug.
46889
46890 2008-10-05  Bruno Haible  <bruno@clisp.org>
46891             Jim Meyering  <jim@meyering.net>
46892
46893         Add an option for ignoring EPIPE during close_stdout.
46894         * lib/closeout.h: Include <stdbool.h>.
46895         (close_stdout_set_ignore_EPIPE): New declaration.
46896         * lib/closeout.c: Include <stdbool.h>.
46897         (ignore_EPIPE): New variable.
46898         (close_stdout_set_ignore_EPIPE): New function.
46899         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46900         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46901         failure.
46902         * modules/closeout (Depends-on): Add stdbool.
46903
46904 2008-10-05  Bruno Haible  <bruno@clisp.org>
46905
46906         * modules/accept: New file.
46907         * modules/bind: New file.
46908         * modules/connect: New file.
46909         * modules/getpeername: New file.
46910         * modules/getsockname: New file.
46911         * modules/getsockopt: New file.
46912         * modules/listen: New file.
46913         * modules/recv: New file.
46914         * modules/recvfrom: New file.
46915         * modules/send: New file.
46916         * modules/sendto: New file.
46917         * modules/setsockopt: New file.
46918         * modules/socket: New file.
46919         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46920         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46921         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46922         the particular module is requested. Add a link warning when the
46923         particular module is not requested.
46924         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46925         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46926         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46927         the particular module is requested.
46928         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46929         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46930         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46931         * modules/sys_socket (Depends-on): Add link-warning.
46932         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46933         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46934         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46935         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46936         GL_LINK_WARNING.
46937         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46938         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46939         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46940         * doc/posix-functions/getpeername.texi: Mention the new module
46941         'getpeername'.
46942         * doc/posix-functions/getsockname.texi: Mention the new module
46943         'getsockname'.
46944         * doc/posix-functions/getsockopt.texi: Mention the new module
46945         'getsockopt'.
46946         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46947         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46948         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46949         * doc/posix-functions/send.texi: Mention the new module 'send'.
46950         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46951         * doc/posix-functions/setsockopt.texi: Mention the new module
46952         'setsockopt'.
46953         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46954         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46955         listen, connect, accept.
46956         * modules/select-tests (Depends-on): Likewise.
46957
46958 2008-10-05  Bruno Haible  <bruno@clisp.org>
46959
46960         * lib/winsock.c (strerror): Remove unused #undef.
46961         (rpl_close): Remove unused local variable.
46962
46963         * modules/sys_socket (Depends-on); Add errno.
46964
46965 2008-10-05  Bruno Haible  <bruno@clisp.org>
46966
46967         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46968         (select): Add a link warning when the 'select' module is not used.
46969         * modules/sys_select (Depends-on): Add link-warning.
46970         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46971         Suggested by Paolo Bonzini.
46972
46973 2008-10-05  Jim Meyering  <meyering@redhat.com>
46974
46975         bootstrap: check for LT_INIT more portably
46976         * build-aux/bootstrap: Avoid using grep -E, since it's not
46977         portable enough.  Suggestion from Bruno Haible.
46978
46979 2008-10-05  Bruno Haible  <bruno@clisp.org>
46980
46981         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46982         as being fixed by gnulib.
46983
46984 2008-10-05  Bruno Haible  <bruno@clisp.org>
46985
46986         * modules/select-tests: New file, mostly copied from
46987         modules/sys_select-tests.
46988         * tests/test-select.c: New file, mostly copied from
46989         tests/test-sys_select.c.
46990         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46991         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46992         (Makefile.am): Remove test_sys_select_LDADD.
46993
46994         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46995         to an undefined symbol, for an error message.
46996         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46997         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46998         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46999         winsock-select.c here.
47000         * modules/sys_select (Files): Remove lib/winsock-select.c.
47001         (Depends-on): Remove alloca.
47002         (Makefile.am): Substitute GNULIB_SELECT.
47003         * modules/select: New file.
47004         * doc/posix-functions/select.texi: Update.
47005
47006 2008-10-05  Bruno Haible  <bruno@clisp.org>
47007
47008         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47009         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47010         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47011         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47012         getdtablesize.
47013         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47014         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47015
47016 2008-10-05  Bruno Haible  <bruno@clisp.org>
47017
47018         * modules/getdtablesize-tests: New file.
47019         * tests/test-getdtablesize.c: New file.
47020
47021         New module 'getdtablesize'.
47022         * lib/unistd.in.h (getdtablesize): New declaration.
47023         * lib/getdtablesize.c: New file.
47024         * m4/getdtablesize.m4: New file.
47025         * modules/getdtablesize: New file.
47026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47027         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47028         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47029         HAVE_GETDTABLESIZE.
47030         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47031
47032 2008-10-05  Bruno Haible  <bruno@clisp.org>
47033
47034         * modules/sched (Makefile.am): Fix typo.
47035         Reported by Simon Josefsson.
47036
47037 2008-10-05  Jim Meyering  <meyering@redhat.com>
47038
47039         bootstrap: check for LT_INIT, too
47040         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47041         are deprecated.  Suggestion from Ralf Wildenhues.
47042
47043 2008-10-05  Bruno Haible  <bruno@clisp.org>
47044
47045         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47046         overriding them by ours.
47047         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47048
47049 2008-10-05  Jim Meyering  <meyering@redhat.com>
47050
47051         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47052         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47053         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47054
47055 2008-10-04  Bruno Haible  <bruno@clisp.org>
47056
47057         * modules/dup2 (License): Change to LGPLv2+.
47058         * modules/sleep (License): Likewise.
47059         * modules/perror (License): Likewise.
47060         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47061         Blake.
47062         * modules/signal (License): Likewise.
47063         * modules/sigprocmask (License): Likewise.
47064         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47065         Meyering.
47066
47067 2008-10-04  Bruno Haible  <bruno@clisp.org>
47068
47069         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47070         Reported by Rainer Tammer <tammer@tammer.net>.
47071
47072 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47073             Bruno Haible  <bruno@clisp.org>
47074
47075         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47076         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47077         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47078
47079 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47080
47081         filevercmp: new module
47082         * lib/filevercmp.h: New function filevercmp comparing version strings.
47083         * lib/filevercmp.c: Implementation of filevercmp function.
47084         * modules/filevercmp: Module metadata.
47085         * tests/test-filevercmp.c: Unit test for new module.
47086         * modules/filevercmp-tests: Unit test metadata.
47087         * MODULES.html.sh: Add filevercmp module.
47088
47089 2008-10-03  Bruno Haible  <bruno@clisp.org>
47090
47091         * lib/c-ctype.h: Add comment.
47092         Reported by Jim Meyering.
47093
47094 2008-10-02  Bruno Haible  <bruno@clisp.org>
47095
47096         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47097
47098 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47099
47100         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47101         name of bootstrap.conf accordingly.
47102
47103 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47104
47105         * build-aux/bootstrap: Install git-merge-changelog configuration
47106         items into .gitconfig if needed.
47107
47108 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47109
47110         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47111         git repository, and initialize/update it accordingly.
47112
47113 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47114
47115         * modules/fsync-tests: New file.
47116         * tests/test-fsync.c: New file.
47117
47118         New module 'fsync'.
47119         * lib/fsync.c: New file.
47120         * m4/fsync.m4: New file.
47121         * modules/fsync: New file.
47122         * lib/unistd.in.h (fsync): New declaration.
47123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47124         GNULIB_FSYNC and HAVE_FSYNC.
47125         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47126         * MODULES.html.sh (posix_functions): Add fsync.
47127         * doc/posix-functions/fsync.texi: Mention the new module.
47128
47129 2008-10-02  Jim Meyering  <meyering@redhat.com>
47130
47131         fts.c: sync with similar code from coreutils' remove.c
47132         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47133         Guard also with "#if defined __linux__", since for now at least,
47134         this code is Linux-kernel-specific.
47135
47136 2008-10-02  Jim Meyering  <meyering@redhat.com>
47137
47138         fts: bug fixes
47139         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47140         Include <sys/vfs.h>, not <sys/statfs.h>.
47141
47142         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47143         Include <sys/vfs.h>, not <sys/statfs.h>.
47144
47145 2008-10-01  Bruno Haible  <bruno@clisp.org>
47146
47147         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47148         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47149         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47150         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47151         * doc/posix-functions/posix_spawnp.texi: Likewise.
47152         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47153         whether posix_spawn actually works.
47154         * m4/pipe.m4 (gl_PIPE): Likewise.
47155         * modules/execute (Files): Add m4/posix_spawn.m4.
47156         * modules/pipe (Files): Add m4/posix_spawn.m4.
47157         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47158
47159 2008-10-01  Jim Meyering  <meyering@redhat.com>
47160
47161         remove trailing spaces
47162         * NEWS: Likewise.
47163         * lib/poll.c (poll): Likewise.
47164         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47165         * lib/winsock.c (rpl_close): Likewise.
47166         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47167         * modules/yield: Likewise.
47168         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47169         * tests/test-sys_select.c (connect_to_socket): Likewise.
47170
47171         fts.c: adjust a new interface to be more generally useful
47172         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47173         (fts_build): Adjust caller.
47174
47175 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47176
47177         * modules/cond-tests: New file.
47178         * tests/test-cond.c: New file.
47179
47180 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47181             Bruno Haible  <bruno@clisp.org>
47182
47183         * modules/cond (Dependencies): Add errno, time.
47184         * lib/glthread/cond.h: Include <time.h>.
47185         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47186         across platforms.
47187
47188 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47189             Bruno Haible  <bruno@clisp.org>
47190
47191         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47192
47193 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47194             Bruno Haible  <bruno@clisp.org>
47195
47196         * modules/tls-tests (Depends-on): Add thread, yield.
47197         (configure.ac): Remove all checks.
47198         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47199         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47200         gl_thread_self): Remove definitions. Include glthread/thread.h and
47201         glthread/yield.h instead.
47202         (test_tls): Pass an additional NULL argument to gl_thread_join.
47203
47204 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47205             Bruno Haible  <bruno@clisp.org>
47206
47207         * modules/lock-tests (Depends-on): Add thread, yield.
47208         (configure.ac): Remove all checks.
47209         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47210         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47211         gl_thread_self): Remove definitions. Include glthread/thread.h and
47212         glthread/yield.h instead.
47213         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47214         additional NULL argument to gl_thread_join.
47215
47216 2008-09-30  Bruno Haible  <bruno@clisp.org>
47217
47218         Fix the Win32 implementation of the 'thread' module.
47219         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47220         pointer type.
47221         (gl_thread_self): Invoke gl_thread_self_func.
47222         (gl_thread_self_func): New declaration.
47223         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47224         (do_init_self_key, init_self_key): New functions.
47225         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47226         Remove some fields.
47227         (running_threads, running_lock): Remove variables.
47228         (get_current_thread_handle): New function.
47229         (gl_thread_self_func, wrapper_func, glthread_create_func,
47230         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47231         simplified.
47232
47233 2008-09-30  Bruno Haible  <bruno@clisp.org>
47234
47235         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47236         files.
47237
47238 2008-09-30  Jim Meyering  <meyering@redhat.com>
47239
47240         fts.m4: correct the test for statfs.f_type
47241         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47242         when checking for statfs.f_type.
47243
47244 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47245
47246         tests: avoid some compiler warnings
47247         * tests/test-memchr.c (main): Pass NULL indirectly.
47248         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47249
47250 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
47251
47252         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47253         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47254         exactly specified dayshifts.
47255         (dayshift): New rule.
47256         (rel): Add dayshift.
47257         (relative_time_table) [tomorrow, yesterday, today, now]:
47258         Use tDAY_SHIFT in place of tDAY_UNIT.
47259         * tests/test-getdate.c: Add tests for now-disallowed countable
47260         dayshifts, e.g., "4 yesterday ago".
47261
47262 2008-09-29  Bruno Haible  <bruno@clisp.org>
47263
47264         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47265         * tests/test-posix_spawn1.in.sh: Renamed from
47266         tests/test-posix_spawn.in.sh.
47267         * tests/test-posix_spawn2.c: New file.
47268         * tests/test-posix_spawn2.in.sh: New file.
47269         * modules/posix_spawnp-tests (Files): Update.
47270         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47271
47272 2008-09-29  Bruno Haible  <bruno@clisp.org>
47273
47274         Propagate effects of putenv/setenv/unsetenv to child processes.
47275         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47276         * lib/pipe.c (create_pipe): Likewise.
47277
47278 2008-09-29  Bruno Haible  <bruno@clisp.org>
47279
47280         Enable use of shell scripts as executables in mingw.
47281         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47282         run the program as a shell script.
47283         * lib/pipe.c (create_pipe): Likewise.
47284         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47285         resulting array.
47286
47287 2008-09-29  Eric Blake  <ebb9@byu.net>
47288
47289         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47290
47291 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47292
47293         * doc/posix-functions/accept.texi: Update mingw problems.
47294         * doc/posix-functions/bind.texi: Update mingw problems.
47295         * doc/posix-functions/close.texi: Update mingw problems.
47296         * doc/posix-functions/connect.texi: Update mingw problems.
47297         * doc/posix-functions/getpeername.texi: Update mingw problems.
47298         * doc/posix-functions/getsockname.texi: Update mingw problems.
47299         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47300         * doc/posix-functions/ioctl.texi: Update mingw problems.
47301         * doc/posix-functions/listen.texi: Update mingw problems.
47302         * doc/posix-functions/recv.texi: Update mingw problems.
47303         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47304         * doc/posix-functions/select.texi: Update mingw problems.
47305         * doc/posix-functions/send.texi: Update mingw problems.
47306         * doc/posix-functions/sendto.texi: Update mingw problems.
47307         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47308         * doc/posix-functions/socket.texi: Update mingw problems.
47309
47310 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47311             Bruno Haible  <bruno@clisp.org>
47312
47313         * lib/sys_select.in.h: Include sys/time.h.
47314         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47315         * modules/sys_select: Depend on sys_time.
47316         * tests/test-sys_select.c: Test that sys/select.h defines struct
47317         timeval fully.
47318
47319 2008-09-29  Bruno Haible  <bruno@clisp.org>
47320
47321         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47322         * lib/sys_select.in.h: Likewise.
47323
47324 2008-09-29  Bruno Haible  <bruno@clisp.org>
47325
47326         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47327
47328 2008-09-29  Bruno Haible  <bruno@clisp.org>
47329
47330         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47331         Set LIBSOCKET instead of augmenting LIBS.
47332         * modules/sockets (Link): New section.
47333         * modules/sockets-tests (test_sockets_LDADD): New variable.
47334         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47335         * modules/poll-tests (test_poll_LDADD): New variable.
47336         * NEWS: Document the change.
47337
47338 2008-09-29  Bruno Haible  <bruno@clisp.org>
47339
47340         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47341         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47342         ARPA_INET_H directly.
47343         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47344
47345 2008-09-28  Bruno Haible  <bruno@clisp.org>
47346
47347         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47348         from gl_HEADER_SYS_SOCKET.
47349         (gl_HEADER_SYS_SOCKET): Invoke it.
47350         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47351
47352 2008-09-28  Bruno Haible  <bruno@clisp.org>
47353
47354         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47355         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47356         Needed on OSF/1 4.0.
47357
47358 2008-09-28  Bruno Haible  <bruno@clisp.org>
47359
47360         Override open more carefully.
47361         * lib/open.c (orig_open): New function.
47362         (rpl_open): Use orig_open instead of open.
47363         * lib/fcntl.in.h: Add special invocation convention.
47364         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47365         (gl_FUNC_OPEN): Invoke it.
47366
47367         Override freopen more carefully.
47368         * lib/freopen.c (orig_freopen): New function.
47369         (rpl_freopen): Use orig_freopen instead of freopen.
47370         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47371         (gl_FUNC_FREOPEN): Invoke it.
47372
47373         Override fopen more carefully.
47374         * lib/fopen.c (orig_fopen): New function.
47375         (rpl_fopen): Use orig_fopen instead of fopen.
47376         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47377         (gl_FUNC_FOPEN): Invoke it.
47378         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47379
47380 2008-09-28  Bruno Haible  <bruno@clisp.org>
47381
47382         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47383         SIGPIPE.
47384
47385 2008-09-28  Bruno Haible  <bruno@clisp.org>
47386
47387         * tests/test-sigaction.c (handler, main): Disable the check whether
47388         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47389         glibc systems with LinuxThreads.
47390
47391 2008-09-28  Bruno Haible  <bruno@clisp.org>
47392
47393         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47394
47395         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47396         with AIX xlc.
47397         * lib/fcntl.in.h (open): Likewise.
47398         Reported by Rainer Tammer <tammer@tammer.net>.
47399
47400 2008-09-28  Bruno Haible  <bruno@clisp.org>
47401
47402         * modules/posix_spawnp-tests: New file.
47403         * tests/test-posix_spawn.c: New file.
47404         * tests/test-posix_spawn.in.sh: New file.
47405
47406         New module 'posix_spawnp'.
47407         * modules/posix_spawnp: New file.
47408         * lib/spawnp.c: New file, from GNU libc with modifications.
47409         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47410
47411         New module 'posix_spawn'.
47412         * modules/posix_spawn: New file.
47413         * lib/spawn.c: New file, from GNU libc with modifications.
47414         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47415
47416         New module 'posix_spawnattr_destroy'.
47417         * modules/posix_spawnattr_destroy: New file.
47418         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47419         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47420         module.
47421
47422         New module 'posix_spawnattr_setsigmask'.
47423         * modules/posix_spawnattr_setsigmask: New file.
47424         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47425         modifications.
47426         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47427         new module.
47428
47429         New module 'posix_spawnattr_getsigmask'.
47430         * modules/posix_spawnattr_getsigmask: New file.
47431         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47432         modifications.
47433         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47434         new module.
47435
47436         New module 'posix_spawnattr_setsigdefault'.
47437         * modules/posix_spawnattr_setsigdefault: New file.
47438         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47439         modifications.
47440         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47441         new module.
47442
47443         New module 'posix_spawnattr_getsigdefault'.
47444         * modules/posix_spawnattr_getsigdefault: New file.
47445         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47446         modifications.
47447         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47448         new module.
47449
47450         New module 'posix_spawnattr_setschedpolicy'.
47451         * modules/posix_spawnattr_setschedpolicy: New file.
47452         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47453         modifications.
47454         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47455         new module.
47456
47457         New module 'posix_spawnattr_getschedpolicy'.
47458         * modules/posix_spawnattr_getschedpolicy: New file.
47459         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47460         modifications.
47461         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47462         new module.
47463
47464         New module 'posix_spawnattr_setschedparam'.
47465         * modules/posix_spawnattr_setschedparam: New file.
47466         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47467         modifications.
47468         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47469         new module.
47470
47471         New module 'posix_spawnattr_getschedparam'.
47472         * modules/posix_spawnattr_getschedparam: New file.
47473         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47474         modifications.
47475         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47476         new module.
47477
47478         New module 'posix_spawnattr_setpgroup'.
47479         * modules/posix_spawnattr_setpgroup: New file.
47480         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47481         modifications.
47482         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47483         module.
47484
47485         New module 'posix_spawnattr_getpgroup'.
47486         * modules/posix_spawnattr_getpgroup: New file.
47487         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47488         modifications.
47489         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47490         module.
47491
47492         New module 'posix_spawnattr_setflags'.
47493         * modules/posix_spawnattr_setflags: New file.
47494         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47495         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47496         module.
47497
47498         New module 'posix_spawnattr_getflags'.
47499         * modules/posix_spawnattr_getflags: New file.
47500         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47501         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47502         module.
47503
47504         New module 'posix_spawnattr_init'.
47505         * modules/posix_spawnattr_init: New file.
47506         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47507         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47508         module.
47509
47510         New module 'posix_spawn_file_actions_destroy'.
47511         * modules/posix_spawn_file_actions_destroy: New file.
47512         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47513         modifications.
47514         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47515         the new module.
47516
47517         New module 'posix_spawn_file_actions_addopen'.
47518         * modules/posix_spawn_file_actions_addopen: New file.
47519         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47520         modifications.
47521         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47522         the new module.
47523
47524         New module 'posix_spawn_file_actions_adddup2'.
47525         * modules/posix_spawn_file_actions_adddup2: New file.
47526         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47527         modifications.
47528         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47529         the new module.
47530
47531         New module 'posix_spawn_file_actions_addclose'.
47532         * modules/posix_spawn_file_actions_addclose: New file.
47533         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47534         modifications.
47535         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47536         the new module.
47537
47538         New module 'posix_spawn_file_actions_init'.
47539         * modules/posix_spawn_file_actions_init: New file.
47540         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47541         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47542         new module.
47543
47544         New module 'posix_spawn-internal'.
47545         * modules/posix_spawn-internal: New file.
47546         * lib/spawn_int.h: New file, from GNU libc with modifications.
47547         * lib/spawni.c: New file, from GNU libc with modifications.
47548         * m4/posix_spawn.m4: New file.
47549
47550         New module 'spawn'.
47551         * modules/spawn: New file.
47552         * lib/spawn.in.h: New file, from GNU libc with modifications.
47553         * m4/spawn_h.m4: New file.
47554         * doc/posix-headers/spawn.texi: Mention the new module.
47555
47556 2008-09-28  Bruno Haible  <bruno@clisp.org>
47557
47558         * modules/sched-tests: New file.
47559         * tests/test-sched.c: New file.
47560
47561         New module 'sched'.
47562         * modules/sched: New file.
47563         * lib/sched.in.h: New file.
47564         * m4/sched_h.m4: New file.
47565         * doc/posix-headers/sched.texi: Mention the new module.
47566
47567 2008-09-27  Eric Blake  <ebb9@byu.net>
47568
47569         Fix previous patch, and tweak references to $0.
47570         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47571         (func_version, func_gnulib_dir): Don't call this program
47572         gnulib-tool.
47573         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47574         with using $0 in function.
47575         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47576         (func_fatal_error): Reuse the name the user invoked us with.
47577
47578 2008-09-27  Bruno Haible  <bruno@clisp.org>
47579
47580         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47581         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47582         (gl_ICONV_H): Not here.
47583         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47584         instead of assigning ICONV_H directly.
47585
47586         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47587         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47588         WCHAR_H directly.
47589
47590 2008-09-27  Bruno Haible  <bruno@clisp.org>
47591
47592         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47593         * modules/arpa_inet (Depends-on): Add link-warning.
47594         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47595         * modules/unistd (Makefile.am): Likewise.
47596
47597 2008-09-26  Bruno Haible  <bruno@clisp.org>
47598
47599         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47600         variables.
47601         (func_version): Essentially copied from gnulib-tool.
47602         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47603         func_readlink): Copied from gnulib-tool.
47604
47605 2008-09-26  Bruno Haible  <bruno@clisp.org>
47606
47607         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47608         invoking git-version-gen.
47609
47610 2008-09-26  Bruno Haible  <bruno@clisp.org>
47611
47612         * posix-modules: Update to directory names changed on 2008-01-19.
47613         Remove commas in output before splitting into words. No more need to
47614         avoid 'ftruncate' since 2007-02-19.
47615
47616 2008-09-26  Bruno Haible  <bruno@clisp.org>
47617
47618         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47619
47620 2008-09-26  Bruno Haible  <bruno@clisp.org>
47621
47622         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47623         * modules/fwriteerror (Depends-on): Add errno.
47624
47625 2008-09-26  Bruno Haible  <bruno@clisp.org>
47626
47627         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47628         * tests/test-vc-list-files-cvs.sh: Likewise.
47629
47630 2008-09-26  Bruno Haible  <bruno@clisp.org>
47631
47632         * doc/posix-headers/sys_resource.texi: Reorder items.
47633
47634 2008-09-26  Jim Meyering  <meyering@redhat.com>
47635
47636         fts: tweak inode comparison function
47637         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47638         inode numbers, as documented.
47639
47640         fts: sort dirent entries on inode number before traversing
47641         This avoids a quadratic, seek-related performance penalty when
47642         operating on a directory containing many entries (measurable at 10k;
47643         3.5 hours at 2 million entries with a cold cache) on certain types
47644         of file systems, including ext3 and ext4, but not tmpfs.
47645         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47646         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47647         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47648         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47649         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47650         (fts_build): Set the stat.st_ino member from D_INO.
47651         If it is likely to be useful, sort dirent entries on inode number.
47652
47653         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47654         and the struct statfs.f_type member.
47655         * modules/fts (Depends-on): Add d-ino.
47656
47657 2008-09-26  Bruno Haible  <bruno@clisp.org>
47658
47659         * modules/sigpipe-die (Depends-on): Add sigpipe.
47660
47661         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47662         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47663         and GNULIB_STDIO_H_SIGPIPE are set.
47664         * lib/stdio-write.c: New file.
47665         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47666         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47667         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47668         REPLACE_STDIO_WRITE_FUNCS.
47669         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47670         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47671         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47672         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47673         * modules/stdio (Files): Add lib/stdio-write.c.
47674         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47675         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47676         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47677         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47678         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47679         REPLACE_FPRINTF_POSIX.
47680         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47681         REPLACE_PRINTF_POSIX.
47682         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47683         REPLACE_VFPRINTF_POSIX.
47684         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47685         REPLACE_VPRINTF_POSIX.
47686         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47687         SIGPIPE issue.
47688         * doc/posix-functions/fputc.texi: Likewise.
47689         * doc/posix-functions/fputs.texi: Likewise.
47690         * doc/posix-functions/fwrite.texi: Likewise.
47691         * doc/posix-functions/printf.texi: Likewise.
47692         * doc/posix-functions/putc.texi: Likewise.
47693         * doc/posix-functions/putchar.texi: Likewise.
47694         * doc/posix-functions/puts.texi: Likewise.
47695         * doc/posix-functions/vfprintf.texi: Likewise.
47696         * doc/posix-functions/vprintf.texi: Likewise.
47697
47698         * modules/safe-write (Depends-on): Add write.
47699
47700         * modules/sigpipe-tests: New file.
47701         * tests/test-sigpipe.c: New file.
47702         * tests/test-sigpipe.sh: New file.
47703
47704         * modules/write: New file.
47705         * lib/unistd.in.h: Include <sys/types.h>.
47706         (write): New declaration.
47707         * lib/write.c: New file.
47708         * m4/write.m4: New file.
47709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47710         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47711         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47712         GNULIB_WRITE, REPLACE_WRITE.
47713         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47714         and the SIGPIPE issue.
47715
47716         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47717         (raise): New declaration.
47718         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47719         (ext_signal): New function.
47720         (rpl_raise): New function.
47721         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47722         GNULIB_SIGNAL_H_SIGPIPE.
47723         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47724         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47725
47726         * modules/sigpipe: New file.
47727         * m4/sigpipe.m4: New file.
47728
47729 2008-09-25  Derek Price  <derek@ximbiot.com>
47730             Bruno Haible  <bruno@clisp.org>
47731
47732         * gnulib-tool (func_import): Report all license incompatibilities, not
47733         just the first one.
47734
47735 2008-09-25  Bruno Haible  <bruno@clisp.org>
47736
47737         * gnulib-tool (func_import): When computing the edits, consider not
47738         only the Makefile.ams that exist but also those that will be generated.
47739
47740 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47741
47742         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47743         fixes gnulib-tool --test warning about duplicate dependency.
47744
47745 2008-09-25  Bruno Haible  <bruno@clisp.org>
47746
47747         * gnulib-tool: Don't ask the user to perform edits in the generated
47748         Makefile.ams.
47749         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47750         apply to the Makefile.am being generated.
47751         (func_emit_tests_Makefile_am): Execute edits that apply to the
47752         Makefile.am being generated.
47753         (func_import): Setup list of Makefile.am edits before emitting the
47754         Makefile.ams, not at the end.
47755         (func_create_testdir): Update.
47756         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47757
47758 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47759
47760         * gnulib-tool (func_import): Store the --tests-base option in the
47761         comment in gnulib-cache.m4.
47762
47763 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47764
47765         * NEWS: Document increased portability that sys_select now provides.
47766
47767         * lib/sys_select.in.h: Install select wrapper.
47768         * lib/sys_socket.in.h: Use more descriptive name when there is no
47769         select wrapper.
47770         * lib/winsock-select.c: New.
47771         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47772         Require gl_HEADER_SYS_SOCKET.
47773         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47774         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47775         * tests/test-sys_select.c: Add functional tests.
47776
47777 2008-09-24  Eric Blake  <ebb9@byu.net>
47778
47779         open, fopen: close fd leak in last patch
47780         * lib/open.c (rpl_open): Close fd before returning error.
47781         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47782         * doc/posix-functions/open.texi (open): Document that Irix also
47783         has the bug.
47784         * doc/posix-functions/fopen.texi (fopen): Likewise.
47785         Reported by Paolo Bonzini.
47786
47787 2008-09-24  Bruno Haible  <bruno@clisp.org>
47788
47789         Ensure that a filename ending in a slash cannot be used to access a
47790         non-directory.
47791         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47792         to check whether it's really a directory.
47793         * lib/fopen.c: Include fcntl.h, unistd.h.
47794         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47795         and fdopen().
47796         * modules/fopen (Depends-on): Add unistd.
47797         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47798         * tests/test-fopen.c (main): Likewise.
47799         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47800         * doc/posix-functions/fopen.texi: Likewise.
47801         Reported by Eric Blake.
47802
47803 2008-09-23  Eric Blake  <ebb9@byu.net>
47804
47805         c-stack: avoid compiler optimizations when provoking overflow
47806         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47807         recursion harder to optimize, to ensure a stack overflow occurs.
47808         * tests/test-c-stack.c (recurse): Likewise.
47809         Borrowed from libsigsegv.
47810
47811         c-stack: work around Irix sigaltstack bug
47812         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47813         whether sigaltstack uses wrong end of stack_t (copied in part from
47814         libsigsegv).
47815         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47816         Irix bug, without requiring an over-allocation.
47817         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47818         bug.
47819
47820         fopen: document mingw bug on directories
47821         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47822         not allowing a stream visiting a directory, even though reading
47823         from such a stream is not portable.
47824
47825 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47826
47827         * lib/poll.c: Rewrite.
47828         * modules/poll: Depend on alloca.
47829
47830 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47831
47832         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47833         instead define prototypes for a full set of wrappers.  Ensure
47834         that Cygwin does not use the compatibility code, which is only
47835         for MinGW.
47836         * lib/winsock.c: New.
47837         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47838         * modules/sys_socket: Add lib/winsock.c.
47839
47840         * modules/poll-tests: Add errno and perror.
47841         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47842
47843 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47844
47845         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47846
47847 2008-09-23  Bruno Haible  <bruno@clisp.org>
47848
47849         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47850         * doc/glibc-functions/*: Likewise.
47851
47852 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47853
47854         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47855         success.
47856
47857 2008-09-22  Eric Blake  <ebb9@byu.net>
47858             Bruno Haible  <bruno@clisp.org>
47859
47860         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47861         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47862         supply %A but mishandle pseudo-NaN.
47863         Reported by Simon Josefsson.
47864
47865 2008-09-21  Bruno Haible  <bruno@clisp.org>
47866
47867         * tests/test-lock.c (main): Tweak skip message.
47868         * tests/test-tls.c (main): Likewise.
47869
47870 2008-09-21  Bruno Haible  <bruno@clisp.org>
47871
47872         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47873         whether 'struct sigaction' has sa_sigaction here...
47874         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47875         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47876
47877 2008-09-21  Bruno Haible  <bruno@clisp.org>
47878
47879         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47880         section.
47881         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47882         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47883         the new section.
47884         (Support for obsolete systems lacking POSIX:2001): New section.
47885         (String handling <string.h>): Move strdup to the new section.
47886         Suggested by Simon Josefsson and Paolo Bonzini.
47887
47888 2008-09-21  Bruno Haible  <bruno@clisp.org>
47889
47890         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47891         exponents in %e and %g results on 'long double'. Needed for mingw's
47892         improved *printf functions.
47893         * tests/test-vasprintf-posix.c (test_function): Likewise.
47894         * tests/test-snprintf-posix.h (test_function): Likewise.
47895         * tests/test-sprintf-posix.h (test_function): Likewise.
47896         Reported by Eric Blake.
47897
47898 2008-09-21  Bruno Haible  <bruno@clisp.org>
47899
47900         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47901         * tests/test-sprintf-posix.h (test_function): Likewise.
47902
47903 2008-09-21  Bruno Haible  <bruno@clisp.org>
47904
47905         * modules/getpass (Depends-on): Add strdup-posix.
47906
47907         New module 'strdup-posix'.
47908         * modules/strdup-posix: New file.
47909         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47910         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47912         REPLACE_STRDUP.
47913         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47914         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47915         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47916         strdup-posix.
47917
47918         * modules/strdup (Depends-on): Remove malloc-posix.
47919
47920 2008-09-20  Bruno Haible  <bruno@clisp.org>
47921
47922         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47923         Wildenhues.
47924
47925 2008-09-20  Bruno Haible  <bruno@clisp.org>
47926
47927         Ensure that wint_t gets defined on IRIX 5.3.
47928         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47929         * lib/wctype.in.h (wint_t): Likewise.
47930         (__wctype_wint_t): Remove type.
47931         (isw*): Use wint_t instead of __wctype_wint_t.
47932         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47933         * modules/wchar (Files): Add m4/wint_t.m4.
47934         (Makefile.am): Substitute HAVE_WINT_T.
47935         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47936         * tests/test-wctype.c: Check that wint_t is defined.
47937         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47938         * doc/posix-headers/wctype.texi: Likewise.
47939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47940
47941 2008-09-18  Bruno Haible  <bruno@clisp.org>
47942
47943         * gnulib-tool (func_exit): Update comment.
47944
47945 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47946
47947         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47948         assumes strdup exists and does not depend on strdup to return
47949         ENOMEM on out of memory conditions.
47950
47951 2008-09-18  Bruno Haible  <bruno@clisp.org>
47952
47953         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47954         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47955         digits for the exponent.
47956
47957 2008-09-18  Jim Meyering  <meyering@redhat.com>
47958             Bruno Haible  <bruno@clisp.org>
47959
47960         * lib/vasnprintf.c (decimal_point_char): Define also if
47961         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47962
47963 2008-09-16  Bruno Haible  <bruno@clisp.org>
47964         and Eric Blake  <ebb9@byu.net>
47965
47966         vasnprintf: support Irix 5.3
47967         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47968         that mishandle long double infinity.
47969         Reported by Tom G. Christensen.
47970
47971 2008-09-16  Bruno Haible  <bruno@clisp.org>
47972
47973         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47974         Solaris 9.
47975         * doc/glibc-functions/alphasort.texi: Likewise.
47976         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47977
47978 2008-09-16  Jim Meyering  <meyering@redhat.com>
47979
47980         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47981         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47982         a umask modification leak out of a subshell.  Otherwise, the
47983         opensolaris /bin/sh would be accepted and thus cause unwarranted
47984         failures in the coreutils test suite.
47985
47986 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47987
47988         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47989         to succeed.
47990
47991 2008-09-16  Jim Meyering  <meyering@redhat.com>
47992
47993         avoid spurious test failure when library is built without ACL support
47994         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47995         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47996         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47997         * tests/test-copy-acl.sh: Likewise.
47998
47999 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48000
48001         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48002         based on character occurrence counts.
48003
48004 2008-09-15  Eric Blake  <ebb9@byu.net>
48005
48006         tests: avoid some compiler warnings
48007         * tests/test-memchr.c (main): Pass NULL indirectly.
48008         * tests/test-closein.c (main): Avoid unused variable.
48009
48010 2008-09-15  Bruno Haible  <bruno@clisp.org>
48011
48012         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48013         are missing on OpenBSD 4.0 individually.
48014         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48015
48016 2008-09-15  Bruno Haible  <bruno@clisp.org>
48017
48018         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48019         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48020         * doc/posix-functions/perror.texi: Likewise.
48021         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48022         is missing.
48023         Reported by Eric Blake.
48024
48025         * lib/errno.in.h: Use replacement values >= 2000.
48026         Reported by Eric Blake.
48027
48028 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48029
48030         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48031         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48032         limit.
48033         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48034         compareseq was aborted.
48035
48036 2008-09-14  Bruno Haible  <bruno@clisp.org>
48037
48038         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48039         yvec_edit_count.
48040         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48041         (fstrcmp_bounded): Simplify result computation accordingly.
48042
48043 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48044
48045         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48046         (fstrcmp): Define in terms of fstrcmp_bounded.
48047         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48048         lower_bound argument.
48049         Return quickly if the result is certainly < lower_bound.
48050         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48051
48052 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48053
48054         * lib/diffseq.h (EARLY_ABORT): New macro.
48055         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48056         evaluates to true.
48057
48058 2008-09-14  Bruno Haible  <bruno@clisp.org>
48059
48060         * modules/perror-tests: New file.
48061         * tests/test-perror.sh: New file.
48062         * tests/test-perror.c: New file.
48063
48064         New module 'perror'.
48065         * lib/stdio.in.h (perror): New declaration.
48066         * lib/perror.c: New file.
48067         * m4/perror.m4: New file.
48068         * modules/perror: New file.
48069         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48070         * doc/posix-functions/perror.texi: Mention the perror module.
48071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48072         REPLACE_PERROR.
48073         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48074         REPLACE_PERROR.
48075
48076 2008-09-14  Bruno Haible  <bruno@clisp.org>
48077
48078         * modules/stdio (Makefile.am): Reorder to match the order in
48079         lib/stdio.in.h.
48080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48081
48082 2008-09-13  Bruno Haible  <bruno@clisp.org>
48083
48084         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48085
48086 2008-09-13  Bruno Haible  <bruno@clisp.org>
48087
48088         Extend strerror to cover the added errno values.
48089         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48090         (rpl_strerror): Provide error messages for the added errno values and
48091         for the WSA* values.
48092         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48093         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48094         strerror.
48095         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48096         * modules/strerror (Depends-on): Add errno.
48097         * doc/posix-functions/strerror.texi: Document the change.
48098         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48099         and EOVERFLOW.
48100
48101 2008-09-13  Bruno Haible  <bruno@clisp.org>
48102
48103         * modules/EOVERFLOW: Remove file.
48104         * m4/eoverflow.m4: Remove file.
48105         * modules/EOVERFLOW-tests: Remove file.
48106         * tests/test-EOVERFLOW.c: Remove file.
48107         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48108         * modules/ftell (Depends-on): Likewise.
48109         * modules/getdelim (Depends-on): Likewise.
48110         * modules/getugroups (Depends-on): Likewise.
48111         * modules/poll (Depends-on): Likewise.
48112         * modules/snprintf (Depends-on): Likewise.
48113         * modules/sprintf-posix (Depends-on): Likewise.
48114         * modules/vasnprintf (Depends-on): Likewise.
48115         * modules/vasprintf (Depends-on): Likewise.
48116         * modules/vfprintf-posix (Depends-on): Likewise.
48117         * modules/vsnprintf (Depends-on): Likewise.
48118         * modules/vsprintf-posix (Depends-on): Likewise.
48119         * modules/xvasprintf (Depends-on): Likewise.
48120         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48121         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48122         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48123         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48124         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48125         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48126         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48127         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48128         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48129         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48130         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48131         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48132         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48133         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48134         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48135         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48136         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48137         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48138         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48139         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48140         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48141         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48142         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48143         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48144         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48145         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48146         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48147         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48148         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48149         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48150         * MODULES.html.sh: Remove EOVERFLOW.
48151         * NEWS: Mention the change.
48152
48153 2008-09-13  Bruno Haible  <bruno@clisp.org>
48154
48155         * modules/errno-tests: New file.
48156         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48157
48158         * lib/errno.in.h: New file.
48159         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48160         * modules/errno: New file.
48161         * doc/posix-headers/errno.texi: Update documentation.
48162         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48163
48164 2008-09-13  Bruno Haible  <bruno@clisp.org>
48165
48166         * tests/test-poll.c: Use #if for native Windows, rather than testing
48167         __MSVCRT__.
48168
48169 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48170             Bruno Haible  <bruno@clisp.org>
48171
48172         * lib/glob.c: Don't include <pwd.h> on native Windows.
48173         (WINDOWS32): New macro.
48174         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48175
48176 2008-09-13  Bruno Haible  <bruno@clisp.org>
48177
48178         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48179         (ETIMEDOUT): Remove macro.
48180         (glthread_cond_timedwait_multithreaded): New declaration.
48181         (glthread_cond_timedwait): Use it.
48182         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48183         (glthread_cond_timedwait_multithreaded): New function.
48184
48185 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48186
48187         * modules/poll-tests: Do not check for io.h.
48188         * tests/test-poll.c: Check for __MSVCRT__ instead.
48189
48190 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48191
48192         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48193         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48194         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48195
48196 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48197
48198         * modules/poll-tests: New.
48199         * tests/test-poll.c: New.
48200
48201 2008-09-12  Eric Blake  <ebb9@byu.net>
48202
48203         frexp: test for NetBSD failure on -0.0
48204         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48205         not all, bugs from NetBSD 3.0 have been fixed.
48206         * doc/posix-functions/frexp.texi (frexp): Document bug.
48207         Reported by Thomas Klausner.
48208
48209         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48210         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48211         literal -0.0.
48212         Reported by Jonathan C. Patschke <jp@centtech.com>.
48213
48214 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48215
48216         * lib/glthread/cond.h: Use dummy implementation also if
48217         USE_WIN32_THREADS.
48218
48219 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48220
48221         * modules/fnmatch-posix (License): Change to LGPLv2+.
48222         * modules/fnmatch-gnu (License): Likewise.
48223
48224 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48225
48226         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48227
48228 2008-09-11  Jim Meyering  <meyering@redhat.com>
48229
48230         * users.txt: Add gtk-vnc.
48231
48232 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48233
48234         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48235         rotate amounts.
48236
48237         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48238         required for 16-bit and 8-bit rotates.
48239         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48240         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48241         UINT8_MAX instead of hard-coded constants.
48242         Suggested by Paul Eggert.
48243
48244 2008-09-07  Bruno Haible  <bruno@clisp.org>
48245
48246         * tests/test-striconveh.c (main): Check behaviour when converting from
48247         UTF-7.
48248
48249         Make striconveh work better with stateful encodings.
48250         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48251         that iconv does not increment the inptr when returning -1/EINVAL.
48252
48253 2008-09-07  Bruno Haible  <bruno@clisp.org>
48254
48255         * build-aux/config.rpath: Update according to libtool-2.2.6.
48256         * build-aux/config.libpath: Likewise.
48257
48258 2008-09-06  Bruno Haible  <bruno@clisp.org>
48259
48260         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48261         * lib/freadptr.c (freadptr): Likewise.
48262         * lib/freadseek.c (freadptrinc): Likewise.
48263         Reported by Simon Josefsson.
48264
48265 2008-09-06  Bruno Haible  <bruno@clisp.org>
48266
48267         * modules/freadptr (License): Change to LGPLv2+.
48268         * modules/freadseek (License): Likewise.
48269         Suggested by Eric Blake.
48270
48271         * modules/memchr2 (License): Change to LGPLv2+.
48272         Approved by Eric Blake.
48273
48274 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48275             Bruno Haible  <bruno@clisp.org>
48276
48277         Make gnulib-tool work with native 'sed' on AIX.
48278         * gnulib-tool (sed_noop): New variable.
48279         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48280         func_add_or_update, func_create_testdir): Use it to initialize sed
48281         script variables.
48282         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48283
48284 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48285             Bruno Haible  <bruno@clisp.org>
48286
48287         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48288         also works after #include directives.
48289
48290 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
48291
48292         getdate.y: reject an out-of-range timezone value
48293         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48294         the range [-24...+24].  When specified with only one or two digits,
48295         * tests/test-getdate.c: Tests for the fix.
48296         * doc/getdate.texi: Document this change.
48297
48298 2008-09-03  Bruno Haible  <bruno@clisp.org>
48299
48300         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48301
48302 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48303
48304         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48305         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48306         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48307         Blake <ebb9@byu.net>.
48308
48309         * tests/test-bitrotate.c: Add more test vectors.
48310
48311 2008-09-02  Eric Blake  <ebb9@byu.net>
48312
48313         vasnprintf-posix: handle large precision via %.*d
48314         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48315         when handling it ourselves.
48316         * tests/test-vasnprintf-posix.c (test_function): Add test.
48317         * tests/test-snprintf-posix.h (test_function): Likewise.
48318         * tests/test-sprintf-posix.h (test_function): Likewise.
48319         * tests/test-vasprintf-posix.c (test_function): Likewise.
48320         Reported by Alain Guibert.
48321
48322 2008-09-01  Eric Blake  <ebb9@byu.net>
48323
48324         c-stack: make configure-time check more robust
48325         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48326         successful sigaction call.
48327         Reported by Tom G. Christensen.
48328
48329 2008-09-01  Bruno Haible  <bruno@clisp.org>
48330
48331         New module 'findprog-lgpl'.
48332         * modules/findprog-lgpl: New file.
48333         * lib/findprog-lgpl.c: New file.
48334         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48335         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48336         to decide whether to use strdup or xstrdup, concatenated_filename or
48337         xconcatenated_filename.
48338
48339 2008-09-01  Bruno Haible  <bruno@clisp.org>
48340
48341         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48342         'xconcat-filename' (GPL).
48343         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48344         (License): Change to LGPLv2+.
48345         * modules/xconcat-filename: New file.
48346         * lib/concat-filename.h (concatenated_filename): Change specification.
48347         (xconcatenated_filename): New declaration.
48348         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48349         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48350         memory situations.
48351         * lib/xconcat-filename.c: New file.
48352         * NEWS: Mention the change.
48353         * lib/findprog.c: Include concat-filename.h, not filename.h.
48354         (find_in_path): Use xconcatenated_filename instead of
48355         concatenated_filename.
48356         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48357         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48358         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48359         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48360         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48361         instead of concatenated_filename.
48362         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48363         (execute_java_class): Use xconcatenated_filename instead of
48364         concatenated_filename.
48365         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48366         * modules/javacomp (Depends-on): Likewise.
48367         * modules/javaexec (Depends-on): Likewise.
48368
48369 2008-09-01  Bruno Haible  <bruno@clisp.org>
48370
48371         Split module 'filename' into 'filename' and 'concat-filename'.
48372         * modules/filename: Keep only lib/filename.h.
48373         (License): Change to LGPLv2+.
48374         * modules/concat-filename: New file, extracted from modules/filename.
48375         * lib/filename.h (concatenated_filename): Remove declaration.
48376         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48377         * lib/concat-filename.c: Include concat-filename.h.
48378         * NEWS: Mention the change.
48379
48380 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48381
48382         * lib/bitrotate.h (rotl8, rotr8): Add.
48383
48384         * modules/bitrotate (configure.ac): Need
48385         AC_REQUIRE([AC_C_INLINE]).
48386         (Description): Mention stdint.h.  Reported by Bruno Haible
48387         <bruno@clisp.org>.
48388
48389         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48390         Paolo Bonzini <bonzini@gnu.org>.
48391
48392 2008-08-31  Bruno Haible  <bruno@clisp.org>
48393
48394         Assume Solaris specific bi-arch conventions on Solaris systems.
48395         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48396         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48397         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48398         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48399         like acl_libdirstem.
48400         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48401         acl_libdirstem.
48402         * NEWS: Mention the change.
48403         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48404
48405 2008-08-31  Jim Meyering  <meyering@redhat.com>
48406
48407         * lib/strftime.h: Add comments describing the two added arguments.
48408
48409         remove duplicate #include directives
48410         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48411         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48412
48413 2008-08-31  Bruno Haible  <bruno@clisp.org>
48414
48415         New module 'sigpipe-die'.
48416         * modules/sigpipe-die: New file.
48417         * lib/sigpipe-die.h: New file.
48418         * lib/sigpipe-die.c: New file.
48419         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48420
48421 2008-08-31  Bruno Haible  <bruno@clisp.org>
48422
48423         Don't override previously installed signal handlers.
48424         * lib/fatal-signal.c (saved_sigactions): New variable.
48425         (uninstall_handlers): Reset the signal to the saved handler, not
48426         to SIG_DFL (except when ignored).
48427         (install_handlers): Save the previous handlers.
48428
48429 2008-08-30  Bruno Haible  <bruno@clisp.org>
48430
48431         * gnulib-tool (func_reset_sigpipe): New function.
48432         (func_get_automake_snippet, func_modules_transitive_closure,
48433         func_import): Invoke it before a join command that reads from stdin,
48434         to avoid "echo: write error: Broken pipe" error messages on stderr.
48435         Reported by Sam Steingold <sds@gnu.org>.
48436
48437 2008-08-30  Bruno Haible  <bruno@clisp.org>
48438
48439         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48440         Code copied from m4/open.m4.
48441         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48442         access and the filename ends in a slash. Code copied from lib/open.c.
48443         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48444         * tests/test-fopen.c (main): Check against bug with trailing slash.
48445
48446 2008-08-29  Bruno Haible  <bruno@clisp.org>
48447
48448         Avoid some "gcc -pedantic" warnings.
48449         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48450         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48451         * lib/dirent.in.h: Likewise.
48452         * lib/fcntl.in.h: Likewise.
48453         * lib/float.in.h: Likewise.
48454         * lib/iconv.in.h: Likewise.
48455         * lib/inttypes.in.h: Likewise.
48456         * lib/locale.in.h: Likewise.
48457         * lib/math.in.h: Likewise.
48458         * lib/netinet_in.in.h: Likewise.
48459         * lib/search.in.h: Likewise.
48460         * lib/signal.in.h: Likewise.
48461         * lib/stdarg.in.h: Likewise.
48462         * lib/stdint.in.h: Likewise.
48463         * lib/stdio.in.h: Likewise.
48464         * lib/stdlib.in.h: Likewise.
48465         * lib/string.in.h: Likewise.
48466         * lib/strings.in.h: Likewise.
48467         * lib/sys_select.in.h: Likewise.
48468         * lib/sys_socket.in.h: Likewise.
48469         * lib/sys_stat.in.h: Likewise.
48470         * lib/sys_time.in.h: Likewise.
48471         * lib/sysexits.in.h: Likewise.
48472         * lib/time.in.h: Likewise.
48473         * lib/unistd.in.h: Likewise.
48474         * lib/wchar.in.h: Likewise.
48475         * lib/wctype.in.h: Likewise.
48476         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48477         * modules/fchdir (Makefile.am): Likewise.
48478         * modules/fcntl (Makefile.am): Likewise.
48479         * modules/float (Makefile.am): Likewise.
48480         * modules/iconv_open (Makefile.am): Likewise.
48481         * modules/inttypes (Makefile.am): Likewise.
48482         * modules/locale (Makefile.am): Likewise.
48483         * modules/math (Makefile.am): Likewise.
48484         * modules/netinet_in (Makefile.am): Likewise.
48485         * modules/search (Makefile.am): Likewise.
48486         * modules/signal (Makefile.am): Likewise.
48487         * modules/stdarg (Makefile.am): Likewise.
48488         * modules/stdint (Makefile.am): Likewise.
48489         * modules/stdio (Makefile.am): Likewise.
48490         * modules/stdlib (Makefile.am): Likewise.
48491         * modules/string (Makefile.am): Likewise.
48492         * modules/strings (Makefile.am): Likewise.
48493         * modules/sys_select (Makefile.am): Likewise.
48494         * modules/sys_socket (Makefile.am): Likewise.
48495         * modules/sys_stat (Makefile.am): Likewise.
48496         * modules/sys_time (Makefile.am): Likewise.
48497         * modules/sysexits (Makefile.am): Likewise.
48498         * modules/time (Makefile.am): Likewise.
48499         * modules/unistd (Makefile.am): Likewise.
48500         * modules/wchar (Makefile.am): Likewise.
48501         * modules/wctype (Makefile.am): Likewise.
48502         Reported by Reuben Thomas <rrt@sc3d.org>.
48503
48504 2008-08-29  Bruno Haible  <bruno@clisp.org>
48505
48506         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48507         any more.
48508
48509 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48510
48511         * MODULES.html.sh (Misc): Add bitrotate.
48512
48513         * modules/bitrotate: New file.
48514
48515         * lib/bitrotate.h: New file.
48516
48517         * modules/bitrotate-tests: New file.
48518
48519         * tests/test-bitrotate.c: New file.
48520
48521         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48522         on the bitrotate module.
48523
48524         * lib/arctwo.c: Use new bitrotate module.
48525
48526 2008-08-29  Jim Meyering  <meyering@redhat.com>
48527
48528         bootstrap: merge changes from coreutils
48529         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48530         of copied files.  Remove a kludge, now that this is fixed.
48531         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48532         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48533         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48534
48535 2008-08-29  Bruno Haible  <bruno@clisp.org>
48536
48537         * MODULES.html.sh: Remove --cvs-urls option.
48538
48539 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48540
48541         maint.mk: adjust to file name change
48542         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48543
48544 2008-08-28  Jim Meyering  <meyering@redhat.com>
48545
48546         * modules/getndelim2 (License): Relicense to LGPLv2+.
48547         Approved by Richard Stallman for the version of 1995, and by
48548         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48549
48550 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48551
48552         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48553         dummy if one is not available.  Do not touch them if
48554         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48555         (getc_maybe_unlocked): New.
48556         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48557
48558 2008-08-26  Eric Blake  <ebb9@byu.net>
48559
48560         doc/INSTALL: resync from autoconf
48561         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48562         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48563         moving...
48564         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48565         * INSTALL: Regenerate.
48566         * INSTALL.ISO: New file.
48567         * INSTALL.UTF-8: Likewise.
48568
48569 2008-08-26  Jim Meyering  <meyering@redhat.com>
48570
48571         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48572         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48573         these definitions conditional, so that they may be overridden, too.
48574
48575 2008-08-26  Bruno Haible  <bruno@clisp.org>
48576
48577         Generate INSTALL file variants with prettier quotes.
48578         * doc/Makefile (INSTALL_PRELUDE): New macro.
48579         (INSTALL): Use it.
48580         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48581
48582 2008-08-26  Bruno Haible  <bruno@clisp.org>
48583
48584         Run makeinfo in an English locale.
48585         * doc/Makefile (MAKEINFO): New variable.
48586
48587 2008-08-26  Bruno Haible  <bruno@clisp.org>
48588
48589         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48590         Suggested by Eric Blake.
48591
48592 2008-08-25  Bruno Haible  <bruno@clisp.org>
48593
48594         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48595
48596 2008-08-25  Eric Blake  <ebb9@byu.net>
48597
48598         c-stack: test that stack overflow can be caught
48599         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48600         that platform allows handling stack overflow; at least OS/2 EMX
48601         has sigaltstack, but crashes before transferring control to
48602         handler on stack overflow.
48603         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48604         check for HAVE_STACK_OVERFLOW_HANDLING.
48605         Reported by Elbert Pol.
48606
48607 2008-08-25  Bruno Haible  <bruno@clisp.org>
48608
48609         * doc/posix-functions/strftime.texi: Fix description of strftime
48610         module.
48611
48612 2008-08-24  Bruno Haible  <bruno@clisp.org>
48613
48614         * tests/uniwidth/test-uc_width2.c: New file.
48615         * tests/uniwidth/test-uc_width2.sh: New file.
48616         * modules/uniwidth/width-tests (Files): Add the new files.
48617         (TESTS): Add uniwidth/test-uc_width2.sh.
48618         (TESTS_ENVIRONMENT): New variable.
48619         (check_PROGRAMS): Add test-uc_width2.
48620         (test_uc_width2_SOURCES): New variable.
48621
48622         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48623         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48624         not 0x00AB.
48625         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48626
48627 2008-08-22  Eric Blake  <ebb9@byu.net>
48628
48629         test-lock, test-tls: mention why a test is skipped
48630         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48631         skipped.
48632         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48633
48634         count-one-bits: relax license
48635         * modules/count-one-bits (License): Relicense to LGPLv2+.
48636         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48637
48638 2008-08-22  Andreas Schwab  <schwab@suse.de>
48639
48640         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48641         Remove spurious space in assignment.
48642
48643 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48644
48645         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48646         Paul Eggert <eggert@CS.UCLA.EDU>.
48647
48648 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48649
48650         * modules/gettext: Add m4/threadlib.m4.
48651
48652 2008-08-19  Eric Blake  <ebb9@byu.net>
48653
48654         test-c-stack: fix compilation failure on FreeBSD 5.0
48655         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48656         headers before <sys/resource.h>.
48657         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48658         the bug.
48659         Reported by Nelson H. F. Beebe.
48660
48661         strverscmp: migrate from "strverscmp.h" to <string.h>
48662         * modules/string (Makefile.am): Add new hooks.
48663         * modules/strverscmp (Files): Remove strverscmp.h.
48664         (Depends-on): Add string.
48665         (configure.ac): Add indicator.
48666         (Include): Mention new header.
48667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48668         defaults.
48669         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48670         results.
48671         * lib/strverscmp.h: Delete.
48672         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48673         * tests/test-strverscmp.c (includes): Adjust client.
48674         * lib/check-version.c (includes): Likewise.
48675         * NEWS: Document the change.
48676
48677         strverscmp: add unit test
48678         * modules/strverscmp-tests: New file.
48679         * tests/test-strverscmp.c: Likewise.
48680
48681 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48682
48683         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48684         regarding Windows crypto stuff, from Mono.
48685
48686 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48687
48688         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48689         if present, for intel RND.  Return error on failures.
48690
48691 2008-08-18  Ben Pfaff  <blp@gnu.org>
48692
48693         gitlog-to-changelog: give better diagnostic for failed pipe-open
48694         * build-aux/gitlog-to-changelog: Improve error message: suggest
48695         that the version of Git may be too old.
48696
48697 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48698
48699         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48700         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48701
48702 2008-08-18  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48705         pthread_in_use().
48706
48707 2008-08-18  Bruno Haible  <bruno@clisp.org>
48708
48709         * lib/glthread/threadlib.c: Include <pthread.h>.
48710
48711 2008-08-18  Bruno Haible  <bruno@clisp.org>
48712
48713         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48714         glthread_recursive_lock_* macros.
48715         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48716         Fix syntax error.
48717
48718 2008-08-18  Bruno Haible  <bruno@clisp.org>
48719
48720         * lib/glthread/thread.c: Avoid forcing a context switch right after
48721         thread creation.
48722
48723 2008-08-17  Bruno Haible  <bruno@clisp.org>
48724
48725         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48726         * lib/glthread/thread.h: Provide Win32 specific implementation.
48727         * modules/thread (Files): Add lib/glthread/thread.c.
48728         (Depends-on): Add lock.
48729         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48730
48731 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48732
48733         New module 'yield'.
48734         * modules/yield: New file.
48735         * lib/glthread/yield.h: New file.
48736         * m4/yield.m4: New file.
48737         * MODULES.html.sh (Multithreading): Add yield.
48738
48739 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48740
48741         New module 'thread'.
48742         * modules/thread: New file.
48743         * lib/glthread/thread.h: New file.
48744         * m4/thread.m4: New file.
48745         * MODULES.html.sh (Multithreading): Add thread.
48746
48747 2008-08-17  Bruno Haible  <bruno@clisp.org>
48748
48749         * lib/glthread/lock.h: Include <stdlib.h> always.
48750         * lib/glthread/tls.h: Likewise.
48751         * lib/glthread/cond.h: Likewise.
48752
48753 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48754
48755         New module 'cond'.
48756         * modules/cond: New file.
48757         * lib/glthread/cond.h: New file.
48758         * lib/glthread/cond.c: New file.
48759         * m4/cond.m4: New file.
48760         * MODULES.html.sh (Multithreading): Add cond.
48761
48762 2008-08-16  Eric Blake  <ebb9@byu.net>
48763
48764         c-stack: fix regression on Irix 5.3 from 2008-06-21
48765         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48766         sa_sigaction...
48767         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48768         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48769         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48770         * modules/signal (Makefile.am): Use the value.
48771         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48772         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48773         * doc/posix-headers/signal.texi (signal.h): Document this
48774         portability issue.
48775         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48776         Reported by Tom G. Christensen.
48777
48778 2008-08-17  Bruno Haible  <bruno@clisp.org>
48779
48780         New module 'threadlib'.
48781         * modules/threadlib: New file.
48782         * lib/glthread/threadlib.c: New file, extracted from
48783         lib/glthread/lock.c.
48784         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48785         functions.
48786         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48787         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48788         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48789         macros.
48790         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48791         (gl_DISABLE_THREADS): Remove macro.
48792         * modules/lock (Files): Remove build-aux/config.rpath.
48793         (Depends-on): Remove havelib. Add threadlib.
48794         (configure.ac-early): Remove section.
48795         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48796         * modules/tls (Depends-on): Remove lock. Add threadlib.
48797         (Link): New section, copied from threadlib.
48798         * MODULES.html.sh (Multithreading): Add threadlib.
48799
48800 2008-08-14  Bruno Haible  <bruno@clisp.org>
48801
48802         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48803         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48804         glthread_rwlock_unlock, glthread_rwlock_destroy,
48805         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48806         glthread_recursive_lock_destroy): Define as macros always.
48807         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48808         glthread_lock_lock.
48809         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48810         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48811         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48812         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48813         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48814         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48815         (glthread_recursive_lock_lock_func): Renamed from
48816         glthread_recursive_lock_lock.
48817         (glthread_recursive_lock_unlock_func): Renamed from
48818         glthread_recursive_lock_unlock.
48819         (glthread_recursive_lock_destroy_func): Renamed from
48820         glthread_recursive_lock_destroy.
48821
48822 2008-08-14  Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/glthread/lock.h: Renamed from lib/lock.h.
48825         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48826         * lib/glthread/tls.h: Renamed from lib/tls.h.
48827         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48828         * lib/fstrcmp.c: Update includes.
48829         * lib/strsignal.c: Update includes.
48830         * modules/lock (Files, Makefile.am): Update.
48831         (Include): Change to "glthread/lock.h".
48832         * modules/tls (Files, Makefile.am): Update.
48833         (Include): Change to "glthread/tls.h".
48834         * tests/test-lock.c: Update includes.
48835         * tests/test-tls.c: Update includes.
48836         * NEWS: Mention the renamed header files.
48837
48838 2008-08-11  Jim Meyering  <meyering@redhat.com>
48839
48840         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48841
48842 2008-08-11  Eric Blake  <ebb9@byu.net>
48843
48844         test-c-stack: avoid C99-ism
48845         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48846         before statement.
48847         Reported by Alain Guibert.
48848
48849 2008-08-10  Jim Meyering  <meyering@redhat.com>
48850
48851         ensure that return value of uinttostr et al are not ignored
48852         * lib/inttostr.h (__GNUC_PREREQ): Define.
48853         (__attribute_warn_unused_result__): Define.
48854         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48855
48856 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48857
48858         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48859         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48860
48861 2008-08-07  Jim Meyering  <meyering@redhat.com>
48862
48863         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48864
48865         * modules/mkstemp (License): Relicense under LGPLv2+.
48866         * modules/tempname (License): Likewise.
48867
48868 2008-08-06  Bruno Haible  <bruno@clisp.org>
48869
48870         * lib/poll.c (poll): Further micro-optimization.
48871
48872 2008-08-06  Jim Meyering  <meyering@redhat.com>
48873
48874         inet_pton.c: use locale-independent tolower
48875         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48876         (inet_pton6): Use c_tolower rather than tolower.
48877         * modules/inet_pton (Depends-on): Add c-ctype.
48878
48879 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48880
48881         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48882         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48883
48884 2008-08-06  Jim Meyering  <meyering@redhat.com>
48885
48886         * modules/inet_pton (License): Relicense under LGPLv2+.
48887
48888 2008-08-03  Bruno Haible  <bruno@clisp.org>
48889
48890         Additional non-aborting API for lock and tls.
48891         * lib/lock.h: Include <errno.h>.
48892         (glthread_lock_init): New macro/function.
48893         (gl_lock_init): Define as wrapper around glthread_lock_init.
48894         (glthread_lock_lock): New macro/function.
48895         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48896         (glthread_lock_unlock): New macro/function.
48897         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48898         (glthread_lock_destroy): New macro/function.
48899         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48900         (glthread_rwlock_init): New macro/function.
48901         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48902         (glthread_rwlock_rdlock): New macro/function.
48903         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48904         (glthread_rwlock_wrlock): New macro/function.
48905         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48906         (glthread_rwlock_unlock): New macro/function.
48907         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48908         (glthread_rwlock_destroy): New macro/function.
48909         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48910         (glthread_recursive_lock_init): New macro/function.
48911         (gl_recursive_lock_init): Define as wrapper around
48912         glthread_recursive_lock_init.
48913         (glthread_recursive_lock_lock): New macro/function.
48914         (gl_recursive_lock_lock): Define as wrapper around
48915         glthread_recursive_lock_lock.
48916         (glthread_recursive_lock_unlock): New macro/function.
48917         (gl_recursive_lock_unlock): Define as wrapper around
48918         glthread_recursive_lock_unlock.
48919         (glthread_recursive_lock_destroy): New macro/function.
48920         (gl_recursive_lock_destroy): Define as wrapper around
48921         glthread_recursive_lock_destroy.
48922         (glthread_once): New macro/function.
48923         (gl_once): Define as wrapper around glthread_once.
48924         Update function declarations.
48925         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48926         glthread_rwlock_init. Return error code.
48927         (glthread_rwlock_rdlock_multithreaded): Renamed from
48928         glthread_rwlock_rdlock. Return error code.
48929         (glthread_rwlock_wrlock_multithreaded): Renamed from
48930         glthread_rwlock_wrlock. Return error code.
48931         (glthread_rwlock_unlock_multithreaded): Renamed from
48932         glthread_rwlock_unlock. Return error code.
48933         (glthread_rwlock_destroy_multithreaded): Renamed from
48934         glthread_rwlock_destroy. Return error code.
48935         (glthread_recursive_lock_init_multithreaded): Renamed from
48936         glthread_recursive_lock_init. Return error code.
48937         (glthread_recursive_lock_lock_multithreaded): Renamed from
48938         glthread_recursive_lock_lock. Return error code.
48939         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48940         glthread_recursive_lock_unlock. Return error code.
48941         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48942         glthread_recursive_lock_destroy. Return error code.
48943         (glthread_once_call): Make static.
48944         (glthread_once_multithreaded): Renamed from glthread_once.
48945         * lib/tls.h: Include <errno.h>.
48946         (glthread_tls_key_init): New macro/function.
48947         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48948         (glthread_tls_set): New macro/function.
48949         (gl_tls_set): Define as wrapper around glthread_tls_set.
48950         (glthread_tls_key_destroy): New macro/function.
48951         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48952         Update function declarations.
48953         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48954         glthread_tls_get.
48955         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48956
48957 2008-08-04  Eric Blake  <ebb9@byu.net>
48958
48959         gnumakefile: use space, not TAB, outside of targets
48960         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48961
48962 2008-08-02  Jim Meyering  <meyering@redhat.com>
48963
48964         getdate.y: avoid locale-dependent date parsing failure
48965         In Turkish locales, getdate would fail to recognize keywords
48966         containing a lowercase "i".  The solution is not to rely on
48967         locale-sensitive case-conversion.
48968         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48969         (lookup_word): Use c_toupper in place of toupper.
48970         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48971         Reported by Vefa Bicakci <bicave@superonline.com> in
48972         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48973         * modules/getdate (Depends-on): Add c-ctype.
48974
48975 2008-08-02  Bruno Haible  <bruno@clisp.org>
48976
48977         * gnulib-tool (func_import): When updating or creating a .gitignore
48978         file, prepend each added line with a slash, and ignore leading slashes
48979         from the existing lines.
48980         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48981
48982 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48983
48984         Portability fix for GNU make 3.79.1.
48985         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48986         versions do not understand.
48987
48988 2008-08-01  Bruno Haible  <bruno@clisp.org>
48989
48990         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48991         * tests/test-isnanf.h (zero): New variable.
48992         (main): Avoid literal -0.0f.
48993         * tests/test-isnand.h (zero): New variable.
48994         (main): Avoid literal -0.0.
48995         * tests/test-isnanl.h (zero): New variable.
48996         (main): Avoid literal -0.0L.
48997         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48998         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48999         -0.0, -0.0L.
49000         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49001         (test_signbitd): Avoid literal -0.0.
49002         (test_signbitl): Avoid literal -0.0L.
49003         * tests/test-ceilf1.c (zero): New variable.
49004         (main): Avoid literal -0.0f.
49005         * tests/test-ceill.c (zero): New variable.
49006         (main): Avoid literal -0.0L.
49007         * tests/test-floorf1.c (zero): New variable.
49008         (main): Avoid literal -0.0f.
49009         * tests/test-floorl.c (zero): New variable.
49010         (main): Avoid literal -0.0L.
49011         * tests/test-roundf1.c (zero): New variable.
49012         (main): Avoid literal -0.0f.
49013         * tests/test-round1.c (zero): New variable.
49014         (main): Avoid literal -0.0.
49015         * tests/test-roundl.c (zero): New variable.
49016         (main): Avoid literal -0.0L.
49017         * tests/test-truncf1.c (zero): New variable.
49018         (main): Avoid literal -0.0f.
49019         * tests/test-trunc1.c (zero): New variable.
49020         (main): Avoid literal -0.0.
49021         * tests/test-truncl.c (zero): New variable.
49022         (main): Avoid literal -0.0L.
49023         * tests/test-frexp.c (zero): New variable.
49024         (main): Avoid literal -0.0.
49025         * tests/test-frexpl.c (zero): New variable.
49026         (main): Avoid literal -0.0L.
49027         * tests/test-ldexpl.c (zero): New variable.
49028         (main): Avoid literal -0.0L.
49029         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49030         (zerod, zerol): New variables.
49031         (test_function): Avoid literals -0.0, -0.0L.
49032         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49033         (zerod, zerol): New variables.
49034         (test_function): Avoid literals -0.0, -0.0L.
49035         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49036         (zerod, zerol): New variables.
49037         (test_function): Avoid literals -0.0, -0.0L.
49038         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49039         (zerod, zerol): New variables.
49040         (test_function): Avoid literals -0.0, -0.0L.
49041         * tests/test-strtod.c (zero): New variable.
49042         (main): Avoid literal -0.0.
49043         Reported by Jonathan C. Patschke <jp@centtech.com>.
49044
49045 2008-07-31  Jim Meyering  <meyering@redhat.com>
49046
49047         sha256.h: correct definition of SHA224_DIGEST_SIZE
49048         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49049         Reported by Paulie Pena IV <paulie4@gmail.com>.
49050         Define as 224 / 8, rather than as a literal.
49051         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49052         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49053         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49054
49055 2008-07-31  Bruno Haible  <bruno@clisp.org>
49056
49057         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49058         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49059         Reported by Jonathan Patschke <jp@centtech.com>.
49060
49061 2008-07-31  Bruno Haible  <bruno@clisp.org>
49062
49063         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49064         Reported by Paolo Bonzini <bonzini@gnu.org>.
49065
49066 2008-07-30  Eric Blake  <ebb9@byu.net>
49067
49068         test-strtod: allow compilation without -lm
49069         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49070         Reported by Dennis Clarke <blastwave@gmail.com>.
49071
49072 2008-07-28  Jim Meyering  <meyering@redhat.com>
49073
49074         bootstrap: work also when there are no .po files in po/
49075         * build-aux/bootstrap (update_po_files): Complete the change
49076         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49077
49078 2008-07-27  Jim Meyering  <meyering@redhat.com>
49079
49080         * users.txt: Add zile.
49081
49082 2008-07-26  Ben Pfaff  <blp@gnu.org>
49083
49084         Add missing dependencies on new m4/exponent[fdl].m4 files.
49085         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49086         * modules/isnand-nolibm: Add m4/exponentd.m4.
49087         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49088         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49089         m4/isnan[fdl].m4, because the macros actually used moved.
49090         Reported by Jim Meyering.
49091
49092 2008-07-14  Ben Pfaff  <blp@gnu.org>
49093
49094         Add isinf module.
49095         * lib/isinf.c: New file.
49096         * lib/math.in.h: Define isinf macro if we have decided to replace
49097         it.
49098         * m4/isinf.m4: New file.
49099         * m4/math_h.m4: Initialize and substitute variables for isinf
49100         module.
49101         * modules/isinf: New file.
49102         * modules/isinf-tests: New file.
49103         * modules/math: Add substitutions for new module.
49104         * tests/test-isinf.c: New file.
49105         * doc/posix-functions/isinf.texi: Mention new module.
49106         * MODULES.html.sh: Mention new module.
49107
49108 2008-07-14  Ben Pfaff  <blp@gnu.org>
49109
49110         Factor out some macros for use by additional modules.
49111         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49112         exponentf.m4.
49113         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49114         exponentd.m4.
49115         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49116         file exponentl.m4.
49117         * m4/exponentf.m4: New file.
49118         * m4/exponentd.m4: New file.
49119         * m4/exponentl.m4: New file.
49120         * modules/isnanf: Use new file m4/exponentf.m4.
49121         * modules/isnand: Use new file m4/exponentd.m4.
49122         * modules/isnanl: Use new file m4/exponentl.m4.
49123
49124 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49125
49126         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49127         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49128         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49129         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49130
49131         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49132         readlink on platforms without PATH_MAX.
49133
49134 2008-07-21  Eric Blake  <ebb9@byu.net>
49135
49136         Warn, not fail, on stale version.
49137         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49138
49139         Don't allow installation with stale devel version number.
49140         * top/GNUmakefile (_is-install-target): New macro.
49141         (_curr-ver): Forbid installation with stale version number.
49142
49143 2008-07-20  Bruno Haible  <bruno@clisp.org>
49144
49145         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49146         TESTS_ENVIRONMENT.
49147         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49148
49149 2008-07-20  Bruno Haible  <bruno@clisp.org>
49150
49151         * lib/c-stack.h (c_stack_action): Add documentation.
49152         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49153
49154 2008-07-20  Bruno Haible  <bruno@clisp.org>
49155
49156         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49157         * modules/readlink (License): Likewise.
49158
49159 2008-07-17  Eric Blake  <ebb9@byu.net>
49160
49161         * modules/c-stack (Link): Fix typo.
49162
49163         Make c-stack use libsigsegv, when available.
49164         * modules/c-stack (Depends-on): Add libsigsegv.
49165         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49166         needed.
49167         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49168         (segv_handler, overflow_handler, c_stack_action)
49169         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49170         implementation when libsigsegv is available, but only when using
49171         the library is necessary.
49172         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49173         comment, explaining why XSI check fails on Linux.
49174         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49175         * tests/test-c-stack2.sh: Tweak skip message.
49176         * NEWS: Document new link-time requirements.
49177
49178 2008-07-16  Eric Blake  <ebb9@byu.net>
49179
49180         c-stack: Expose false positives when not using libsigsegv.
49181         * modules/c-stack-tests (Files): Expand test.
49182         * tests/test-c-stack.c (main): Add means to conditionally trigger
49183         non-overflow SIGSEGV.
49184         * tests/test-c-stack2.sh: New file.
49185
49186 2008-07-14  Bruno Haible  <bruno@clisp.org>
49187
49188         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49189         Reported by Eric Blake.
49190
49191 2008-07-14  Sam Steingold  <sds@gnu.org>
49192             Bruno Haible  <bruno@clisp.org>
49193
49194         New module libsigsegv.
49195         * modules/libsigsegv: New file.
49196         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49197         modifications.
49198         * MODULES.html.sh (Signal handling): New section.
49199
49200 2008-07-14  Bruno Haible  <bruno@clisp.org>
49201
49202         * modules/unictype/ctype-* (Description): Add the word "function".
49203         Improves the resulting doc in MODULES.html.
49204
49205 2008-07-12  Ben Pfaff  <blp@gnu.org>
49206
49207         Add longlong module.
49208         * modules/longlong: New file.
49209
49210 2008-07-12  Bruno Haible  <bruno@clisp.org>
49211
49212         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49213         to empty.
49214
49215 2008-07-10  Ben Pfaff  <blp@gnu.org>
49216
49217         Add isnan module.
49218         * doc/posix-functions/isnan.texi: Mention new module.
49219         * lib/math.in.h: Define isnan macro if we have decided to replace
49220         it.
49221         * m4/isnan.m4: New file.
49222         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49223         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49224         also.
49225         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49226         redundancy.
49227         * m4/math_h.m4: Initialize and substitute variables for isnan
49228         module.
49229         * modules/isnan: New file.
49230         * modules/isnan-tests: New file.
49231         * modules/math: Add substitutions for new module.
49232         * tests/test-isnan.c: New file.
49233         * MODULES.html.sh: Mention new module.
49234
49235 2008-07-10  Ben Pfaff  <blp@gnu.org>
49236
49237         Add isnanf module.
49238         * lib/isnanf.m4: New file.
49239         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49240         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49241         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49242         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49243         * modules/isnanf: New file.
49244         * modules/isnanf-tests: New file.
49245         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49246         files.
49247         * tests/test-isnanf-nolibm.c: factored most of its contents into
49248         new file tests/test-isnanf.h.
49249         * tests/test-isnanf.h: New file.
49250         * tests/test-isnanf.c: New file.
49251         * MODULES.html.sh: Mention new module.
49252         * doc/glibc-functions/isnanf.texi: Mention new module.
49253
49254 2008-07-10  Ben Pfaff  <blp@gnu.org>
49255
49256         Add isnand module.
49257         * lib/isnand.h: New file.
49258         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49259         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49260         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49261         functionality also.
49262         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49263         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49264         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49265         * modules/isnand: New file.
49266         * modules/isnand-tests: New file.
49267         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49268         files.
49269         * tests/test-isnand-nolibm.c: factored most of its contents into
49270         new file tests/test-isnand.h.
49271         * tests/test-isnand.h: New file.
49272         * tests/test-isnand.c: New file.
49273         * MODULES.html.sh: Mention new module.
49274
49275 2008-07-10  Ben Pfaff  <blp@gnu.org>
49276
49277         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49278         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49279         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49280         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49281         * modules/isnanf-nolibm: Update references to renamed files.
49282         * modules/isnand-nolibm: Likewise.
49283         * modules/isnanf-nolibm-tests: Likewise.
49284         * modules/isnand-nolibm-tests: Likewise.
49285         * lib/frexp.c: Likewise.
49286         * lib/isfinite.c: Likewise.
49287         * lib/signbitd.c: Likewise.
49288         * lib/signbitf.c: Likewise.
49289         * lib/vasnprintf.c: Likewise.
49290         * tests/test-ceilf1.c: Likewise.
49291         * tests/test-ceilf2.c: Likewise.
49292         * tests/test-floorf1.c: Likewise.
49293         * tests/test-floorf2.c: Likewise.
49294         * tests/test-frexp.c: Likewise.
49295         * tests/test-round1.c: Likewise.
49296         * tests/test-round2.c: Likewise.
49297         * tests/test-roundf1.c: Likewise.
49298         * tests/test-strtod.c: Likewise.
49299         * tests/test-trunc1.c: Likewise.
49300         * tests/test-trunc2.c: Likewise.
49301         * tests/test-truncf1.c: Likewise.
49302         * tests/test-truncf2.c: Likewise.
49303         * NEWS: Mention the renamed header files.
49304
49305 2008-07-11  Jim Meyering  <meyering@redhat.com>
49306
49307         vc-list-files: make the last-resort awk code more portable
49308         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49309         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49310         does not support it.
49311
49312 2008-07-10  Eric Blake  <ebb9@byu.net>
49313
49314         Work with tar's bootstrap.
49315         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49316         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49317         an m4 comment.
49318
49319 2008-07-09  Jim Meyering  <meyering@redhat.com>
49320
49321         posix-shell.m4: fix typo that made this test malfunction
49322         * m4/posix-shell.m4: Remove capitalization in variable name.
49323
49324 2008-07-08  Bruno Haible  <bruno@clisp.org>
49325
49326         * m4/onceonly.m4: Update comments.
49327         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49328
49329 2008-07-04  Jim Meyering  <meyering@redhat.com>
49330
49331         * users.txt: Add vc-dwim.
49332         (bison, coreutils): Use the gitweb URL.
49333
49334 2008-07-03  Jim Meyering  <meyering@redhat.com>
49335
49336         * users.txt: Add libffcall.  From Sam Steingold.
49337
49338 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
49339
49340         getdate.y: do not ignore TZ with relative day, month or year offset
49341         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49342         relative-date-handling, since otherwise, the latter would clobber the
49343         sole output (an updated Start value) of the tz-handling block.
49344         * tests/test-getdate.c: Tests for the fix
49345
49346 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49347
49348         Recognize 'foo_LIBRARIES += libgnu.a'.
49349         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49350         makefile snippet has already specified an installation location,
49351         also using '+='.
49352
49353 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
49354
49355         getdate.y: factor out common actions
49356         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49357         Use them in place of open-coded actions.
49358
49359 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49360
49361         Add self-test for getdate module.
49362         * modules/getdate-tests: New file.
49363         * tests/test-getdate.c: New file.
49364
49365 2008-06-29  Bruno Haible  <bruno@clisp.org>
49366
49367         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49368         .gitignore.
49369         Reported by Sylvain Beucler <beuc@beuc.net>.
49370
49371 2008-06-29  Bruno Haible  <bruno@clisp.org>
49372
49373         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49374         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49375
49376 2008-06-29  Bruno Haible  <bruno@clisp.org>
49377
49378         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49379         EXTRA_DIST.
49380         Reported by Sylvain Beucler <beuc@beuc.net>.
49381
49382 2008-06-26  Jim Meyering  <meyering@redhat.com>
49383
49384         make several modules depend on the "open" module
49385         This provides slightly increased consistency when opening-for-write
49386         the name of a non-directory spelled with a trailing slash.
49387         * modules/chdir-safer: Likewise.
49388         * modules/chown: Likewise.
49389         * modules/clean-temp: Likewise.
49390         * modules/copy-file: Likewise.
49391         * modules/fchdir: Likewise.
49392         * modules/fcntl-safer: Likewise.
49393         * modules/pipe: Likewise.
49394         * modules/utime: Likewise.
49395         Prompted by Eric Blake and Bruno Haible.
49396
49397 2008-06-24  Andreas Schwab  <schwab@suse.de>
49398
49399         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49400         literals can be used as initializers for global variables.
49401
49402 2008-06-23  Eric Blake  <ebb9@byu.net>
49403
49404         Make gnulib-cache.m4 easier to diff.
49405         * gnulib-tool (func_import): Allow newlines when reading cached
49406         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49407
49408 2008-06-23  Bruno Haible  <bruno@clisp.org>
49409
49410         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49411         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49412         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49413         m4/signalblocking.m4.
49414         (gl_PREREQ_SIGACTION): Don't invoke it.
49415         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49416         gl_PREREQ_SIG_HANDLER_H.
49417         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49418         Don't check for sigaction here.
49419
49420 2008-06-23  Bruno Haible  <bruno@clisp.org>
49421
49422         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49423         (install_handlers): Don't set the SA_RESETHAND flag.
49424
49425 2008-06-23  Bruno Haible  <bruno@clisp.org>
49426
49427         * m4/sigaction.m4: Comment fixes.
49428         * lib/signal.in.h: Likewise.
49429
49430 2008-06-23  Eric Blake  <ebb9@byu.net>
49431
49432         Fix typo.
49433         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49434
49435         Avoid SA_ namespace.
49436         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49437         Reported by Ralf Wildenhues.
49438
49439         Avoid test failure due to SA_RESTORER.
49440         * tests/test-sigaction.c (SA_MASK): New macro.
49441         (main): Avoid failing due to extension flags being set.
49442         Reported by Jim Meyering.
49443
49444         Revert use of sig-handler.h in sigprocmask.c.
49445         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49446         it requires the existence of struct sigaction.
49447         * lib/sigprocmask.c (handler_t): Restore typedef.
49448         (rpl_signal, old_handlers): Use local type.
49449
49450 2008-06-22  Bruno Haible  <bruno@clisp.org>
49451
49452         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49453         conditionally.
49454         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49455
49456 2008-06-22  Bruno Haible  <bruno@clisp.org>
49457
49458         * doc/posix-functions/siginterrupt.texi: Move note.
49459
49460         * lib/signal.in.h (SA_RESTART): New macro.
49461         * lib/sigaction.c: Update comment.
49462
49463         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49464
49465         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49466         (gl_PREREQ_SIGPROCMASK): Invoke it.
49467         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49468
49469         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49470
49471         * lib/sigprocmask.c: Update a comment.
49472
49473 2008-06-21  Eric Blake  <ebb9@byu.net>
49474
49475         Use sigaction module rather than signal().
49476         * modules/c-stack (Depends-on): Add sigaction.
49477         * modules/fatal-signal (Depends-on): Likewise.
49478         * modules/nanosleep (Depends-on): Likewise.
49479         * modules/sigprocmask (Files): Add sig-handler.h.
49480         * modules/sigaction (Files): Likewise.
49481         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49482         Eggert.
49483         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49484         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49485         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49486         (init_fatal_signals): Likewise.
49487         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49488         (siginterrupt): Delete fallback.
49489         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49490         instead.
49491         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49492         siginterrupt.
49493
49494         New module sigaction, for mingw.
49495         * modules/sigaction: New module...
49496         * modules/sigaction-tests: ...and its test.
49497         * m4/sigaction.m4: New file.
49498         * lib/sigaction.c: Likewise.
49499         * tests/test-sigaction.c: Likewise.
49500         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49501         * modules/signal (Makefile.am): Likewise.
49502         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49503         needed.
49504         * doc/posix-headers/signal.texi (signal.h): Mention provided
49505         types.
49506         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49507         that sigaction is preferable.
49508         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49509         module.
49510         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49511         sigaction.
49512
49513         Improve robustness of sigprocmask by overriding signal.
49514         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49515         is in use.
49516         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49517         (SIGKILL, SIGSTOP): Provide fallbacks.
49518         (rpl_signal): Implement.
49519         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49520         signal can be called inside handlers.
49521
49522         Fix nanosleep module on mingw.
49523         * modules/nanosleep (Depends-on): Add sys_select.
49524         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49525
49526         Fix licensing of sigprocmask.
49527         * modules/raise (License): Relicense as LGPL.
49528
49529 2008-06-21  Bruno Haible  <bruno@clisp.org>
49530
49531         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49532         result if it contains question marks.
49533         Reported by Michael Geng <linux@michaelgeng.de>.
49534
49535 2008-06-19  Bruno Haible  <bruno@clisp.org>
49536
49537         Fix CVS-ism.
49538         * doc/gnulib.texi: Include updated-stamp.texi.
49539         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49540         (updated-stamp.texi): New rule.
49541         (gnulib.info): Depend on it.
49542         * doc/.gitignore: Add updated-stamp.texi.
49543         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49544
49545 2008-06-19  Bruno Haible  <bruno@clisp.org>
49546
49547         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49548         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49549
49550 2008-06-19  Eric Blake  <ebb9@byu.net>
49551
49552         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49553         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49554         Reported by Stepan Kasal.
49555
49556 2008-06-18  Bruno Haible  <bruno@clisp.org>
49557
49558         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49559         Reported by Eric Blake.
49560
49561 2008-06-18  Eric Blake  <ebb9@byu.net>
49562
49563         Work around cygwin 1.5.25 strsignal bug.
49564         * tests/test-strsignal.c: Allow for const char *.
49565         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49566
49567 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49568
49569         * users.txt: Update URL to article and add author/date
49570         information.
49571
49572 2008-06-17  Bruno Haible  <bruno@clisp.org>
49573
49574         New macro gl_DISABLE_THREADS.
49575         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49576         if the user did not pass --enable-threads or --disable-threads option.
49577         (gl_DISABLE_THREADS): New macro.
49578         Reported by Eric Blake <ebb9@byu.net>.
49579
49580 2008-06-17  Bruno Haible  <bruno@clisp.org>
49581
49582         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49583         when the macro ignores it.
49584         Based on a patch by Eric Blake <ebb9@byu.net>.
49585
49586 2008-06-17  Bruno Haible  <bruno@clisp.org>
49587
49588         * modules/tls (License): Change to LGPLv2+.
49589         Reported by Eric Blake.
49590
49591 2008-06-17  Eric Blake  <ebb9@byu.net>
49592
49593         Simplify c-stack prerequisites.
49594         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49595         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49596         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49597         check.
49598         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49599         <sys/resource.h>.
49600
49601         Move c-stack test into testsuite.
49602         * modules/c-stack-tests: New file.
49603         * lib/c-stack.c [DEBUG]: Move test program...
49604         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49605         fail test if sigaltstack is lacking.
49606         * tests/test-c-stack.sh: New driver file.
49607
49608 2008-06-16  Eric Blake  <ebb9@byu.net>
49609
49610         Use raise module consistently.
49611         * modules/fatal-signal (Depends-on): Add raise.
49612         * modules/sigprocmask (Depends-on): Likewise.
49613         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49614         * lib/sigprocmask.c (sigprocmask): Likewise.
49615         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49616         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49617
49618         Fix compliance bug in sigpending.
49619         * lib/sigprocmask.c (sigpending): Return pending array via
49620         parameter, not return value.
49621
49622 2008-06-14  Eric Blake  <ebb9@byu.net>
49623
49624         Improve obstack-printf test code.
49625         * tests/test-obstack-printf.c (test_function): Fix comment, and
49626         simplify usage of obstack_* in macros.  Add a test for coverage.
49627         Reported by Bruno Haible.
49628
49629 2008-06-14  Bruno Haible  <bruno@clisp.org>
49630
49631         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49632         array size as a constant, not as a const variable.
49633         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49634         AC_USE_SYSTEM_EXTENSIONS.
49635         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49636         Test whether the obstack_printf function actually exists.
49637         * modules/obstack-printf (Depends-on): Add extensions.
49638         (Include): Remove obstack.h.
49639         * modules/obstack-printf-posix (Depends-on): Add extensions.
49640         (Include): Remove obstack.h.
49641
49642 2008-06-13  Eric Blake  <ebb9@byu.net>
49643
49644         Add obstack-printf and obstack-printf-posix modules.
49645         * modules/obstack-printf: New file.
49646         * modules/obstack-printf-posix: Likewise.
49647         * MODULES.html.sh (Misc): Mention them.
49648         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49649         Likewise.
49650         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49651         Likewise.
49652         * modules/stdio (Makefile.am): Accomodate new modules.
49653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49654         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49655         Declare.
49656         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49657         functions.
49658         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49659         (gl_REPLACE_OBSTACK_PRINTF): New macros
49660         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49661         * tests/test-obstack-printf.c: New file.
49662         * modules/obstack-printf-tests: Likewise.
49663         * modules/obstack-printf-posix-tests: Likewise.
49664
49665 2008-06-11  Bruno Haible  <bruno@clisp.org>
49666
49667         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49668         * lib/open.c: Include errno.h.
49669         (open): Fail when attempting to write to a file that has a trailing
49670         slash.
49671         * tests/test-open.c (main): Test against trailing slash bug.
49672         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49673
49674 2008-06-10  Bruno Haible  <bruno@clisp.org>
49675
49676         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49677         for $? to work inside the trap command, with various /bin/sh-s.
49678         * tests/test-vc-list-files-cvs.sh: Likewise.
49679
49680 2008-06-10  Bruno Haible  <bruno@clisp.org>
49681
49682         * lib/acl-internal.h: Don't include gettext.h here.
49683         * lib/set-mode-acl.c: Include gettext.h here.
49684         * lib/copy-acl.c: Likewise.
49685
49686 2008-06-10  Bruno Haible  <bruno@clisp.org>
49687
49688         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49689         * lib/wait-process.c (wait_subprocess): Likewise.
49690         * lib/execute.h (execute): Add termsigp argument.
49691         * lib/execute.c (execute): Likewise.
49692         * lib/csharpcomp.c (compile_csharp_using_pnet,
49693         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49694         * lib/csharpexec.c (execute_csharp_using_pnet,
49695         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49696         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49697         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49698         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49699         is_jikes_present): Update.
49700         * lib/javaexec.c (execute_java_class): Update.
49701         * lib/javaversion.c (execute_and_read_line): Update.
49702         * NEWS: Document the changes.
49703         Reported by Eric Blake.
49704
49705 2008-06-10  Eric Blake  <ebb9@byu.net>
49706
49707         Add missing include.
49708         * tests/test-strstr.c (includes): Add <signal.h>.
49709         * tests/test-strcasestr.c (includes): Likewise.
49710         * tests/test-memmem.c (includes): Likewise.
49711
49712 2008-06-10  Bruno Haible  <bruno@clisp.org>
49713
49714         * lib/wait-process.c (wait_subprocess): Add an assertion.
49715
49716 2008-06-10  Bruno Haible  <bruno@clisp.org>
49717
49718         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49719
49720 2008-06-10  Bruno Haible  <bruno@clisp.org>
49721
49722         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49723         using alarm().
49724         * tests/test-strcasestr.c (main): Likewise.
49725         * tests/test-strstr.c (main): Likewise.
49726
49727 2008-06-09  Bruno Haible  <bruno@clisp.org>
49728
49729         Work around the Solaris 10 ACE ACLs ABI change.
49730         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49731         declare if ACL_NO_TRIVIAL is present.
49732         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49733         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49734         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49735         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49736         define if ACL_NO_TRIVIAL is present.
49737         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49738         and use the current ABI.
49739         (file_has_acl): Use same #if condition as elsewhere.
49740         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49741         in use, and use the current ABI.
49742         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49743         Reported by Jim Meyering.
49744
49745 2008-06-09  Eric Blake  <ebb9@byu.net>
49746
49747         Work around environments that (stupidly) ignore SIGALRM.
49748         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49749         before using alarm().
49750         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49751         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49752         Reported by Ian Beckwith <ianb@erislabs.net>.
49753
49754         Produce autobuild blurb earlier in log.
49755         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49756
49757 2008-06-09  Jim Meyering  <meyering@redhat.com>
49758         and Ondřej Vašík  <ovasik@redhat.com>
49759
49760         utimens.c: correct kernel bug work-around
49761         Ondřej Vašík found that the invalid return value of 280 indicates
49762         failure, not success, and the kernel bug we're trying to work
49763         around affects not just the utimensat call, but also the fallback
49764         futimens call.
49765         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49766         not success.
49767         [HAVE_FUTIMENS]: Use the same work-around, here.
49768
49769 2008-06-09  Jim Meyering  <meyering@redhat.com>
49770
49771         add more guards around definition of ACE_-related code
49772         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49773         ALLOW and ACE_OWNER are also defined.
49774
49775 2008-06-08  Bruno Haible  <bruno@clisp.org>
49776
49777         * lib/acl-internal.h: Add me as co-author.
49778         * lib/file-has-acl.c: Likewise.
49779         * lib/set-mode-acl.c: Likewise.
49780         * lib/copy-acl.c: Likewise.
49781
49782 2008-06-08  Bruno Haible  <bruno@clisp.org>
49783
49784         Add support for AIX ACLs.
49785         * lib/acl-internal.h (acl_nontrivial): New declaration.
49786         * lib/file-has-acl.c (acl_nontrivial): New function.
49787         (file_has_acl): Add implementation using AIX 4 ACL API.
49788         * lib/set-mode-acl.c (qset_acl): Likewise.
49789         * lib/copy-acl.c (qcopy_acl): Likewise.
49790
49791 2008-06-08  Bruno Haible  <bruno@clisp.org>
49792
49793         Add support for HP-UX ACLs.
49794         * lib/acl-internal.h (acl_nontrivial): New declaration.
49795         * lib/file-has-acl.c (acl_nontrivial): New function.
49796         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49797         * lib/set-mode-acl.c (qset_acl): Likewise.
49798         * lib/copy-acl.c (qcopy_acl): Likewise.
49799
49800 2008-06-08  Bruno Haible  <bruno@clisp.org>
49801
49802         Add support for Cygwin ACLs.
49803         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49804         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49805         the chmod_or_fchmod call.
49806         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49807
49808 2008-06-08  Bruno Haible  <bruno@clisp.org>
49809
49810         Fix bug with setuid modes in Solaris 10+ code.
49811         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49812         succeeded, when the mode contains some special bits.
49813
49814 2008-06-08  Bruno Haible  <bruno@clisp.org>
49815
49816         Add support for Solaris 7..10 ACLs.
49817         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49818         declarations.
49819         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49820         functions.
49821         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49822         * lib/set-mode-acl.c (qset_acl): Likewise.
49823         * lib/copy-acl.c (qcopy_acl): Likewise.
49824
49825 2008-06-08  Bruno Haible  <bruno@clisp.org>
49826
49827         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49828         declaration.
49829         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49830         (acl_access_nontrivial): Remove MacOS X case.
49831         (file_has_acl): Use acl_extended_nontrivial.
49832         * lib/copy-acl.c (qcopy_acl): Likewise.
49833
49834 2008-06-08  Bruno Haible  <bruno@clisp.org>
49835
49836         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49837
49838 2008-06-08  Jim Meyering  <meyering@redhat.com>
49839
49840         * modules/acl (Maintainer): Add Bruno Haible.
49841
49842 2008-06-07  Bruno Haible  <bruno@clisp.org>
49843
49844         Improve support for Tru64 ACLs.
49845         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49846         ACL on OSF/1.
49847
49848 2008-06-07  Bruno Haible  <bruno@clisp.org>
49849
49850         Add support for MacOS X ACLs.
49851         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49852         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49853         * lib/set-mode-acl.c (qset_acl): Likewise.
49854         * lib/copy-acl.c (qcopy_acl): Likewise.
49855
49856 2008-06-07  Bruno Haible  <bruno@clisp.org>
49857
49858         Fix memory leak introduced on 2008-05-22.
49859         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49860         use.
49861
49862 2008-06-07  Bruno Haible  <bruno@clisp.org>
49863
49864         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49865         to construct an empty ACL.
49866
49867 2008-06-07  Bruno Haible  <bruno@clisp.org>
49868
49869         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49870         precisely.
49871         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49872
49873 2008-06-07  Bruno Haible  <bruno@clisp.org>
49874
49875         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49876         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49877
49878 2008-06-07  Bruno Haible  <bruno@clisp.org>
49879
49880         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49881         regardless of POSIX.
49882         * doc/posix-functions/_longjmp.texi: Likewise.
49883         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49884         SystemV platform in this case.
49885
49886 2008-06-06  Eric Blake  <ebb9@byu.net>
49887
49888         Document abort() bugs.
49889         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49890
49891         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49892         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49893         sigsetjmp.
49894         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49895         siglongjmp, but only as a macro.
49896         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49897         is obsolete.
49898         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49899
49900         Tweak documentation to cover cygwin argz bugs.
49901         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49902         argz bug fix; no code change needed since no cygwin releases
49903         occurred between the last fix and the bug being tested.
49904         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49905         module and recently fixed cygwin bugs.
49906         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49907         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49908         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49909         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49910         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49911         Likewise.
49912         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49913         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49914         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49915         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49916         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49917         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49918         Likewise.
49919
49920         Avoid gcc warning on cygwin.
49921         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49922         !ACL_NO_TRIVIAL]: Avoid unused variable.
49923
49924 2008-06-05  Eric Blake  <ebb9@byu.net>
49925
49926         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49927         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49928         git-version-gen fails to come up with a version.
49929         Reported by Simon Josefsson.
49930
49931 2008-06-05  Jim Meyering  <meyering@redhat.com>
49932             Paul Eggert  <eggert@cs.ucla.edu>
49933
49934         utimens.c: work around a probable Linux kernel bug
49935         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49936         appears to be a kernel bug that causes utimensat to return 280
49937         instead of 0, indicating success.
49938
49939 2008-06-04  Bruno Haible  <bruno@clisp.org>
49940
49941         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49942         2008-06-01 commit.
49943
49944 2008-06-04  Bruno Haible  <bruno@clisp.org>
49945
49946         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49947         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49948         (file_has_acl): Use it. Save errno afterwards.
49949         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49950
49951 2008-06-03  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49954         draft code. Simplify #ifs.
49955         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49956         Put Solaris code after POSIX-draft code. Fix comments regarding
49957         Solaris 10, HP-UX. Mention Cygwin.
49958         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49959
49960 2008-06-03  Eric Blake  <ebb9@byu.net>
49961
49962         Provide fallback for older kernels.
49963         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49964         Provide runtime fallback if kernel lacks support.
49965         Reported by Mike Frysinger.
49966
49967 2008-06-02  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49970         it exists.
49971
49972 2008-06-02  Bruno Haible  <bruno@clisp.org>
49973
49974         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49975         * lib/copy-acl.c (qcopy_acl): Update comment.
49976
49977 2008-06-02  Bruno Haible  <bruno@clisp.org>
49978
49979         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49980         like ACL APIs.
49981
49982 2008-06-02  Bruno Haible  <bruno@clisp.org>
49983
49984         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49985         * tests/test-set-mode-acl.sh: Likewise.
49986         * tests/test-copy-acl.sh: Likewise.
49987         * tests/test-copy-file.sh: Likewise.
49988
49989 2008-06-02  Bruno Haible  <bruno@clisp.org>
49990
49991         * tests/test-file-has-acl.sh: Remove unused code.
49992
49993 2008-06-01  Bruno Haible  <bruno@clisp.org>
49994
49995         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49996         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49997         messages.
49998         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49999
50000 2008-06-01  Bruno Haible  <bruno@clisp.org>
50001
50002         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50003         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50004         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50005         APIs.
50006         * modules/acl-tests (configure.ac): Remove tests now contained in
50007         m4/acl.m4.
50008
50009 2008-06-02  Jim Meyering  <meyering@redhat.com>
50010
50011         announce-gen: use a better key-server host name
50012         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50013         it may be more consistently reliable.  Suggested by Werner Koch
50014         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50015
50016 2008-06-01  Bruno Haible  <bruno@clisp.org>
50017
50018         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50019         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50020
50021 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50022
50023         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50024
50025 2008-06-01  Bruno Haible  <bruno@clisp.org>
50026
50027         New ACL tests.
50028         * tests/test-file-has-acl.sh: New file.
50029         * tests/test-file-has-acl.c: New file.
50030         * tests/test-set-mode-acl.sh: New file.
50031         * tests/test-set-mode-acl.c: New file.
50032         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50033         * tests/test-copy-acl.c: New file.
50034         * modules/acl-tests: New file, based on modules/copy-file-tests.
50035         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50036         (Depends-on): Add acl-tests.
50037         (configure.ac): Remove checks.
50038         (Makefile.am): Don't create test-sameacls program here any more.
50039
50040 2008-06-01  Bruno Haible  <bruno@clisp.org>
50041
50042         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50043         * tests/test-sameacls.c: Include progname.h.
50044         (main): Invoke set_program_name. Portability fixes for MacOS X,
50045         Solaris, HP-UX.
50046
50047 2008-06-01  Bruno Haible  <bruno@clisp.org>
50048
50049         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50050         function.
50051         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50052
50053 2008-06-01  Bruno Haible  <bruno@clisp.org>
50054
50055         * modules/rpmatch (Depends-on): Add strdup.
50056
50057 2008-06-01  Bruno Haible  <bruno@clisp.org>
50058
50059         * lib/pipe.c: Include unistd-safer.h.
50060         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50061         * modules/pipe (Depends-on): Add unistd-safer.
50062
50063 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50064
50065         * modules/autobuild (configure.ac): Call AB_INIT.
50066
50067 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50068
50069         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50070         Suggested by Bruno Haible <bruno@clisp.org>.
50071
50072 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50073
50074         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50075         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50076         <bruno@clisp.org>.
50077
50078 2008-05-29  Eric Blake  <ebb9@byu.net>
50079
50080         Prefer new POSIX 200x interfaces over futimesat.
50081         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50082         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50083         when available.
50084         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50085
50086 2008-05-28  Bruno Haible  <bruno@clisp.org>
50087
50088         * modules/stpcpy (License): Change to LGPLv2+.
50089         Requested by David Lutterkort <dlutter@redhat.com>.
50090
50091 2008-05-27  Bruno Haible  <bruno@clisp.org>
50092
50093         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50094         current mingw.
50095         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50096
50097 2008-05-27  Bruno Haible  <bruno@clisp.org>
50098
50099         * modules/iconv_open (Link): New section, from module 'iconv'.
50100         * modules/striconv (Link): Likewise.
50101         * modules/striconveh (Link): Likewise.
50102         * modules/xstriconv (Link): Likewise.
50103         * modules/unicodeio (Link): Likewise.
50104         * modules/propername (Link): Likewise.
50105         Reported by Jim Meyering.
50106
50107 2008-05-26  Jim Meyering  <meyering@redhat.com>
50108
50109         sha256: do not artificially restrict buffer length to be < 2^32
50110         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50111         uint32_t to size_t.
50112         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50113         to match.
50114
50115         avoid unaligned access errors, e.g., on sparc
50116         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50117         direct access through a possibly-unaligned uint64* pointer.
50118         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50119         direct access through a possibly-unaligned uint32* pointer.
50120         Prompted by this patch from Tom "spot" Callaway:
50121         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50122
50123         sha512.c: fix typo in comment
50124         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50125
50126 2008-05-25  Bruno Haible  <bruno@clisp.org>
50127
50128         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50129         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50130         (Makefile.am): Update lib_SOURCES.
50131
50132 2008-05-25  Bruno Haible  <bruno@clisp.org>
50133
50134         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50135
50136 2008-05-25  Jim Meyering  <meyering@redhat.com>
50137
50138         useless-if-before-free: freed expr may have white-space differences
50139         * build-aux/useless-if-before-free: Recognize cases in which the
50140         freed expression differs from the tested one in embedded white
50141         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50142         $1 was used, so we can't make any regexp shy.  Improved tests now
50143         detect this.
50144
50145         useless-if-before-free: accept white space in the expression.
50146         * build-aux/useless-if-before-free: For now, any white space
50147         in the expression must be identical in the free argument.
50148
50149         useless-if-before-free: efficiency tweak
50150         * build-aux/useless-if-before-free: Make the expression-matching
50151         regexp "shy".
50152         Make the *outer* regexp shy, not the expr-matching one.
50153
50154         update code-in-comment to accept cast of free arg
50155         * build-aux/useless-if-before-free: Update regexp.
50156
50157 2008-05-25  Bruno Haible  <bruno@clisp.org>
50158
50159         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50160         * modules/copy-file-tests (Files, Makefile.am): Update.
50161         * tests/test-copy-file.c (func_test_copy): Update.
50162
50163 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50164
50165         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50166
50167 2008-05-23  Bruno Haible  <bruno@clisp.org>
50168
50169         Improve support for ACLs on OSF/1.
50170         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50171         Remove fallback for unknown flavors of ACLs.
50172
50173 2008-05-22  Bruno Haible  <bruno@clisp.org>
50174
50175         Add support for ACLs on OSF/1.
50176         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50177         replacements.
50178         (acl_free_text): New macro fallback.
50179         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50180         acl_free.
50181         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50182         acl_free_text function. Require AC_C_INLINE.
50183
50184 2008-05-22  Bruno Haible  <bruno@clisp.org>
50185
50186         Make copy_acl work on MacOS X 10.5.
50187         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50188         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50189         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50190         If MODE_INSIDE_ACL, don't assume that every system has the same text
50191         representation for ACLs as FreeBSD.
50192         * lib/copy-acl.c (copy_acl): Add support for platforms with
50193         !MODE_INSIDE_ACL.
50194         * lib/file-has-acl.c (file_has_acl): Likewise.
50195         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50196         FreeBSD, MacOS X, or IRIX, respectively.
50197
50198 2008-05-22  Bruno Haible  <bruno@clisp.org>
50199
50200         * lib/acl.h: Don't include <sys/acl.h>.
50201         (GETACLCNT): Move fallback to lib/acl-internal.h.
50202         * lib/acl-internal.h: Include <sys/acl.h> here.
50203         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50204
50205 2008-05-22  Bruno Haible  <bruno@clisp.org>
50206
50207         Split off copy_acl function to separate file.
50208         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50209         * lib/acl.c (copy_acl): Moved function to separate file.
50210         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50211         * modules/acl (Files): Add lib/copy-acl.c.
50212         (Makefiles.am): Augment lib_SOURCES.
50213
50214 2008-05-22  Bruno Haible  <bruno@clisp.org>
50215
50216         * modules/copy-file-tests: New file.
50217         * tests/test-copy-file.sh: New file.
50218         * tests/test-copy-file.c: New file.
50219         * tests/test-copy-file-sameacls.c: New file.
50220
50221 2008-05-22  Eric Blake  <ebb9@byu.net>
50222
50223         Avoid gcc warning.
50224         * tests/test-memcmp.c (main): Pass NULL indirectly.
50225
50226 2008-05-21  Bruno Haible  <bruno@clisp.org>
50227
50228         Add reference doc about ACLs.
50229         * doc/acl-resources.txt: New file.
50230         * doc/acl-cygwin.txt: New file.
50231
50232 2008-05-21  Bruno Haible  <bruno@clisp.org>
50233
50234         Avoid one more warning from gcc.
50235         * lib/vasnprintf.c (IF_LINT): Update comments.
50236         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50237
50238 2008-05-21  Jim Meyering  <meyering@redhat.com>
50239
50240         avoid a warning from gcc
50241         * lib/vasnprintf.c (IF_LINT): Define.
50242         (scale10_round_decimal_long_double):
50243         Use it to avoid a "may be used uninitialized" warning.
50244         (scale10_round_decimal_double): Likewise.
50245
50246 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50247
50248         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50249         declared.
50250
50251 2008-05-20  Bruno Haible  <bruno@clisp.org>
50252
50253         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50254         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50255
50256 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50257
50258         * modules/memcmp-tests: New file.
50259         * tests/test-memcmp.c: New file.
50260
50261 2008-05-19  Bruno Haible  <bruno@clisp.org>
50262
50263         * modules/propername (Notice, configure.ac): Put quoted "..." into
50264         --keyword option.
50265         * lib/propername.h: Update comments accordingly.
50266         Reported by Eric Blake.
50267
50268 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50269
50270         * modules/getpass-gnu (Depends-on): Add fseeko.
50271
50272 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50273
50274         * modules/base64-tests: New file.
50275
50276 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50277
50278         * lib/base64.c (base64_decode_ctx): If a decode context structure
50279         was passed in use it to ignore newlines.  If a context structure
50280         was _not_ passed in, continue to treat newlines as garbage (this
50281         is the historical behavior).  Formerly base64_decode.
50282         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50283         takes a decode context structure.
50284         * lib/base64.h (base64_decode): Macro for four-argument calls.
50285         (base64_decode_alloc): Likewise.
50286         * lib/base64.c (base64_decode_ctx): If a decode context structure
50287         was passed in use it to ignore newlines.  If a context structure
50288         was _not_ passed in, continue to treat newlines as garbage (this
50289         is the historical behavior).  Formerly base64_decode.
50290         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50291         takes a decode context structure.
50292         * lib/base64.h (base64_decode): Macro for four-argument calls.
50293         (base64_decode_alloc): Likewise.
50294
50295 2008-05-19  Jim Meyering  <meyering@redhat.com>
50296
50297         avoid a warning from gcc
50298         * lib/trim.c (IF_LINT): Define.
50299         (trim2): Use it to avoid a "may be used uninitialized" warning.
50300
50301         Fix doc typo.
50302         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50303
50304 2008-05-19  Bruno Haible  <bruno@clisp.org>
50305
50306         * doc/glibc-functions/getpass.texi: Document limits of other
50307         implementations.
50308
50309 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50310             Bruno Haible <bruno@clisp.org>
50311
50312         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50313
50314 2008-05-18  Bruno Haible  <bruno@clisp.org>
50315
50316         * modules/propername: New file, from GNU gettext.
50317         * lib/propername.h: New file, from GNU gettext.
50318         * lib/propername.c: New file, from GNU gettext.
50319         * MODULES.html.sh (Internationalization functions): Add propername.
50320
50321 2008-05-16  Jim Meyering  <meyering@redhat.com>
50322             Bruno Haible  <bruno@clisp.org>
50323
50324         Avoid some warnings from "gcc -Wshadow".
50325         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50326
50327 2008-05-15  Eric Blake  <ebb9@byu.net>
50328
50329         Extend previous patch to cygwin 1.7.0.
50330         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50331         fast implementation in cygwin >= 1.7.0.
50332         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50333         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50334
50335 2008-05-15  Bruno Haible  <bruno@clisp.org>
50336
50337         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50338         implementation in glibc >= 2.9.
50339         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50340         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50341
50342 2008-05-15  Bruno Haible  <bruno@clisp.org>
50343
50344         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50345         (Unicode string functions): Add unilbrk/*.
50346         Reported by Karl Berry.
50347
50348 2008-05-15  Eric Blake  <ebb9@byu.net>
50349
50350         Fix violation of <stdbool.h> replacement in regex.
50351         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50352         * lib/regexec.c (re_search_internal): Likewise.
50353         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50354
50355 2008-05-15  Jim Meyering  <meyering@redhat.com>
50356
50357         avoid distracting test output when git or cvs is not found
50358         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50359         * tests/test-vc-list-files-git.sh: Likewise.
50360
50361 2008-05-15  Eric Blake  <ebb9@byu.net>
50362
50363         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50364         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50365         glibc version.
50366         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50367         * doc/posix-functions/strstr.texi (strstr): Likewise.
50368         * lib/str-two-way.h (MAX): Sychronize with glibc.
50369
50370 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50371
50372         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50373         opr.ctx_type.
50374         (calc_first): Initialize constraint field.
50375         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50376         Fix grammar.
50377         (duplicate_node): Merge constraint field for all node types.
50378         (calc_eclosure_iter): Look at constraint field for all node types.
50379         * lib/regex_internal.c (create_cd_newstate): Don't look at
50380         opr.ctx_type.
50381
50382 2008-05-14  Bruno Haible  <bruno@clisp.org>
50383
50384         Help GCC to do better code generation.
50385         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50386         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50387         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50388         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50389         Declare with attribute 'malloc' if supported.
50390
50391 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50392
50393         use "echo STR|wc -c" rather than unportable "expr length STR"
50394         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50395         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50396
50397 2008-05-14  Jim Meyering  <meyering@redhat.com>
50398
50399         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50400         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50401         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50402         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50403         via Collin Lasse.
50404
50405 2008-05-14  Eric Blake  <ebb9@byu.net>
50406
50407         Avoid quadratic growth in gl_LIBSOURCES.
50408         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50409         Suggested by Bruno Haible.
50410
50411         Test xmemdup0.
50412         * modules/xmemdup0-tests: New file.
50413         * tests/test-xmemdup0.c: Likewise.
50414
50415 2008-05-13  Eric Blake  <ebb9@byu.net>
50416
50417         Split xmemdup0 into its own module.
50418         * modules/xmemdup0: New file.
50419         * lib/xmemdup0.h: Likewise.
50420         * lib/xmemdup0.c: Likewise.
50421         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50422         * lib/xalloc.h (xmemdup0): Remove.
50423         * lib/xmalloc.c (xmemdup0): Likewise.
50424
50425 2008-05-13  Eric Blake  <ebb9@byu.net>
50426             Bruno Haible  <bruno@clisp.org>
50427
50428         Reduce number of forks required during autoconf.
50429         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50430         and gl_LIBSOURCES_DIR.
50431         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50432         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50433         m4_syscmd per file.
50434         <m4_foreach_w>: Move...
50435         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50436
50437 2008-05-13  Eric Blake  <ebb9@byu.net>
50438
50439         * gnulib-tool: Fix various comment typos.
50440
50441 2008-05-12  Bruno Haible  <bruno@clisp.org>
50442
50443         Tailor the linebreaking algorithm.
50444         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50445
50446 2008-05-12  Bruno Haible  <bruno@clisp.org>
50447
50448         Update to Unicode 5.0.0.
50449         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50450         LBP_JV, LBP_JT. Redistribute values.
50451         (unilbrk_table): Change size.
50452         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50453         Unicode TR#14 rev. 22.
50454         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50455         LBP_JV, LBP_JT. Redistribute values.
50456         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50457         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50458         Update.
50459         * lib/unilbrk/lbrkprop1.h: Regenerated.
50460         * lib/unilbrk/lbrkprop2.h: Regenerated.
50461         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50462         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50463         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50464         Likewise.
50465         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50466         Likewise.
50467         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50468         result.
50469         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50470         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50471         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50472         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50473         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50474         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50475
50476 2008-05-11  Bruno Haible  <bruno@clisp.org>
50477
50478         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50479
50480 2008-05-11  Bruno Haible  <bruno@clisp.org>
50481
50482         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50483         * modules/unilbrk/gen-lbrk: New file.
50484
50485 2008-05-11  Bruno Haible  <bruno@clisp.org>
50486
50487         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50488         * m4/sha512.m4 (gl_SHA512): Likewise.
50489
50490 2008-05-11  Jim Meyering  <meyering@redhat.com>
50491
50492         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50493         * modules/crypto/sha256: New file.
50494         * modules/crypto/sha512: Likewise.
50495         * lib/sha256.c: Likewise.
50496         * lib/sha256.h: Likewise.
50497         * lib/sha512.c: Likewise.
50498         * lib/sha512.h: Likewise.
50499         * lib/u64.h: Likewise.
50500         * m4/sha256.m4: Likewise.
50501         * m4/sha512.m4: Likewise.
50502         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50503
50504 2008-05-10  Bruno Haible  <bruno@clisp.org>
50505
50506         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50507         (Input/Output <stdio.h>): Add xprintf.
50508         (Signal handling <signal.h>): Add strsignal.
50509         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50510         (Core language properties): Add func.
50511         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50512         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50513         strings.
50514         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50515         (Input/output): New section.
50516         (File system functions): Add openat-die, stat-macros.
50517         (Networking functions): Add sockets.
50518         (Unicode string functions): Add unictype/*.
50519         (Support for building libraries and executables): Add gperf.
50520         (Support for building documentation): Add agpl-3.0.
50521         (Misc): Add nocrash.
50522
50523 2008-05-10  Bruno Haible  <bruno@clisp.org>
50524
50525         * modules/unictype/gen-ctype: New file.
50526
50527 2008-05-10  Jim Meyering  <meyering@redhat.com>
50528
50529         Make chdir-safer.c more efficient on a system with no symlinks.
50530         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50531         also if ELOOP is zero.  Suggested by Bruno Haible.
50532
50533         Make chdir-safer.c slightly safer.
50534         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50535         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50536
50537         Avoid compile failure on systems without ELOOP (like mingw).
50538         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50539         Reported by Bruno Haible.
50540
50541 2008-05-10  Bruno Haible  <bruno@clisp.org>
50542
50543         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50544         (is_utf8_encoding): Use a case-insensitive comparison.
50545         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50546         streq.
50547
50548 2008-05-10  Bruno Haible  <bruno@clisp.org>
50549
50550         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50551         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50552         * lib/unilbrk/ulc-common.h (iconv_string_length,
50553         iconv_string_keeping_offsets): Remove declarations.
50554         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50555         Don't include <iconv.h>, streq.h, xsize.h.
50556         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50557         conversion.
50558         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50559         <iconv.h>, streq.h, xsize.h.
50560         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50561         conversion.
50562         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50563         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50564         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50565         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50566
50567 2008-05-10  Bruno Haible  <bruno@clisp.org>
50568
50569         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50570         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50571
50572         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50573         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50574
50575         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50576         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50577
50578         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50579         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50580
50581         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50582         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50583
50584         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50585         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50586
50587         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50588         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50589
50590         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50591         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50592
50593 2008-05-10  Bruno Haible  <bruno@clisp.org>
50594
50595         Split up 'linebreak' module.
50596         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50597         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50598         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50599         modifications.
50600         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50601         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50602         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50603         lib/linebreak.c.
50604         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50605         lib/linebreak.c.
50606         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50607         lib/linebreak.c.
50608         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50609         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50610         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50611         lib/linebreak.c.
50612         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50613         lib/linebreak.c.
50614         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50615         lib/linebreak.c.
50616         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50617         lib/linebreak.c.
50618         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50619         lib/linebreak.c.
50620         * modules/unilbrk/base: New file.
50621         * modules/unilbrk/tables: New file.
50622         * modules/unilbrk/u8-possible-linebreaks: New file.
50623         * modules/unilbrk/u16-possible-linebreaks: New file.
50624         * modules/unilbrk/u32-possible-linebreaks: New file.
50625         * modules/unilbrk/ulc-common: New file.
50626         * modules/unilbrk/ulc-possible-linebreaks: New file.
50627         * modules/unilbrk/u8-width-linebreaks: New file.
50628         * modules/unilbrk/u16-width-linebreaks: New file.
50629         * modules/unilbrk/u32-width-linebreaks: New file.
50630         * modules/unilbrk/ulc-width-linebreaks: New file.
50631         * lib/linebreak.h: Remove file.
50632         * lib/linebreak.c: Remove file.
50633         * m4/linebreak.m4: Remove file.
50634         * modules/linebreak: Remove file.
50635         * NEWS: Mention the changes.
50636
50637 2008-05-09  Eric Blake  <ebb9@byu.net>
50638
50639         Add xmemdup0.
50640         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50641         implementation.
50642         * lib/xmalloc.c (xmemdup0): New C implementation.
50643
50644 2008-05-08  Bruno Haible  <bruno@clisp.org>
50645
50646         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50647
50648 2008-05-07  Eric Blake  <ebb9@byu.net>
50649
50650         Support cross-compilation of <wctype.h>.
50651         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50652         AC_CACHE_CHECK.
50653
50654 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50655
50656         * build-aux/vc-list-files: Add support for bzr.
50657
50658 2008-05-03  Jim Meyering  <meyering@redhat.com>
50659
50660         avoid failed assertion with tight malloc
50661         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50662
50663 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50664
50665         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50666         are needed from arpa/inet.h.
50667         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50668         Reported by Bruno Haible.
50669
50670 2008-05-02  Jim Meyering  <meyering@redhat.com>
50671
50672         avoid compilation error on FreeBSD 6
50673         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50674
50675 2008-05-01  Jim Meyering  <meyering@redhat.com>
50676
50677         useless-if-before-free: correct --help's exit status description
50678         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50679         for one or more matches, etc.  Reported by Bruno Haible.
50680
50681         vc-list-files: make the stand-alone gnulib test work
50682         * modules/vc-list-files-tests (configure.ac):
50683         Define and AC_SUBST abs_aux_dir.
50684         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50685         $(abs_top_srcdir) to each script and having each of them
50686         duplicate the work of setting PATH, set PATH here, using
50687         the new variable, abs_aux_dir instead.
50688         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50689         * tests/test-vc-list-files-git.sh: Likewise.
50690         Reported by Bruno Haible.
50691
50692 2008-05-01  Bruno Haible  <bruno@clisp.org>
50693
50694         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50695         reallocation. Rename 'done' to 'found_delimiter'.
50696
50697 2008-05-01  Jim Meyering  <meyering@redhat.com>
50698
50699         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50700         * build-aux/vc-list-files: Use `...`, not $(...).
50701
50702 2008-04-30  Jim Meyering  <meyering@redhat.com>
50703
50704         add tests for vc-list-files
50705         * modules/vc-list-files-tests: New module.
50706         * tests/test-vc-list-files-cvs.sh: New file.
50707         * tests/test-vc-list-files-git.sh: New file.
50708
50709         avoid a warning from gcc
50710         * lib/getndelim2.c (IF_LINT): Define.
50711         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50712
50713         vc-list-files: work properly with build-aux/cvsu, too
50714         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50715         to all cvs-based clauses.
50716
50717         vc-list-files: work properly in the CVS+awk case, too
50718         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50719
50720         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50721         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50722         take more than one file argument, so .  Add quotes, just in case $dir
50723         ever contains a shell meta-character.  Prompted by Soren Hansen in
50724         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50725
50726 2008-04-29  Eric Blake  <ebb9@byu.net>
50727
50728         Optimize getndelim2 to use block operations when possible.
50729         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50730         freadseek, and memchr2.
50731         * lib/getndelim2.c (getndelim2): Use them for block reads.
50732
50733 2008-04-29  Bruno Haible  <bruno@clisp.org>
50734
50735         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50736         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50737         * modules/inet_ntop (Depends-on): Add extensions.
50738         * modules/inet_pton (Depends-on): Likewise.
50739         Reported by Simon Josefsson.
50740
50741 2008-04-29  Jim Meyering  <meyering@redhat.com>
50742
50743         When the is more than one match in a block, match all of them.
50744         * build-aux/useless-if-before-free: Iterate through each block
50745         until there are no more matches.
50746
50747         Fix broken useless-if-before-free script.
50748         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50749         the expression to match cast of argument to free-like function.
50750
50751 2008-04-29  Eric Blake  <ebb9@byu.net>
50752
50753         Use new header.
50754         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50755
50756 2008-04-29  Jim Meyering  <meyering@redhat.com>
50757
50758         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50759         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50760         by gnulib to exist and to declare e.g., inet_ntop.
50761         Don't include "inet_ntop.h", now removed.
50762
50763         * m4/arpa_inet_h.m4: Remove trailing blanks.
50764
50765 2008-04-29  Eric Blake  <ebb9@byu.net>
50766
50767         Silence valgrind on safe reads beyond potential array bounds.
50768         * lib/rawmemchr.valgrind: New file.
50769         * lib/strchrnul.valgrind: Likewise.
50770         * modules/rawmemchr (Files): Distribute new file.
50771         * modules/strchrnul (Files): Likewise.
50772         Suggested by Bruno Haible.
50773
50774 2008-04-29  Bruno Haible  <bruno@clisp.org>
50775
50776         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50777         (inet_ntop, inet_pton): Change portability warning's wording.
50778         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50779         Invoke gl_CHECK_NEXT_HEADERS.
50780         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50781         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50782         set ARPA_INET_H.
50783         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50784         * modules/arpa_inet (Description): No longer only for systems that
50785         lack it.
50786         (Depends-on): Add include_next.
50787         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50788         HAVE_ARPA_INET_H.
50789
50790 2008-04-29  Jim Meyering  <meyering@redhat.com>
50791
50792         * modules/mkdir (License): Re-license as LGPLv2+.
50793
50794 2008-04-29  Bruno Haible  <bruno@clisp.org>
50795
50796         * modules/rawmemchr (Maintainer): Set to Eric.
50797         * modules/strchrnul (Maintainer): Likewise.
50798
50799 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50800
50801         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50802         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50803
50804         * modules/arpa_inet (arpa/inet.h): Use them.
50805
50806 2008-04-28  Eric Blake  <ebb9@byu.net>
50807
50808         Test getndelim2.
50809         * modules/getndelim2-tests: New file.
50810         * tests/test-getndelim2.c: Likewise.
50811         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50812         stream.
50813         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50814
50815         * MODULES.html.sh: Document new module.
50816
50817 2008-04-20  Bruno Haible  <bruno@clisp.org>
50818
50819         * lib/c-stack.c (die): Use raise.
50820         * modules/c-stack (Depends-on): Add raise.
50821
50822 2008-04-28  Bruno Haible  <bruno@clisp.org>
50823
50824         Expect rpmatch to be declared.
50825         * lib/yesno.c (rpmatch): Remove declaration.
50826
50827         Declare rpmatch.
50828         * lib/stdlib.in.h (rpmatch): New declaration.
50829         * lib/rpmatch.c: Include <stdlib.h> first.
50830         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50831         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50833         HAVE_RPMATCH.
50834         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50835         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50836         (Include): Set to <stdlib.h>.
50837         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50838         HAVE_RPMATCH.
50839         * NEWS: Document the change.
50840
50841 2008-04-28  Bruno Haible  <bruno@clisp.org>
50842
50843         Change rpmatch to use nl_langinfo when appropriate.
50844         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50845         (N_): New macro.
50846         (localized_pattern): New function/macro.
50847         (try): Remove match, nomatch arguments. Copy the pattern into safe
50848         memory before caching it.
50849         (rpmatch): Use localized_pattern. Add translator comments.
50850         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50851         Suggested by Eric Blake.
50852         * modules/rpmatch (Depends-on): Add stdbool.
50853
50854 2008-04-28  Eric Blake  <ebb9@byu.net>
50855
50856         Add rawmemchr module, matching glibc.
50857         * modules/string (Makefile.am): New indicator.
50858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50859         * lib/string.in.h (rawmemchr): Declare when appropriate.
50860         * modules/rawmemchr: New file.
50861         * m4/rawmemchr.m4: Likewise.
50862         * lib/rawmemchr.c: Likewise.
50863         * modules/rawmemchr-tests: Likewise.
50864         * tests/test-rawmemchr.c: Likewise.
50865         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50866         module.
50867         * modules/strchrnul (Depends-on): Add rawmemchr.
50868         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50869
50870         Whitespace cleanup.
50871         * tests/test-strchrnul.c: Reindent.
50872         * lib/strchrnul.c: Likewise.
50873
50874         Optimize and test strchrnul.
50875         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50876         * modules/strchrnul-tests: New file.
50877         * tests/test-strchrnul.c: Likewise.
50878
50879         Remove intprops dependency.
50880         * modules/memchr (Depends-on): Remove intprops.
50881         * modules/memrchr (Depends-on): Likewise.
50882         * modules/memchr2 (Depends-on): Likewise.
50883         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50884         * lib/memrchr.c (__memrchr): Likewise.
50885         * lib/memrchr2.c (memchr2): Likewise.
50886         Reported by Simon Josefsson.
50887
50888 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50889
50890         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50891         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50892
50893 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50894
50895         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50896
50897         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50898
50899         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50900
50901         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50902         declarations.
50903         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50904
50905         * m4/inet_pton.m4: Don't check for header files.
50906
50907         * m4/inet_ntop.m4: Don't check for header files.
50908
50909 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50910
50911         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50912         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50913         trigger for cygwin).
50914         Reported by Bruno Haible  <bruno@clisp.org>.
50915
50916 2008-04-28  Bruno Haible  <bruno@clisp.org>
50917
50918         * doc/posix-functions/strdup.texi: Mention mingw problem.
50919
50920 2008-04-27  Bruno Haible  <bruno@clisp.org>
50921
50922         * modules/stat-time-tests (Depends-on): Add sleep.
50923         * tests/test-stat-time.c (force_unlink): New function.
50924         (cleanup): Use it.
50925         (test_mtime): Remove the ctime related tests.
50926         (test_ctime): New function, containing the ctime related tests.
50927         (main): Call test_ctime, except on native Windows platforms.
50928
50929 2008-04-27  Bruno Haible  <bruno@clisp.org>
50930
50931         * lib/rpmatch.c (rpmatch): Add some comments.
50932         Reported by James Youngman <jay@gnu.org>.
50933
50934 2008-04-27  Bruno Haible  <bruno@clisp.org>
50935
50936         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50937         quiet NaNs.
50938
50939 2008-04-27  Bruno Haible  <bruno@clisp.org>
50940
50941         Make test-yesno.sh work on mingw.
50942         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50943         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50944         (main): Set stdin to binary mode.
50945         * modules/yesno-tests (Depends-on): Add binary-io.
50946
50947 2008-04-27  Bruno Haible  <bruno@clisp.org>
50948
50949         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50950         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50951         argument that lie outside the IEEE 854 domain.
50952         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50953         (gl_ISFINITE): Use it.
50954         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50955
50956 2008-04-27  Bruno Haible  <bruno@clisp.org>
50957
50958         Allow local renaming in config.h.
50959         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50960
50961 2008-04-27  Bruno Haible  <bruno@clisp.org>
50962
50963         * lib/memchr.c (__memchr): Change type of 'i'.
50964         * lib/memchr2.c (memchr2): Likewise.
50965
50966 2008-04-26  Eric Blake  <ebb9@byu.net>
50967         and Bruno Haible  <bruno@clisp.org>
50968
50969         Optimize and test memrchr.
50970         * modules/memrchr (Depends-on): Add intprops.
50971         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50972         * modules/memrchr-tests: New file.
50973         * tests/test-memrchr.c: New file.
50974
50975 2008-04-26  Bruno Haible  <bruno@clisp.org>
50976
50977         Add tentative support for DragonFly BSD.
50978         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50979         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50980         fp.
50981         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50982         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50983         * lib/fpurge.c (fpurge): Likewise.
50984         * lib/freadable.c (freaadable): Likewise.
50985         * lib/freadahead.c (freadahead): Likewise.
50986         * lib/freading.c (freading): Likewise.
50987         * lib/freadptr.c (freadptr): Likewise.
50988         * lib/freadseek.c (freadptrinc): Likewise.
50989         * lib/fseeko.c (fseeko): Likewise.
50990         * lib/fseterr.c (fseterr): Likewise.
50991         * lib/fwritable.c (fwritable): Likewise.
50992         * lib/fwriting.c (fwriting): Likewise.
50993
50994 2008-04-26  Bruno Haible  <bruno@clisp.org>
50995
50996         * lib/stdio-impl.h: New file.
50997         * lib/fbufmode.c: Include stdio-impl.h.
50998         (fbufmode): Use fp_, remove redundant #defines.
50999         * lib/fflush.c: Include stdio-impl.h.
51000         (clear_ungetc_buffer): Remove redundant #defines.
51001         * lib/fpurge.c: Include stdio-impl.h.
51002         (fpurge): Remove redundant #defines.
51003         * lib/freadable.c: Include stdio-impl.h.
51004         (freadable): Remove redundant #defines.
51005         * lib/freadahead.c: Include stdio-impl.h.
51006         (freadahead): Remove redundant #defines.
51007         * lib/freading.c: Include stdio-impl.h.
51008         (freading): Remove redundant #defines.
51009         * lib/freadptr.c: Include stdio-impl.h.
51010         (freadptr): Remove redundant #defines.
51011         * lib/freadseek.c: Include stdio-impl.h.
51012         (freadptrinc): Remove redundant #defines.
51013         * lib/fseeko.c: Include stdio-impl.h.
51014         (rpl_fseeko): Remove redundant #defines.
51015         * lib/fseterr.c: Include stdio-impl.h.
51016         (fseterr): Remove redundant #defines.
51017         * lib/fwritable.c: Include stdio-impl.h.
51018         (fwritable: Remove redundant #defines.
51019         * lib/fwriting.c: Include stdio-impl.h.
51020         (fwriting): Remove redundant #defines.
51021         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51022         * modules/fflush (Files): Likewise.
51023         * modules/fpurge (Files): Likewise.
51024         * modules/freadable (Files): Likewise.
51025         * modules/freadahead (Files): Likewise.
51026         * modules/freading (Files): Likewise.
51027         * modules/freadptr (Files): Likewise.
51028         * modules/freadseek (Files): Likewise.
51029         * modules/fseeko (Files): Likewise.
51030         * modules/fseterr (Files): Likewise.
51031         * modules/fwritable (Files): Likewise.
51032         * modules/fwriting (Files): Likewise.
51033
51034 2008-04-26  Bruno Haible  <bruno@clisp.org>
51035
51036         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51037         restore_seek_optimization, update_fpos_cache): New functions, extracted
51038         from rpl_fflush.
51039         (rpl_fflush): Use them.
51040         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51041         (gl_REPLACE_FFLUSH): Use it.
51042
51043 2008-04-26  Bruno Haible  <bruno@clisp.org>
51044
51045         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51046         on Solaris.
51047         * tests/test-xstrtoimax.sh: Likewise.
51048         * tests/test-xstrtoumax.sh: Likewise.
51049         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51050
51051 2008-04-26  Bruno Haible  <bruno@clisp.org>
51052
51053         * modules/memchr-tests: New file.
51054         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51055
51056 2008-04-26  Eric Blake  <ebb9@byu.net>
51057             Bruno Haible  <bruno@clisp.org>
51058
51059         * lib/memchr.c: Include intprops.h.
51060         (__memchr): Optimize parallel detection of matching bytes. Rename local
51061         variables. Add explanatory comments.
51062
51063 2008-04-26  Bruno Haible  <bruno@clisp.org>
51064
51065         Fix module 'memchr', broken since 2000-10-28.
51066         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51067
51068 2008-04-26  Bruno Haible  <bruno@clisp.org>
51069
51070         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51071         comments.
51072
51073 2008-04-25  Eric Blake  <ebb9@byu.net>
51074
51075         Use native fstatat on cygwin 1.7.0.
51076         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51077         first.
51078
51079 2008-04-23  Eric Blake  <ebb9@byu.net>
51080
51081         Improve memchr2 performance.
51082         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51083         NUL bytes.
51084         * modules/memchr2 (Depends-on): Use intprops.h.
51085
51086 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51087
51088         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51089         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51090         <blp@cs.stanford.edu>.
51091
51092 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51093
51094         * lib/arpa_inet.in.h: New file.
51095
51096         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51097         (Makefile.am): Sed in substitute header file.
51098
51099         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51100         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51101
51102         * modules/inet_ntop (configure.ac): Use
51103         gl_ARPA_INET_MODULE_INDICATOR.
51104
51105         * modules/inet_pton (configure.ac): Use
51106         gl_ARPA_INET_MODULE_INDICATOR.
51107
51108 2008-04-22  Jim Meyering  <meyering@redhat.com>
51109
51110         * modules/verify (License): Re-license as LGPLv2+.
51111
51112 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51113
51114         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51115         parameter to void* as per POSIX standard (MinGW uses char*).
51116
51117 2008-04-21  Bruno Haible  <bruno@clisp.org>
51118
51119         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51120         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51121         Define to replacements if REPLACE_ISWCNTRL is 1.
51122         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51123         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51124         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51125         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51126         what it fixes.
51127         * doc/posix-functions/iswalpha.texi: Likewise.
51128         * doc/posix-functions/iswblank.texi: Likewise.
51129         * doc/posix-functions/iswcntrl.texi: Likewise.
51130         * doc/posix-functions/iswdigit.texi: Likewise.
51131         * doc/posix-functions/iswgraph.texi: Likewise.
51132         * doc/posix-functions/iswlower.texi: Likewise.
51133         * doc/posix-functions/iswprint.texi: Likewise.
51134         * doc/posix-functions/iswpunct.texi: Likewise.
51135         * doc/posix-functions/iswspace.texi: Likewise.
51136         * doc/posix-functions/iswupper.texi: Likewise.
51137         * doc/posix-functions/iswxdigit.texi: Likewise.
51138         Reported by Alain Guibert.
51139
51140 2008-04-21  Bruno Haible  <bruno@clisp.org>
51141
51142         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51143         Patch by Alain Guibert.
51144
51145 2008-04-21  Bruno Haible  <bruno@clisp.org>
51146
51147         Fix test failures on mingw.
51148         * tests/test-xstrtol.c (print_no_progname): New function.
51149         (main): Install it in error_print_progname hook.
51150         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51151         * tests/test-xstrtoimax.sh: Likewise.
51152         * tests/test-xstrtoumax.sh: Likewise.
51153
51154 2008-04-21  Bruno Haible  <bruno@clisp.org>
51155
51156         Fix test failure on mingw.
51157         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51158
51159 2008-04-21  Bruno Haible  <bruno@clisp.org>
51160
51161         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51162         Actually assign a value.
51163
51164 2008-04-20  Bruno Haible  <bruno@clisp.org>
51165
51166         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51167         take 2.
51168         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51169         'canonicalize-lgpl' module is also used.
51170         * lib/canonicalize-lgpl.c: Undo last change.
51171         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51172
51173 2008-04-20  Bruno Haible  <bruno@clisp.org>
51174
51175         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51176         config.h. Provide _mkdir based fallback for mingw.
51177         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51178         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51179         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51180         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51181         rather than defining mkdir in config.h.
51182         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51183         (gl_SYS_STAT_H_DEFAULTS): New macro.
51184         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51185         HAVE_IO_H any more.
51186         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51187         HAVE_DECL_MKDIR and HAVE_IO_H.
51188
51189 2008-04-20  Bruno Haible  <bruno@clisp.org>
51190
51191         * lib/isapipe.c: Port to native Windows platforms.
51192
51193 2008-04-20  Bruno Haible  <bruno@clisp.org>
51194
51195         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51196
51197 2008-04-21  Eric Blake  <ebb9@byu.net>
51198
51199         Work around preprocessors that don't handle UINTMAX_MAX.
51200         * lib/memchr2.c (memchr2): Avoid embedded #if.
51201         Reported by Alain Guibert, fix suggested by Bruno Haible.
51202
51203 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51204
51205         * doc/posix-functions/strftime.texi (strftime): Explain better
51206         Windows incompatibility.  Suggested by Micah Cowan
51207         <micah@cowan.name>.
51208
51209 2008-04-20  Bruno Haible  <bruno@clisp.org>
51210
51211         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51212         unistr/u8-mblen.
51213
51214 2008-04-20  Bruno Haible  <bruno@clisp.org>
51215
51216         Fix test failure on platforms with non-GNU iconv.
51217         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51218         (U_TO_U8): Use it, rather than u16_to_u8.
51219         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51220         units at the end of the input string.
51221         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51222
51223 2008-04-20  Bruno Haible  <bruno@clisp.org>
51224
51225         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51226         when the resulting length is 0.
51227         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51228
51229 2008-04-20  Bruno Haible  <bruno@clisp.org>
51230
51231         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51232         works.
51233         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51234
51235 2008-04-20  Bruno Haible  <bruno@clisp.org>
51236
51237         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51238         * modules/tsearch-tests (configure.ac): Test for initstate function.
51239
51240 2008-04-20  Bruno Haible  <bruno@clisp.org>
51241
51242         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51243         for nlink_t if missing.
51244         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51245
51246 2008-04-19  Bruno Haible  <bruno@clisp.org>
51247
51248         Work around snprintf bug on Linux libc5.
51249         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51250         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51251         gl_SNPRINTF_SIZE1.
51252         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51253         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51254         that test failed.
51255         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51256         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51257         * modules/snprintf (Files): Add m4/printf.m4.
51258         * modules/vsnprintf (Files): Likewise.
51259         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51260         * doc/posix-functions/vsnprintf.texi: Likewise.
51261
51262 2008-04-19  Bruno Haible  <bruno@clisp.org>
51263
51264         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51265         from 0.0058 to less than 10^-7.
51266
51267 2008-04-19  Bruno Haible  <bruno@clisp.org>
51268
51269         Fix rounding when a precision is given.
51270         * lib/vasnprintf.c (is_borderline): New function.
51271         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51272         9...9x.
51273         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51274         %e, %g.
51275         * tests/test-vasprintf-posix.c (test_function): Likewise.
51276         * tests/test-snprintf-posix.h (test_function): Likewise.
51277         * tests/test-sprintf-posix.h (test_function): Likewise.
51278         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51279         * tests/test-printf-posix.h (test_function): Likewise.
51280         * tests/test-printf-posix.output: Update.
51281         Reported by John Darrington <john@darrington.wattle.id.au> via
51282         Ben Pfaff <blp@cs.stanford.edu>.
51283
51284 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51285
51286         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51287         Suggested by Bruno Haible <bruno@clisp.org>.
51288
51289 2008-04-17  Bruno Haible  <bruno@clisp.org>
51290
51291         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51292         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51293         implementation.
51294         Patch by Bruce Merry <bmerry@gmail.com>.
51295
51296 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51297
51298         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51299         doesn't work under Windows.
51300
51301 2008-04-16  Bruno Haible  <bruno@clisp.org>
51302
51303         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51304         New macros.
51305         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51306         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51307         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51308         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51309         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51310         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51311         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51312         macros.
51313         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51314         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51315         Northern Sotho, Uighur.
51316
51317 2008-04-16  Bruno Haible  <bruno@clisp.org>
51318
51319         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51320         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51321         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51322         Reported by Daniel Bergström <daniel@octocode.com>.
51323
51324 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51325             Bruno Haible  <bruno@clisp.org>
51326
51327         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51328         function.
51329         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51330         New functions, mostly extracted from gl_locale_name_default.
51331         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51332
51333 2008-04-16  Eric Blake  <ebb9@byu.net>
51334
51335         Adjust strtod detection to catch glibc 2.7 bug.
51336         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51337         Reported by John Gatewood Ham.
51338
51339 2008-04-16  Bruno Haible  <bruno@clisp.org>
51340
51341         Add tentative support for Linux libc5.
51342         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51343         * lib/fpurge.c (fpurge): Likewise.
51344         * lib/freadable.c (freadable): Likewise.
51345         * lib/freadahead.c (freadahead): Likewise.
51346         * lib/freading.c (freading): Likewise.
51347         * lib/freadptr.c (freadptr): Likewise.
51348         * lib/freadseek.c (freadptrinc): Likewise.
51349         * lib/fseeko.c (rpl_fseeko): Likewise.
51350         * lib/fseterr.c (fseterr): Likewise.
51351         * lib/fwritable.c (fwritable): Likewise.
51352         * lib/fwriting.c (fwriting): Likewise.
51353         Reported by Alain Guibert <alguibert+bts@free.fr>.
51354
51355 2008-04-15  Bruno Haible  <bruno@clisp.org>
51356
51357         * modules/mathl (configure.ac): Define module indicator.
51358
51359 2008-04-15  Bruno Haible  <bruno@clisp.org>
51360
51361         * lib/logl.c (logl): Remove unused variables.
51362
51363 2008-04-15  Bruno Haible  <bruno@clisp.org>
51364
51365         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51366         fails.
51367
51368 2008-04-15  Bruno Haible  <bruno@clisp.org>
51369
51370         * lib/trim.c (trim2): Fix argument of isspace() macro.
51371
51372 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51373
51374         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51375         to 0.
51376         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51377
51378 2008-04-14  Bruno Haible  <bruno@clisp.org>
51379
51380         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51381         AC_LANG_PROGRAM argument.
51382         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51383         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51384         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51385         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51386         * m4/math_h.m4 (gl_MATH_H): Likewise.
51387         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51388         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51389         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51390         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51391         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51392         * m4/regex.m4 (gl_REGEX): Likewise.
51393         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51394         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51396         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51397         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51398         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51399         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51400         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51401
51402 2008-04-14  Jim Meyering  <meyering@redhat.com>
51403
51404         test-strtod: fix typos: s/abs/fabs/
51405         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51406
51407 2008-04-13  Bruno Haible  <bruno@clisp.org>
51408
51409         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51410         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51411         module is also used and while not building the reloc-wrapper.
51412
51413 2008-04-13  Bruno Haible  <bruno@clisp.org>
51414
51415         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51416
51417 2008-04-13  Bruno Haible  <bruno@clisp.org>
51418
51419         Fix AIX compilation failure introduced on 2008-04-02.
51420         * tests/test-frexp.c (exp): Undefine before redefining.
51421         * tests/test-frexpl.c (exp): Likewise.
51422
51423 2008-04-13  Bruno Haible  <bruno@clisp.org>
51424
51425         Work around a HP-UX stdio bug.
51426         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51427         * tests/test-ftello.c (main): Likewise.
51428         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51429         * doc/posix-functions/ftello.texi: Likewise.
51430
51431 2008-04-13  Bruno Haible  <bruno@clisp.org>
51432
51433         Make test-signbit pass on HP-UX/hppa.
51434         * tests/test-signbit.c (minus_zerol): New variable.
51435         (test_signbitl): Use it.
51436
51437 2008-04-13  Bruno Haible  <bruno@clisp.org>
51438
51439         Make truncl work on OSF/1 4.0.
51440         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51441         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51442         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51444         HAVE_DECL_TRUNCL.
51445         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51446         HAVE_DECL_TRUNCL.
51447         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51448
51449 2008-04-13  Bruno Haible  <bruno@clisp.org>
51450
51451         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51452
51453 2008-04-13  Bruno Haible  <bruno@clisp.org>
51454
51455         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51456         expression, so as to avoid HP-UX 11 cc compiler bug.
51457
51458 2008-04-13  Bruno Haible  <bruno@clisp.org>
51459
51460         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51461
51462 2008-04-13  Bruno Haible  <bruno@clisp.org>
51463
51464         * lib/git-merge-changelog.c: Remove empty declaration outside of
51465         functions.
51466
51467 2008-04-13  Bruno Haible  <bruno@clisp.org>
51468
51469         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51470
51471 2008-04-13  Bruno Haible  <bruno@clisp.org>
51472
51473         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51474         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51475         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51476         also if it exists but lacks definitions of the SHUT_* macros.
51477         * modules/sys_socket (Description): Update.
51478         Reported by Elbert Pol <e.pol@chello.nl>.
51479
51480 2008-04-13  Bruno Haible  <bruno@clisp.org>
51481
51482         * lib/localcharset.c (OS2): Don't redefine if already defined.
51483         Reported by Elbert Pol <e.pol@chello.nl>.
51484
51485 2008-04-13  Bruno Haible  <bruno@clisp.org>
51486
51487         * lib/binary-io.h [__EMX__]: Include <io.h>.
51488         Reported by Elbert Pol <e.pol@chello.nl>.
51489
51490 2008-04-12  Bruno Haible  <bruno@clisp.org>
51491
51492         * lib/fpucw.h: Enable the definitions also for x86_64.
51493         Needed for NetBSD/x86_64.
51494         Reported by Thomas Klausner <tk@giga.or.at>.
51495
51496 2008-04-12  Bruno Haible  <bruno@clisp.org>
51497
51498         * tests/test-strtod.c: Include isnand.h.
51499         (main): Use isnand instead of isnan.
51500         Reported by Jim Meyering.
51501
51502 2008-04-12  Bruno Haible  <bruno@clisp.org>
51503
51504         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51505         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51506
51507 2008-04-12  Jim Meyering  <meyering@redhat.com>
51508
51509         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51510
51511 2008-04-12  Bruno Haible  <bruno@clisp.org>
51512
51513         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51514         Reported by Elbert Pol <e.pol@chello.nl>.
51515
51516 2008-04-12  Eric Blake  <ebb9@byu.net>
51517
51518         Work around Solaris 10 math.h bug.
51519         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51520         (gl_MATH_H_DEFAULTS): Set up default.
51521         * modules/math (Makefile.am): Replace new indicators.
51522         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51523         * tests/test-math.c (main): Test this.
51524         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51525         * doc/posix-headers/math.texi (math.h): Mention bug.
51526         Reported by Nelson H. F. Beebe and Jim Meyering.
51527
51528 2008-04-11  Bruno Haible  <bruno@clisp.org>
51529
51530         Adapt to future versions of Apple GCC.
51531         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51532         Reported by Peter O'Gorman <peter@pogma.com>.
51533
51534 2008-04-11  Bruno Haible  <bruno@clisp.org>
51535
51536         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51537
51538 2008-04-11  Bruno Haible  <bruno@clisp.org>
51539
51540         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51541
51542         * modules/getaddrinfo-tests (Makefile.am): Define
51543         test_getaddrinfo_LDADD.
51544
51545 2008-04-11  Bruno Haible  <bruno@clisp.org>
51546
51547         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51548         (init): Fix syntax error.
51549         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51550         is declared.
51551
51552 2008-04-11  Bruno Haible  <bruno@clisp.org>
51553
51554         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51555         * modules/glob (Depends-on): Add stdbool.
51556
51557 2008-04-11  Bruno Haible  <bruno@clisp.org>
51558
51559         * lib/trim.c: Include <string.h>.
51560
51561 2008-04-11  Eric Blake  <ebb9@byu.net>
51562
51563         Avoid compile failure on OS/2.
51564         * lib/regex_internal.h (internal_function): Disable optimization
51565         on OS/2 (__EMX__), where it caused compiler error.
51566         Reported by Elbert Pol.
51567
51568 2008-04-11  Bruno Haible  <bruno@clisp.org>
51569
51570         Flush the standard error stream before aborting. Needed on mingw.
51571         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51572         * tests/test-array_list.c (ASSERT): Likewise.
51573         * tests/test-array_oset.c (ASSERT): Likewise.
51574         * tests/test-avltree_list.c (ASSERT): Likewise.
51575         * tests/test-avltree_oset.c (ASSERT): Likewise.
51576         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51577         * tests/test-binary-io.c (ASSERT): Likewise.
51578         * tests/test-byteswap.c (ASSERT): Likewise.
51579         * tests/test-c-ctype.c (ASSERT): Likewise.
51580         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51581         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51582         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51583         * tests/test-c-strstr.c (ASSERT): Likewise.
51584         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51585         * tests/test-canonicalize.c (ASSERT): Likewise.
51586         * tests/test-carray_list.c (ASSERT): Likewise.
51587         * tests/test-ceilf1.c (ASSERT): Likewise.
51588         * tests/test-ceilf2.c (ASSERT): Likewise.
51589         * tests/test-ceill.c (ASSERT): Likewise.
51590         * tests/test-count-one-bits.c (ASSERT): Likewise.
51591         * tests/test-fbufmode.c (ASSERT): Likewise.
51592         * tests/test-fflush2.c (ASSERT): Likewise.
51593         * tests/test-floorf1.c (ASSERT): Likewise.
51594         * tests/test-floorf2.c (ASSERT): Likewise.
51595         * tests/test-floorl.c (ASSERT): Likewise.
51596         * tests/test-fopen.c (ASSERT): Likewise.
51597         * tests/test-fpending.c (ASSERT): Likewise.
51598         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51599         * tests/test-fpurge.c (ASSERT): Likewise.
51600         * tests/test-freadable.c (ASSERT): Likewise.
51601         * tests/test-freadahead.c (ASSERT): Likewise.
51602         * tests/test-freading.c (ASSERT): Likewise.
51603         * tests/test-freadptr.c (ASSERT): Likewise.
51604         * tests/test-freadptr2.c (ASSERT): Likewise.
51605         * tests/test-freadseek.c (ASSERT): Likewise.
51606         * tests/test-freopen.c (ASSERT): Likewise.
51607         * tests/test-frexp.c (ASSERT): Likewise.
51608         * tests/test-frexpl.c (ASSERT): Likewise.
51609         * tests/test-fseek.c (ASSERT): Likewise.
51610         * tests/test-fseeko.c (ASSERT): Likewise.
51611         * tests/test-fstrcmp.c (ASSERT): Likewise.
51612         * tests/test-ftell.c (ASSERT): Likewise.
51613         * tests/test-ftello.c (ASSERT): Likewise.
51614         * tests/test-func.c (ASSERT): Likewise.
51615         * tests/test-fwritable.c (ASSERT): Likewise.
51616         * tests/test-fwriting.c (ASSERT): Likewise.
51617         * tests/test-getdelim.c (ASSERT): Likewise.
51618         * tests/test-getline.c (ASSERT): Likewise.
51619         * tests/test-i-ring.c (ASSERT): Likewise.
51620         * tests/test-iconv-utf.c (ASSERT): Likewise.
51621         * tests/test-iconv.c (ASSERT): Likewise.
51622         * tests/test-isfinite.c (ASSERT): Likewise.
51623         * tests/test-isnand.c (ASSERT): Likewise.
51624         * tests/test-isnanf.c (ASSERT): Likewise.
51625         * tests/test-isnanl.h (ASSERT): Likewise.
51626         * tests/test-ldexpl.c (ASSERT): Likewise.
51627         * tests/test-linked_list.c (ASSERT): Likewise.
51628         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51629         * tests/test-localename.c (ASSERT): Likewise.
51630         * tests/test-lseek.c (ASSERT): Likewise.
51631         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51632         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51633         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51634         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51635         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51636         * tests/test-mbschr.c (ASSERT): Likewise.
51637         * tests/test-mbscspn.c (ASSERT): Likewise.
51638         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51639         * tests/test-mbspbrk.c (ASSERT): Likewise.
51640         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51641         * tests/test-mbsrchr.c (ASSERT): Likewise.
51642         * tests/test-mbsspn.c (ASSERT): Likewise.
51643         * tests/test-mbsstr1.c (ASSERT): Likewise.
51644         * tests/test-mbsstr2.c (ASSERT): Likewise.
51645         * tests/test-mbsstr3.c (ASSERT): Likewise.
51646         * tests/test-memchr2.c (ASSERT): Likewise.
51647         * tests/test-memmem.c (ASSERT): Likewise.
51648         * tests/test-open.c (ASSERT): Likewise.
51649         * tests/test-printf-frexp.c (ASSERT): Likewise.
51650         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51651         * tests/test-printf-posix.c (ASSERT): Likewise.
51652         * tests/test-quotearg.c (ASSERT): Likewise.
51653         * tests/test-rbtree_list.c (ASSERT): Likewise.
51654         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51655         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51656         * tests/test-round1.c (ASSERT): Likewise.
51657         * tests/test-roundf1.c (ASSERT): Likewise.
51658         * tests/test-roundl.c (ASSERT): Likewise.
51659         * tests/test-signbit.c (ASSERT): Likewise.
51660         * tests/test-sleep.c (ASSERT): Likewise.
51661         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51662         * tests/test-snprintf.c (ASSERT): Likewise.
51663         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51664         * tests/test-stat-time.c (ASSERT): Likewise.
51665         * tests/test-strcasestr.c (ASSERT): Likewise.
51666         * tests/test-strerror.c (ASSERT): Likewise.
51667         * tests/test-striconv.c (ASSERT): Likewise.
51668         * tests/test-striconveh.c (ASSERT): Likewise.
51669         * tests/test-striconveha.c (ASSERT): Likewise.
51670         * tests/test-strsignal.c (ASSERT): Likewise.
51671         * tests/test-strstr.c (ASSERT): Likewise.
51672         * tests/test-strtod.c (ASSERT): Likewise.
51673         * tests/test-trunc1.c (ASSERT): Likewise.
51674         * tests/test-trunc2.c (ASSERT): Likewise.
51675         * tests/test-truncf1.c (ASSERT): Likewise.
51676         * tests/test-truncf2.c (ASSERT): Likewise.
51677         * tests/test-truncl.c (ASSERT): Likewise.
51678         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51679         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51680         * tests/test-vasnprintf.c (ASSERT): Likewise.
51681         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51682         * tests/test-vasprintf.c (ASSERT): Likewise.
51683         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51684         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51685         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51686         * tests/test-vsnprintf.c (ASSERT): Likewise.
51687         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51688         * tests/test-wcwidth.c (ASSERT): Likewise.
51689         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51690         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51691         * tests/test-xvasprintf.c (ASSERT): Likewise.
51692         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51693         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51694         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51695         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51696         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51697         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51698         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51699         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51700         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51701         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51702         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51703         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51704         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51705         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51706         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51707         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51708         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51709         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51710         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51711         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51712         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51713         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51714         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51715         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51716         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51717         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51718         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51719         * tests/unictype/test-combining.c (ASSERT): Likewise.
51720         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51721         * tests/unictype/test-digit.c (ASSERT): Likewise.
51722         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51723         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51724         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51725         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51726         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51727         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51728         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51729         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51730         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51731         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51732         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51733         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51734         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51735         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51736         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51737         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51738         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51739         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51740         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51741         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51742         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51743         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51744         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51745         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51746         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51747         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51748         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51749         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51750         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51751         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51752         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51753         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51754         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51755         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51756         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51757         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51758         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51759         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51760         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51761         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51762         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51763         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51764         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51765         Reported by Eric Blake.
51766
51767 2008-04-11  Bruno Haible  <bruno@clisp.org>
51768
51769         * lib/wchar.in.h: Tweak comment.
51770
51771 2008-04-11  Bruno Haible  <bruno@clisp.org>
51772
51773         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51774         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51775         gl_COMMON.
51776         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51777
51778 2008-04-11  Bruno Haible  <bruno@clisp.org>
51779
51780         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51781
51782 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51783
51784         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51785         of attempting to use non-existing /dev/*random.  Based on patch
51786         from Adam Strzelecki <ono@java.pl> in
51787         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51788
51789 2008-04-08  Bruno Haible  <bruno@clisp.org>
51790
51791         Add tentative support for emx+gcc.
51792         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51793         * lib/fpurge.c (fpurge): Likewise.
51794         * lib/freadable.c (freadable): Likewise.
51795         * lib/freadahead.c (freadahead): Likewise.
51796         * lib/freading.c (freading): Likewise.
51797         * lib/freadptr.c (freadptr): Likewise.
51798         * lib/freadseek.c (freadptrinc): Likewise.
51799         * lib/fseeko.c (rpl_fseeko): Likewise.
51800         * lib/fseterr.c (fseterr): Likewise.
51801         * lib/fwritable.c (fwritable): Likewise.
51802         * lib/fwriting.c (fwriting): Likewise.
51803         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51804
51805 2008-04-09  Eric Blake  <ebb9@byu.net>
51806
51807         Avoid some autoconf warnings.
51808         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51809         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51810         * m4/afs.m4 (gl_AFS): Likewise.
51811         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51812         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51813         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51814         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51815         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51816         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51817         (AC_CHECK_DECLS_ONCE): Likewise.
51818         Rename file...
51819         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51820         gnulib-tool requires autoconf 2.59 or better.
51821         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51822
51823 2008-04-08  Eric Blake  <ebb9@byu.net>
51824
51825         Use 'git describe --match' if present (added in git 1.5.5).
51826         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51827         if possible.
51828
51829 2008-04-08  Bruno Haible  <bruno@clisp.org>
51830
51831         Add tentative support for OpenServer.
51832         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51833         _ptr, _cnt.
51834         * lib/fpurge.c (fpurge): Likewise.
51835         * lib/freadable.c (freadable): Likewise.
51836         * lib/freadahead.c (freadahead): Likewise.
51837         * lib/freading.c (freading): Likewise.
51838         * lib/freadptr.c (freadptr): Likewise.
51839         * lib/freadseek.c (freadptrinc): Likewise.
51840         * lib/fseeko.c (rpl_fseeko): Likewise.
51841         * lib/fseterr.c (fseterr): Likewise.
51842         * lib/fwritable.c (fwritable): Likewise.
51843         * lib/fwriting.c (fwriting): Likewise.
51844         Reported by Roger Cornelius <rac@tenzing.org> and
51845         Brian K. White <brian@aljex.com>.
51846
51847 2008-04-06  Jim Meyering  <meyering@redhat.com>
51848
51849         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51850
51851 2008-04-06  Bruno Haible  <bruno@clisp.org>
51852
51853         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51854         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51855         * tests/test-printf-posix.sh: Likewise.
51856         * tests/test-vfprintf-posix.sh: Likewise.
51857         * tests/test-vprintf-posix.sh: Likewise.
51858         * tests/test-xprintf-posix.sh: Likewise.
51859
51860 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51861
51862         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51863         hide error from 'ls', needed on OS/2.
51864         Report by Elbert Pol <elbert.pol@gmail.com>.
51865
51866 2008-04-04  Eric Blake  <ebb9@byu.net>
51867
51868         Make test-fseeko.c failures meaningful.
51869         * tests/test-fseeko.c: Print line number on failure.
51870         * tests/test-fseek.c: Likewise.
51871         Reported by Nelson H. F. Beebe.
51872
51873         Improve strtod bug detection check.
51874         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51875         required for Solaris 10.
51876         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51877
51878 2008-04-04  Bruno Haible  <bruno@clisp.org>
51879
51880         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51881         by m4/setenv.m4.
51882
51883 2008-04-03  Eric Blake  <ebb9@byu.net>
51884
51885         Ensure sane .version contents.
51886         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51887         version string.
51888         * build-aux/git-version-gen: Improve documentation.
51889
51890         Make GNU make output nicer.
51891         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51892         MAKECMDGOALS to enforce message for all command line targets.  Set
51893         srcdir for use in maint.mk.
51894
51895         Another maintainer tweak.
51896         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51897         a target that regenerates version.
51898
51899 2008-04-03  Jim Meyering  <meyering@redhat.com>
51900
51901         vc-list-files: don't cause coreutils "make po-check" failure
51902         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51903
51904 2008-04-03  Eric Blake  <ebb9@byu.net>
51905
51906         Allow VPATH usage of vc-list-files.
51907         * build-aux/vc-list-files (scriptversion): Add timestamp.
51908         (options): Add --help, --version, -C.
51909         (CVS): Support installed cvsu.
51910
51911 2008-04-02  Bruno Haible  <bruno@clisp.org>
51912
51913         Avoid some "statement with no effect" warnings from gcc.
51914         * tests/test-wctype.c (main): Explicitly ignore unused values.
51915         Reported by Jim Meyering.
51916
51917 2008-04-02  Jim Meyering  <meyering@redhat.com>
51918
51919         Avoid some warnings from "gcc -Wshadow".
51920         * tests/test-frexp.c (exp): Define to a different identifier.
51921         * tests/test-frexpl.c (exp): Likewise.
51922
51923 2008-04-03  Jim Meyering  <meyering@redhat.com>
51924
51925         bootstrap: remove dangling *.[ch] symlinks from lib
51926         * build-aux/bootstrap [dangling symlink removal]: Move find's
51927         -depth option to precede all others, to avoid a warning.
51928         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51929
51930 2008-04-02  Bruno Haible  <bruno@clisp.org>
51931
51932         Avoid some warnings from "gcc -Wshadow".
51933         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51934         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51935         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51936         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51937         Reported by Jim Meyering.
51938
51939 2008-04-01  Bruno Haible  <bruno@clisp.org>
51940
51941         Fix test to work on IRIX 6.5 with cc.
51942         * tests/test-math.c (numeric_equal): New function.
51943         (main): Use it.
51944
51945 2008-04-01  Bruno Haible  <bruno@clisp.org>
51946
51947         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51948
51949 2008-04-01  Bruno Haible  <bruno@clisp.org>
51950
51951         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51952         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51953         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51954         (Depends-on): Remove math.
51955
51956         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51957         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51958         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51959         (Depends-on): Remove math.
51960
51961         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51962         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51963         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51964         (Depends-on): Remove math.
51965         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51966         (Depends-on): Remove math.
51967
51968         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51969         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51970         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51971         (Depends-on): Remove math.
51972         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51973         (Depends-on): Remove math.
51974
51975         * tests/test-round1.c: Include nan.h.
51976         (main): Use NaNd instead of NAN.
51977         * modules/round-tests (Files): Add tests/nan.h.
51978
51979         * tests/test-trunc1.c: Include nan.h.
51980         (main): Use NaNd instead of NAN.
51981         * modules/trunc-tests (Files): Add tests/nan.h.
51982
51983         * tests/test-roundf1.c: Include nan.h.
51984         (main): Use NaNf instead of NAN.
51985         * modules/roundf-tests (Files): Add tests/nan.h.
51986
51987         * tests/test-truncf1.c: Include nan.h.
51988         (main): Use NaNf instead of NAN.
51989         * modules/truncf-tests (Files): Add tests/nan.h.
51990
51991         * tests/test-ceilf1.c: Include nan.h.
51992         (main): Use NaNf instead of NAN.
51993         * modules/ceilf-tests (Files): Add tests/nan.h.
51994
51995         * tests/test-floorf1.c: Include nan.h.
51996         (main): Use NaNf instead of NAN.
51997         * modules/floorf-tests (Files): Add tests/nan.h.
51998
51999         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52000         (main): Use NaNf instead of NAN.
52001         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52002
52003         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52004         (main): Use NaNd instead of NAN.
52005         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52006
52007         * tests/test-frexp.c: Include nan.h.
52008         (main): Use NaNd instead of NAN.
52009         * modules/frexp-tests (Files): Add tests/nan.h.
52010
52011         * lib/isnan.c: Don't include <math.h>.
52012         (FUNC): Don't use NAN macro.
52013         * modules/isnand-nolibm (Depends-on): Remove math.
52014         * modules/isnanf-nolibm (Depends-on): Remove math.
52015         * modules/isnanl (Depends-on): Remove math.
52016         * modules/isnanl-nolibm (Depends-on): Remove math.
52017
52018         * tests/nan.h: New file.
52019
52020 2008-04-01  Eric Blake  <ebb9@byu.net>
52021
52022         Fix typos.
52023         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52024         values to be the right type.
52025
52026         For now, cater to gnulib strtod inaccuracies.
52027         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52028         fractional results.  While not as nice from a QoI perspective, it
52029         is a quicker patch than correctly implementing decimal to binary
52030         rounding.
52031
52032 2008-03-31  Eric Blake  <ebb9@byu.net>
52033
52034         Guarantee a definition of NAN.
52035         * lib/math.in.h (NAN): Define if missing.
52036         * tests/test-math.c (main): Test it.
52037         * doc/posix-headers/math.texi (math.h): Document this.
52038         * lib/isnan.c (rpl_isnand): Use it.
52039         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52040         * tests/test-floorf1.c (NaN): Likewise.
52041         * tests/test-frexp.c (NaN): Likewise.
52042         * tests/test-isnand.c (NaN): Likewise.
52043         * tests/test-isnanf.c (NaN): Likewise.
52044         * tests/test-round1.c (NaN): Likewise.
52045         * tests/test-roundf1.c (NaN): Likewise.
52046         * tests/test-snprintf-posix.h (NaN): Likewise.
52047         * tests/test-sprintf-posix.h (NaN): Likewise.
52048         * tests/test-trunc1.c (NaN): Likewise.
52049         * tests/test-truncf1.c (NaN): Likewise.
52050         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52051         * tests/test-vasprintf-posix.c (NaN): Likewise.
52052         * modules/isnand-nolibm (Depends-on): Add math.
52053         * modules/isnanf-nolibm (Depends-on): Likewise.
52054         * modules/isnanl (Depends-on): Likewise.
52055         * modules/isnanl-nolibm (Depends-on): Likewise.
52056         * modules/snprintf-posix-tests (Depends-on): Likewise.
52057         * modules/sprintf-posix-tests (Depends-on): Likewise.
52058         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52059         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52060         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52061         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52062
52063 2008-03-31  Bruno Haible  <bruno@clisp.org>
52064
52065         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52066         * doc/posix-functions/strtod.texi: Likewise.
52067
52068 2008-03-31  Bruno Haible  <bruno@clisp.org>
52069
52070         * tests/test-strtod.c (main): Don't use C99 syntax.
52071
52072 2008-03-31  Bruno Haible  <bruno@clisp.org>
52073
52074         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52075         Reported by Eric Blake.
52076
52077 2008-03-31  Jim Meyering  <meyering@redhat.com>
52078
52079         Don't compare actual signbit return values.
52080         * tests/test-strtod.c (main): Rather, compare only their
52081         zero/non-zero nature.
52082
52083 2008-03-31  Eric Blake  <ebb9@byu.net>
52084
52085         More strtod documentation.
52086         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52087         failures as distinct bugs.
52088
52089 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52090
52091         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52092         Problem reported by Erik Benada in
52093         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52094
52095 2008-03-30  Bruno Haible  <bruno@clisp.org>
52096
52097         * tests/test-strtod.c: Add comments about which assertion fails on which
52098         platform.
52099         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52100
52101 2008-03-30  Eric Blake  <ebb9@byu.net>
52102
52103         Test signbit behavior on zeros.
52104         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52105         (test_signbitd, test_signbitl): Likewise.
52106
52107         More strtod touchups.
52108         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52109         sign of negative underflow, for now.  Use .5, not .1.
52110         * doc/posix-functions/strtod.texi (strtod): Mention these
52111         limitations.
52112         Reported by Jim Meyering.
52113
52114 2008-03-30  Bruno Haible  <bruno@clisp.org>
52115
52116         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52117         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52118
52119 2008-03-30  Bruno Haible  <bruno@clisp.org>
52120
52121         Avoid failure when attempting to return empty iconv results on some
52122         platforms.
52123         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52124         allocation, don't report ENOMEM when the resulting string is empty.
52125
52126 2008-03-30  Bruno Haible  <bruno@clisp.org>
52127
52128         Fix buffer overrun.
52129         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52130         Don't consider the width for tmp_length. Check count against tmp_length
52131         before doing the padding. Ensure enough allocation during padding.
52132
52133 2008-03-30  Eric Blake  <ebb9@byu.net>
52134
52135         strtod touchups.
52136         * lib/strtod.c (strtod): Avoid compiler warnings.
52137         Reported by Jim Meyering.
52138
52139 2008-03-30  Bruno Haible  <bruno@clisp.org>
52140
52141         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52142         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52143         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52144         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52145         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52146         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52147         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52148         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52149
52150         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52151         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52152         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52153         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52154         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52155         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52156         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52157         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52158
52159         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52160         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52161         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52162         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52163         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52164         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52165         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52166         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52167
52168         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52169         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52170
52171         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52172         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52173
52174         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52175         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52176
52177         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52179         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52180
52181         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52182         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52183         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52184
52185         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52186         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52187         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52188
52189         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52190         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52191         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52192
52193         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52194         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52195         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52196         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52197         (Depends-on): Add EOVERFLOW.
52198         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52199         (Depends-on): Add EOVERFLOW.
52200         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52201         (Depends-on): Add EOVERFLOW.
52202         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52203         (Depends-on): Add EOVERFLOW.
52204         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52205         (Depends-on): Add EOVERFLOW.
52206         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52207         (Depends-on): Add EOVERFLOW.
52208         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52209         (Depends-on): Add EOVERFLOW.
52210         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52211         (Depends-on): Add EOVERFLOW.
52212
52213         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52215         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52216
52217         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52219         * modules/snprintf (Depends-on): Add EOVERFLOW.
52220
52221         * lib/poll.c (EOVERFLOW): Remove fallback.
52222         * modules/poll (Depends-on): Add EOVERFLOW.
52223
52224         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52225         * modules/getugroups (Depends-on): Add EOVERFLOW.
52226
52227         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52228         * modules/getdelim (Depends-on): Add EOVERFLOW.
52229
52230         * lib/ftell.c (EOVERFLOW): Remove fallback.
52231         * modules/ftell (Depends-on): Add EOVERFLOW.
52232
52233         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52234         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52235         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52236
52237         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52238
52239         * modules/EOVERFLOW-tests: New file.
52240         * tests/test-EOVERFLOW.c: New file.
52241
52242         * modules/EOVERFLOW: New file.
52243         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52244
52245 2008-03-30  Bruno Haible  <bruno@clisp.org>
52246
52247         Fix bug introduced on 2007-06-10.
52248         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52249         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52250
52251 2008-03-30  Bruno Haible  <bruno@clisp.org>
52252
52253         Improve freadseek's efficiency after ungetc.
52254         * lib/freadseek.c: Include freadahead.h.
52255         (freadptrinc): New function, extracted from freadseek.
52256         (freadseek): Use it in a loop. Use freadahead to determine the number
52257         of loop iterations.
52258         * modules/freadseek (Depends-on): Add freadahead.
52259         (configure.ac): Require AC_C_INLINE.
52260
52261 2008-03-30  Bruno Haible  <bruno@clisp.org>
52262
52263         * lib/freadseek.c (freadseek): Don't ignore the return value of
52264         freadptr.
52265
52266 2008-03-29  Eric Blake  <ebb9@byu.net>
52267
52268         Add hex float support.
52269         * modules/strtod (Depends-on): Add c-ctype.
52270         (Link): Mention POW_LIB.
52271         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52272         whitespace between 'e' and exponent.
52273         * tests/test-strtod.c (main): Enable hex float tests.
52274         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52275         now provides.
52276
52277         Document various strtod bugs, with some fixes.
52278         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52279         "-0x", "inf", "nan", and hex constants.
52280         * doc/posix-functions/atof.texi (atof): Likewise.
52281         * modules/stdlib (Makefile.am): Support strtod.
52282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52283         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52284         detect additional strtod bugs.
52285         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52286         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52287         bool where appropriate.  Parse 'inf' and 'nan'.
52288         * tests/test-strtod.c: New file.
52289         * modules/strtod (Depends-on): Add stdbool, stdlib.
52290         (configure.ac): Turn on module indicator.
52291         * modules/strtod-tests: New module.
52292
52293 2008-03-29  Eric Blake  <ebb9@byu.net>
52294
52295         Fix ftell on mingw.
52296         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52297         * modules/ftell-tests (Depends-on): Add binary-io.
52298         * modules/ftello-tests (Depends-on): Likewise.
52299         * tests/test-ftell.c (main): Enhance test to cover behavior after
52300         ungetc.  Enforce binary mode.
52301         * tests/test-ftello.c (main): Likewise.
52302
52303         Pass test-freadseek on cygwin.
52304         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52305         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52306         ungetc buffer.
52307
52308         * tests/test-fflush2.c (main): Fix typo.
52309
52310 2008-03-29  Bruno Haible  <bruno@clisp.org>
52311
52312         * tests/test-fflush2.c (main): Temporarily disable the contents of
52313         this test.
52314         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52315         Reported by Eric Blake.
52316
52317 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52318
52319         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52320         (GC_SHA224_DIGEST_SIZE): Add.
52321
52322         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52323         (gc_hash_digest_length): Likewise.
52324         (gc_hash_buffer): Likewise.
52325
52326 2008-03-25  Bruno Haible  <bruno@clisp.org>
52327
52328         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52329         detail which gettext release to use.
52330         Reported by Simon Josefsson.
52331
52332 2008-03-26  Jim Meyering  <meyering@redhat.com>
52333
52334         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52335         * modules/gnumakefile (clean-GNUmakefile): Also, use
52336         test ... && ... || : syntax rather than if-then ... fi.
52337
52338         gnumakefile: Don't double-quote-expand $(VPATH) value.
52339         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52340
52341 2008-03-24  Eric Blake  <ebb9@byu.net>
52342
52343         Alter GNUmakefile to install into top directory.
52344         * modules/maintainer-makefile: Split, and add dependency...
52345         * modules/gnumakefile: to this new module.
52346         * build-aux/GNUmakefile: Move...
52347         * top/GNUmakefile: ...here.
52348         * build-aux/maint.mk: Move...
52349         * top/maint.mk: ...here.
52350         * MODULES.html.sh (Support for maintaining...): Document new
52351         module.
52352
52353 2008-03-23  Bruno Haible  <bruno@clisp.org>
52354
52355         * gnulib-tool: New options --vc-files, --no-vc-files.
52356         (func_usage): Document them.
52357         (vc_files): New variable.
52358         (func_import): Consider vc_files.
52359         (func_create_testdir): Set vc_files to empty.
52360         Suggested by Jim Meyering and Karl Berry.
52361
52362 2008-03-23  Bruno Haible  <bruno@clisp.org>
52363
52364         Fix regex compilation error on HP-UX 11.
52365         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52366         * modules/regex (Files): Add m4/mbstate_t.m4.
52367         Reported by Ton Voon <ton.voon@altinity.com>.
52368
52369 2008-03-23  Bruno Haible  <bruno@clisp.org>
52370
52371         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52372
52373 2008-03-23  Eric Blake  <ebb9@byu.net>
52374             Bruno Haible  <bruno@clisp.org>
52375
52376         Install files from top/ in the destination directory.
52377         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52378         augmentation also for the files from top/.
52379         (func_import, func_create_testdir): Rewrite file names:
52380         top/filename -> filename.
52381
52382 2008-03-23  Bruno Haible  <bruno@clisp.org>
52383
52384         Tweak "gnulib --version" output.
52385         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52386
52387 2008-03-23  Bruno Haible  <bruno@clisp.org>
52388
52389         Tweak "gnulib --version" output.
52390         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52391         rather than contents of ChangeLog, when possible.
52392
52393 2008-03-21  Eric Blake  <ebb9@byu.net>
52394
52395         More --version tweaks.
52396         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52397         date of last ChangeLog entry.
52398
52399 2008-03-21  Jim Meyering  <meyering@redhat.com>
52400
52401         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52402
52403 2008-03-20  Eric Blake  <ebb9@byu.net>
52404
52405         VPATH fix.
52406         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52407
52408 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52409
52410         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52411         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52412
52413 2008-03-20  Eric Blake  <ebb9@byu.net>
52414
52415         Sync GNUmakefile with coreutils.
52416         * build-aux/GNUmakefile (have-Makefile): Rename...
52417         (_have-Makefile): ...to this, for namespace consideration.
52418         (GNUmakefile.cfg): Include, if present.
52419         (_autoreconf): Define a default.
52420         (_is-dist-target): New rule for rebuilds to pick up intra-release
52421         version.
52422         (maint-cfg.mk): Rename...
52423         (cfg.mk): ...to this.
52424
52425 2008-03-18  Jim Meyering  <meyering@redhat.com>
52426
52427         New script and module: mktempd
52428         * MODULES.html.sh (maint+release support): Add mktempd.
52429         * build-aux/mktempd: New file.
52430         * modules/mktempd: New file.
52431
52432 2008-03-15  Jim Meyering  <meyering@redhat.com>
52433
52434         Undo last change.
52435         * lib/sha1.c, lib/md5.c: 63 != ~63.
52436         Reported by Andreas Schwab.
52437
52438         sha1.c, md5.c: Hoist a redundant expression.
52439         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52440         "ctx->buflen" only once, before calling *_process_block.
52441         * lib/md5.c (md5_process_bytes): Likewise.
52442
52443 2008-03-14  Eric Blake  <ebb9@byu.net>
52444
52445         Bump copyright year in files generated by gnulib-tool.
52446         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52447         gnulib-tool, rather than hard-coding it.
52448
52449         Fix 'gnulib-tool --version' output to work with git.
52450         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52451         (startup): ...here.
52452         (func_version): Use it to invoke git-version-gen, rather than
52453         relying on CVS keyword expansion.  Modernize wording.
52454         (cvsdatestamp, last_checkin_date, version): Kill unused
52455         variables.
52456
52457 2008-03-12  Jim Meyering  <meyering@redhat.com>
52458
52459         Recognize optional cast of the argument to free.
52460         * build-aux/useless-if-before-free: Update regexps.
52461
52462         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52463
52464 2008-03-11  Bruno Haible  <bruno@clisp.org>
52465
52466         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52467         by a single package.
52468         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52469         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52470         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52471         Reported by Sam Steingold <sds@gnu.org>.
52472
52473 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52474
52475         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52476         repositories.
52477
52478 2008-03-11  Bruno Haible  <bruno@clisp.org>
52479
52480         Avoid conflicts between local macro definitions.
52481         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52482         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52483
52484 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52485             Bruno Haible  <bruno@clisp.org>
52486
52487         Make va_copy work with some version of xlc on AIX 5.1.
52488         * lib/stdarg.in.h: New file.
52489         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52490         On AIX, use a <stdarg.h> file substitute.
52491         * modules/stdarg (Files): Add lib/stdarg.in.h.
52492         (Depends-on): Add include_next.
52493         (Makefile.am): Build a stdarg.h substitute if requested.
52494         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52495
52496 2008-03-10  Bruno Haible  <bruno@clisp.org>
52497
52498         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52499         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52500         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52501
52502 2008-03-10  Bruno Haible  <bruno@clisp.org>
52503
52504         * modules/stdlib (Depends-on): Add include_next, remove
52505         absolute-header.
52506
52507 2008-03-09  Bruno Haible  <bruno@clisp.org>
52508
52509         * lib/freadahead.h (freadahead): Document more precisely.
52510         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52511         the sum of both buffer sizes.
52512         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52513         * NEWS: Document the change.
52514
52515 2008-03-09  Bruno Haible  <bruno@clisp.org>
52516
52517         Extend freadptr to return also the buffer size.
52518         * lib/freadptr.h (freadptr): Add sizep argument.
52519         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52520         (freadptr): Add sizep argument. Determine buffer size like freadahead
52521         does.
52522         * tests/test-freadptr.c: Don't include freadahead.h.
52523         (main): Adapt for new calling convention of freadptr.
52524         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52525         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52526         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52527         tests/test-freadptr2.sh.
52528         (Depends): Remove freadahead.
52529         (TESTS): Add test-freadptr2.sh.
52530         (check_PROGRAMS): Add test-freadptr2.
52531
52532 2008-03-09  Bruno Haible  <bruno@clisp.org>
52533
52534         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52535         Report and solution by Simon Josefsson.
52536
52537 2008-03-06  Bruno Haible  <bruno@clisp.org>
52538
52539         Make fflush after ungetc work on BSD platforms.
52540         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52541         * tests/test-fflush2.c: New file.
52542         * tests/test-fflush2.sh: New file.
52543         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52544         tests/test-fflush2.c.
52545         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52546         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52547
52548 2008-03-06  Eric Blake  <ebb9@byu.net>
52549
52550         Likewise for ftello.
52551         * modules/ftello (Dependencies): Add extensions.
52552         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52553
52554 2008-03-06  Bruno Haible  <bruno@clisp.org>
52555
52556         * modules/fseeko (Dependencies): Add extensions.
52557         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52558         Needed on glibc systems.
52559
52560 2008-03-06  Bruno Haible  <bruno@clisp.org>
52561
52562         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52563         email address.
52564         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52565
52566 2008-03-06  Bruno Haible  <bruno@clisp.org>
52567
52568         * users.txt: Add libgnupdf.
52569
52570 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52571
52572         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52573         (Header File Substitutes, Function Substitutes,
52574         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52575         (Build robot for gnulib): Fix typo.
52576
52577 2008-03-06  Bruno Haible  <bruno@clisp.org>
52578
52579         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52580         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52581
52582 2008-03-06  Bruno Haible  <bruno@clisp.org>
52583
52584         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52585         * doc/gnulib.texi: Include it.
52586
52587 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52588
52589         * modules/func (License): Change license to unlimited; there was
52590         no LGPL parts in the module anyway.
52591
52592 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52593
52594         * modules/__func__: Renamed to modules/func.
52595         * modules/__func__-tests: Renamed to modules/func-tests.
52596         * tests/test-__func__.c: Renamed to tests/test-func.c.
52597         * m4/__func__.m4: Renamed to m4/func.m4.
52598         * doc/gnulib.texi (__func__): Section renamed to func.
52599         Suggested by Eric Blake <ebb9@byu.net>.
52600
52601 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52602
52603         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52604         about __func__.  Make example self-contained.  Suggested by Eric
52605         Blake <ebb9@byu.net>.
52606
52607         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52608         Suggested by Eric Blake <ebb9@byu.net>.
52609
52610 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52611
52612         * modules/__func__: New file.
52613         * modules/__func__-tests: New file.
52614         * tests/test-__func__.c: New file.
52615         * m4/__func__.m4: New file.
52616         * doc/gnulib.texi (__func__): Document __func__ module.
52617
52618 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52619
52620         * modules/byteswap (License): Re-license as LGPLv2+.
52621
52622 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52623
52624         * doc/Makefile: Add pdf target.
52625
52626 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52627
52628         * modules/inline (License): Use 'unlimited', since there are only
52629         *.m4 files in this module.
52630
52631 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52632             Bruno Haible  <bruno@clisp.org>
52633
52634         Add support for HP C 7.1 on OpenVMS 8.3.
52635         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52636
52637 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52638
52639         Update VMS specifics.
52640         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52641
52642 2008-03-02  Jim Meyering  <meyering@redhat.com>
52643
52644         Remove the last dependency on the "free" module.
52645         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52646         Reported by Bob Proulx.
52647
52648         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52649
52650         Remove useless "if" tests before free.  Deprecate "free" module.
52651         * doc/posix-functions/free.texi: Mention that this
52652         module is no longer useful.
52653         * modules/free (Notice): Say this module is obsolete.
52654         * modules/readutmp (Depends-on): Remove free.
52655         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52656         * lib/putenv.c (putenv): Likewise.
52657         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52658         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52659         * tests/test-c-strcasestr.c (main): Likewise.
52660         * tests/test-c-strstr.c (main): Likewise.
52661         * tests/test-mbscasestr1.c (main): Likewise.
52662         * tests/test-mbscasestr2.c (main): Likewise.
52663         * tests/test-mbsstr1.c (main): Likewise.
52664         * tests/test-mbsstr2.c (main): Likewise.
52665         * tests/test-memmem.c (main): Likewise.
52666         * tests/test-strcasestr.c (main): Likewise.
52667         * tests/test-striconv.c (main): Likewise.
52668         * tests/test-striconveh.c (main): Likewise.
52669         * tests/test-striconveha.c (main): Likewise.
52670         * tests/test-strstr.c (main): Likewise.
52671
52672         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52673
52674         bootstrap: sync from coreutils again
52675         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52676
52677 2008-03-01  Jim Meyering  <meyering@redhat.com>
52678
52679         bootstrap: sync from coreutils
52680         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52681         also when the target doesn't exist.
52682
52683 2008-03-01  Eric Blake  <ebb9@byu.net>
52684
52685         Fix bugs in last patch.
52686         * lib/memchr2.c (memchr2): Fix typo.
52687         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52688         extension.
52689         Reported by Bruce Korb.
52690
52691         New module 'memchr2'.
52692         * modules/memchr2: New file.
52693         * modules/memchr2-tests: Likewise.
52694         * lib/memchr2.h: Likewise.
52695         * lib/memchr2.c: Likewise, based on memchr.c.
52696         * tests/test-memchr2.c: New test.
52697         * MODULES.html.sh (String handling): Add memchr2.
52698
52699 2008-02-29  Bruno Haible  <bruno@clisp.org>
52700
52701         * modules/freadseek-tests: New file.
52702         * tests/test-freadseek.sh: New file.
52703         * tests/test-freadseek.c: New file.
52704
52705         New module 'freadseek'.
52706         * modules/freadseek: New file.
52707         * lib/freadseek.h: New file.
52708         * lib/freadseek.c: New file.
52709         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52710
52711 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52712
52713         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52714         wydawca.
52715
52716         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52717         program_invocation_name and program_invocation_short_name are
52718         present.
52719
52720 2008-02-28  Bruno Haible  <bruno@clisp.org>
52721
52722         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52723         * tests/test-freadptr.sh: Also test non-seekable stdin.
52724
52725 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52726
52727         * build-aux/bootstrap (source_base, m4_base)
52728         (doc_base, tests_base): New variables.
52729         (gnulib_tool_options): Do not hardcode base directories, use
52730         the above variables instead.
52731
52732 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52733
52734         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52735
52736 2008-02-28  Bruno Haible  <bruno@clisp.org>
52737
52738         * modules/freadptr-tests: New file.
52739         * tests/test-freadptr.sh: New file.
52740         * tests/test-freadptr.c: New file.
52741
52742         New module 'freadptr'.
52743         * modules/freadptr: New file.
52744         * lib/freadptr.h: New file.
52745         * lib/freadptr.c: New file.
52746         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52747
52748 2008-02-26  Karl Berry  <karl@freefriends.org>
52749
52750         Sync from Libtool:
52751         * libltdl/argz.c (argz_add, argz_count): New functions.
52752         * libltdl/argz.in.h: Declare them.
52753         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52754
52755 2008-02-22  Bruno Haible  <bruno@clisp.org>
52756
52757         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52758         is a pointer type.  Needed for HP-UX 10.
52759         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52760         * doc/posix-functions/gmtime_r.texi: Likewise.
52761         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52762
52763 2008-02-24  Bruno Haible  <bruno@clisp.org>
52764
52765         * modules/environ-tests: New file.
52766         * tests/test-environ.c: New file.
52767
52768         New module 'environ'.
52769         * modules/environ: New file.
52770         * lib/unistd.in.h (environ): New declaration.
52771         * m4/environ.m4: New file.
52772         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52773         after use.
52774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52775         HAVE_DECL_ENVIRON.
52776         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52777         HAVE_DECL_ENVIRON.
52778         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52779         wrong claim that 'environ' is missing on some systems.
52780         * modules/execute (Depends-on): Add environ.
52781         * lib/execute.c (environ): Remove fallback declaration.
52782         * modules/pipe (Depends-on): Add environ.
52783         * lib/pipe.c (environ): Remove fallback declaration.
52784         * modules/setenv (Depends-on): Add environ.
52785         * lib/setenv.c (environ): Remove fallback declaration.
52786         * modules/unsetenv (Depends-on): Add environ.
52787         * lib/unsetenv.c (environ): Remove fallback declaration.
52788         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52789         m4/environ.m4.
52790         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52791         (gl_PREREQ_UNSETENV): Likewise.
52792
52793 2008-02-24  Bruno Haible  <bruno@clisp.org>
52794
52795         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52796
52797 2008-02-20  Bob Proulx  <bob@proulx.com>
52798
52799         Enable use of older two part flavor 'git describe'.
52800         * build-aux/git-version-gen: If using the older two part flavor of
52801         git version then recreate the third part now present in the
52802         newer three part flavor of git describe.
52803
52804 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52805
52806         * lib/fts.c (fts_build): Typo correction to comment.
52807
52808 2008-02-17  Bruno Haible  <bruno@clisp.org>
52809
52810         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52811         generating no-op conflicts.
52812
52813 2008-02-17  Bruno Haible  <bruno@clisp.org>
52814
52815         Speed up by 10%.
52816         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52817         result_entries, rather than an index-based loop.
52818
52819 2008-02-17  Bruno Haible  <bruno@clisp.org>
52820
52821         Speed up by 25%.
52822         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52823         'hashcode_cached'.
52824         (entry_create): New function.
52825         (entry_hashcode): Use the cached hashcode if possible.
52826         (read_changelog_file, try_split_merged_entry): Use entry_create.
52827
52828 2008-02-17  Bruno Haible  <bruno@clisp.org>
52829
52830         Speed up from O(n^2) to O(n) for long ChangeLog files.
52831         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52832         (read_changelog_file): Change implementation of entries_reversed list
52833         to rbtreehash.
52834         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52835
52836 2008-02-17  Bruno Haible  <bruno@clisp.org>
52837
52838         New option --split-merged-entry.
52839         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52840         (find_paragraph_end, try_split_merged_entry): New functions.
52841         (long_options): Add option --split-merged-entry.
52842         (usage): Document option --split-merged-entry.
52843         (main): Implement option --split-merged-entry.
52844         Reported by Eric Blake.
52845
52846 2008-02-17  Bruno Haible  <bruno@clisp.org>
52847
52848         * lib/git-merge-changelog.c: Include c-strstr.h.
52849         (main): Support the "git pull --rebase" situation.
52850         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52851         Reported by Eric Blake.
52852
52853 2008-02-16  Eric Blake  <ebb9@byu.net>
52854
52855         Avoid doubling \ in common case of "c-maybe" quoting style.
52856         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52857         eliding outer quotes.
52858         * lib/quotearg.h: Document this.
52859         * tests/test-quotearg.c (result_strings, inputs, results_g)
52860         (flag_results, locale_results): Test it by adding a new string to
52861         each test group.
52862         (compare_strings): Test new string.
52863
52864 2008-02-13  Eric Blake  <ebb9@byu.net>
52865
52866         Avoid trigraph quoting in default output.
52867         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52868         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52869         unless explicitly requested.
52870         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52871
52872 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52873
52874         Don't rely on signed integer overflowing to negative value.
52875         * lib/getugroups.c (getugroups): Include <limits.h>.
52876         Instead, compare against INT_MAX, and increment only if the test passes.
52877
52878 2008-02-13  Jim Meyering  <meyering@redhat.com>
52879         and Eric Blake  <ebb9@byu.net>
52880
52881         Avoid shadowing warning and compile errors on Linux.
52882         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52883         forwarding macros on Linux.
52884         (dcgettext): Define a stub, for Linux.
52885         (results_g, main): Avoid warnings.
52886
52887 2008-02-12  Eric Blake  <ebb9@byu.net>
52888
52889         Silence warning in last patch.
52890         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52891
52892         Quotearg part 4: add tests, fix c-maybe colon quoting.
52893         * lib/quotearg.h: Improve documentation.
52894         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52895         escapes when adding outer quotes.  When quoting trigraphs, use
52896         valid C notation.  When quoting NUL, omit extra characters if next
52897         character is not digit.  Alter prototype.
52898         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52899         callers.
52900         * modules/quotearg-tests: New module.
52901         * tests/test-quotearg.c: New test.
52902
52903 2008-02-07  Eric Blake  <ebb9@byu.net>
52904
52905         Quotearg part 3: add flag to control outer quote elision.
52906         * lib/quotearg.h (c_maybe_quoting_style): New style.
52907         (enum quoting_flags): Better documentation of flags.
52908         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52909         c-maybe style.
52910         (quotearg_buffer_restyled): Handle new flag to elide outer
52911         quotes.
52912
52913         Quotearg part 2: add flag that can control NUL elision.
52914         * lib/quotearg.h (set_quoting_flags): New prototype.
52915         * lib/quotearg.c (struct quoting_options): Add flag field.
52916         (set_quoting_flags): New function.
52917         (quotearg_buffer_restyled): Add flags parameter.
52918         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52919         (quotearg_n_options): Set the flag, since length cannot be
52920         returned.
52921         (quoting_options_from_style): Default flags correctly.
52922
52923         Quotearg part 1: more wrappers, restore quotearg_char state.
52924         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52925         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52926         (quotearg_colon_mem): New wrappers.
52927         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52928         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52929         functions.
52930         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52931         (quotearg_colon_mem): New functions.
52932
52933 2008-02-11  Bruno Haible  <bruno@clisp.org>
52934
52935         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52936         library in the current directory: it does not work with parallel make.
52937         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52938
52939 2008-02-11  Bruno Haible  <bruno@clisp.org>
52940
52941         * .gitattributes: New file.
52942
52943 2008-02-11  Jim Meyering  <meyering@redhat.com>
52944
52945         useless-if-before-free: Fix reversed exit values.
52946         * build-aux/useless-if-before-free: Use correct values
52947         for EXIT_MATCH and EXIT_NO_MATCH.
52948
52949         * build-aux/useless-if-before-free: Close stdout carefully.
52950
52951 2008-02-10  Bruno Haible  <bruno@clisp.org>
52952
52953         New module 'git-merge-changelog'.
52954         * modules/git-merge-changelog: New file.
52955         * lib/git-merge-changelog.c: New file.
52956
52957 2008-02-10  Jim Meyering  <meyering@redhat.com>
52958
52959         useless-if-before-free: New option: --list (-l).
52960
52961         useless-if-before-free: Don't exit immediately upon open failure.
52962         * build-aux/useless-if-before-free: Exit 2 for errors.
52963         Upon failure to open a file, don't exit immediately.
52964         Rather, just warn and continue with any remaining files.
52965
52966 2008-02-10  Bruno Haible  <bruno@clisp.org>
52967
52968         New abstract list operation 'node_set_value'.
52969         * lib/gl_list.h (gl_list_node_set_value): New function.
52970         (struct gl_list_implementation): New field node_set_value.
52971         * lib/gl_list.c (gl_list_node_set_value): New function.
52972         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52973         (gl_array_list_implementation): Update.
52974         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52975         (gl_carray_list_implementation): Update.
52976         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52977         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52978         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52979         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52980         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52981         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52982         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52983         Update.
52984         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52985         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52986         (gl_sublist_list_implementation): Update.
52987
52988 2008-02-10  Bruno Haible  <bruno@clisp.org>
52989
52990         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52991         Needed when ELEMENT is #defined to 'some_type *'.
52992
52993 2008-02-10  Jim Meyering  <meyering@redhat.com>
52994
52995         New script and module: useless-if-before-free
52996         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52997         * build-aux/useless-if-before-free: New file.
52998         * modules/useless-if-before-free: New file.
52999
53000         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53001
53002         xstrtol_error: Fix typo.
53003         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53004         s/exit_failure/exit_status/.
53005
53006 2008-02-09  Jim Meyering  <meyering@redhat.com>
53007
53008         New script and module: gitlog-to-changelog
53009         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53010         * modules/gitlog-to-changelog: New file.
53011         * build-aux/gitlog-to-changelog: New file.
53012
53013 2008-02-08  Jim Meyering  <meyering@redhat.com>
53014
53015         Avoid two "parameter unused" warnings.
53016         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53017         Mark "st" as used.
53018
53019         Use "git COMMAND", not "git-COMMAND".
53020         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53021         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53022         * build-aux/git-version-gen: Use "git status", not "git-status".
53023
53024 2008-02-07  Bruno Haible  <bruno@clisp.org>
53025
53026         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53027         Avoids a crash on Windows Vista.
53028         Reported by Adam Strzelecki <ono@java.pl> via
53029         Simon Josefsson <simon@josefsson.org>.
53030
53031 2008-02-06  Bruno Haible  <bruno@clisp.org>
53032
53033         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53034         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53035         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53037         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53038         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53039         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53040         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53041         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53042         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53043         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53044         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53045         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53046         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53047         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53048         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53049         left-adjust flag.
53050         * tests/test-snprintf-posix.h (test_function): Likewise.
53051         * tests/test-sprintf-posix.h (test_function): Likewise.
53052         * tests/test-vasprintf-posix.c (test_function): Likewise.
53053         * doc/posix-functions/fprintf.texi: Update.
53054         * doc/posix-functions/printf.texi: Update.
53055         * doc/posix-functions/snprintf.texi: Update.
53056         * doc/posix-functions/sprintf.texi: Update.
53057         * doc/posix-functions/vfprintf.texi: Update.
53058         * doc/posix-functions/vprintf.texi: Update.
53059         * doc/posix-functions/vsnprintf.texi: Update.
53060         * doc/posix-functions/vsprintf.texi: Update.
53061         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53062
53063 2008-02-06  Bruno Haible  <bruno@clisp.org>
53064
53065         Fix bug introduced on 2008-01-26.
53066         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53067
53068 2008-02-06  Bruno Haible  <bruno@clisp.org>
53069
53070         Fix bug introduced on 2007-06-10.
53071         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53072         !NEED_PRINTF_FLAG_ZERO.
53073
53074 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53075
53076         getloadavg: use libperfstat on AIX5
53077         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53078
53079 2008-02-03  Bruno Haible  <bruno@clisp.org>
53080
53081         * lib/diffseq.h: Add comments about required #includes.
53082         Reported by Michael Biggs <gnulib@doubleplum.net>.
53083
53084 2008-02-01  Bruno Haible  <bruno@clisp.org>
53085
53086         * users.txt: Add gnuit.
53087
53088 2008-01-31  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/md4.c (set_uint32): Mark as inline.
53091         * lib/md5.c (set_uint32): Likewise.
53092         * lib/sha1.c (set_uint32): Likewise.
53093         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53094         * m4/md5.m4 (gl_MD5): Likewise.
53095         * m4/sha1.m4 (gl_SHA1): Likewise.
53096
53097 2008-01-31  Jim Meyering  <meyering@redhat.com>
53098
53099         Use "sizeof VAR", rather than a literal "4".
53100         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53101         * lib/md4.c (md4_read_ctx): Likewise.
53102         * lib/sha1.c (sha1_read_ctx): Likewise.
53103
53104 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53105
53106         * tests/test-sha1.c: New file, based on test-md5.c.
53107
53108         * modules/crypto/sha1-tests: New file.
53109
53110 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53111
53112         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53113
53114 2008-01-31  Jim Meyering  <meyering@redhat.com>
53115
53116         Prefer "sizeof v" over the equivalent "4".
53117         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53118         * lib/md5.c (set_uint32): Likewise.
53119         * lib/sha1.c (set_uint32): Likewise.
53120
53121 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53122
53123         * lib/sha1.c (set_uint32): Mark function as static.
53124
53125 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53126
53127         md2: clarify comments to say that alignment is not required.
53128         * lib/md2.h: Remove warning about alignment in comment.
53129         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53130         never been required.
53131
53132 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53133
53134         md4: adapt alignment constraint fix from sha1.
53135         * lib/md4.c (set_uint32): New function, from sha1.c
53136         (md4_read_ctx): Use it.
53137         (md4_finish_ctx): Doc fix.
53138         * lib/md4.h: Doc fix.
53139
53140 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53141
53142         md5: adapt alignment constraint fix from sha1.
53143         * lib/md5.c (set_uint32): New function, from sha1.c
53144         (md5_read_ctx): Use it.
53145         (md5_finish_ctx): Doc fix.
53146         * lib/md5.h: Doc fix.
53147
53148 2008-01-30  Peter Palfrader  <weasel@debian.org>
53149
53150         sha1: remove the result buffer alignment constraint
53151         * lib/sha1.c (set_uint32): New function.
53152         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53153         constraint.
53154         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53155         * lib/sha1.h: Likewise.
53156
53157 2008-01-30  Andreas Schwab  <schwab@suse.de>
53158             Bruno Haible  <bruno@clisp.org>
53159
53160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53161         correct definition of LDBL_MIN_EXP.
53162
53163 2008-01-30  Karl Berry  <karl@gnu.org>
53164
53165         * config/srclist-update: try to preserve x bit on updates.
53166         * config/srclistvars.sh: update for karl.
53167
53168 2008-01-29  Jim Meyering  <meyering@redhat.com>
53169
53170         vasnprintf.c: Avoid warning about unused label
53171         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53172         "overflow" label definition and associated code with the
53173         same cpp condition that guards the sole use of that label.
53174
53175 2008-01-26  Bruno Haible  <bruno@clisp.org>
53176
53177         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53178         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53179         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53180         * lib/isnanl-nolibm.h (isnanl): Likewise.
53181         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53182
53183 2008-01-26  Bruno Haible  <bruno@clisp.org>
53184
53185         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53186         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53187
53188 2008-01-26  Bruno Haible  <bruno@clisp.org>
53189
53190         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53191         GCC >= 4.0 built-in.
53192         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53193
53194 2008-01-26  Bruno Haible  <bruno@clisp.org>
53195
53196         Rename isnan, applicable to 'double' only, to isnand.
53197         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53198         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53199         (configure.ac): Update.
53200         (Include): Replace "isnan.h" with "isnand.h".
53201         * m4/isnand.m4: Renamed from m4/isnan.m4.
53202         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53203         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53204         instead of isnan.c.
53205         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53206         instead of HAVE_ISNAN_IN_LIBC.
53207         (isnand): Renamed from isnan.
53208         * lib/isnand.c: New file.
53209         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53210         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53211         (Makefile.am): Update.
53212         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53213         Include isnand.h instead of isnan.h.
53214         (main): Test isnand instead of isnan.
53215         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53216         isnan-nolibm.
53217         * modules/frexp (Depends-on): Likewise.
53218         * modules/frexp-tests (Depends-on): Likewise.
53219         * modules/frexp-nolibm (Depends-on): Likewise.
53220         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53221         * modules/isfinite (Depends-on): Likewise.
53222         * modules/round-tests (Depends-on): Likewise.
53223         * modules/signbit (Depends-on): Likewise.
53224         * modules/signbit-tests (Depends-on): Likewise.
53225         * modules/snprintf-posix (Depends-on): Likewise.
53226         * modules/sprintf-posix (Depends-on): Likewise.
53227         * modules/trunc-tests (Depends-on): Likewise.
53228         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53229         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53230         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53231         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53232         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53233         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53234         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53235         * modules/vasnprintf-posix (Depends-on): Likewise.
53236         * modules/vasprintf-posix (Depends-on): Likewise.
53237         * modules/vfprintf-posix (Depends-on): Likewise.
53238         * modules/vsnprintf-posix (Depends-on): Likewise.
53239         * modules/vsprintf-posix (Depends-on): Likewise.
53240         * lib/frexp.c: Include isnand.h instead of isnan.h.
53241         (ISNAN): Set to isnand instead of isnan.
53242         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53243         (gl_isfinited): Use isnand instead of isnan.
53244         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53245         (gl_signbitd): Use isnand instead of isnan.
53246         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53247         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53248         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53249         (main): Use isnand instead of isnan.
53250         * tests/test-round1.c: Include isnand.h.
53251         (main): Use isnand instead of isnan.
53252         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53253         (ISNAN): Set to isnand instead of isnan.
53254         * tests/test-trunc1.c: Include isnand.h.
53255         (main): Use isnand instead of isnan.
53256         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53257         (equal): Use isnand instead of isnan.
53258         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53259         isnand-nolibm.
53260         * NEWS: Mention the change.
53261
53262 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53263             Bruno Haible  <bruno@clisp.org>
53264
53265         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53266         the GCC builtins for signbits are present and set
53267         REPLACE_SIGNBIT_USING_GCC if so.
53268         * lib/math.in.h (signbit): Define using GCC builtins if
53269         REPLACE_SIGNBIT_USING_GCC is set.
53270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53271         REPLACE_SIGNBIT_USING_GCC.
53272         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53273
53274 2008-01-25  Jim Meyering  <meyering@redhat.com>
53275
53276         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53277         * lib/poll.c: Include <config.h>, not "config.h".
53278         * tests/test-getaddrinfo.c: Likewise.
53279
53280 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53281
53282         * modules/sockets-tests: New file.
53283
53284 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53285
53286         * modules/sockets: New module, can be used to call WSA_Startup and
53287         WSA_Cleanup when needed.
53288
53289         * lib/sockets.h, lib/sockets.c: New files.
53290
53291         * m4/sockets.m4: New file.
53292
53293         * tests/test-sockets.c: New file.
53294
53295 2008-01-19  Bruno Haible  <bruno@clisp.org>
53296
53297         * doc/posix-headers: Renamed from doc/headers.
53298         * doc/posix-functions: Renamed from doc/functions.
53299         * doc/gnulib.texi: Update.
53300
53301 2008-01-19  Bruno Haible  <bruno@clisp.org>
53302
53303         * doc/glibc-functions/strcasestr.texi: Include contents of
53304         doc/functions/strcasestr.texi, fixing the list of platforms.
53305         * doc/functions/strcasestr.texi: Remove file.
53306
53307 2008-01-19  Bruno Haible  <bruno@clisp.org>
53308
53309         * doc/glibc-functions/memmem.texi: Include contents of
53310         doc/functions/memmem.texi.
53311         * doc/functions/memmem.texi: Remove file.
53312
53313 2008-01-18  Bruno Haible  <bruno@clisp.org>
53314
53315         * doc/glibc-functions/*.texi: New files.
53316         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53317         to use the new files.
53318
53319 2008-01-17  Bruno Haible  <bruno@clisp.org>
53320
53321         * tests/test-gethostname.c (main): Fix printf statement.
53322
53323 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53324
53325         * modules/gethostname-tests: New file.
53326
53327         * tests/test-gethostname.c: New file.
53328
53329 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53330
53331         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53332         used by the UNAME case.  Reported by Bruno Haible
53333         <bruno@clisp.org>.
53334
53335 2008-01-17  Eric Blake  <ebb9@byu.net>
53336
53337         Convert c-strcasestr to be more efficient.
53338         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53339         (Depends-on): Add c-strcase, remove malloca, strnlen.
53340         * tests/test-c-strcasestr.c (main): Enhance test.
53341         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53342
53343 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53344
53345         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53346         Use it in creating po/Makevars.
53347
53348 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53349
53350         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53351         Applications that requires it should initialize libgcrypt
53352         manually.
53353
53354 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53355
53356         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53357
53358 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53359
53360         Fix problem with getdate on mingw32 reported by Simon Josefsson
53361         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53362         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53363         tzname", when deciding whether to declare tzname.
53364         * lib/strftime.c (tzname): Likewise.
53365
53366 2008-01-15  Bruno Haible  <bruno@clisp.org>
53367
53368         Work around a MacOS X 10.5 bug in frexpl().
53369         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53370         * doc/functions/frexpl.texi: Document the bug.
53371         Reported by Elias Pipping <pipping@gentoo.org>.
53372
53373 2008-01-14  Eric Blake  <ebb9@byu.net>
53374
53375         Touch up previous patch.
53376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53377         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53378
53379         Convert strcasestr module to use Two-Way algorithm.
53380         * modules/strcasestr-simple: New module, based on the old
53381         strcasestr, but with Two-Way rather than KMP.
53382         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53383         * lib/string.in.h (rpl_strcasestr): Declare.
53384         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53385         performance.
53386         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53387         * modules/string (Makefile.am): Support strcasestr.
53388         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53389         * modules/strcasestr-tests (Depends-on): Check for alarm.
53390         * tests/test-strcasestr.c: Augment test.
53391         * lib/str-two-way.h: Clean up stray macro.
53392         * NEWS: Document new module.
53393         * MODULES.html.sh (string handling): Likewise.
53394         * doc/functions/strcasestr.texi: New file.
53395         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53396         here, since it is not a POSIX function.
53397
53398 2008-01-14  Colin Watson  <cjwatson@debian.org>
53399             Bruno Haible  <bruno@clisp.org>
53400
53401         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53402         works fine; if not, set REPLACE_STRSIGNAL.
53403         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53404         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53405         REPLACE_STRSIGNAL.
53406         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53407         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53408         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53409
53410 2008-01-14  Bruno Haible  <bruno@clisp.org>
53411
53412         * modules/strsignal (Include): Change to <string.h>.
53413
53414 2008-01-14  Colin Watson  <cjwatson@debian.org>
53415
53416         * modules/argp (Notice): Add a notice recommending to change
53417         XGETTEXT_OPTIONS.
53418         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53419
53420 2008-01-13  Colin Watson  <cjwatson@debian.org>
53421
53422         * modules/strsignal-tests: New file.
53423         * tests/test-strsignal.c: New file.
53424
53425         * lib/strsignal.c: New file, from glibc with modifications.
53426         * lib/siglist.h: New file, from glibc with modifications.
53427         * lib/string.in.h (strsignal): New declaration.
53428         * m4/strsignal.m4: New file.
53429         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53430         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53431         * modules/strsignal: New file.
53432         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53433         HAVE_DECL_STRSIGNAL.
53434
53435 2008-01-13  Bruno Haible  <bruno@clisp.org>
53436
53437         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53438         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53439         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53440         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53441
53442 2008-01-13  Bruno Haible  <bruno@clisp.org>
53443
53444         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53445         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53446         * lib/argp.h (__attribute__): Likewise.
53447         * lib/c-stack.c (__attribute__): Likewise.
53448         * lib/error.h (__attribute__): Likewise.
53449         * lib/fts.c (__attribute__): Likewise.
53450         * lib/openat.h (__attribute__): Likewise.
53451         * lib/stdio.in.h (__attribute__): Likewise.
53452         * lib/string.in.h (__attribute__): Likewise.
53453         * lib/utimens.c (__attribute__): Likewise.
53454         * lib/vasnprintf.h (__attribute__): Likewise.
53455         * lib/xalloc.h (__attribute__): Likewise.
53456         * lib/xprintf.h (__attribute__): Likewise.
53457         * lib/xstrtol.h (__attribute__): Likewise.
53458         * lib/xvasprintf.h (__attribute__): Likewise.
53459
53460 2008-01-12  Bruno Haible  <bruno@clisp.org>
53461
53462         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53463         * doc/glibc-headers/a.out.texi: New file.
53464         * doc/glibc-headers/aliases.texi: New file.
53465         * doc/glibc-headers/alloca.texi: New file.
53466         * doc/glibc-headers/ar.texi: New file.
53467         * doc/glibc-headers/argp.texi: New file.
53468         * doc/glibc-headers/argz.texi: New file.
53469         * doc/glibc-headers/byteswap.texi: New file.
53470         * doc/glibc-headers/crypt.texi: New file.
53471         * doc/glibc-headers/endian.texi: New file.
53472         * doc/glibc-headers/envz.texi: New file.
53473         * doc/glibc-headers/err.texi: New file.
53474         * doc/glibc-headers/error.texi: New file.
53475         * doc/glibc-headers/execinfo.texi: New file.
53476         * doc/glibc-headers/fpu_control.texi: New file.
53477         * doc/glibc-headers/fstab.texi: New file.
53478         * doc/glibc-headers/fts.texi: New file.
53479         * doc/glibc-headers/getopt.texi: New file.
53480         * doc/glibc-headers/ieee754.texi: New file.
53481         * doc/glibc-headers/ifaddrs.texi: New file.
53482         * doc/glibc-headers/libintl.texi: New file.
53483         * doc/glibc-headers/mcheck.texi: New file.
53484         * doc/glibc-headers/mntent.texi: New file.
53485         * doc/glibc-headers/obstack.texi: New file.
53486         * doc/glibc-headers/paths.texi: New file.
53487         * doc/glibc-headers/printf.texi: New file.
53488         * doc/glibc-headers/pty.texi: New file.
53489         * doc/glibc-headers/resolv.texi: New file.
53490         * doc/glibc-headers/shadow.texi: New file.
53491         * doc/glibc-headers/sysexits.texi: New file.
53492         * doc/glibc-headers/ttyent.texi: New file.
53493
53494 2008-01-12  Jim Meyering  <meyering@redhat.com>
53495
53496         announce-gen: emit Gnulib's git-based version string.
53497         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53498         New option --gnulib-version=V, where V is expected to be
53499         the output of running git describe in the gnulib directory.
53500         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53501         not useful, and plan to stop publishing an xdelta file with each
53502         coreutils release.
53503
53504         * build-aux/announce-gen: Also check for lzma-compressed files.
53505
53506 2008-01-11  Bruno Haible  <bruno@clisp.org>
53507
53508         * tests/test-memmem.c (main): Increase maximum allowed time.
53509         * tests/test-strstr.c (main): Likewise.
53510
53511 2008-01-11  Bruno Haible  <bruno@clisp.org>
53512
53513         * doc/functions/memmem.texi: Add more precisions about platforms.
53514         * doc/functions/strstr.texi: Likewise.
53515
53516 2008-01-10  Eric Blake  <ebb9@byu.net>
53517
53518         * m4/strstr.m4: Delete cruft from copy-n-paste.
53519         Reported by Bruno Haible.
53520
53521 2008-01-10  Bruno Haible  <bruno@clisp.org>
53522
53523         Make c-strstr rely on strstr.
53524         * lib/c-strstr.c: Don't include str-kmp.h.
53525         (c_strstr): Define in terms of strstr.
53526         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53527         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53528
53529 2008-01-10  Bruno Haible  <bruno@clisp.org>
53530
53531         * doc/gnulib.texi (String Functions in C Locale): New section.
53532         * doc/c-ctype.texi: New file.
53533         * doc/c-strcase.texi: New file.
53534         * doc/c-strcaseeq.texi: New file.
53535         * doc/c-strcasestr.texi: New file.
53536         * doc/c-strstr.texi: New file.
53537         * doc/c-strtod.texi: New file.
53538         * doc/c-strtold.texi: New file.
53539
53540 2008-01-10  Eric Blake  <ebb9@byu.net>
53541
53542         * lib/relocatable.h: Fix a comment.
53543
53544 2008-01-10  Eric Blake  <ebb9@byu.net>
53545
53546         Share two-way algorithm.
53547         * lib/str-two-way.h: New file, merged from...
53548         * lib/memmem.c: ...here...
53549         * lib/strstr.c: ...and here.
53550         * modules/memmem (Files): Use it.
53551         * modules/strstr (Files): Likewise.
53552
53553         Avoid quadratic strstr implementations.
53554         * lib/strstr.c: New file.
53555         * m4/strstr.m4: Likewise.
53556         * modules/strstr: Likewise.
53557         * modules/strstr-tests: Likewise.
53558         * tests/test-strstr.c: Likewise.
53559         * lib/string.in.h (rpl_strstr): Declare.
53560         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53562         * modules/string (Makefile.am): Likewise.
53563         * MODULES.html.sh (string handling): Mention new module.
53564         * doc/functions/strstr.texi (strstr): Document the bug.
53565
53566 2008-01-10  Bruno Haible  <bruno@clisp.org>
53567
53568         * lib/relocatable.h (relocate): State whether result is freshly
53569         allocated or not.
53570         * lib/relocatable.c (relocate): Return a freshly allocated string
53571         instead of a pointer to a privately held string.
53572         Reported by Sylvain Beucler <beuc@gnu.org>.
53573
53574 2008-01-10  Colin Watson  <cjwatson@debian.org>
53575
53576         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53577         s/S_ISNLK/S_ISLNK/.
53578
53579 2008-01-09  Bruno Haible  <bruno@clisp.org>
53580
53581         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53582         and other files.
53583         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53584         if it's only a guess.
53585         * modules/memmem: Simplify by depending on memmem-simple.
53586
53587 2008-01-09  Bruno Haible  <bruno@clisp.org>
53588
53589         Work around OpenBSD 4.0 tdelete() bug.
53590         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53591         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53592         macros and don't redefine the enum values.
53593         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53594         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53595         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53596
53597 2008-01-09  Bruno Haible  <bruno@clisp.org>
53598
53599         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53600         (main): Don't perform the tests if setlocale did not install a UTF-8
53601         locale. Needed on OpenBSD 4.0.
53602         * modules/wcwidth-tests (Depends-on): Add localcharset.
53603
53604 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53605
53606         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53607         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53608         * NEWS: announce this.
53609         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53610
53611 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53612         and Eric Blake  <ebb9@byu.net>
53613
53614         Add memmem-simple module.
53615         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53616         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53617         * modules/memmem-simple: New file.
53618         * modules/memmem (Description): Tweak.
53619         * MODULES.html.sh (string handling): Mention new module.
53620         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53621         addressed by memmem-simple.
53622         * NEWS: Document the difference.
53623
53624 2008-01-09  Eric Blake  <ebb9@byu.net>
53625
53626         Give gcc some memmem optimization hints.
53627         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53628         (strcasestr): Declare as pure.
53629         * modules/memmem (Maintainer): Claim my implementation.
53630
53631 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53632
53633         Support AIX 6.1 and higher.
53634         * build-aux/config.libpath: Likewise.
53635         * build-aux/config.rpath: Likewise.
53636
53637 2008-01-08  Jim Meyering  <meyering@redhat.com>
53638             Bruno Haible  <bruno@clisp.org>
53639
53640         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53641         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53642         Reported by Peter Fales in
53643         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53644
53645 2008-01-08  Bruno Haible  <bruno@clisp.org>
53646
53647         * modules/unictype/category-of (Depends-on): Add
53648         unictype/category-none.
53649         * modules/unictype/category-and-tests (Depends-on): Add
53650         unictype/category-{L,N,Lu,Nd}.
53651         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53652         * modules/unictype/category-or-tests (Depends-on): Add
53653         unictype/category-{L,N}.
53654         * modules/unictype/category-name-tests (Depends-on): Add
53655         unictype/category-{Z,Nl}.
53656         Reported by Simon Josefsson.
53657
53658 2008-01-08  Bruno Haible  <bruno@clisp.org>
53659
53660         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53661         convention better.
53662         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53663         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53664         Reported by Peter Miller <millerp@canb.auug.org.au>.
53665
53666 2008-01-08  Eric Blake  <ebb9@byu.net>
53667
53668         Rewrite memmem to guarantee linear complexity without malloc.
53669         * lib/memmem.c (memmem): Use Two-Way rather than
53670         Knuth-Morris-Pratt, to allow O(1) space usage.
53671         (critical_factorization, two_way_short_needle)
53672         (two_way_long_needle): New functions.
53673         (knuth_morris_pratt): Delete.
53674         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53675         Add stdint.
53676         * tests/test-memmem.c (main): Add tests for periodic needle and
53677         sublinear performance.
53678         * doc/functions/memmem.texi (memmem): Document other deficiencies
53679         in cygwin and older glibc.
53680
53681 2008-01-08  Bruno Haible  <bruno@clisp.org>
53682
53683         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53684         augmentation.
53685
53686 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53687
53688         Add a configure time option: --disable-acl.
53689         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53690         AC_ARG_ENABLE(acl).
53691
53692 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53693
53694         * tests/test-localename.c: Don't include obsolete "setenv.h".
53695
53696         * modules/localename-tests (Depends-on): Need unsetenv.
53697
53698 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53699
53700         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53701
53702 2008-01-06  Colin Watson  <cjwatson@debian.org>
53703
53704         * users.txt: Add man-db.
53705
53706 2008-01-07  Bruno Haible  <bruno@clisp.org>
53707
53708         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53709         previous section name.
53710
53711 2008-01-07  Bruno Haible  <bruno@clisp.org>
53712
53713         * lib/progname.c (set_program_name): Don't strip off a leading
53714         "lt-" prefix outside a .libs directory.
53715         Suggested by Paul Eggert.
53716
53717 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53718             Bruno Haible  <bruno@clisp.org>
53719
53720         Improve memory cleanup in 'relocatable' module.
53721         * lib/relocatable.h (compute_curr_prefix): Change return type to
53722         'char *'.
53723         * lib/relocatable.c (compute_curr_prefix): Change return type to
53724         'char *'. Free curr_installdir after use.
53725         (relocate): Free curr_prefix_better after use.
53726         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53727
53728 2008-01-01  Bruno Haible  <bruno@clisp.org>
53729
53730         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53731         failure on older glibc systems.
53732         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53733
53734 2008-01-05  Eric Blake  <ebb9@byu.net>
53735
53736         Avoid quadratic system memmem.
53737         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53738         Reported by Ralf Wildenhues.
53739
53740         Fix memmem test for mingw.
53741         * modules/memmem-tests (configure.ac): Check for alarm.
53742         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53743         it.
53744         * doc/functions/memmem.texi: New file.
53745         * doc/gnulib.texi (Function Substitutes): Add memmem.
53746         Reported by Bruno Haible.
53747
53748 2008-01-04  Bruno Haible  <bruno@clisp.org>
53749
53750         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53751         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53752         gl_HEADER_STRING_H_DEFAULTS.
53753
53754 2008-01-04  Eric Blake  <ebb9@byu.net>
53755
53756         Shorten duration of memmem test.
53757         * tests/test-memmem.c (main): Use alarm to declare failure if test
53758         is taking too long.
53759         Reported by Ralf Wildenhues.
53760
53761 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53762
53763         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53764         string, needed by strerror.
53765
53766 2008-01-03  Colin Watson  <cjwatson@debian.org>
53767             Bruno Haible  <bruno@clisp.org>
53768
53769         * doc/gnulib-tool.texi (Localization): New section.
53770
53771 2008-01-02  Bruno Haible  <bruno@clisp.org>
53772
53773         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53774         variables to 'unsigned char *' type.
53775         Reported by Paul Eggert.
53776
53777 2008-01-02  Jim Meyering  <jim@meyering.net>
53778
53779         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53780
53781 2007-12-31  Jim Meyering  <jim@meyering.net>
53782
53783         Avoid use of private FTS type name.
53784         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53785
53786 2007-12-30  Karl Berry  <karl@gnu.org>
53787
53788         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53789         work around defect in Texinfo and/or the standalone Info browser.
53790
53791 2007-12-30  Bruno Haible  <bruno@clisp.org>
53792
53793         Unify 5 copies of the KMP code.
53794         * lib/str-kmp.h: New file.
53795         * lib/c-strcasestr.c: Include str-kmp.h.
53796         (knuth_morris_pratt): Remove function.
53797         (c_strcasestr): Update.
53798         * lib/c-strstr.c: Include str-kmp.h.
53799         (knuth_morris_pratt): Remove function.
53800         (c_strcasestr): Update.
53801         * lib/mbscasestr.c: Include str-kmp.h.
53802         (knuth_morris_pratt_unibyte): Remove function.
53803         * lib/mbsstr.c: Include str-kmp.h.
53804         (knuth_morris_pratt_unibyte): Remove function.
53805         * lib/strcasestr.c: Include str-kmp.h.
53806         (knuth_morris_pratt): Remove function.
53807         (strcasestr): Update.
53808         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53809         * modules/c-strstr (Files): Likewise.
53810         * modules/mbscasestr (Files): Likewise.
53811         * modules/mbsstr (Files): Likewise.
53812         * modules/strcasestr (Files): Likewise.
53813         Suggested by Paul Eggert.
53814
53815 2007-12-30  Bruno Haible  <bruno@clisp.org>
53816
53817         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53818         defined.
53819
53820 2007-12-30  Bruno Haible  <bruno@clisp.org>
53821
53822         * lib/xmalloca.h: Include xalloc.h.
53823         (xnmalloca): New macro.
53824
53825 2007-12-30  Bruno Haible  <bruno@clisp.org>
53826
53827         * lib/malloca.h (nmalloca): New macro.
53828         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53829         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53830         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53831         knuth_morris_pratt_multibyte): Likewise.
53832         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53833         knuth_morris_pratt_multibyte): Likewise.
53834         * lib/memmem.c (knuth_morris_pratt): Likewise.
53835         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53836
53837 2007-12-25  Bruno Haible  <bruno@clisp.org>
53838
53839         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53840         * lib/glob.c: Don't include openat.h.
53841         (link_exists2_p): Add back the code that deals with the
53842         !GLOB_ALTDIRFUNC case.
53843         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53844         let it do the filename concatenation.
53845         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53846         * modules/glob (Depends-on): Remove openat.
53847
53848 2007-12-31  Bruno Haible  <bruno@clisp.org>
53849
53850         * modules/dirfd (License): Change to LGPLv2+.
53851         Approved by Jim Meyering.
53852
53853 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53854
53855         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53856         when multiplying M by sizeof (size_t).
53857
53858 2007-12-10  Martin Lambers  <marlam@marlam.de>
53859
53860         Override getpagesize on mingw.
53861         * lib/getpagesize.c: New file.
53862         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53863         * modules/getpagesize (Files): Add lib/getpagesize.c.
53864         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53866         REPLACE_GETPAGESIZE.
53867         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53868
53869 2007-12-25  Bruno Haible  <bruno@clisp.org>
53870
53871         * modules/localcharset (Notice): New field.
53872         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53873         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53874
53875 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53876             Bruno Haible  <bruno@clisp.org>
53877
53878         Avoid using the syntax symbol() in formatted documentation.
53879         * MODULES.html.sh (func_module): When replacing symbol() with a
53880         hyperlink, remove the parentheses. Show an error if some remain.
53881         Recognize and render the '...' syntax.
53882         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53883         Rework. Add paragraph about GCC's inlining.
53884         * doc/alloca.texi: Likewise.
53885         * doc/error.texi: Remove parentheses from symbol reference.
53886         * doc/gnulib-intro.texi: Likewise.
53887         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53888         * modules/fnmatch (Description): Reword to say "the ... function".
53889         * modules/full-read (Description): Likewise.
53890         * modules/full-write (Description): Likewise.
53891         * modules/safe-read (Description): Likewise.
53892         * modules/safe-write (Description): Likewise.
53893         * modules/strchrnul (Description): Likewise.
53894         * modules/trim (Description): Likewise.
53895         * modules/error (Description): Remove parentheses from symbol
53896         references.
53897         * modules/verror (Description): Likewise.
53898         Reported by Karl Berry.
53899
53900 2007-12-25  Bruno Haible  <bruno@clisp.org>
53901
53902         Fixup after 2007-10-16 commit.
53903         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53904
53905 2007-12-24  Bruno Haible  <bruno@clisp.org>
53906
53907         Make --enable-relocatable work with DESTDIR.
53908         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53909         to compute installdir from destprog.
53910         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53911         also set the RELOC_DESTDIR variable.
53912         Reported by Левашев Иван <octagram@bluebottle.com>.
53913
53914 2007-12-24  Bruno Haible  <bruno@clisp.org>
53915
53916         Fix link error due to xalloc_die().
53917         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53918         of xreadlink.
53919         * lib/relocwrapper.c: Update comments.
53920         * build-aux/install-reloc: Remove xreadlink.c from file list.
53921         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53922         xreadlink.c.
53923         Reported by Левашев Иван <octagram@bluebottle.com>.
53924
53925 2007-12-24  Bruno Haible  <bruno@clisp.org>
53926
53927         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53928         * lib/setenv.h: Remove file.
53929         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53930         lib/setenv.h.
53931         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53932         (Depends-on): Add stdlib.
53933         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53934         gl_FUNC_UNSETENV.
53935         (Include): Replace setenv.h with <stdlib.h>.
53936         * modules/unsetenv: New file.
53937         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53938         * lib/unsetenv.c: Include <stdlib.h> first.
53939         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53940         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53941         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53942         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53943         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53944         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53946         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53947         * doc/functions/unsetenv.texi: Update.
53948         * modules/xsetenv (Depends-on): Add unsetenv.
53949         * modules/getdate (Depends-on): Likewise.
53950         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53951         * lib/xsetenv.c: Don't include setenv.h.
53952         * lib/getdate.y: Likewise.
53953         * lib/relocwrapper.c: Likewise.
53954         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53955         (Depends-on): Add stdlib.
53956         * NEWS: Mention the changes.
53957         Reported by Левашев Иван <octagram@bluebottle.com>.
53958
53959 2007-12-23  Bruno Haible  <bruno@clisp.org>
53960
53961         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53962         indentation.
53963
53964 2007-12-23  Bruno Haible  <bruno@clisp.org>
53965
53966         * lib/c-strcasestr.c: Add more comments.
53967         * lib/c-strstr.c: Likewise.
53968         * lib/mbscasestr.c: Likewise.
53969         * lib/mbsstr.c: Likewise.
53970         * lib/strcasestr.c: Likewise.
53971         * lib/memmem.c: Likewise.
53972
53973 2007-12-23  Bruno Haible  <bruno@clisp.org>
53974
53975         * tests/test-memmem.c: Include <string.h> first.
53976
53977 2007-12-22  Bruno Haible  <bruno@clisp.org>
53978
53979         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53980         the contents of $testsbase.
53981         Reported by Ralf Wildenhues.
53982
53983 2007-12-22  Bruno Haible  <bruno@clisp.org>
53984
53985         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53986         two variables local_ldadd_before, local_ldadd_last.
53987
53988 2007-12-20  Eric Blake  <ebb9@byu.net>
53989
53990         Work around circular library issue when cross-compiling.
53991         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53992         that progname.o does not need to pull in rpl_memcmp.
53993
53994 2007-12-19  Eric Blake  <ebb9@byu.net>
53995
53996         Fix memmem to avoid O(n^2) worst-case complexity.
53997         * lib/memmem.c (knuth_morris_pratt): New function.
53998         (memmem): Use it if first few naive iterations fail.
53999         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54000         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54001         * modules/memchr (License): Likewise.
54002         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54003         malloca.
54004         * tests/test-memmem.c: Rewrite, borrowing ideas from
54005         test-mbsstr1.c; the old version wouldn't even compile!
54006         * modules/memmem-tests: New file.
54007         * lib/string.in.h (rpl_memmem): Add declaration.
54008         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54010         REPLACE_MEMMEM.
54011
54012 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54013
54014         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54015         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54016         before any system include files, and undef after them all.  This
54017         should fix a problem on VMS reported by John E. Malmberg in
54018         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54019
54020 2007-12-17  Eric Blake  <ebb9@byu.net>
54021
54022         Revert addition of verify, for BSD/OS.
54023         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54024         can't handle large files, for the sake of obsolete platforms.
54025         * modules/fseeko (Depends-on): Remove verify.
54026         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54027         * doc/functions/ftello.texi (ftello): Likewise.
54028         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54029         Reported by Larry Jones.
54030
54031 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54032
54033         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54034         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54035
54036 2007-12-17  Jim Meyering  <meyering@redhat.com>
54037
54038         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54039         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54040         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54041         * modules/getcwd (Depends-on): Add openat.
54042         Reported by Petr Salinger.
54043
54044 2007-12-17  Bruno Haible  <bruno@clisp.org>
54045
54046         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54047         avoid a segmentation fault of the configure test on x86_64 systems.
54048
54049 2007-12-15  Jim Meyering  <meyering@redhat.com>
54050
54051         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54052
54053 2007-12-13  Eric Blake  <ebb9@byu.net>
54054
54055         Another fseek test.
54056         * tests/test-fseek.c (main): Also test ungetc handling.
54057         * tests/test-fseeko.c (main): Likewise.
54058         * modules/fseeko (Depends-on): Add verify.
54059         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54060         large.
54061         Reported by Larry Jones.
54062
54063         Fix fseeko on mingw.
54064         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54065         seek.
54066
54067         Beef up fseek tests.
54068         * tests/test-fseek.c (main): Also test eof handling.
54069         * tests/test-fseeko.c (main): Likewise.
54070         Reported by Larry Jones.
54071
54072 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54073
54074         Fix fseeko on BSD-based platforms.
54075         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54076         successful seek.
54077
54078 2007-12-12  Eric Blake  <ebb9@byu.net>
54079
54080         Allow circular dependency of separate libtests.a
54081         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54082         when use_libtests.
54083
54084 2007-12-11  Eric Blake  <ebb9@byu.net>
54085
54086         Fix bug with -0.0L in previous patch.
54087         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54088         * tests/test-isnan.c (main): Also test on zeroes.
54089         * tests/test-isnanf.c (main): Likewise.
54090         * tests/test-isnanl.h (main): Likewise.
54091
54092         Detect pseudo-denormals on x86 even when cross-compiling.
54093         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54094         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54095         invalid bit patterns that happen to satisfy ==.
54096
54097         Avoid link failures with separate libtests.a.
54098         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54099         last, to satisfy circular dependencies.
54100
54101 2007-12-11  Eric Blake  <ebb9@byu.net>
54102         and Bruno Haible  <bruno@clisp.org>
54103
54104         Fix OpenBSD 4.0 <float.h> handling of long double.
54105         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54106         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54107         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54108
54109 2007-12-11  Jim Meyering  <meyering@redhat.com>
54110
54111         * users.txt: Add libvirt.
54112
54113         Support versions of autoconf prior to 2.59c.
54114         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54115         if it is not already defined.
54116
54117 2007-12-09  Bruno Haible  <bruno@clisp.org>
54118
54119         Let 'gnulib-tool --import' collect sources needed for the tests in
54120         tests/ rather than in lib/.
54121         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54122         argument. If true, add rules to generate libtests.a, and put libtests.a
54123         into $(LDADD). Consider source files in subdirectories and set
54124         uses_subdirs.
54125         (func_emit_initmacro_start, func_emit_initmacro_end,
54126         func_emit_initmacro_done): Pass all arguments explicitly.
54127         (func_import): Determine two module lists main_modules,
54128         testsrelated_modules. Determine use_libtests. Determine two variables
54129         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54130         instead of just sed_transform_lib_file. Determine two variables
54131         main_files and testsrelated_files. Compute 'files' as the union of
54132         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54133         func_add_or_update. In the generated gnulib-comp.m4, collect the
54134         object files for tests/ in different variables than those for lib/.
54135         Substitute LIBTESTS_LIBDEPS.
54136         (func_create_testdir): Combine the uses_subdirs results from
54137         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54138
54139 2007-12-09  Bruno Haible  <bruno@clisp.org>
54140
54141         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54142         the build-aux directory.
54143
54144 2007-12-09  Bruno Haible  <bruno@clisp.org>
54145
54146         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54147         introduced on 2006-09-09.
54148
54149 2007-12-07  Jim Meyering  <meyering@redhat.com>
54150
54151         Let these macros work also with autoconf-2.59.
54152         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54153         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54154         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54155
54156 2007-12-06  Jim Meyering  <meyering@redhat.com>
54157
54158         Avoid a configure-time syntax error in gl_FUNC_ACL.
54159         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54160         function in each branch, before testing the cache variable.
54161
54162 2007-12-04  Eric Blake  <ebb9@byu.net>
54163
54164         Make scripts executable.
54165         * build-aux/config.guess: Add execute permissions.
54166         * build-aux/config.sub: Likewise.
54167         * build-aux/gendocs.sh: Likewise.
54168
54169         Fix frexp on mingw.
54170         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54171         cross-compiling.
54172         * doc/functions/frexp.texi (frexp): Document the bug.
54173
54174         Make cygwin fseeko check more reliable.
54175         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54176         version numbers, rather than unrelated feature check.
54177         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54178         * doc/functions/ftello.texi (ftello): Likewise.
54179         Reported by Bruno Haible.
54180
54181         * m4/strerror.m4: Bump version number.
54182
54183 2007-12-03  Bruno Haible  <bruno@clisp.org>
54184
54185         * doc/functions/mprotect.texi: Mention the mingw problem.
54186
54187 2007-12-03  Eric Blake  <ebb9@byu.net>
54188
54189         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54190         REPLACE_STRERROR is initialized before this macro.
54191
54192 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54193
54194         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54195         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54196         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54197         put -lsec in even for programs other than 'ls'.  This fixes a problem
54198         for gettext reported by Bruno Haible in
54199         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54200         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54201         Add support for Solaris 10.  This isn't efficient, but should get the
54202         job done for now.
54203
54204 2007-12-03  James Youngman  <jay@gnu.org>
54205
54206         * doc/regexprops-generic.texi: change "an close-group" to "a
54207         close-group" and "illegal" to "not allowed".
54208
54209 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54210
54211         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54212         pr_byname.h. Needed for the rare case when the maintainer has done
54213         "make maintainer-clean" in the source directory and then attempts a
54214         build outside the source directory.
54215         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54216         scripts_byname.h.
54217
54218 2007-12-02  Martin Lambers <marlam@marlam.de>
54219             Bruno Haible  <bruno@clisp.org>
54220
54221         * lib/getpagesize.h: Remove file.
54222         * lib/unistd.in.h: Include declaration of getpagesize here.
54223         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54224         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54225         HAVE_SYS_PARAM_H.
54226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54227         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54228         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54229         (Depends-on): Add unistd.
54230         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54231         (Include): Use <unistd.h> instead of getpagesize.h.
54232         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54233         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54234         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54235         gl_GETPAGESIZE invocation, already handled by module dependency.
54236         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54237
54238 2007-12-02  Bruno Haible  <bruno@clisp.org>
54239
54240         * modules/strings-tests: New file.
54241         * tests/test-strings.c: New file.
54242
54243         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54244         * lib/strings.in.h: New file.
54245         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54246         * m4/strings_h.m4: New file.
54247         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54248         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54249         * modules/strings: New file.
54250         * modules/string (Makefile.am): Update.
54251         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54252         Reported by Karl Berry.
54253
54254 2007-12-01  Eric Blake  <ebb9@byu.net>
54255
54256         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54257         accomodate fix in cygwin 1.5.25.
54258
54259 2007-12-01  Jim Meyering  <meyering@redhat.com>
54260
54261         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54262         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54263         that would inhibit utf8-optimization of a regexp containing line-
54264         or buffer-anchors, e.g., `^', `$'.
54265
54266 2007-11-30  Bruno Haible  <bruno@clisp.org>
54267
54268         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54269         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54270         glthread_recursive_lock_init.
54271         * lib/lock.c (glthread_recursive_lock_init)
54272         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54273         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54274
54275 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54276
54277         New function qset_acl, like set_acl but with syscall semantics.
54278         * lib/acl.h (qset_acl): New decl.
54279         * lib/acl.c (qset_acl): New function.
54280         (set_acl): Use new function.  Use more-consistent diagnostics.
54281
54282 2007-11-28  Jim Meyering  <meyering@redhat.com>
54283
54284         * modules/physmem (License): Change from GPL to LGPLv2+.
54285
54286 2007-11-26  Bruno Haible  <bruno@clisp.org>
54287
54288         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54289         'long double' type has excess precision.
54290         Reported by Jim Meyering in
54291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54292
54293 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54294
54295         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54296         Sync from <http://gnu.org/licenses>.
54297         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54298         with license text from same location.
54299         * doc/maintain.texi, doc/standards.texi:  Sync from
54300         <http://savannah.gnu.org/projects/gnustandards>.
54301
54302 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
54303         and Jim Meyering  <meyering@redhat.com>
54304
54305         Adjust getdate' grammar to accept a slightly more regular language.
54306         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54307         Before, the former was rejected.
54308         * lib/getdate.y (digits_to_date_time): New function, factored
54309         out of ...
54310         (number): ...here.  Just call digits_to_date_time.
54311         (hybrid): New non-terminal to handle an <unsigned number,
54312         signed relative offset> sequence consistently.
54313
54314 2007-11-18  Jim Meyering  <meyering@redhat.com>
54315
54316         Pull my changes from coreutils:
54317         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54318         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54319         use of $gnulib_tool_option_extras, so that it's separated from the
54320         preceding argument.
54321
54322         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54323         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54324         parent destination directories before copying a file into place.
54325
54326 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54327
54328         bootstrap: work also with 4-argument variant of AC_INIT
54329         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54330
54331 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54332
54333         Port test-getaddrinfo to Solaris.
54334         Problem reported by Bruno Haible in
54335         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54336         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54337         explanation of setting 'hints'.
54338         Don't reject an implementation merely because it returns EAI_SERVICE.
54339         (EAI_SERVICE): Define to 0 if not defined.
54340
54341 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54342
54343         The license of gnu-make and posix-shell is now "GPLed build tool".
54344         * modules/gnu-make (License): Likewise.
54345         * modules/posix-shell (License): Likewise.
54346
54347         New module posix-shell, for determining a POSIX shell
54348         or perhaps something that is close enough to a POSIX shell.
54349         * m4/posix-shell.m4: New file.
54350         * modules/posix-shell: New file.
54351
54352         * MODULES.html.sh: Mention new module.
54353
54354         New module gnu-make, for determining whether we're using GNU Make.
54355         * m4/gnu-make.m4: New file.
54356         * modules/gnu-make: New file.
54357         * MODULES.html.sh: Mention new module.
54358
54359 2007-11-14  Jim Meyering  <meyering@redhat.com>
54360
54361         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54362         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54363         use this macro to create a function _definition_.
54364         Remove useless "#undef ARGMATCH_DIE".
54365
54366 2007-11-14  Bruno Haible  <bruno@clisp.org>
54367
54368         * lib/config.charset: Update for OpenBSD 4.1.
54369         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54370
54371 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54372
54373         Document 64-bit #if problems in stdint.texi.
54374         * doc/headers/stdint.texi (stdint.h): Mention problems with
54375         64-bit-#if, and how to work around them.
54376
54377         Don't insist on 'long long int' support in the preprocessor.  It
54378         breaks too many things.  For example, PRIdMAX still uses a 'long
54379         long int' format with the latest Sun compiler, even though
54380         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54381         preprocessor problem.  This causes the latest coreutils to dump
54382         core on Solaris 10 sparc with the Sun C compiler.
54383         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54384         the troublesome expressions at configure-time, not at #if-time.
54385         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54386         preprocessor.
54387         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54388         compile-time C checks, done at 'configure'-time.
54389         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54390         * modules/inttypes (Makefile): Substitute the new symbols that
54391         gl_INTTYPES_H now generates.
54392         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54393
54394 2007-11-12  Bruno Haible  <bruno@clisp.org>
54395
54396         Tests for Unicode character classification functions.
54397
54398         * modules/unictype/bidicategory-byname-tests: New file.
54399         * modules/unictype/bidicategory-name-tests: New file.
54400         * modules/unictype/bidicategory-of-tests: New file.
54401         * modules/unictype/bidicategory-test-tests: New file.
54402         * modules/unictype/block-list-tests: New file.
54403         * modules/unictype/block-of-tests: New file.
54404         * modules/unictype/block-test-tests: New file.
54405         * modules/unictype/category-C-tests: New file.
54406         * modules/unictype/category-Cc-tests: New file.
54407         * modules/unictype/category-Cf-tests: New file.
54408         * modules/unictype/category-Cn-tests: New file.
54409         * modules/unictype/category-Co-tests: New file.
54410         * modules/unictype/category-Cs-tests: New file.
54411         * modules/unictype/category-L-tests: New file.
54412         * modules/unictype/category-Ll-tests: New file.
54413         * modules/unictype/category-Lm-tests: New file.
54414         * modules/unictype/category-Lo-tests: New file.
54415         * modules/unictype/category-Lt-tests: New file.
54416         * modules/unictype/category-Lu-tests: New file.
54417         * modules/unictype/category-M-tests: New file.
54418         * modules/unictype/category-Mc-tests: New file.
54419         * modules/unictype/category-Me-tests: New file.
54420         * modules/unictype/category-Mn-tests: New file.
54421         * modules/unictype/category-N-tests: New file.
54422         * modules/unictype/category-Nd-tests: New file.
54423         * modules/unictype/category-Nl-tests: New file.
54424         * modules/unictype/category-No-tests: New file.
54425         * modules/unictype/category-P-tests: New file.
54426         * modules/unictype/category-Pc-tests: New file.
54427         * modules/unictype/category-Pd-tests: New file.
54428         * modules/unictype/category-Pe-tests: New file.
54429         * modules/unictype/category-Pf-tests: New file.
54430         * modules/unictype/category-Pi-tests: New file.
54431         * modules/unictype/category-Po-tests: New file.
54432         * modules/unictype/category-Ps-tests: New file.
54433         * modules/unictype/category-S-tests: New file.
54434         * modules/unictype/category-Sc-tests: New file.
54435         * modules/unictype/category-Sk-tests: New file.
54436         * modules/unictype/category-Sm-tests: New file.
54437         * modules/unictype/category-So-tests: New file.
54438         * modules/unictype/category-Z-tests: New file.
54439         * modules/unictype/category-Zl-tests: New file.
54440         * modules/unictype/category-Zp-tests: New file.
54441         * modules/unictype/category-Zs-tests: New file.
54442         * modules/unictype/category-and-not-tests: New file.
54443         * modules/unictype/category-and-tests: New file.
54444         * modules/unictype/category-byname-tests: New file.
54445         * modules/unictype/category-name-tests: New file.
54446         * modules/unictype/category-none-tests: New file.
54447         * modules/unictype/category-of-tests: New file.
54448         * modules/unictype/category-or-tests: New file.
54449         * modules/unictype/category-test-withtable-tests: New file.
54450         * modules/unictype/combining-class-tests: New file.
54451         * modules/unictype/ctype-alnum-tests: New file.
54452         * modules/unictype/ctype-alpha-tests: New file.
54453         * modules/unictype/ctype-blank-tests: New file.
54454         * modules/unictype/ctype-cntrl-tests: New file.
54455         * modules/unictype/ctype-digit-tests: New file.
54456         * modules/unictype/ctype-graph-tests: New file.
54457         * modules/unictype/ctype-lower-tests: New file.
54458         * modules/unictype/ctype-print-tests: New file.
54459         * modules/unictype/ctype-punct-tests: New file.
54460         * modules/unictype/ctype-space-tests: New file.
54461         * modules/unictype/ctype-upper-tests: New file.
54462         * modules/unictype/ctype-xdigit-tests: New file.
54463         * modules/unictype/decimal-digit-tests: New file.
54464         * modules/unictype/digit-tests: New file.
54465         * modules/unictype/mirror-tests: New file.
54466         * modules/unictype/numeric-tests: New file.
54467         * modules/unictype/property-alphabetic-tests: New file.
54468         * modules/unictype/property-ascii-hex-digit-tests: New file.
54469         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54470         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54471         * modules/unictype/property-bidi-block-separator-tests: New file.
54472         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54473         * modules/unictype/property-bidi-common-separator-tests: New file.
54474         * modules/unictype/property-bidi-control-tests: New file.
54475         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54476         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54477         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54478         * modules/unictype/property-bidi-european-digit-tests: New file.
54479         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54480         * modules/unictype/property-bidi-left-to-right-tests: New file.
54481         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54482         * modules/unictype/property-bidi-other-neutral-tests: New file.
54483         * modules/unictype/property-bidi-pdf-tests: New file.
54484         * modules/unictype/property-bidi-segment-separator-tests: New file.
54485         * modules/unictype/property-bidi-whitespace-tests: New file.
54486         * modules/unictype/property-byname-tests: New file.
54487         * modules/unictype/property-combining-tests: New file.
54488         * modules/unictype/property-composite-tests: New file.
54489         * modules/unictype/property-currency-symbol-tests: New file.
54490         * modules/unictype/property-dash-tests: New file.
54491         * modules/unictype/property-decimal-digit-tests: New file.
54492         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54493         * modules/unictype/property-deprecated-tests: New file.
54494         * modules/unictype/property-diacritic-tests: New file.
54495         * modules/unictype/property-extender-tests: New file.
54496         * modules/unictype/property-format-control-tests: New file.
54497         * modules/unictype/property-grapheme-base-tests: New file.
54498         * modules/unictype/property-grapheme-extend-tests: New file.
54499         * modules/unictype/property-grapheme-link-tests: New file.
54500         * modules/unictype/property-hex-digit-tests: New file.
54501         * modules/unictype/property-hyphen-tests: New file.
54502         * modules/unictype/property-id-continue-tests: New file.
54503         * modules/unictype/property-id-start-tests: New file.
54504         * modules/unictype/property-ideographic-tests: New file.
54505         * modules/unictype/property-ids-binary-operator-tests: New file.
54506         * modules/unictype/property-ids-trinary-operator-tests: New file.
54507         * modules/unictype/property-ignorable-control-tests: New file.
54508         * modules/unictype/property-iso-control-tests: New file.
54509         * modules/unictype/property-join-control-tests: New file.
54510         * modules/unictype/property-left-of-pair-tests: New file.
54511         * modules/unictype/property-line-separator-tests: New file.
54512         * modules/unictype/property-logical-order-exception-tests: New file.
54513         * modules/unictype/property-lowercase-tests: New file.
54514         * modules/unictype/property-math-tests: New file.
54515         * modules/unictype/property-non-break-tests: New file.
54516         * modules/unictype/property-not-a-character-tests: New file.
54517         * modules/unictype/property-numeric-tests: New file.
54518         * modules/unictype/property-other-alphabetic-tests: New file.
54519         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54520         * modules/unictype/property-other-grapheme-extend-tests: New file.
54521         * modules/unictype/property-other-id-continue-tests: New file.
54522         * modules/unictype/property-other-id-start-tests: New file.
54523         * modules/unictype/property-other-lowercase-tests: New file.
54524         * modules/unictype/property-other-math-tests: New file.
54525         * modules/unictype/property-other-uppercase-tests: New file.
54526         * modules/unictype/property-paired-punctuation-tests: New file.
54527         * modules/unictype/property-paragraph-separator-tests: New file.
54528         * modules/unictype/property-pattern-syntax-tests: New file.
54529         * modules/unictype/property-pattern-white-space-tests: New file.
54530         * modules/unictype/property-private-use-tests: New file.
54531         * modules/unictype/property-punctuation-tests: New file.
54532         * modules/unictype/property-quotation-mark-tests: New file.
54533         * modules/unictype/property-radical-tests: New file.
54534         * modules/unictype/property-sentence-terminal-tests: New file.
54535         * modules/unictype/property-soft-dotted-tests: New file.
54536         * modules/unictype/property-space-tests: New file.
54537         * modules/unictype/property-terminal-punctuation-tests: New file.
54538         * modules/unictype/property-test-tests: New file.
54539         * modules/unictype/property-titlecase-tests: New file.
54540         * modules/unictype/property-unassigned-code-value-tests: New file.
54541         * modules/unictype/property-unified-ideograph-tests: New file.
54542         * modules/unictype/property-uppercase-tests: New file.
54543         * modules/unictype/property-variation-selector-tests: New file.
54544         * modules/unictype/property-white-space-tests: New file.
54545         * modules/unictype/property-xid-continue-tests: New file.
54546         * modules/unictype/property-xid-start-tests: New file.
54547         * modules/unictype/property-zero-width-tests: New file.
54548         * modules/unictype/scripts-tests: New file.
54549         * modules/unictype/syntax-c-ident-tests: New file.
54550         * modules/unictype/syntax-c-whitespace-tests: New file.
54551         * modules/unictype/syntax-java-ident-tests: New file.
54552         * modules/unictype/syntax-java-whitespace-tests: New file.
54553         * tests/unictype/test-bidi_byname.c: New file.
54554         * tests/unictype/test-bidi_name.c: New file.
54555         * tests/unictype/test-bidi_of.c: New file.
54556         * tests/unictype/test-bidi_test.c: New file.
54557         * tests/unictype/test-block_list.c: New file.
54558         * tests/unictype/test-block_of.c: New file.
54559         * tests/unictype/test-block_test.c: New file.
54560         * tests/unictype/test-categ_and.c: New file.
54561         * tests/unictype/test-categ_and_not.c: New file.
54562         * tests/unictype/test-categ_byname.c: New file.
54563         * tests/unictype/test-categ_name.c: New file.
54564         * tests/unictype/test-categ_none.c: New file.
54565         * tests/unictype/test-categ_of.c: New file.
54566         * tests/unictype/test-categ_or.c: New file.
54567         * tests/unictype/test-categ_test_withtable.c: New file.
54568         * tests/unictype/test-combining.c: New file.
54569         * tests/unictype/test-decdigit.c: New file.
54570         * tests/unictype/test-digit.c: New file.
54571         * tests/unictype/test-mirror.c: New file.
54572         * tests/unictype/test-numeric.c: New file.
54573         * tests/unictype/test-pr_byname.c: New file.
54574         * tests/unictype/test-pr_test.c: New file.
54575         * tests/unictype/test-predicate-part1.h: New file.
54576         * tests/unictype/test-predicate-part2.h: New file.
54577         * tests/unictype/test-scripts.c: New file.
54578         * tests/unictype/test-sy_c_ident.c: New file.
54579         * tests/unictype/test-sy_java_ident.c: New file.
54580
54581         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54582         for Unicode 5.0.0.
54583         * tests/unictype/test-categ_Cc.c: Likewise.
54584         * tests/unictype/test-categ_Cf.c: Likewise.
54585         * tests/unictype/test-categ_Cn.c: Likewise.
54586         * tests/unictype/test-categ_Co.c: Likewise.
54587         * tests/unictype/test-categ_Cs.c: Likewise.
54588         * tests/unictype/test-categ_L.c: Likewise.
54589         * tests/unictype/test-categ_Ll.c: Likewise.
54590         * tests/unictype/test-categ_Lm.c: Likewise.
54591         * tests/unictype/test-categ_Lo.c: Likewise.
54592         * tests/unictype/test-categ_Lt.c: Likewise.
54593         * tests/unictype/test-categ_Lu.c: Likewise.
54594         * tests/unictype/test-categ_M.c: Likewise.
54595         * tests/unictype/test-categ_Mc.c: Likewise.
54596         * tests/unictype/test-categ_Me.c: Likewise.
54597         * tests/unictype/test-categ_Mn.c: Likewise.
54598         * tests/unictype/test-categ_N.c: Likewise.
54599         * tests/unictype/test-categ_Nd.c: Likewise.
54600         * tests/unictype/test-categ_Nl.c: Likewise.
54601         * tests/unictype/test-categ_No.c: Likewise.
54602         * tests/unictype/test-categ_P.c: Likewise.
54603         * tests/unictype/test-categ_Pc.c: Likewise.
54604         * tests/unictype/test-categ_Pd.c: Likewise.
54605         * tests/unictype/test-categ_Pe.c: Likewise.
54606         * tests/unictype/test-categ_Pf.c: Likewise.
54607         * tests/unictype/test-categ_Pi.c: Likewise.
54608         * tests/unictype/test-categ_Po.c: Likewise.
54609         * tests/unictype/test-categ_Ps.c: Likewise.
54610         * tests/unictype/test-categ_S.c: Likewise.
54611         * tests/unictype/test-categ_Sc.c: Likewise.
54612         * tests/unictype/test-categ_Sk.c: Likewise.
54613         * tests/unictype/test-categ_Sm.c: Likewise.
54614         * tests/unictype/test-categ_So.c: Likewise.
54615         * tests/unictype/test-categ_Z.c: Likewise.
54616         * tests/unictype/test-categ_Zl.c: Likewise.
54617         * tests/unictype/test-categ_Zp.c: Likewise.
54618         * tests/unictype/test-categ_Zs.c: Likewise.
54619         * tests/unictype/test-ctype_alnum.c: Likewise.
54620         * tests/unictype/test-ctype_alpha.c: Likewise.
54621         * tests/unictype/test-ctype_blank.c: Likewise.
54622         * tests/unictype/test-ctype_cntrl.c: Likewise.
54623         * tests/unictype/test-ctype_digit.c: Likewise.
54624         * tests/unictype/test-ctype_graph.c: Likewise.
54625         * tests/unictype/test-ctype_lower.c: Likewise.
54626         * tests/unictype/test-ctype_print.c: Likewise.
54627         * tests/unictype/test-ctype_punct.c: Likewise.
54628         * tests/unictype/test-ctype_space.c: Likewise.
54629         * tests/unictype/test-ctype_upper.c: Likewise.
54630         * tests/unictype/test-ctype_xdigit.c: Likewise.
54631         * tests/unictype/test-decdigit.h: Likewise.
54632         * tests/unictype/test-digit.h: Likewise.
54633         * tests/unictype/test-numeric.h: Likewise.
54634         * tests/unictype/test-pr_alphabetic.c: Likewise.
54635         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54636         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54637         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54638         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54639         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54640         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54641         * tests/unictype/test-pr_bidi_control.c: Likewise.
54642         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54643         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54644         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54645         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54646         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54647         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54648         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54649         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54650         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54651         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54652         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54653         * tests/unictype/test-pr_combining.c: Likewise.
54654         * tests/unictype/test-pr_composite.c: Likewise.
54655         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54656         * tests/unictype/test-pr_dash.c: Likewise.
54657         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54658         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54659         * tests/unictype/test-pr_deprecated.c: Likewise.
54660         * tests/unictype/test-pr_diacritic.c: Likewise.
54661         * tests/unictype/test-pr_extender.c: Likewise.
54662         * tests/unictype/test-pr_format_control.c: Likewise.
54663         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54664         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54665         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54666         * tests/unictype/test-pr_hex_digit.c: Likewise.
54667         * tests/unictype/test-pr_hyphen.c: Likewise.
54668         * tests/unictype/test-pr_id_continue.c: Likewise.
54669         * tests/unictype/test-pr_id_start.c: Likewise.
54670         * tests/unictype/test-pr_ideographic.c: Likewise.
54671         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54672         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54673         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54674         * tests/unictype/test-pr_iso_control.c: Likewise.
54675         * tests/unictype/test-pr_join_control.c: Likewise.
54676         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54677         * tests/unictype/test-pr_line_separator.c: Likewise.
54678         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54679         * tests/unictype/test-pr_lowercase.c: Likewise.
54680         * tests/unictype/test-pr_math.c: Likewise.
54681         * tests/unictype/test-pr_non_break.c: Likewise.
54682         * tests/unictype/test-pr_not_a_character.c: Likewise.
54683         * tests/unictype/test-pr_numeric.c: Likewise.
54684         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54685         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54686         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54687         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54688         * tests/unictype/test-pr_other_id_start.c: Likewise.
54689         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54690         * tests/unictype/test-pr_other_math.c: Likewise.
54691         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54692         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54693         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54694         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54695         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54696         * tests/unictype/test-pr_private_use.c: Likewise.
54697         * tests/unictype/test-pr_punctuation.c: Likewise.
54698         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54699         * tests/unictype/test-pr_radical.c: Likewise.
54700         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54701         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54702         * tests/unictype/test-pr_space.c: Likewise.
54703         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54704         * tests/unictype/test-pr_titlecase.c: Likewise.
54705         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54706         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54707         * tests/unictype/test-pr_uppercase.c: Likewise.
54708         * tests/unictype/test-pr_variation_selector.c: Likewise.
54709         * tests/unictype/test-pr_white_space.c: Likewise.
54710         * tests/unictype/test-pr_xid_continue.c: Likewise.
54711         * tests/unictype/test-pr_xid_start.c: Likewise.
54712         * tests/unictype/test-pr_zero_width.c: Likewise.
54713         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54714         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54715
54716 2007-11-12  Bruno Haible  <bruno@clisp.org>
54717
54718         Unicode character classification functions.
54719         * lib/unictype.h: New file.
54720         * modules/unictype/base: New file.
54721         * modules/unictype/category-L: New file.
54722         * modules/unictype/category-Lu: New file.
54723         * modules/unictype/category-Ll: New file.
54724         * modules/unictype/category-Lt: New file.
54725         * modules/unictype/category-Lm: New file.
54726         * modules/unictype/category-Lo: New file.
54727         * modules/unictype/category-M: New file.
54728         * modules/unictype/category-Mn: New file.
54729         * modules/unictype/category-Mc: New file.
54730         * modules/unictype/category-Me: New file.
54731         * modules/unictype/category-N: New file.
54732         * modules/unictype/category-Nd: New file.
54733         * modules/unictype/category-Nl: New file.
54734         * modules/unictype/category-No: New file.
54735         * modules/unictype/category-P: New file.
54736         * modules/unictype/category-Pc: New file.
54737         * modules/unictype/category-Pd: New file.
54738         * modules/unictype/category-Ps: New file.
54739         * modules/unictype/category-Pe: New file.
54740         * modules/unictype/category-Pi: New file.
54741         * modules/unictype/category-Pf: New file.
54742         * modules/unictype/category-Po: New file.
54743         * modules/unictype/category-S: New file.
54744         * modules/unictype/category-Sm: New file.
54745         * modules/unictype/category-Sc: New file.
54746         * modules/unictype/category-Sk: New file.
54747         * modules/unictype/category-So: New file.
54748         * modules/unictype/category-Z: New file.
54749         * modules/unictype/category-Zs: New file.
54750         * modules/unictype/category-Zl: New file.
54751         * modules/unictype/category-Zp: New file.
54752         * modules/unictype/category-C: New file.
54753         * modules/unictype/category-Cc: New file.
54754         * modules/unictype/category-Cf: New file.
54755         * modules/unictype/category-Cs: New file.
54756         * modules/unictype/category-Co: New file.
54757         * modules/unictype/category-Cn: New file.
54758         * modules/unictype/category-or: New file.
54759         * modules/unictype/category-of: New file.
54760         * modules/unictype/category-test: New file.
54761         * modules/unictype/category-test-withtable: New file.
54762         * modules/unictype/category-byname: New file.
54763         * modules/unictype/category-none: New file.
54764         * modules/unictype/category-and: New file.
54765         * modules/unictype/category-and-not: New file.
54766         * modules/unictype/category-name: New file.
54767         * modules/unictype/combining-class: New file.
54768         * modules/unictype/category-all: New file.
54769         * modules/unictype/bidicategory-all: New file.
54770         * modules/unictype/bidicategory-byname: New file.
54771         * modules/unictype/bidicategory-name: New file.
54772         * modules/unictype/bidicategory-of: New file.
54773         * modules/unictype/bidicategory-test: New file.
54774         * modules/unictype/decimal-digit: New file.
54775         * modules/unictype/digit: New file.
54776         * modules/unictype/numeric: New file.
54777         * modules/unictype/mirror: New file.
54778         * modules/unictype/property-white-space: New file.
54779         * modules/unictype/property-alphabetic: New file.
54780         * modules/unictype/property-other-alphabetic: New file.
54781         * modules/unictype/property-not-a-character: New file.
54782         * modules/unictype/property-default-ignorable-code-point: New file.
54783         * modules/unictype/property-other-default-ignorable-code-point: New
54784         file.
54785         * modules/unictype/property-deprecated: New file.
54786         * modules/unictype/property-logical-order-exception: New file.
54787         * modules/unictype/property-variation-selector: New file.
54788         * modules/unictype/property-private-use: New file.
54789         * modules/unictype/property-unassigned-code-value: New file.
54790         * modules/unictype/property-uppercase: New file.
54791         * modules/unictype/property-other-uppercase: New file.
54792         * modules/unictype/property-lowercase: New file.
54793         * modules/unictype/property-other-lowercase: New file.
54794         * modules/unictype/property-titlecase: New file.
54795         * modules/unictype/property-soft-dotted: New file.
54796         * modules/unictype/property-id-start: New file.
54797         * modules/unictype/property-other-id-start: New file.
54798         * modules/unictype/property-id-continue: New file.
54799         * modules/unictype/property-other-id-continue: New file.
54800         * modules/unictype/property-xid-start: New file.
54801         * modules/unictype/property-xid-continue: New file.
54802         * modules/unictype/property-pattern-white-space: New file.
54803         * modules/unictype/property-pattern-syntax: New file.
54804         * modules/unictype/property-join-control: New file.
54805         * modules/unictype/property-grapheme-base: New file.
54806         * modules/unictype/property-grapheme-extend: New file.
54807         * modules/unictype/property-other-grapheme-extend: New file.
54808         * modules/unictype/property-grapheme-link: New file.
54809         * modules/unictype/property-bidi-control: New file.
54810         * modules/unictype/property-bidi-left-to-right: New file.
54811         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54812         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54813         * modules/unictype/property-bidi-european-digit: New file.
54814         * modules/unictype/property-bidi-eur-num-separator: New file.
54815         * modules/unictype/property-bidi-eur-num-terminator: New file.
54816         * modules/unictype/property-bidi-arabic-digit: New file.
54817         * modules/unictype/property-bidi-common-separator: New file.
54818         * modules/unictype/property-bidi-block-separator: New file.
54819         * modules/unictype/property-bidi-segment-separator: New file.
54820         * modules/unictype/property-bidi-whitespace: New file.
54821         * modules/unictype/property-bidi-non-spacing-mark: New file.
54822         * modules/unictype/property-bidi-boundary-neutral: New file.
54823         * modules/unictype/property-bidi-pdf: New file.
54824         * modules/unictype/property-bidi-embedding-or-override: New file.
54825         * modules/unictype/property-bidi-other-neutral: New file.
54826         * modules/unictype/property-hex-digit: New file.
54827         * modules/unictype/property-ascii-hex-digit: New file.
54828         * modules/unictype/property-ideographic: New file.
54829         * modules/unictype/property-unified-ideograph: New file.
54830         * modules/unictype/property-radical: New file.
54831         * modules/unictype/property-ids-binary-operator: New file.
54832         * modules/unictype/property-ids-trinary-operator: New file.
54833         * modules/unictype/property-zero-width: New file.
54834         * modules/unictype/property-space: New file.
54835         * modules/unictype/property-non-break: New file.
54836         * modules/unictype/property-iso-control: New file.
54837         * modules/unictype/property-format-control: New file.
54838         * modules/unictype/property-dash: New file.
54839         * modules/unictype/property-hyphen: New file.
54840         * modules/unictype/property-punctuation: New file.
54841         * modules/unictype/property-line-separator: New file.
54842         * modules/unictype/property-paragraph-separator: New file.
54843         * modules/unictype/property-quotation-mark: New file.
54844         * modules/unictype/property-sentence-terminal: New file.
54845         * modules/unictype/property-terminal-punctuation: New file.
54846         * modules/unictype/property-currency-symbol: New file.
54847         * modules/unictype/property-math: New file.
54848         * modules/unictype/property-other-math: New file.
54849         * modules/unictype/property-paired-punctuation: New file.
54850         * modules/unictype/property-left-of-pair: New file.
54851         * modules/unictype/property-combining: New file.
54852         * modules/unictype/property-composite: New file.
54853         * modules/unictype/property-decimal-digit: New file.
54854         * modules/unictype/property-numeric: New file.
54855         * modules/unictype/property-diacritic: New file.
54856         * modules/unictype/property-extender: New file.
54857         * modules/unictype/property-ignorable-control: New file.
54858         * modules/unictype/property-test: New file.
54859         * modules/unictype/property-byname: New file.
54860         * modules/unictype/property-all: New file.
54861         * modules/unictype/scripts: New file.
54862         * modules/unictype/scripts-all: New file.
54863         * modules/unictype/block-of: New file.
54864         * modules/unictype/block-test: New file.
54865         * modules/unictype/block-list: New file.
54866         * modules/unictype/block-all: New file.
54867         * modules/unictype/syntax-c-whitespace: New file.
54868         * modules/unictype/syntax-java-whitespace: New file.
54869         * modules/unictype/syntax-c-ident: New file.
54870         * modules/unictype/syntax-java-ident: New file.
54871         * modules/unictype/ctype-alnum: New file.
54872         * modules/unictype/ctype-alpha: New file.
54873         * modules/unictype/ctype-cntrl: New file.
54874         * modules/unictype/ctype-digit: New file.
54875         * modules/unictype/ctype-graph: New file.
54876         * modules/unictype/ctype-lower: New file.
54877         * modules/unictype/ctype-print: New file.
54878         * modules/unictype/ctype-punct: New file.
54879         * modules/unictype/ctype-space: New file.
54880         * modules/unictype/ctype-upper: New file.
54881         * modules/unictype/ctype-xdigit: New file.
54882         * modules/unictype/ctype-blank: New file.
54883         * lib/unictype/bidi_byname.c: New file.
54884         * lib/unictype/bidi_name.c: New file.
54885         * lib/unictype/bidi_of.c: New file.
54886         * lib/unictype/bidi_test.c: New file.
54887         * lib/unictype/bitmap.h: New file.
54888         * lib/unictype/block_test.c: New file.
54889         * lib/unictype/blocks.c: New file.
54890         * lib/unictype/categ_C.c: New file.
54891         * lib/unictype/categ_Cc.c: New file.
54892         * lib/unictype/categ_Cf.c: New file.
54893         * lib/unictype/categ_Cn.c: New file.
54894         * lib/unictype/categ_Co.c: New file.
54895         * lib/unictype/categ_Cs.c: New file.
54896         * lib/unictype/categ_L.c: New file.
54897         * lib/unictype/categ_Ll.c: New file.
54898         * lib/unictype/categ_Lm.c: New file.
54899         * lib/unictype/categ_Lo.c: New file.
54900         * lib/unictype/categ_Lt.c: New file.
54901         * lib/unictype/categ_Lu.c: New file.
54902         * lib/unictype/categ_M.c: New file.
54903         * lib/unictype/categ_Mc.c: New file.
54904         * lib/unictype/categ_Me.c: New file.
54905         * lib/unictype/categ_Mn.c: New file.
54906         * lib/unictype/categ_N.c: New file.
54907         * lib/unictype/categ_Nd.c: New file.
54908         * lib/unictype/categ_Nl.c: New file.
54909         * lib/unictype/categ_No.c: New file.
54910         * lib/unictype/categ_P.c: New file.
54911         * lib/unictype/categ_Pc.c: New file.
54912         * lib/unictype/categ_Pd.c: New file.
54913         * lib/unictype/categ_Pe.c: New file.
54914         * lib/unictype/categ_Pf.c: New file.
54915         * lib/unictype/categ_Pi.c: New file.
54916         * lib/unictype/categ_Po.c: New file.
54917         * lib/unictype/categ_Ps.c: New file.
54918         * lib/unictype/categ_S.c: New file.
54919         * lib/unictype/categ_Sc.c: New file.
54920         * lib/unictype/categ_Sk.c: New file.
54921         * lib/unictype/categ_Sm.c: New file.
54922         * lib/unictype/categ_So.c: New file.
54923         * lib/unictype/categ_Z.c: New file.
54924         * lib/unictype/categ_Zl.c: New file.
54925         * lib/unictype/categ_Zp.c: New file.
54926         * lib/unictype/categ_Zs.c: New file.
54927         * lib/unictype/categ_and.c: New file.
54928         * lib/unictype/categ_and_not.c: New file.
54929         * lib/unictype/categ_byname.c: New file.
54930         * lib/unictype/categ_name.c: New file.
54931         * lib/unictype/categ_none.c: New file.
54932         * lib/unictype/categ_of.c: New file.
54933         * lib/unictype/categ_or.c: New file.
54934         * lib/unictype/categ_test.c: New file.
54935         * lib/unictype/combining.c: New file.
54936         * lib/unictype/ctype_alnum.c: New file.
54937         * lib/unictype/ctype_alpha.c: New file.
54938         * lib/unictype/ctype_blank.c: New file.
54939         * lib/unictype/ctype_cntrl.c: New file.
54940         * lib/unictype/ctype_digit.c: New file.
54941         * lib/unictype/ctype_graph.c: New file.
54942         * lib/unictype/ctype_lower.c: New file.
54943         * lib/unictype/ctype_print.c: New file.
54944         * lib/unictype/ctype_punct.c: New file.
54945         * lib/unictype/ctype_space.c: New file.
54946         * lib/unictype/ctype_upper.c: New file.
54947         * lib/unictype/ctype_xdigit.c: New file.
54948         * lib/unictype/decdigit.c: New file.
54949         * lib/unictype/digit.c: New file.
54950         * lib/unictype/identsyntaxmap.h: New file.
54951         * lib/unictype/mirror.c: New file.
54952         * lib/unictype/numeric.c: New file.
54953         * lib/unictype/pr_alphabetic.c: New file.
54954         * lib/unictype/pr_ascii_hex_digit.c: New file.
54955         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54956         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54957         * lib/unictype/pr_bidi_block_separator.c: New file.
54958         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54959         * lib/unictype/pr_bidi_common_separator.c: New file.
54960         * lib/unictype/pr_bidi_control.c: New file.
54961         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54962         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54963         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54964         * lib/unictype/pr_bidi_european_digit.c: New file.
54965         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54966         * lib/unictype/pr_bidi_left_to_right.c: New file.
54967         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54968         * lib/unictype/pr_bidi_other_neutral.c: New file.
54969         * lib/unictype/pr_bidi_pdf.c: New file.
54970         * lib/unictype/pr_bidi_segment_separator.c: New file.
54971         * lib/unictype/pr_bidi_whitespace.c: New file.
54972         * lib/unictype/pr_byname.c: New file.
54973         * lib/unictype/pr_byname.gperf: New file.
54974         * lib/unictype/pr_combining.c: New file.
54975         * lib/unictype/pr_composite.c: New file.
54976         * lib/unictype/pr_currency_symbol.c: New file.
54977         * lib/unictype/pr_dash.c: New file.
54978         * lib/unictype/pr_decimal_digit.c: New file.
54979         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54980         * lib/unictype/pr_deprecated.c: New file.
54981         * lib/unictype/pr_diacritic.c: New file.
54982         * lib/unictype/pr_extender.c: New file.
54983         * lib/unictype/pr_format_control.c: New file.
54984         * lib/unictype/pr_grapheme_base.c: New file.
54985         * lib/unictype/pr_grapheme_extend.c: New file.
54986         * lib/unictype/pr_grapheme_link.c: New file.
54987         * lib/unictype/pr_hex_digit.c: New file.
54988         * lib/unictype/pr_hyphen.c: New file.
54989         * lib/unictype/pr_id_continue.c: New file.
54990         * lib/unictype/pr_id_start.c: New file.
54991         * lib/unictype/pr_ideographic.c: New file.
54992         * lib/unictype/pr_ids_binary_operator.c: New file.
54993         * lib/unictype/pr_ids_trinary_operator.c: New file.
54994         * lib/unictype/pr_ignorable_control.c: New file.
54995         * lib/unictype/pr_iso_control.c: New file.
54996         * lib/unictype/pr_join_control.c: New file.
54997         * lib/unictype/pr_left_of_pair.c: New file.
54998         * lib/unictype/pr_line_separator.c: New file.
54999         * lib/unictype/pr_logical_order_exception.c: New file.
55000         * lib/unictype/pr_lowercase.c: New file.
55001         * lib/unictype/pr_math.c: New file.
55002         * lib/unictype/pr_non_break.c: New file.
55003         * lib/unictype/pr_not_a_character.c: New file.
55004         * lib/unictype/pr_numeric.c: New file.
55005         * lib/unictype/pr_other_alphabetic.c: New file.
55006         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55007         * lib/unictype/pr_other_grapheme_extend.c: New file.
55008         * lib/unictype/pr_other_id_continue.c: New file.
55009         * lib/unictype/pr_other_id_start.c: New file.
55010         * lib/unictype/pr_other_lowercase.c: New file.
55011         * lib/unictype/pr_other_math.c: New file.
55012         * lib/unictype/pr_other_uppercase.c: New file.
55013         * lib/unictype/pr_paired_punctuation.c: New file.
55014         * lib/unictype/pr_paragraph_separator.c: New file.
55015         * lib/unictype/pr_pattern_syntax.c: New file.
55016         * lib/unictype/pr_pattern_white_space.c: New file.
55017         * lib/unictype/pr_private_use.c: New file.
55018         * lib/unictype/pr_punctuation.c: New file.
55019         * lib/unictype/pr_quotation_mark.c: New file.
55020         * lib/unictype/pr_radical.c: New file.
55021         * lib/unictype/pr_sentence_terminal.c: New file.
55022         * lib/unictype/pr_soft_dotted.c: New file.
55023         * lib/unictype/pr_space.c: New file.
55024         * lib/unictype/pr_terminal_punctuation.c: New file.
55025         * lib/unictype/pr_test.c: New file.
55026         * lib/unictype/pr_titlecase.c: New file.
55027         * lib/unictype/pr_unassigned_code_value.c: New file.
55028         * lib/unictype/pr_unified_ideograph.c: New file.
55029         * lib/unictype/pr_uppercase.c: New file.
55030         * lib/unictype/pr_variation_selector.c: New file.
55031         * lib/unictype/pr_white_space.c: New file.
55032         * lib/unictype/pr_xid_continue.c: New file.
55033         * lib/unictype/pr_xid_start.c: New file.
55034         * lib/unictype/pr_zero_width.c: New file.
55035         * lib/unictype/scripts.c: New file.
55036         * lib/unictype/sy_c_ident.c: New file.
55037         * lib/unictype/sy_c_whitespace.c: New file.
55038         * lib/unictype/sy_java_ident.c: New file.
55039         * lib/unictype/sy_java_whitespace.c: New file.
55040
55041         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55042         Unicode 5.0.0.
55043         * lib/unictype/blocks.h: Likewise.
55044         * lib/unictype/categ_C.h: Likewise.
55045         * lib/unictype/categ_Cc.h: Likewise.
55046         * lib/unictype/categ_Cf.h: Likewise.
55047         * lib/unictype/categ_Cn.h: Likewise.
55048         * lib/unictype/categ_Co.h: Likewise.
55049         * lib/unictype/categ_Cs.h: Likewise.
55050         * lib/unictype/categ_L.h: Likewise.
55051         * lib/unictype/categ_Ll.h: Likewise.
55052         * lib/unictype/categ_Lm.h: Likewise.
55053         * lib/unictype/categ_Lo.h: Likewise.
55054         * lib/unictype/categ_Lt.h: Likewise.
55055         * lib/unictype/categ_Lu.h: Likewise.
55056         * lib/unictype/categ_M.h: Likewise.
55057         * lib/unictype/categ_Mc.h: Likewise.
55058         * lib/unictype/categ_Me.h: Likewise.
55059         * lib/unictype/categ_Mn.h: Likewise.
55060         * lib/unictype/categ_N.h: Likewise.
55061         * lib/unictype/categ_Nd.h: Likewise.
55062         * lib/unictype/categ_Nl.h: Likewise.
55063         * lib/unictype/categ_No.h: Likewise.
55064         * lib/unictype/categ_P.h: Likewise.
55065         * lib/unictype/categ_Pc.h: Likewise.
55066         * lib/unictype/categ_Pd.h: Likewise.
55067         * lib/unictype/categ_Pe.h: Likewise.
55068         * lib/unictype/categ_Pf.h: Likewise.
55069         * lib/unictype/categ_Pi.h: Likewise.
55070         * lib/unictype/categ_Po.h: Likewise.
55071         * lib/unictype/categ_Ps.h: Likewise.
55072         * lib/unictype/categ_S.h: Likewise.
55073         * lib/unictype/categ_Sc.h: Likewise.
55074         * lib/unictype/categ_Sk.h: Likewise.
55075         * lib/unictype/categ_Sm.h: Likewise.
55076         * lib/unictype/categ_So.h: Likewise.
55077         * lib/unictype/categ_Z.h: Likewise.
55078         * lib/unictype/categ_Zl.h: Likewise.
55079         * lib/unictype/categ_Zp.h: Likewise.
55080         * lib/unictype/categ_Zs.h: Likewise.
55081         * lib/unictype/categ_of.h: Likewise.
55082         * lib/unictype/combining.h: Likewise.
55083         * lib/unictype/ctype_alnum.h: Likewise.
55084         * lib/unictype/ctype_alpha.h: Likewise.
55085         * lib/unictype/ctype_blank.h: Likewise.
55086         * lib/unictype/ctype_cntrl.h: Likewise.
55087         * lib/unictype/ctype_digit.h: Likewise.
55088         * lib/unictype/ctype_graph.h: Likewise.
55089         * lib/unictype/ctype_lower.h: Likewise.
55090         * lib/unictype/ctype_print.h: Likewise.
55091         * lib/unictype/ctype_punct.h: Likewise.
55092         * lib/unictype/ctype_space.h: Likewise.
55093         * lib/unictype/ctype_upper.h: Likewise.
55094         * lib/unictype/ctype_xdigit.h: Likewise.
55095         * lib/unictype/decdigit.h: Likewise.
55096         * lib/unictype/digit.h: Likewise.
55097         * lib/unictype/mirror.h: Likewise.
55098         * lib/unictype/numeric.h: Likewise.
55099         * lib/unictype/pr_alphabetic.h: Likewise.
55100         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55101         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55102         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55103         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55104         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55105         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55106         * lib/unictype/pr_bidi_control.h: Likewise.
55107         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55108         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55109         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55110         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55111         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55112         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55113         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55114         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55115         * lib/unictype/pr_bidi_pdf.h: Likewise.
55116         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55117         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55118         * lib/unictype/pr_combining.h: Likewise.
55119         * lib/unictype/pr_composite.h: Likewise.
55120         * lib/unictype/pr_currency_symbol.h: Likewise.
55121         * lib/unictype/pr_dash.h: Likewise.
55122         * lib/unictype/pr_decimal_digit.h: Likewise.
55123         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55124         * lib/unictype/pr_deprecated.h: Likewise.
55125         * lib/unictype/pr_diacritic.h: Likewise.
55126         * lib/unictype/pr_extender.h: Likewise.
55127         * lib/unictype/pr_format_control.h: Likewise.
55128         * lib/unictype/pr_grapheme_base.h: Likewise.
55129         * lib/unictype/pr_grapheme_extend.h: Likewise.
55130         * lib/unictype/pr_grapheme_link.h: Likewise.
55131         * lib/unictype/pr_hex_digit.h: Likewise.
55132         * lib/unictype/pr_hyphen.h: Likewise.
55133         * lib/unictype/pr_id_continue.h: Likewise.
55134         * lib/unictype/pr_id_start.h: Likewise.
55135         * lib/unictype/pr_ideographic.h: Likewise.
55136         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55137         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55138         * lib/unictype/pr_ignorable_control.h: Likewise.
55139         * lib/unictype/pr_iso_control.h: Likewise.
55140         * lib/unictype/pr_join_control.h: Likewise.
55141         * lib/unictype/pr_left_of_pair.h: Likewise.
55142         * lib/unictype/pr_line_separator.h: Likewise.
55143         * lib/unictype/pr_logical_order_exception.h: Likewise.
55144         * lib/unictype/pr_lowercase.h: Likewise.
55145         * lib/unictype/pr_math.h: Likewise.
55146         * lib/unictype/pr_non_break.h: Likewise.
55147         * lib/unictype/pr_not_a_character.h: Likewise.
55148         * lib/unictype/pr_numeric.h: Likewise.
55149         * lib/unictype/pr_other_alphabetic.h: Likewise.
55150         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55151         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55152         * lib/unictype/pr_other_id_continue.h: Likewise.
55153         * lib/unictype/pr_other_id_start.h: Likewise.
55154         * lib/unictype/pr_other_lowercase.h: Likewise.
55155         * lib/unictype/pr_other_math.h: Likewise.
55156         * lib/unictype/pr_other_uppercase.h: Likewise.
55157         * lib/unictype/pr_paired_punctuation.h: Likewise.
55158         * lib/unictype/pr_paragraph_separator.h: Likewise.
55159         * lib/unictype/pr_pattern_syntax.h: Likewise.
55160         * lib/unictype/pr_pattern_white_space.h: Likewise.
55161         * lib/unictype/pr_private_use.h: Likewise.
55162         * lib/unictype/pr_punctuation.h: Likewise.
55163         * lib/unictype/pr_quotation_mark.h: Likewise.
55164         * lib/unictype/pr_radical.h: Likewise.
55165         * lib/unictype/pr_sentence_terminal.h: Likewise.
55166         * lib/unictype/pr_soft_dotted.h: Likewise.
55167         * lib/unictype/pr_space.h: Likewise.
55168         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55169         * lib/unictype/pr_titlecase.h: Likewise.
55170         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55171         * lib/unictype/pr_unified_ideograph.h: Likewise.
55172         * lib/unictype/pr_uppercase.h: Likewise.
55173         * lib/unictype/pr_variation_selector.h: Likewise.
55174         * lib/unictype/pr_white_space.h: Likewise.
55175         * lib/unictype/pr_xid_continue.h: Likewise.
55176         * lib/unictype/pr_xid_start.h: Likewise.
55177         * lib/unictype/pr_zero_width.h: Likewise.
55178         * lib/unictype/scripts.h: Likewise.
55179         * lib/unictype/scripts_byname.gperf: Likewise.
55180         * lib/unictype/sy_c_ident.h: Likewise.
55181         * lib/unictype/sy_c_whitespace.h: Likewise.
55182         * lib/unictype/sy_java_ident.h: Likewise.
55183         * lib/unictype/sy_java_whitespace.h: Likewise.
55184
55185         * lib/unictype/Makefile: New file.
55186         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55187         glibc.
55188         * lib/unictype/3level.h: New file, copied from glibc.
55189         * lib/unictype/3levelbit.h: New file.
55190
55191 2007-11-11  Bruno Haible  <bruno@clisp.org>
55192
55193         * modules/gperf: New file.
55194         * modules/iconv_open (Depends-on): Add it.
55195         (Makefile.am): Remove the GPERF definition.
55196
55197 2007-11-11  Bruno Haible  <bruno@clisp.org>
55198
55199         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55200         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55201
55202 2007-11-11  Bruno Haible  <bruno@clisp.org>
55203
55204         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55205         (usage): Remove function.
55206
55207 2007-11-11  Bruno Haible  <bruno@clisp.org>
55208
55209         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55210         gl_FUNC_CEILF_LIBS.
55211         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55212         gl_FUNC_CEIL_LIBS.
55213         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55214         gl_FUNC_CEILL_LIBS.
55215         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55216         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55217         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55218
55219 2007-11-11  Bruno Haible  <bruno@clisp.org>
55220
55221         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55222         roundf were declared but do not exist on functions.
55223         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55224         roundl were declared but do not exist on functions.
55225         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55226         HAVE_FLOORL_AND_CEILL, respectively.
55227         Needed for Sun C on Solaris 10.
55228
55229 2007-11-11  Bruno Haible  <bruno@clisp.org>
55230
55231         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55232         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55233         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55234         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55235         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55236         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55237         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55238         HAVE_DECL_ROUNDF.
55239         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55240         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55242         of HAVE_DECL_ROUND*.
55243         * modules/math (Makefile.am): Update.
55244
55245 2007-11-10  Bruno Haible  <bruno@clisp.org>
55246
55247         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55248         ptrdiff_t as m4/intl.m4.
55249
55250 2007-11-10  Jim Meyering  <meyering@redhat.com>
55251
55252         Avoid link failure for the argmatch test.
55253         * tests/test-argmatch.c (usage): Define function to avoid a link
55254         failure: argmatch_die requires a usage function.
55255
55256 2007-11-09  Bruno Haible  <bruno@clisp.org>
55257
55258         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55259         * doc/functions/vsnprintf.texi: Likewise.
55260         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55261         with a size argument < 2.
55262
55263 2007-11-09  Bruno Haible  <bruno@clisp.org>
55264
55265         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55266         buffer. Fixes an inefficiency introduced on 2007-11-03.
55267
55268 2007-11-09  Bruno Haible  <bruno@clisp.org>
55269
55270         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55271         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55272
55273 2007-11-08  Jim Meyering  <meyering@redhat.com>
55274
55275         Change cache variable name prefix "jm_" to "gl_" everywhere.
55276         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55277         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55278         * m4/uptime.m4: s/gl_/jm_/
55279
55280 2007-11-07  Bruno Haible  <bruno@clisp.org>
55281
55282         Update to GNU gettext 0.17.
55283         * m4/intl.m4: Update to GNU gettext 0.17.
55284         * m4/po.m4: Likewise.
55285         * modules/gettext (Files): Remove m4/ulonglong.m4.
55286         (configure.ac): Require gettext infrastructure from version 0.17.
55287
55288 2007-11-06  Bruno Haible  <bruno@clisp.org>
55289
55290         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55291         symbolic values are not defined in a public header.
55292         * lib/freadable.c (freadable) [QNX]: Likewise.
55293         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55294         * lib/freading.c (freading) [QNX]: Likewise.
55295         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55296         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55297         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55298         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55299         Reported by Alain Magloire.
55300
55301         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55302
55303 2007-11-05  Bruno Haible  <bruno@clisp.org>
55304
55305         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55306         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55307         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55308         Reported by Eric Blake.
55309
55310 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55311             Bruno Haible  <bruno@clisp.org>
55312
55313         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55314         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55315         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55316         (malloc): Undefine also before including <stdlib.h>.
55317         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55318         Needed on OSF/1 4.0.
55319
55320 2007-11-05  Jim Meyering  <meyering@redhat.com>
55321
55322         git-version-gen: sync from coreutils.
55323         * build-aux/git-version-gen: Add comments.
55324         Change the first '-' to '.' in the snapshot version string,
55325         e.g., 6.9-377-08144 -> 6.9.377-08144
55326         Remove first parameter.
55327         Don't declare a version "-dirty" merely because a time
55328         stamp has changed.
55329
55330 2007-11-04  Bruno Haible  <bruno@clisp.org>
55331
55332         * lib/lock.h: Protect all macro definitions containing an 'if'
55333         statement through a "do { ... } while (0)".
55334         * lib/tls.h: Likewise.
55335
55336 2007-11-04  Bruno Haible  <bruno@clisp.org>
55337
55338         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55339
55340 2007-11-04  Bruno Haible  <bruno@clisp.org>
55341
55342         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55343         * modules/fprintf-posix (Depends-on): Add nocrash.
55344         * modules/snprintf-posix (Depends-on): Likewise.
55345         * modules/sprintf-posix (Depends-on): Likewise.
55346         * modules/vasnprintf-posix (Depends-on): Likewise.
55347         * modules/vasprintf-posix (Depends-on): Likewise.
55348         * modules/vfprintf-posix (Depends-on): Likewise.
55349         * modules/vsnprintf-posix (Depends-on): Likewise.
55350         * modules/vsprintf-posix (Depends-on): Likewise.
55351         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55352         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55353         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55354         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55355         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55356         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55357         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55358
55359 2007-11-04  Bruno Haible  <bruno@clisp.org>
55360
55361         * modules/nocrash: New file.
55362         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55363         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55364
55365 2007-11-04  Bruno Haible  <bruno@clisp.org>
55366
55367         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55368         precision handling.
55369         * tests/test-vasprintf-posix.c (test_function): Likewise.
55370         * tests/test-snprintf-posix.h (test_function): Likewise.
55371         * tests/test-sprintf-posix.h (test_function): Likewise.
55372
55373         Fix *printf behaviour for large precisions on mingw and BeOS.
55374         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55375         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55377         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55378         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55379         gl_PRINTF_PRECISION and test its result. Invoke
55380         gl_PREREQ_VASNPRINTF_PRECISION.
55381         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55382         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55383         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55385         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55386         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55387         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55388         * doc/functions/fprintf.texi: Update.
55389         * doc/functions/printf.texi: Update.
55390         * doc/functions/snprintf.texi: Update.
55391         * doc/functions/sprintf.texi: Update.
55392         * doc/functions/vfprintf.texi: Update.
55393         * doc/functions/vprintf.texi: Update.
55394         * doc/functions/vsnprintf.texi: Update.
55395         * doc/functions/vsprintf.texi: Update.
55396
55397 2007-11-04  Bruno Haible  <bruno@clisp.org>
55398
55399         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55400
55401 2007-11-04  Bruno Haible  <bruno@clisp.org>
55402
55403         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55404         Reported by Sylvain Beucler <beuc@gnu.org>.
55405
55406 2007-11-03  Bruno Haible  <bruno@clisp.org>
55407
55408         * tests/test-fprintf-posix2.sh: New file.
55409         * tests/test-fprintf-posix2.c: New file.
55410         * modules/fprintf-posix-tests (Files): Add them.
55411         (TESTS): Add test-fprintf-posix2.sh.
55412         (configure.ac): Check for getrlimit and setrlimit.
55413         (check_PROGRAMS): Add test-fprintf-posix2.
55414
55415         * tests/test-printf-posix2.sh: New file.
55416         * tests/test-printf-posix2.c: New file.
55417         * modules/printf-posix-tests (Files): Add them.
55418         (TESTS): Add test-printf-posix2.sh.
55419         (configure.ac): Check for getrlimit and setrlimit.
55420         (check_PROGRAMS): Add test-printf-posix2.
55421
55422         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55423         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55424         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55425         (decode_double): New function, copied from decode_long_double.
55426         (scale10_round_decimal_decoded): New function, extracted from
55427         scale10_round_decimal_long_double.
55428         (scale10_round_decimal_long_double): Use it.
55429         (scale10_round_decimal_double): New function.
55430         (floorlog10): New function.
55431         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55433         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55435         gl_PRINTF_ENOMEM and test its result. Invoke
55436         gl_PREREQ_VASNPRINTF_ENOMEM.
55437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55438         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55439         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55440         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55441         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55442         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55443         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55444         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55445         * modules/snprintf-posix (Depends-on): Likewise.
55446         * modules/sprintf-posix (Depends-on): Likewise.
55447         * modules/vasnprintf-posix (Depends-on): Likewise.
55448         * modules/vasprintf-posix (Depends-on): Likewise.
55449         * modules/vfprintf-posix (Depends-on): Likewise.
55450         * modules/vsnprintf-posix (Depends-on): Likewise.
55451         * modules/vsprintf-posix (Depends-on): Likewise.
55452         * doc/functions/fprintf.texi: Update.
55453         * doc/functions/printf.texi: Update.
55454         * doc/functions/snprintf.texi: Update.
55455         * doc/functions/sprintf.texi: Update.
55456         * doc/functions/vfprintf.texi: Update.
55457         * doc/functions/vprintf.texi: Update.
55458         * doc/functions/vsnprintf.texi: Update.
55459         * doc/functions/vsprintf.texi: Update.
55460
55461 2007-11-03  Bruno Haible  <bruno@clisp.org>
55462
55463         * modules/frexp-nolibm-tests: New file.
55464
55465         * modules/frexp-nolibm: New file.
55466         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55467
55468 2007-11-03  Bruno Haible  <bruno@clisp.org>
55469
55470         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55471         value is C99 compliant.
55472         Needed for OSF/1 5.1.
55473
55474 2007-11-03  Bruno Haible  <bruno@clisp.org>
55475
55476         Fix out-of-memory handling of vasnprintf.
55477         * lib/printf-parse.c: Include <errno.h>.
55478         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55479         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55480         is already set.
55481
55482 2007-11-02  Eric Blake  <ebb9@byu.net>
55483
55484         Fix tests on cygwin.
55485         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55486
55487 2007-11-01  Bruno Haible  <bruno@clisp.org>
55488
55489         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55490         warning.
55491         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55492         needed for POSIX compatibility.
55493
55494 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55495
55496         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55497         for compatibility with GNU.
55498
55499 2007-11-01  Bruno Haible  <bruno@clisp.org>
55500
55501         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55502         (putenv): Renamed from rpl_putenv. Change argument type from
55503         'const char *' to 'char *'.
55504         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55505         of defining putenv in config.h, just set REPLACE_PUTENV.
55506         * modules/putenv (Depends-on): Add stdlib.
55507         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55508         (Include): Use <stdlib.h>.
55509         * lib/stdlib.in.h (putenv): New declaration.
55510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55511         REPLACE_PUTENV.
55512         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55513         REPLACE_PUTENV.
55514         Needed for MacOS X 10.5.0.
55515         Reported by Peter O'Gorman <peter@pogma.com>.
55516
55517 2007-11-01  Jim Meyering  <meyering@redhat.com>
55518
55519         Treat an empty date string exactly like "0".
55520         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55521         if the remaining date string (to be parsed) is empty, use "0".
55522         Reported by Mischa Molhoek and discussed in this thread:
55523         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55524
55525 2007-10-31  Bruno Haible  <bruno@clisp.org>
55526
55527         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55528         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55529         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55530         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55531         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55532         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55533
55534 2007-10-31  Bruno Haible  <bruno@clisp.org>
55535
55536         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55537         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55538         (AC_TYPE_LONG_LONG_INT): Use it.
55539         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55540         it as well.
55541         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55542         to m4/longlong.m4.
55543         * modules/stdint (Files): Remove m4/ulonglong.m4.
55544         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55545         m4/ulonglong.m4.
55546         * modules/strtoumax (Files): Likewise.
55547
55548 2007-10-30  Bruno Haible  <bruno@clisp.org>
55549
55550         * modules/xvasprintf-posix: New file.
55551         Suggested by Eric Blake.
55552
55553 2007-10-30  Bruno Haible  <bruno@clisp.org>
55554
55555         * modules/xprintf-posix-tests: New file.
55556         * tests/test-xprintf-posix.sh: New file.
55557         * tests/test-xprintf-posix.c: New file.
55558         * tests/test-xfprintf-posix.c: New file.
55559
55560         * modules/xprintf-posix: New file.
55561
55562 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55563
55564         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55565         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55566         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55567
55568 2007-10-29  Bruno Haible  <bruno@clisp.org>
55569
55570         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55571         contain the special marker '_cv_'.
55572         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55573         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55574         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55575         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55576         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55577         Reported by Ralf Wildenhues.
55578
55579 2007-10-29  Bruno Haible  <bruno@clisp.org>
55580
55581         * gnulib-tool (func_import): When --lgpl is not specified, set
55582         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55583         GPLv3.
55584         Reported by Simon Josefsson.
55585
55586 2007-10-28  Bruno Haible  <bruno@clisp.org>
55587
55588         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55589         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55590         HAVE_DECL_ISFINITE.
55591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55592         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55593         HAVE_DECL_ISFINITE.
55594
55595 2007-10-28  Bruno Haible  <bruno@clisp.org>
55596
55597         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55598         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55599
55600 2007-10-28  Bruno Haible  <bruno@clisp.org>
55601
55602         Fix link errors with Sun C 5.0 on Solaris 10.
55603         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55604         function is declared but not present in the compiler's libm.
55605         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55606         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55607         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55608         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55609         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55610         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55611         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55613         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55614         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55615         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55616         HAVE_DECL_FLOORL.
55617
55618 2007-10-28  Bruno Haible  <bruno@clisp.org>
55619
55620         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55621         gl_FUNC_FLOORL. Cache the result.
55622         (gl_FUNC_FLOORL): Use it.
55623         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55624         gl_FUNC_CEILL. Cache the result.
55625         (gl_FUNC_CEILL): Use it.
55626
55627         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55628         gl_FUNC_FLOOR. Cache the result.
55629         (gl_FUNC_FLOOR): Use it.
55630         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55631         gl_FUNC_CEIL. Cache the result.
55632         (gl_FUNC_CEIL): Use it.
55633
55634         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55635         gl_FUNC_FLOORF. Cache the result.
55636         (gl_FUNC_FLOORF): Use it.
55637         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55638         gl_FUNC_CEILF. Cache the result.
55639         (gl_FUNC_CEILF): Use it.
55640
55641 2007-10-28  Bruno Haible  <bruno@clisp.org>
55642
55643         * gnulib-tool: Allow specifying the LGPL version number through
55644         --lgpl=2 or --lgpl=3.
55645         (func_usage): Document --lgpl with argument.
55646         Handle --lgpl=... arguments.
55647         (func_import): Recognize also gl_LGPL calls with an argument. When
55648         --lgpl=2 is used and the module's license is just LGPL, report an
55649         error. Set sed_transform_lib_file according to the lgpl variable. In
55650         the generated files, use --lgpl or gl_LGPL invocations with argument,
55651         if necessary.
55652         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55653         an LGPv2+ license.
55654         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55655         gl_LGPL macro.
55656
55657 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55658             Bruno Haible  <bruno@clisp.org>
55659
55660         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55661         (u16_uctomb_aux): Likewise.
55662         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55663         !HAVE_INLINE.
55664         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55665
55666 2007-10-28  Bruno Haible  <bruno@clisp.org>
55667
55668         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55669         Invoke AM_GETTEXT_OPTION if it exists.
55670         * modules/vasprintf: Likewise.
55671         * modules/verror: Likewise.
55672         * modules/xprintf: Likewise.
55673         * modules/xvasprintf: Likewise.
55674
55675 2007-10-27  Ben Pfaff  <blp@gnu.org>
55676
55677         * lib/math.in.h: Define isfinite macro and prototypes for
55678         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55679         implementations.
55680         * m4/math_h.m4: New substitutions for isfinite module.
55681         * lib/isfinite.c: New file.
55682         * m4/isfinite.m4: New file.
55683         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55684         * modules/isfinite: New file.
55685         * modules/isfinite-tests: New file.
55686         * tests/tests-isfinite.c: New file.
55687         * doc/functions/isfinite.texi: Mention isfinite module.
55688         * MODULES.html.sh: Mention new module.
55689
55690 2007-10-27  Ben Pfaff  <blp@gnu.org>
55691
55692         Ralf Wildenhues reported that Tru64 4.0D declares the round
55693         functions but does not have definitions.
55694         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55695         cannot be found in any library, set the output variable to
55696         "missing" instead of "".
55697         * m4/round.m4: Also use our substitute if we cannot find round in
55698         any library, even if it is declared.
55699         * m4/roundf.m4: Likewise for roundf.
55700         * m4/roundl.m4: Likewise for roundl.
55701         * lib/math.in.h: Undefine roundf, round, roundl before defining
55702         their replacements, to allow for hypothetical systems where these
55703         may be defined as macros but not available in libraries.
55704
55705 2007-10-27  Bruno Haible  <bruno@clisp.org>
55706
55707         * doc/gnulib.texi: Invoke @firstparagraphindent.
55708         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55709         changes in gnulib.
55710         (Source changes): New section.
55711
55712 2007-10-26  Bruno Haible  <bruno@clisp.org>
55713
55714         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55715         borrowed from autoconf.
55716
55717 2007-10-26  Bruno Haible  <bruno@clisp.org>
55718
55719         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55720         strerror returned the empty string. Needed on HP-UX 11.00.
55721
55722 2007-10-24  Micah Cowan  <micah@cowan.name>
55723
55724         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55725         * build-aux/bootstrap: Remove support for now-unnecessary option,
55726         --cvs-user, and envvars CVS_USER, CVS_RSH.
55727
55728 2007-10-24  Jim Meyering  <meyering@redhat.com>
55729
55730         Avoid diagnostics from sha1sum when there is no cached checksum.
55731         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55732         if the po.s1 file hasn't been created yet.
55733
55734         * build-aux/bootstrap: Sync from coreutils:
55735         2007-10-24  Jim Meyering  <meyering@redhat.com>
55736         Get gnulib from the git repository, not from an obsolete cvs one.
55737         * build-aux/bootstrap: Suggestion from Micah Cowan.
55738         2007-10-04  Jim Meyering  <jim@meyering.net>
55739         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55740         (update_po_files): Work also when there are no .po files in po/.
55741
55742 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55743
55744         * README: Append ".git" to git and cg examples.
55745         Problem reported by Benoit Sigoure.
55746
55747 2007-10-23  Micah Cowan  <micah@cowan.name>
55748
55749         * users.txt: Add wget.
55750
55751 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55752
55753         Fix linking of some unistdio tests on FreeBSD.
55754         * modules/unistdio/u16-vsnprintf-tests
55755         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55756         * modules/unistdio/u16-vsprintf-tests
55757         (test_u16_vsnprintf1_LDADD): Likewise.
55758         * modules/unistdio/u32-vsnprintf-tests
55759         (test_u32_vsnprintf1_LDADD): Likewise.
55760         * modules/unistdio/u32-vsprintf-tests
55761         (test_u32_vsprintf1_LDADD): Likewise.
55762         * modules/unistdio/u8-vsnprintf-tests
55763         (test_u8_vsnprintf1_LDADD): Likewise.
55764         * modules/unistdio/u8-vsprintf-tests
55765         (test_u8_vsprintf1_LDADD): Likewise.
55766         * modules/unistdio/ulc-vsnprintf-tests
55767         (test_ulc_vsnprintf1_LDADD): Likewise.
55768         * modules/unistdio/ulc-vsprintf-tests
55769         (test_ulc_vsprintf1_LDADD): Likewise.
55770
55771         Fix linking of some uniconv tests on FreeBSD.
55772         * modules/uniconv/u16-conv-from-enc-tests
55773         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55774         * modules/uniconv/u16-conv-to-enc-tests
55775         (test_u16_conv_to_enc_LDADD): Likewise.
55776         * modules/uniconv/u16-strconv-from-enc-tests
55777         (test_u16_strconv_from_enc_LDADD): Likewise.
55778         * modules/uniconv/u16-strconv-to-enc-tests
55779         (test_u16_strconv_to_enc_LDADD): Likewise.
55780         * modules/uniconv/u32-conv-from-enc-tests
55781         (test_u32_conv_from_enc_LDADD): Likewise.
55782         * modules/uniconv/u32-conv-to-enc-tests
55783         (test_u32_conv_to_enc_LDADD): Likewise.
55784         * modules/uniconv/u32-strconv-from-enc-tests
55785         (test_u32_strconv_from_enc_LDADD): Likewise.
55786         * modules/uniconv/u32-strconv-to-enc-tests
55787         (test_u32_strconv_to_enc_LDADD): Likewise.
55788         * modules/uniconv/u8-conv-from-enc-tests
55789         (test_u8_conv_from_enc_LDADD): Likewise.
55790         * modules/uniconv/u8-conv-to-enc-tests
55791         (test_u8_conv_to_enc_LDADD): Likewise.
55792         * modules/uniconv/u8-strconv-from-enc-tests
55793         (test_u8_strconv_from_enc_LDADD): Likewise.
55794         * modules/uniconv/u8-strconv-to-enc-tests
55795         (test_u8_strconv_to_enc_LDADD): Likewise.
55796
55797 2007-10-22  Bruno Haible  <bruno@clisp.org>
55798
55799         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55800         size.
55801
55802 2007-10-22  Eric Blake  <ebb9@byu.net>
55803
55804         Tweak x*printf documentation.
55805         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55806         variable name and comments.
55807         Suggested by Bruno Haible.
55808
55809 2007-10-22  Bruno Haible  <bruno@clisp.org>
55810
55811         * lib/acl.c (copy_acl): Fix file name in comment.
55812
55813 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55814
55815         Fix Tru64 problem with stdbool.h.
55816         * lib/stdbool.in.h (false, true):
55817         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55818         Don't declare as an enum in this situation; it runs afoul of Tru64.
55819         Problem reported by Steven M. Schweda in
55820         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55821
55822 2007-10-22  Eric Blake  <ebb9@byu.net>
55823
55824         Also wrap vf?printf.
55825         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55826         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55827         (xvprintf, xvfprintf): New functions.
55828
55829 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55830
55831         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55832         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55833
55834         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55835         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55836
55837 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55838
55839         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55840         by Bruno Haible.
55841
55842 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55843
55844         * lib/getloadavg.c
55845         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55846         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55847
55848         * tests/test-i-ring.c: Work for C89.
55849
55850 2007-10-22  Bruno Haible  <bruno@clisp.org>
55851
55852         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55853         -1u, in preprocessor expression, so that we don't test for the bug
55854         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55855         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55856
55857 2007-10-22  Eric Blake  <ebb9@byu.net>
55858
55859         * tests/test-yesno.sh: Silence stderr during test.
55860
55861 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55862
55863         * modules/crypto/gc-camellia: New file.
55864
55865         * m4/gc-camellia.m4: New file.
55866
55867         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55868
55869         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55870
55871 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55872
55873         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55874         --help to stdout.  Reported by sms@antinode.org (Steven
55875         M. Schweda).
55876
55877 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55878
55879         * users.txt: Fix link to libksba.
55880
55881 2007-10-21  Ben Pfaff  <blp@gnu.org>
55882
55883         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55884         round.c roundf implementation that depends on floorf and ceilf to
55885         be tested unconditionally.
55886
55887 2007-10-21  Ben Pfaff  <blp@gnu.org>
55888
55889         * m4/check-libm-func.m4: Removed.
55890         * m4/check-math-lib.m4: New file.
55891         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55892         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55893         definition and lack of AC_LIBOBJ([roundf]).
55894         * m4/roundl.m4: Ditto, and similarly for roundl.
55895         * modules/round: Reference new m4 file.
55896         * modules/roundf: Ditto.
55897         * modules/roundl: Ditto.
55898         * tests/test-round2.c (main): Use ROUND instead of round.
55899         Bug report from Bruno Haible.
55900
55901 2007-10-21  Bruno Haible  <bruno@clisp.org>
55902
55903         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55904         context.
55905
55906 2007-10-21  Bruno Haible  <bruno@clisp.org>
55907
55908         * tests/test-wcwidth.c (main): Allow negative result for some control
55909         characters.
55910
55911         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55912         Needed on OSF/1 5.1.
55913
55914 2007-10-21  Bruno Haible  <bruno@clisp.org>
55915
55916         * tests/test-floorf1.c: Include isnanf.h.
55917         (main): Use isnanf() instead of isnan().
55918         * tests/test-ceilf1.c: Include isnanf.h.
55919         (main): Use isnanf() instead of isnan().
55920         * tests/test-truncf1.c: Include isnanf.h.
55921         (main): Use isnanf() instead of isnan().
55922         * tests/test-roundf1.c: Include isnanf.h.
55923         (main): Use isnanf() instead of isnan().
55924
55925 2007-10-21  Eric Blake  <ebb9@byu.net>
55926
55927         * users.txt: Update URL for m4.
55928
55929 2007-10-21  Bruno Haible  <bruno@clisp.org>
55930
55931         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55932
55933 2007-10-21  Bruno Haible  <bruno@clisp.org>
55934
55935         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55936         Git's management files if the CVS files are not present.
55937
55938 2007-10-20  Bruno Haible  <bruno@clisp.org>
55939
55940         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55941         gcc-3.4.x.
55942
55943 2007-10-20  Ben Pfaff  <blp@gnu.org>
55944
55945         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55946         implementations.
55947         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55948         * lib/round.c: New file.
55949         * lib/roundf.c: New file.
55950         * lib/roundl.c: New file.
55951         * m4/round.m4: New file.
55952         * m4/roundf.m4: New file.
55953         * m4/roundl.m4: New file.
55954         * m4/check-libm-func-m4: New file.
55955         * modules/math: Replace round, roundf, roundl related @VARS@ in
55956         math.in.h.
55957         * modules/round: New file.
55958         * modules/round-tests: New file.
55959         * modules/roundf: New file.
55960         * modules/roundf-tests: New file.
55961         * modules/roundl: New file.
55962         * modules/roundl-tests: New file.
55963         * tests/test-round1.c: New file.
55964         * tests/test-round2.c: New file.
55965         * tests/test-roundf1.c: New file.
55966         * tests/test-roundf2.c: New file.
55967         * tests/test-roundl.c: New file.
55968         * doc/functions/round.texi: Mention round module.
55969         * doc/functions/roundf.texi: Mention roundf module.
55970         * doc/functions/roundl.texi: Mention roundl module.
55971         * MODULES.html.sh: Mention new modules.
55972         Thanks to Bruno Haible for suggestions.
55973
55974 2007-10-20  Jim Meyering  <meyering@redhat.com>
55975
55976         * lib/xprintf.c: Include <config.h> unconditionally.
55977
55978         Change xprintf's license to GPL.
55979         * modules/xprintf (License): s/LGPL/GPL/, since this module
55980         depends on modules (exit and exitfail) which are GPL.
55981         Suggestion from Bruno Haible.
55982
55983         xprintf fixes.
55984         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55985         Use a clearer diagnostic.
55986         Patch from Bruno Haible.
55987
55988 2007-10-20  Bruno Haible  <bruno@clisp.org>
55989
55990         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55991         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55992         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55993
55994 2007-10-20  Bruno Haible  <bruno@clisp.org>
55995
55996         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55997         precision in the comparison result > x - 1 or similar.
55998         * tests/test-ceilf2.c (correct_result_p): Likewise.
55999         * tests/test-truncf2.c (correct_result_p): Likewise.
56000         * tests/test-trunc2.c (correct_result_p): Likewise.
56001         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56002
56003 2007-10-20  Bruno Haible  <bruno@clisp.org>
56004
56005         * modules/ceil: New file.
56006         * m4/ceil.m4: New file.
56007         * doc/functions/ceil.texi: Mention the 'ceil' module.
56008
56009 2007-10-20  Bruno Haible  <bruno@clisp.org>
56010
56011         * modules/floor: New file.
56012         * m4/floor.m4: New file.
56013         * doc/functions/floor.texi: Mention the 'floor' module.
56014
56015 2007-10-20  Bruno Haible  <bruno@clisp.org>
56016
56017         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56018         of %a.
56019         * modules/floorf-tests (Depends-on): Likewise.
56020         * modules/truncf-tests (Depends-on): Likewise.
56021         * modules/trunc-tests (Depends-on): Likewise.
56022         Reported by Ben Pfaff.
56023
56024 2007-10-19  Jim Meyering  <meyering@redhat.com>
56025
56026         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56027         Don't bother testing specific errno values.  Just test ferror.
56028
56029         New module: xprintf
56030         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56031
56032 2007-10-19  Bruno Haible  <bruno@clisp.org>
56033
56034         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56035         syntax.
56036         * modules/javaexec (Makefile.am): Likewise.
56037         * modules/relocatable-prog (Makefile.am): Likewise.
56038         Suggested by Jim Meyering.
56039
56040 2007-10-18  Bruno Haible  <bruno@clisp.org>
56041
56042         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56043         Reported by Jim Meyering.
56044
56045 2007-10-18  Eric Blake  <ebb9@byu.net>
56046
56047         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56048
56049 2007-10-18  Bruno Haible  <bruno@clisp.org>
56050
56051         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56052         the format string into writable memory. Needed in Fortify conditions.
56053
56054 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56055             Bruno Haible  <bruno@clisp.org>
56056
56057         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56058         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56059         * modules/trim (Depends-on): Add mbchar.
56060         (configure.ac): Add gl_FUNC_MBRTOWC.
56061         (Makefile.am): Augment lib_SOURCES.
56062
56063 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56064
56065         Modify glob.c to use fstatat and dirfd, to simplify it.
56066         Suggested by Eric Blake.
56067         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56068         Don't include <stdbool.h>; not used.
56069         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56070         (link_exists_p): Simplify implementation, since we can now assume
56071         dirfd and fstatat.
56072         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56073
56074 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56075
56076         * gnulib-tool (func_get_dependencies): Fix sed script to
56077         match only tests.
56078
56079 2007-10-17  Bruno Haible  <bruno@clisp.org>
56080
56081         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56082         allow locale names without encoding suffix.
56083         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56084         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56085
56086 2007-10-16  Bruno Haible  <bruno@clisp.org>
56087
56088         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56089         * lib/getgroups.c (getgroups): Likewise.
56090         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56091
56092 2007-10-16  Bruno Haible  <bruno@clisp.org>
56093
56094         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56095         * modules/malloc-posix (License): Likewise.
56096         * modules/realloc-posix (License): Likewise.
56097         * modules/calloc-posix (License): Likewise.
56098         * modules/intprops (License): Change from GPL to LGPL, with
56099         Paul Eggert's approval.
56100
56101 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56102
56103         Merge glibc changes into lib/glob.c.
56104
56105         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56106         2007-10-15 04:59:03 UTC.  Here are the changes:
56107
56108         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56109
56110         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56111
56112         * lib/glob.c: Add some branch prediction throughout.
56113
56114         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56115
56116         [BZ #5103]
56117         * lib/glob.c (glob): Recognize patterns starting \/.
56118
56119         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56120
56121         [BZ #3996]
56122         * lib/glob.c (attribute_hidden): Define if not defined.
56123         (glob): Unescape dirname, filename or username when needed and not
56124         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56125         is NULL.  Handle unescaped [ in pattern without closing ].
56126         Don't pass GLOB_CHECK down to recursive glob for directories.
56127         (__glob_pattern_type): New function.
56128         (__glob_pattern_p): Implement using __glob_pattern_type.
56129         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56130         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56131         Remove unreachable code.
56132
56133         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56134
56135         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56136         explain why there are no leaks.
56137
56138         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56139
56140         [BZ #3253]
56141         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56142         time, rather allocate increasingly bigger arrays of pointers, if
56143         possible with alloca, if too large with malloc.
56144
56145 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56146
56147         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56148         Problem reported by H.Merijn Brand in
56149         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56150         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56151         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56152
56153 2007-10-15  Bruno Haible  <bruno@clisp.org>
56154
56155         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56156         with explicit rpl_ prefix.
56157         * lib/fopen.c (fopen): Likewise.
56158         * lib/freopen.c (freopen): Likewise.
56159         * lib/iconv.c (iconv): Likewise.
56160         * lib/iconv_close.c (iconv_close): Likewise.
56161
56162 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56163
56164         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56165
56166 2007-10-15  Bruno Haible  <bruno@clisp.org>
56167
56168         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56169         <stddef.h> instead of <stdlib.h> since we only need NULL.
56170         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56171
56172 2007-10-15  Bruno Haible  <bruno@clisp.org>
56173
56174         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56175         Replace paragraph talking about LIBOBJS.
56176         Reported by Colin Watson <cjwatson@debian.org>.
56177
56178 2007-10-15  Bruno Haible  <bruno@clisp.org>
56179
56180         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56181         <stdlib.h> before using NULL.
56182
56183 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56184
56185         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56186         Reported by Albert Chin <china@thewrittenword.com>.
56187
56188 2007-10-14  Bruno Haible  <bruno@clisp.org>
56189
56190         * modules/iconv_open-utf-tests: New file.
56191         * tests/test-iconv-utf.c: New file.
56192
56193         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56194         * modules/iconv_open-utf: New file.
56195         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56196         (iconv, iconv_close): New declarations.
56197         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56198         be defined.
56199         (iconv_open): Add special handling of conversion between UTF-8 and
56200         UTF-{16,32}{BE,LE}.
56201         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56202         * lib/iconv_close.c: New file.
56203         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56204         gl_FUNC_ICONV_OPEN.
56205         (gl_FUNC_ICONV_OPEN): Use it.
56206         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56207         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56208         and REPLACE_ICONV_UTF.
56209         * modules/iconv_open (Depends-on): Add c-strcase.
56210         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56211         ICONV_CONST.
56212         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56213
56214 2007-10-13  Albert Chin  <china@thewrittenword.com>
56215             Bruno Haible  <bruno@clisp.org>
56216
56217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56218         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56219
56220 2007-10-13  Bruno Haible  <bruno@clisp.org>
56221
56222         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56223         defined, use the ISO C99 inline semantics.
56224         * lib/argp.h (ARGP_EI): Likewise.
56225
56226 2007-10-13  Bruno Haible  <bruno@clisp.org>
56227
56228         Handle 'inline' change in gcc 4.3.0.
56229         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56230         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56231         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56232         argp_fmtstream_point): Disable 'extern' declaration if the function
56233         definition is going to be provided inline.
56234         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56235         semantics, not the ISO C99 inline semantics.
56236         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56237         'extern' declaration if the function definition is going to be provided
56238         inline.
56239         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56240         the GNU C inline semantics, not the ISO C99 inline semantics. With
56241         GCC 4.2, avoid a warning.
56242
56243 2007-10-13  Bruno Haible  <bruno@clisp.org>
56244
56245         * lib/freading.h (freading): Enable the use of __freading for
56246         glibc >= 2.7.
56247         * lib/freading.c (freading): Likewise.
56248
56249 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56250
56251         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56252         "warning: C99 inline functions are not supported; using GNU89".
56253
56254 2007-10-12  Bruno Haible  <bruno@clisp.org>
56255
56256         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56257         of 2.
56258         * tests/test-ceilf2.c: New file.
56259         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56260
56261         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56262         * modules/ceilf-tests: Update.
56263
56264 2007-10-12  Bruno Haible  <bruno@clisp.org>
56265
56266         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56267         of 2.
56268         * tests/test-floorf2.c: New file.
56269         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56270
56271         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56272         * modules/floorf-tests: Update.
56273
56274 2007-10-12  Bruno Haible  <bruno@clisp.org>
56275
56276         * tests/test-trunc2.c: New file.
56277         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56278
56279         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56280         * modules/trunc-tests: Update.
56281
56282 2007-10-12  Bruno Haible  <bruno@clisp.org>
56283
56284         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56285         of 2.
56286         * tests/test-truncf2.c: New file.
56287         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56288
56289         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56290         * modules/truncf-tests: Update.
56291
56292 2007-10-11  Eric Blake  <ebb9@byu.net>
56293
56294         Don't claim strerror is broken on Interix.
56295         * doc/functions/strerror.texi (strerror): Known broken systems are
56296         now Solaris 8, and not Interix.
56297         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56298         Interix on cross-compile.
56299         Reported by Martin Koeppe in
56300         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56301
56302 2007-10-11  Bruno Haible  <bruno@clisp.org>
56303
56304         * modules/i-ring-tests: New file.
56305         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56306         instead of assert.
56307
56308 2007-10-11  Bruno Haible  <bruno@clisp.org>
56309
56310         * modules/filenamecat-tests: New file.
56311         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56312         * lib/filenamecat.c: Remove test code.
56313
56314 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56315
56316         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56317
56318         * lib/strerror.c: Include <string.h> always, to test interface,
56319         and to remove the need for the dummy.
56320         Include intprops.h to compute width instead of doing it ourselves
56321         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56322         (strerror): Define it to return NULL if there's no system strerror.
56323         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56324         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56325         ancient pre-strerror Unix systems well any more.  Saying "unknown
56326         system error" is enough.
56327         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56328         simpler strerror.c implementation.
56329         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56330         Simplify the tests to reflect the simpler strerror implementation.
56331         * modules/strerror (Depends-on): Add intprops.
56332
56333 2007-10-09  Eric Blake  <ebb9@byu.net>
56334
56335         Silence test-fpending.
56336         * modules/fpending-tests (Files): Add wrapper script.
56337         * tests/test-fpending.sh: New file.
56338
56339 2007-10-09  Bruno Haible  <bruno@clisp.org>
56340
56341         * MODULES.html.sh (func_module): Don't create a hyperlink for
56342         function names like 'printf_frexp'.
56343         (Misc): Add crc, memxor.
56344         (Characteristics of floating types): New section.
56345         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56346         isnanf-nolibm, signbit, trunc, truncf, truncl.
56347         (Enhancements for ISO C 99 functions): New subsection Input/output.
56348         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56349         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56350         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56351         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56352         (Enhancements for POSIX:2001 functions): Add chdir-long.
56353         (File system functions): Add areadlink, chdir-safer, read-file.
56354         Remove cycle-check.
56355         (File system as inode set): New section.
56356         (Date and time): Add gethrxtime.
56357         (Multithreading): Add openmp.
56358         (Internationalization functions): Add localename.
56359         (Unicode string functions): Add unistr/u*-mbsnlen.
56360         (Support for maintaining and releasing projects): Add git-version-gen.
56361         (Lone files): Remove directories.
56362
56363 2007-10-08  Ben Pfaff  <blp@gnu.org>
56364
56365         * lib/xmalloca.h: Fix typo in comment.
56366
56367 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56368
56369         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56370         when avoiding problems with integer overflow.  Use a portable test
56371         instead.
56372
56373 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56374
56375         * modules/dummy (License): Change to LGPLv2+.
56376         * modules/float (License): Likewise
56377         * modules/realloc (License): Likewise
56378         * modules/stdlib (License): Likewise
56379
56380 2007-10-07  Bruno Haible  <bruno@clisp.org>
56381
56382         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56383         * floor.c (TWO_MANT_DIG): Likewise.
56384         * ceil.c (TWO_MANT_DIG): Likewise.
56385         Reported by Ben Pfaff.
56386
56387 2007-10-07  Bruno Haible  <bruno@clisp.org>
56388
56389         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56390         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56391         * lib/frexp.c (FUNC): Likewise.
56392         * lib/printf-frexp.h (printf_frexp): Likewise.
56393         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56394         * lib/printf-frexp.c (FUNC): Likewise.
56395         Suggested by Jim Meyering.
56396
56397 2007-10-07  Jim Meyering  <meyering@redhat.com>
56398
56399         Make xnanosleep's integer overflow test more robust.
56400         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56401         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56402
56403 2007-10-07  Bruno Haible  <bruno@clisp.org>
56404
56405         * NEWS: Mention the license change.
56406
56407         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56408         abbreviations in the modules files.
56409
56410         Change copyright notice from GPLv2+ to GPLv3+.
56411         * README: Change copyright notice.
56412         * MODULES.html.sh: Likewise.
56413         * build-aux/bootstrap.conf: Likewise.
56414         * build-aux/config.libpath: Likewise.
56415         * build-aux/csharpcomp.sh.in: Likewise.
56416         * build-aux/csharpexec.sh.in: Likewise.
56417         * build-aux/install-reloc: Likewise.
56418         * build-aux/javacomp.sh.in: Likewise.
56419         * build-aux/javaexec.sh.in: Likewise.
56420         * build-aux/ldd.sh.in: Likewise.
56421         * build-aux/reloc-ldflags: Likewise.
56422         * build-aux/relocatable.sh.in: Likewise.
56423         * build-aux/x-to-1.in: Likewise.
56424         * check-module: Likewise.
56425         * config/srclistvars.sh: Likewise.
56426         * gnulib-tool: Likewise.
56427         * lib/acl-internal.h: Likewise.
56428         * lib/acl.c: Likewise.
56429         * lib/acl.h: Likewise.
56430         * lib/acl_entries.c: Likewise.
56431         * lib/areadlink-with-size.c: Likewise.
56432         * lib/areadlink.c: Likewise.
56433         * lib/areadlink.h: Likewise.
56434         * lib/argmatch.c: Likewise.
56435         * lib/argmatch.h: Likewise.
56436         * lib/argp-ba.c: Likewise.
56437         * lib/argp-eexst.c: Likewise.
56438         * lib/argp-fmtstream.c: Likewise.
56439         * lib/argp-fmtstream.h: Likewise.
56440         * lib/argp-fs-xinl.c: Likewise.
56441         * lib/argp-help.c: Likewise.
56442         * lib/argp-namefrob.h: Likewise.
56443         * lib/argp-parse.c: Likewise.
56444         * lib/argp-pin.c: Likewise.
56445         * lib/argp-pv.c: Likewise.
56446         * lib/argp-pvh.c: Likewise.
56447         * lib/argp-xinl.c: Likewise.
56448         * lib/argp.h: Likewise.
56449         * lib/at-func.c: Likewise.
56450         * lib/atanl.c: Likewise.
56451         * lib/backupfile.c: Likewise.
56452         * lib/backupfile.h: Likewise.
56453         * lib/basename.c: Likewise.
56454         * lib/binary-io.h: Likewise.
56455         * lib/byteswap.in.h: Likewise.
56456         * lib/c-stack.c: Likewise.
56457         * lib/c-stack.h: Likewise.
56458         * lib/c-strcasestr.c: Likewise.
56459         * lib/c-strcasestr.h: Likewise.
56460         * lib/c-strstr.c: Likewise.
56461         * lib/c-strstr.h: Likewise.
56462         * lib/c-strtod.c: Likewise.
56463         * lib/calloc.c: Likewise.
56464         * lib/canon-host.c: Likewise.
56465         * lib/canon-host.h: Likewise.
56466         * lib/canonicalize-lgpl.c: Likewise.
56467         * lib/canonicalize.c: Likewise.
56468         * lib/canonicalize.h: Likewise.
56469         * lib/ceil.c: Likewise.
56470         * lib/ceilf.c: Likewise.
56471         * lib/ceill.c: Likewise.
56472         * lib/chdir-long.c: Likewise.
56473         * lib/chdir-long.h: Likewise.
56474         * lib/chdir-safer.c: Likewise.
56475         * lib/chdir-safer.h: Likewise.
56476         * lib/chown.c: Likewise.
56477         * lib/classpath.c: Likewise.
56478         * lib/classpath.h: Likewise.
56479         * lib/clean-temp.c: Likewise.
56480         * lib/clean-temp.h: Likewise.
56481         * lib/cloexec.c: Likewise.
56482         * lib/close-stream.c: Likewise.
56483         * lib/closein.c: Likewise.
56484         * lib/closein.h: Likewise.
56485         * lib/closeout.c: Likewise.
56486         * lib/closeout.h: Likewise.
56487         * lib/concat-filename.c: Likewise.
56488         * lib/copy-file.c: Likewise.
56489         * lib/copy-file.h: Likewise.
56490         * lib/count-one-bits.h: Likewise.
56491         * lib/crc.c: Likewise.
56492         * lib/crc.h: Likewise.
56493         * lib/creat-safer.c: Likewise.
56494         * lib/csharpcomp.c: Likewise.
56495         * lib/csharpcomp.h: Likewise.
56496         * lib/csharpexec.c: Likewise.
56497         * lib/csharpexec.h: Likewise.
56498         * lib/cycle-check.c: Likewise.
56499         * lib/cycle-check.h: Likewise.
56500         * lib/diacrit.c: Likewise.
56501         * lib/diacrit.h: Likewise.
56502         * lib/diffseq.h: Likewise.
56503         * lib/dirchownmod.c: Likewise.
56504         * lib/dirent.in.h: Likewise.
56505         * lib/dirfd.c: Likewise.
56506         * lib/dirfd.h: Likewise.
56507         * lib/dirname.c: Likewise.
56508         * lib/dirname.h: Likewise.
56509         * lib/dummy.c: Likewise.
56510         * lib/dup-safer.c: Likewise.
56511         * lib/dup2.c: Likewise.
56512         * lib/eealloc.h: Likewise.
56513         * lib/error.c: Likewise.
56514         * lib/error.h: Likewise.
56515         * lib/euidaccess.c: Likewise.
56516         * lib/exclude.c: Likewise.
56517         * lib/exclude.h: Likewise.
56518         * lib/execute.c: Likewise.
56519         * lib/execute.h: Likewise.
56520         * lib/exitfail.c: Likewise.
56521         * lib/exitfail.h: Likewise.
56522         * lib/expl.c: Likewise.
56523         * lib/fatal-signal.c: Likewise.
56524         * lib/fatal-signal.h: Likewise.
56525         * lib/fbufmode.c: Likewise.
56526         * lib/fbufmode.h: Likewise.
56527         * lib/fchdir.c: Likewise.
56528         * lib/fchmodat.c: Likewise.
56529         * lib/fchownat.c: Likewise.
56530         * lib/fcntl--.h: Likewise.
56531         * lib/fcntl-safer.h: Likewise.
56532         * lib/fcntl.in.h: Likewise.
56533         * lib/fd-safer.c: Likewise.
56534         * lib/fflush.c: Likewise.
56535         * lib/file-has-acl.c: Likewise.
56536         * lib/file-set.c: Likewise.
56537         * lib/file-type.c: Likewise.
56538         * lib/file-type.h: Likewise.
56539         * lib/fileblocks.c: Likewise.
56540         * lib/filemode.c: Likewise.
56541         * lib/filemode.h: Likewise.
56542         * lib/filename.h: Likewise.
56543         * lib/filenamecat.c: Likewise.
56544         * lib/filenamecat.h: Likewise.
56545         * lib/findprog.c: Likewise.
56546         * lib/findprog.h: Likewise.
56547         * lib/float.in.h: Likewise.
56548         * lib/floor.c: Likewise.
56549         * lib/floorf.c: Likewise.
56550         * lib/floorl.c: Likewise.
56551         * lib/fopen-safer.c: Likewise.
56552         * lib/fopen.c: Likewise.
56553         * lib/fpending.c: Likewise.
56554         * lib/fpending.h: Likewise.
56555         * lib/fprintf.c: Likewise.
56556         * lib/fprintftime.h: Likewise.
56557         * lib/fpucw.h: Likewise.
56558         * lib/fpurge.c: Likewise.
56559         * lib/fpurge.h: Likewise.
56560         * lib/freadable.c: Likewise.
56561         * lib/freadable.h: Likewise.
56562         * lib/freadahead.c: Likewise.
56563         * lib/freadahead.h: Likewise.
56564         * lib/freading.c: Likewise.
56565         * lib/freading.h: Likewise.
56566         * lib/free.c: Likewise.
56567         * lib/freopen.c: Likewise.
56568         * lib/frexp.c: Likewise.
56569         * lib/frexpl.c: Likewise.
56570         * lib/fseek.c: Likewise.
56571         * lib/fseterr.c: Likewise.
56572         * lib/fseterr.h: Likewise.
56573         * lib/fstatat.c: Likewise.
56574         * lib/fstrcmp.c: Likewise.
56575         * lib/fstrcmp.h: Likewise.
56576         * lib/fsusage.c: Likewise.
56577         * lib/fsusage.h: Likewise.
56578         * lib/ftell.c: Likewise.
56579         * lib/ftello.c: Likewise.
56580         * lib/fts-cycle.c: Likewise.
56581         * lib/fts.c: Likewise.
56582         * lib/fts_.h: Likewise.
56583         * lib/full-read.c: Likewise.
56584         * lib/full-read.h: Likewise.
56585         * lib/full-write.c: Likewise.
56586         * lib/full-write.h: Likewise.
56587         * lib/fwritable.c: Likewise.
56588         * lib/fwritable.h: Likewise.
56589         * lib/fwriteerror.c: Likewise.
56590         * lib/fwriteerror.h: Likewise.
56591         * lib/fwriting.c: Likewise.
56592         * lib/fwriting.h: Likewise.
56593         * lib/gcd.c: Likewise.
56594         * lib/gcd.h: Likewise.
56595         * lib/getcwd.c: Likewise.
56596         * lib/getdate.h: Likewise.
56597         * lib/getdate.y: Likewise.
56598         * lib/getdomainname.c: Likewise.
56599         * lib/getdomainname.h: Likewise.
56600         * lib/getgroups.c: Likewise.
56601         * lib/gethostname.c: Likewise.
56602         * lib/gethrxtime.c: Likewise.
56603         * lib/gethrxtime.h: Likewise.
56604         * lib/getloadavg.c: Likewise.
56605         * lib/getndelim2.c: Likewise.
56606         * lib/getndelim2.h: Likewise.
56607         * lib/getnline.c: Likewise.
56608         * lib/getnline.h: Likewise.
56609         * lib/getopt.c: Likewise.
56610         * lib/getopt.in.h: Likewise.
56611         * lib/getopt1.c: Likewise.
56612         * lib/getopt_int.h: Likewise.
56613         * lib/getpagesize.h: Likewise.
56614         * lib/getsubopt.c: Likewise.
56615         * lib/gettime.c: Likewise.
56616         * lib/getugroups.c: Likewise.
56617         * lib/getugroups.h: Likewise.
56618         * lib/getusershell.c: Likewise.
56619         * lib/gl_anyavltree_list1.h: Likewise.
56620         * lib/gl_anyavltree_list2.h: Likewise.
56621         * lib/gl_anyhash_list1.h: Likewise.
56622         * lib/gl_anyhash_list2.h: Likewise.
56623         * lib/gl_anylinked_list1.h: Likewise.
56624         * lib/gl_anylinked_list2.h: Likewise.
56625         * lib/gl_anyrbtree_list1.h: Likewise.
56626         * lib/gl_anyrbtree_list2.h: Likewise.
56627         * lib/gl_anytree_list1.h: Likewise.
56628         * lib/gl_anytree_list2.h: Likewise.
56629         * lib/gl_anytree_oset.h: Likewise.
56630         * lib/gl_anytreehash_list1.h: Likewise.
56631         * lib/gl_anytreehash_list2.h: Likewise.
56632         * lib/gl_array_list.c: Likewise.
56633         * lib/gl_array_list.h: Likewise.
56634         * lib/gl_array_oset.c: Likewise.
56635         * lib/gl_array_oset.h: Likewise.
56636         * lib/gl_avltree_list.c: Likewise.
56637         * lib/gl_avltree_list.h: Likewise.
56638         * lib/gl_avltree_oset.c: Likewise.
56639         * lib/gl_avltree_oset.h: Likewise.
56640         * lib/gl_avltreehash_list.c: Likewise.
56641         * lib/gl_avltreehash_list.h: Likewise.
56642         * lib/gl_carray_list.c: Likewise.
56643         * lib/gl_carray_list.h: Likewise.
56644         * lib/gl_linked_list.c: Likewise.
56645         * lib/gl_linked_list.h: Likewise.
56646         * lib/gl_linkedhash_list.c: Likewise.
56647         * lib/gl_linkedhash_list.h: Likewise.
56648         * lib/gl_list.c: Likewise.
56649         * lib/gl_list.h: Likewise.
56650         * lib/gl_oset.c: Likewise.
56651         * lib/gl_oset.h: Likewise.
56652         * lib/gl_rbtree_list.c: Likewise.
56653         * lib/gl_rbtree_list.h: Likewise.
56654         * lib/gl_rbtree_oset.c: Likewise.
56655         * lib/gl_rbtree_oset.h: Likewise.
56656         * lib/gl_rbtreehash_list.c: Likewise.
56657         * lib/gl_rbtreehash_list.h: Likewise.
56658         * lib/gl_sublist.c: Likewise.
56659         * lib/gl_sublist.h: Likewise.
56660         * lib/group-member.c: Likewise.
56661         * lib/group-member.h: Likewise.
56662         * lib/hard-locale.c: Likewise.
56663         * lib/hard-locale.h: Likewise.
56664         * lib/hash-pjw.c: Likewise.
56665         * lib/hash-pjw.h: Likewise.
56666         * lib/hash-triple.c: Likewise.
56667         * lib/hash.c: Likewise.
56668         * lib/hash.h: Likewise.
56669         * lib/human.c: Likewise.
56670         * lib/human.h: Likewise.
56671         * lib/i-ring.c: Likewise.
56672         * lib/i-ring.h: Likewise.
56673         * lib/idcache.c: Likewise.
56674         * lib/imaxabs.c: Likewise.
56675         * lib/imaxdiv.c: Likewise.
56676         * lib/inet_pton.c: Likewise.
56677         * lib/inet_pton.h: Likewise.
56678         * lib/intprops.h: Likewise.
56679         * lib/inttostr.c: Likewise.
56680         * lib/inttostr.h: Likewise.
56681         * lib/inttypes.in.h: Likewise.
56682         * lib/isapipe.c: Likewise.
56683         * lib/isdir.c: Likewise.
56684         * lib/isnan.c: Likewise.
56685         * lib/isnan.h: Likewise.
56686         * lib/isnanf.c: Likewise.
56687         * lib/isnanf.h: Likewise.
56688         * lib/isnanl-nolibm.h: Likewise.
56689         * lib/isnanl.c: Likewise.
56690         * lib/isnanl.h: Likewise.
56691         * lib/javacomp.c: Likewise.
56692         * lib/javacomp.h: Likewise.
56693         * lib/javaexec.c: Likewise.
56694         * lib/javaexec.h: Likewise.
56695         * lib/javaversion.c: Likewise.
56696         * lib/javaversion.h: Likewise.
56697         * lib/javaversion.java: Likewise.
56698         * lib/lbrkprop.h: Likewise.
56699         * lib/lchmod.h: Likewise.
56700         * lib/lchown.c: Likewise.
56701         * lib/ldexpl.c: Likewise.
56702         * lib/linebreak.c: Likewise.
56703         * lib/linebreak.h: Likewise.
56704         * lib/linebuffer.c: Likewise.
56705         * lib/linebuffer.h: Likewise.
56706         * lib/locale.in.h: Likewise.
56707         * lib/logl.c: Likewise.
56708         * lib/long-options.c: Likewise.
56709         * lib/long-options.h: Likewise.
56710         * lib/lstat.c: Likewise.
56711         * lib/lstat.h: Likewise.
56712         * lib/math.in.h: Likewise.
56713         * lib/mbchar.c: Likewise.
56714         * lib/mbchar.h: Likewise.
56715         * lib/mbfile.h: Likewise.
56716         * lib/mbiter.h: Likewise.
56717         * lib/mbscasecmp.c: Likewise.
56718         * lib/mbscasestr.c: Likewise.
56719         * lib/mbschr.c: Likewise.
56720         * lib/mbscspn.c: Likewise.
56721         * lib/mbslen.c: Likewise.
56722         * lib/mbsncasecmp.c: Likewise.
56723         * lib/mbsnlen.c: Likewise.
56724         * lib/mbspbrk.c: Likewise.
56725         * lib/mbspcasecmp.c: Likewise.
56726         * lib/mbsrchr.c: Likewise.
56727         * lib/mbssep.c: Likewise.
56728         * lib/mbsspn.c: Likewise.
56729         * lib/mbsstr.c: Likewise.
56730         * lib/mbstok_r.c: Likewise.
56731         * lib/mbswidth.c: Likewise.
56732         * lib/mbswidth.h: Likewise.
56733         * lib/mbuiter.h: Likewise.
56734         * lib/memcasecmp.c: Likewise.
56735         * lib/memcasecmp.h: Likewise.
56736         * lib/memchr.c: Likewise.
56737         * lib/memcmp.c: Likewise.
56738         * lib/memcoll.c: Likewise.
56739         * lib/memcoll.h: Likewise.
56740         * lib/memcpy.c: Likewise.
56741         * lib/memrchr.c: Likewise.
56742         * lib/mkancesdirs.c: Likewise.
56743         * lib/mkdir-p.c: Likewise.
56744         * lib/mkdir-p.h: Likewise.
56745         * lib/mkdir.c: Likewise.
56746         * lib/mkdirat.c: Likewise.
56747         * lib/mkdtemp.c: Likewise.
56748         * lib/mkstemp-safer.c: Likewise.
56749         * lib/mkstemp.c: Likewise.
56750         * lib/modechange.c: Likewise.
56751         * lib/modechange.h: Likewise.
56752         * lib/mountlist.c: Likewise.
56753         * lib/mountlist.h: Likewise.
56754         * lib/mpsort.c: Likewise.
56755         * lib/nanosleep.c: Likewise.
56756         * lib/obstack.c: Likewise.
56757         * lib/obstack.h: Likewise.
56758         * lib/open-safer.c: Likewise.
56759         * lib/open.c: Likewise.
56760         * lib/openat-die.c: Likewise.
56761         * lib/openat-priv.h: Likewise.
56762         * lib/openat-proc.c: Likewise.
56763         * lib/openat.c: Likewise.
56764         * lib/openat.h: Likewise.
56765         * lib/pagealign_alloc.c: Likewise.
56766         * lib/pagealign_alloc.h: Likewise.
56767         * lib/physmem.c: Likewise.
56768         * lib/physmem.h: Likewise.
56769         * lib/pipe-safer.c: Likewise.
56770         * lib/pipe.c: Likewise.
56771         * lib/pipe.h: Likewise.
56772         * lib/posixtm.c: Likewise.
56773         * lib/posixtm.h: Likewise.
56774         * lib/posixver.c: Likewise.
56775         * lib/printf-frexp.c: Likewise.
56776         * lib/printf-frexp.h: Likewise.
56777         * lib/printf-frexpl.c: Likewise.
56778         * lib/printf-frexpl.h: Likewise.
56779         * lib/printf.c: Likewise.
56780         * lib/progname.c: Likewise.
56781         * lib/progname.h: Likewise.
56782         * lib/progreloc.c: Likewise.
56783         * lib/putenv.c: Likewise.
56784         * lib/quote.c: Likewise.
56785         * lib/quote.h: Likewise.
56786         * lib/quotearg.c: Likewise.
56787         * lib/quotearg.h: Likewise.
56788         * lib/raise.c: Likewise.
56789         * lib/readline.c: Likewise.
56790         * lib/readline.h: Likewise.
56791         * lib/readlink.c: Likewise.
56792         * lib/readtokens.c: Likewise.
56793         * lib/readtokens.h: Likewise.
56794         * lib/readtokens0.c: Likewise.
56795         * lib/readtokens0.h: Likewise.
56796         * lib/readutmp.c: Likewise.
56797         * lib/readutmp.h: Likewise.
56798         * lib/realloc.c: Likewise.
56799         * lib/relocwrapper.c: Likewise.
56800         * lib/rename-dest-slash.c: Likewise.
56801         * lib/rename.c: Likewise.
56802         * lib/rmdir.c: Likewise.
56803         * lib/rpmatch.c: Likewise.
56804         * lib/safe-read.c: Likewise.
56805         * lib/safe-read.h: Likewise.
56806         * lib/safe-write.c: Likewise.
56807         * lib/safe-write.h: Likewise.
56808         * lib/same-inode.h: Likewise.
56809         * lib/same.c: Likewise.
56810         * lib/same.h: Likewise.
56811         * lib/save-cwd.c: Likewise.
56812         * lib/save-cwd.h: Likewise.
56813         * lib/savedir.c: Likewise.
56814         * lib/savedir.h: Likewise.
56815         * lib/savewd.c: Likewise.
56816         * lib/savewd.h: Likewise.
56817         * lib/search.in.h: Likewise.
56818         * lib/setenv.c: Likewise.
56819         * lib/setenv.h: Likewise.
56820         * lib/settime.c: Likewise.
56821         * lib/sh-quote.c: Likewise.
56822         * lib/sh-quote.h: Likewise.
56823         * lib/sig2str.c: Likewise.
56824         * lib/sig2str.h: Likewise.
56825         * lib/signal.in.h: Likewise.
56826         * lib/signbitd.c: Likewise.
56827         * lib/signbitf.c: Likewise.
56828         * lib/signbitl.c: Likewise.
56829         * lib/sigprocmask.c: Likewise.
56830         * lib/sincosl.c: Likewise.
56831         * lib/sleep.c: Likewise.
56832         * lib/sprintf.c: Likewise.
56833         * lib/sqrtl.c: Likewise.
56834         * lib/stat-time.h: Likewise.
56835         * lib/stdio--.h: Likewise.
56836         * lib/stdio-safer.h: Likewise.
56837         * lib/stdlib--.h: Likewise.
56838         * lib/stdlib-safer.h: Likewise.
56839         * lib/stdlib.in.h: Likewise.
56840         * lib/stpcpy.c: Likewise.
56841         * lib/stpncpy.c: Likewise.
56842         * lib/strchrnul.c: Likewise.
56843         * lib/strcspn.c: Likewise.
56844         * lib/strerror.c: Likewise.
56845         * lib/strftime.c: Likewise.
56846         * lib/strftime.h: Likewise.
56847         * lib/striconveh.c: Likewise.
56848         * lib/striconveh.h: Likewise.
56849         * lib/striconveha.c: Likewise.
56850         * lib/striconveha.h: Likewise.
56851         * lib/stripslash.c: Likewise.
56852         * lib/strnlen1.c: Likewise.
56853         * lib/strnlen1.h: Likewise.
56854         * lib/strtod.c: Likewise.
56855         * lib/strtoimax.c: Likewise.
56856         * lib/strtok_r.c: Likewise.
56857         * lib/strtol.c: Likewise.
56858         * lib/strtoll.c: Likewise.
56859         * lib/strtoul.c: Likewise.
56860         * lib/strtoull.c: Likewise.
56861         * lib/sysexits.in.h: Likewise.
56862         * lib/tempname.c: Likewise.
56863         * lib/tempname.h: Likewise.
56864         * lib/timespec.h: Likewise.
56865         * lib/tls.c: Likewise.
56866         * lib/tls.h: Likewise.
56867         * lib/tmpdir.c: Likewise.
56868         * lib/tmpdir.h: Likewise.
56869         * lib/tmpfile-safer.c: Likewise.
56870         * lib/tmpfile.c: Likewise.
56871         * lib/trigl.c: Likewise.
56872         * lib/trigl.h: Likewise.
56873         * lib/trim.c: Likewise.
56874         * lib/trim.h: Likewise.
56875         * lib/trunc.c: Likewise.
56876         * lib/truncf.c: Likewise.
56877         * lib/truncl.c: Likewise.
56878         * lib/tsearch.c: Likewise.
56879         * lib/unicodeio.c: Likewise.
56880         * lib/unicodeio.h: Likewise.
56881         * lib/unistd--.h: Likewise.
56882         * lib/unistd-safer.h: Likewise.
56883         * lib/unistdio/ulc-fprintf.c: Likewise.
56884         * lib/unistdio/ulc-vfprintf.c: Likewise.
56885         * lib/unlinkdir.c: Likewise.
56886         * lib/unlinkdir.h: Likewise.
56887         * lib/unlocked-io.h: Likewise.
56888         * lib/unsetenv.c: Likewise.
56889         * lib/userspec.c: Likewise.
56890         * lib/utime.c: Likewise.
56891         * lib/utimecmp.c: Likewise.
56892         * lib/utimecmp.h: Likewise.
56893         * lib/utimens.c: Likewise.
56894         * lib/verify.h: Likewise.
56895         * lib/verror.c: Likewise.
56896         * lib/verror.h: Likewise.
56897         * lib/version-etc-fsf.c: Likewise.
56898         * lib/version-etc.c: Likewise.
56899         * lib/version-etc.h: Likewise.
56900         * lib/vfprintf.c: Likewise.
56901         * lib/vprintf.c: Likewise.
56902         * lib/vsprintf.c: Likewise.
56903         * lib/w32spawn.h: Likewise.
56904         * lib/wait-process.c: Likewise.
56905         * lib/wait-process.h: Likewise.
56906         * lib/wcwidth.c: Likewise.
56907         * lib/write-any-file.c: Likewise.
56908         * lib/xalloc-die.c: Likewise.
56909         * lib/xalloc.h: Likewise.
56910         * lib/xasprintf.c: Likewise.
56911         * lib/xgetcwd.c: Likewise.
56912         * lib/xgetcwd.h: Likewise.
56913         * lib/xgetdomainname.c: Likewise.
56914         * lib/xgetdomainname.h: Likewise.
56915         * lib/xgethostname.c: Likewise.
56916         * lib/xmalloc.c: Likewise.
56917         * lib/xmalloca.c: Likewise.
56918         * lib/xmalloca.h: Likewise.
56919         * lib/xmemcoll.c: Likewise.
56920         * lib/xnanosleep.c: Likewise.
56921         * lib/xreadlink.c: Likewise.
56922         * lib/xreadlink.h: Likewise.
56923         * lib/xsetenv.c: Likewise.
56924         * lib/xsetenv.h: Likewise.
56925         * lib/xstriconv.c: Likewise.
56926         * lib/xstriconv.h: Likewise.
56927         * lib/xstrndup.c: Likewise.
56928         * lib/xstrndup.h: Likewise.
56929         * lib/xstrtod.c: Likewise.
56930         * lib/xstrtod.h: Likewise.
56931         * lib/xstrtol-error.c: Likewise.
56932         * lib/xstrtol.c: Likewise.
56933         * lib/xstrtol.h: Likewise.
56934         * lib/xtime.h: Likewise.
56935         * lib/xvasprintf.c: Likewise.
56936         * lib/xvasprintf.h: Likewise.
56937         * lib/yesno.c: Likewise.
56938         * lib/yesno.h: Likewise.
56939         * posix-modules: Likewise.
56940         * tests/test-alloca-opt.c: Likewise.
56941         * tests/test-arcfour.c: Likewise.
56942         * tests/test-arctwo.c: Likewise.
56943         * tests/test-argmatch.c: Likewise.
56944         * tests/test-argp-2.sh: Likewise.
56945         * tests/test-argp.c: Likewise.
56946         * tests/test-arpa_inet.c: Likewise.
56947         * tests/test-array_list.c: Likewise.
56948         * tests/test-array_oset.c: Likewise.
56949         * tests/test-atexit.c: Likewise.
56950         * tests/test-avltree_list.c: Likewise.
56951         * tests/test-avltree_oset.c: Likewise.
56952         * tests/test-avltreehash_list.c: Likewise.
56953         * tests/test-base64.c: Likewise.
56954         * tests/test-binary-io.c: Likewise.
56955         * tests/test-byteswap.c: Likewise.
56956         * tests/test-c-ctype.c: Likewise.
56957         * tests/test-c-strcasecmp.c: Likewise.
56958         * tests/test-c-strcasestr.c: Likewise.
56959         * tests/test-c-strncasecmp.c: Likewise.
56960         * tests/test-c-strstr.c: Likewise.
56961         * tests/test-canonicalize-lgpl.c: Likewise.
56962         * tests/test-canonicalize.c: Likewise.
56963         * tests/test-carray_list.c: Likewise.
56964         * tests/test-ceilf.c: Likewise.
56965         * tests/test-ceill.c: Likewise.
56966         * tests/test-count-one-bits.c: Likewise.
56967         * tests/test-crc.c: Likewise.
56968         * tests/test-dirname.c: Likewise.
56969         * tests/test-fbufmode.c: Likewise.
56970         * tests/test-fcntl.c: Likewise.
56971         * tests/test-fflush.c: Likewise.
56972         * tests/test-floorf.c: Likewise.
56973         * tests/test-floorl.c: Likewise.
56974         * tests/test-fopen.c: Likewise.
56975         * tests/test-fprintf-posix.c: Likewise.
56976         * tests/test-fprintf-posix.h: Likewise.
56977         * tests/test-fpurge.c: Likewise.
56978         * tests/test-freadable.c: Likewise.
56979         * tests/test-freadahead.c: Likewise.
56980         * tests/test-freading.c: Likewise.
56981         * tests/test-freopen.c: Likewise.
56982         * tests/test-frexp.c: Likewise.
56983         * tests/test-frexpl.c: Likewise.
56984         * tests/test-fseek.c: Likewise.
56985         * tests/test-fseeko.c: Likewise.
56986         * tests/test-fseterr.c: Likewise.
56987         * tests/test-fstrcmp.c: Likewise.
56988         * tests/test-ftell.c: Likewise.
56989         * tests/test-ftello.c: Likewise.
56990         * tests/test-fwritable.c: Likewise.
56991         * tests/test-fwriting.c: Likewise.
56992         * tests/test-getaddrinfo.c: Likewise.
56993         * tests/test-getpass.c: Likewise.
56994         * tests/test-gettimeofday.c: Likewise.
56995         * tests/test-hmac-md5.c: Likewise.
56996         * tests/test-hmac-sha1.c: Likewise.
56997         * tests/test-iconv.c: Likewise.
56998         * tests/test-iconvme.c: Likewise.
56999         * tests/test-inttypes.c: Likewise.
57000         * tests/test-isnan.c: Likewise.
57001         * tests/test-isnanf.c: Likewise.
57002         * tests/test-isnanl-nolibm.c: Likewise.
57003         * tests/test-isnanl.c: Likewise.
57004         * tests/test-isnanl.h: Likewise.
57005         * tests/test-ldexpl.c: Likewise.
57006         * tests/test-linked_list.c: Likewise.
57007         * tests/test-linkedhash_list.c: Likewise.
57008         * tests/test-locale.c: Likewise.
57009         * tests/test-localename.c: Likewise.
57010         * tests/test-lock.c: Likewise.
57011         * tests/test-lseek.c: Likewise.
57012         * tests/test-malloca.c: Likewise.
57013         * tests/test-math.c: Likewise.
57014         * tests/test-mbscasecmp.c: Likewise.
57015         * tests/test-mbscasestr1.c: Likewise.
57016         * tests/test-mbscasestr2.c: Likewise.
57017         * tests/test-mbscasestr3.c: Likewise.
57018         * tests/test-mbscasestr4.c: Likewise.
57019         * tests/test-mbschr.c: Likewise.
57020         * tests/test-mbscspn.c: Likewise.
57021         * tests/test-mbsncasecmp.c: Likewise.
57022         * tests/test-mbspbrk.c: Likewise.
57023         * tests/test-mbspcasecmp.c: Likewise.
57024         * tests/test-mbsrchr.c: Likewise.
57025         * tests/test-mbsspn.c: Likewise.
57026         * tests/test-mbsstr1.c: Likewise.
57027         * tests/test-mbsstr2.c: Likewise.
57028         * tests/test-mbsstr3.c: Likewise.
57029         * tests/test-md5.c: Likewise.
57030         * tests/test-memmem.c: Likewise.
57031         * tests/test-netinet_in.c: Likewise.
57032         * tests/test-open.c: Likewise.
57033         * tests/test-printf-frexp.c: Likewise.
57034         * tests/test-printf-frexpl.c: Likewise.
57035         * tests/test-printf-posix.c: Likewise.
57036         * tests/test-printf-posix.h: Likewise.
57037         * tests/test-rbtree_list.c: Likewise.
57038         * tests/test-rbtree_oset.c: Likewise.
57039         * tests/test-rbtreehash_list.c: Likewise.
57040         * tests/test-read-file.c: Likewise.
57041         * tests/test-rijndael.c: Likewise.
57042         * tests/test-search.c: Likewise.
57043         * tests/test-signbit.c: Likewise.
57044         * tests/test-sleep.c: Likewise.
57045         * tests/test-snprintf-posix.c: Likewise.
57046         * tests/test-snprintf-posix.h: Likewise.
57047         * tests/test-snprintf.c: Likewise.
57048         * tests/test-sprintf-posix.c: Likewise.
57049         * tests/test-sprintf-posix.h: Likewise.
57050         * tests/test-stat-time.c: Likewise.
57051         * tests/test-stdbool.c: Likewise.
57052         * tests/test-stdint.c: Likewise.
57053         * tests/test-stdio.c: Likewise.
57054         * tests/test-stdlib.c: Likewise.
57055         * tests/test-stpncpy.c: Likewise.
57056         * tests/test-strcasestr.c: Likewise.
57057         * tests/test-striconv.c: Likewise.
57058         * tests/test-striconveh.c: Likewise.
57059         * tests/test-striconveha.c: Likewise.
57060         * tests/test-string.c: Likewise.
57061         * tests/test-sys_select.c: Likewise.
57062         * tests/test-sys_socket.c: Likewise.
57063         * tests/test-sys_stat.c: Likewise.
57064         * tests/test-sys_time.c: Likewise.
57065         * tests/test-sysexits.c: Likewise.
57066         * tests/test-time.c: Likewise.
57067         * tests/test-tls.c: Likewise.
57068         * tests/test-trunc.c: Likewise.
57069         * tests/test-truncf.c: Likewise.
57070         * tests/test-truncl.c: Likewise.
57071         * tests/test-unistd.c: Likewise.
57072         * tests/test-vasnprintf-posix.c: Likewise.
57073         * tests/test-vasnprintf-posix2.c: Likewise.
57074         * tests/test-vasnprintf.c: Likewise.
57075         * tests/test-vasprintf-posix.c: Likewise.
57076         * tests/test-vasprintf.c: Likewise.
57077         * tests/test-verify.c: Likewise.
57078         * tests/test-vfprintf-posix.c: Likewise.
57079         * tests/test-vprintf-posix.c: Likewise.
57080         * tests/test-vsnprintf-posix.c: Likewise.
57081         * tests/test-vsnprintf.c: Likewise.
57082         * tests/test-vsprintf-posix.c: Likewise.
57083         * tests/test-wchar.c: Likewise.
57084         * tests/test-wctype.c: Likewise.
57085         * tests/test-wcwidth.c: Likewise.
57086         * tests/test-xstrtol.c: Likewise.
57087         * tests/test-xvasprintf.c: Likewise.
57088         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57089         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57090         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57091         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57092         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57093         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57094         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57095         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57096         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57097         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57098         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57099         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57100         * tests/uniname/test-uninames.c: Likewise.
57101         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57102         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57103         * tests/unistdio/test-u16-printf1.h: Likewise.
57104         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57105         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57106         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57107         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57108         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57109         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57110         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57111         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57112         * tests/unistdio/test-u32-printf1.h: Likewise.
57113         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57114         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57115         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57116         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57117         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57118         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57119         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57120         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57121         * tests/unistdio/test-u8-printf1.h: Likewise.
57122         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57123         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57124         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57125         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57126         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57127         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57128         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57129         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57130         * tests/unistdio/test-ulc-printf1.h: Likewise.
57131         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57132         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57133         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57134         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57135         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57136         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57137         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57138         * tests/uniwidth/test-u16-width.c: Likewise.
57139         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57140         * tests/uniwidth/test-u32-width.c: Likewise.
57141         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57142         * tests/uniwidth/test-u8-width.c: Likewise.
57143         * tests/uniwidth/test-uc_width.c: Likewise.
57144         * config/srclist-update: Likewise.
57145         (fixlicense): Update to GPLv3+.
57146
57147         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57148         * tests/test-tsearch.c: Change copyright notice.
57149
57150         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57151         * lib/c-strcaseeq.h: Change copyright notice.
57152         * lib/streq.h: Likewise.
57153         * lib/uniconv.h: Likewise.
57154         * lib/uniconv/u-conv-from-enc.h: Likewise.
57155         * lib/uniconv/u-conv-to-enc.h: Likewise.
57156         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57157         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57158         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57159         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57160         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57161         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57162         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57163         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57164         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57165         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57166         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57167         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57168         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57169         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57170         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57171         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57172         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57173         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57174         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57175         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57176         * lib/uniname.h: Likewise.
57177         * lib/uniname/uniname.c: Likewise.
57178         * lib/unistdio.h: Likewise.
57179         * lib/unistdio/u-asnprintf.h: Likewise.
57180         * lib/unistdio/u-asprintf.h: Likewise.
57181         * lib/unistdio/u-printf-args.c: Likewise.
57182         * lib/unistdio/u-printf-args.h: Likewise.
57183         * lib/unistdio/u-printf-parse.h: Likewise.
57184         * lib/unistdio/u-snprintf.h: Likewise.
57185         * lib/unistdio/u-sprintf.h: Likewise.
57186         * lib/unistdio/u-vasprintf.h: Likewise.
57187         * lib/unistdio/u-vsnprintf.h: Likewise.
57188         * lib/unistdio/u-vsprintf.h: Likewise.
57189         * lib/unistdio/u16-asnprintf.c: Likewise.
57190         * lib/unistdio/u16-asprintf.c: Likewise.
57191         * lib/unistdio/u16-printf-parse.c: Likewise.
57192         * lib/unistdio/u16-snprintf.c: Likewise.
57193         * lib/unistdio/u16-sprintf.c: Likewise.
57194         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57195         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57196         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57197         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57198         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57199         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57200         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57201         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57202         * lib/unistdio/u16-vasnprintf.c: Likewise.
57203         * lib/unistdio/u16-vasprintf.c: Likewise.
57204         * lib/unistdio/u16-vsnprintf.c: Likewise.
57205         * lib/unistdio/u16-vsprintf.c: Likewise.
57206         * lib/unistdio/u32-asnprintf.c: Likewise.
57207         * lib/unistdio/u32-asprintf.c: Likewise.
57208         * lib/unistdio/u32-printf-parse.c: Likewise.
57209         * lib/unistdio/u32-snprintf.c: Likewise.
57210         * lib/unistdio/u32-sprintf.c: Likewise.
57211         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57212         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57213         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57214         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57215         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57216         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57217         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57218         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57219         * lib/unistdio/u32-vasnprintf.c: Likewise.
57220         * lib/unistdio/u32-vasprintf.c: Likewise.
57221         * lib/unistdio/u32-vsnprintf.c: Likewise.
57222         * lib/unistdio/u32-vsprintf.c: Likewise.
57223         * lib/unistdio/u8-asnprintf.c: Likewise.
57224         * lib/unistdio/u8-asprintf.c: Likewise.
57225         * lib/unistdio/u8-printf-parse.c: Likewise.
57226         * lib/unistdio/u8-snprintf.c: Likewise.
57227         * lib/unistdio/u8-sprintf.c: Likewise.
57228         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57229         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57230         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57231         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57232         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57233         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57234         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57235         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57236         * lib/unistdio/u8-vasnprintf.c: Likewise.
57237         * lib/unistdio/u8-vasprintf.c: Likewise.
57238         * lib/unistdio/u8-vsnprintf.c: Likewise.
57239         * lib/unistdio/u8-vsprintf.c: Likewise.
57240         * lib/unistdio/ulc-asnprintf.c: Likewise.
57241         * lib/unistdio/ulc-asprintf.c: Likewise.
57242         * lib/unistdio/ulc-printf-parse.c: Likewise.
57243         * lib/unistdio/ulc-snprintf.c: Likewise.
57244         * lib/unistdio/ulc-sprintf.c: Likewise.
57245         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57246         * lib/unistdio/ulc-vasprintf.c: Likewise.
57247         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57248         * lib/unistdio/ulc-vsprintf.c: Likewise.
57249         * lib/unistr.h: Likewise.
57250         * lib/unistr/u-cpy-alloc.h: Likewise.
57251         * lib/unistr/u-cpy.h: Likewise.
57252         * lib/unistr/u-endswith.h: Likewise.
57253         * lib/unistr/u-move.h: Likewise.
57254         * lib/unistr/u-set.h: Likewise.
57255         * lib/unistr/u-startswith.h: Likewise.
57256         * lib/unistr/u-stpcpy.h: Likewise.
57257         * lib/unistr/u-stpncpy.h: Likewise.
57258         * lib/unistr/u-strcat.h: Likewise.
57259         * lib/unistr/u-strcpy.h: Likewise.
57260         * lib/unistr/u-strcspn.h: Likewise.
57261         * lib/unistr/u-strdup.h: Likewise.
57262         * lib/unistr/u-strlen.h: Likewise.
57263         * lib/unistr/u-strncat.h: Likewise.
57264         * lib/unistr/u-strncpy.h: Likewise.
57265         * lib/unistr/u-strnlen.h: Likewise.
57266         * lib/unistr/u-strpbrk.h: Likewise.
57267         * lib/unistr/u-strspn.h: Likewise.
57268         * lib/unistr/u-strstr.h: Likewise.
57269         * lib/unistr/u-strtok.h: Likewise.
57270         * lib/unistr/u16-check.c: Likewise.
57271         * lib/unistr/u16-chr.c: Likewise.
57272         * lib/unistr/u16-cmp.c: Likewise.
57273         * lib/unistr/u16-cpy-alloc.c: Likewise.
57274         * lib/unistr/u16-cpy.c: Likewise.
57275         * lib/unistr/u16-endswith.c: Likewise.
57276         * lib/unistr/u16-mblen.c: Likewise.
57277         * lib/unistr/u16-mbsnlen.c: Likewise.
57278         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57279         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57280         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57281         * lib/unistr/u16-mbtouc.c: Likewise.
57282         * lib/unistr/u16-mbtoucr.c: Likewise.
57283         * lib/unistr/u16-move.c: Likewise.
57284         * lib/unistr/u16-next.c: Likewise.
57285         * lib/unistr/u16-prev.c: Likewise.
57286         * lib/unistr/u16-set.c: Likewise.
57287         * lib/unistr/u16-startswith.c: Likewise.
57288         * lib/unistr/u16-stpcpy.c: Likewise.
57289         * lib/unistr/u16-stpncpy.c: Likewise.
57290         * lib/unistr/u16-strcat.c: Likewise.
57291         * lib/unistr/u16-strchr.c: Likewise.
57292         * lib/unistr/u16-strcmp.c: Likewise.
57293         * lib/unistr/u16-strcpy.c: Likewise.
57294         * lib/unistr/u16-strcspn.c: Likewise.
57295         * lib/unistr/u16-strdup.c: Likewise.
57296         * lib/unistr/u16-strlen.c: Likewise.
57297         * lib/unistr/u16-strmblen.c: Likewise.
57298         * lib/unistr/u16-strmbtouc.c: Likewise.
57299         * lib/unistr/u16-strncat.c: Likewise.
57300         * lib/unistr/u16-strncmp.c: Likewise.
57301         * lib/unistr/u16-strncpy.c: Likewise.
57302         * lib/unistr/u16-strnlen.c: Likewise.
57303         * lib/unistr/u16-strpbrk.c: Likewise.
57304         * lib/unistr/u16-strrchr.c: Likewise.
57305         * lib/unistr/u16-strspn.c: Likewise.
57306         * lib/unistr/u16-strstr.c: Likewise.
57307         * lib/unistr/u16-strtok.c: Likewise.
57308         * lib/unistr/u16-to-u32.c: Likewise.
57309         * lib/unistr/u16-to-u8.c: Likewise.
57310         * lib/unistr/u16-uctomb-aux.c: Likewise.
57311         * lib/unistr/u16-uctomb.c: Likewise.
57312         * lib/unistr/u32-check.c: Likewise.
57313         * lib/unistr/u32-chr.c: Likewise.
57314         * lib/unistr/u32-cmp.c: Likewise.
57315         * lib/unistr/u32-cpy-alloc.c: Likewise.
57316         * lib/unistr/u32-cpy.c: Likewise.
57317         * lib/unistr/u32-endswith.c: Likewise.
57318         * lib/unistr/u32-mblen.c: Likewise.
57319         * lib/unistr/u32-mbsnlen.c: Likewise.
57320         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57321         * lib/unistr/u32-mbtouc.c: Likewise.
57322         * lib/unistr/u32-mbtoucr.c: Likewise.
57323         * lib/unistr/u32-move.c: Likewise.
57324         * lib/unistr/u32-next.c: Likewise.
57325         * lib/unistr/u32-prev.c: Likewise.
57326         * lib/unistr/u32-set.c: Likewise.
57327         * lib/unistr/u32-startswith.c: Likewise.
57328         * lib/unistr/u32-stpcpy.c: Likewise.
57329         * lib/unistr/u32-stpncpy.c: Likewise.
57330         * lib/unistr/u32-strcat.c: Likewise.
57331         * lib/unistr/u32-strchr.c: Likewise.
57332         * lib/unistr/u32-strcmp.c: Likewise.
57333         * lib/unistr/u32-strcpy.c: Likewise.
57334         * lib/unistr/u32-strcspn.c: Likewise.
57335         * lib/unistr/u32-strdup.c: Likewise.
57336         * lib/unistr/u32-strlen.c: Likewise.
57337         * lib/unistr/u32-strmblen.c: Likewise.
57338         * lib/unistr/u32-strmbtouc.c: Likewise.
57339         * lib/unistr/u32-strncat.c: Likewise.
57340         * lib/unistr/u32-strncmp.c: Likewise.
57341         * lib/unistr/u32-strncpy.c: Likewise.
57342         * lib/unistr/u32-strnlen.c: Likewise.
57343         * lib/unistr/u32-strpbrk.c: Likewise.
57344         * lib/unistr/u32-strrchr.c: Likewise.
57345         * lib/unistr/u32-strspn.c: Likewise.
57346         * lib/unistr/u32-strstr.c: Likewise.
57347         * lib/unistr/u32-strtok.c: Likewise.
57348         * lib/unistr/u32-to-u16.c: Likewise.
57349         * lib/unistr/u32-to-u8.c: Likewise.
57350         * lib/unistr/u32-uctomb.c: Likewise.
57351         * lib/unistr/u8-check.c: Likewise.
57352         * lib/unistr/u8-chr.c: Likewise.
57353         * lib/unistr/u8-cmp.c: Likewise.
57354         * lib/unistr/u8-cpy-alloc.c: Likewise.
57355         * lib/unistr/u8-cpy.c: Likewise.
57356         * lib/unistr/u8-endswith.c: Likewise.
57357         * lib/unistr/u8-mblen.c: Likewise.
57358         * lib/unistr/u8-mbsnlen.c: Likewise.
57359         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57360         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57361         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57362         * lib/unistr/u8-mbtouc.c: Likewise.
57363         * lib/unistr/u8-mbtoucr.c: Likewise.
57364         * lib/unistr/u8-move.c: Likewise.
57365         * lib/unistr/u8-next.c: Likewise.
57366         * lib/unistr/u8-prev.c: Likewise.
57367         * lib/unistr/u8-set.c: Likewise.
57368         * lib/unistr/u8-startswith.c: Likewise.
57369         * lib/unistr/u8-stpcpy.c: Likewise.
57370         * lib/unistr/u8-stpncpy.c: Likewise.
57371         * lib/unistr/u8-strcat.c: Likewise.
57372         * lib/unistr/u8-strchr.c: Likewise.
57373         * lib/unistr/u8-strcmp.c: Likewise.
57374         * lib/unistr/u8-strcpy.c: Likewise.
57375         * lib/unistr/u8-strcspn.c: Likewise.
57376         * lib/unistr/u8-strdup.c: Likewise.
57377         * lib/unistr/u8-strlen.c: Likewise.
57378         * lib/unistr/u8-strmblen.c: Likewise.
57379         * lib/unistr/u8-strmbtouc.c: Likewise.
57380         * lib/unistr/u8-strncat.c: Likewise.
57381         * lib/unistr/u8-strncmp.c: Likewise.
57382         * lib/unistr/u8-strncpy.c: Likewise.
57383         * lib/unistr/u8-strnlen.c: Likewise.
57384         * lib/unistr/u8-strpbrk.c: Likewise.
57385         * lib/unistr/u8-strrchr.c: Likewise.
57386         * lib/unistr/u8-strspn.c: Likewise.
57387         * lib/unistr/u8-strstr.c: Likewise.
57388         * lib/unistr/u8-strtok.c: Likewise.
57389         * lib/unistr/u8-to-u16.c: Likewise.
57390         * lib/unistr/u8-to-u32.c: Likewise.
57391         * lib/unistr/u8-uctomb-aux.c: Likewise.
57392         * lib/unistr/u8-uctomb.c: Likewise.
57393         * lib/unitypes.h: Likewise.
57394         * lib/uniwidth.h: Likewise.
57395         * lib/uniwidth/cjk.h: Likewise.
57396         * lib/uniwidth/u16-strwidth.c: Likewise.
57397         * lib/uniwidth/u16-width.c: Likewise.
57398         * lib/uniwidth/u32-strwidth.c: Likewise.
57399         * lib/uniwidth/u32-width.c: Likewise.
57400         * lib/uniwidth/u8-strwidth.c: Likewise.
57401         * lib/uniwidth/u8-width.c: Likewise.
57402         * lib/uniwidth/width.c: Likewise.
57403
57404 2007-10-07  Bruno Haible  <bruno@clisp.org>
57405
57406         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57407         The file is still under LGPL (see modules/inttypes).
57408
57409 2007-10-06  Bruno Haible  <bruno@clisp.org>
57410
57411         * modules/trunc (Dependencies): Add 'extensions'.
57412         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57413         Reported by Ben Pfaff <blp@gnu.org>.
57414
57415 2007-10-06  Bruno Haible  <bruno@clisp.org>
57416
57417         * modules/freopen-tests: New file.
57418         * tests/test-freopen.c: New file.
57419
57420         * modules/fopen-tests: New file.
57421         * tests/test-fopen.c: New file.
57422
57423         * modules/fopen: New file.
57424         * lib/fopen.c: New file.
57425         * m4/fopen.m4: New file.
57426         * modules/freopen: New file.
57427         * lib/freopen.c: New file.
57428         * m4/freopen.m4: New file.
57429         * lib/stdio.in.h (fopen, freopen): New declarations.
57430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57431         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57432         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57433         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57434         * doc/functions/fopen.texi: Mention the 'fopen' module.
57435         * doc/functions/freopen.texi: Mention the 'freopen' module.
57436
57437 2007-10-06  Bruno Haible  <bruno@clisp.org>
57438
57439         * modules/open-tests: New file.
57440         * tests/test-open.c: New file.
57441
57442         * modules/open: New file.
57443         * lib/open.c: New file.
57444         * m4/open.m4: New file.
57445         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57446         lib/open.c does.
57447         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57448         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57449         macros.
57450         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57451         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57452         REPLACE_OPEN.
57453         * doc/functions/open.texi: Mention the 'open' module.
57454
57455 2007-10-04  Bruno Haible  <bruno@clisp.org>
57456
57457         * modules/ceill-tests: New file.
57458         * tests/test-ceill.c: New file.
57459
57460         * modules/ceill: New file.
57461         * lib/ceill.c: Replace entire file.
57462         * m4/ceill.m4: New file.
57463         * lib/math.in.h (ceill): Replace declaration.
57464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57465         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57466         * doc/functions/ceill.texi: Mention the 'ceill' module.
57467         * modules/mathl (Files): Remove lib/ceill.c.
57468         (Depends-on): Add ceill.
57469
57470 2007-10-04  Bruno Haible  <bruno@clisp.org>
57471
57472         * modules/ceilf-tests: New file.
57473         * tests/test-ceilf.c: New file.
57474
57475         * modules/ceilf: New file.
57476         * lib/ceil.c: New file.
57477         * lib/ceilf.c: New file.
57478         * m4/ceilf.m4: New file.
57479         * lib/math.in.h (ceilf): New declaration.
57480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57481         HAVE_DECL_CEILF.
57482         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57483         HAVE_DECL_CEILF.
57484         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57485
57486 2007-10-04  Bruno Haible  <bruno@clisp.org>
57487
57488         * modules/floorl-tests: New file.
57489         * tests/test-floorl.c: New file.
57490
57491         * modules/floorl: New file.
57492         * lib/floorl.c: Replace entire file.
57493         * m4/floorl.m4: New file.
57494         * lib/math.in.h (floorl): Replace declaration.
57495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57496         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57497         * doc/functions/floorl.texi: Mention the 'floorl' module.
57498         * modules/mathl (Files): Remove lib/floorl.c.
57499         (Depends-on): Add floorl.
57500
57501 2007-10-04  Bruno Haible  <bruno@clisp.org>
57502
57503         * modules/floorf-tests: New file.
57504         * tests/test-floorf.c: New file.
57505
57506         * modules/floorf: New file.
57507         * lib/floor.c: New file.
57508         * lib/floorf.c: New file.
57509         * m4/floorf.m4: New file.
57510         * lib/math.in.h (floorf): New declaration.
57511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57512         HAVE_DECL_FLOORF.
57513         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57514         HAVE_DECL_FLOORF.
57515         * doc/functions/floorf.texi: Mention the 'floorf' module.
57516
57517 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57518             Bruno Haible  <bruno@clisp.org>
57519
57520         Advertise for the Git server instead of the CVS server.
57521         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57522         repository instead of the CVS one.
57523         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57524         about all VCS systems generically.
57525         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57526
57527 2007-10-04  Bruno Haible  <bruno@clisp.org>
57528
57529         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57530         means.
57531         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57532
57533 2007-10-04  Bruno Haible  <bruno@clisp.org>
57534
57535         * modules/truncl-tests: New file.
57536         * tests/test-truncl.c: New file.
57537
57538         * modules/truncl: New file.
57539         * lib/truncl.c: New file.
57540         * m4/truncl.m4: New file.
57541         * lib/math.in.h (truncl): New declaration.
57542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57543         HAVE_DECL_TRUNCL.
57544         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57545         HAVE_DECL_TRUNCL.
57546         * doc/functions/truncl.texi: Mention the 'truncl' module.
57547
57548 2007-10-04  Bruno Haible  <bruno@clisp.org>
57549
57550         * modules/truncf-tests: New file.
57551         * tests/test-truncf.c: New file.
57552
57553         * modules/truncf: New file.
57554         * lib/trunc.c: Make paramerizable through USE_* macros.
57555         * lib/truncf.c: New file.
57556         * m4/truncf.m4: New file.
57557         * lib/math.in.h (truncf): New declaration.
57558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57559         HAVE_DECL_TRUNCF.
57560         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57561         HAVE_DECL_TRUNCF.
57562         * doc/functions/truncf.texi: Mention the 'truncf' module.
57563
57564 2007-10-03  Bruno Haible  <bruno@clisp.org>
57565
57566         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57567         augmentation also for tests modules.
57568         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57569         * modules/atexit-tests (Makefile.am): Likewise.
57570         * modules/binary-io-tests (Makefile.am): Likewise.
57571         * modules/c-strcase-tests (Makefile.am): Likewise.
57572         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57573         * modules/canonicalize-tests (Makefile.am): Likewise.
57574         * modules/closein-tests (Makefile.am): Likewise.
57575         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57576         * modules/freadahead-tests (Makefile.am): Likewise.
57577         * modules/fseek-tests (Makefile.am): Likewise.
57578         * modules/fseeko-tests (Makefile.am): Likewise.
57579         * modules/ftell-tests (Makefile.am): Likewise.
57580         * modules/ftello-tests (Makefile.am): Likewise.
57581         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57582         * modules/isnanl-tests (Makefile.am): Likewise.
57583         * modules/lseek-tests (Makefile.am): Likewise.
57584         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57585         * modules/mbscasestr-tests (Makefile.am): Likewise.
57586         * modules/mbschr-tests (Makefile.am): Likewise.
57587         * modules/mbscspn-tests (Makefile.am): Likewise.
57588         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57589         * modules/mbspbrk-tests (Makefile.am): Likewise.
57590         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57591         * modules/mbsrchr-tests (Makefile.am): Likewise.
57592         * modules/mbsspn-tests (Makefile.am): Likewise.
57593         * modules/mbsstr-tests (Makefile.am): Likewise.
57594         * modules/printf-posix-tests (Makefile.am): Likewise.
57595         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57596         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57597         * modules/tsearch-tests (Makefile.am): Likewise.
57598         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57599         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57600         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57601         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57602         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57603         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57604         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57605         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57606         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57607         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57608         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57609         * modules/xstrtol-tests (Makefile.am): Likewise.
57610         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57611         * modules/yesno-tests (Makefile.am): Likewise.
57612
57613 2007-10-03  Bruno Haible  <bruno@clisp.org>
57614
57615         * modules/trunc-tests: New file.
57616         * tests/test-trunc.c: New file.
57617
57618         * modules/trunc: New file.
57619         * lib/trunc.c: New file.
57620         * m4/trunc.m4: New file.
57621         * lib/math.in.h (trunc): New declaration.
57622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57623         HAVE_DECL_TRUNC.
57624         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57625         HAVE_DECL_TRUNC.
57626         * doc/functions/trunc.texi: Mention the 'trunc' module.
57627
57628 2007-10-03  Bruno Haible  <bruno@clisp.org>
57629
57630         * tests/test-fpending.c: New file, mostly copied
57631         from coreutils/lib/t-fpending.c.
57632         * modules/fpending-tests: New file.
57633
57634 2007-10-03  Bruno Haible  <bruno@clisp.org>
57635
57636         Port the stdio extensions to QNX (untested).
57637         * lib/fseterr.c (fseterr): Add support for QNX.
57638         * lib/fbufmode.c (fbufmode): Likewise.
57639         * lib/freadable.c (freadable): Likewise.
57640         * lib/fwritable.c (fwritable): Likewise.
57641         * lib/freading.c (freading): Likewise.
57642         * lib/fwriting.c (fwriting): Likewise.
57643         * lib/freadahead.c (freadahed): Likewise.
57644         * lib/fpurge.c (fpurge): Likewise.
57645         * lib/fseeko.c (rpl_fseeko): Likewise.
57646
57647 2007-10-03  Bruno Haible  <bruno@clisp.org>
57648             Jim Meyering  <jim@meyering.net>
57649             Eric Blake  <ebb9@byu.net>
57650
57651         * doc/relocatable.texi: Use @command instead of @program.
57652
57653 2007-10-02  Jim Meyering  <jim@meyering.net>
57654
57655         Perform one more "_.h" -> ".in.h" substitution.
57656         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57657         instead of unistd_.h here, too.
57658
57659 2007-10-01  Bruno Haible  <bruno@clisp.org>
57660
57661         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57662         Needed for the alloca-opt module.
57663
57664 2007-09-30  Bruno Haible  <bruno@clisp.org>
57665
57666         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57667         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57668         alloca_.h.
57669         * lib/argz.in.h: Renamed from lib/argz_.h.
57670         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57671         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57672         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57673         byteswap_.h.
57674         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57675         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57676         dirent_.h.
57677         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57678         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57679         fcntl_.h.
57680         * lib/float.in.h: Renamed from lib/float_.h.
57681         * modules/float (Files, Makefile.am): Use float.in.h instead of
57682         float_.h.
57683         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57684         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57685         fnmatch_.h.
57686         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57687         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57688         getopt_.h.
57689         * lib/glob.in.h: Renamed from lib/glob_.h.
57690         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57691         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57692         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57693         iconv_.h.
57694         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57695         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57696         inttypes_.h.
57697         * lib/locale.in.h: Renamed from lib/locale_.h.
57698         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57699         locale_.h.
57700         * lib/math.in.h: Renamed from lib/math_.h.
57701         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57702         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57703         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57704         of netinet_in_.h. Add dependency.
57705         * lib/poll.in.h: Renamed from lib/poll_.h.
57706         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57707         * lib/search.in.h: Renamed from lib/search_.h.
57708         * modules/search (Files, Makefile.am): Use search.in.h instead of
57709         search_.h.
57710         * lib/signal.in.h: Renamed from lib/signal_.h.
57711         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57712         _signal.h.
57713         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57714         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57715         stdbool_.h.
57716         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57717         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57718         stdint_.h.
57719         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57720         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57721         stdio_.h.
57722         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57723         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57724         stdlib_.h.
57725         * lib/string.in.h: Renamed from lib/string_.h.
57726         * modules/string (Files, Makefile.am): Use string.in.h instead of
57727         string_.h.
57728         * doc/gnulib-tool.texi (Initial import): Update.
57729         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57730         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57731         of sys_select_.h. Add dependency.
57732         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57733         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57734         of sys_socket_.h.
57735         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57736         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57737         sys_stat_.h.
57738         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57739         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57740         sys_time_.h.
57741         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57742         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57743         sysexits_.h.
57744         * lib/time.in.h: Renamed from lib/time_.h.
57745         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57746         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57747         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57748         unistd_.h.
57749         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57750         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57751         wchar_.h.
57752         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57753         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57754         wctype_.h.
57755         * build-aux/bootstrap (slurp): Update.
57756         * lib/.cppi-disable: Update.
57757
57758 2007-09-30  Bruno Haible  <bruno@clisp.org>
57759
57760         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57761         Needed on BeOS.
57762
57763 2007-09-30  Bruno Haible  <bruno@clisp.org>
57764
57765         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57766
57767 2007-09-29  Bruno Haible  <bruno@clisp.org>
57768
57769         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57770
57771 2007-09-29  Bruno Haible  <bruno@clisp.org>
57772
57773         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57774         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57775         * build-aux/install-reloc: Compile also areadlink.c.
57776         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57777
57778 2007-09-29  Bruno Haible  <bruno@clisp.org>
57779
57780         * gnulib-tool (func_emit_initmacro_done): Indentation.
57781
57782 2007-09-29  Bruno Haible  <bruno@clisp.org>
57783
57784         * README: Add CVS checkout update instructions.
57785         Info from Bob Proulx <bob@proulx.com>.
57786
57787 2007-09-28  Eric Blake  <ebb9@byu.net>
57788
57789         Provide move-if-change.
57790         * build-aux/move-if-change: New file, based on best practice
57791         rather than any canonical upstream location.
57792
57793 2007-09-28  Jim Meyering  <jim@meyering.net>
57794
57795         Fix canonicalize loop-detection corner case.
57796         Do not attempt to stat the symlink values stored via seen_triple.
57797         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57798         on linux-2.6.18, (but not 2.6.22).
57799         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57800         triple_compare.  The former compares dev,ino,filename, while the latter
57801         would actually stat dirname(filename) when dev and ino were equal.
57802         * lib/hash-triple.c: Install <string.h>.
57803         (STREQ): Define.
57804         (triple_compare_ino_str): New function.
57805         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57806
57807 2007-09-28  Eric Blake  <ebb9@byu.net>
57808
57809         Enforce that AC_REPLACE_FUNCS files exist.
57810         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57811         override check for typos.
57812
57813         Fix test-closein on Solaris 10.
57814         * tests/test-closein.c (main): Don't assume stdin can be inherited
57815         closed on all systems.
57816         * tests/test-closein.sh: Likewise.
57817         Reported by Piotr Tarnowski.
57818
57819 2007-09-28  Jim Meyering  <jim@meyering.net>
57820
57821         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57822
57823 2007-09-27  Jim Meyering  <jim@meyering.net>
57824
57825         canonicalize: Avoid a false-positive cycle failure.
57826         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57827         Sort.  Remove cycle-check.
57828         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57829         not cycle-check.h.
57830         (seen_triple): New function.
57831         (canonicalize_filename_mode): Use it instead of cycle-check.
57832         * tests/test-canonicalize.c: Add a test for this bug.
57833         * tests/test-canonicalize.sh: Set up and run the test.
57834
57835         New module, file-set, from coreutils.
57836         * modules/file-set: Define it.
57837         * lib/file-set.c, lib/file-set.h: Implement.
57838
57839         New module, hash-triple, from coreutils.
57840         * modules/hash-triple: Define it.
57841         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57842
57843 2007-09-25  Eric Blake  <ebb9@byu.net>
57844
57845         Fix strerror on Interix.
57846         * lib/string_.h (strerror): Declare replacement.
57847         * doc/functions/strerror.texi (strerror): Document the Interix
57848         shortcoming.
57849         * modules/string (Makefile.am): Support new hooks.
57850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57851         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57852         gl_FUNC_STRERROR_SEPARATE.
57853         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57854         * lib/strerror.c (rpl_strerror): Provide replacement.
57855         * modules/strerror (Depends-on): Add string.
57856         (configure.ac): Detect use of module.
57857         * tests/test-strerror.c: New file.
57858         * modules/strerror-tests: New test module.
57859         * modules/argp (Depends-on): Add strerror.
57860         * modules/error (Depends-on): Likewise.
57861         Reported by Martin Koeppe.
57862
57863 2007-09-24  Bruno Haible  <bruno@clisp.org>
57864
57865         * README: Update git instructions.
57866
57867 2007-09-24  Eric Blake  <ebb9@byu.net>
57868
57869         Revert fpending breakage from 2007-09-08.
57870         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57871         __fpending.c.
57872
57873 2007-09-24  Jim Meyering  <jim@meyering.net>
57874
57875         filenamecat.c: Add a test.
57876         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57877         showing how the function works when DIR is the empty string.
57878
57879 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57880
57881         * tests/test-canonicalize.sh: Turn on executable bit.
57882
57883 2007-09-19  Eric Blake  <ebb9@byu.net>
57884
57885         * README: Update CVS instructions.
57886
57887 2007-09-18  Bruno Haible  <bruno@clisp.org>
57888
57889         * modules/areadlink: New file.
57890         * lib/areadlink.h (areadlink): New declaration.
57891         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57892
57893 2007-09-17  Jim Meyering  <jim@meyering.net>
57894
57895         * lib/savewd.c (ESTALE) [!defined]: Define.
57896         Reported to be required on Interix by Martin Koeppe.
57897
57898 2007-09-17  Bruno Haible  <bruno@clisp.org>
57899
57900         * gnulib-tool (func_version): Use $version.
57901
57902 2007-09-16  Bruno Haible  <bruno@clisp.org>
57903
57904         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57905         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57906         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57907         Reported by Greg Schafer <gschafer@zip.com.au>.
57908
57909 2007-09-15  Bruno Haible  <bruno@clisp.org>
57910
57911         * gnulib-tool (sed): Try a little harder to make bash understand the
57912         alias.
57913         Reported by Bruce Korb <bruce.korb@gmail.com>.
57914
57915 2007-09-13  Eric Blake  <ebb9@byu.net>
57916
57917         * ChangeLog: Remove conflict markers.
57918
57919 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57920
57921         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57922         Reported by Bruno Haible <bruno@clisp.org>.
57923
57924 2007-09-12  Bruno Haible  <bruno@clisp.org>
57925
57926         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57927         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57928         is not defined.
57929
57930 2007-09-12  Eric Blake  <ebb9@byu.net>
57931
57932         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57933         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57934         Autoconf definition.
57935         * modules/euidaccess (Depends-on): Add extensions, for
57936         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57937         * modules/fnmatch (Depends-on): Likewise.
57938         * modules/getaddrinfo (Depends-on): Likewise.
57939         * modules/getdelim (Depends-on): Likewise.
57940         * modules/getline (Depends-on): Likewise.
57941         * modules/getsubopt (Depends-on): Likewise.
57942         * modules/gettext (Depends-on): Likewise.
57943         * modules/group-member (Depends-on): Likewise.
57944         * modules/mbchar (Depends-on): Likewise.
57945         * modules/memmem (Depends-on): Likewise.
57946         * modules/mempcpy (Depends-on): Likewise.
57947         * modules/memrchr (Depends-on): Likewise.
57948         * modules/pagealign_alloc (Depends-on): Likewise.
57949         * modules/readutmp (Depends-on): Likewise.
57950         * modules/stpcpy (Depends-on): Likewise.
57951         * modules/stpncpy (Depends-on): Likewise.
57952         * modules/strchrnul (Depends-on): Likewise.
57953         * modules/strndup (Depends-on): Likewise.
57954         * modules/strsep (Depends-on): Likewise.
57955         * modules/strverscmp (Depends-on): Likewise.
57956         * modules/vasprintf (Depends-on): Likewise.
57957         * modules/wcwidth (Depends-on): Likewise.
57958         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57959         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57960         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57961         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57962         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57963         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57964         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57965         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57966         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57967         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57968         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57969         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57970         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57971         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57972         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57973         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57974         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57975         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57976         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57977         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57978         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57979         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57980         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57981         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57982         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57984         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57985         so that lock.m4 can be used in gettext without extensions module.
57986
57987 2007-09-11  Bruno Haible  <bruno@clisp.org>
57988
57989         * m4/isc-posix.m4: Remove file.
57990         Suggested by Eric Blake.
57991
57992 2007-09-11  Eric Blake  <ebb9@byu.net>
57993
57994         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57995
57996 2007-09-10  Bruno Haible  <bruno@clisp.org>
57997
57998         * posix-modules: Fix typo in error message.
57999         Reported by Matt <mkraai@beckman.com>.
58000
58001 2007-09-09  Bruno Haible  <bruno@clisp.org>
58002
58003         * doc/functions/getdelim.texi: Update list of platforms lacking the
58004         function.
58005         * doc/functions/getline.texi: Likewise.
58006
58007 2007-09-09  Jim Meyering  <jim@meyering.net>
58008
58009         * lib/hash.c (hash_initialize): Detect calloc failure.
58010         Reported by Bruno Haible.
58011
58012 2007-09-09  Bruno Haible  <bruno@clisp.org>
58013
58014         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58015         malloc or realloc fails.
58016
58017 2007-09-09  Bruno Haible  <bruno@clisp.org>
58018
58019         * modules/getcwd (Depends-on): Add malloc-posix.
58020         * modules/glob (Depends-on): Likewise.
58021         * modules/putenv (Depends-on): Likewise.
58022         * modules/strdup (Depends-on): Likewise.
58023         * modules/getdelim (Depends-on): Add realloc-posix.
58024         * modules/read-file (Depends-on): Likewise.
58025
58026 2007-09-09  Bruno Haible  <bruno@clisp.org>
58027
58028         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58029         (gl_FUNC_MALLOC_POSIX): Require it.
58030         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58031         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58032         * modules/realloc (Files): Add m4/malloc.m4.
58033         * modules/calloc (Files): Likewise.
58034
58035 2007-09-09  Bruno Haible  <bruno@clisp.org>
58036
58037         * modules/malloc-posix: New file.
58038         * modules/malloc (Depends-on): Add malloc-posix.
58039         * lib/malloc.c: Include errno.h.
58040         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58041         and a POSIX-compatible malloc into a single function. Set ENOMEM
58042         when returning NULL.
58043         * m4/malloc.m4: New file.
58044         * doc/functions/malloc.texi: Mention the malloc-posix module.
58045         * lib/stdlib_.h (malloc): New declaration.
58046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58047         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58048         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58049         and HAVE_MALLOC_POSIX.
58050
58051 2007-09-09  Bruno Haible  <bruno@clisp.org>
58052
58053         * modules/realloc-posix: New file.
58054         * modules/realloc (Depends-on): Add realloc-posix.
58055         * lib/realloc.c: Include errno.h.
58056         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58057         and a POSIX-compatible realloc into a single function. Set ENOMEM
58058         when returning NULL.
58059         * m4/realloc.m4: New file.
58060         * doc/functions/realloc.texi: Mention the realloc-posix module.
58061         * lib/stdlib_.h (realloc): New declaration.
58062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58063         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58064         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58065         and HAVE_REALLOC_POSIX.
58066
58067 2007-09-09  Bruno Haible  <bruno@clisp.org>
58068
58069         * modules/calloc-posix: New file.
58070         * modules/calloc (Depends-on): Add calloc-posix.
58071         * lib/calloc.c: Include errno.h.
58072         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58073         and a POSIX-compatible calloc into a single function. Set ENOMEM
58074         when returning NULL.
58075         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58076         * doc/functions/calloc.texi: Mention the calloc-posix module.
58077         * lib/stdlib_.h (calloc): New declaration.
58078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58079         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58080         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58081         and HAVE_CALLOC_POSIX.
58082
58083 2007-09-09  Bruno Haible  <bruno@clisp.org>
58084
58085         Allow for modules to show an arbitrary notice.
58086         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58087         * gnulib-tool: New option --extract-notice.
58088         (func_usage): Document it.
58089         (sed_extract_prog): Update.
58090         (func_get_notice): New function.
58091         (func_modules_notice): New function.
58092         (func_import, func_create_testdir): Invoke it.
58093         Suggested by Jim Meyering.
58094
58095 2007-09-09  Bruno Haible  <bruno@clisp.org>
58096
58097         * gnulib-tool: New options --verbose, --quiet.
58098         (func_usage): Document them.
58099         (verbose): New variable.
58100         (func_execute_command): New function.
58101         (func_import): Don't show the module list and the file list if
58102         $verbose < 0.
58103         (func_create_testdir): Likewise. Use func_execute_command.
58104         (func_create_megatestdir): Use func_execute_command.
58105
58106 2007-09-08  Bruno Haible  <bruno@clisp.org>
58107
58108         * gnulib-tool (func_import): Prefer rsync over wget when available,
58109         for fetching the PO files.
58110
58111 2007-09-08  Bruno Haible  <bruno@clisp.org>
58112
58113         * posix-modules: New file. Portions copied from gnulib-tool.
58114         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58115
58116 2007-09-08  Jim Meyering  <jim@meyering.net>
58117
58118         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58119         * lib/fpending.h: Rename from __fpending.h.
58120         * lib/fpending.c: Rename from __fpending.c.
58121         Include "fpending.h", not "__fpending.h".
58122         * lib/__fpending.h, lib/__fpending.c: Remove files.
58123         * modules/fpending (Files): Reflect new file names.
58124         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58125
58126 2007-09-08  Bruno Haible  <bruno@clisp.org>
58127
58128         * m4/inttypes-h.m4: Remove stub file.
58129
58130 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58131
58132         * doc/headers/stdint.texi: Discuss #include_next issue.
58133
58134 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58135
58136         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58137
58138 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58139
58140         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58141         in variable name.
58142
58143 2007-09-03  Jim Meyering  <jim@meyering.net>
58144
58145         New module: git-version-gen.
58146         * modules/git-version-gen: New file.
58147
58148         Import changes from coreutils for bootstrap script.
58149
58150         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58151
58152         bootstrap: uses rsync to download the .po files
58153         * build-aux/bootstrap (po_download_command_format): New global.
58154         (download_po_files): Use rsync.
58155         (update_po_files): Don't remove .po files after download,
58156         so future rsync runs can take advantage of the copies.
58157
58158         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58159
58160         Solve the unnecessary-.po-file-regeneration problem once and for all.
58161         * build-aux/bootstrap (download_po_files): New function, renamed from
58162         get_translations.  Now, downloads, but doesn't update LINGUAS.
58163         (update_po_files): New function.
58164
58165         bootstrap: Ignore more.
58166         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58167         uniwidth to e.g., lib/.gitignore.
58168         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58169
58170         * build-aux/bootstrap: New setting: vc_ignore.
58171         (insert_sorted_if_absent): Create $file if absent.
58172         Adapt to new, possibly empty, list: $vc_ignore.
58173
58174         bootstrap: generate more ignorable names
58175         * build-aux/bootstrap (slurp): When generating ignorable names,
58176         also map .sin to .sed, .gperf to .c, and .y to .c.
58177
58178 2007-09-03  Jim Meyering  <jim@meyering.net>
58179
58180         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58181         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58182
58183 2007-09-02  Bruno Haible  <bruno@clisp.org>
58184
58185         Fix mis-recognition of 'mcs' on QNX 6.
58186         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58187         output contains the string "Mono".
58188         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58189         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58190
58191 2007-09-01  Bruno Haible  <bruno@clisp.org>
58192
58193         Fix collision between uniwidth/* and linebreak modules.
58194         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58195         u32_width): Remove declarations.
58196         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58197         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58198         streq3, streq2, streq1, streq0): Remove functions.
58199         (STREQ): Remove macro.
58200         (is_cjk_encoding): Remove function.
58201         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58202         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58203         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58204         * NEWS: Document the change.
58205
58206 2007-09-01  Bruno Haible  <bruno@clisp.org>
58207
58208         * lib/streq.h: Add double-inclusion guard.
58209
58210 2007-09-01  Karl Berry  <karl@gnu.org>
58211
58212         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58213
58214 2007-08-28  Jim Meyering  <jim@meyering.net>
58215
58216         Rename mreadlink_with_size to areadlink_with_size.
58217         * NEWS: Document the change.
58218         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58219         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58220         * lib/mreadlink.h: Rename this to...
58221         * lib/areadlink.h: ...this.
58222         * modules/mreadlink-with-size: Rename this to...
58223         * modules/areadlink-with-size: ...this.
58224         * lib/canonicalize.c: Reflect the renaming.
58225         * modules/canonicalize: Likewise.
58226
58227 2007-08-26  Bruno Haible  <bruno@clisp.org>
58228
58229         * gnulib-tool (func_import): When deciding which files to remove,
58230         consider also dangling symbolic links.
58231         Reported by Eric Blake.
58232
58233 2007-08-26  Bruno Haible  <bruno@clisp.org>
58234
58235         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58236
58237 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58238
58239         * lib/readline.c: Don't include getline.h, the prototype is now
58240         found in stdio.h.
58241
58242 2007-08-23  Jim Meyering  <jim@meyering.net>
58243
58244         Getdelim touchup.
58245         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58246         around the funlockfile call, since funlockfile never sets errno.
58247         Don't set errno upon failed realloc.
58248
58249 2007-08-22  Eric Blake  <ebb9@byu.net>
58250
58251         Getline touchups.
58252         * lib/getdelim.c (getdelim): Revert regression that required *n to
58253         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58254         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58255         getdelim, rather than whether implementation is missing.
58256         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58257         * lib/stdio_.h (getline): Also declare if replacement is
58258         required.
58259         * doc/functions/getdelim.texi: New file.
58260         * doc/functions/getline.texi: Likewise.
58261         * doc/gnulib.texi (Function Substitutes): Add new files.
58262         Reported by Bruno Haible.
58263
58264 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58265
58266         * users.txt: Add Guile.
58267
58268 2007-08-22  Eric Blake  <ebb9@byu.net>
58269
58270         * tests/test-getdelim.c (main): Use remove, not unlink.
58271         * tests/test-getline.c (main): Likewise.
58272
58273         Move getline and getdelim into stdio.h, per POSIX 200x.
58274         * modules/getline (Files): Remove getline.h.
58275         (Depends-on): Add stdio.
58276         (configure.ac): Add module indicator.
58277         * modules/getdelim (Files): Remove getdelim.h.
58278         (Depends-on): Add stdio.
58279         (configure.ac): Add module indicator.
58280         * modules/stdio (Makefile.am): Work with new indicators.
58281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58282         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58283         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58284         * lib/getdelim.h: Delete.
58285         * lib/getline.h: Delete.
58286         * lib/stdio_.h (getdelim, getline): Declare.
58287         * modules/getdelim-tests: New module.
58288         * modules/getline-tests: Likewise.
58289         * tests/test-getdelim.c: New file.
58290         * tests/test-getline.c: Likewise.
58291         * NEWS: Document the change.
58292         * lib/getline.c: Update choice of header.
58293         * lib/csharpcomp.c: Likewise.
58294         * lib/getpass.c: Likewise.
58295         * lib/javacomp.c: Likewise.
58296         * lib/javaversion.c: Likewise.
58297         * lib/yesno.c: Likewise.
58298         * lib/getdelim.c: Likewise.
58299         (getdelim): Set errno on failure, and avoid memory leak.
58300
58301 2007-08-19  Bruno Haible  <bruno@clisp.org>
58302
58303         * modules/closein (Depends-on): Add freadahead.
58304         * lib/closein.c: Include freadahead.h.
58305         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58306         is zero.
58307
58308 2007-08-19  Bruno Haible  <bruno@clisp.org>
58309
58310         * modules/freadahead-tests: New file.
58311         * tests/test-freadahead.sh: New file.
58312         * tests/test-freadahead.c: New file.
58313
58314         * modules/freadahead: New file.
58315         * lib/freadahead.h: New file.
58316         * lib/freadahead.c: New file.
58317         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58318         fbufmode, fpurge, freadable, fwritable.
58319
58320 2007-08-19  Eric Blake  <ebb9@byu.net>
58321
58322         Test yesno in combination with closein.
58323         * lib/yesno.c (yesno): Document use of stdin.
58324         * modules/yesno-tests (Files): New module.
58325         * tests/test-yesno.c (main): New file.
58326         * tests/test-yesno.sh: Likewise.
58327
58328 2007-08-19  Bruno Haible  <bruno@clisp.org>
58329
58330         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58331         * lib/fseeko.c (rpl_fseeko): Likewise.
58332         * lib/fseterr.c (fseterr): Likewise.
58333
58334 2007-08-19  Bruno Haible  <bruno@clisp.org>
58335
58336         * tests/test-lseek.c (main): Disable a test for BeOS.
58337         * doc/functions/lseek.texi: Document the BeOS bug.
58338
58339 2007-08-19  Bruno Haible  <bruno@clisp.org>
58340             Eric Blake  <ebb9@byu.net>
58341
58342         * lib/lseek.c: Include <sys/stat.h>.
58343         (rpl_lseek): Add workaround code also for Unix platforms.
58344         Needed for BeOS.
58345         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58346         * doc/functions/lseek.texi: Document BeOS definiency.
58347
58348 2007-08-18  Bruno Haible  <bruno@clisp.org>
58349
58350         * modules/fstrcmp-tests: New file.
58351         * tests/test-fstrcmp.c: New file.
58352
58353 2007-08-18  Bruno Haible  <bruno@clisp.org>
58354
58355         * modules/fstrcmp: New file, from GNU gettext with modifications.
58356         * lib/fstrcmp.h: New file, from GNU gettext.
58357         * lib/fstrcmp.c: New file, from GNU gettext.
58358         * MODULES.html.sh (String handling): Add fstrcmp.
58359
58360 2007-08-18  Bruno Haible  <bruno@clisp.org>
58361
58362         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58363         'bool'.
58364         (diag, compareseq): Remove const from the ctxt argument.
58365         (USE_HEURISTIC): Undefine at the end.
58366
58367 2007-08-18  Jim Meyering  <jim@meyering.net>
58368
58369         New file: lib/idcache.h
58370         * NEWS: Mention the addition.
58371         * modules/idcache (Files): Add lib/idcache.h
58372         * lib/idcache.c: Include "idcache.h".
58373         Don't include <sys/types.h>.
58374         Add a FIXME comment.
58375         Move file-scoped "static" declarations to the top.
58376         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58377
58378 2007-08-17  Bruno Haible  <bruno@clisp.org>
58379         and Paul Eggert  <eggert@cs.ucla.edu>
58380
58381         * MODULES.html.sh: Add diffseq.
58382         * modules/diffseq: New file.
58383         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58384         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58385
58386 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58387
58388         Import changes from coreutils for bootstrap script.
58389
58390         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58391
58392         * build-aux/bootstrap (slurp): Work even in environments where
58393         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58394         current code does not slurp files whose names start with ".", and
58395         this looks like it might be a troublesome area.
58396
58397         2007-07-11  Jim Meyering  <jim@meyering.net>
58398
58399         If there's a GPL vN copyright comment, require that N == 3.
58400
58401         2007-07-08  Jim Meyering  <jim@meyering.net>
58402
58403         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58404         * build-aux/bootstrap (mam_template): Move definition out of loop.
58405
58406         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58407
58408         * build-aux/bootstrap (symlink_to_dir): Rename function from
58409         symlink_to_gnulib.  Add a directory parameter.  Update all
58410         callers.
58411         (cp_mark_as_generated): Also check for -- and link to -- files in
58412         gl/.
58413
58414         2007-07-08  Jim Meyering  <jim@meyering.net>
58415
58416         Adapt to deeper hierarchy in gnulib.
58417         * build-aux/bootstrap (symlink_to_dir): If the destination
58418         directory doesn't exist, create it. This is required at least for
58419         "lib/uniwidth/cjk.h".
58420
58421         2007-05-15  Jim Meyering  <jim@meyering.net>
58422
58423         * build-aux/bootstrap: Now that generated Makefile.am files
58424         are no longer under version control, they must be created at
58425         bootstrap time.
58426
58427 2007-08-14  Ben Pfaff  <blp@gnu.org>
58428
58429         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58430
58431 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58432
58433         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58434         given the changes below.
58435         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58436         even on hosts that have padding bits beyond the supported 64.
58437
58438 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58439
58440         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58441         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58442         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58443         depends on it.
58444         (xstrtol_error): Remove.
58445         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58446         but with a different signature.
58447         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58448         * lib/xstrtol-error.c: Include exitfail.h.
58449         (xstrtol_fatal): New function, with a different signature from the
58450         old xstrtol_error, so that the caller need not worry about passing
58451         in an exit status, or about storage management of the option argument.
58452         (xstrtol_error): Now a static function.  Redo signature to
58453         implement xstrtol_fatal.  Output the correct number of hyphens in
58454         front of the option so that the caller need not worry about
58455         storage management.
58456         (N_): New macro.
58457         (_): Remove; not used now.
58458         * modules/xstrtol: Depend on getopt.
58459         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58460         of old STRTOL_FATAL_ERROR macro.
58461         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58462         of test program.
58463         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58464         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58465
58466 2007-08-08  Eric Blake  <ebb9@byu.net>
58467
58468         * lib/xstrtol-error.c: Add missing include.
58469
58470         Move xstrtol messages into gnulib domain, when --pobase is used.
58471         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58472         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58473         * modules/xstrtol (Files): Distribute new file.
58474         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58475         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58476         * tests/test-xstrtol.c: ...into new file.
58477         * tests/test-xstrtoul.c: Also test xstrtoul.
58478         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58479         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58480         * tests/test-xstrtol.sh: Drive the tests.
58481         * tests/test-xstrtoimax.sh: Likewise.
58482         * tests/test-xstrtoumax.sh: Likewise.
58483         * modules/xstrtol-tests: New module.
58484         * modules/xstrtoimax-tests: Likewise.
58485         * modules/xstrtoumax-tests: Likewise.
58486
58487 2007-08-08  Jim Meyering  <jim@meyering.net>
58488
58489         New function: mfile_name_concat.
58490         * lib/filenamecat.c (mfile_name_concat): New function, just like
58491         file_name_concat, but return NULL upon failure rather than exiting
58492         with a diagnostic.
58493         * lib/filenamecat.h: Declare it.
58494
58495 2007-08-07  Bruno Haible  <bruno@clisp.org>
58496
58497         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58498         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58499         warning from gcc.
58500         Reported by Eric Blake.
58501
58502 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58503
58504         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58505         * modules/crypto/arcfour (License): Likewise.
58506         * modules/crypto/des-tests (License): Likewise.
58507         * modules/crypto/gc-arctwo-tests (License): Likewise.
58508         * modules/crypto/gc-des-tests (License): Likewise.
58509         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58510         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58511         * modules/crypto/gc-md2-tests (License): Likewise.
58512         * modules/crypto/gc-md4-tests (License): Likewise.
58513         * modules/crypto/gc-md5-tests (License): Likewise.
58514         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58515         * modules/crypto/gc-rijndael-tests (License): Likewise.
58516         * modules/crypto/gc-sha1-tests (License): Likewise.
58517         * modules/crypto/gc-tests (License): Likewise.
58518         * modules/crypto/hmac-md5 (License): Likewise.
58519         * modules/crypto/hmac-sha1 (License): Likewise.
58520         * modules/crypto/md2-tests (License): Likewise.
58521         * modules/crypto/md4-tests (License): Likewise.
58522         * modules/crypto/md5 (License): Likewise.
58523         * modules/crypto/rijndael (License): Likewise.
58524         * modules/crypto/sha1 (License): Likewise.
58525         * modules/memxor (License): Likewise.
58526
58527 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58528         and Bruno Haible  <bruno@clisp.org>
58529
58530         * NEWS: Describe interface changes to human, xstrtol.
58531         * lib/human.h: Include <xstrtol.h>.
58532         (human_options): Return enum strtol_error, not int.  Remove
58533         bool arg; take int * instead.
58534         * lib/human.c: Don't include "gettext.h".
58535         (_): Remove; no longer used.
58536         Don't include <xstrtol.h>, since human.h does it.
58537         (human_options): Adjust to abovementioned interface changes.
58538         Do not report error to stderr; that's now the caller's
58539         responsibility.
58540         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58541         interface change.
58542         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58543         Str, Argument_type_string.  All uses changed.  Put " argument"
58544         in diagnostics to make them clearer.  Change wording of suffix
58545         message for clarity.
58546         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58547         Argument_type_string.
58548         (STRTOL_FATAL_WARN): Remove; no longer used.
58549         * modules/human (Depends-on): Remove gettext-h.
58550
58551 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58552
58553         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58554
58555 2007-07-31  Bruno Haible  <bruno@clisp.org>
58556
58557         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58558         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58559         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58560
58561 2007-07-31  Bruno Haible  <bruno@clisp.org>
58562
58563         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58564         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58565
58566 2007-07-30  Bruno Haible  <bruno@clisp.org>
58567
58568         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58569         * modules/c-ctype (License): Likewise.
58570         * modules/c-strcase (License): Likewise.
58571         * modules/check-version (License): Likewise.
58572         * modules/iconv (License): Likewise.
58573         * modules/iconv_open (License): Likewise.
58574         * modules/read-file (License): Likewise.
58575         * modules/striconv (License): Likewise.
58576         * modules/strverscmp (License): Likewise.
58577         * modules/vasprintf (License): Likewise.
58578         * modules/crypto/des (License): Likewise.
58579         * modules/crypto/gc (License): Likewise.
58580         * modules/crypto/gc-arcfour (License): Likewise.
58581         * modules/crypto/gc-arctwo (License): Likewise.
58582         * modules/crypto/gc-des (License): Likewise.
58583         * modules/crypto/gc-hmac-md5 (License): Likewise.
58584         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58585         * modules/crypto/gc-md2 (License): Likewise.
58586         * modules/crypto/gc-md4 (License): Likewise.
58587         * modules/crypto/gc-md5 (License): Likewise.
58588         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58589         * modules/crypto/gc-random (License): Likewise.
58590         * modules/crypto/gc-rijndael (License): Likewise.
58591         * modules/crypto/gc-sha1 (License): Likewise.
58592         * modules/crypto/md2 (License): Likewise.
58593         * modules/crypto/md4 (License): Likewise.
58594
58595 2007-07-30  Jim Meyering  <jim@meyering.net>
58596
58597         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58598         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58599         it has valid stat data.  This bug would cause du not to count the
58600         sizes of inaccessible directories.
58601         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58602         in <http://bugzilla.redhat.com/250077>.
58603
58604 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58605             Bruno Haible  <bruno@clisp.org>
58606
58607         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58608         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58609         #include_next, gives a diagnostic about it, but reports no error in
58610         the exit code.
58611         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58612
58613 2007-07-24  Ben Pfaff  <blp@gnu.org>
58614
58615         Improve name: "count-one-bits" is better than "popcount".
58616         * MODULES.html.sh: Update name.
58617         * lib/popcount.h: Renamed lib/count-one-bits.h.
58618         (popcount): Renamed count_one_bits.
58619         (popcountl): Renamed count_one_bits_l.
58620         (popcountll): Renamed count_one_bits_ll.
58621         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58622         * modules/popcount: Renamed module/count-one-bits.
58623         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58624         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58625
58626 2007-07-23  Ben Pfaff  <blp@gnu.org>
58627
58628         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58629         better code generation, and add U to large constants to avoid
58630         warnings, in non-GCC case.
58631         Suggested by Bruno Haible.
58632
58633 2007-07-23  Ben Pfaff  <blp@gnu.org>
58634
58635         * lib/popcount.h: Use verify_true instead of if...abort.
58636         * modules/popcount: Depend on verify module.
58637         Suggested by Jim Meyering.
58638
58639 2007-07-23  Bruno Haible  <bruno@clisp.org>
58640
58641         * gnulib-tool (func_import): Create a .cvsignore file also when the
58642         directory is not yet in CVS but the toplevel directory is. When
58643         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58644         Reported by Karl Berry.
58645
58646 2007-07-22  Ben Pfaff  <blp@gnu.org>
58647
58648         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58649         case.
58650         Suggested by Eric Blake.
58651
58652 2007-07-22  Ben Pfaff  <blp@gnu.org>
58653
58654         New module: popcount.
58655         * MODULES.html.sh: Add popcount.
58656         * modules/popcount: New file.
58657         * modules/popcount-tests: New file.
58658         * tests/test-popcount.c: New file.
58659         * lib/popcount.h: New file.
58660         * m4/popcount.m4: New file.
58661
58662 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58663
58664         * build-aux/announce-gen: Update to GPLv3.
58665
58666         * build-aux/config.guess: Update from config.
58667
58668 2007-07-21  Bruno Haible  <bruno@clisp.org>
58669
58670         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58671         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58672
58673 2007-07-20  Jim Meyering  <jim@meyering.net>
58674
58675         * check-module: Diagnose a self-dependency.
58676
58677 2007-07-19  Bruno Haible  <bruno@clisp.org>
58678
58679         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58680         empty.
58681         Reported by Eric Blake.
58682
58683 2007-07-18  Bruno Haible  <bruno@clisp.org>
58684
58685         * gnulib-tool: New options --po-base, --po-domain.
58686         (func_usage): Document them.
58687         (pobase, po_domain): New variables.
58688         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58689         DEFAULT_TEXT_DOMAIN.
58690         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58691         (func_import): Consider pobase and po_domain. Create a po/ directory.
58692         (func_create_testdir): Set pobase and po_domain to empty.
58693         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58694         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58695
58696 2007-07-18  Bruno Haible  <bruno@clisp.org>
58697
58698         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58699         EXTRA_DIST augmentation for files in build-aux/.
58700
58701 2007-07-16  Bruno Haible  <bruno@clisp.org>
58702
58703         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58704         * modules/getdelim (License): Likewise.
58705
58706 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58707
58708         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58709         * modules/d-type (License): Likewise.
58710         * modules/extensions (License): Likewise.
58711         * modules/fnmatch (License): Likewise.
58712         * modules/fseeko (License): Likewise.
58713         * modules/getaddrinfo (License): Likewise.
58714         * modules/getline (License): Likewise.
58715         * modules/getlogin_r (License): Likewise.
58716         * modules/getpass (License): Likewise.
58717         * modules/gettimeofday (License): Likewise.
58718         * modules/glob (License): Likewise.
58719         * modules/inet_ntop (License): Likewise.
58720         * modules/malloc (License): Likewise.
58721         * modules/malloca (License): Likewise.
58722         * modules/memmem (License): Likewise.
58723         * modules/mempcpy (License): Likewise.
58724         * modules/memset (License): Likewise.
58725         * modules/minmax (License): Likewise.
58726         * modules/mktime (License): Likewise.
58727         * modules/netinet_in (License): Likewise.
58728         * modules/pathmax (License): Likewise.
58729         * modules/poll (License): Likewise.
58730         * modules/regex (License): Likewise.
58731         * modules/snprintf (License): Likewise.
58732         * modules/stdbool (License): Likewise.
58733         * modules/stdint (License): Likewise.
58734         * modules/stdio (License): Likewise.
58735         * modules/strcase (License): Likewise.
58736         * modules/strcasestr (License): Likewise.
58737         * modules/strdup (License): Likewise.
58738         * modules/string (License): Likewise.
58739         * modules/strndup (License): Likewise.
58740         * modules/strnlen (License): Likewise.
58741         * modules/strpbrk (License): Likewise.
58742         * modules/strptime (License): Likewise.
58743         * modules/strsep (License): Likewise.
58744         * modules/sys_select (License): Likewise.
58745         * modules/sys_socket (License): Likewise.
58746         * modules/sys_stat (License): Likewise.
58747         * modules/sys_time (License): Likewise.
58748         * modules/time (License): Likewise.
58749         * modules/time_r (License): Likewise.
58750         * modules/timegm (License): Likewise.
58751         * modules/unistd (License): Likewise.
58752         * modules/vsnprintf (License): Likewise.
58753         * modules/wctype (License): Likewise.
58754
58755 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58756
58757         * modules/argz (License): LGPLv2+.
58758
58759 2007-07-15  Karl Berry  <karl@gnu.org>
58760
58761         * doc/gnulib.texi: revise node structure per new fdl.texi.
58762
58763 2007-07-14  Bruno Haible  <bruno@clisp.org>
58764
58765         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58766         the output file.
58767         * lib/uniname/uninames.h: Regenerated.
58768
58769 2007-07-14  Karl Berry  <karl@gnu.org>
58770
58771         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58772         omitting sectioning and index commands.
58773
58774 2007-07-13  Bruno Haible  <bruno@clisp.org>
58775
58776         New gnulib-tool option --more-symlinks.
58777         * gnulib-tool (func_usage): Document --more-symlinks.
58778         (do_copyrights): New variable.
58779         Recognize option --more-symlinks.
58780         (func_import): Don't add a copyright notice transform to
58781         sed_transform_lib_file if do_copyrights is empty.
58782
58783 2007-07-13  Bruno Haible  <bruno@clisp.org>
58784
58785         * lib/vasnprintf.c (decimal_point_char): Define also if
58786         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58787         && !NEED_PRINTF_DIRECTIVE_A.
58788         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58789         Gary V. Vaughan <gary@gnu.org>.
58790
58791 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58792
58793         * lib/inttypes_.h: Undo previous change, since it was fixed
58794         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58795
58796 2007-07-13  Bruno Haible  <bruno@clisp.org>
58797
58798         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58799         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58800
58801 2007-07-13  Jim Meyering  <jim@meyering.net>
58802
58803         df: Don't fail for Tru64's "file-on-file mount".
58804         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58805         so we fall through and use statfs instead.  Details here:
58806         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58807         Reported by Albert Chin.
58808
58809 2007-07-13  Bruno Haible  <bruno@clisp.org>
58810
58811         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58812         * modules/configmake (License): Likewise.
58813         * modules/gettext (License): Likewise.
58814         * modules/gettext-h (License): Likewise.
58815         * modules/include_next (License): Likewise.
58816         * modules/link-warning (License): Likewise.
58817         * modules/localcharset (License): Likewise.
58818         * modules/localename (License): Likewise.
58819         * modules/lock (License): Likewise.
58820         * modules/relocatable-lib-lgpl (License): Likewise.
58821         * modules/size_max (License): Likewise.
58822         * modules/vasnprintf (License): Likewise.
58823         * modules/wchar (License): Likewise.
58824         * modules/xsize (License): Likewise.
58825
58826 2007-07-13  Bruno Haible  <bruno@clisp.org>
58827
58828         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58829         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58830
58831 2007-07-12  Bruno Haible  <bruno@clisp.org>
58832
58833         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58834         in the modules files.
58835
58836 2007-07-11  Karl Berry  <karl@gnu.org>
58837
58838         * MODULES.html.sh (func_module): use
58839          sed -e '\|^'"${includefile}"'$|d'
58840          instead of /.../d, to avoid errors on $includefile's containing /.
58841
58842 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58843
58844         * gnulib-tool (func_import): Avoid duplication of --avoid
58845         statements
58846         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58847         names to `_' in variable names.
58848
58849 2007-07-10  Eric Blake  <ebb9@byu.net>
58850
58851         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58852         * NEWS: Document this change.
58853
58854 2007-07-08  Bruno Haible  <bruno@clisp.org>
58855
58856         Update to Unicode 5.0.
58857         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58858         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58859         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58860         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58861         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58862         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58863         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58864         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58865         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58866         U+10A3F, U+1D242..U+1D244.
58867         (nonspacing_table_ind): Update.
58868         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58869         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58870
58871 2007-07-08  Bruno Haible  <bruno@clisp.org>
58872
58873         Update to Unicode 5.0.
58874         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58875         code transform. Extend the name index field of unicode_name_to_code and
58876         unicode_code_to_name from 16 to 24 bits.
58877         * lib/uniname/uniname.c (unicode_character_name,
58878         unicode_name_character): Add the range 0x12xxx to the code transform.
58879         * lib/uniname/uninames.h: Regenerated.
58880         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58881
58882 2007-07-07  Bruno Haible  <bruno@clisp.org>
58883
58884         * modules/wcwidth-tests: New file.
58885         * tests/test-wcwidth.c: New file.
58886
58887         Work around MacOS X wcwidth() bug.
58888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58889         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58890         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58891         original wcwidth in non-UTF-8 locales.
58892         * modules/wcwidth (Depends-on): Add localcharset, streq,
58893         uniwidth/width.
58894         * doc/functions/wcwidth.texi: Update.
58895
58896 2007-07-07  Bruno Haible  <bruno@clisp.org>
58897
58898         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58899         (wcwidth): New declaration.
58900         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58901         macros.
58902         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58903         here. Prepare for creating <wchar.h> unconditionally.
58904         * modules/wchar (Depends-on): Add link-warning.
58905         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58906         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58907         * lib/wcwidth.h: Remove file.
58908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58909         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58910         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58911         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58912         (Include): Replace wcwidth.h with <wchar.h>.
58913         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58914         * lib/mbchar.h: Don't include wcwidth.h.
58915         * lib/mbswidth.c: Likewise.
58916         * NEWS: Mention the change.
58917
58918 2007-07-07  Bruno Haible  <bruno@clisp.org>
58919
58920         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58921         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58922         definition with an external declaration.
58923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58924         defined as a function. Remove AC_C_INLINE requirement.
58925         * modules/wcwidth (Files): Add lib/wcwidth.c.
58926         (Makefile.am): Remove redundant statement.
58927
58928 2007-07-07  Bruno Haible  <bruno@clisp.org>
58929
58930         * MODULES.html.sh (Unicode string functions): Add the new modules.
58931
58932         * tests/uniwidth/test-u32-strwidth.c: New file.
58933         * modules/uniwidth/u32-strwidth-tests: New file.
58934
58935         * lib/uniwidth/u32-strwidth.c: New file.
58936         * modules/uniwidth/u32-strwidth: New file.
58937
58938         * tests/uniwidth/test-u16-strwidth.c: New file.
58939         * modules/uniwidth/u16-strwidth-tests: New file.
58940
58941         * lib/uniwidth/u16-strwidth.c: New file.
58942         * modules/uniwidth/u16-strwidth: New file.
58943
58944         * tests/uniwidth/test-u8-strwidth.c: New file.
58945         * modules/uniwidth/u8-strwidth-tests: New file.
58946
58947         * lib/uniwidth/u8-strwidth.c: New file.
58948         * modules/uniwidth/u8-strwidth: New file.
58949
58950         * tests/uniwidth/test-u32-width.c: New file.
58951         * modules/uniwidth/u32-width-tests: New file.
58952
58953         * lib/uniwidth/u32-width.c: New file.
58954         * modules/uniwidth/u32-width: New file.
58955
58956         * tests/uniwidth/test-u16-width.c: New file.
58957         * modules/uniwidth/u16-width-tests: New file.
58958
58959         * lib/uniwidth/u16-width.c: New file.
58960         * modules/uniwidth/u16-width: New file.
58961
58962         * tests/uniwidth/test-u8-width.c: New file.
58963         * modules/uniwidth/u8-width-tests: New file.
58964
58965         * lib/uniwidth/u8-width.c: New file.
58966         * modules/uniwidth/u8-width: New file.
58967
58968         * tests/uniwidth/test-uc_width.c: New file.
58969         * modules/uniwidth/width-tests: New file.
58970
58971         * lib/uniwidth/width.c: New file, from GNU libiconv.
58972         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58973         * modules/uniwidth/width: New file.
58974
58975         * lib/uniwidth.h: New file, from GNU libiconv.
58976         * modules/uniwidth/base: New file.
58977
58978 2007-07-07  Bruno Haible  <bruno@clisp.org>
58979
58980         * lib/uniname.h: New file, from GNU gettext.
58981         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58982         * lib/uniname/uninames.h: New file, from GNU gettext.
58983         * lib/uniname/uniname.c: New file, from GNU gettext.
58984         * tests/uniname/test-uninames.sh: New file.
58985         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58986         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58987         * modules/uniname/base: New file.
58988         * modules/uniname/uniname: New file.
58989         * modules/uniname/uniname-tests: New file.
58990         * MODULES.html.sh (Unicode string functions): Add the new modules.
58991
58992 2007-07-06  Bruno Haible  <bruno@clisp.org>
58993
58994         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58995
58996 2007-07-06  Bruno Haible  <bruno@clisp.org>
58997
58998         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58999         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59000         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59001         include <sys/time.h>.
59002         Reported by Eric Blake.
59003
59004 2007-07-06  Eric Blake  <ebb9@byu.net>
59005
59006         Fix testing canonicalize on cygwin.
59007         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59008         Revert patch from 2007-06-19.
59009         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59010         canonicalize module is also in use.
59011         * tests/test-canonicalize.c: New file.
59012         * tests/test-canonicalize.sh: Likewise.
59013         * modules/canonicalize-tests: Likewise.
59014
59015 2007-07-06  Jim Meyering  <jim@meyering.net>
59016
59017         * lib/getugroups.c (getugroups): Detect getgrent failure.
59018         Adjust comment to reflect reality: this function may return -1.
59019
59020 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59021
59022         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59023         the new TP address.
59024         (usage): Fix typo
59025         (gnulib_mk): New variable.
59026
59027 2007-07-05  Jim Meyering  <jim@meyering.net>
59028
59029         Don't let endgrent clobber errno, no matter how improbable.
59030         * lib/getugroups.c (getugroups): Save and restore errno around
59031         endgrent call.
59032
59033         Close the group DB even when failing with 2^31 or more members.
59034         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59035
59036 2007-07-04  Jim Meyering  <jim@meyering.net>
59037
59038         * lib/getugroups.h: New file.
59039         * lib/getugroups.c: Include "getugroups.h".
59040         Remove uses of "register" keyword.
59041         Move local variable, "cp", down into scope where used.
59042         Give "username" parameter the "const" attribute.
59043         * modules/getugroups (Files): Add lib/getugroups.h
59044
59045 2007-07-04  Karl Berry  <karl@gnu.org>
59046
59047         * MODULES.html.sh (func_all_modules): Complete rename of
59048         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59049
59050 2007-07-02  Bruno Haible  <bruno@clisp.org>
59051
59052         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59053         mode, when inttypes.h comes from gnulib.
59054         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59055
59056 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59057
59058         * NEWS: Mention lgpl module name change.
59059
59060         * modules/lgpl-2.1: Renamed from lgpl.
59061
59062         * NEWS: Mention gpl module name change.
59063
59064         * modules/gpl-3.0: New file, based on gpl-2.0.
59065
59066         * modules/gpl-2.0: Renamed from gpl.
59067
59068         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59069         doc/gpl-2.0.texi.
59070
59071 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59072
59073         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59074         #define __STDC_LIMIT_MACROS temporarily while including
59075         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59076         Problem reported by Joel E. Denny in
59077         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59078
59079 2007-07-01  Bruno Haible  <bruno@clisp.org>
59080
59081         * lib/unistdio.h: New file.
59082         * lib/unistdio/u-asnprintf.h: New file.
59083         * lib/unistdio/u-asprintf.h: New file.
59084         * lib/unistdio/u-printf-args.c: New file.
59085         * lib/unistdio/u-printf-args.h: New file.
59086         * lib/unistdio/u-printf-parse.h: New file.
59087         * lib/unistdio/u-snprintf.h: New file.
59088         * lib/unistdio/u-sprintf.h: New file.
59089         * lib/unistdio/u-vasprintf.h: New file.
59090         * lib/unistdio/u-vsnprintf.h: New file.
59091         * lib/unistdio/u-vsprintf.h: New file.
59092         * lib/unistdio/ulc-asnprintf.c: New file.
59093         * lib/unistdio/ulc-asprintf.c: New file.
59094         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59095         * lib/unistdio/ulc-printf-parse.c: New file.
59096         * lib/unistdio/ulc-snprintf.c: New file.
59097         * lib/unistdio/ulc-sprintf.c: New file.
59098         * lib/unistdio/ulc-vasnprintf.c: New file.
59099         * lib/unistdio/ulc-vasprintf.c: New file.
59100         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59101         * lib/unistdio/ulc-vsnprintf.c: New file.
59102         * lib/unistdio/ulc-vsprintf.c: New file.
59103         * lib/unistdio/u8-asnprintf.c: New file.
59104         * lib/unistdio/u8-asprintf.c: New file.
59105         * lib/unistdio/u8-printf-parse.c: New file.
59106         * lib/unistdio/u8-snprintf.c: New file.
59107         * lib/unistdio/u8-sprintf.c: New file.
59108         * lib/unistdio/u8-vasnprintf.c: New file.
59109         * lib/unistdio/u8-vasprintf.c: New file.
59110         * lib/unistdio/u8-vsnprintf.c: New file.
59111         * lib/unistdio/u8-vsprintf.c: New file.
59112         * lib/unistdio/u8-u8-asnprintf.c: New file.
59113         * lib/unistdio/u8-u8-asprintf.c: New file.
59114         * lib/unistdio/u8-u8-snprintf.c: New file.
59115         * lib/unistdio/u8-u8-sprintf.c: New file.
59116         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59117         * lib/unistdio/u8-u8-vasprintf.c: New file.
59118         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59119         * lib/unistdio/u8-u8-vsprintf.c: New file.
59120         * lib/unistdio/u16-asnprintf.c: New file.
59121         * lib/unistdio/u16-asprintf.c: New file.
59122         * lib/unistdio/u16-printf-parse.c: New file.
59123         * lib/unistdio/u16-snprintf.c: New file.
59124         * lib/unistdio/u16-sprintf.c: New file.
59125         * lib/unistdio/u16-vasnprintf.c: New file.
59126         * lib/unistdio/u16-vasprintf.c: New file.
59127         * lib/unistdio/u16-vsnprintf.c: New file.
59128         * lib/unistdio/u16-vsprintf.c: New file.
59129         * lib/unistdio/u16-u16-asnprintf.c: New file.
59130         * lib/unistdio/u16-u16-asprintf.c: New file.
59131         * lib/unistdio/u16-u16-snprintf.c: New file.
59132         * lib/unistdio/u16-u16-sprintf.c: New file.
59133         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59134         * lib/unistdio/u16-u16-vasprintf.c: New file.
59135         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59136         * lib/unistdio/u16-u16-vsprintf.c: New file.
59137         * lib/unistdio/u32-asnprintf.c: New file.
59138         * lib/unistdio/u32-asprintf.c: New file.
59139         * lib/unistdio/u32-printf-parse.c: New file.
59140         * lib/unistdio/u32-snprintf.c: New file.
59141         * lib/unistdio/u32-sprintf.c: New file.
59142         * lib/unistdio/u32-vasnprintf.c: New file.
59143         * lib/unistdio/u32-vasprintf.c: New file.
59144         * lib/unistdio/u32-vsnprintf.c: New file.
59145         * lib/unistdio/u32-vsprintf.c: New file.
59146         * lib/unistdio/u32-u32-asnprintf.c: New file.
59147         * lib/unistdio/u32-u32-asprintf.c: New file.
59148         * lib/unistdio/u32-u32-snprintf.c: New file.
59149         * lib/unistdio/u32-u32-sprintf.c: New file.
59150         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59151         * lib/unistdio/u32-u32-vasprintf.c: New file.
59152         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59153         * lib/unistdio/u32-u32-vsprintf.c: New file.
59154         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59155         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59156         * tests/unistdio/test-ulc-printf1.h: New file.
59157         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59158         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59159         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59160         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59161         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59162         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59163         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59164         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59165         * tests/unistdio/test-u8-asnprintf1.c: New file.
59166         * tests/unistdio/test-u8-asnprintf1.h: New file.
59167         * tests/unistdio/test-u8-printf1.h: New file.
59168         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59169         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59170         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59171         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59172         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59173         * tests/unistdio/test-u8-vasprintf1.c: New file.
59174         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59175         * tests/unistdio/test-u8-vsprintf1.c: New file.
59176         * tests/unistdio/test-u16-asnprintf1.c: New file.
59177         * tests/unistdio/test-u16-asnprintf1.h: New file.
59178         * tests/unistdio/test-u16-printf1.h: New file.
59179         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59180         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59181         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59182         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59183         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59184         * tests/unistdio/test-u16-vasprintf1.c: New file.
59185         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59186         * tests/unistdio/test-u16-vsprintf1.c: New file.
59187         * tests/unistdio/test-u32-asnprintf1.c: New file.
59188         * tests/unistdio/test-u32-asnprintf1.h: New file.
59189         * tests/unistdio/test-u32-printf1.h: New file.
59190         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59191         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59192         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59193         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59194         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59195         * tests/unistdio/test-u32-vasprintf1.c: New file.
59196         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59197         * tests/unistdio/test-u32-vsprintf1.c: New file.
59198         * modules/unistdio/base: New file.
59199         * modules/unistdio/u-printf-args: New file.
59200         * modules/unistdio/ulc-asnprintf: New file.
59201         * modules/unistdio/ulc-asprintf: New file.
59202         * modules/unistdio/ulc-fprintf: New file.
59203         * modules/unistdio/ulc-printf-parse: New file.
59204         * modules/unistdio/ulc-snprintf: New file.
59205         * modules/unistdio/ulc-sprintf: New file.
59206         * modules/unistdio/ulc-vasnprintf: New file.
59207         * modules/unistdio/ulc-vasprintf: New file.
59208         * modules/unistdio/ulc-vfprintf: New file.
59209         * modules/unistdio/ulc-vsnprintf: New file.
59210         * modules/unistdio/ulc-vsprintf: New file.
59211         * modules/unistdio/u8-asnprintf: New file.
59212         * modules/unistdio/u8-asprintf: New file.
59213         * modules/unistdio/u8-printf-parse: New file.
59214         * modules/unistdio/u8-snprintf: New file.
59215         * modules/unistdio/u8-sprintf: New file.
59216         * modules/unistdio/u8-vasnprintf: New file.
59217         * modules/unistdio/u8-vasprintf: New file.
59218         * modules/unistdio/u8-vsnprintf: New file.
59219         * modules/unistdio/u8-vsprintf: New file.
59220         * modules/unistdio/u8-u8-asnprintf: New file.
59221         * modules/unistdio/u8-u8-asprintf: New file.
59222         * modules/unistdio/u8-u8-snprintf: New file.
59223         * modules/unistdio/u8-u8-sprintf: New file.
59224         * modules/unistdio/u8-u8-vasnprintf: New file.
59225         * modules/unistdio/u8-u8-vasprintf: New file.
59226         * modules/unistdio/u8-u8-vsnprintf: New file.
59227         * modules/unistdio/u8-u8-vsprintf: New file.
59228         * modules/unistdio/u16-asnprintf: New file.
59229         * modules/unistdio/u16-asprintf: New file.
59230         * modules/unistdio/u16-printf-parse: New file.
59231         * modules/unistdio/u16-snprintf: New file.
59232         * modules/unistdio/u16-sprintf: New file.
59233         * modules/unistdio/u16-vasnprintf: New file.
59234         * modules/unistdio/u16-vasprintf: New file.
59235         * modules/unistdio/u16-vsnprintf: New file.
59236         * modules/unistdio/u16-vsprintf: New file.
59237         * modules/unistdio/u16-u16-asnprintf: New file.
59238         * modules/unistdio/u16-u16-asprintf: New file.
59239         * modules/unistdio/u16-u16-snprintf: New file.
59240         * modules/unistdio/u16-u16-sprintf: New file.
59241         * modules/unistdio/u16-u16-vasnprintf: New file.
59242         * modules/unistdio/u16-u16-vasprintf: New file.
59243         * modules/unistdio/u16-u16-vsnprintf: New file.
59244         * modules/unistdio/u16-u16-vsprintf: New file.
59245         * modules/unistdio/u32-asnprintf: New file.
59246         * modules/unistdio/u32-asprintf: New file.
59247         * modules/unistdio/u32-printf-parse: New file.
59248         * modules/unistdio/u32-snprintf: New file.
59249         * modules/unistdio/u32-sprintf: New file.
59250         * modules/unistdio/u32-vasnprintf: New file.
59251         * modules/unistdio/u32-vasprintf: New file.
59252         * modules/unistdio/u32-vsnprintf: New file.
59253         * modules/unistdio/u32-vsprintf: New file.
59254         * modules/unistdio/u32-u32-asnprintf: New file.
59255         * modules/unistdio/u32-u32-asprintf: New file.
59256         * modules/unistdio/u32-u32-snprintf: New file.
59257         * modules/unistdio/u32-u32-sprintf: New file.
59258         * modules/unistdio/u32-u32-vasnprintf: New file.
59259         * modules/unistdio/u32-u32-vasprintf: New file.
59260         * modules/unistdio/u32-u32-vsnprintf: New file.
59261         * modules/unistdio/u32-u32-vsprintf: New file.
59262         * modules/unistdio/ulc-asnprintf-tests: New file.
59263         * modules/unistdio/ulc-vasnprintf-tests: New file.
59264         * modules/unistdio/ulc-vasprintf-tests: New file.
59265         * modules/unistdio/ulc-vsnprintf-tests: New file.
59266         * modules/unistdio/ulc-vsprintf-tests: New file.
59267         * modules/unistdio/u8-asnprintf-tests: New file.
59268         * modules/unistdio/u8-vasnprintf-tests: New file.
59269         * modules/unistdio/u8-vasprintf-tests: New file.
59270         * modules/unistdio/u8-vsnprintf-tests: New file.
59271         * modules/unistdio/u8-vsprintf-tests: New file.
59272         * modules/unistdio/u16-asnprintf-tests: New file.
59273         * modules/unistdio/u16-vasnprintf-tests: New file.
59274         * modules/unistdio/u16-vasprintf-tests: New file.
59275         * modules/unistdio/u16-vsnprintf-tests: New file.
59276         * modules/unistdio/u16-vsprintf-tests: New file.
59277         * modules/unistdio/u32-asnprintf-tests: New file.
59278         * modules/unistdio/u32-vasnprintf-tests: New file.
59279         * modules/unistdio/u32-vasprintf-tests: New file.
59280         * modules/unistdio/u32-vsnprintf-tests: New file.
59281         * modules/unistdio/u32-vsprintf-tests: New file.
59282         * MODULES.html.sh (Unicode string functions): Add the new modules.
59283
59284 2007-07-01  Bruno Haible  <bruno@clisp.org>
59285
59286         * lib/sprintf.c (sprintf): Limit the available length estimation,
59287         to avoid address wraparound.
59288         * lib/vsprintf.c (vsprintf): Likewise.
59289         * modules/sprintf-posix (Dependencies): Add stdint.
59290         * modules/vsprintf-posix (Dependencies): Likewise.
59291
59292 2007-07-01  Bruno Haible  <bruno@clisp.org>
59293
59294         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59295         Windows PATH as well. Conservative double-quoting. Comments.
59296
59297 2007-07-01  Bruno Haible  <bruno@clisp.org>
59298             Eric Blake  <ebb9@byu.net>
59299             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59300
59301         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59302         empty components in $PATH, denoting '.'.
59303
59304 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59305
59306         * gnulib-tool: Fix indentation.
59307         (func_create_megatestdir): Likewise.
59308         Report by Bruno Haible.
59309
59310 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59311
59312         Sync from Automake.
59313         * build-aux/gnupload: Fix shell portability issues with for loops.
59314         Report by Karl Berry.
59315
59316 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59317
59318         * build-aux/maint.mk (POURL): Use translationproject.org.
59319
59320 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59321             Bruno Haible  <bruno@clisp.org>
59322
59323         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59324         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59325         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59326         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59327         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59328
59329 2007-06-27  Bruno Haible  <bruno@clisp.org>
59330
59331         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59332         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59333
59334 2007-06-26  Karl Berry  <karl@gnu.org>
59335
59336         * MODULES.html.sh: remove xreadlink-with-size.
59337
59338 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59339
59340         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59341         method that I hope also handles the double-include problem noted
59342         by Bruno Haible in
59343         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59344
59345 2007-06-23  Bruno Haible  <bruno@clisp.org>
59346
59347         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59348         Don't let the 'mostlyclean' target fail if the last subdirectory could
59349         not be removed.
59350         Reported by Karl Berry.
59351
59352 2007-06-23  Bruno Haible  <bruno@clisp.org>
59353
59354         * gnulib-tool (echo): Add a speedier workaround for ksh.
59355         * tests/test-echo.sh: Likewise.
59356
59357 2007-06-23  Bruno Haible  <bruno@clisp.org>
59358
59359         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59360         * tests/test-echo.sh: Likewise.
59361
59362 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59363
59364         * gnulib-tool (IFS): Initialize early, so we don't set it to
59365         empty later.
59366         (self_abspathname): Rewrite algorithm to set it, reindent.
59367         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59368         (func_create_megatestdir): Merge some sed scripts.
59369
59370 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59371
59372         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59373         exposed by Sun Studio 11 cc on Solaris 8.
59374
59375 2007-06-22  Bruno Haible  <bruno@clisp.org>
59376
59377         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59378         backslashes.
59379         * tests/test-echo.sh: New file.
59380
59381 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59382
59383         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59384         simplify `sed_replace_build_aux' scripts, they are portable but
59385         echoing them with `echo' is not.
59386         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59387
59388 2007-06-21  Karl Berry  <karl@gnu.org>
59389
59390         * config/srclist.txt: guess we can't handle the licenses via
59391         srclist at the moment.
59392
59393 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59394
59395         * MODULES.html.sh: Add include_next.
59396         * modules/include_next: New file.
59397
59398 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59399
59400         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59401         INCLUDE_NEXT.
59402         (gl_CHECK_NEXT_HEADERS): New macro.
59403         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59404         the obsolescent gl_ABSOLUTE_HEADER.
59405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59406         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59407         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59408         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59409         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59410         * m4/math_h.m4 (gl_MATH_H): Likewise.
59411         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59412         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59413         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59414         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59415         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59416         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59417         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59418         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59419         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59420         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59421         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59422         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59423         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59424         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59425         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59426         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59427         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59428         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59429         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59430         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59431         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59432         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59433         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59434         * lib/float_.h: Likewise.
59435         * lib/inttypes_.h: Likewise.
59436         * lib/math_.h: Likewise.
59437         * lib/search_.h: Likewise.
59438         * lib/signal_.h: Likewise.
59439         * lib/stdint_.h: Likewise.
59440         * lib/stdio_.h: Likewise.
59441         * lib/stdlib_.h: Likewise.
59442         * lib/string_.h: Likewise.
59443         * lib/sys_stat_.h: Likewise.
59444         * lib/sys_time_.h: Likewise.
59445         * lib/time_.h: Likewise.
59446         * lib/unistd_.h: Likewise.
59447         * lib/wchar_.h: Likewise.
59448         * lib/wctype_.h: Likewise.
59449         * lib/dirent_.h: Likewise.
59450         * lib/iconv_.h: Likewise.
59451         * lib/locale_.h: Likewise.
59452         * lib/netinet_in_.h: Likewise.
59453         * lib/sys_select_.h: Likewise.
59454         * lib/sys_socket_.h: Likewise.
59455         * lib/sysexits_.h: Likewise.
59456         * modules/fcntl (Depends-on): Depend on include_next, not
59457         absolute_header.
59458         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59459         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59460         * modules/fchdir: Likewise.
59461         * modules/float: Likewise.
59462         * modules/iconv_open: Likewise.
59463         * modules/inttypes: Likewise.
59464         * modules/locale: Likewise.
59465         * modules/math: Likewise.
59466         * modules/netinet_in: Likewise.
59467         * modules/search: Likewise.
59468         * modules/signal: Likewise.
59469         * modules/stdint: Likewise.
59470         * modules/stdio: Likewise.
59471         * modules/stdlib: Likewise.
59472         * modules/string: Likewise.
59473         * modules/sys_select: Likewise.
59474         * modules/sys_socket: Likewise.
59475         * modules/sys_stat: Likewise.
59476         * modules/sys_time: Likewise.
59477         * modules/sysexits: Likewise.
59478         * modules/time: Likewise.
59479         * modules/unistd: Likewise.
59480         * modules/wchar: Likewise.
59481         * modules/wctype: Likewise.
59482         * modules/sys_stat: Change maintainer to "all".
59483         * modules/unistd: Likewise.
59484
59485 2007-06-20  Karl Berry  <karl@gnu.org>
59486
59487         * config/srclist.txt: track www changes in license files.
59488
59489 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59490
59491         * build-aux/bootstrap: Remove stray dot.
59492         Make sure build_aux settings are honored when linking
59493         gnulib_extra_files.
59494
59495 2007-06-19  Eric Blake  <ebb9@byu.net>
59496
59497         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59498         Allow compilation on cygwin.
59499
59500 2007-06-19  Jim Meyering  <jim@meyering.net>
59501
59502         xreadlink-with-size: Remove module.  No longer used.
59503         Ex-callers now use xreadlink or mreadlink-with-size.
59504         * modules/xreadlink-with-size: Remove module.
59505         * lib/xreadlink-with-size.c: Remove file.
59506         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59507         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59508         just before the function definition *is* accurate.
59509
59510         Eliminate one way canonicalize_filename_mode could exit.
59511         * lib/canonicalize.c (canonicalize_filename_mode):
59512         Use mreadlink_with_size, not xreadlink_with_size.
59513
59514 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59515
59516         Detect porting problems to FreeBSD/arm, which has time_t wider than
59517         long int.  Original problem reported for GNU diff by Xin Li in
59518         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59519         * modules/getdate (Depends-on): Add intprops, verify.
59520         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59521         is an integer type no wider than long int.
59522
59523 2007-06-18  Jim Meyering  <jim@meyering.net>
59524
59525         New module: mreadlink-with-size.
59526         * MODULES.html.sh: Add mreadlink-with-size.
59527         * modules/mreadlink-with-size: New module
59528         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59529         not xreadlink-with-size.
59530         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59531
59532 2007-06-16  Bruno Haible  <bruno@clisp.org>
59533
59534         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59535         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59536         Reported by Gary V. Vaughan <gary@gnu.org>.
59537
59538 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59539
59540         Revamp lchown so that it lives in unistd.h where it belongs.
59541         * lib/lchown.h: Remove.
59542         * lib/dirchownmod.c: Don't include lib/lchown.h.
59543         * lib/fchownat.c: Likewise.
59544         * lib/openat.c: Likewise.
59545         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59546         does not follow symlinks.
59547         (EOPNOTSUPP): Define if not defined.
59548         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59549         is defined to 0.
59550         (lchown): New decl.
59551         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59552         Do not check for lchown decl.
59553         Set REPLACE_LCHOWN.
59554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59555         REPLACE_LCHOWN.
59556         * modules/chown: Make it clear it follows symlinks.
59557         * modules/lchown: Make it clear it doesn't follow symlinks.
59558         (Files): Remove lib/lchown.h
59559         (Depends-on): Add unistd.
59560         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59561         (Include): Include <unistd.h>, not "lchown.h".
59562         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59563         REPLACE_LCHOWN.
59564
59565 2007-06-15  Jim Meyering  <jim@meyering.net>
59566
59567         Change license (GPL to LGPL) of fsusage and dependents.
59568         * modules/fsusage (License): Change to LGPL.
59569         * modules/full-read (License): Likewise.
59570         * modules/full-write (License): Likewise.
59571         * modules/safe-read (License): Likewise.
59572         * modules/safe-write (License): Likewise.
59573
59574 2007-06-14  Ben Pfaff  <blp@gnu.org>
59575
59576         Missing part of allocsa -> malloca transition.
59577         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59578         gl_MALLOCA.
59579
59580 2007-06-12  Bruno Haible  <bruno@clisp.org>
59581
59582         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59583         to ia64, x86_64, i386.
59584         Reported by Eric Blake.
59585
59586 2007-06-12  Bruno Haible  <bruno@clisp.org>
59587
59588         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59589         cross-compiling to x86_64.
59590
59591 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59592
59593         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59594         glitch reported by Ralf Wildenhues in
59595         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59596
59597         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59598         Vin Shelton.
59599
59600 2007-06-11  Bruno Haible  <bruno@clisp.org>
59601
59602         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59603         replacement string.
59604         Reported by Eric Blake.
59605
59606 2007-06-10  Bruno Haible  <bruno@clisp.org>
59607
59608         Prepare vasnprintf code for use with Unicode strings.
59609         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59610         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59611         TYPE_U32_STRING.
59612         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59613         a_u32_string variants.
59614         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59615         * lib/printf-args.c: Don't include config.h and the specification
59616         header if PRINTF_FETCHARGS is already defined.
59617         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59618         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59619         TYPE_U16_STRING, TYPE_U32_STRING.
59620         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59621         u16_directive, u16_directives, u32_directive, u32_directives): New
59622         types.
59623         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59624         New declarations.
59625         * lib/printf-parse.c: Don't include config.h and the specification
59626         header if PRINTF_PARSE is already defined. Eliminate the set of
59627         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59628         them now. Include c-ctype.h.
59629         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59630         directive and CHAR_T_ONLY_ASCII.
59631         * lib/vasnprintf.c: Don't include config.h and the specification header
59632         if VASNPRINTF is already defined.
59633         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59634         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59635         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59636         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59637         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59638         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59639         code accordingly.
59640         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59641         pad_ourselves also in this case, with the 'c' and 's' directives, and
59642         with a different notion of "width".
59643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59644
59645 2007-06-10  Bruno Haible  <bruno@clisp.org>
59646
59647         * modules/unistr/u32-mbsnlen: New file.
59648         * lib/unistr/u32-mbsnlen.c: New file.
59649
59650         * modules/unistr/u16-mbsnlen: New file.
59651         * lib/unistr/u16-mbsnlen.c: New file.
59652
59653         * modules/unistr/u8-mbsnlen: New file.
59654         * lib/unistr/u8-mbsnlen.c: New file.
59655
59656         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59657         declarations.
59658
59659 2007-06-10  Bruno Haible  <bruno@clisp.org>
59660
59661         * lib/string_.h (mbsnlen): New declaration.
59662         * lib/mbsnlen.c: New file.
59663         * m4/mbsnlen.m4: New file.
59664         * modules/mbsnlen: New file.
59665         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59666         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59667         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59668
59669 2007-06-10  Bruno Haible  <bruno@clisp.org>
59670
59671         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59672
59673 2007-06-10  Bruno Haible  <bruno@clisp.org>
59674
59675         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59676         * lib/mbuiter.h: Likewise.
59677
59678 2007-06-10  Bruno Haible  <bruno@clisp.org>
59679
59680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59681         declaration.
59682
59683 2007-06-10  Karl Berry  <karl@gnu.org>
59684
59685         * config/srclist.txt: remove gettext entries, Bruno prefers
59686         to update individually.
59687
59688 2007-06-10  Bruno Haible  <bruno@clisp.org>
59689
59690         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59691         'maxlen'. Ensure only length + width bytes are allocated, not
59692         length + 1 + width.
59693
59694 2007-06-09  Bruno Haible  <bruno@clisp.org>
59695
59696         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59697         (CHAR_T): Remove macro.
59698         (VASNPRINTF): Update.
59699
59700 2007-06-09  Bruno Haible  <bruno@clisp.org>
59701
59702         * MODULES.html.sh (Unicode string functions): Add the new modules.
59703
59704         * modules/uniconv/u32-conv-to-enc: New file.
59705         * lib/uniconv/u32-conv-to-enc.c: New file.
59706         * modules/uniconv/u32-conv-to-enc-tests: New file.
59707         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59708
59709         * modules/uniconv/u16-conv-to-enc: New file.
59710         * lib/uniconv/u16-conv-to-enc.c: New file.
59711         * lib/uniconv/u-conv-to-enc.h: New file.
59712         * modules/uniconv/u16-conv-to-enc-tests: New file.
59713         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59714
59715         * modules/uniconv/u8-conv-to-enc: New file.
59716         * lib/uniconv/u8-conv-to-enc.c: New file.
59717         * modules/uniconv/u8-conv-to-enc-tests: New file.
59718         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59719
59720         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59721         u32_conv_to_encoding): New declarations.
59722
59723 2007-06-09  Bruno Haible  <bruno@clisp.org>
59724
59725         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59726
59727 2007-06-09  Bruno Haible  <bruno@clisp.org>
59728
59729         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59730         * modules/malloca: Renamed from modules/allocsa, updated.
59731         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59732         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59733         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59734         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59735         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59736         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59737         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59738         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59739         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59740         * modules/c-strcasestr (Depends-on): Update.
59741         * lib/c-strcasestr.c: Update.
59742         * modules/c-strstr (Depends-on): Update.
59743         * lib/c-strstr.c: Update.
59744         * modules/canonicalize-lgpl (Depends-on): Update.
59745         * lib/canonicalize-lgpl.c: Update.
59746         * modules/clean-temp (Depends-on): Update.
59747         * lib/clean-temp.c: Update.
59748         * modules/csharpcomp (Depends-on): Update.
59749         * lib/csharpcomp.c: Update.
59750         * modules/csharpexec (Depends-on): Update.
59751         * lib/csharpexec.c: Update.
59752         * modules/javacomp (Depends-on): Update.
59753         * lib/javacomp.c: Update.
59754         * modules/javaexec (Depends-on): Update.
59755         * lib/javaexec.c: Update.
59756         * modules/mbscasestr (Depends-on): Update.
59757         * lib/mbscasestr.c: Update.
59758         * modules/mbsstr (Depends-on): Update.
59759         * lib/mbsstr.c: Update.
59760         * modules/setenv (Depends-on): Update.
59761         * lib/setenv.c: Update.
59762         * modules/strcasestr (Depends-on): Update.
59763         * lib/strcasestr.c: Update.
59764         * modules/striconveha (Depends-on): Update.
59765         * lib/striconveha.c: Update.
59766         * modules/relocatable-prog-wrapper (Files): Update.
59767         * lib/relocwrapper.c: Update.
59768         * build-aux/install-reloc: Update.
59769         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59770
59771 2007-06-08  Bruno Haible  <bruno@clisp.org>
59772
59773         Port to uClibc.
59774         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59775         * lib/fpurge.c (fpurge): Likewise.
59776         * lib/freading.c (freading): Likewise.
59777         * lib/fseeko.c (rpl_fseeko): Likewise.
59778         * lib/fseterr.c (fseterr): Likewise.
59779         * lib/fwriting.c (fwriting): Likewise.
59780         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59781
59782 2007-06-08  Bruno Haible  <bruno@clisp.org>
59783
59784         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59785         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59786         * modules/gettext (Files): Add m4/intlmacosx.m4.
59787
59788 2007-06-07  Bruno Haible  <bruno@clisp.org>
59789
59790         * modules/localename-tests: New file.
59791         * tests/test-localename.c: New file.
59792
59793         New module 'localename'.
59794         * lib/localename.h: New file.
59795         * lib/localename.c: New file, from GNU gettext.
59796         * m4/localename.m4: New file.
59797         * modules/localename: New file.
59798
59799 2007-06-07  Bruno Haible  <bruno@clisp.org>
59800
59801         Work around the lack of <wchar.h> on some builds of uClibc.
59802         * doc/headers/wchar.texi: Update.
59803         * lib/wchar_.h: Include <wchar.h> only if it exists.
59804         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59805         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59806         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59807         doesn't exist.
59808         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59809         * modules/mbfile (Depends-on): Add wchar.
59810         * modules/mbiter (Depends-on): Likewise.
59811         * modules/mbuiter (Depends-on): Likewise.
59812         Reported by Simon Josefsson.
59813
59814 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59815
59816         Work around problem reported by Steven M. Schweda in
59817         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59818         Tru64 5.1B with the Compaq compiler environment installed declares
59819         an 'isblank' function but does not define it in the C library.
59820         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59821         * lib/regex_internal.h (isblank): Likewise.
59822         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59823         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59824
59825 2007-06-05  Bruno Haible  <bruno@clisp.org>
59826
59827         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59828         ia64.
59829         * modules/printf-safe: New file.
59830         * modules/fprintf-posix (Depends-on): Add printf-safe.
59831         * modules/printf-posix (Depends-on): Likewise.
59832         * modules/snprintf-posix (Depends-on): Likewise.
59833         * modules/sprintf-posix (Depends-on): Likewise.
59834         * modules/vasnprintf-posix (Depends-on): Likewise.
59835         * modules/vasprintf-posix (Depends-on): Likewise.
59836         * modules/vfprintf-posix (Depends-on): Likewise.
59837         * modules/vprintf-posix (Depends-on): Likewise.
59838         * modules/vsnprintf-posix (Depends-on): Likewise.
59839         * modules/vsprintf-posix (Depends-on): Likewise.
59840         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59841         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59842         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59843         "no" on i386, x86_64, ia64.
59844         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59845         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59846         on i386, x86_64, ia64.
59847         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59848         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59849         on i386, x86_64, ia64.
59850         * tests/test-vasnprintf-posix.c: Include float.h.
59851         (LDBL80_WORDS): New macro.
59852         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59853         on i386, x86_64, ia64.
59854         * tests/test-vasprintf-posix.c: Include float.h.
59855         (LDBL80_WORDS): New macro.
59856         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59857         on i386, x86_64, ia64.
59858         * tests/test-snprintf-posix.c: Include float.h.
59859         * tests/test-sprintf-posix.c: Likewise.
59860         * tests/test-vsnprintf-posix.c: Likewise.
59861         * tests/test-vsprintf-posix.c: Likewise.
59862
59863 2007-06-05  Bruno Haible  <bruno@clisp.org>
59864
59865         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59866         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59867         non-IEEE numbers on i386, x86_64, ia64.
59868         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59869         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59870         * tests/test-isnanl.h: Include float.h.
59871         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59872
59873 2007-06-05  Bruno Haible  <bruno@clisp.org>
59874
59875         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59876         also the %a / %A. Handle the %a / %A code before this extra handling.
59877
59878 2007-06-05  Bruno Haible  <bruno@clisp.org>
59879
59880         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59881         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59882
59883 2007-06-05  Bruno Haible  <bruno@clisp.org>
59884
59885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59886         typo in variable name.
59887
59888 2007-06-05  Eric Blake  <ebb9@byu.net>
59889
59890         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59891         Reported by Simon Josefsson.
59892
59893 2007-06-04  Bruno Haible  <bruno@clisp.org>
59894
59895         Avoid test failures on some PowerPC platforms.
59896         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59897         Define differently for PowerPC.
59898         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59899         Reported by Gary V. Vaughan <gary@gnu.org>.
59900
59901 2007-06-02  Bruno Haible  <bruno@clisp.org>
59902
59903         Fix test-stdint failure on FreeBSD/ia64.
59904         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59905         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59906         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59907         * doc/headers/stdint.texi: Update.
59908
59909 2007-06-01  Bruno Haible  <bruno@clisp.org>
59910
59911         * tests/test-binary-io.c (main): Pass a third argument to open().
59912         Reported by Gary V. Vaughan <gary@gnu.org>.
59913
59914 2007-06-01  Bruno Haible  <bruno@clisp.org>
59915
59916         * doc/functions/frexpl.texi: Update for mingw.
59917
59918 2007-06-01  Bruno Haible  <bruno@clisp.org>
59919
59920         * tests/test-lseek.c (main): Disable test of errno for invalid third
59921         argument.
59922         * doc/functions/lseek.texi: Update.
59923         Reported by Gary V. Vaughan <gary@gnu.org>.
59924
59925 2007-05-28  Bruno Haible  <bruno@clisp.org>
59926
59927         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59928
59929 2007-05-31  Eric Blake  <ebb9@byu.net>
59930
59931         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59932         cross compiling.
59933
59934 2007-05-30  Eric Blake  <ebb9@byu.net>
59935         and Bruno Haible  <bruno@clisp.org>
59936
59937         Work around mingw test failures exposed by m4-1.4.9b.
59938         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59939         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59940         moment.
59941
59942 2007-05-30  Bruno Haible  <bruno@clisp.org>
59943
59944         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59945         assuming that they are closed. Needed on HP-UX 11.
59946
59947 2007-05-29  Bruno Haible  <bruno@clisp.org>
59948
59949         Fix a problem with #include_next.
59950         * lib/dirent_.h: Split the double-inclusion guard.
59951         * lib/fcntl_.h: Likewise.
59952         * lib/float_.h: Likewise.
59953         * lib/iconv_.h: Likewise.
59954         * lib/inttypes_.h: Likewise.
59955         * lib/locale_.h: Likewise.
59956         * lib/math_.h: Likewise.
59957         * lib/netinet_in_.h: Likewise.
59958         * lib/search_.h: Likewise.
59959         * lib/signal_.h: Likewise.
59960         * lib/stdint_.h: Likewise.
59961         * lib/stdio_.h: Likewise.
59962         * lib/stdlib_.h: Likewise.
59963         * lib/string_.h: Likewise.
59964         * lib/sys_select_.h: Likewise.
59965         * lib/sys_socket_.h: Likewise.
59966         * lib/sys_stat_.h: Likewise.
59967         * lib/sys_time_.h: Likewise.
59968         * lib/sysexits_.h: Likewise.
59969         * lib/time_.h: Likewise.
59970         * lib/unistd_.h: Likewise.
59971         * lib/wchar_.h: Likewise.
59972         * lib/wctype_.h: Likewise.
59973
59974 2007-05-29  Bruno Haible  <bruno@clisp.org>
59975
59976         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59977         for the moment.
59978
59979 2007-05-29  Bruno Haible  <bruno@clisp.org>
59980
59981         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59982         invocation.
59983         Reported by Eric Blake.
59984
59985 2007-05-29  Bruno Haible  <bruno@clisp.org>
59986
59987         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59988         compiling case.
59989
59990 2007-05-29  Eric Blake  <ebb9@byu.net>
59991             Bruno Haible  <bruno@clisp.org>
59992
59993         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59994         cross compiles.
59995
59996 2007-05-28  Eric Blake  <ebb9@byu.net>
59997
59998         * modules/closein-tests (test_closein_LDADD): Support test on
59999         cygwin with libtool.
60000
60001 2007-05-28  Bruno Haible  <bruno@clisp.org>
60002
60003         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60004         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60005         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60006         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60007         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60008         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60009         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60010         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60011         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60012
60013 2007-05-28  Eric Blake  <ebb9@byu.net>
60014
60015         Unconditionally include <config.h> in unit tests.
60016         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60017         * tests/test-allocsa.c, tests/test-arcfour.c,
60018         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60019         tests/test-array_list.c, tests/test-array_oset.c,
60020         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60021         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60022         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60023         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60024         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60025         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60026         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60027         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60028         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60029         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60030         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60031         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60032         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60033         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60034         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60035         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60036         test-md5.c, test-memmem.c, test-printf-posix.c,
60037         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60038         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60039         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60040         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60041         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60042         test-vasnprintf-posix2.c, test-vasnprintf.c,
60043         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60044         test-vfprintf-posix.c, test-vprintf-posix.c,
60045         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60046         test-xvasprintf.c: Likewise.
60047
60048 2007-05-28  Bruno Haible  <bruno@clisp.org>
60049
60050         * gnulib-tool (func_import): Remember the --with-tests command-line
60051         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60052         Reported by Eric Blake.
60053
60054 2007-05-28  Bruno Haible  <bruno@clisp.org>
60055
60056         * modules/ftell-tests: New file.
60057         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60058         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60059
60060         * lib/ftell.c: New file.
60061         * modules/ftell: New file.
60062         * m4/ftell.m4: New file.
60063         * doc/functions/ftell.texi: Update.
60064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60065         REPLACE_FTELL.
60066         * lib/stdio_.h (rpl_ftell): New declaration.
60067         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60068         REPLACE_FTELL.
60069
60070 2007-05-28  Eric Blake  <ebb9@byu.net>
60071
60072         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60073
60074 2007-05-28  Bruno Haible  <bruno@clisp.org>
60075
60076         * modules/fseek-tests: New file.
60077         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60078         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60079
60080         * lib/fseek.c: New file.
60081         * modules/fseek: New file.
60082         * m4/fseek.m4: New file.
60083         * doc/functions/fseek.texi: Update.
60084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60085         REPLACE_FSEEK.
60086         * lib/stdio_.h (rpl_fseek): New declaration.
60087         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60088         REPLACE_FSEEK.
60089
60090 2007-05-28  Bruno Haible  <bruno@clisp.org>
60091
60092         * lib/stdio_.h (fflush): More comments.
60093
60094 2007-05-28  Bruno Haible  <bruno@clisp.org>
60095
60096         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60097         runtime test.
60098
60099 2007-05-28  Eric Blake  <ebb9@byu.net>
60100
60101         Improve lseek module.
60102         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60103         * lib/unistd_.h (lseek): Scale back link warning message.
60104         * tests/test-lseek.c: Beef up test.
60105         * tests/test-lseek.sh: Exercise more facets of lseek.
60106         Reported by Bruno Haible.
60107
60108 2007-05-28  Bruno Haible  <bruno@clisp.org>
60109
60110         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60111         to define.
60112
60113 2007-05-27  Bruno Haible  <bruno@clisp.org>
60114
60115         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60116
60117 2007-05-27  Bruno Haible  <bruno@clisp.org>
60118
60119         * modules/openmp: New file.
60120         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60121         Noah Misch.
60122
60123 2007-05-26  Bruno Haible  <bruno@clisp.org>
60124
60125         * modules/chdir-long (Depends-on): Add fchdir.
60126         * modules/chdir-safer (Depends-on): Likewise.
60127         * modules/fts (Depends-on): Likewise.
60128         * modules/fts-lgpl (Depends-on): Likewise.
60129         * modules/openat (Depends-on): Likewise.
60130         * modules/savewd (Depends-on): Likewise.
60131
60132 2007-05-24  Eric Blake  <ebb9@byu.net>
60133
60134         Fix lseek on mingw.
60135         * modules/lseek: New module.
60136         * m4/lseek.m4: New file.
60137         * lib/lseek.c: New file.
60138         * modules/lseek-tests: New file.
60139         * tests/test-lseek.c: New file.
60140         * tests/test-lseek.sh: New file.
60141         * MODULES.html.sh: Document lseek module.
60142         * modules/fflush (Depends-on): Add lseek, fseeko.
60143         * modules/fseeko (Depends-on): Likewise.
60144         * modules/ftello (Depends-on): Likewise.
60145         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60146         broken.
60147         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60148         broken.
60149         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60150         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60151         * lib/ftello.c (rpl_ftello): Likewise.
60152         * tests/test-fseeko.c (main): Test this.
60153         * tests/test-fseeko.sh: Likewise.
60154         * tests/test-ftello.c (main): Likewise.
60155         * tests/test-ftello.sh: Likewise.
60156         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60157         implies replacing fseek.
60158         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60159         HAVE_FTELLO.
60160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60161         * modules/unistd (Makefile.am): Likewise.
60162         * lib/unistd_.h (lseek): Declare a replacement.
60163         * doc/functions/lseek.texi (lseek): Document this fix.
60164         * doc/functions/fseek.texi (fseek): Likewise.
60165         * doc/functions/ftell.texi (ftell): Likewise.
60166
60167 2007-05-24  Bruno Haible  <bruno@clisp.org>
60168
60169         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60170         in the printed representation of a NaN.
60171         * tests/test-vasprintf-posix.c (test_function): Likewise.
60172         * tests/test-snprintf-posix.h (test_function): Likewise.
60173         * tests/test-sprintf-posix.h (test_function): Likewise.
60174         Reported by Eric Blake.
60175
60176 2007-05-23  Eric Blake  <ebb9@byu.net>
60177
60178         Fix fseeko/ftello on cygwin 1.5.24.
60179         * doc/functions/fseeko.texi (fseeko): Document the fix.
60180         * doc/functions/ftello.texi (ftello): Document the fix.
60181         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60182         * doc/functions/stdout.text (stdout): New file.
60183         * doc/functions/stderr.text (stderr): New file.
60184         * doc/gnulib.texi (Function Substitutes): Use new files.
60185         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60186         prior to 1.7.0.
60187         * tests/test-ftello.c (main): Likewise for ftello.
60188         * tests/test-fseeko.sh: New file.
60189         * tests/test-ftello.sh: New file.
60190         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60191         with seekable stdin.
60192         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60193         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60194         (gl_REPLACE_FSEEKO): New macro.
60195         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60196         * modules/fseeko (Files): Distribute fseeko.c.
60197         * modules/ftello (Files): Distribute ftello.c.
60198         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60199         mode.
60200         * lib/ftello.c (rpl_ftello): New file.
60201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60202         fseeko, ftello.
60203         (gl_STDIN_LARGE_OFFSET): New macro.
60204         * modules/stdio (Makefile.am): Perform the replacement.
60205         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60206
60207 2007-05-23  Bruno Haible  <bruno@clisp.org>
60208
60209         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60210         GNULIB_POSIXCHECK is defined.
60211
60212 2007-05-21  Bruno Haible  <bruno@clisp.org>
60213
60214         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60215         Check also the output for NaN arguments. When cross-compiling, guess
60216         no on IRIX.
60217         * lib/vasnprintf.c: Update comments.
60218         * tests/test-vasnprintf-posix.c (strisnan): New function.
60219         (test_function): Use it.
60220         * tests/test-vasprintf-posix.c (strisnan): New function.
60221         (test_function): Use it.
60222         * tests/test-snprintf-posix.h (strisnan): New function.
60223         (test_function): Use it.
60224         * tests/test-sprintf-posix.h (strisnan): New function.
60225         (test_function): Use it.
60226         Reported by Eric Blake.
60227
60228 2007-05-20  Bruno Haible  <bruno@clisp.org>
60229
60230         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60231         numbers that fails on BeOS.
60232         * doc/functions/frexpl.texi: Update.
60233
60234 2007-05-20  Jim Meyering  <jim@meyering.net>
60235
60236         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60237         forced upon us by glibc-2.6.
60238
60239 2007-05-20  Bruno Haible  <bruno@clisp.org>
60240
60241         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60242         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60243         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60244         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60245         NEED_PRINTF_INFINITE.
60246         (is_infinitel): New function.
60247         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60248         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60249         gl_PREREQ_VASNPRINTF_INFINITE.
60250         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60251         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60252         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60253         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60254         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60255         gl_PREREQ_VASNPRINTF_INFINITE.
60256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60258         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60259         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60260         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60262         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60263         * doc/functions/fprintf.texi: Update.
60264         * doc/functions/printf.texi: Update.
60265         * doc/functions/snprintf.texi: Update.
60266         * doc/functions/sprintf.texi: Update.
60267         * doc/functions/vfprintf.texi: Update.
60268         * doc/functions/vprintf.texi: Update.
60269         * doc/functions/vsnprintf.texi: Update.
60270         * doc/functions/vsprintf.texi: Update.
60271
60272 2007-05-20  Bruno Haible  <bruno@clisp.org>
60273
60274         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60275         was not found in libc.
60276         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60277
60278 2007-05-20  Bruno Haible  <bruno@clisp.org>
60279
60280         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60281         printed as "-nan" instead of "nan".
60282         * tests/test-vasprintf-posix.c (test_function): Likewise.
60283         * tests/test-snprintf-posix.h (test_function): Likewise.
60284         * tests/test-sprintf-posix.h (test_function): Likewise.
60285         Needed for HP-UX 11.
60286
60287 2007-05-20  Jim Meyering  <jim@meyering.net>
60288
60289         Fix buggy test for the fchownat-deref bug.
60290         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60291         symlink required for the run-test.  Without it, this test would
60292         always declare that fchownat doesn't work, and client code would
60293         unnecessarily use the replacement function with fixed libc.
60294         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60295         Reported by Greg Schafer.
60296
60297 2007-05-19  Bruno Haible  <bruno@clisp.org>
60298
60299         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60300         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60301         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60302         Needed for IRIX 6.5 and Solaris 2.5.1.
60303
60304 2007-05-19  Bruno Haible  <bruno@clisp.org>
60305
60306         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60307         (test_function): Skip tests involving -0.0 on platforms where
60308         -0.0 = 0.0.
60309         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60310         (test_function): Skip tests involving -0.0 on platforms where
60311         -0.0 = 0.0.
60312         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60313         (test_function): Skip tests involving -0.0 on platforms where
60314         -0.0 = 0.0.
60315         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60316         (test_function): Skip tests involving -0.0 on platforms where
60317         -0.0 = 0.0.
60318         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60319         tests.
60320         * tests/test-printf-posix.h (test_function): Likewise.
60321         * tests/test-printf-posix.output: Remove all -0.0 related results.
60322         Needed for IRIX 6.5.
60323
60324 2007-05-19  Bruno Haible  <bruno@clisp.org>
60325
60326         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60327         printed as "nan0x7fffffff" instead of "nan".
60328         * tests/test-vasprintf-posix.c (test_function): Likewise.
60329         * tests/test-snprintf-posix.h (test_function): Likewise.
60330         * tests/test-sprintf-posix.h (test_function): Likewise.
60331         * tests/test-fprintf-posix.h (NaN): Remove macro.
60332         (test_function): Remove all NaN related tests.
60333         * tests/test-printf-posix.h (NaN): Remove macro.
60334         (test_function): Remove all NaN related tests.
60335         * tests/test-printf-posix.output: Remove all NaN related results.
60336         Needed for IRIX 6.5.
60337
60338 2007-05-19  Bruno Haible  <bruno@clisp.org>
60339
60340         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60341         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60342
60343 2007-05-19  Bruno Haible  <bruno@clisp.org>
60344
60345         * lib/float_.h: New file.
60346         * m4/float_h.m4: New file.
60347         * modules/float: New file.
60348         * modules/isnanl (Dependencies): Add float.
60349         * modules/isnanl-nolibm (Dependencies): Likewise.
60350         * modules/mathl (Dependencies): Likewise.
60351         * modules/printf-frexpl (Dependencies): Likewise.
60352         * modules/signbit (Dependencies): Likewise.
60353         * modules/vasnprintf (Dependencies): Likewise.
60354         * doc/headers/float.texi: Update.
60355
60356 2007-05-19  Jim Meyering  <jim@meyering.net>
60357
60358         * lib/utimens.c (gl_futimens): Rename from futimens,
60359         now that glibc-2.6 declares futimens.
60360         * lib/utimens.h: Likewise.
60361
60362 2007-05-19  Bruno Haible  <bruno@clisp.org>
60363
60364         Avoid test failures on mingw.
60365         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60366         * tests/test-printf-posix.sh: Likewise.
60367         * tests/test-vfprintf-posix.sh: Likewise.
60368         * tests/test-vprintf-posix.sh: Likewise.
60369
60370 2007-05-19  Bruno Haible  <bruno@clisp.org>
60371
60372         Fix *printf result for NaN, Inf, -0.0 on mingw.
60373         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60374         * lib/vasnprintf.c: Include math.h and isnan.h.
60375         (is_infinite_or_zero): New function.
60376         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60377         values in the %f, %F, %e, %E, %g, %G directives.
60378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60379         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60380         gl_PRINTF_INFINITE and test its result. Invoke
60381         gl_PREREQ_VASNPRINTF_INFINITE.
60382         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60383         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60384         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60385         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60386         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60387         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60388         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60389         * doc/functions/fprintf.texi: Update.
60390         * doc/functions/printf.texi: Update.
60391         * doc/functions/snprintf.texi: Update.
60392         * doc/functions/sprintf.texi: Update.
60393         * doc/functions/vfprintf.texi: Update.
60394         * doc/functions/vprintf.texi: Update.
60395         * doc/functions/vsnprintf.texi: Update.
60396         * doc/functions/vsprintf.texi: Update.
60397
60398 2007-05-19  Bruno Haible  <bruno@clisp.org>
60399
60400         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60401         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60402         Instead of multiplying with 10^k, set extra_zeroes to k.
60403         (scale10_round_long_double): Remove function.
60404
60405 2007-05-18  Bruno Haible  <bruno@clisp.org>
60406
60407         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60408         introduced on 2007-05-06.
60409
60410 2007-05-18  Bruno Haible  <bruno@clisp.org>
60411
60412         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60413         %g directives.
60414         * tests/test-vasprintf-posix.c (test_function): Likewise.
60415         * tests/test-snprintf-posix.h (test_function): Likewise.
60416         * tests/test-sprintf-posix.h (test_function): Likewise.
60417
60418 2007-05-18  Bruno Haible  <bruno@clisp.org>
60419
60420         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60421         (strmatch): New function.
60422         (test_function): Test the %f directive on numbers of various exponents.
60423         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60424         (strmatch): New function.
60425         (test_function): Test the %f directive on numbers of various exponents.
60426         * tests/test-snprintf-posix.h (strmatch): New function.
60427         (test_function): Test the %f directive on numbers of various exponents.
60428         * tests/test-sprintf-posix.h (strmatch): New function.
60429         (test_function): Test the %f directive on numbers of various exponents.
60430         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60431         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60432         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60433         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60434
60435 2007-05-18  Bruno Haible  <bruno@clisp.org>
60436
60437         Add support for 'long double' number output.
60438         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60439         * lib/vasnprintf.c: Include math.h and float+.h.
60440         (mp_limb_t): New type.
60441         (GMP_LIMB_BITS): New macro.
60442         (mp_twolimb_t): New type.
60443         (GMP_TWOLIMB_BITS): New macro.
60444         (mpn_t): New type.
60445         (multiply, divide, convert_to_decimal, decode_long_double,
60446         scale10_round_long_double, scale10_round_decimal_long_double,
60447         floorlog10l): New functions.
60448         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60449         for the %f, %F, %e, %E, %g, %G directives.
60450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60451         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60452         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60453         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60454         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60455         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60456         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60457         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60458         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60459         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60460         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60461         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60462         * modules/snprintf-posix (Depends-on): Likewise.
60463         * modules/sprintf-posix (Depends-on): Likewise.
60464         * modules/vasnprintf-posix (Depends-on): Likewise.
60465         * modules/vasprintf-posix (Depends-on): Likewise.
60466         * modules/vfprintf-posix (Depends-on): Likewise.
60467         * modules/vsnprintf-posix (Depends-on): Likewise.
60468         * modules/vsprintf-posix (Depends-on): Likewise.
60469         * modules/vasnprintf (Files): Add lib/float+.h.
60470         * doc/functions/fprintf.texi: Update.
60471         * doc/functions/printf.texi: Update.
60472         * doc/functions/snprintf.texi: Update.
60473         * doc/functions/sprintf.texi: Update.
60474         * doc/functions/vfprintf.texi: Update.
60475         * doc/functions/vprintf.texi: Update.
60476         * doc/functions/vsnprintf.texi: Update.
60477         * doc/functions/vsprintf.texi: Update.
60478
60479 2007-05-18  Bruno Haible  <bruno@clisp.org>
60480
60481         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60482
60483 2007-05-18  Bruno Haible  <bruno@clisp.org>
60484
60485         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60486         for printing 64-bit integers. Needed for mingw.
60487
60488 2007-05-18  Bruno Haible  <bruno@clisp.org>
60489
60490         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60491         gl_FUNC_FREXPL_WORKS.
60492         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60493
60494 2007-05-18  Bruno Haible  <bruno@clisp.org>
60495
60496         * modules/frexpl-nolibm-tests: New file.
60497
60498         * modules/frexpl-nolibm: New file.
60499         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60500
60501 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60502
60503         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60504         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60505         GCC 4.2, which otherwise issues a lot of warnings.
60506         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60507         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60508         Likewise.
60509         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60510         * modules/iconv_open (iconv.h): Likewise.
60511         * modules/locale (locale.h): Likewise.
60512         * modules/netinet_in (netinet/in.h): Likewise.
60513         * modules/sys_select (sys_select.h): Likewise.
60514         * modules/sys_socket (sys/socket.h): Likewise.
60515         * modules/sys_stat (sys/stat.h): Likewise.
60516         * modules/sysexits (sysexits.h): Likewise.
60517         * modules/unistd (unistd.h): Likewise.
60518
60519 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60520
60521         * modules/closein-tests (Makefile.am): Distribute
60522         `test-closein.sh'.
60523
60524 2007-05-17  Bruno Haible  <bruno@clisp.org>
60525
60526         * tests/test-printf-posix.output: Renamed from
60527         tests/test-fprintf-posix.out.
60528         * modules/fprintf-posix-tests: Update.
60529         * modules/printf-posix-tests: Update.
60530         * modules/vfprintf-posix-tests: Update.
60531         * modules/vprintf-posix-tests: Update.
60532         * tests/test-fprintf-posix.sh: Update.
60533         * tests/test-printf-posix.sh: Update.
60534         * tests/test-vfprintf-posix.sh: Update.
60535         * tests/test-vprintf-posix.sh: Update.
60536         Reported by Ralf Wildenhues.
60537
60538 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60539
60540         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60541         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60542         GCC 4.2, which otherwise issues a lot of warnings.
60543         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60544         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60545         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60546         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60547         it should no longer be needed.
60548         * lib/string_.h: Likewise.
60549         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60550         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60551         * modules/inttypes (inttypes.h): Likewise.
60552         * modules/math (math.h): Likewise.
60553         * modules/search (search.h): Likewise.
60554         * modules/signal (signal.h): Likewise.
60555         * modules/stdint (stdint.h): Likewise.
60556         * modules/stdio (stdio.h): Likewise.
60557         * modules/stdlib (stdlib.h): Likewise.
60558         * modules/string (string.h): Likewise.
60559         * modules/sys_time (sys/time.h): Likewise.
60560         * modules/time (time.h): Likewise.
60561         * modules/wchar (wchar.h): Likewise.
60562         * modules/wctype (wtype.h): Likewise.
60563
60564 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60565
60566         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60567
60568 2007-05-13  Bruno Haible  <bruno@clisp.org>
60569
60570         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60571         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60572         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60573         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60574         (gl_PREREQ_STRTOK_R): Don't require it here.
60575
60576 2007-05-13  Bruno Haible  <bruno@clisp.org>
60577
60578         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60579         when used in C++ mode.
60580
60581 2007-05-12  Bruno Haible  <bruno@clisp.org>
60582
60583         * lib/linebuffer.h: Tweak doc.
60584         * lib/linebuffer.c: Likewise.
60585
60586 2007-05-12  James Youngman  <jay@gnu.org>
60587
60588         * lib/linebuffer.c (readlinebuffer_delim): New function,
60589         like readlinebuffer, but use a caller-specified delimiter.
60590         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60591         as the delimiter.
60592         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60593
60594 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60595
60596         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60597         * modules/openat (Files): Remove openat-die.c.
60598         (Depends-on): Add openat-die.
60599         * modules/openat-die: New module.
60600
60601 2007-05-06  Bruno Haible  <bruno@clisp.org>
60602
60603         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60604         Update with info about Cygwin.
60605         * doc/functions/fprintf.texi: Update.
60606         * doc/functions/printf.texi: Update.
60607         * doc/functions/snprintf.texi: Update.
60608         * doc/functions/sprintf.texi: Update.
60609         * doc/functions/vfprintf.texi: Update.
60610         * doc/functions/vprintf.texi: Update.
60611         * doc/functions/vsnprintf.texi: Update.
60612         * doc/functions/vsprintf.texi: Update.
60613         Reported by Eric Blake.
60614
60615 2007-05-06  Bruno Haible  <bruno@clisp.org>
60616
60617         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60618         padding ourselves for the floating-point directives.
60619         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60620         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60621         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60622         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60623         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60624         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60625         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60626         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60627         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60628         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60629         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60630         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60631         * tests/test-snprintf-posix.h (test_function): Also check the width
60632         and some flags in the %f directive.
60633         * tests/test-sprintf-posix.h (test_function): Likewise.
60634         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60635         * tests/test-vasprintf-posix.c (test_function): Likewise.
60636         * doc/functions/fprintf.texi: Update.
60637         * doc/functions/printf.texi: Update.
60638         * doc/functions/snprintf.texi: Update.
60639         * doc/functions/sprintf.texi: Update.
60640         * doc/functions/vfprintf.texi: Update.
60641         * doc/functions/vprintf.texi: Update.
60642         * doc/functions/vsnprintf.texi: Update.
60643         * doc/functions/vsprintf.texi: Update.
60644
60645 2007-05-06  Bruno Haible  <bruno@clisp.org>
60646
60647         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60648         pass the ' flag character to sprintf or snprintf.
60649         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60651         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60652         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60653         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60654         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60655         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60656         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60657         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60658         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60659         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60660         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60661         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60662         flag.
60663         * tests/test-sprintf-posix.h (test_function): Likewise.
60664         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60665         * tests/test-vasprintf-posix.c (test_function): Likewise.
60666         * doc/functions/fprintf.texi: Update.
60667         * doc/functions/printf.texi: Update.
60668         * doc/functions/snprintf.texi: Update.
60669         * doc/functions/sprintf.texi: Update.
60670         * doc/functions/vfprintf.texi: Update.
60671         * doc/functions/vprintf.texi: Update.
60672         * doc/functions/vsnprintf.texi: Update.
60673         * doc/functions/vsprintf.texi: Update.
60674
60675 2007-05-01  Bruno Haible  <bruno@clisp.org>
60676
60677         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60678
60679 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60680
60681         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60682         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60683
60684 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60685
60686         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60687         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60688         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60689
60690 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60691
60692         * lib/argp-help.c (struct hol_entry): New member `ord'.
60693         (HOL_ENTRY_PTRCMP): Use ord for comparison
60694         (hol_sort): Initialize ord.
60695
60696 2007-05-01  Bruno Haible  <bruno@clisp.org>
60697
60698         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60699         Reported by Eric Blake.
60700         * doc/gnulib.texi (Function Substitutes): Update.
60701
60702 2007-05-01  Bruno Haible  <bruno@clisp.org>
60703
60704         * doc/functions.texi: Remove file, now redundant through
60705         doc/functions/*.texi.
60706
60707 2007-05-01  Bruno Haible  <bruno@clisp.org>
60708
60709         * modules/argp (Depends-on): Add sleep.
60710
60711 2007-05-01  Bruno Haible  <bruno@clisp.org>
60712
60713         * modules/sleep-tests: New file.
60714         * tests/test-sleep.c: New file.
60715
60716         * modules/sleep: New file.
60717         * lib/sleep.c: New file.
60718         * m4/sleep.m4: New file.
60719         * lib/unistd_.h (sleep): New declaration.
60720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60721         HAVE_SLEEP.
60722         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60723         * doc/functions/sleep.texi: Document the sleep module.
60724
60725 2007-05-01  Bruno Haible  <bruno@clisp.org>
60726
60727         * lib/sigprocmask.h: Remove file.
60728         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60729         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60730         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60731         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60732         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60733         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60734         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60735         HAVE_SIGSET_T as a shell variable.
60736         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60737         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60738         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60739         (Depends-on): Add signal. Remove verify.
60740         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60741         (Include): Mention <signal.h> instead of sigprocmask.h.
60742         * NEWS: Mention the change.
60743         * lib/fatal-signal.c: Don't include sigprocmask.h.
60744
60745 2007-05-01  Bruno Haible  <bruno@clisp.org>
60746
60747         * modules/signal: New file.
60748         * lib/signal_.h: New file.
60749         * m4/signal_h.m4: New file.
60750
60751 2007-05-01  Bruno Haible  <bruno@clisp.org>
60752
60753         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60754         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60755         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60756         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60757
60758 2007-05-01  Bruno Haible  <bruno@clisp.org>
60759
60760         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60761         configure time.
60762         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60763         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60764         * modules/sys_stat (Makefile.am): Substitute their values into
60765         sys/stat.h.
60766
60767 2007-05-01  Bruno Haible  <bruno@clisp.org>
60768
60769         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60770         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60771         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60772
60773 2007-05-01  Bruno Haible  <bruno@clisp.org>
60774
60775         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60776         'assert' module here.
60777
60778 2007-05-01  Bruno Haible  <bruno@clisp.org>
60779
60780         * doc/functions/*.texi: New files.
60781         * doc/functions/google-ranking.txt: New file.
60782         * doc/gnulib.texi (Function Substitutes): New chapter.
60783         (ctime, inet_ntoa): Remove sections.
60784         * doc/ctime.texi: Remove file.
60785         * doc/inet_ntoa.texi: Remove file.
60786         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60787         dependencies.
60788         (%.info): New rule, specifying a --reference-limit.
60789
60790 2007-05-01  Bruno Haible  <bruno@clisp.org>
60791
60792         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60793
60794 2007-05-01  Bruno Haible  <bruno@clisp.org>
60795
60796         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60797         the portability of 'mkdir' to mingw systems.
60798
60799 2007-05-01  Bruno Haible  <bruno@clisp.org>
60800
60801         * doc/headers/google-ranking.txt: New file.
60802
60803 2007-04-30  Eric Blake  <ebb9@byu.net>
60804
60805         Prefer fseeko to fseek.
60806         * modules/getpass (Depends-on): Add fseeko.
60807         * lib/getpass.c (getpass): Use fseeko, not fseek.
60808
60809 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60810
60811         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60812         assumes the sorting is stable, while most qsort implementations
60813         are not.  Use argument addresses to ensure they never compare as
60814         equal.
60815
60816         * tests/test-argp-2.sh (usage-indent test): Fix output
60817         (func_compare): Restore diff options
60818         * tests/test-argp.c: Restore #include "progname.h"
60819
60820 2007-04-29  Bruno Haible  <bruno@clisp.org>
60821
60822         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60824         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60825         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60826         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60827         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60828         (TESTS, check_PROGRAMS): Add test-snprintf.
60829         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60830         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60831         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60832         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60833         assertions that fail on HP-UX, OSF/1, or IRIX.
60834         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60835
60836 2007-04-29  Bruno Haible  <bruno@clisp.org>
60837
60838         * MODULES.html.sh (posix_functions): Remove 'contents'.
60839
60840 2007-04-29  Karl Berry  <karl@gnu.org>
60841
60842         * config/srclist.txt (gendocs_template_min): new entry.
60843
60844 2007-04-29  Bruno Haible  <bruno@clisp.org>
60845
60846         Work around fpurge bug on BSD systems.
60847         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60848         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60849         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60850         fpurge to rpl_fpurge if the system already has this function.
60851         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60852         the case where the system already has this function. Correct invariants
60853         on BSD systems.
60854         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60855         BSD systems.
60856
60857 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60858
60859         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60860         proposed by Sven Verdoolaege.
60861
60862         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60863         options.
60864         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60865         (usage and help tests): Update
60866
60867 2007-04-29  Bruno Haible  <bruno@clisp.org>
60868
60869         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60870         Print more information in case of failure. Disable a test on BeOS.
60871
60872 2007-04-29  Bruno Haible  <bruno@clisp.org>
60873
60874         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60875         This helps debugging on systems on which no gdb is available.
60876
60877 2007-04-29  Bruno Haible  <bruno@clisp.org>
60878
60879         * lib/freading.h: Improve comments.
60880         * lib/fwriting.h: Likewise.
60881         * tests/test-freading.c (main): Don't check freading immediately after
60882         repositioning. Needed for glibc.
60883
60884 2007-04-29  Bruno Haible  <bruno@clisp.org>
60885
60886         * lib/freading.c (freading): Trivial simplification.
60887
60888 2007-04-28  Bruno Haible  <bruno@clisp.org>
60889
60890         * tests/test-fwriting.c (main): Also test the interaction between
60891         fflush and fwriting.
60892         * modules/fwriting-tests (Depends-on): Add fflush.
60893
60894         * tests/test-freading.c (main): Also test the interaction between
60895         fflush and freading.
60896         * modules/freading-tests (Depends-on): Add fflush.
60897
60898 2007-04-28  Bruno Haible  <bruno@clisp.org>
60899
60900         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60901         fseeko and ftello.
60902         Suggested by Eric Blake.
60903
60904 2007-04-28  Jim Meyering  <jim@meyering.net>
60905
60906         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60907         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60908         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60909
60910 2007-04-27  Eric Blake  <ebb9@byu.net>
60911
60912         * doc/headers/assert.texi (assert.h): Document assert module use.
60913
60914 2007-04-27  Bruno Haible  <bruno@clisp.org>
60915
60916         * doc/headers/*.texi: New files.
60917         * doc/gnulib.texi (Header File Substitutes): New chapter.
60918         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60919         dependencies.
60920         (standards.info ,standards.html, standards.dvi): Update dependencies.
60921         (mostlyclean, clean): New targets.
60922
60923 2007-04-27  Bruno Haible  <bruno@clisp.org>
60924
60925         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60926         * modules/sysexits (Files, Makefile.am): Update.
60927
60928         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60929         * modules/sys_socket (Files, Makefile.am): Update.
60930
60931         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60932         * modules/sys_stat (Files, Makefile.am): Update.
60933
60934 2007-04-27  Eric Blake  <ebb9@byu.net>
60935
60936         * lib/freading.h: Improve comments.
60937         * lib/fwriting.h: Likewise.
60938         * lib/fflush.c: Likewise.
60939
60940         Fix closein for mingw.
60941         * modules/closein-tests: Add tests for closein.
60942         * tests/test-closein.c: New file.
60943         * tests/test-closein.sh: Likewise.
60944         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60945         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60946
60947 2007-04-27  Bruno Haible  <bruno@clisp.org>
60948
60949         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60950         version is < 6.
60951         * lib/math_.h [__DECC]: Likewise.
60952         * lib/stdio_.h [__DECC]: Likewise.
60953         * lib/stdlib_.h [__DECC]: Likewise.
60954         * lib/string_.h [__DECC]: Likewise.
60955         * lib/time_.h [__DECC]: Likewise.
60956         * lib/wchar_.h [__DECC]: Likewise.
60957         * lib/wctype_.h [__DECC]: Likewise.
60958
60959 2007-04-27  Bruno Haible  <bruno@clisp.org>
60960
60961         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60962
60963 2007-04-27  Bruno Haible  <bruno@clisp.org>
60964
60965         * lib/fflush.c: Add comments.
60966         * modules/fpurge-tests (Depends-on): Add fflush.
60967         * modules/freadable-tests (Depends-on): Likewise.
60968         * modules/fwritable-tests (Depends-on): Likewise.
60969
60970 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60971
60972         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60973         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60974         Report by Bruno Haible <bruno@clisp.org>.
60975
60976 2007-04-26  Eric Blake  <ebb9@byu.net>
60977
60978         Fix fflush on mingw.
60979         * modules/fflush (Depends-on): Add freading.
60980         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60981         but unread data.
60982
60983 2007-04-26  Eric Blake  <ebb9@byu.net>
60984         and Bruno Haible  <bruno@clisp.org>
60985
60986         Implement freading and fwriting.
60987         * lib/freading.c: New file.
60988         * lib/freading.h: Likewise.
60989         * m4/freading.m4: Likewise.
60990         * modules/freading: Likewise.
60991         * modules/freading-tests: Likewise.
60992         * tests/test-freading.c: Likewise.
60993         * lib/fwriting.c: New file.
60994         * lib/fwriting.h: Likewise.
60995         * m4/fwriting.m4: Likewise.
60996         * modules/fwriting: Likewise.
60997         * modules/fwriting-tests: Likewise.
60998         * tests/test-fwriting.c: Likewise.
60999         * MODULES.html.sh (File stream based Input/Output): Mention them.
61000
61001 2007-04-26  Bruno Haible  <bruno@clisp.org>
61002
61003         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61004         'long' when we assume it.
61005         Suggested by Eric Blake.
61006
61007 2007-04-26  Bruno Haible  <bruno@clisp.org>
61008
61009         Ensure fseeko, ftello are declared on glibc systems.
61010         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61011         * modules/fseeko (configure.ac-early): Likewise.
61012         * modules/ftello (configure.ac-early): Likewise.
61013         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61014         AC_FUNC_FSEEKO for this.
61015         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61016         (gl_CHECK_FSEEKO): Remove macro.
61017
61018 2007-04-26  Bruno Haible  <bruno@clisp.org>
61019
61020         * tests/test-fflush.c (main): Also check the ftell result after
61021         fflush and fseek/fseeko.
61022         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61023         file descriptor position cache in the stream.
61024         * lib/fseeko.c (rpl_fseeko): Likewise.
61025
61026 2007-04-26  Bruno Haible  <bruno@clisp.org>
61027
61028         * modules/fflush-tests (Depends-on): Add fseeko.
61029
61030 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61031             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61032
61033         * lib/argz_.h: ensure error_t definition is obtained in same
61034         mechanism system argz.h would have.
61035         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61036         argz facilities are known bad.  Err on the side of caution if
61037         cross-compiling.
61038
61039 2007-04-25  Eric Blake  <ebb9@byu.net>
61040
61041         * lib/fpurge.c (includes): Use stdlib.h for free.
61042         * tests/test-fflush.c (main): Also test fflush-fseeko.
61043
61044 2007-04-25  Bruno Haible  <bruno@clisp.org>
61045
61046         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61047         * lib/fseeko.c: New file.
61048         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61049         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61050         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61051         gl_FUNC_FSEEKO.
61052         (gl_FUNC_FSEEKO): Invoke it.
61053         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61054         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61055         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61056
61057 2007-04-25  Bruno Haible  <bruno@clisp.org>
61058
61059         * modules/fflush (Depends-on): Add ftello.
61060
61061 2007-04-25  Bruno Haible  <bruno@clisp.org>
61062
61063         * modules/ftello-tests: New file.
61064         * tests/test-ftello.c: New file.
61065
61066         * modules/ftello: New file.
61067         * m4/ftello.m4: New file.
61068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61069         HAVE_FTELLO.
61070         * lib/stdio_.h (ftello): New declaration.
61071         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61072         HAVE_FTELLO.
61073
61074 2007-04-25  Bruno Haible  <bruno@clisp.org>
61075
61076         * modules/fseeko-tests: New file.
61077         * tests/test-fseeko.c: New file.
61078
61079         * modules/fseeko: New file.
61080         * m4/fseeko.m4: New file.
61081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61082         HAVE_FSEEKO.
61083         * lib/stdio_.h (fseeko): New declaration.
61084         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61085         HAVE_FSEEKO.
61086
61087 2007-04-25  Bruno Haible  <bruno@clisp.org>
61088
61089         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61090
61091 2007-04-25  Bruno Haible  <bruno@clisp.org>
61092
61093         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61094         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61095         * tests/test-unistd.c: Likewise.
61096         * tests/test-fcntl.c: Likewise.
61097
61098 2007-04-23  Eric Blake  <ebb9@byu.net>
61099
61100         * lib/fflush.c: Fix missing include.
61101         Reported by Bruno Haible.
61102
61103 2007-04-23  Bruno Haible  <bruno@clisp.org>
61104
61105         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61106         Reported by Eric Blake.
61107
61108 2007-04-23  Bruno Haible  <bruno@clisp.org>
61109
61110         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61111
61112 2007-04-23  Bruno Haible  <bruno@clisp.org>
61113
61114         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61115
61116 2007-04-23  Bruno Haible  <bruno@clisp.org>
61117
61118         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61119         Needed on HP-UX 11.
61120
61121 2007-04-16  Eric Blake  <ebb9@byu.net>
61122
61123         Make fflush rely on fpurge.
61124         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61125         open coding all variants.
61126         * modules/fflush (Depends-on): Add fpurge and unistd.
61127         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61128         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61129
61130         Fix --with-tests compilation on cygwin.
61131         * modules/argmatch-tests (Makefile.am): List gnulib library first
61132         in LDADD.
61133         * modules/argp-tests (Makefile.am): Likewise.
61134         * modules/array-list-tests (Makefile.am): Likewise.
61135         * modules/array-oset-tests (Makefile.am): Likewise.
61136         * modules/avltree-list-tests (Makefile.am): Likewise.
61137         * modules/avltree-oset-tests (Makefile.am): Likewise.
61138         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61139         * modules/carray-list-tests (Makefile.am): Likewise.
61140         * modules/dirname-tests (Makefile.am): Likewise.
61141         * modules/frexp-tests (Makefile.am): Likewise.
61142         * modules/isnanl-tests (Makefile.am): Likewise.
61143         * modules/linked-list-tests (Makefile.am): Likewise.
61144         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61145         * modules/lock-tests (Makefile.am): Likewise.
61146         * modules/rbtree-list-tests (Makefile.am): Likewise.
61147         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61148         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61149         * modules/tls-tests (Makefile.am): Likewise.
61150         * modules/tsearch-tests (Makefile.am): Likewise.
61151         * modules/xvasprintf-tests (Makefile.am): Likewise.
61152
61153         Fix fpurge for cygwin.
61154         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61155         value.
61156         * modules/fpurge-tests (Depends-on): Clean up trash.
61157
61158 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61159
61160         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61161
61162         * m4/autobuild.m4: Re-indent.
61163
61164 2007-04-13  Bruno Haible  <bruno@clisp.org>
61165
61166         * modules/fpurge-tests: New file.
61167         * tests/test-fpurge.c: New file.
61168
61169         * modules/fpurge: New file.
61170         * lib/fpurge.h: New file.
61171         * lib/fpurge.c: New file.
61172         * m4/fpurge.m4: New file.
61173
61174 2007-04-13  Bruno Haible  <bruno@clisp.org>
61175
61176         * modules/fbufmode-tests: New file.
61177         * tests/test-fbufmode.c: New file.
61178
61179         * modules/fbufmode: New file.
61180         * lib/fbufmode.h: New file.
61181         * lib/fbufmode.c: New file.
61182         * m4/fbufmode.m4: New file.
61183
61184 2007-04-13  Bruno Haible  <bruno@clisp.org>
61185
61186         * modules/fwritable-tests: New file.
61187         * tests/test-fwritable.c: New file.
61188
61189         * modules/fwritable: New file.
61190         * lib/fwritable.h: New file.
61191         * lib/fwritable.c: New file.
61192         * m4/fwritable.m4: New file.
61193
61194 2007-04-13  Bruno Haible  <bruno@clisp.org>
61195
61196         * modules/freadable-tests: New file.
61197         * tests/test-freadable.c: New file.
61198
61199         * modules/freadable: New file.
61200         * lib/freadable.h: New file.
61201         * lib/freadable.c: New file.
61202         * m4/freadable.m4: New file.
61203
61204 2007-04-13  Bruno Haible  <bruno@clisp.org>
61205
61206         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61207         MOSTLYCLEANFILES.
61208
61209 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61210
61211         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61212         gzip bootstrap.conf to avoid dragging in i18n machinery.
61213         (gnulib_tool_option): Use it.
61214
61215 2007-04-13  Bruno Haible  <bruno@clisp.org>
61216
61217         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61218         %F directives.
61219         * tests/test-vasprintf-posix.c (test_function): Likewise.
61220         * tests/test-snprintf-posix.h (test_function): Likewise.
61221         * tests/test-sprintf-posix.h (test_function): Likewise.
61222         * tests/test-fprintf-posix.h (test_function): Likewise.
61223         * tests/test-printf-posix.h (test_function): Likewise.
61224         * tests/test-fprintf-posix.out: Likewise.
61225
61226 2007-04-13  Bruno Haible  <bruno@clisp.org>
61227
61228         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61229         * modules/tls-tests (configure.ac): Likewise.
61230         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61231
61232 2007-04-13  Bruno Haible  <bruno@clisp.org>
61233
61234         * lib/tls.c (glthread_tls_get): Fix return type.
61235         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61236
61237 2007-04-12  Eric Blake  <ebb9@byu.net>
61238
61239         * modules/gettime (Depends-on): Remove gettime.
61240         Reported by Dmitry V. Levin.
61241
61242 2007-04-12  Bruno Haible  <bruno@clisp.org>
61243
61244         * modules/fflush (Include): Mention <stdio.h>.
61245         * modules/strtoimax (Include): Mention <inttypes.h>.
61246         * modules/strtoumax (Include): Likewise.
61247
61248 2007-04-12  Eric Blake  <ebb9@byu.net>
61249
61250         * .cvsignore: New file.
61251         * .gitignore: Likewise.
61252
61253 2007-04-12  Bruno Haible  <bruno@clisp.org>
61254
61255         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61256         not before, since $(LDADD) often contains libgnu.a.
61257         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61258         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61259         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61260         Needed on Cygwin.
61261
61262 2007-04-12  Eric Blake  <ebb9@byu.net>
61263
61264         Work around glibc's failure to flush stdin on fclose.
61265         * lib/closein.c (close_stdin): Flush stdin before closing.
61266
61267         Work around glibc's failure to reset seekable stdin on exit.
61268         * modules/closein: New module.
61269         * lib/closein.c: New file.
61270         * lib/closein.h: Likewise.
61271         * m4/closein.m4: Likewise.
61272         * MODULES.html.sh (File stream based Input/Output): Document it.
61273
61274 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61275
61276         * gnulib-tool: Rename generated 'autobuild' script to
61277         'do-autobuild' in --create-megatestdir output.
61278
61279         * doc/gnulib.texi (Build robot for gnulib): Fix.
61280
61281 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61282
61283         * modules/sysexits (Depends-on): Add absolute-header.
61284
61285 2007-04-12  Eric Blake  <ebb9@byu.net>
61286
61287         No need to preserve errno on success.
61288         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61289         Reported by Bruno Haible.
61290
61291 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61292
61293         * MODULES.html.sh (Support for maintaining and releasing
61294         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61295
61296 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61297
61298         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61299
61300 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61301
61302         * modules/autobuild: New module.
61303
61304         * m4/autobuild.m4: New file.
61305
61306 2007-04-11  Bruno Haible  <bruno@clisp.org>
61307
61308         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61309         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61310         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61312         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61313         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61314         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61315         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61316         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61317         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61318         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61319         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61320         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61321         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61322         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61323         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61324         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61325         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61326         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61327         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61328         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61329         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61330         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61331         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61332         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61333         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61334         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61335         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61336         Reported by Eric Blake.
61337
61338 2007-04-11  Bruno Haible  <bruno@clisp.org>
61339
61340         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61341
61342 2007-04-10  Bruno Haible  <bruno@clisp.org>
61343
61344         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61345         for NaN and Infinity. Needed on FreeBSD 6.1.
61346         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61347         regarding results for "%010a" of Infinity and NaN.
61348         * tests/test-vasprintf-posix.c (test_function): Likewise.
61349         * tests/test-snprintf-posix.h (test_function): Likewise.
61350         * tests/test-sprintf-posix.h (test_function): Likewise.
61351         * tests/test-fprintf-posix.h (test_function): Likewise.
61352         * tests/test-printf-posix.h (test_function): Likewise.
61353         * tests/test-fprintf-posix.out: Likewise.
61354
61355 2007-04-10  Bruno Haible  <bruno@clisp.org>
61356
61357         * modules/locale-tests: New file.
61358         * tests/test-locale.c: New file.
61359
61360         * modules/locale: New file.
61361         * lib/locale_.h: New file.
61362         * m4/locale_h.m4: New file.
61363
61364 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61365             Bruno Haible  <bruno@clisp.org>
61366
61367         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61368         be determined, test for availability of the copysignf, copysign,
61369         copysignl functions.
61370         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61371         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61372         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61373
61374 2007-04-09  Eric Blake  <ebb9@byu.net>
61375
61376         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61377         * modules/stdio (Makefile.am): Support fflush.
61378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61379         * modules/fflush: New file.
61380         * lib/fflush.c: Likewise.
61381         * m4/fflush.m4: Likewise.
61382         * modules/fflush-tests: New test.
61383         * tests/test-fflush.c: Likewise.
61384         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61385
61386 2007-04-06  Bruno Haible  <bruno@clisp.org>
61387
61388         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61389         (VASNPRINTF): Use signbit for faster determination whether to print a
61390         minus sign.
61391         * modules/vasnprintf (Files): Remove lib/float+.h.
61392         * modules/fprintf-posix (Depends-on): Add signbit.
61393         * modules/snprintf-posix (Depends-on): Likewise.
61394         * modules/sprintf-posix (Depends-on): Likewise.
61395         * modules/vasnprintf-posix (Depends-on): Likewise.
61396         * modules/vasprintf-posix (Depends-on): Likewise.
61397         * modules/vfprintf-posix (Depends-on): Likewise.
61398         * modules/vsnprintf-posix (Depends-on): Likewise.
61399         * modules/vsprintf-posix (Depends-on): Likewise.
61400
61401 2007-04-06  Bruno Haible  <bruno@clisp.org>
61402
61403         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61404         * tests/test-frexpl.c (main): Likewise.
61405         * tests/test-ldexpl.c (main): Likewise.
61406         * modules/frexp-tests (Depends-on): Add signbit.
61407         * modules/frexpl-tests (Depdends-on): Likewise.
61408         * modules/ldexpl-tests (Depdends-on): Likewise.
61409
61410 2007-04-06  Bruno Haible  <bruno@clisp.org>
61411
61412         * modules/signbit-tests: New file.
61413         * tests/test-signbit.c: New file.
61414
61415         * modules/signbit: New file.
61416         * lib/signbitf.c: New file.
61417         * lib/signbitd.c: New file.
61418         * lib/signbitl.c: New file.
61419         * m4/signbit.m4: New file.
61420         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61421         (signbit): New macro.
61422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61423         REPLACE_SIGNBIT.
61424         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61425         REPLACE_FREXPL into math.h.
61426
61427 2007-04-06  Bruno Haible  <bruno@clisp.org>
61428
61429         * modules/isnanf-nolibm-tests: New file.
61430         * tests/test-isnanf.c: New file.
61431
61432         * modules/isnanf-nolibm: New file.
61433         * lib/isnanf.h: New file.
61434         * lib/isnanf.c: New file.
61435         * lib/isnan.c: Consider the USE_FLOAT macro.
61436         * m4/isnanf.m4: New file.
61437
61438 2007-04-06  Bruno Haible  <bruno@clisp.org>
61439
61440         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61441         (Link): New section.
61442
61443         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61444
61445 2007-04-06  Bruno Haible  <bruno@clisp.org>
61446
61447         Assume the 'long double' type.
61448         * m4/longdouble.m4: Remove file.
61449         * config/srclist.txt: Don't mention longdouble.m4.
61450         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61451         * lib/float+.h: Likewise.
61452         * lib/frexp.c: Likewise.
61453         * lib/printf-args.h: Likewise.
61454         * lib/printf-args.c: Likewise.
61455         * lib/printf-frexp.c: Likewise.
61456         * lib/printf-parse.c: Likewise.
61457         * lib/vasnprintf.c: Likewise.
61458         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61459         * m4/intl.m4: Likewise.
61460         * m4/isnanl.m4: Likewise.
61461         * m4/printf.m4: Likewise.
61462         * m4/printf-frexpl.m4: Likewise.
61463         * m4/vasnprintf.m4: Likewise.
61464         * modules/allocsa (Files): Remove m4/longdouble.m4.
61465         * modules/gettext (Files): Likewise.
61466         * modules/relocatable-prog-wrapper (Files): Likewise.
61467         * modules/vasnprintf (Files): Likewise.
61468         * modules/isnanl (Files): Likewise.
61469         (Include): Simplify.
61470         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61471         (Include): Simplify.
61472         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61473         (Include): Simplify.
61474         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61475         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61476         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61477         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61478         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61479         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61480         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61481         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61482         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61483         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61484         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61485         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61486         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61487         * tests/test-isnanl.c: Likewise.
61488         * tests/test-snprintf-posix.h: Likewise.
61489         * tests/test-sprintf-posix.h: Likewise.
61490         * tests/test-vasnprintf-posix.c: Likewise.
61491         * tests/test-vasnprintf-posix2.c: Likewise.
61492         * tests/test-vasprintf-posix.c: Likewise.
61493
61494 2007-04-06  Bruno Haible  <bruno@clisp.org>
61495
61496         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61497         * lib/math_.h [__DECC]: Include the overridden include file through
61498         #include_next, outside the double-inclusion guard.
61499         * lib/stdio_.h [__DECC]: Likewise.
61500         * lib/stdlib_.h [__DECC]: Likewise.
61501         * lib/string_.h [__DECC]: Likewise.
61502         * lib/time_.h [__DECC]: Likewise.
61503         * lib/wchar_.h [__DECC]: Likewise.
61504         * lib/wctype_.h [__DECC]: Likewise.
61505         * lib/inttypes_.h [__DECC]: Likewise.
61506         Reported by Albert Chin <china@thewrittenword.com> in
61507         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61508
61509 2007-04-04  Eric Blake  <ebb9@byu.net>
61510
61511         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61512         1.5.x.
61513
61514 2007-04-04  Bruno Haible  <bruno@clisp.org>
61515
61516         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61517         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61518
61519 2007-04-04  Bruno Haible  <bruno@clisp.org>
61520
61521         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61522         results for "%010a" of Infinity and NaN.
61523         * tests/test-vasprintf-posix.c (test_function): Likewise.
61524         * tests/test-snprintf-posix.h (test_function): Likewise.
61525         * tests/test-sprintf-posix.h (test_function): Likewise.
61526         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61527         * tests/test-printf-posix.h (test_function): Likewise.
61528         * tests/test-fprintf-posix.out: Update.
61529         Needed for FreeBSD 6.1.
61530
61531 2007-04-04  Bruno Haible  <bruno@clisp.org>
61532
61533         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61534         directly used by the gnulib modules nor by gnulib-tool.
61535
61536 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61537
61538         * DEPENDENCIES: Give overall description of version dependency
61539         desirability.  Use more-typical names for apps.
61540         Add shell, coreutils, diffutils, grep, tar, gzip.
61541
61542 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61543
61544         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61545
61546 2007-04-04  Karl Berry  <karl@gnu.org>
61547
61548         * MODULES.html.sh (func_module): missing '.
61549
61550 2007-04-03  Bruno Haible  <bruno@clisp.org>
61551
61552         * modules/argmatch-tests (Makefile.am): New variable
61553         test_argmatch_LDADD.
61554         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61555         * modules/array-list-tests (Makefile.am): New variable
61556         test_array_list_LDADD.
61557         * modules/array-oset-tests (Makefile.am): New variable
61558         test_array_oset_LDADD.
61559         * modules/avltree-list-tests (Makefile.am): New variable
61560         test_avltree_list_LDADD.
61561         * modules/avltree-oset-tests (Makefile.am): New variable
61562         test_avltree_oset_LDADD.
61563         * modules/avltreehash-list-tests (Makefile.am): New variable
61564         test_avltreehash_list_LDADD.
61565         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61566         test_canonicalize_lgpl_LDADD.
61567         * modules/carray-list-tests (Makefile.am): New variable
61568         test_carray_list_LDADD.
61569         * modules/dirname-tests (Makefile.am): New variable
61570         test_dirname_LDADD.
61571         * modules/linked-list-tests (Makefile.am): New variable
61572         test_linked_list_LDADD.
61573         * modules/linkedhash-list-tests (Makefile.am): New variable
61574         test_linkedhash_list_LDADD.
61575         * modules/rbtree-list-tests (Makefile.am): New variable
61576         test_rbtree_list_LDADD.
61577         * modules/rbtree-oset-tests (Makefile.am): New variable
61578         test_rbtree_oset_LDADD.
61579         * modules/rbtreehash-list-tests (Makefile.am): New variable
61580         test_rbtreehash_list_LDADD.
61581         * modules/xvasprintf-tests (Makefile.am): New variable
61582         test_xvasprintf_LDADD.
61583         Reported by Eric Blake.
61584
61585 2007-04-03  Eric Blake  <ebb9@byu.net>
61586
61587         * DEPENDENCIES: Weaken m4 requirements.
61588
61589 2007-04-03  Bruno Haible  <bruno@clisp.org>
61590
61591         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61592         * modules/isnanl-tests (configure.ac): Likewise.
61593
61594 2007-04-03  Ben Pfaff  <blp@gnu.org>
61595
61596         * modules/iconv_open: Add $(srcdir)/ to source directory
61597         references in Makefile fragments that call gperf, to fix VPATH
61598         builds.
61599
61600 2007-04-03  Bruno Haible  <bruno@clisp.org>
61601
61602         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61603         * lib/ldexpl.c: Undo last change.
61604
61605 2007-04-03  Bruno Haible  <bruno@clisp.org>
61606
61607         * modules/printf-frexpl (Depends-on): Undo last change.
61608         (Files): Add m4/ldexpl.m4.
61609
61610 2007-04-03  Bruno Haible  <bruno@clisp.org>
61611
61612         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61613         * modules/isnanl (Link): New section.
61614
61615         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61616         * modules/frexp (Link): New section.
61617
61618         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61619         * modules/frexpl (Link): New section.
61620
61621         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61622         * modules/ldexpl (Link): New section.
61623
61624 2007-04-03  Bruno Haible  <bruno@clisp.org>
61625
61626         * modules/TEMPLATE-EXTENDED: New file.
61627         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61628
61629 2007-04-03  Bruno Haible  <bruno@clisp.org>
61630
61631         * DEPENDENCIES: New file.
61632         Suggested by Simon Josefsson.
61633
61634 2007-04-03  Bruno Haible  <bruno@clisp.org>
61635
61636         * doc/gnulib.texi: Escape @.
61637
61638 2007-04-03  James Youngman  <jay@gnu.org>
61639         and Paul Eggert  <eggert@cs.ucla.edu>
61640
61641         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61642         birthtime on all systems that have birthtime, not just those which
61643         use st_birthtimensec rather than st_birthtim.  Putting zero in
61644         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61645         that the birth time is not available for files on an NFS mount.
61646
61647 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61648
61649         * modules/memxor: Move back from crypto/, suggested by Bruno.
61650         * modules/crypto/hmac-sha1: Fix memxor dependency.
61651
61652         * modules/crypto/gc: Moved from ../.
61653
61654 2007-04-02  Eric Blake  <ebb9@byu.net>
61655
61656         * lib/ldexpl.c (includes): Avoid libm.
61657
61658         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61659
61660 2007-04-02  Bruno Haible  <bruno@clisp.org>
61661
61662         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61663         on IRIX.
61664
61665 2007-04-02  Bruno Haible  <bruno@clisp.org>
61666
61667         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61668         x86 or x86_64 platforms running MacOS X.
61669         Reported by Ryan Schmidt <@ryandesign.com>.
61670
61671 2007-04-02  Bruno Haible  <bruno@clisp.org>
61672
61673         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61674         i386.
61675
61676 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61677
61678         * modules/crypto/arcfour: Moved from ../.
61679         * modules/crypto/arcfour-tests: Moved from ../.
61680         * modules/crypto/arctwo: Moved from ../.
61681         * modules/crypto/arctwo-tests: Moved from ../.
61682         * modules/crypto/des: Moved from ../.
61683         * modules/crypto/des-tests: Moved from ../.
61684         * modules/crypto/gc-arcfour: Moved from ../.
61685         * modules/crypto/gc-arcfour-tests: Moved from ../.
61686         * modules/crypto/gc-arctwo: Moved from ../.
61687         * modules/crypto/gc-arctwo-tests: Moved from ../.
61688         * modules/crypto/gc-des: Moved from ../.
61689         * modules/crypto/gc-des-tests: Moved from ../.
61690         * modules/crypto/gc-hmac-md5: Moved from ../.
61691         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61692         * modules/crypto/gc-hmac-sha1: Moved from ../.
61693         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61694         * modules/crypto/gc-md2: Moved from ../.
61695         * modules/crypto/gc-md2-tests: Moved from ../.
61696         * modules/crypto/gc-md4: Moved from ../.
61697         * modules/crypto/gc-md4-tests: Moved from ../.
61698         * modules/crypto/gc-md5: Moved from ../.
61699         * modules/crypto/gc-md5-tests: Moved from ../.
61700         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61701         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61702         * modules/crypto/gc-random: Moved from ../.
61703         * modules/crypto/gc-rijndael: Moved from ../.
61704         * modules/crypto/gc-rijndael-tests: Moved from ../.
61705         * modules/crypto/gc-sha1: Moved from ../.
61706         * modules/crypto/gc-sha1-tests: Moved from ../.
61707         * modules/crypto/gc-tests: Moved from ../.
61708         * modules/crypto/hmac-md5: Moved from ../.
61709         * modules/crypto/hmac-md5-tests: Moved from ../.
61710         * modules/crypto/hmac-sha1: Moved from ../.
61711         * modules/crypto/hmac-sha1-tests: Moved from ../.
61712         * modules/crypto/md2: Moved from ../.
61713         * modules/crypto/md2-tests: Moved from ../.
61714         * modules/crypto/md4: Moved from ../.
61715         * modules/crypto/md4-tests: Moved from ../.
61716         * modules/crypto/md5: Moved from ../.
61717         * modules/crypto/md5-tests: Moved from ../.
61718         * modules/crypto/memxor: Moved from ../.
61719         * modules/crypto/rijndael: Moved from ../.
61720         * modules/crypto/rijndael-tests: Moved from ../.
61721         * modules/crypto/sha1: Moved from ../.
61722
61723 2007-03-30  James Youngman  <jay@gnu.org>
61724
61725         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61726         rename() to change the ctime of a file (because ctime is unaffected
61727         by rename on jfs2 on AIX 5.1).
61728         (main): Start by doing cleanup, in case a previous run failed leaving
61729         test files behind.
61730
61731 2007-03-31  Bruno Haible  <bruno@clisp.org>
61732
61733         Support old proprietary implementations of iconv.
61734         * modules/iconv_open: New file.
61735         * lib/iconv_.h: New file.
61736         * m4/iconv_h.m4: New file.
61737         * lib/iconv_open.c: New file.
61738         * lib/iconv_open-aix.gperf: New file.
61739         * lib/iconv_open-hpux.gperf: New file.
61740         * lib/iconv_open-irix.gperf: New file.
61741         * lib/iconv_open-osf.gperf: New file.
61742         * m4/iconv_open.m4: New file.
61743         * modules/linebreak (Depends-on): Add iconv_open.
61744         * modules/striconv (Depends-on): Likewise.
61745         * modules/striconveh (Depends-on): Likewise.
61746         * modules/unicodeio (Depends-on): Likewise.
61747         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61748         (iconv_t)(-1).
61749         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61750         conversion if cd is (iconv_t)(-1).
61751         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61752         is not possible.
61753
61754 2007-03-31  Bruno Haible  <bruno@clisp.org>
61755
61756         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61757         work on Solaris either. Protect also second use of "autodetect_jp".
61758
61759 2007-03-31  Bruno Haible  <bruno@clisp.org>
61760
61761         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61762         the function is not present.
61763
61764 2007-03-31  Bruno Haible  <bruno@clisp.org>
61765
61766         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61767         the function is not present.
61768
61769 2007-03-31  Bruno Haible  <bruno@clisp.org>
61770
61771         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61772         a bug in HP-UX iconv_open().
61773
61774 2007-03-31  Bruno Haible  <bruno@clisp.org>
61775
61776         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61777         (Mathematics <math.h>): New section, add fpieee.
61778         (Input/output <stdio.h>): Add fseterr.
61779         (Mathematics <math.h>): New section, add printf-frexp.
61780         (Container data structures): Add sublist.
61781         (Core language properties): Add fpucw, inline.
61782         (Functions for greatest-width integer types <inttypes.h>): Add
61783         imaxabs, imaxdiv, inttypes.
61784         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61785         isnanl-nolibm, ldexp.
61786         (Mathematics <math.h>): New section, add printf-frexpl.
61787         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61788         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61789         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61790         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61791         (Unicode string functions): Add unistr/u*-mbtoucr.
61792         (Java): Add javacomp-script, javaexec-script.
61793         (C#): Add csharpcomp-script, csharpexec-script.
61794         (Support for building libraries and executables): Add havelib,
61795         relocatable-*.
61796         (Support for maintaining and releasing projects): Renamed from
61797         'Support for maintaining and release projects'. Add announce-gen.
61798
61799 2007-03-31  Bruno Haible  <bruno@clisp.org>
61800
61801         * README: Talk primarily about git.
61802         (git and CVS): Renamed from CVS.
61803         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61804         gnulib is available through git.
61805         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61806
61807 2007-03-30  Bruno Haible  <bruno@clisp.org>
61808
61809         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61810         * lib/poll_.h: Likewise.
61811         * lib/stat_.h: Likewise.
61812         * lib/sys_time_.h: Likewise.
61813         * lib/sysexit_.h: Likewise.
61814         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61815         * lib/stdbool_.h: Likewise.
61816         * lib/byteswap_.h: Add double-inclusion guard.
61817
61818 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61819
61820         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61821
61822 2007-03-30  Karl Berry  <karl@gnu.org>
61823
61824         * config/srclist-update: double space after USA in the license
61825         substitution, since that's how it's usually (?) written.
61826
61827 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61828
61829         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61830         reported by Bruno Haible.
61831
61832 2007-03-29  Bruno Haible  <bruno@clisp.org>
61833
61834         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61835         a bug in AIX iconv().
61836
61837 2007-03-29  Bruno Haible  <bruno@clisp.org>
61838
61839         * modules/ldexpl-tests: New file.
61840         * tests/test-ldexpl.c: New file.
61841
61842 2007-03-29  Bruno Haible  <bruno@clisp.org>
61843
61844         * lib/ldexpl.c: Include fpucw.h.
61845         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61846         multiplication.
61847         * modules/ldexpl (Depends-on): Add fpucw.
61848
61849 2007-03-29  Bruno Haible  <bruno@clisp.org>
61850
61851         * modules/ldexpl: New file.
61852         * m4/ldexpl.m4: New file.
61853         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61854         set.
61855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61856         REPLACE_LDEXPL.
61857         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61858         REPLACE_LDEXPL.
61859         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61860         gl_FUNC_LDEXPL_WORKS.
61861         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61862         * modules/mathl (Files): Remove lib/ldexpl.c.
61863         (Depends-on): Add ldexpl.
61864
61865 2007-03-29  Bruno Haible  <bruno@clisp.org>
61866
61867         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61868
61869 2007-03-29  Bruno Haible  <bruno@clisp.org>
61870
61871         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61872         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61873         and possibly also HP-UX.
61874         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61875         work on AIX, IRIX, HP-UX, OSF/1.
61876         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61877         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61878         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61879         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61880         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61881         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61882
61883 2007-03-29  Bruno Haible  <bruno@clisp.org>
61884
61885         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61886
61887 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61888
61889         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61890         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61891
61892 2007-03-29  Eric Blake  <ebb9@byu.net>
61893
61894         * lib/acl-internal.h: Remove redundant include.
61895         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61896         Cygwin when a file is locked.
61897
61898 2007-03-29  Bruno Haible  <bruno@clisp.org>
61899
61900         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61901         file.
61902         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61903
61904 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61905
61906         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61907         try to remove a parent directory if the child couldn't be removed
61908         (except for the first rmdir, which could fail because the child
61909         doesn't exist).  Problem reported by Jeff Blaine in
61910         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61911
61912 2007-03-28  Bruno Haible  <bruno@clisp.org>
61913
61914         * lib/striconveh.c (utf8conv_carefully): New function.
61915         (mem_cd_iconveh_internal): Invoke it.
61916
61917 2007-03-28  Bruno Haible  <bruno@clisp.org>
61918
61919         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61920         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61921         input.
61922         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61923         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61924         unistr/u8-uctomb.
61925
61926 2007-03-28  Bruno Haible  <bruno@clisp.org>
61927
61928         * modules/unistr/u8-mbtoucr: New file.
61929         * lib/unistr/u8-mbtoucr.c: New file.
61930         * modules/unistr/u16-mbtoucr: New file.
61931         * lib/unistr/u16-mbtoucr.c: New file.
61932         * modules/unistr/u16-mbtoucr: New file.
61933         * lib/unistr/u16-mbtoucr.c: New file.
61934         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61935
61936 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61937             Bruno Haible  <bruno@clisp.org>
61938
61939         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61940         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61941         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61942
61943         * m4/stdio_h.m4: Add stubs for vasprintf too.
61944
61945         * modules/stdio: Support vasprintf in sed command.
61946
61947         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61948         vasprintf.h.  Add stdio module indicator.
61949
61950         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61951         vasprintf.h.
61952
61953         * lib/vasprintf.h: File removed.
61954
61955         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61956         * lib/vasprintf.c: Ditto.
61957         * lib/xvasprintf.c: Ditto.
61958         * tests/test-vasprintf-posix.c: Ditto.
61959         * tests/test-vasprintf.c: Ditto.
61960
61961 2007-03-27  Bruno Haible  <bruno@clisp.org>
61962
61963         Make vasnprintf multithread-safe.
61964         * lib/vasnprintf.c (decimal_point_char): New function.
61965         (VASNPRINTF): Use it.
61966         Suggested by Simon Josefsson.
61967
61968 2007-03-27  Eric Blake  <ebb9@byu.net>
61969
61970         Support sub-second birthtime on cygwin.
61971         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61972         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61973         (get_stat_birthtime): Also work with st_birthtim.
61974
61975 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61976
61977         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61978         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61979         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61980         (get_stat_birthtime_ns): Simplify compile-time tests.
61981         (get_stat_birthtime): Change the API to look like
61982         get_stat_mtime etc., except return a negative tv_nsec on error.
61983         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61984         Don't check for "spare" fields.
61985         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61986         or for struct stat.st_birthtime, as these tests aren't used.
61987         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61988
61989 2007-03-27  Bruno Haible  <bruno@clisp.org>
61990
61991         * lib/stat-time.h: Include <sys/stat.h>.
61992
61993 2007-03-27  James Youngman  <jay@gnu.org>
61994
61995         * lib/stat-time.h (get_stat_birthtime): New function for
61996           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61997         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61998           and its variants.
61999         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62000         * modules/stat-time-test: New file.
62001         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62002
62003 2007-03-26  Bruno Haible  <bruno@clisp.org>
62004
62005         Better support of signalling NaNs.
62006         * lib/atanl.c: Include isnanl.h.
62007         (atanl): Perform test for NaN at the beginning of the function and
62008         through a call to isnanl.
62009         * lib/cosl.c: Include isnanl.h.
62010         (cosl): Perform test for NaN at the beginning of the function and
62011         through a call to isnanl.
62012         * lib/ldexpl.c: Include isnanl.h.
62013         (ldexpl): Perform test for NaN through a call to isnanl.
62014         * lib/logl.c: Include isnanl.h.
62015         (logl): Perform test for NaN at the beginning of the function and
62016         through a call to isnanl.
62017         * lib/sinl.c: Include isnanl.h.
62018         (sinl): Perform test for NaN at the beginning of the function and
62019         through a call to isnanl.
62020         * lib/sqrtl.c: Include isnanl.h.
62021         (sqrtl): Perform test for NaN at the beginning of the function and
62022         through a call to isnanl.
62023         * lib/tanl.c: Include isnanl.h.
62024         (tanl): Perform test for NaN at the beginning of the function and
62025         through a call to isnanl.
62026         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62027         * modules/mathl (Depends-on): Add isnanl.
62028
62029 2007-03-26  Eric Blake  <ebb9@byu.net>
62030
62031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62032         regression in logic sense of previous patch.
62033
62034 2007-03-26  Bruno Haible  <bruno@clisp.org>
62035
62036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62037         unportable shell command "if ! ...".
62038         Reported by Ralf Wildenhues.
62039
62040 2007-03-25  Bruno Haible  <bruno@clisp.org>
62041
62042         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62043         <sysexits.h> file, and only add EX_CONFIG.
62044         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62045         absolute file name and whether it is sufficient. Substitute also
62046         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62047         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62048         ABSOLUTE_SYSEXITS_H into sysexits.h.
62049
62050 2007-03-25  Bruno Haible  <bruno@clisp.org>
62051
62052         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62053         hints is NULL.
62054
62055 2007-03-25  Bruno Haible  <bruno@clisp.org>
62056
62057         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62058         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62059
62060 2007-03-25  Bruno Haible  <bruno@clisp.org>
62061
62062         * lib/vasnprintf.c: Include langinfo.h.
62063         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62064         multithread-safe.
62065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62066         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62067         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62068         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62069         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62070         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62071         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62072         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62073         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62074         Reported by Simon Josefsson.
62075
62076 2007-03-25  Bruno Haible  <bruno@clisp.org>
62077
62078         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62079         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62080         * modules/vasnprintf (Depends-on): Add stdint.
62081
62082 2007-03-25  Bruno Haible  <bruno@clisp.org>
62083
62084         * modules/fpieee: New file.
62085         * m4/fpieee.m4: New file.
62086         * modules/isnan-nolibm (Depends-on): Add fpieee.
62087         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62088         * modules/isnanl (Depends-on): Add fpieee.
62089
62090 2007-03-25  Bruno Haible  <bruno@clisp.org>
62091
62092         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62093
62094 2007-03-25  Bruno Haible  <bruno@clisp.org>
62095
62096         Avoid test failures on IRIX 6.5.
62097         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62098         (main): Use it.
62099         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62100         macros.
62101         (main): Use them.
62102
62103 2007-03-25  Bruno Haible  <bruno@clisp.org>
62104
62105         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62106         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62107         exists but doesn't work.
62108         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62109         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62111         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62112         math.h.
62113
62114 2007-03-25  Bruno Haible  <bruno@clisp.org>
62115
62116         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62117         returns inf. Needed on IRIX 6.5.
62118
62119 2007-03-25  Bruno Haible  <bruno@clisp.org>
62120
62121         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62122         (main): Use isnanl instead of x != x idiom.
62123         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62124
62125         * tests/test-frexp.c: Include isnan.h.
62126         (main): Use isnan instead of x != x idiom.
62127         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62128
62129 2007-03-25  Bruno Haible  <bruno@clisp.org>
62130
62131         * tests/test-frexp.c (NaN): New function/macro.
62132         (main): Use it instead of 0.0 / 0.0.
62133         * tests/test-isnan.c (NaN): New function/macro.
62134         (main): Use it instead of 0.0 / 0.0.
62135         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62136         (test_function): Use it instead of 0.0 / 0.0.
62137         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62138         (test_function): Use it instead of 0.0 / 0.0.
62139         * tests/test-snprintf-posix.h (NaN): New function/macro.
62140         (test_function): Use it instead of 0.0 / 0.0.
62141         * tests/test-sprintf-posix.h (NaN): New function/macro.
62142         (test_function): Use it instead of 0.0 / 0.0.
62143         * tests/test-fprintf-posix.h (NaN): New function/macro.
62144         (test_function): Use it instead of 0.0 / 0.0.
62145         * tests/test-printf-posix.h (NaN): New function/macro.
62146         (test_function): Use it instead of 0.0 / 0.0.
62147
62148         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62149
62150 2007-03-25  Bruno Haible  <bruno@clisp.org>
62151
62152         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62153
62154 2007-03-25  Bruno Haible  <bruno@clisp.org>
62155
62156         * lib/regexec.c (merge_state_with_log): Make static.
62157
62158 2007-03-25  Bruno Haible  <bruno@clisp.org>
62159
62160         * lib/trigl.c (kernel_rem_pio2): Make static.
62161
62162 2007-03-25  Bruno Haible  <bruno@clisp.org>
62163
62164         * lib/sincosl.c (sincosl_table): Make static.
62165
62166 2007-03-25  Bruno Haible  <bruno@clisp.org>
62167
62168         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62169         if the compiler does not support C99.
62170
62171 2007-03-25  Bruno Haible  <bruno@clisp.org>
62172
62173         * modules/time (Makefile.am): Ensure all rule action lines start with a
62174         tab.
62175
62176 2007-03-24  Bruno Haible  <bruno@clisp.org>
62177
62178         * modules/tsearch-tests: New file.
62179         * tests/test-tsearch.sh: New file.
62180         * tests/test-tsearch.c: New file, mostly copied from glibc.
62181
62182         * modules/search-tests: New file.
62183         * tests/test-search.c: New file.
62184
62185         * modules/search: New file.
62186         * lib/search_.h: New file, incorporating lib/tsearch.h.
62187         * m4/search_h.m4: New file.
62188         * lib/tsearch.h: Remove file.
62189         * lib/tsearch.c: Include search.h instead of tsearch.h.
62190         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62191         HAVE_TSEARCH.
62192         * modules/tsearch (Files): Remove lib/tsearch.h.
62193         (Depends-on): Add search.
62194         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62195         (Include): Change tsearch.h into search.h.
62196
62197 2007-03-24  Bruno Haible  <bruno@clisp.org>
62198
62199         * modules/fpucw: New file.
62200         * lib/fpucw.h: New file.
62201         * lib/frexp.c: Include fpucw.h.
62202         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62203         (FUNC): Use them.
62204         * lib/printf-frexp.c: Include fpucw.h.
62205         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62206         (FUNC): Use them.
62207         * lib/vasnprintf.c: Include fpucw.h.
62208         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62209         'long double' calculations.
62210         * tests/test-frexpl.c: Include fpucw.h.
62211         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62212         * tests/test-printf-frexpl.c: Include fpucw.h.
62213         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62214         * modules/frexpl (Depends-on): Add fpucw.
62215         * modules/printf-frexpl (Depends-on): Likewise.
62216         * modules/fprintf-posix (Depends-on): Likewise.
62217         * modules/snprintf-posix (Depends-on): Likewise.
62218         * modules/sprintf-posix (Depends-on): Likewise.
62219         * modules/vasnprintf-posix (Depends-on): Likewise.
62220         * modules/vasprintf-posix (Depends-on): Likewise.
62221         * modules/vfprintf-posix (Depends-on): Likewise.
62222         * modules/vsnprintf-posix (Depends-on): Likewise.
62223         * modules/vsprintf-posix (Depends-on): Likewise.
62224         * modules/frexpl-tests (Depends-on): Likewise.
62225         * modules/printf-frexpl-tests (Depends-on): Likewise.
62226
62227 2007-03-24  Bruno Haible  <bruno@clisp.org>
62228
62229         * lib/float+.h: New file.
62230         * lib/isnan.c: Include float+.h.
62231         (SIZE): New macro.
62232         (FUNC): Compare only SIZE bytes of the value.
62233         * lib/vasnprintf.c: Include float+.h.
62234         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62235         SIZEOF_LDBL or SIZEOF_DBL bytes.
62236         * modules/isnan-nolibm (Files): Add lib/float+.h.
62237         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62238         * modules/isnanl (Files): Add lib/float+.h.
62239         * modules/vasnprintf (Files): Add lib/float+.h.
62240
62241 2007-03-24  Bruno Haible  <bruno@clisp.org>
62242
62243         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62244         include isnanl-nolibm.h.
62245
62246 2007-03-24  Bruno Haible  <bruno@clisp.org>
62247
62248         * tests/test-read-file.c (main): Don't produce spurious output for
62249         expected situations. Make the test fail if it encountered unexpected
62250         results.
62251
62252 2007-03-24  Bruno Haible  <bruno@clisp.org>
62253
62254         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62255         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62256
62257 2007-03-24  Bruno Haible  <bruno@clisp.org>
62258
62259         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62260
62261 2007-03-24  Bruno Haible  <bruno@clisp.org>
62262
62263         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62264         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62265
62266         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62267         * modules/utf8-ucs4: Turn into a symbolic link to module
62268         unistr/u8-mbtouc.
62269
62270         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62271         utf8-ucs4-unsafe.
62272         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62273         unistr/u8-mbtouc-unsafe.
62274
62275         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62276         * modules/utf16-ucs4: Turn into a symbolic link to module
62277         unistr/u16-mbtouc.
62278
62279         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62280         utf16-ucs4-unsafe.
62281         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62282         unistr/u16-mbtouc-unsafe.
62283
62284         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62285         * modules/ucs4-utf8: Turn into a symbolic link to module
62286         unistr/u8-ubtomb.
62287
62288         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62289         * modules/ucs4-utf16: Turn into a symbolic link to module
62290         unistr/u16-ubtomb.
62291
62292 2007-03-24  Bruno Haible  <bruno@clisp.org>
62293
62294         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62295         Enable the function only if HAVE_INLINE.
62296         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62297         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62298         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62299         Enable the function only if HAVE_INLINE.
62300         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62301         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62302         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62303         Enable the function only if HAVE_INLINE.
62304         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62305         Enable the function only if HAVE_INLINE.
62306         * modules/utf8-ucs4: Update.
62307         * modules/utf8-ucs4-unsafe: Update.
62308         * modules/utf16-ucs4: Update.
62309         * modules/utf16-ucs4-unsafe: Update.
62310         * modules/ucs4-utf8: Update.
62311         * modules/ucs4-utf16: Update.
62312
62313 2007-03-24  Bruno Haible  <bruno@clisp.org>
62314
62315         * lib/utf8-ucs4.h: Remove file.
62316         * lib/utf8-ucs4-unsafe.h: Remove file.
62317         * lib/utf16-ucs4.h: Remove file.
62318         * lib/utf16-ucs4-unsafe.h: Remove file.
62319         * lib/ucs4-utf8.h: Remove file.
62320         * lib/ucs4-utf16.h: Remove file.
62321         * lib/unistr.h: Include their previous contents.
62322         * m4/utf-ucs4.m4: Remove file.
62323         * m4/ucs4-utf.m4: Remove file.
62324         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62325         (Depends-on): Add unistr/base.
62326         (configure.ac): Remove gl_UTF_UCS4.
62327         (Makefile.am): Update.
62328         (Include): Change to unistr.h.
62329         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62330         (Depends-on): Add unistr/base.
62331         (configure.ac): Remove gl_UTF_UCS4.
62332         (Makefile.am): Update.
62333         (Include): Change to unistr.h.
62334         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62335         (Depends-on): Add unistr/base.
62336         (configure.ac): Remove gl_UTF_UCS4.
62337         (Makefile.am): Update.
62338         (Include): Change to unistr.h.
62339         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62340         (Depends-on): Add unistr/base.
62341         (configure.ac): Remove gl_UTF_UCS4.
62342         (Makefile.am): Update.
62343         (Include): Change to unistr.h.
62344         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62345         (Depends-on): Add unistr/base.
62346         (configure.ac): Remove gl_UCS4_UTF.
62347         (Makefile.am): Update.
62348         (Include): Change to unistr.h.
62349         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62350         (Depends-on): Add unistr/base.
62351         (configure.ac): Remove gl_UCS4_UTF.
62352         (Makefile.am): Update.
62353         (Include): Change to unistr.h.
62354         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62355         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62356         utf8-ucs4-unsafe.h.
62357         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62358         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62359         utf16-ucs4-unsafe.h.
62360         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62361         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62362         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62363         * lib/unistr/u8-strchr.c: Likewise.
62364         * lib/unistr/u8-strrchr.c: Likewise.
62365         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62366         * lib/unistr/u16-strchr.c: Likewise.
62367         * lib/unistr/u16-strrchr.c: Likewise.
62368         * lib/striconveh.c: Update.
62369         * lib/linebreak.c: Update.
62370
62371 2007-03-24  Bruno Haible  <bruno@clisp.org>
62372
62373         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62374         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62375
62376 2007-03-22  Bruno Haible  <bruno@clisp.org>
62377
62378         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62379
62380 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62381
62382         * MODULES.html.sh (File system functions): New module write-any-file.
62383         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62384         * m4/write-any-file.m4: New files.
62385
62386 2007-03-23  Eric Blake  <ebb9@byu.net>
62387
62388         * gnulib-tool: Rearrange space-tab sequences, since some editors
62389         like to eat them.
62390
62391 2007-03-23  Eric Blake  <ebb9@byu.net>
62392
62393         * lib/version-etc.c (version_etc_va): Update license wording to
62394         be more concise.  Recommended by Richard Stallman.
62395
62396 2007-03-22  Bruno Haible  <bruno@clisp.org>
62397
62398         * lib/poll.c (MSG_PEEK): New fallback definition.
62399
62400 2007-03-22  Bruno Haible  <bruno@clisp.org>
62401
62402         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62403         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62404         (main): Update.
62405         Fixes a compilation error on BeOS.
62406
62407 2007-03-22  Bruno Haible  <bruno@clisp.org>
62408
62409         * modules/frexpl-tests: New file.
62410         * tests/test-frexpl.c: New file.
62411
62412         * modules/frexpl: New file.
62413         * m4/frexpl.m4: New file.
62414         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62415         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62417         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62418         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62419         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62420
62421 2007-03-22  Bruno Haible  <bruno@clisp.org>
62422
62423         * lib/frexpl.c: Share code with lib/frexp.c.
62424         * modules/mathl (Files): Add lib/frexp.c.
62425         (Depends-on): Add isnanl-nolibm.
62426
62427 2007-03-22  Bruno Haible  <bruno@clisp.org>
62428
62429         * modules/printf-frexp (Files): Add m4/frexp.m4.
62430         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62431         only if the found frexp function actually works.
62432
62433 2007-03-22  Bruno Haible  <bruno@clisp.org>
62434
62435         * lib/frexp.c: Remove older implementation that uses divisions.
62436
62437 2007-03-21  Bruno Haible  <bruno@clisp.org>
62438
62439         * modules/frexp-tests: New file.
62440         * tests/test-frexp.c: New file.
62441
62442         * modules/frexp: New file.
62443         * lib/frexp.c: New file.
62444         * m4/frexp.m4: New file.
62445         * lib/math_.h (frexp): New declaration.
62446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62447         REPLACE_FREXP.
62448         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62449
62450 2007-03-21  Bruno Haible  <bruno@clisp.org>
62451
62452         * modules/isnanl-tests: New file.
62453         * tests/test-isnanl.c: New file.
62454
62455         * modules/isnanl: New file.
62456         * lib/isnanl.h: New file.
62457         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62458         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62459         gl_FUNC_ISNANL_WORKS.
62460         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62461         New macros.
62462
62463 2007-03-21  Bruno Haible  <bruno@clisp.org>
62464
62465         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62466         lib/isnanl.h.
62467         (Include): Update.
62468         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62469         * lib/vasnprintf.c: Update.
62470         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62471         tests/test-isnanl.h, remove tests/test-isnanl.c.
62472         (Makefile.am): Update.
62473         * tests/test-isnanl-nolibm.c: New file.
62474         * tests/test-isnanl.h: New file.
62475         * tests/test-isnanl.c: Remove file.
62476
62477 2007-03-21  Jim Meyering  <jim@meyering.net>
62478
62479         When trying to open ".", treat ESTALE like EACCES.
62480         * lib/savewd.c (savewd_save): Resort to forking not just upon
62481         failure with EACCES, but also when errno is ESTALE.
62482
62483 2007-03-20  Bruno Haible  <bruno@clisp.org>
62484
62485         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62486         Needed on AIX 5.1. Reported by Matthew Woehlke.
62487
62488 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62489
62490         Suggestions by Bruno Haible:
62491         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62492         our own.
62493         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62494         * modules/acl (Depends-on): Add gettext.
62495
62496 2007-03-19  Bruno Haible  <bruno@clisp.org>
62497
62498         * modules/iconvme: Remove file.
62499         * lib/iconvme.h: Remove file.
62500         * lib/iconvme.c: Remove file.
62501         * m4/iconvme.m4: Remove file.
62502
62503 2007-03-19  Bruno Haible  <bruno@clisp.org>
62504
62505         * doc/relocatable-maint.texi: Break long shell script line.
62506         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62507
62508 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62509
62510         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62511         handle file_has_acl.
62512         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62513         * lib/acl.c: Move header inclusions and related macro defns into
62514         lib/acl-internal.h.
62515         (S_ISLNK): Remove defn, since that's now done for us.
62516         (file_has_acl): Move to lib/file-has-acl.c.
62517         Call acl_trivial if available.  This is the crucial part of the fix.
62518         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62519         shared within the library.  Rewrite a bit, partly to make it compatible
62520         with the GNU coding style.
62521         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62522         Remove unnecessary double-quotes.
62523         Don't test for acl_to_text; the build will catch that.
62524         Replace acl_entries if it doesn't exist and it is needed.
62525         Check for -lsec and acl_trivial (as used on Solaris 10).
62526         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62527         lib/file-has-acl.c.
62528         (Depends-on): Add sys_stat, for S_ISLNK.
62529
62530 2007-03-19  Ben Pfaff  <blp@gnu.org>
62531
62532         * doc/gnulib.texi: Fix typos.
62533         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62534
62535 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62538         If size is zero here, buf must be zero.
62539
62540 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62541
62542         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62543         <bruno@clisp.org>.
62544
62545 2007-03-18  Bruno Haible  <bruno@clisp.org>
62546
62547         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62548         Suggested by Eric Blake.
62549
62550 2007-03-18  Ben Pfaff  <blp@gnu.org>
62551
62552         * doc/relocatable.texi: Recommend using as prefix a directory
62553         that does not exist and will never be created.  Based on
62554         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62555         and others.
62556
62557 2007-03-17  Bruno Haible  <bruno@clisp.org>
62558
62559         * lib/fchownat.c: Include lchown.h.
62560
62561 2007-03-17  Bruno Haible  <bruno@clisp.org>
62562
62563         Fix endless loop when the given allocated size was > INT_MAX.
62564         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62565         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62566         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62567         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62568         * lib/sprintf.c (sprintf): Likewise.
62569
62570 2007-03-17  Bruno Haible  <bruno@clisp.org>
62571
62572         * tests/test-argp-2.sh (func_compare): Output a context diff.
62573
62574 2007-03-17  Bruno Haible  <bruno@clisp.org>
62575
62576         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62577         locale's decimal-point character.
62578
62579 2007-03-17  Bruno Haible  <bruno@clisp.org>
62580
62581         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62582         before comparing it. Needed because on some platforms (e.g. x86) a
62583         'long double' occupies less bytes than sizeof (long double).
62584
62585 2007-03-17  Bruno Haible  <bruno@clisp.org>
62586
62587         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62588         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62589         * tests/test-getaddrinfo.c (simple): Likewise.
62590         * tests/test-read-file.c (main): Likewise.
62591
62592 2007-03-17  Bruno Haible  <bruno@clisp.org>
62593
62594         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62595
62596 2007-03-17  Bruno Haible  <bruno@clisp.org>
62597
62598         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62599         unused variable.
62600
62601 2007-03-17  Bruno Haible  <bruno@clisp.org>
62602
62603         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62604         * tests/test-c-strncasecmp.c: Likewise.
62605
62606 2007-03-17  Bruno Haible  <bruno@clisp.org>
62607
62608         * modules/stdlib (Depends-on): Add unistd.
62609         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62610         Needed for MacOS X 10.3.
62611
62612 2007-03-17  Bruno Haible  <bruno@clisp.org>
62613
62614         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62615
62616 2007-03-17  Bruno Haible  <bruno@clisp.org>
62617
62618         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62619
62620 2007-03-17  Bruno Haible  <bruno@clisp.org>
62621
62622         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62623         to reflect files copied from gnulib (with or without modifications).
62624         Suggested by Jim Meyering.
62625
62626 2007-03-17  Eric Blake  <ebb9@byu.net>
62627
62628         * NEWS: Document stdlib change from 2007-02-18.
62629
62630 2007-03-17  Jim Meyering  <jim@meyering.net>
62631
62632         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62633         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62634         someone uses a name containing shell meta-characters.
62635         Reported by Alfred M. Szmidt.
62636
62637         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62638
62639 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62640
62641         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62642         and copy gettext configuration files only if configure.ac contains
62643         a use of AM_GNU_GETTEXT_VERSION.
62644
62645 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62646
62647         * build-aux/bootstrap (gnulib_name): New variable.
62648         (gnulib_tool_options): Use it.
62649
62650 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62651
62652         * tests/test-des.c: Use new namespace.
62653
62654 2007-03-15  Bruno Haible  <bruno@clisp.org>
62655
62656         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62657         Reported by James Youngman <jay@gnu.org>.
62658
62659 2007-03-15  Bruno Haible  <bruno@clisp.org>
62660
62661         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62662         declared prototype. Needed with cc on OSF/1 5.1.
62663
62664 2007-03-15  Bruno Haible  <bruno@clisp.org>
62665
62666         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62667         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62668         (struct gl_list_implementation): Add dispose_fn argument to the
62669         'create_empty', 'create' methods.
62670         (struct gl_list_impl_base): Add field 'dispose_fn'.
62671         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62672         argument.
62673         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62674         dispose_fn argument.
62675         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62676         dispose_fn on the dropped values.
62677         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62678         dispose_fn argument.
62679         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62680         dropped values.
62681         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62682         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62683         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62684         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62685         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62686         argument.
62687         (gl_tree_list_free): Call dispose_fn on the dropped values.
62688         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62689         the dropped values.
62690         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62691         Add dispose_fn argument.
62692         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62693         Call dispose_fn on the dropped values.
62694         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62695         Add dispose_fn argument.
62696         (gl_sublist_create): Initialize the 'dispose_fn' field.
62697         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62698         * tests/test-array_list.c (main): Update.
62699         * tests/test-carray_list.c (main): Update.
62700         * tests/test-avltree_list.c (main): Update.
62701         * tests/test-rbtree_list.c (main): Update.
62702         * tests/test-avltreehash_list.c (main): Update.
62703         * tests/test-rbtreehash_list.c (main): Update.
62704         * tests/test-linked_list.c (main): Update.
62705         * tests/test-linkedhash_list.c (main): Update.
62706         * tests/test-array_oset.c (main): Update.
62707
62708 2007-03-15  Bruno Haible  <bruno@clisp.org>
62709
62710         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62711         (gl_oset_create_empty): Add dispose_fn argument.
62712         (struct gl_oset_implementation): Add dispose_fn argument to
62713         'create_empty' method.
62714         (struct gl_oset_impl_base): Add dispose_fn field.
62715         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62716         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62717         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62718         values.
62719         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62720         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62721         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62722         dropped value.
62723         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62724         dropped value.
62725         * tests/test-array_oset.c (main): Update.
62726         * tests/test-avltree_oset.c (main): Update.
62727         * tests/test-rbtree_oset.c (main): Update.
62728         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62729
62730 2007-03-13  Bruno Haible  <bruno@clisp.org>
62731
62732         * tests/test-stdbool.c (i): Update after last patch.
62733
62734 2007-03-12  Bruno Haible  <bruno@clisp.org>
62735
62736         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62737         the iswprint macro. Needed on Solaris 2.5.1.
62738
62739 2007-03-12  Bruno Haible  <bruno@clisp.org>
62740
62741         * tests/test-printf-frexp.c (main): Declare x as volatile.
62742
62743 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62744
62745         * doc/gnulib.texi (Build robot for gnulib): New section.
62746
62747 2007-03-12  Jim Meyering  <jim@meyering.net>
62748
62749         * build-aux/bootstrap: New file.
62750         * build-aux/bootstrap.conf: New file, from coreutils.
62751
62752 2007-03-11  Bruno Haible  <bruno@clisp.org>
62753
62754         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62755
62756 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62757
62758         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62759         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62760         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62761
62762 2007-03-11  Bruno Haible  <bruno@clisp.org>
62763
62764         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62765         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62766
62767 2007-03-11  Bruno Haible  <bruno@clisp.org>
62768
62769         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62770         formula. Needed for SunPRO C 5.0.
62771
62772 2007-03-11  Bruno Haible  <bruno@clisp.org>
62773
62774         * modules/long-options (Depends-on): Add getopt.
62775
62776 2007-03-11  Bruno Haible  <bruno@clisp.org>
62777
62778         * modules/modechange (Depends-on): Add stdbool.
62779
62780 2007-03-11  Bruno Haible  <bruno@clisp.org>
62781
62782         * modules/i-ring (Depends-on): Add stdbool.
62783
62784 2007-03-11  Bruno Haible  <bruno@clisp.org>
62785
62786         * modules/gc-des (Depends-on): Add stdbool.
62787
62788 2007-03-11  Bruno Haible  <bruno@clisp.org>
62789
62790         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62791
62792 2007-03-11  Bruno Haible  <bruno@clisp.org>
62793
62794         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62795
62796 2007-03-11  Bruno Haible  <bruno@clisp.org>
62797
62798         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62799
62800 2007-03-11  Bruno Haible  <bruno@clisp.org>
62801
62802         * lib/vasnprintf.c (sprintf): Undefine.
62803
62804 2007-03-11  Bruno Haible  <bruno@clisp.org>
62805
62806         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62807         initializers in SunPRO C and Compaq C compilers.
62808
62809 2007-03-11  Bruno Haible  <bruno@clisp.org>
62810
62811         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62812         decrementing code ANSI C compliant.
62813
62814 2007-03-11  Bruno Haible  <bruno@clisp.org>
62815
62816         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62817         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62818
62819 2007-03-11  Bruno Haible  <bruno@clisp.org>
62820
62821         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62822         <stdbool.h> substitute doesn't pass.
62823
62824 2007-03-11  Bruno Haible  <bruno@clisp.org>
62825
62826         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62827
62828 2007-03-11  Bruno Haible  <bruno@clisp.org>
62829
62830         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62831         script, for submission to autobuild.josefsson.org.
62832
62833 2007-03-10  Bruno Haible  <bruno@clisp.org>
62834
62835         * modules/canonicalize-lgpl-tests: New file.
62836         * tests/test-canonicalize-lgpl.sh: New file.
62837         * tests/test-canonicalize-lgpl.c: New file.
62838
62839         * modules/c-strcase-tests: New file.
62840         * tests/test-c-strcase.sh: New file.
62841         * tests/test-c-strcasecmp.c: New file.
62842         * tests/test-c-strncasecmp.c: New file.
62843
62844         * modules/atexit-tests: New file.
62845         * tests/test-atexit.sh: New file.
62846         * tests/test-atexit.c: New file.
62847
62848 2007-03-10  Bruno Haible  <bruno@clisp.org>
62849
62850         * tests/test-binary-io.sh: Use temporary filenames that are not so
62851         likely to clash with those of other tests (in a parallel make).
62852         * tests/test-binary-io.c: Likewise.
62853
62854 2007-03-10  Bruno Haible  <bruno@clisp.org>
62855
62856         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62857         fallback; use #error instead.
62858         Suggested by Simon Josefsson.
62859
62860 2007-03-10  Bruno Haible  <bruno@clisp.org>
62861
62862         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62863         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62864         first and the last.
62865
62866 2007-03-10  Bruno Haible  <bruno@clisp.org>
62867
62868         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62869
62870 2007-03-10  Bruno Haible  <bruno@clisp.org>
62871
62872         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62873         "make distcheck".
62874         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62875         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62876         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62877
62878 2007-03-10  Bruno Haible  <bruno@clisp.org>
62879
62880         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62881         variable.
62882         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62883         variable.
62884
62885 2007-03-09  Eric Blake  <ebb9@byu.net>
62886         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62887
62888         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62889         types are not being provided by gnulib.
62890         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62891         types are supported.
62892
62893 2007-03-10  Bruno Haible  <bruno@clisp.org>
62894
62895         * lib/stdio_.h (__attribute__): New macro.
62896         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62897         vsprintf): Specify __attribute__ __format__ for GCC.
62898         Suggested by Eric Blake.
62899
62900 2007-03-09  Bruno Haible  <bruno@clisp.org>
62901
62902         * modules/printf-posix-tests: New file.
62903         * tests/test-printf-posix.sh: New file.
62904         * tests/test-printf-posix.c: New file.
62905
62906         * modules/printf-posix: New file.
62907         * lib/printf.c: New file.
62908         * m4/printf-posix-rpl.m4: New file.
62909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62910         REPLACE_PRINTF.
62911         * lib/stdio_.h (printf): New declaration.
62912         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62913         ____strfmon____): New macros.
62914         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62915         REPLACE_PRINTF.
62916
62917 2007-03-09  Bruno Haible  <bruno@clisp.org>
62918
62919         * tests/test-vasnprintf-posix2.sh: New file.
62920         * tests/test-vasnprintf-posix2.c: New file.
62921         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62922         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62923         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62924
62925         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62926         a locale dependent decimal point, rather than always '.'.
62927
62928 2007-03-09  Eric Blake  <ebb9@byu.net>
62929
62930         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62931         spite of platforms like Tandem/NSK that define it to -1.
62932
62933 2007-03-08  Bruno Haible  <bruno@clisp.org>
62934
62935         * modules/vprintf-posix-tests: New file.
62936         * tests/test-vprintf-posix.sh: New file.
62937         * tests/test-vprintf-posix.c: New file.
62938         * tests/test-printf-posix.h: New file.
62939
62940         * modules/vprintf-posix: New file.
62941         * lib/vprintf.c: New file.
62942         * m4/vprintf-posix.m4: New file.
62943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62944         REPLACE_VPRINTF.
62945         * lib/stdio_.h (vprintf): New declaration.
62946         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62947         REPLACE_VPRINTF.
62948
62949 2007-03-08  Bruno Haible  <bruno@clisp.org>
62950
62951         * modules/fprintf-posix-tests: New file.
62952         * tests/test-fprintf-posix.sh: New file.
62953         * tests/test-fprintf-posix.c: New file.
62954
62955         * modules/fprintf-posix: New file.
62956         * lib/fprintf.c: New file.
62957         * m4/fprintf-posix.m4: New file.
62958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62959         REPLACE_FPRINTF.
62960         * lib/stdio_.h (fprintf): New declaration.
62961         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62962         REPLACE_FPRINTF.
62963
62964 2007-03-08  Bruno Haible  <bruno@clisp.org>
62965
62966         * modules/vfprintf-posix-tests: New file.
62967         * tests/test-vfprintf-posix.sh: New file.
62968         * tests/test-vfprintf-posix.c: New file.
62969         * tests/test-fprintf-posix.h: New file.
62970         * tests/test-fprintf-posix.out: New file.
62971
62972         * modules/vfprintf-posix: New file.
62973         * lib/vfprintf.c: New file.
62974         * m4/vfprintf-posix.m4: New file.
62975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62976         REPLACE_VFPRINTF.
62977         * lib/stdio_.h (vfprintf): New declaration.
62978         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62979         REPLACE_VFPRINTF.
62980
62981 2007-03-08  Bruno Haible  <bruno@clisp.org>
62982
62983         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62984
62985 2007-03-08  Bruno Haible  <bruno@clisp.org>
62986
62987         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62988         instead of 'expr' invocations.
62989         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62990         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62991         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62992         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62993         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62994         Suggested by Paul Eggert.
62995
62996 2007-03-08  Bruno Haible  <bruno@clisp.org>
62997
62998         * modules/fseterr-tests: New file.
62999         * tests/test-fseterr.c: New file.
63000
63001         * modules/fseterr: New file.
63002         * lib/fseterr.h: New file.
63003         * lib/fseterr.c: New file.
63004
63005 2007-03-08  Bruno Haible  <bruno@clisp.org>
63006
63007         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63008         * lib/getopt_.h: Likewise.
63009         * lib/mbswidth.h: Likewise.
63010         * lib/setenv.h: Likewise.
63011         * lib/vasnprintf.h: Likewise.
63012         * lib/vasprintf.h: Likewise.
63013         * lib/verror.h: Likewise.
63014         * lib/xsetenv.h: Likewise.
63015         * lib/xvasprintf.h: Likewise.
63016
63017 2007-03-08  Jim Meyering  <jim@meyering.net>
63018
63019         * users.txt: Add parted.
63020
63021         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63022
63023 2007-03-07  Bruno Haible  <bruno@clisp.org>
63024
63025         * m4/printf.m4: Make the shell script snippets copy&pastable.
63026
63027 2007-03-02  Bruno Haible  <bruno@clisp.org>
63028
63029         * lib/netinet_in_.h: New file.
63030         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63031         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63032         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63033         (Depends-on): Add absolute-header.
63034         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63035         into netinet/in.h.
63036
63037 2007-03-03  Bruno Haible  <bruno@clisp.org>
63038
63039         * lib/sys_select_.h: New file.
63040         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63041         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63042         * modules/sys_select (Files): Add lib/sys_select_.h.
63043         (Depends-on): Add absolute-header.
63044         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63045         into sys/select.h.
63046
63047 2007-03-02  Bruno Haible  <bruno@clisp.org>
63048
63049         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63050         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63051         values.
63052         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63053         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63054         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63055         * modules/sys_socket (Depends-on): Add absolute-header.
63056         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63057         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63058         (Include): Remove requirement of inclusion of <sys/types.h>.
63059
63060 2007-03-02  Bruno Haible  <bruno@clisp.org>
63061
63062         * lib/byteswap_.h (bswap_32): Fix formula.
63063
63064 2007-03-06  Bruno Haible  <bruno@clisp.org>
63065
63066         * modules/sprintf-posix-tests: New file.
63067         * tests/test-sprintf-posix.c: New file.
63068
63069         * modules/sprintf-posix: New file.
63070         * lib/sprintf.c: New file.
63071         * m4/sprintf-posix.m4: New file.
63072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63073         REPLACE_SPRINTF.
63074         * lib/stdio_.h (sprintf): New declaration.
63075         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63076         REPLACE_SPRINTF.
63077
63078 2007-03-06  Bruno Haible  <bruno@clisp.org>
63079
63080         * modules/vsprintf-posix-tests: New file.
63081         * tests/test-vsprintf-posix.c: New file.
63082         * tests/test-sprintf-posix.h: New file.
63083
63084         * modules/vsprintf-posix: New file.
63085         * lib/vsprintf.c: New file.
63086         * m4/vsprintf-posix.m4: New file.
63087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63088         REPLACE_VSPRINTF.
63089         * lib/stdio_.h (vsprintf): New declaration.
63090         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63091         REPLACE_VSPRINTF.
63092
63093 2007-03-06  Bruno Haible  <bruno@clisp.org>
63094
63095         * modules/vsnprintf (Depend-on): Remove minmax.
63096
63097 2007-03-06  Bruno Haible  <bruno@clisp.org>
63098
63099         * modules/snprintf-posix-tests: New file.
63100         * tests/test-snprintf-posix.c: New file.
63101
63102         * modules/snprintf-posix: New file.
63103         * m4/snprintf-posix.m4: New file.
63104         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63105         gl_FUNC_SNPRINTF.
63106         (gl_FUNC_SNPRINTF): Invoke it.
63107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63108         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63109         is set.
63110         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63111
63112 2007-03-06  Bruno Haible  <bruno@clisp.org>
63113
63114         * modules/vsnprintf-posix-tests: New file.
63115         * tests/test-vsnprintf-posix.c: New file.
63116         * tests/test-snprintf-posix.h: New file.
63117
63118         * modules/vsnprintf-posix: New file.
63119         * m4/vsnprintf-posix.m4: New file.
63120         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63121         gl_FUNC_VSNPRINTF.
63122         (gl_FUNC_VSNPRINTF): Invoke it.
63123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63124         * lib/stdio_.h (vsnprintf): Define as a replacement if
63125         REPLACE_VSNPRINTF is set.
63126         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63127
63128 2007-03-06  Bruno Haible  <bruno@clisp.org>
63129
63130         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63131         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63132
63133 2007-03-06  Bruno Haible  <bruno@clisp.org>
63134
63135         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63136         (asinl): Declare also if HAVE_DECL_ASINL is set.
63137         (atanl): Declare also if HAVE_DECL_ATANL is set.
63138         (ceill): Declare also if HAVE_DECL_CEILL is set.
63139         (cosl): Declare also if HAVE_DECL_COSL is set.
63140         (expl): Declare also if HAVE_DECL_EXPL is set.
63141         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63142         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63143         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63144         (logl): Declare also if HAVE_DECL_LOGL is set.
63145         (sinl): Declare also if HAVE_DECL_SINL is set.
63146         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63147         (tanl): Declare also if HAVE_DECL_TANL is set.
63148         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63150         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63151         declaration of frexpl, ldexpl.
63152         * modules/printf-frexpl (Depends-on): Add math.
63153         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63154
63155 2007-03-05  Bruno Haible  <bruno@clisp.org>
63156
63157         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63158         frexpl and ldexpl are declared.
63159         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63160
63161 2007-03-05  Bruno Haible  <bruno@clisp.org>
63162
63163         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63164         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63165
63166 2007-03-05  Bruno Haible  <bruno@clisp.org>
63167
63168         * lib/stdio_.h: Include <stddef.h>.
63169
63170 2007-03-05  Bruno Haible  <bruno@clisp.org>
63171
63172         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63173
63174 2007-03-05  Bruno Haible  <bruno@clisp.org>
63175
63176         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63177         NetBSD 4, from Ralf Wildenhues.
63178
63179 2007-03-04  Bruno Haible  <bruno@clisp.org>
63180
63181         * lib/vasprintf.h: Update #if logic for the case when the functions
63182         exist but are overridden.
63183
63184 2007-03-04  Bruno Haible  <bruno@clisp.org>
63185
63186         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63187         implementations: glibc-2.4 and MacOS X 10.3.
63188         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63189         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63190         * tests/test-vasprintf-posix.c (test_function): Likewise.
63191
63192 2007-03-04  Bruno Haible  <bruno@clisp.org>
63193
63194         * modules/vasprintf-posix-tests: New file.
63195         * tests/test-vasprintf-posix.c: New file.
63196
63197         * modules/vasprintf-posix: New file.
63198         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63199         defined.
63200         * m4/vasprintf-posix.m4: New file.
63201         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63202         gl_FUNC_VASPRINTF.
63203         (gl_FUNC_VASPRINTF): Invoke it.
63204         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63205         here.
63206         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63207
63208 2007-03-04  Bruno Haible  <bruno@clisp.org>
63209
63210         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63211         REPLACE_GETTIMEOFDAY.
63212         * modules/sys_time (Makefile.am): Likewise.
63213         * m4/sys_time_h.m4: Likewise.
63214         * m4/gettimeofday.m4: Likewise.
63215
63216 2007-03-04  Bruno Haible  <bruno@clisp.org>
63217
63218         * modules/vasnprintf-posix-tests: New file.
63219         * tests/test-vasnprintf-posix.c: New file.
63220
63221         * modules/vasnprintf-posix: New file.
63222         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63223         printf-frexpl.h.
63224         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63225         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63226         REPLACE_VASNPRINTF is defined.
63227         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63228         gl_FUNC_VASNPRINTF.
63229         (gl_FUNC_VASNPRINTF): Invoke it.
63230         * m4/vasnprintf-posix.m4: New file.
63231         * m4/printf.m4: New file.
63232
63233 2007-03-04  Bruno Haible  <bruno@clisp.org>
63234
63235         Compile progreloc.c only if --enable-relocatable is specified.
63236         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63237         if --enable-relocatable was specified.
63238         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63239         lib_SOURCES.
63240
63241 2007-03-04  Jim Meyering  <jim@meyering.net>
63242
63243         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63244         Use it consistently, rather than enumerating errno constants.
63245
63246 2007-03-04  Bruno Haible  <bruno@clisp.org>
63247
63248         * modules/xvasprintf-tests: New file.
63249         * tests/test-xvasprintf.c: New file.
63250
63251         * modules/vasprintf-tests: New file.
63252         * tests/test-vasprintf.c: New file.
63253
63254         * modules/vasnprintf-tests: New file.
63255         * tests/test-vasnprintf.c: New file.
63256
63257         * modules/vsnprintf-tests: New file.
63258         * tests/test-vsnprintf.c: New file.
63259
63260         * modules/snprintf-tests: New file.
63261         * tests/test-snprintf.c: New file.
63262
63263 2007-03-04  Bruno Haible  <bruno@clisp.org>
63264
63265         Compile relocatable.c only if --enable-relocatable is specified.
63266         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63267         gl_RELOCATABLE_LIBRARY.
63268         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63269         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63270         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63271         gl_RELOCATABLE_LIBRARY.
63272         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63273         (Makefile.am): Remove lib_SOURCES.
63274         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63275         gl_RELOCATABLE_LIBRARY.
63276         (Makefile.am): Remove lib_SOURCES.
63277         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63278         always.
63279         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63280         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63281
63282 2007-03-04  Bruno Haible  <bruno@clisp.org>
63283
63284         * modules/argmatch-tests: New file.
63285         * tests/test-argmatch.c: New file.
63286
63287         * tests/test-allocsa.c (main): Halve the number of loop runs.
63288
63289         * modules/alloca-opt-tests: New file.
63290         * tests/test-alloca-opt.c: New file.
63291
63292 2007-03-04  Jim Meyering  <jim@meyering.net>
63293
63294         Work around difference between Linux ACLs and Solaris 10 ZFS.
63295         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63296         for EINVAL.
63297
63298 2007-03-03  Bruno Haible  <bruno@clisp.org>
63299
63300         * modules/relocatable-prog (Depends-on): Add back progreloc's
63301         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63302
63303 2007-03-03  Bruno Haible  <bruno@clisp.org>
63304
63305         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63306         * modules/relocatable-lib: New file.
63307
63308 2007-03-03  Bruno Haible  <bruno@clisp.org>
63309
63310         * modules/relocatable-prog: Renamed from modules/relocatable.
63311         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63312
63313 2007-03-03  Bruno Haible  <bruno@clisp.org>
63314
63315         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63316         m4/relocatable-lib.m4.
63317         (Depends-on): Remove 'relocatable'.
63318         (configure.ac): Add gl_RELOCATABLE_NOP.
63319
63320 2007-03-03  Bruno Haible  <bruno@clisp.org>
63321
63322         * modules/relocatable-prog-wrapper: New file.
63323         * modules/relocatable (Depends-on): Add it. Remove all other
63324         dependencies except progname.
63325         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63326
63327         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63328         (gl_FUNC_STRERROR): Nop.
63329         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63330
63331         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63332         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63333
63334         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63335         (gl_FUNC_READLINK): Update.
63336
63337         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63338
63339 2007-03-03  Bruno Haible  <bruno@clisp.org>
63340
63341         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63342         * modules/xreadlink (Depends-on): Add unistd.
63343         * modules/xreadlink-with-size (Depends-on): Likewise.
63344
63345 2007-03-03  Bruno Haible  <bruno@clisp.org>
63346
63347         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63348         extracted from gt_FUNC_SETENV.
63349         (gt_FUNC_SETENV): Remove macro.
63350         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63351         remove gt_FUNC_SETENV.
63352
63353 2007-03-03  Bruno Haible  <bruno@clisp.org>
63354
63355         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63356         ENABLE_RELOCATABLE here.
63357         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63358
63359 2007-03-03  Bruno Haible  <bruno@clisp.org>
63360
63361         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63362         * tests/test-rbtreehash_list.c: Include progname.h.
63363         (main): Call set_program_name.
63364
63365         * modules/rbtree-oset-tests (Depends-on): Add progname.
63366         * tests/test-rbtree_oset.c: Include progname.h.
63367         (main): Call set_program_name.
63368
63369         * modules/rbtree-list-tests (Depends-on): Add progname.
63370         * tests/test-rbtree_list.c: Include progname.h.
63371         (main): Call set_program_name.
63372
63373         * modules/linked-list-tests (Depends-on): Add progname.
63374         * tests/test-linked_list.c: Include progname.h.
63375         (main): Call set_program_name.
63376
63377 2007-03-03  Bruno Haible  <bruno@clisp.org>
63378
63379         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63380         All uses of __restrict changed to _Restrict_.
63381         * lib/glob_.h (__restrict): Remove macro.
63382
63383 2007-03-02  Bruno Haible  <bruno@clisp.org>
63384
63385         * modules/gettext (configure.ac): Require gettext infrastructure
63386         from version 0.16.1.
63387
63388 2007-03-02  Bruno Haible  <bruno@clisp.org>
63389
63390         * modules/linkedhash-list-tests (Depends-on): Add progname.
63391         * tests/test-linkedhash_list.c: Include progname.h.
63392         (main): Call set_program_name.
63393
63394         * modules/carray-list-tests (Depends-on): Add progname.
63395         * tests/test-carray_list.c: Include progname.h.
63396         (main): Call set_program_name.
63397
63398         * modules/avltreehash-list-tests (Depends-on): Add progname.
63399         * tests/test-avltreehash_list.c: Include progname.h.
63400         (main): Call set_program_name.
63401
63402         * modules/avltree-oset-tests (Depends-on): Add progname.
63403         * tests/test-avltree_oset.c: Include progname.h.
63404         (main): Call set_program_name.
63405
63406         * modules/avltree-list-tests (Depends-on): Add progname.
63407         * tests/test-avltree_list.c: Include progname.h.
63408         (main): Call set_program_name.
63409
63410         * modules/array-oset-tests (Depends-on): Add progname.
63411         * tests/test-array_oset.c: Include progname.h.
63412         (main): Call set_program_name.
63413
63414         * modules/array-list-tests (Depends-on): Add progname.
63415         * tests/test-array_list.c: Include progname.h.
63416         (main): Call set_program_name.
63417
63418         * modules/argp-tests (Depends-on): Add progname.
63419         * tests/test-argp.c: Include argp.h first. Include progname.h.
63420         (main): Call set_program_name.
63421
63422 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63423
63424         * doc/gnulib-tool.texi (Initial import): Reword description of
63425         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63426         limited effect even if defined after the first system include.
63427
63428 2007-03-01  Bruno Haible  <bruno@clisp.org>
63429
63430         * build-aux/config.libpath: Update to libtool-1.5.22.
63431         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63432
63433 2007-03-01  Bruno Haible  <bruno@clisp.org>
63434
63435         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63436         foo_CFLAGS.
63437         Reported by Ralf Wildenhues.
63438
63439 2007-03-01  Bruno Haible  <bruno@clisp.org>
63440
63441         * build-aux/install-reloc: Remove object files left over by some
63442         compilers.
63443         Reported by Ralf Wildenhues.
63444
63445 2007-03-01  Bruno Haible  <bruno@clisp.org>
63446
63447         * build-aux/install-reloc: Break long lines.
63448
63449 2007-03-01  Bruno Haible  <bruno@clisp.org>
63450
63451         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63452         Reported by Ralf Wildenhues.
63453
63454 2007-03-01  Bruno Haible  <bruno@clisp.org>
63455
63456         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63457         include ordering constraints.
63458
63459 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63460
63461         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63462         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63463         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63464         as another example.
63465         * lib/time_.h: Fix misspelling.
63466         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63467         Require gl_HEADER_TIME_H_DEFAULTS.
63468         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63469         * m4/time_r.m4 (gl_TIME_R): Likewise.
63470         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63471
63472 2007-03-01  Bruno Haible  <bruno@clisp.org>
63473
63474         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63475         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63476
63477 2007-03-01  Jim Meyering  <jim@meyering.net>
63478
63479         * modules/xreadlink (Maintainer): Add my name.
63480         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63481
63482 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63483             Bruno Haible  <bruno@clisp.org>
63484
63485         * build-aux/install-reloc: Compile also c-ctype.c.
63486         * build-aux/relocatable.sh.in: New file.
63487         * doc/relocatable.texi: New file.
63488         * doc/relocatable-maint.texi: New file.
63489         * doc/gnulib.texi: Include relocatable-maint.texi.
63490         * lib/progreloc.c: Include unistd.h unconditionally.
63491         * lib/relocwrapper.c: Include unistd.h unconditionally.
63492         Include c-ctype.h.
63493         (add_dotbin): Use c_tolower.
63494         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63495         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63496         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63497         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63498         to m4/relocatable-lib.m4.
63499         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63500         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63501         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63502         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63503         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63504         * modules/relocatable: New file.
63505         * modules/relocatable-lib: New file.
63506         * modules/relocatable-script: New file.
63507
63508 2007-02-28  Bruno Haible  <bruno@clisp.org>
63509
63510         Import --enable-relocatable infrastructure.
63511         * build-aux/config.libpath: New file, from GNU gettext.
63512         * build-aux/install-reloc: New file, from GNU gettext.
63513         * build-aux/reloc-ldflags: New file, from GNU gettext.
63514         * lib/relocatable.h: New file, from GNU gettext.
63515         * lib/relocatable.c: New file, from GNU gettext.
63516         * lib/relocwrapper.c: New file, from GNU gettext.
63517         * m4/relocatable.m4: New file, from GNU gettext.
63518
63519 2007-02-28  Bruno Haible  <bruno@clisp.org>
63520
63521         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63522
63523         * modules/xreadlink: New file, from GNU gettext with modifications.
63524         * lib/xreadlink.c: New file, from GNU gettext.
63525         * lib/xreadlink.h: Add comments.
63526         (xreadlink): New declaration.
63527
63528         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63529         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63530         lib/xreadlink-with-size.c.
63531         (configure.ac): Remove gl_XREADLINK invocation.
63532         (Makefile.am): Augment lib_SOURCES.
63533         * m4/xreadlink.m4: Remove file.
63534         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63535         (xreadlink_with_size): Renamed from xreadink.
63536         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63537         * modules/canonicalize (Depends-on): Replace xreadlink with
63538         xreadlink-with-size.
63539         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63540
63541 2007-02-25  Jim Meyering  <jim@meyering.net>
63542
63543         * build-aux/announce-gen: When complaining about excess arguments,
63544         list them.
63545
63546 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63547
63548         * README: Document signed integer overflow situation more
63549         accurately.
63550
63551 2007-02-25  Bruno Haible  <bruno@clisp.org>
63552
63553         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63554         'a' or 'A' conversion.
63555
63556 2007-02-25  Bruno Haible  <bruno@clisp.org>
63557
63558         * modules/filename: Renamed from modules/pathname.
63559         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63560         lib/concatpath.c with lib/concat-filename.c.
63561         (Makefile.am): Update.
63562         (Include): Replace pathname.h with filename.h.
63563         * lib/filename.h: Renamed from lib/pathname.h.
63564         (concatenated_filename): Renamed from concatenated_pathname.
63565         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63566         (concatenated_filename): Renamed from concatenated_pathname.
63567         * lib/findprog.c: Include filename.h instead of pathname.h.
63568         (find_in_path): Update.
63569         * lib/javacomp.c: Include filename.h instead of pathname.h.
63570         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63571         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63572         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63573         is_oldgcj_14_13_usable, is_javac_usable): Update.
63574         * lib/javaexec.c: Include filename.h instead of pathname.h.
63575         (execute_java_class): Update.
63576         * modules/findprog: Update.
63577         * modules/javacomp: Update.
63578         * modules/javaexec: Update.
63579         * MODULES.html.sh (File system functions): Add 'filename', remove
63580         'pathname'.
63581
63582 2007-02-25  Bruno Haible  <bruno@clisp.org>
63583
63584         * modules/printf-frexpl-tests: New file.
63585         * tests/test-printf-frexpl.c: New file.
63586
63587         * modules/printf-frexpl: New file.
63588         * lib/printf-frexpl.h: New file.
63589         * lib/printf-frexpl.c: New file.
63590         * m4/printf-frexpl.m4: New file.
63591
63592 2007-02-25  Bruno Haible  <bruno@clisp.org>
63593
63594         * modules/printf-frexp-tests: New file.
63595         * tests/test-printf-frexp.c: New file.
63596
63597         * modules/printf-frexp: New file.
63598         * lib/printf-frexp.h: New file.
63599         * lib/printf-frexp.c: New file.
63600         * m4/printf-frexp.m4: New file.
63601
63602 2007-02-25  Bruno Haible  <bruno@clisp.org>
63603
63604         Assume automake >= 1.10 for the tests.
63605         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63606         * modules/arctwo-tests: Likewise.
63607         * modules/argp-tests: Likewise.
63608         * modules/avltree-list-tests: Likewise.
63609         * modules/avltree-oset-tests: Likewise.
63610         * modules/avltreehash-list-tests: Likewise.
63611         * modules/carray-list-tests: Likewise.
63612         * modules/crc-tests: Likewise.
63613         * modules/des-tests: Likewise.
63614         * modules/gc-arcfour-tests: Likewise.
63615         * modules/gc-arctwo-tests: Likewise.
63616         * modules/gc-des-tests: Likewise.
63617         * modules/gc-hmac-md5-tests: Likewise.
63618         * modules/gc-hmac-sha1-tests: Likewise.
63619         * modules/gc-md2-tests: Likewise.
63620         * modules/gc-md4-tests: Likewise.
63621         * modules/gc-md5-tests: Likewise.
63622         * modules/gc-pbkdf2-sha1-tests: Likewise.
63623         * modules/gc-rijndael-tests: Likewise.
63624         * modules/gc-sha1-tests: Likewise.
63625         * modules/gc-tests: Likewise.
63626         * modules/getaddrinfo-tests: Likewise.
63627         * modules/hmac-md5-tests: Likewise.
63628         * modules/hmac-sha1-tests: Likewise.
63629         * modules/linked-list-tests: Likewise.
63630         * modules/linkedhash-list-tests: Likewise.
63631         * modules/lock-tests: Likewise.
63632         * modules/md2-tests: Likewise.
63633         * modules/md4-tests: Likewise.
63634         * modules/md5-tests: Likewise.
63635         * modules/rbtree-list-tests: Likewise.
63636         * modules/rbtree-oset-tests: Likewise.
63637         * modules/rbtreehash-list-tests: Likewise.
63638         * modules/read-file-tests: Likewise.
63639         * modules/rijndael-tests: Likewise.
63640         * modules/stdint-tests: Likewise.
63641         * modules/tls-tests: Likewise.
63642
63643 2007-02-24  Bruno Haible  <bruno@clisp.org>
63644
63645         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63646         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63647         function; instead check whether isnan with a double argument links.
63648         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63649         function; instead check whether isnan with a 'long double' argument
63650         links.
63651         Reported by Eric Blake <ebb9@byu.net>.
63652
63653 2007-02-24  Bruno Haible  <bruno@clisp.org>
63654
63655         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63656         defined.
63657         * lib/isnanl.c: Remove all code. Just include isnan.c.
63658         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63659
63660 2007-02-25  Jim Meyering  <jim@meyering.net>
63661
63662         Avoid conflicting types for 'unsetenv' on FreeBSD.
63663         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63664         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63665         in stdlib.h.
63666
63667 2007-02-24  Bruno Haible  <bruno@clisp.org>
63668
63669         * modules/isnanl-nolibm-tests: New file.
63670         * tests/test-isnanl.c: New file.
63671
63672         * modules/isnanl-nolibm: New file.
63673         * lib/isnanl.h: New file.
63674         * lib/isnanl.c: New file.
63675         * m4/isnanl.m4: New file.
63676
63677 2007-02-24  Bruno Haible  <bruno@clisp.org>
63678
63679         * modules/isnan-nolibm-tests: New file.
63680         * tests/test-isnan.c: New file.
63681
63682         * modules/isnan-nolibm: New file.
63683         * lib/isnan.h: New file.
63684         * lib/isnan.c: New file.
63685         * m4/isnan.m4: New file.
63686
63687 2007-02-24  Bruno Haible  <bruno@clisp.org>
63688
63689         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63690         assume that an exponent fits in 20 bits.
63691
63692 2007-02-24  Jim Meyering  <jim@meyering.net>
63693
63694         * m4/regex.m4: Update the description of the configure-time option,
63695         --without-included-regex, to state accurately what the defaults are,
63696         and perhaps to give people an idea why using this option is risky.
63697
63698 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63699
63700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63701         loops on small arguments.  This attempts to avoid the problem
63702         Bruno Haible reported for AIX 4.3.2 in
63703         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63704
63705 2007-02-23  Bruno Haible  <bruno@clisp.org>
63706
63707         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63708         Needed for help2man.
63709
63710 2007-02-23  Karl Berry  <karl@gnu.org>
63711
63712         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63713         exists, foo.h should be cvs-ignored, not committed.
63714
63715 2007-02-23  Eric Blake  <ebb9@byu.net>
63716
63717         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63718         * lib/stat-time.h (includes): Likewise.
63719         * lib/utimecmp.c (includes): Likewise.
63720         * lib/utimens.h (includes): Likewise.
63721         * lib/getdate.y (includes): Also include "timespec.h" for use
63722         internal to the module.
63723         * modules/utimens (Depends-on): Revert yesterday's patch.
63724         * modules/nanosleep (Depends-on): Add missing dependency.
63725
63726 2007-02-22  Bruno Haible  <bruno@clisp.org>
63727
63728         * lib/glob.c: Don't include getlogin_r.h.
63729
63730 2007-02-22  Jim Meyering  <jim@meyering.net>
63731
63732         * modules/utimens (Depends-on): Add timespec, required for
63733         utimens.h's inclusion of timespec.h.
63734
63735 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63736
63737         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63738         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63739         Schwab in
63740         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63741         I'll try to think of a better way to fix the Solaris problem.
63742
63743         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63744         like glibc; on Solaris 10, it fails with errno == EINVAL.
63745         POSIX says the behavior is unspecified if the first argument is NULL,
63746         so play it safe and never pass NULL to the system getcwd.
63747
63748 2007-02-21  Jim Meyering  <jim@meyering.net>
63749
63750         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63751         of gettimeofday.  It would conflict with the one now always
63752         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63753         an IRIX 6.5 build failure.
63754
63755 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63756
63757         Minor fixups to port to Solaris 10 with Sun C 5.8.
63758         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63759         * modules/getcwd (Depends-on): Add dirfd.
63760         * lib/putenv.c (putenv): #undef it.
63761         (rpl_putenv): New decl.
63762         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63763
63764 2007-02-20  Bruno Haible  <bruno@clisp.org>
63765
63766         * modules/stdio-tests: New file.
63767         * tests/test-stdio.c: New file.
63768
63769         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63770         (Depends-on): Add stdio.
63771         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63772         (Include): Use <stdio.h> instead of vsnprintf.h.
63773         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63774         HAVE_DECL_VSNPRINTF.
63775         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63776
63777         * modules/snprintf (Files): Remove lib/snprintf.h.
63778         (Depends-on): Add stdio.
63779         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63780         (Include): Use <stdio.h> instead of snprintf.h.
63781         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63782         HAVE_DECL_SNPRINTF.
63783         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63784         * lib/getaddrinfo.c: Likewise.
63785
63786         * modules/stdio: New file.
63787         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63788         * lib/snprintf.h: Remove file.
63789         * lib/vsnprintf.h: Remove file.
63790         * lib/.cppi-disable: Remove snprintf.h.
63791         * m4/stdio_h.m4: New file.
63792         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63793
63794 2007-02-20  Jim Meyering  <jim@meyering.net>
63795
63796         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63797         used by e.g., mingw.  From Bruno Haible.
63798
63799 2007-02-19  Bruno Haible  <bruno@clisp.org>
63800
63801         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63802         warnings.
63803         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63804
63805 2007-02-19  Bruno Haible  <bruno@clisp.org>
63806
63807         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63808         from mingw users.
63809
63810 2007-02-19  Bruno Haible  <bruno@clisp.org>
63811
63812         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63813         warnings.
63814         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63815
63816 2007-02-19  Jim Meyering  <jim@meyering.net>
63817
63818         Don't use FD after a successful "fdopendir (fd)".
63819         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63820         Reset it by calling dirfd on the just-obtained DIR*.
63821
63822         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63823         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63824
63825 2007-02-18  Bruno Haible  <bruno@clisp.org>
63826
63827         * lib/readlink.c: Include <unistd.h>.
63828         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63829         HAVE_READLINK.
63830         * modules/readlink (Depends-on): Add unistd.
63831         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63832         (Include): Add <unistd.h>.
63833
63834         * lib/getlogin_r.h: Remove file.
63835         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63836         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63837         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63838         HAVE_DECL_GETLOGIN_R.
63839         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63840         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63841         (Include): Use <unistd.h> instead of getlogin_r.h.
63842
63843         * lib/getcwd.h: Remove file.
63844         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63845         * lib/xgetcwd.c: Likewise.
63846         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63847         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63848         * modules/getcwd (Files): Remove lib/getcwd.h.
63849         (Depends-on): Add unistd.
63850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63851         (Include): Use <unistd.h> instad of getcwd.h.
63852
63853         * lib/ftruncate.c: Include <unistd.h> first.
63854         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63855         Set HAVE_FTRUNCATE.
63856         * modules/ftruncate (Depends-on): Add unistd.
63857         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63858
63859         * lib/fchdir.c: Include <unistd.h> first.
63860         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63861         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63862         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63863         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63864         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63865
63866         * lib/dup2.c: Include <unistd.h> first.
63867         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63868         HAVE_DUP2.
63869         * modules/dup2 (Depends-on): Add unistd.
63870         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63871
63872         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63873         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63874         REPLACE_CHOWN. Don't define chown as a macro here.
63875         * modules/chown (Depends-on): Add unistd.
63876         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63877
63878         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63879         Add definition for GL_LINK_WARNING.
63880         (chown, dup2): New declarations.
63881         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63882         link warning.
63883         (ftruncate): New declaration.
63884         (getcwd): New declaration, taken from old getcwd.h.
63885         (getlogin_r): New declaration, taken from old getlogin_r.h.
63886         (readlink): New declaration.
63887         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63888         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63889         (gl_PREREQ_UNISTD): Remove macro.
63890         (gl_UNISTD_MODULE_INDICATOR): New macro.
63891         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63892         many new variables. Don't set UNISTD_H.
63893         * modules/unistd (Description): Change.
63894         (Depends-on): Add link-warning.
63895         (configure.ac): Update.
63896         (Makefile.am): Create unistd.h always. Substitute many new variables
63897         into it.
63898
63899 2007-02-18  Bruno Haible  <bruno@clisp.org>
63900
63901         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63902         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63903         HAVE_GETSUBOPT.
63904         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63905         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63906         * lib/getsubopt.h: Remove file.
63907         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63908         (Depends-on): Add stdlib.
63909         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63910         (Includes): Use <stdlib.h> instead of getsubopt.h.
63911         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63912         Set HAVE_GETSUBOPT.
63913         * lib/getsubopt.c: Don't include getsubopt.h.
63914
63915 2007-02-18  Bruno Haible  <bruno@clisp.org>
63916
63917         * modules/fchdir (Depends-on): Add dup2.
63918
63919 2007-02-18  Bruno Haible  <bruno@clisp.org>
63920
63921         * lib/stdlib_.h: Handle glibc's special invocation convention
63922         specially.
63923
63924 2007-02-18  Bruno Haible  <bruno@clisp.org>
63925
63926         * modules/stdlib-tests: New file.
63927         * tests/test-stdlib.c: New file.
63928
63929         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63930         (Depends-on): Add stdlib.
63931         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63932         (Includes): Use <stdlib.h> instead of mkstemp.h.
63933         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63934         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63935         * lib/mkstemp.c: Don't include mkstemp.h.
63936         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63937         * lib/stdlib--.h: Don't include mkstemp.h.
63938
63939         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63940         (Depends-on): Add stdlib.
63941         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63942         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63943         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63944         HAVE_MKDTEMP.
63945         * lib/mkdtemp.c: Don't include mkdtemp.h.
63946         * lib/clean-temp.c: Don't include mkdtemp.h.
63947
63948         * modules/exit (Files): Remove lib/exit.h.
63949         (Depends-on): Add stdlib.
63950         (Makefile.am): Remove lib_SOURCES.
63951         (Include): Use <stdlib.h> instead of exit.h.
63952         * lib/argmatch.c: Don't include exit.h.
63953         * lib/execute.c: Likewise.
63954         * lib/pagealign_alloc.c: Likewise.
63955         * lib/pipe.c: Likewise.
63956         * lib/wait-process.c: Likewise.
63957         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63958         * lib/exitfail.c: Likewise.
63959         * lib/savewd.c: Likewise.
63960         * lib/xsetenv.c: Likewise.
63961
63962         * modules/stdlib: New file.
63963         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63964         and extra comments about mkstemp().
63965         * lib/exit.h: Remove file.
63966         * lib/mkdtemp.h: Remove file.
63967         * lib/mkstemp.h: Remove file.
63968         * m4/stdlib_h.m4: New file.
63969         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63970
63971 2007-02-18  Bruno Haible  <bruno@clisp.org>
63972
63973         * modules/math-tests: New file.
63974         * tests/test-math.c: New file.
63975
63976         * modules/math: New file.
63977         * modules/mathl (Files): Remove lib/mathl.h.
63978         (Depends-on): Add math.
63979         (Makefile.am): Don't mention mathl.h.
63980         (Include): Use <math.h> instead of mathl.h.
63981         * lib/math_.h: New file.
63982         * lib/mathl.h: Remove file.
63983         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63984         mathl.h.
63985         * lib/asinl.c: Likewise.
63986         * lib/atanl.c: Likewise.
63987         * lib/ceill.c: Likewise.
63988         * lib/cosl.c: Likewise.
63989         * lib/expl.c: Likewise.
63990         * lib/floorl.c: Likewise.
63991         * lib/frexpl.c: Likewise.
63992         * lib/ldexpl.c: Likewise.
63993         * lib/logl.c: Likewise.
63994         * lib/sincosl.c: Likewise.
63995         * lib/sinl.c: Likewise.
63996         * lib/sqrtl.c: Likewise.
63997         * lib/tanl.c: Likewise.
63998         * lib/trigl.c: Likewise.
63999         * m4/math_h.m4: New file.
64000         * MODULES.html.sh (Mathematics): Add math.
64001
64002 2007-02-17  Bruno Haible  <bruno@clisp.org>
64003
64004         * modules/wctype-tests: New file.
64005         * tests/test-wctype.c: New file.
64006
64007         * modules/wchar-tests: New file.
64008         * tests/test-wchar.c: New file.
64009
64010         * modules/unistd-tests: New file.
64011         * tests/test-unistd.c: New file.
64012
64013         * modules/time-tests: New file.
64014         * tests/test-time.c: New file.
64015
64016         * modules/sysexits-tests: New file.
64017         * tests/test-sysexits.c: New file.
64018
64019         * modules/sys_time-tests: New file.
64020         * tests/test-sys_time.c: New file.
64021
64022         * modules/sys_stat-tests: New file.
64023         * tests/test-sys_stat.c: New file.
64024
64025         * modules/sys_socket-tests: New file.
64026         * tests/test-sys_socket.c: New file.
64027
64028         * modules/sys_select-tests: New file.
64029         * tests/test-sys_select.c: New file.
64030
64031         * modules/string-tests: New file.
64032         * tests/test-string.c: New file.
64033
64034         * modules/stdbool-tests: New file.
64035         * tests/test-stdbool.c: New file.
64036
64037         * modules/netinet_in-tests: New file.
64038         * tests/test-netinet_in.c: New file.
64039
64040         * modules/inttypes-tests: New file.
64041         * tests/test-inttypes.c: New file.
64042
64043         * modules/fcntl-tests: New file.
64044         * tests/test-fcntl.c: New file.
64045
64046         * modules/byteswap-tests: New file.
64047         * tests/test-byteswap.c: New file.
64048
64049         * modules/arpa_inet-tests: New file.
64050         * tests/test-arpa_inet.c: New file.
64051
64052 2007-02-17  Bruno Haible  <bruno@clisp.org>
64053
64054         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64055         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64056         if the corresponding module is not enabled. Emit link warnings if
64057         the function is used nevertheless.
64058         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64059         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64060         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64061         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64062         * modules/inttypes (Depends-on): Add link-warning.
64063         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64064         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64065         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64066         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64067         * modules/imaxdiv (configure.ac): Likewise.
64068         * modules/strtoimax (configure.ac): Likewise.
64069         * modules/strtoumax (configure.ac): Likewise.
64070
64071 2007-02-17  Bruno Haible  <bruno@clisp.org>
64072
64073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64074         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64075         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64076         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64077
64078 2007-02-17  Bruno Haible  <bruno@clisp.org>
64079
64080         * modules/link-warning: New file.
64081         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64082         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64083         * modules/string (Depends-on): Add link-warning.
64084         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64085         string.h.
64086         * MODULES.html.sh (Support for building libraries and executables): Add
64087         link-warning.
64088
64089 2007-02-17  Bruno Haible  <bruno@clisp.org>
64090
64091         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64092         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64093         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64094         long lines.
64095
64096 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64097             Bruno Haible  <bruno@clisp.org>
64098
64099         * modules/tmpfile: New file.
64100         * lib/tmpfile.c: New file.
64101         * m4/tmpfile.m4: New file.
64102         * MODULES.html.sh (func_all_modules): New section "Input/output".
64103
64104 2007-02-15  Bruno Haible  <bruno@clisp.org>
64105
64106         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64107         (supports_delete_on_close): New function.
64108         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64109
64110 2007-02-14  Bruno Haible  <bruno@clisp.org>
64111
64112         * modules/mbspcasecmp-tests: New file.
64113         * tests/test-mbspcasecmp.sh: New file.
64114         * tests/test-mbspcasecmp.c: New file.
64115
64116         New module mbspcasecmp.
64117         * modules/mbspcasecmp: New file.
64118         * lib/mbspcasecmp.c: New file.
64119         * lib/string_.h (strncasecmp): Change warning message.
64120         (mbspcasecmp): New declaration.
64121         * m4/mbspcasecmp.m4: New file.
64122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64123         GNULIB_MBSPCASECMP.
64124         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64125         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64126
64127 2007-02-14  Bruno Haible  <bruno@clisp.org>
64128
64129         * modules/mbsncasecmp-tests: New file.
64130         * tests/test-mbsncasecmp.sh: New file.
64131         * tests/test-mbsncasecmp.c: New file.
64132
64133         New module mbsncasecmp.
64134         * modules/mbsncasecmp: New file.
64135         * lib/mbsncasecmp.c: New file.
64136         * lib/string_.h (mbsncasecmp): New declaration.
64137         * m4/mbsncasecmp.m4: New file.
64138         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64139         GNULIB_MBSNCASECMP.
64140         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64141         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64142
64143 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64144
64145         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64146         Verify that it doesn't overlap with our flags.
64147         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64148         do not have the desired effect in multibyte locales; instead, use
64149         mbscasecmp.
64150         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64151         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64152         we don't require GNU fnmatch ourselves (if our users require it, they
64153         should do so explicitly).
64154
64155         Fix regex code so it doesn't rely on strcasecmp.
64156         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64157         Otherwise, include gnulib's langinfo.h.
64158         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64159         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64160         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64161         * modules/regex (FILES): Remove m4/codeset.m4.
64162         (Depends-on): Add localcharset.  Remove strcase.
64163
64164 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64165
64166         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64167         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64168
64169 2007-02-13  Bruno Haible  <bruno@clisp.org>
64170
64171         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64172         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64173
64174 2007-02-12  Bruno Haible  <bruno@clisp.org>
64175
64176         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64177         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64178         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64179         time warning rather than a link error.
64180
64181 2007-02-12  Bruno Haible  <bruno@clisp.org>
64182
64183         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64184         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64185         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64186
64187 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64188
64189         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64190         args, not 2.
64191
64192 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64193
64194         New module 'time', so that apps can include <time.h> as per
64195         POSIX and GNU instead of separate include files like time_r.h
64196         and timegm.h.  This implementation tries out a simpler approach
64197         for replacing decls in standard include files (as compared to
64198         the string module), somewhat as an experiment.
64199
64200         * config/srclist.txt: Comment out mktime.c for now.
64201         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64202         since it doesn't apply any more.  Use generic wording instead.
64203         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64204         'time'.
64205         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64206         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64207         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64208         Don't include <sys/types.h>; no longer needed since we assume C89.
64209         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64210         * lib/strftime.c: Likewise.
64211         * lib/time_r.c: Likewise.
64212         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64213         * lib/nanosleep.c: Include <time.h> first, to check interface.
64214         * lib/strptime.c: Likewise.
64215         * lib/time_r.c: Likewise.
64216         * lib/timegm.c: Likewise.
64217         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64218         needed.
64219         * lib/timegm.c: Don't include timegm.h; no longer needed.
64220         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64221         time.h now handles any problems in that area.
64222         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64223         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64224         that time.h defines struct timespec.
64225         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64226         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64227         handles that.
64228         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64229         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64230         needed.  Set REPLACE_LOCALTIME.
64231         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64232         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64233         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64234         nanosleep; time_h.m4 now does that.  Don't require
64235         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64236         module handles this now.
64237         * modules/getdate (Depends-on): Remove timespec.  Add time.
64238         * modules/nanosleep (Depends-on): Likewise.
64239         * modules/stat-time (Depends-on): Likewise.
64240         * modules/nanosleep (Include): Include time.h, not timespec.h.
64241         * modules/strptime (Files): Remove lib/strptime.h.
64242         (Depends-on): Add extensions, time.
64243         (Include): Include time.h, not strptime.h.
64244         * modules/time_r (Files): Remove lib/time_r.h.
64245         (Depends-on): Add time.
64246         (Include): Include time.h, not time_r.h.
64247         * modules/timegm: Likewise.
64248         * modules/timespec (Description): Now does timespec-related decls
64249         of our own, instead of struct timespec itself.
64250         (Depends-on): Add time; remove extensions.
64251         (Maintainer): Add self.
64252         * modules/utimecmp (Depends-on): Add time; remove timespec.
64253         * modules/utimens (Depends-on): Likewise.
64254         * modules/xnanosleep (Depends-on): Likewise.
64255
64256 2007-02-11  Bruno Haible  <bruno@clisp.org>
64257
64258         * lib/c-strstr.c: Include allocsa.h.
64259         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64260         * lib/c-strcasestr.c: Include allocsa.h.
64261         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64262         * lib/strcasestr.c: Include allocsa.h.
64263         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64264         * lib/mbsstr.c: Include allocsa.h.
64265         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64266         allocsa/freesa instead of malloc/free.
64267         * lib/mbscasestr.c: Include allocsa.h.
64268         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64269         allocsa/freesa instead of malloc/free.
64270         * modules/c-strstr (Depends-on): Add allocsa.
64271         * modules/c-strcasestr (Depends-on): Likewise.
64272         * modules/strcasestr (Depends-on): Likewise.
64273         * modules/mbsstr (Depends-on): Likewise.
64274         * modules/mbscasestr (Depends-on): Likewise.
64275
64276 2007-02-11  Bruno Haible  <bruno@clisp.org>
64277
64278         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64279
64280         * modules/mbsspn-tests: New file.
64281         * tests/test-mbsspn.sh: New file.
64282         * tests/test-mbsspn.c: New file.
64283
64284 2007-02-11  Bruno Haible  <bruno@clisp.org>
64285
64286         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64287
64288         * modules/mbspbrk-tests: New file.
64289         * tests/test-mbspbrk.sh: New file.
64290         * tests/test-mbspbrk.c: New file.
64291
64292 2007-02-11  Bruno Haible  <bruno@clisp.org>
64293
64294         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64295         unneeded cast.
64296
64297         * modules/mbscspn-tests: New file.
64298         * tests/test-mbscspn.sh: New file.
64299         * tests/test-mbscspn.c: New file.
64300
64301 2007-02-11  Bruno Haible  <bruno@clisp.org>
64302
64303         * modules/mbscasecmp-tests: New file.
64304         * tests/test-mbscasecmp.sh: New file.
64305         * tests/test-mbscasecmp.c: New file.
64306
64307 2007-02-11  Bruno Haible  <bruno@clisp.org>
64308
64309         Ensure O(n) worst-case complexity of mbscasestr.
64310         * lib/mbscasestr.c: Include stdbool.h.
64311         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64312         functions.
64313         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64314         the bookkeeping indicates that it's worth it.
64315         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64316
64317         * modules/mbscasestr-tests: New file.
64318         * tests/test-mbscasestr1.c: New file.
64319         * tests/test-mbscasestr2.sh: New file.
64320         * tests/test-mbscasestr2.c: New file.
64321         * tests/test-mbscasestr3.sh: New file.
64322         * tests/test-mbscasestr3.c: New file.
64323         * tests/test-mbscasestr4.sh: New file.
64324         * tests/test-mbscasestr4.c: New file.
64325         * m4/locale-tr.m4: New file.
64326
64327 2007-02-11  Bruno Haible  <bruno@clisp.org>
64328
64329         Ensure O(n) worst-case complexity of mbsstr.
64330         * lib/mbsstr.c: Include stdbool.h.
64331         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64332         functions.
64333         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64334         bookkeeping indicates that it's worth it.
64335         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64336
64337         * modules/mbsstr-tests: New file.
64338         * tests/test-mbsstr1.c: New file.
64339         * tests/test-mbsstr2.sh: New file.
64340         * tests/test-mbsstr2.c: New file.
64341         * tests/test-mbsstr3.sh: New file.
64342         * tests/test-mbsstr3.c: New file.
64343         * m4/locale-fr.m4: New file.
64344
64345 2007-02-11  Bruno Haible  <bruno@clisp.org>
64346
64347         * lib/mbsrchr.c (mbsrchr): Fix bug.
64348
64349         * modules/mbsrchr-tests: New file.
64350         * tests/test-mbsrchr.sh: New file.
64351         * tests/test-mbsrchr.c: New file.
64352
64353 2007-02-11  Bruno Haible  <bruno@clisp.org>
64354
64355         * lib/mbschr.c (mbschr): Fix bug.
64356
64357         * modules/mbschr-tests: New file.
64358         * tests/test-mbschr.sh: New file.
64359         * tests/test-mbschr.c: New file.
64360         * m4/locale-zh.m4: New file.
64361
64362 2007-02-11  Bruno Haible  <bruno@clisp.org>
64363
64364         Support for copying multibyte string iterators.
64365         * lib/mbiter.h: Include <string.h>.
64366         (mbiter_multi_copy): New function.
64367         (mbi_copy): New macro.
64368         * lib/mbuiter.h: Include <string.h>.
64369         (mbuiter_multi_copy): New function.
64370         (mbui_copy): New macro.
64371
64372 2007-02-11  Bruno Haible  <bruno@clisp.org>
64373
64374         New module mbslen.
64375         * modules/mbslen: New file.
64376         * lib/mbslen.c: New file.
64377         * lib/string_.h (mbslen): New declaration.
64378         * m4/mbslen.m4: New file.
64379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64380         GNULIB_MBSLEN.
64381         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64382         * MODULES.html.sh (Internationalization functions): Add mbslen.
64383
64384 2007-02-11  Bruno Haible  <bruno@clisp.org>
64385
64386         Ensure O(n) worst-case complexity of strcasestr substitute.
64387         * lib/strcasestr.c: Include stdbool.h.
64388         (knuth_morris_pratt): New function.
64389         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64390         bookkeeping indicates that it's worth it.
64391         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64392
64393         * modules/strcasestr-tests: New file.
64394         * tests/test-strcasestr.c: New file.
64395
64396 2007-02-11  Bruno Haible  <bruno@clisp.org>
64397
64398         Ensure O(n) worst-case complexity of c_strcasestr.
64399         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64400         (knuth_morris_pratt): New function.
64401         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64402         the bookkeeping indicates that it's worth it.
64403         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64404
64405         * modules/c-strcasestr-tests: New file.
64406         * tests/test-c-strcasestr.c: New file.
64407
64408 2007-02-11  Bruno Haible  <bruno@clisp.org>
64409
64410         Ensure O(n) worst-case complexity of c_strstr.
64411         * lib/c-strstr.c: Include stdbool.h, string.h.
64412         (knuth_morris_pratt): New function.
64413         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64414         bookkeeping indicates that it's worth it.
64415         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64416
64417         * lib/c-strstr.c: Complete rewrite for maintainability.
64418
64419         * modules/c-strstr-tests: New file.
64420         * tests/test-c-strstr.c: New file.
64421
64422 2007-02-11  Bruno Haible  <bruno@clisp.org>
64423
64424         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64425         5.2.1 and earlier, whereby \055 was treated just like the range
64426         delimiter '-'.
64427         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64428
64429 2007-02-08  Bruno Haible  <bruno@clisp.org>
64430
64431         * modules/regex (Depends-on): Add stdbool.
64432         Reported by Dalibor Topic <robilad@kaffe.org>.
64433
64434 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64435
64436         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64437         Prefer returning from main to exiting from it.
64438         Remove unnecessary parens after sizeof.
64439
64440 2007-02-05  Bruno Haible  <bruno@clisp.org>
64441
64442         New module mbssep.
64443         * modules/mbssep: New file.
64444         * lib/mbssep.c: New file.
64445         * lib/string_.h (strsep): Add a conditional link warning.
64446         (mbssep): New declaration.
64447         * m4/mbssep.m4: New file.
64448         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64449         GNULIB_MBSSEP.
64450         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64451         * MODULES.html.sh (Internationalization functions): Add mbssep.
64452
64453 2007-02-05  Bruno Haible  <bruno@clisp.org>
64454
64455         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64456         Optimize search in case of 1 delimiter.
64457
64458 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64459
64460         * lib/acl.h: Include sys/types.h before sys/acl.h.
64461
64462 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64463
64464         Merge upstream fix for glibc bugzilla #3957:
64465
64466         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64467
64468         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64469         bit for RE_HAT_LISTS_NOT_NEWLINE.
64470         (build_charclass_op): Remove bogus comment.
64471
64472 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64473
64474         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64475
64476 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64477
64478         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64479         * lib/memmem.c [!defined _LIBC]: Include config.h.
64480
64481 2007-02-04  Bruno Haible  <bruno@clisp.org>
64482
64483         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64484         warning message.
64485
64486 2007-02-04  Bruno Haible  <bruno@clisp.org>
64487
64488         New module mbstok_r.
64489         * modules/mbstok_r: New file.
64490         * lib/mbstok_r.c: New file.
64491         * lib/string_.h (strtok_r): Change argument names to match the
64492         comments. Add a conditional link warning.
64493         (mbstok_r): New declaration.
64494         * m4/mbstok_r.m4: New file.
64495         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64496         GNULIB_MBSTOK_R.
64497         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64498         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64499
64500 2007-02-04  Bruno Haible  <bruno@clisp.org>
64501
64502         New module mbsspn.
64503         * modules/mbsspn: New file.
64504         * lib/mbsspn.c: New file.
64505         * lib/string_.h (strspn): Add a conditional link warning.
64506         (mbsspn): New declaration.
64507         * m4/mbsspn.m4: New file.
64508         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64509         GNULIB_MBSSPN.
64510         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64511         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64512
64513 2007-02-04  Bruno Haible  <bruno@clisp.org>
64514
64515         New module mbspbrk.
64516         * modules/mbspbrk: New file.
64517         * lib/mbspbrk.c: New file.
64518         * lib/string_.h (strpbrk): Add a conditional link warning.
64519         (mbspbrk): New declaration.
64520         * m4/mbspbrk.m4: New file.
64521         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64522         GNULIB_MBSPBRK.
64523         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64524         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64525
64526 2007-02-04  Bruno Haible  <bruno@clisp.org>
64527
64528         New module mbscspn.
64529         * modules/mbscspn: New file.
64530         * lib/mbscspn.c: New file.
64531         * lib/string_.h (strcspn): Add a conditional link warning.
64532         (mbscspn): New declaration.
64533         * m4/mbscspn.m4: New file.
64534         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64535         GNULIB_MBSCSPN.
64536         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64537         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64538
64539 2007-02-04  Bruno Haible  <bruno@clisp.org>
64540
64541         New module mbscasestr, reduced goal of strcasestr.
64542         * modules/mbscasestr: New file.
64543         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64544         (mbscasestr): Renamed from strcasestr.
64545         * lib/strcasestr.c: Don't include mbuiter.h.
64546         (strcasestr): Remove support for multibyte locales.
64547         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64548         Change the conditional link warning.
64549         (mbscasestr): New declaration.
64550         * m4/mbscasestr.m4: New file.
64551         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64552         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64553         REPLACE_STRCASESTR.
64554         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64556         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64557         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64558         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64559         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64560         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64561         (Depends-on): Remove mbuiter.
64562         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64563
64564 2007-02-04  Bruno Haible  <bruno@clisp.org>
64565
64566         Simplify handling of strncasecmp.
64567         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64568         the conditional link warning.
64569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64570         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64571         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64572         * modules/strcase (configure.ac): Don't invoke
64573         gl_STRING_MODULE_INDICATOR.
64574         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64575
64576 2007-02-04  Bruno Haible  <bruno@clisp.org>
64577
64578         New module mbscasecmp, reduced goal of strcasecmp.
64579         * modules/mbscasecmp: New file.
64580         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64581         (mbscasecmp): Renamed from strcasecmp.
64582         * lib/strcasecmp.c: Don't include mbuiter.h.
64583         (strcasecmp): Remove support for multibyte locales.
64584         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64585         Change the conditional link warning.
64586         (mbscasecmp): New declaration.
64587         * m4/mbscasecmp.m4: New file.
64588         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64589         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64590         REPLACE_STRCASECMP.
64591         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64592         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64593         GNULIB_MBSCASECMP.
64594         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64595         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64596         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64597         (Depends-on): Remove mbuiter.
64598         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64599
64600 2007-02-04  Bruno Haible  <bruno@clisp.org>
64601
64602         New module mbsstr. Remove module strstr.
64603         * modules/mbsstr: New file.
64604         * modules/strstr: Remove file.
64605         * lib/mbsstr.c: Renamed from lib/strstr.c.
64606         (mbsstr): Renamed from strstr.
64607         * lib/string_.h (strstr): Remove declaration. Change the conditional
64608         link warning.
64609         (mbsstr): New declaration.
64610         * m4/mbsstr.m4: New file.
64611         * m4/strstr.m4: Remove file.
64612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64613         REPLACE_STRSTR.
64614         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64615         Don't initialize GNULIB_STRSTR.
64616         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64617         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64618         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64619         (Support for systems lacking ANSI C 89): Remove strstr.
64620
64621 2007-02-04  Bruno Haible  <bruno@clisp.org>
64622
64623         New module mbsrchr.
64624         * modules/mbsrchr: New file.
64625         * lib/mbsrchr.c: New file.
64626         * lib/string_.h (strrchr): Add a conditional link warning.
64627         (mbsrchr): New declaration.
64628         * m4/mbsrchr.m4: New file.
64629         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64630         GNULIB_MBSRCHR.
64631         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64632         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64633
64634 2007-02-04  Bruno Haible  <bruno@clisp.org>
64635
64636         New module mbschr.
64637         * modules/mbschr: New file.
64638         * lib/mbschr.c: New file.
64639         * lib/string_.h (strchr): Add a conditional link warning.
64640         (mbschr): New declaration.
64641         * m4/mbschr.m4: New file.
64642         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64643         GNULIB_MBSCHR.
64644         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64645         * MODULES.html.sh (Internationalization functions): Add mbschr.
64646
64647 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64648
64649         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64650
64651         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64652
64653 2007-02-04  Bruno Haible  <bruno@clisp.org>
64654
64655         New module description section 'configure.ac-early'.
64656         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64657         (func_get_autoconf_early_snippet): New function.
64658         (func_import, func_create_testdir): Use it. Remove special cases for
64659         modules 'extensions' and 'lock'.
64660         * modules/extensions (configure.ac-early): Require
64661         gl_USE_SYSTEM_EXTENSIONS.
64662         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64663
64664 2007-02-04  Bruno Haible  <bruno@clisp.org>
64665
64666         Make use of gcj-4.3's -fsource and -ftarget option.
64667         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64668         and if so try the options -fsource and -ftarget.
64669         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64670         source_version, ftarget_option, target_version arguments.
64671         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64672         (is_envjavac_oldgcj_14_14_usable): Renamed from
64673         is_envjavac_gcj_14_14_usable.
64674         (is_envjavac_oldgcj_14_13_usable): Renamed from
64675         is_envjavac_gcj_14_13_usable.
64676         (is_gcj_present): Update.
64677         (is_gcj_43, is_gcj43_usable): New functions.
64678         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64679         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64680         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64681         try the options -fsource and -ftarget.
64682
64683 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64684
64685         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64686         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64687         larger value.
64688
64689 2007-02-03  Jim Meyering  <jim@meyering.net>
64690
64691         Give tools a better chance to allocate space for very large buffers.
64692         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64693
64694         Make pwd and readlink work also when run with an unreadable parent dir
64695         on systems with openat support.
64696         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64697         provided getcwd function, even when we have openat support.
64698         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64699
64700 2007-02-02  Bruno Haible  <bruno@clisp.org>
64701
64702         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64703         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64704         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64705         portability problems if one of these functions is only used on specific
64706         platforms.
64707         Reported by Paul Eggert.
64708
64709 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64710
64711         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64712         is causing more trouble than it's curing.
64713         * lib/regex_internal.h (__mempcpy): Remove.
64714         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64715         (and make the code a tad smaller to boot).
64716         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64717
64718 2007-02-02  Jim Meyering  <jim@meyering.net>
64719
64720         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64721         section, not in the Makefile.am: one.
64722
64723 2007-02-02  Eric Blake  <ebb9@byu.net>
64724
64725         * lib/strchrnul.c: Always include config.h first.
64726
64727         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64728         gnulib strstr is not necessary here.
64729
64730 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64731
64732         * m4/socklen.m4: Fix typo.
64733
64734 2007-02-02  Eric Blake  <ebb9@byu.net>
64735
64736         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64737         * modules/netinet_in (Makefile.am): Likewise.
64738
64739 2007-02-01  Bruno Haible  <bruno@clisp.org>
64740
64741         * lib/string_.h (GL_LINK_WARNING): New macro.
64742         (strcasecmp, strstr, strcasestr): If provided by the system,
64743         conditionally define as a macro that leads to a warning instead of to
64744         an error.
64745         (strncasecmp): Conditionally define as a macro that leads to a warning.
64746
64747 2007-02-01  Karl Berry  <karl@gnu.org>
64748
64749         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64750
64751 2007-02-01  Bruno Haible  <bruno@clisp.org>
64752
64753         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64754         renamings.
64755
64756 2007-02-01  Eric Blake  <ebb9@byu.net>
64757
64758         * modules/regex (Depends-on): Revert dependence on mempcpy.
64759         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64760         module's definition of mempcpy.
64761         Reported by Paul Eggert.
64762
64763 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64764
64765         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64766         the symbol XYZ before redefining it.  This fixes a problem with
64767         programs that don't use XYZ, when compiled on systems that define
64768         XYZ to something else.
64769
64770 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64771
64772         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64773         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64774         writeable to group or other and (2) is intended to have a special
64775         mode bit that is set or cleared.  In such a case, the directory
64776         should be neither group- nor other-writeable until the special
64777         mode bits are right.
64778
64779 2007-01-31  Eric Blake  <ebb9@byu.net>
64780
64781         * modules/mountlist (Depends-on): Add strstr.
64782
64783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64784         bug.
64785         * modules/string (Makefile.am): Remove redundant replacement.
64786         * modules/regex (Depends-on): Add mempcpy.
64787
64788 2007-01-31  Bruno Haible  <bruno@clisp.org>
64789
64790         New module description field 'Link'.
64791         * gnulib-tool (func_usage): Document --extract-link-directive.
64792         (sed_extract_prog): Recognize 'Link' directive.
64793         (func_get_link_directive): New function.
64794         (func_import): Show summary of link directives.
64795         Handle --extract-link-directive option.
64796         * modules/acl (Link): New section.
64797         * modules/clock-time (Link): New section.
64798         * modules/euidaccess (Link): New section.
64799         * modules/gettext (Link): New section.
64800         * modules/iconv (Link): New section.
64801         * modules/lock (Link): New section.
64802         * modules/nanosleep (Link): New section.
64803         * modules/readline (Link): New section.
64804
64805 2007-01-27  Bruno Haible  <bruno@clisp.org>
64806
64807         Enforce the use of gnulib modules for unportable <string.h> functions.
64808         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64809         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64810         (gl_HEADER_STRING_H_BODY): Require it.
64811         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64812         the symbol XYZ to one that gives a link error.
64813         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64814         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64815         * modules/mempcpy (configure.ac): Likewise.
64816         * modules/memrchr (configure.ac): Likewise.
64817         * modules/stpcpy (configure.ac): Likewise.
64818         * modules/stpncpy (configure.ac): Likewise.
64819         * modules/strcase (configure.ac): Likewise.
64820         * modules/strcasestr (configure.ac): Likewise.
64821         * modules/strchrnul (configure.ac): Likewise.
64822         * modules/strdup (configure.ac): Likewise.
64823         * modules/strndup (configure.ac): Likewise.
64824         * modules/strnlen (configure.ac): Likewise.
64825         * modules/strpbrk (configure.ac): Likewise.
64826         * modules/strsep (configure.ac): Likewise.
64827         * modules/strstr (configure.ac): Likewise.
64828         * modules/strtok_r (configure.ac): Likewise.
64829
64830 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64831
64832         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64833
64834 2007-01-30  Jim Meyering  <jim@meyering.net>
64835
64836         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64837
64838 2007-01-29  Bruno Haible  <bruno@clisp.org>
64839
64840         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64841         * lib/execute.c: Likewise.
64842         * lib/pipe.c: Likewise.
64843         * lib/printf-args.h: Likewise.
64844         * lib/printf-args.c: Likewise.
64845         * lib/printf-parse.c: Likewise.
64846         * lib/vasnprintf.c: Likewise.
64847
64848 2007-01-29  Eric Blake  <ebb9@byu.net>
64849
64850         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64851         declaration.
64852
64853 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64854
64855         * lib/strptime.h (strptime): Use 'restrict' for args where
64856         POSIX requires this.
64857         * lib/strptime.c (strptime): Likewise.
64858         Change license notice from LGPL to GPL, since gnulib-tool will
64859         change this as needed.
64860         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64861         defined.
64862         Include "strptime.h" first, to check interface.
64863         Do not #undef _LIBC and _NL_CURRENT.
64864         Do not include <stdlib.h>; no longer needed.
64865         Include "time_r.h" and declare ptime_locale_status
64866         only if _LIBC is not defined.
64867         (__P): Remove unused macro.
64868         (match_string): Bring back glibc version, but use it only if _LIBC
64869         is defined.
64870         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64871         Remove unnecessary assertion and abort() call.
64872         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64873         * m4/strptime.m4: Fix serial number comment.
64874         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64875         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64876         (Depends-on): Add time_r.
64877
64878 2007-01-29  Bruno Haible  <bruno@clisp.org>
64879
64880         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64881         strptime.
64882         * modules/strptime (Depends-on): Add stdbool.
64883         * lib/strptime.h: Include <time.h> always. Add comments.
64884
64885 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64886
64887         * modules/strptime: New file.
64888         * lib/strptime.h: New file.
64889         * lib/strptime.c: New file.
64890         * m4/strptime.m4: New file.
64891
64892 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64893
64894         * MODULES.html.sh: New module mpsort.
64895         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64896
64897         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64898         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64899         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64900         All uses changed.
64901         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64902         All uses changed.
64903         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64904         to _Restrict_.
64905         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64906         the parameter matches the prototype.
64907
64908 2007-01-28  Jim Meyering  <jim@meyering.net>
64909
64910         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64911         sys/time.h here, reverting that part of the previous patch:
64912         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64913
64914 2007-01-28  Bruno Haible  <bruno@clisp.org>
64915
64916         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64917         value of $(SYS_TIME_H).
64918         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64919         remove it conditionally, too. [added by Jim Meyering]
64920         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64921         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64922         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64923         GETTIMEOFDAY_REPLACEMENT to 1.
64924
64925 2007-01-28  Bruno Haible  <bruno@clisp.org>
64926
64927         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64928         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64929         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64930         Set UNISTD_H instead of UNISTD_H2.
64931         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64932
64933 2007-01-28  Bruno Haible  <bruno@clisp.org>
64934
64935         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64936         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64937
64938 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64939
64940         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64941         (func_create_testdir): Ensure C locale for `grep' and `tr'
64942         character ranges.
64943         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64944         ACLOCAL_AMFLAGS parsing state machine.
64945
64946 2007-01-27  Bruno Haible  <bruno@clisp.org>
64947
64948         * modules/unistr/base: Update.
64949
64950 2007-01-27  Bruno Haible  <bruno@clisp.org>
64951
64952         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64953         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64954         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64955         modules/unistr/u32-mbtouc.
64956         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64957         * lib/unistr.h: Update.
64958         * lib/linebreak.c: Update.
64959         * modules/unistr/u32-mbtouc: Renamed from
64960         modules/unistr/u32-mbtouc-safe.
64961         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64962         * lib/unistr.h: Update.
64963         * lib/unistr/u32-to-u8.c: Update.
64964         * lib/unistr/u32-to-u16.c: Update.
64965
64966 2007-01-27  Bruno Haible  <bruno@clisp.org>
64967
64968         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64969         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64970         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64971         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64972         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64973         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64974         modules/unistr/u16-mbtouc.
64975         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64976         * lib/unistr.h: Update.
64977         * lib/linebreak.c: Update.
64978         * modules/linebreak: Update.
64979         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64980         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64981         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64982         * modules/unistr/u16-mbtouc: Renamed from
64983         modules/unistr/u16-mbtouc-safe.
64984         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64985         * lib/unistr.h: Update.
64986         * lib/unistr/u16-to-u8.c: Update.
64987         * modules/unistr/u16-to-u8: Update.
64988         * lib/unistr/u16-to-u32.c: Update.
64989         * modules/unistr/u16-to-u32: Update.
64990
64991 2007-01-27  Bruno Haible  <bruno@clisp.org>
64992
64993         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64994         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64995         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64996         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64997         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64998         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64999         modules/unistr/u8-mbtouc.
65000         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65001         * lib/unistr.h: Update.
65002         * lib/striconveh.c: Update.
65003         * modules/striconveh: Update.
65004         * lib/linebreak.c: Update.
65005         * modules/linebreak: Update.
65006         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65007         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65008         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65009         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65010         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65011         * lib/unistr.h: Update.
65012         * lib/striconveh.c: Update.
65013         * modules/striconveh: Update.
65014         * lib/unistr/u8-to-u16.c: Update.
65015         * modules/unistr/u8-to-u16: Update.
65016         * lib/unistr/u8-to-u32.c: Update.
65017         * modules/unistr/u8-to-u32: Update.
65018
65019 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65020
65021         Sync from Libtool.
65022         * lib/argz.c: Do not include strings.h nor memory.h, include
65023         string.h unconditionally.  Patch by Simon Josefsson.
65024
65025 2007-01-27  Bruno Haible  <bruno@clisp.org>
65026
65027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65028         from gl_HEADER_STRING_H_BODY.
65029         (gl_HEADER_STRING_H_BODY): Require it.
65030         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65031         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65032         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65033         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65034         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65035         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65036         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65037         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65038         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65039         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65040         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65041         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65042         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65043         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65044         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65045
65046 2007-01-27  Bruno Haible  <bruno@clisp.org>
65047
65048         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65049         check_PROGRAMS into noinst_PROGRAMS.
65050         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65051         check_PROGRAMS in this case.
65052         (func_import): Set for_test to false.
65053         (func_create_testdir): Set for_test to true.
65054
65055 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65056             Bruno Haible  <bruno@clisp.org>
65057
65058         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65059         (Depends-on): Add string.
65060         (Includes): Use <string.h> instead of strcasestr.h.
65061         * modules/string (Makefile.am): Also substitute the value of
65062         REPLACE_STRCASESTR.
65063         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65064         assume strcasestr is declared in <string.h> not <strings.h>. Also
65065         set REPLACE_STRCASESTR.
65066         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65067         REPLACE_STRCASESTR.
65068         * lib/strcasestr.h: Remove file.
65069         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65070         * lib/string_.h (strcasestr): New declaration.
65071
65072 2007-01-27  Bruno Haible  <bruno@clisp.org>
65073
65074         * lib/string_.h: Use 'extern'.
65075
65076 2007-01-27  Jim Meyering  <jim@meyering.net>
65077
65078         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65079         of set-but-not-used local, "q".
65080
65081         * lib/mempcpy.c: Include <config.h> before <string.h>.
65082         This fixes a compilation error on HP-UX, due to the system's
65083         "restrict"-using mempcpy prototype.
65084
65085 2007-01-26  Bruno Haible  <bruno@clisp.org>
65086
65087         Small optimization.
65088         * lib/javacomp.c: Include c-strstr.h.
65089          (is_envjavac_gcj): Use c_strstr instead of strstr.
65090         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65091
65092 2007-01-26  Bruno Haible  <bruno@clisp.org>
65093
65094         * MODULES.html.sh (Unicode string functions): Add the new modules.
65095
65096         * modules/uniconv/u32-strconv-to-locale: New file.
65097         * lib/uniconv/u32-strconv-to-locale.c: New file.
65098
65099         * modules/uniconv/u16-strconv-to-locale: New file.
65100         * lib/uniconv/u16-strconv-to-locale.c: New file.
65101
65102         * modules/uniconv/u8-strconv-to-locale: New file.
65103         * lib/uniconv/u8-strconv-to-locale.c: New file.
65104
65105         * modules/uniconv/u32-strconv-from-locale: New file.
65106         * lib/uniconv/u32-strconv-from-locale.c: New file.
65107
65108         * modules/uniconv/u16-strconv-from-locale: New file.
65109         * lib/uniconv/u16-strconv-from-locale.c: New file.
65110
65111         * modules/uniconv/u8-strconv-from-locale: New file.
65112         * lib/uniconv/u8-strconv-from-locale.c: New file.
65113
65114         * modules/uniconv/u32-strconv-to-enc: New file.
65115         * lib/uniconv/u32-strconv-to-enc.c: New file.
65116         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65117         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65118
65119         * modules/uniconv/u16-strconv-to-enc: New file.
65120         * lib/uniconv/u16-strconv-to-enc.c: New file.
65121         * lib/uniconv/u-strconv-to-enc.h: New file.
65122         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65123         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65124
65125         * modules/uniconv/u8-strconv-to-enc: New file.
65126         * lib/uniconv/u8-strconv-to-enc.c: New file.
65127         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65128         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65129
65130         * modules/uniconv/u32-strconv-from-enc: New file.
65131         * lib/uniconv/u32-strconv-from-enc.c: New file.
65132         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65133         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65134
65135         * modules/uniconv/u16-strconv-from-enc: New file.
65136         * lib/uniconv/u16-strconv-from-enc.c: New file.
65137         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65138         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65139
65140         * modules/uniconv/u8-strconv-from-enc: New file.
65141         * lib/uniconv/u8-strconv-from-enc.c: New file.
65142         * lib/uniconv/u-strconv-from-enc.h: New file.
65143         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65144         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65145
65146         * modules/uniconv/u32-conv-from-enc: New file.
65147         * lib/uniconv/u32-conv-from-enc.c: New file.
65148         * modules/uniconv/u32-conv-from-enc-tests: New file.
65149         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65150
65151         * modules/uniconv/u16-conv-from-enc: New file.
65152         * lib/uniconv/u16-conv-from-enc.c: New file.
65153         * lib/uniconv/u-conv-from-enc.h: New file.
65154         * modules/uniconv/u16-conv-from-enc-tests: New file.
65155         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65156
65157         * modules/uniconv/u8-conv-from-enc: New file.
65158         * lib/uniconv/u8-conv-from-enc.c: New file.
65159         * modules/uniconv/u8-conv-from-enc-tests: New file.
65160         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65161
65162         * modules/uniconv/base: New file.
65163         * lib/uniconv.h: New file.
65164
65165 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65166
65167         * doc/gnulib-tool.texi (Initial import): Update to match current
65168         behavior with strdup module.
65169         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65170         * lib/memmem.h: Remove; all uses removed.  This is now done
65171         by <string.h>.
65172         * lib/mempcpy.h: Likewise.
65173         * lib/memrchr.h: Likewise.
65174         * lib/stpcpy.h: Likewise.
65175         * lib/stpncpy.h: Likewise.
65176         * lib/strcase.h: Likewise.
65177         * lib/strchrnul.h: Likewise.
65178         * lib/strdup.h: Likewise.
65179         * lib/strndup.h: Likewise.
65180         * lib/strnlen.h: Likewise.
65181         * lib/strpbrk.h: Likewise.
65182         * lib/strsep.h: Likewise.
65183         * lib/strstr.h: Likewise.
65184         * lib/strtok_r.h: Likewise.
65185         * lib/string_.h: New file.
65186         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65187         Rely on <string.h> instead.
65188         * lib/canon-host.c: Likewise.
65189         * lib/chdir-long.c: Likewise.
65190         * lib/concatpath.c: Likewise.
65191         * lib/exclude.c: Likewise.
65192         * lib/fchdir.c: Likewise.
65193         * lib/getaddrinfo.c: Likewise.
65194         * lib/getcwd.c: Likewise.
65195         * lib/getsubopt.c: Likewise.
65196         * lib/glob.c: Likewise.
65197         * lib/hard-locale.c: Likewise.
65198         * lib/iconvme.c: Likewise.
65199         * lib/javacomp.c: Likewise.
65200         * lib/mempcpy.c: Likewise.
65201         * lib/memrchr.c: Likewise.
65202         * lib/regex_internal.h: Likewise.
65203         * lib/stpncpy.c: Likewise.
65204         * lib/strcasecmp.c: Likewise.
65205         * lib/strchrnul.c: Likewise.
65206         * lib/strdup.c: Likewise.
65207         * lib/striconv.c: Likewise.
65208         * lib/striconveh.c: Likewise.
65209         * lib/striconveha.c: Likewise.
65210         * lib/strncasecmp.c: Likewise.
65211         * lib/strndup.c: Likewise.
65212         * lib/strnlen.c: Likewise.
65213         * lib/strsep.c: Likewise.
65214         * lib/strstr.c: Likewise.
65215         * lib/strtok_r.c: Likewise.
65216         * lib/userspec.c: Likewise.
65217         * lib/w32spawn.h: Likewise.
65218         * lib/xstrndup.c: Likewise.
65219         * lib/mountlist.c (strstr): Remove decl.
65220         * m4/string_h.m4: New file.
65221         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65222         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65223         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65224         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65225         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65226         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65227         Set REPLACE_STRCASECMP if necessary.
65228         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65229         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65230         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65231         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65232         HAVE_DECL_STRDUP if necessary.
65233         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65234         since gl_FUNC_STRNDUP does that now.
65235         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65236         Check for decl here...
65237         (gl_PREREQ_STRNLEN): ... not here.
65238         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65239         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65240         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65241         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65242         necessary.
65243         * modules/string: New file.
65244         * modules/memmem (Files): Remove special-purpose include file.
65245         (Depends-on): Add string.
65246         (Include): Include <string.h>, not the removed file.
65247         * modules/mempcpy: Likewise.
65248         * modules/memrchr: Likewise.
65249         * modules/stpcpy: Likewise.
65250         * modules/stpncpy: Likewise.
65251         * modules/strcase: Likewise.
65252         * modules/strchrnul: Likewise.
65253         * modules/strdup: Likewise.
65254         * modules/strndup: Likewise.
65255         * modules/strnlen: Likewise.
65256         * modules/strpbrk: Likewise.
65257         * modules/strsep: Likewise.
65258         * modules/strstr: Likewise.
65259         * modules/strtok_r: Likewise.
65260         * tests/test-dirname.c: Don't include "strdup.h", since
65261         <string.h> now suffices.
65262         * tests/test-memmem.c: Don't include "memmem.h", since
65263         <string.h> now suffices.
65264
65265 2007-01-25  Bruno Haible  <bruno@clisp.org>
65266
65267         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65268         *resultp is 0.
65269
65270         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65271         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65272         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65273         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65274
65275         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65276         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65277         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65278         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65279         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65280         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65281
65282 2007-01-24  Bruno Haible  <bruno@clisp.org>
65283
65284         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65285         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65286         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65287         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65288         gl_FUNC_FTS_CORE.
65289         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65290         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65291         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65292         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65293         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65294         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65295         gl_FUNC_FCHOWNAT.
65296         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65297         gl_FUNC_STRFTIME.
65298         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65299         Reported by Ralf Wildenhues.
65300
65301 2007-01-24  Bruno Haible  <bruno@clisp.org>
65302
65303         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65304         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65305         gl_GETADDRINFO.
65306         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65307         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65308         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65309
65310 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65311
65312         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65313         Don't use 'exit'; just return from 'main'.
65314         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65315
65316         * lib/fnmatch_.h: Readjust white space and comments to match
65317         glibc, to avoid spurious diffs.
65318
65319 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65320
65321         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65322         2004-12-01 change by Jakub Jelinek, since this code won't compile
65323         if !LIBC.  Problem reported by Bob Proulx.
65324
65325 2007-01-23  Bruno Haible  <bruno@clisp.org>
65326
65327         * lib/striconveh.c: Include c-strcaseeq.h.
65328         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65329         * modules/striconveh (Depends-on): Add c-strcaseeq.
65330
65331 2007-01-23  Bruno Haible  <bruno@clisp.org>
65332
65333         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65334
65335         * modules/c-strcaseeq: New file.
65336         * lib/c-strcaseeq.h: New file.
65337
65338         * modules/streq: New file.
65339         * lib/streq.h: New file.
65340
65341 2007-01-23  Bruno Haible  <bruno@clisp.org>
65342
65343         * modules/striconveha-tests: New file.
65344         * tests/test-striconveha.c: New file.
65345
65346         * lib/striconveha.h: Include <stdbool.h>.
65347         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65348         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65349         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65350         (mem_iconveha): New function.
65351         (str_iconveha_notranslit): Renamed from str_iconveha.
65352         (str_iconveha): New function.
65353         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65354         c-strcase.
65355
65356 2007-01-23  Bruno Haible  <bruno@clisp.org>
65357
65358         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65359         encodings without forgiving before trying any encoding with handler.
65360         (str_iconveha): Try all encodings without forgiving before trying any
65361         encoding with handler.
65362
65363 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65364
65365         Import the following changes from libc.
65366
65367         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65368
65369         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65370
65371         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65372
65373         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65374         normal_bracket label.
65375
65376         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65377
65378         [BZ #361]
65379         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65380         to normal_bracket after fetching the next character.
65381
65382 2007-01-22  Bruno Haible  <bruno@clisp.org>
65383
65384         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65385         argument.
65386         * lib/striconveh.c (iconv_carefully_1): New function.
65387         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65388         argument.
65389         (str_cd_iconveh): Update.
65390         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65391         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65392         * tests/test-striconveh.c (MAGIC): New macro.
65393         (new_offsets): New function.
65394         (main): Test call with and without offsets.
65395
65396 2007-01-22  Bruno Haible  <bruno@clisp.org>
65397
65398         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65399         * modules/sys_select (Makefile.am): Likewise.
65400         * modules/sys_socket (Makefile.am): Likewise.
65401         * modules/sys_time (Makefile.am): Likewise.
65402
65403 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65404
65405         * modules/gettimeofday (License): Change from GPL to LGPL, since
65406         gettimeofday is a library function.
65407
65408 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65409
65410         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65411
65412 2007-01-21  Bruno Haible  <bruno@clisp.org>
65413
65414         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65415
65416 2007-01-21  Bruno Haible  <bruno@clisp.org>
65417
65418         * modules/striconveha: New file.
65419         * lib/striconveha.h: New file.
65420         * lib/striconveha.c: New file.
65421         * MODULES.html.sh (Internationalization functions): Add striconveha.
65422         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65423         string.
65424         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65425
65426 2007-01-21  Bruno Haible  <bruno@clisp.org>
65427
65428         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65429         * lib/striconveh.c (str_iconveh): Likewise.
65430
65431 2007-01-21  Bruno Haible  <bruno@clisp.org>
65432
65433         * lib/striconveh.h (mem_iconveh): New declaration.
65434         * lib/striconveh.c (mem_iconveh): New function.
65435         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65436
65437 2007-01-21  Bruno Haible  <bruno@clisp.org>
65438
65439         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65440
65441         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65442         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65443         original result buffer.
65444         (str_cd_iconveh): Update.
65445         * tests/test-striconveh.c (main): Update.
65446
65447         * lib/striconv.h (mem_cd_iconv): Change specification.
65448         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65449         result buffer.
65450         (str_cd_iconv): Update.
65451         * tests/test-striconv.c (main): Update.
65452
65453 2007-01-21  Bruno Haible  <bruno@clisp.org>
65454
65455         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65456
65457 2007-01-20  Jim Meyering  <jim@meyering.net>
65458
65459         * lib/userspec.c (parse_with_separator): If a user or group string
65460         starts with "+", skip the corresponding name-to-ID look-up, since
65461         such a look-up must fail: user and group names may not include "+".
65462
65463 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65464
65465         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65466         since we now assume the sys_time module.
65467         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65468         check for sys/time.h; no longer needed.
65469         * modules/poll (Depends-on): Depend on sys_time.
65470
65471 2007-01-18  Bruno Haible  <bruno@clisp.org>
65472
65473         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65474         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65475
65476         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65477         gettimeofday.
65478
65479         * tests/test-gettimeofday.c: Include <time.h>.
65480         (dummy): Remove variable.
65481
65482         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65483         gl_HEADER_SYS_TIME_H.
65484         (gl_HEADER_SYS_TIME_H): New macro.
65485
65486         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65487         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65488         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65489         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65490         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65491         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65492         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65493         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65494         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65495         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65496         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65497
65498         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65499         last change; it caused a compilation error when cross-compiling to
65500         Cygwin.
65501
65502 2007-01-18  Jim Meyering  <jim@meyering.net>
65503
65504         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65505         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65506         than the race-prone "test -d sys || mkdir sys".
65507         (configure.ac): Use AC_PROG_MKDIR_P.
65508         * modules/sys_select: Likewise.
65509         * modules/sys_socket: Likewise.
65510         * modules/sys_time: Likewise.
65511
65512 2007-01-18  Eric Blake  <ebb9@byu.net>
65513
65514         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65515         replace gettimeofday.
65516         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65517         name, to avoid infinite recursion.
65518
65519 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65520
65521         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65522         module sys_time.
65523         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65524         assume timespec.h defines struct timeval.
65525         * lib/settime.c: Likewise.
65526         * lib/utimens.c: Likewise.
65527         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65528         since we now assume the gettimeofday module.
65529         * lib/tempname.c (__gen_tempname): Likewise.
65530         * lib/gettimeofday.h: Remove.
65531         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65532         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65533         Include <time.h>, for 'time()'.
65534         (localtime_buffer_addr): Also use this workaround if
65535         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65536         to simplify the uses.  All uses changed.
65537         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65538         that #undef is inside {}, and 'const' follows type name consistently.
65539         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65540         (gettimeofday): Do not use the maximum possible value for
65541         tv->tv_usec, since that might break usages other than ls.c.
65542         Instead, we'll leave ls.c alone.  This undoes today's patch
65543         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65544         we've never observed the problem but might as well keep the
65545         canary.
65546         * lib/nanosleep.c: Include timespec.h first, for interface check.
65547         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65548         now assume the sys_time module.
65549         * lib/tempname.c: Likewise.
65550         * lib/timespec.h: Likewise.
65551         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65552         needed.
65553         * lib/strftime.c: Likewise.
65554         * lib/timespec.h: Likewise.
65555         * lib/posixtm.c: Include posixtm.h first, for interface check.
65556         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65557         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65558         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65559         * lib/sys_time_.h: New file.
65560         * lib/timespec.h (struct timespec): Use long int, not long.
65561         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65562         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65563         Remove obsolescent call to AC_HEADER_TIME.
65564         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65566         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65567         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65568         Likewise.
65569         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65570         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65571         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65572         into the sys_time module.  Check for gettimeofday just once.
65573         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65574         for gettimeofday signature to just check the signature.  Merely
65575         compile it, since linking doesn't test signature.  Improve test for
65576         whether gettimeofday.o is actually needed.
65577         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65578         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65579         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65580         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65581         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65582         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65583         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65584         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65585         than worrying about sys/time.h.
65586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65587         Don't bother worrying about TIME_WITH_SYS_TIME.
65588         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65589         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65590         * m4/sys_time_h.m4: New file.
65591         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65592         Don't include sys/time.h.  Return from main rather than exiting.
65593         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65594         all uses changed.
65595         * modules/gethrxtime (Depends-on): Add sys_time.
65596         * modules/gettime (Depends-on): Likewise.
65597         * modules/gettimeofday (Depends-on): Likewise.
65598         * modules/nanosleep (Depends-on): Likewise.
65599         * modules/settime (Depends-on): Likewise.
65600         * modules/tempname (Depends-on): Likewise.
65601         * modules/utimens (Depends-on): Likewise.
65602         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65603         (Include): Change back to <sys/time.h>.
65604         (Maintainer): Add self.
65605         * modules/sys_time: New file.
65606         * modules/tempname (Depends-on): Add gettimeofday.
65607         * tests/test-gettimeofday.c: Include <sys/time.h>
65608         rather than gettimeofday.h.
65609
65610 2007-01-17  Bruno Haible  <bruno@clisp.org>
65611
65612         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65613         the license default to GPL.
65614         (func_create_testdir): Don't complain if a module is LGPL and its
65615         tests module depends on GPLed modules.
65616
65617 2007-01-17  Bruno Haible  <bruno@clisp.org>
65618
65619         * lib/gettimeofday.c (gettimeofday): Add code for the case
65620         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65621         maximum possible value for tv->tv_usec, rather than the minimum one.
65622
65623 2005-10-08  Martin Lambers  <marlam@marlam.de>
65624 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65625 2007-01-16  Bruno Haible  <bruno@clisp.org>
65626
65627         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65628         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65629         gl_FUNC_GETTIMEOFDAY.
65630         (Include): Add gettimeofday.h.
65631         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65632         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65633         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65634         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65635         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65636         * lib/gettimeofday.h: New file.
65637         * lib/gettimeofday.c: Include <sys/timeb.h>.
65638         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65639         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65640         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65641         fall back on time().
65642
65643         * tests/test-gettimeofday.c: New file.
65644         * modules/gettimeofday-tests: New file.
65645
65646 2007-01-16  Eric Blake  <ebb9@byu.net>
65647
65648         * modules/fnmatch (Depends-on): Depend on wchar.
65649         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65650         * m4/fnmatch.m4: Likewise.
65651         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65652         * m4/mbchar.m4: Likewise.
65653         * modules/mbswidth (Depends-on): Depend on wchar.
65654         * lib/mbswidth.c: Assume <wchar.h>.
65655         * m4/mbswidth.m4: Likewise.
65656         * modules/quotearg (Depends-on): Depend on wchar.
65657         * lib/quotearg.c: Assume <wchar.h>.
65658         * m4/quotearg.m4: Likewise.
65659         * modules/regex (Depends-on): Depend on wchar.
65660         * lib/regex_internal.h: Assume <wchar.h>.
65661         * m4/regex.m4: Likewise.
65662         * modules/stdint (Depends-on): Depend on wchar.
65663         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65664         * m4/stdint.m4: Likewise.
65665         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65666         * modules/strftime (Depends-on): Depend on wchar.
65667         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65668         * modules/strtol (Depends-on): Depend on wchar.
65669         * lib/strtol.c: Assume <wchar.h>.
65670         * modules/wcwidth (Depends-on): Depend on wchar.
65671         * lib/wcwidth.h: Assume <wchar.h>.
65672         * m4/wcwidth.m4: Likewise.
65673
65674 2007-01-16  Bruno Haible  <bruno@clisp.org>
65675
65676         * modules/csharpexec-script: New, created from...
65677         * modules/csharpexec: ... this.
65678
65679 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65680
65681         * modules/javaexec-script: New, created from...
65682         * modules/javaexec: ... this.
65683
65684 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65685
65686         * modules/poll (Dependencies): Add sys_select.
65687
65688 2007-01-15  Jim Meyering  <jim@meyering.net>
65689
65690         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65691         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65692         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65693         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65694
65695 2007-01-15  Bruno Haible  <bruno@clisp.org>
65696
65697         * modules/striconveh: New file.
65698         * lib/striconveh.h: New file.
65699         * lib/striconveh.c: New file.
65700         * MODULES.html.sh (Internationalization functions): Add striconveh.
65701
65702         * modules/striconveh-tests: New file.
65703         * tests/test-striconveh.c: New file.
65704
65705 2007-01-15  Bruno Haible  <bruno@clisp.org>
65706
65707         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65708         not from GNU libiconv or GNU libc.
65709
65710 2007-01-15  Bruno Haible  <bruno@clisp.org>
65711
65712         * doc/gnulib-intro.texi (Copyright): Explain the different license
65713         terms for module descriptions, autoconf macros, tests, documentation.
65714
65715 2007-01-14  Bruno Haible  <bruno@clisp.org>
65716
65717         * modules/striconv-tests: New file.
65718         * tests/test-striconv.c: New file.
65719
65720 2007-01-14  Bruno Haible  <bruno@clisp.org>
65721
65722         * modules/iconv-tests: New file.
65723         * tests/test-iconv.c: New file.
65724
65725 2007-01-14  Bruno Haible  <bruno@clisp.org>
65726
65727         * gnulib-tool (func_get_license): For test modules, use the license of
65728         the main module.
65729
65730 2007-01-14  Bruno Haible  <bruno@clisp.org>
65731
65732         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65733         if iconv is found to exist.
65734
65735 2007-01-14  Bruno Haible  <bruno@clisp.org>
65736
65737         * modules/c-ctype-tests: New file.
65738         * tests/test-c-ctype.c: New file.
65739
65740 2007-01-14  Bruno Haible  <bruno@clisp.org>
65741
65742         * modules/binary-io-tests: New file.
65743         * tests/test-binary-io.sh: New file.
65744         * tests/test-binary-io.c: New file.
65745
65746 2007-01-14  Bruno Haible  <bruno@clisp.org>
65747
65748         * modules/array-oset-tests: New file.
65749         * tests/test-array_oset.c: New file.
65750
65751 2007-01-14  Bruno Haible  <bruno@clisp.org>
65752
65753         * modules/array-list-tests: New file.
65754         * tests/test-array_list.c: New file.
65755
65756 2007-01-14  Bruno Haible  <bruno@clisp.org>
65757
65758         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65759         and make.
65760         Reported by Simon Josefsson in
65761         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65762
65763 2007-01-14  Bruno Haible  <bruno@clisp.org>
65764
65765         * modules/allocsa-tests: New file.
65766         * tests/test-allocsa.c: New file.
65767
65768 2007-01-14  Bruno Haible  <bruno@clisp.org>
65769
65770         * modules/fchdir (Depends-on): Add absolute-header.
65771         * modules/unistd (Depends-on): Likewise.
65772
65773 2006-12-30  Bruno Haible  <bruno@clisp.org>
65774
65775         * modules/fchdir: New file.
65776         * modules/unistd (Files): Add lib/unistd_.h.
65777         (Makefile.am): Generate unistd.h from unistd_.h.
65778         * lib/fchdir.c: New file.
65779         * lib/dirent_.h: New file.
65780         * lib/unistd_.h: New file.
65781         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65782         * m4/fchdir.m4: New file.
65783         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65784         (gl_HEADER_UNISTD): Invoke it.
65785         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65786         function.
65787         * lib/backupfile.c (opendir, closedir): Undefine.
65788         * lib/chown.c (open, close): Undefine.
65789         * lib/clean-temp.c (open, close): Undefine.
65790         * lib/copy-file.c (open, close): Undefine.
65791         * lib/execute.c (open, close): Undefine.
65792         * lib/fsusage.c (open, close): Undefine.
65793         * lib/gc-gnulib.c (open, close): Undefine.
65794         * lib/getcwd.c (opendir, closedir): Undefine.
65795         * lib/glob.c (opendir, closedir): Undefine.
65796         * lib/javacomp.c (open, close): Undefine.
65797         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65798         * lib/openat-proc.c (open, close): Undefine.
65799         * lib/pagealign_alloc.c (open, close): Undefine.
65800         * lib/pipe.c (open, close): Undefine.
65801         * lib/progreloc.c (open, close): Undefine.
65802         * lib/savedir.c (opendir, closedir): Undefine.
65803         * lib/utime.c (open, close): Undefine.
65804         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65805
65806 2007-01-10  Bruno Haible  <bruno@clisp.org>
65807
65808         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65809
65810 2007-01-12  Eric Blake  <ebb9@byu.net>
65811
65812         Provide a robust <wchar.h>.  Further simplifications are now
65813         possible in other modules, but not included here.
65814         * modules/wchar: New module.
65815         * m4/wchar.m4: New file.
65816         * lib/wchar_.h: Likewise.
65817         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65818         of the new module.
65819         * MODULES.html.sh (Extended multibyte and wide character utilities):
65820         New section.
65821
65822 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65823
65824         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65825         to a reasonable default for memory allocation.
65826         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65827         file system that reports garbage st_size values for symlinks.
65828         Problem reported by Liyang Hu.
65829
65830 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65831
65832         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65833         Emacs .#* auto-save files).
65834
65835 2007-01-11  Bruno Haible  <bruno@clisp.org>
65836
65837         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65838         directory.
65839
65840 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65841
65842         Use @...@ consistently in lib/wctype_.h.
65843         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65844         on it being set to 1 or 0.
65845         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65846         go back to AC_SUBSTing it.
65847         * modules/wctype (Makefile.am): Undo previous change.
65848
65849 2007-01-10  Eric Blake  <ebb9@byu.net>
65850
65851         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65852         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65853         * modules/wctype (Makefile.am): Likewise.
65854         Reported by Chris McGuire.
65855
65856 2007-01-10  Jim Meyering  <jim@meyering.net>
65857
65858         fts.c: a small readability/maintainability improvement
65859         * lib/fts.c (fts_read): Make this code slightly more readable and
65860         maintainable by hoisting the "sp->fts_cur = p" assignments to
65861         immediately follow the statements that set P.  Derived from
65862         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65863
65864 2007-01-10  Eric Blake  <ebb9@byu.net>
65865
65866         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65867         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65869         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65870         Reported by Chris McGuire.
65871
65872 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65873
65874         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65875         in sed script.
65876
65877 2007-01-09  Bruno Haible  <bruno@clisp.org>
65878
65879         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65880         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65881         variables.
65882         (func_module): Use them.
65883
65884 2007-01-09  Bruno Haible  <bruno@clisp.org>
65885
65886         * modules/unistr/base: New file.
65887         * lib/unistr.h: New file.
65888
65889         * modules/unistr/u8-to-u16: New file.
65890         * lib/unistr/u8-to-u16.c: New file.
65891
65892         * modules/unistr/u8-to-u32: New file.
65893         * lib/unistr/u8-to-u32.c: New file.
65894
65895         * modules/unistr/u16-to-u8: New file.
65896         * lib/unistr/u16-to-u8.c: New file.
65897
65898         * modules/unistr/u16-to-u32: New file.
65899         * lib/unistr/u16-to-u32.c: New file.
65900
65901         * modules/unistr/u32-to-u8: New file.
65902         * lib/unistr/u32-to-u8.c: New file.
65903
65904         * modules/unistr/u32-to-u16: New file.
65905         * lib/unistr/u32-to-u16.c: New file.
65906
65907         * modules/unistr/u8-check: New file.
65908         * modules/unistr/u16-check: New file.
65909         * modules/unistr/u32-check: New file.
65910         * lib/unistr/u8-check.c: New file.
65911         * lib/unistr/u16-check.c: New file.
65912         * lib/unistr/u32-check.c: New file.
65913
65914         * modules/unistr/u8-chr: New file.
65915         * modules/unistr/u16-chr: New file.
65916         * modules/unistr/u32-chr: New file.
65917         * lib/unistr/u8-chr.c: New file.
65918         * lib/unistr/u16-chr.c: New file.
65919         * lib/unistr/u32-chr.c: New file.
65920
65921         * modules/unistr/u8-cmp: New file.
65922         * modules/unistr/u16-cmp: New file.
65923         * modules/unistr/u32-cmp: New file.
65924         * lib/unistr/u8-cmp.c: New file.
65925         * lib/unistr/u16-cmp.c: New file.
65926         * lib/unistr/u32-cmp.c: New file.
65927
65928         * modules/unistr/u8-cpy: New file.
65929         * modules/unistr/u16-cpy: New file.
65930         * modules/unistr/u32-cpy: New file.
65931         * lib/unistr/u8-cpy.c: New file.
65932         * lib/unistr/u16-cpy.c: New file.
65933         * lib/unistr/u32-cpy.c: New file.
65934         * lib/unistr/u-cpy.h: New file.
65935
65936         * modules/unistr/u8-cpy-alloc: New file.
65937         * modules/unistr/u16-cpy-alloc: New file.
65938         * modules/unistr/u32-cpy-alloc: New file.
65939         * lib/unistr/u8-cpy-alloc.c: New file.
65940         * lib/unistr/u16-cpy-alloc.c: New file.
65941         * lib/unistr/u32-cpy-alloc.c: New file.
65942         * lib/unistr/u-cpy-alloc.h: New file.
65943
65944         * modules/unistr/u8-endswith: New file.
65945         * modules/unistr/u16-endswith: New file.
65946         * modules/unistr/u32-endswith: New file.
65947         * lib/unistr/u8-endswith.c: New file.
65948         * lib/unistr/u16-endswith.c: New file.
65949         * lib/unistr/u32-endswith.c: New file.
65950         * lib/unistr/u-endswith.h: New file.
65951
65952         * modules/unistr/u8-mblen: New file.
65953         * modules/unistr/u16-mblen: New file.
65954         * modules/unistr/u32-mblen: New file.
65955         * lib/unistr/u8-mblen.c: New file.
65956         * lib/unistr/u16-mblen.c: New file.
65957         * lib/unistr/u32-mblen.c: New file.
65958
65959         * modules/unistr/u8-mbtouc: New file.
65960         * modules/unistr/u16-mbtouc: New file.
65961         * modules/unistr/u32-mbtouc: New file.
65962         * lib/unistr/u8-mbtouc.c: New file.
65963         * lib/unistr/u16-mbtouc.c: New file.
65964         * lib/unistr/u32-mbtouc.c: New file.
65965
65966         * modules/unistr/u8-mbtouc-safe: New file.
65967         * modules/unistr/u16-mbtouc-safe: New file.
65968         * modules/unistr/u32-mbtouc-safe: New file.
65969         * lib/unistr/u8-mbtouc-safe.c: New file.
65970         * lib/unistr/u16-mbtouc-safe.c: New file.
65971         * lib/unistr/u32-mbtouc-safe.c: New file.
65972
65973         * modules/unistr/u8-move: New file.
65974         * modules/unistr/u16-move: New file.
65975         * modules/unistr/u32-move: New file.
65976         * lib/unistr/u8-move.c: New file.
65977         * lib/unistr/u16-move.c: New file.
65978         * lib/unistr/u32-move.c: New file.
65979         * lib/unistr/u-move.h: New file.
65980
65981         * modules/unistr/u8-next: New file.
65982         * modules/unistr/u16-next: New file.
65983         * modules/unistr/u32-next: New file.
65984         * lib/unistr/u8-next.c: New file.
65985         * lib/unistr/u16-next.c: New file.
65986         * lib/unistr/u32-next.c: New file.
65987
65988         * modules/unistr/u8-prev: New file.
65989         * modules/unistr/u16-prev: New file.
65990         * modules/unistr/u32-prev: New file.
65991         * lib/unistr/u8-prev.c: New file.
65992         * lib/unistr/u16-prev.c: New file.
65993         * lib/unistr/u32-prev.c: New file.
65994
65995         * modules/unistr/u8-set: New file.
65996         * modules/unistr/u16-set: New file.
65997         * modules/unistr/u32-set: New file.
65998         * lib/unistr/u8-set.c: New file.
65999         * lib/unistr/u16-set.c: New file.
66000         * lib/unistr/u32-set.c: New file.
66001         * lib/unistr/u-set.h: New file.
66002
66003         * modules/unistr/u8-startswith: New file.
66004         * modules/unistr/u16-startswith: New file.
66005         * modules/unistr/u32-startswith: New file.
66006         * lib/unistr/u8-startswith.c: New file.
66007         * lib/unistr/u16-startswith.c: New file.
66008         * lib/unistr/u32-startswith.c: New file.
66009         * lib/unistr/u-startswith.h: New file.
66010
66011         * modules/unistr/u8-stpcpy: New file.
66012         * modules/unistr/u16-stpcpy: New file.
66013         * modules/unistr/u32-stpcpy: New file.
66014         * lib/unistr/u8-stpcpy.c: New file.
66015         * lib/unistr/u16-stpcpy.c: New file.
66016         * lib/unistr/u32-stpcpy.c: New file.
66017         * lib/unistr/u-stpcpy.h: New file.
66018
66019         * modules/unistr/u8-stpncpy: New file.
66020         * modules/unistr/u16-stpncpy: New file.
66021         * modules/unistr/u32-stpncpy: New file.
66022         * lib/unistr/u8-stpncpy.c: New file.
66023         * lib/unistr/u16-stpncpy.c: New file.
66024         * lib/unistr/u32-stpncpy.c: New file.
66025         * lib/unistr/u-stpncpy.h: New file.
66026
66027         * modules/unistr/u8-strcat: New file.
66028         * modules/unistr/u16-strcat: New file.
66029         * modules/unistr/u32-strcat: New file.
66030         * lib/unistr/u8-strcat.c: New file.
66031         * lib/unistr/u16-strcat.c: New file.
66032         * lib/unistr/u32-strcat.c: New file.
66033         * lib/unistr/u-strcat.h: New file.
66034
66035         * modules/unistr/u8-strchr: New file.
66036         * modules/unistr/u16-strchr: New file.
66037         * modules/unistr/u32-strchr: New file.
66038         * lib/unistr/u8-strchr.c: New file.
66039         * lib/unistr/u16-strchr.c: New file.
66040         * lib/unistr/u32-strchr.c: New file.
66041
66042         * modules/unistr/u8-strcmp: New file.
66043         * modules/unistr/u16-strcmp: New file.
66044         * modules/unistr/u32-strcmp: New file.
66045         * lib/unistr/u8-strcmp.c: New file.
66046         * lib/unistr/u16-strcmp.c: New file.
66047         * lib/unistr/u32-strcmp.c: New file.
66048
66049         * modules/unistr/u8-strcpy: New file.
66050         * modules/unistr/u16-strcpy: New file.
66051         * modules/unistr/u32-strcpy: New file.
66052         * lib/unistr/u8-strcpy.c: New file.
66053         * lib/unistr/u16-strcpy.c: New file.
66054         * lib/unistr/u32-strcpy.c: New file.
66055         * lib/unistr/u-strcpy.h: New file.
66056
66057         * modules/unistr/u8-strcspn: New file.
66058         * modules/unistr/u16-strcspn: New file.
66059         * modules/unistr/u32-strcspn: New file.
66060         * lib/unistr/u8-strcspn.c: New file.
66061         * lib/unistr/u16-strcspn.c: New file.
66062         * lib/unistr/u32-strcspn.c: New file.
66063         * lib/unistr/u-strcspn.h: New file.
66064
66065         * modules/unistr/u8-strdup: New file.
66066         * modules/unistr/u16-strdup: New file.
66067         * modules/unistr/u32-strdup: New file.
66068         * lib/unistr/u8-strdup.c: New file.
66069         * lib/unistr/u16-strdup.c: New file.
66070         * lib/unistr/u32-strdup.c: New file.
66071         * lib/unistr/u-strdup.h: New file.
66072
66073         * modules/unistr/u8-strlen: New file.
66074         * modules/unistr/u16-strlen: New file.
66075         * modules/unistr/u32-strlen: New file.
66076         * lib/unistr/u8-strlen.c: New file.
66077         * lib/unistr/u16-strlen.c: New file.
66078         * lib/unistr/u32-strlen.c: New file.
66079         * lib/unistr/u-strlen.h: New file.
66080
66081         * modules/unistr/u8-strmblen: New file.
66082         * modules/unistr/u16-strmblen: New file.
66083         * modules/unistr/u32-strmblen: New file.
66084         * lib/unistr/u8-strmblen.c: New file.
66085         * lib/unistr/u16-strmblen.c: New file.
66086         * lib/unistr/u32-strmblen.c: New file.
66087
66088         * modules/unistr/u8-strmbtouc: New file.
66089         * modules/unistr/u16-strmbtouc: New file.
66090         * modules/unistr/u32-strmbtouc: New file.
66091         * lib/unistr/u8-strmbtouc.c: New file.
66092         * lib/unistr/u16-strmbtouc.c: New file.
66093         * lib/unistr/u32-strmbtouc.c: New file.
66094
66095         * modules/unistr/u8-strncat: New file.
66096         * modules/unistr/u16-strncat: New file.
66097         * modules/unistr/u32-strncat: New file.
66098         * lib/unistr/u8-strncat.c: New file.
66099         * lib/unistr/u16-strncat.c: New file.
66100         * lib/unistr/u32-strncat.c: New file.
66101         * lib/unistr/u-strncat.h: New file.
66102
66103         * modules/unistr/u8-strncmp: New file.
66104         * modules/unistr/u16-strncmp: New file.
66105         * modules/unistr/u32-strncmp: New file.
66106         * lib/unistr/u8-strncmp.c: New file.
66107         * lib/unistr/u16-strncmp.c: New file.
66108         * lib/unistr/u32-strncmp.c: New file.
66109
66110         * modules/unistr/u8-strncpy: New file.
66111         * modules/unistr/u16-strncpy: New file.
66112         * modules/unistr/u32-strncpy: New file.
66113         * lib/unistr/u8-strncpy.c: New file.
66114         * lib/unistr/u16-strncpy.c: New file.
66115         * lib/unistr/u32-strncpy.c: New file.
66116         * lib/unistr/u-strncpy.h: New file.
66117
66118         * modules/unistr/u8-strnlen: New file.
66119         * modules/unistr/u16-strnlen: New file.
66120         * modules/unistr/u32-strnlen: New file.
66121         * lib/unistr/u8-strnlen.c: New file.
66122         * lib/unistr/u16-strnlen.c: New file.
66123         * lib/unistr/u32-strnlen.c: New file.
66124         * lib/unistr/u-strnlen.h: New file.
66125
66126         * modules/unistr/u8-strpbrk: New file.
66127         * modules/unistr/u16-strpbrk: New file.
66128         * modules/unistr/u32-strpbrk: New file.
66129         * lib/unistr/u8-strpbrk.c: New file.
66130         * lib/unistr/u16-strpbrk.c: New file.
66131         * lib/unistr/u32-strpbrk.c: New file.
66132         * lib/unistr/u-strpbrk.h: New file.
66133
66134         * modules/unistr/u8-strrchr: New file.
66135         * modules/unistr/u16-strrchr: New file.
66136         * modules/unistr/u32-strrchr: New file.
66137         * lib/unistr/u8-strrchr.c: New file.
66138         * lib/unistr/u16-strrchr.c: New file.
66139         * lib/unistr/u32-strrchr.c: New file.
66140
66141         * modules/unistr/u8-strspn: New file.
66142         * modules/unistr/u16-strspn: New file.
66143         * modules/unistr/u32-strspn: New file.
66144         * lib/unistr/u8-strspn.c: New file.
66145         * lib/unistr/u16-strspn.c: New file.
66146         * lib/unistr/u32-strspn.c: New file.
66147         * lib/unistr/u-strspn.h: New file.
66148
66149         * modules/unistr/u8-strstr: New file.
66150         * modules/unistr/u16-strstr: New file.
66151         * modules/unistr/u32-strstr: New file.
66152         * lib/unistr/u8-strstr.c: New file.
66153         * lib/unistr/u16-strstr.c: New file.
66154         * lib/unistr/u32-strstr.c: New file.
66155         * lib/unistr/u-strstr.h: New file.
66156
66157         * modules/unistr/u8-strtok: New file.
66158         * modules/unistr/u16-strtok: New file.
66159         * modules/unistr/u32-strtok: New file.
66160         * lib/unistr/u8-strtok.c: New file.
66161         * lib/unistr/u16-strtok.c: New file.
66162         * lib/unistr/u32-strtok.c: New file.
66163         * lib/unistr/u-strtok.h: New file.
66164
66165         * modules/unistr/u8-uctomb: New file.
66166         * modules/unistr/u16-uctomb: New file.
66167         * modules/unistr/u32-uctomb: New file.
66168         * lib/unistr/u8-uctomb.c: New file.
66169         * lib/unistr/u16-uctomb.c: New file.
66170         * lib/unistr/u32-uctomb.c: New file.
66171
66172         * MODULES.html.sh (Unicode string functions): Add the new modules.
66173
66174 2007-01-08  Bruno Haible  <bruno@clisp.org>
66175
66176         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66177         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66178         subdirectories.
66179
66180 2007-01-08  Karl Berry  <karl@gnu.org>
66181
66182         * doc/error.texi: mention that main() fns must set program_name
66183         when progname is used.
66184
66185 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66186
66187         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66188         WCTYPE_H is empty, for the benefit of builds from non-distclean
66189         directories.  Problem reported by Eric Blake in
66190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66191
66192 2007-01-08  Bruno Haible  <bruno@clisp.org>
66193
66194         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66195         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66196         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66197         PROVIDE_CANONICALIZE_FILENAME_MODE.
66198         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66199
66200 2007-01-08  Bruno Haible  <bruno@clisp.org>
66201
66202         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66203         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66204         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66205         * lib/fts.c: Likewise.
66206         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66207
66208 2006-12-25  Bruno Haible  <bruno@clisp.org>
66209
66210         * modules/utf8-ucs4-safe: New file.
66211         * lib/utf8-ucs4-safe.h: New file.
66212         * lib/unistr/utf8-ucs4-safe.c: New file.
66213
66214         * modules/utf16-ucs4-safe: New file.
66215         * lib/utf16-ucs4-safe.h: New file.
66216         * lib/unistr/utf16-ucs4-safe.c: New file.
66217
66218         * MODULES.html.sh (Unicode string functions): Add the new modules.
66219
66220 2007-01-08  Bruno Haible  <bruno@clisp.org>
66221
66222         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66223         (Depends-on): Add unitypes.
66224         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66225         (u8_mbtouc_aux): Move out to separate file.
66226         (u8_mbtouc): Use ucs4_t, uint8_t types.
66227         * lib/unistr/utf8-ucs4.c: New file.
66228
66229         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66230         (Depends-on): Add unitypes.
66231         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66232         (u16_mbtouc_aux): Move out to separate file.
66233         (u16_mbtouc): Use ucs4_t, uint16_t types.
66234         * lib/unistr/utf16-ucs4.c: New file.
66235
66236         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66237         (Depends-on): Add unitypes.
66238         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66239         (u8_uctomb_aux): Move out to separate file.
66240         (u8_uctomb): Use ucs4_t, uint8_t types.
66241         * lib/unistr/ucs4-utf8.c: New file.
66242
66243         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66244         (Depends-on): Add unitypes.
66245         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66246         (u16_uctomb_aux): Move out to separate file.
66247         (u16_uctomb): Use ucs4_t, uint16_t types.
66248         * lib/unistr/ucs4-utf16.c: New file.
66249
66250 2006-12-25  Bruno Haible  <bruno@clisp.org>
66251
66252         * modules/unitypes: New file.
66253         * lib/unitypes.h: New file.
66254         * MODULES.html.sh (func_all_modules): New section "Unicode string
66255         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66256         this section. Add unitypes.
66257
66258 2007-01-08  Bruno Haible  <bruno@clisp.org>
66259
66260         Avoid variable names that conflict with those from libtool.
66261         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66262         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66263         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66264         library_names_spec to acl_library_names_spec, hardcode_* to
66265         acl_hardcode_*.
66266         Reported by Ralf Wildenhues.
66267
66268 2007-01-08  Bruno Haible  <bruno@clisp.org>
66269
66270         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66271         definition.
66272         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66273         definition.
66274         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66275         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66276         definition.
66277         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66278         definition.
66279         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66280         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66281         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66282         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66283         definition.
66284         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66285         definition.
66286         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66287         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66288         GC_USE_<algorithm>.
66289         * lib/gc-libgcrypt.c: Likewise.
66290         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66291         * modules/gc-arctwo (configure.ac): Likewise.
66292         * modules/gc-des (configure.ac): Likewise.
66293         * modules/gc-hmac-md5 (configure.ac): Likewise.
66294         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66295         * modules/gc-md2 (configure.ac): Likewise.
66296         * modules/gc-md4 (configure.ac): Likewise.
66297         * modules/gc-md5 (configure.ac): Likewise.
66298         * modules/gc-random (configure.ac): Likewise.
66299         * modules/gc-rijndael (configure.ac): Likewise.
66300         * modules/gc-sha1 (configure.ac): Likewise.
66301
66302 2007-01-08  Bruno Haible  <bruno@clisp.org>
66303
66304         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66305         macro definition.
66306         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66307         definition.
66308         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66309         definition.
66310         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66311         * modules/fcntl-safer (configure.ac): Likewise.
66312         * modules/fopen-safer (configure.ac): Likewise.
66313         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66314         GNULIB_FWRITEERROR macro definition.
66315
66316 2007-01-08  Bruno Haible  <bruno@clisp.org>
66317
66318         * m4/gnulib-common.m4: New file.
66319         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66320         (func_get_filelist): Add m4/gnulib-common.m4.
66321
66322 2007-01-08  Bruno Haible  <bruno@clisp.org>
66323
66324         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66325         command.
66326
66327 2007-01-08  Jim Meyering  <jim@meyering.net>
66328
66329         Use a more robust test for a "can't happen" condition.
66330         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66331         narrowed the st_size value.  Presuming the "can't happen" condition
66332         is true, that narrowing could conceivably convert an invalid st_size
66333         value into a valid one.  Instead, use a change based on Matthew
66334         Woehlke's original patch.
66335
66336         Slight readability improvement: use an assert-like macro
66337         in place of literal "abort ()" uses.
66338         * lib/fts.c (fts_assert): Define.
66339         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66340         Use this macro instead of a bare 'abort'.
66341
66342 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66343
66344         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66345         simply work around them.
66346         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66347         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66348         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66349         declaring.
66350         Don't bother to define as macros, since the standard doesn't require it.
66351         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66352         longer worry about IRIX 5.3.
66353         (HAVE_WCTYPE_CTMP_BUG): Remove.
66354
66355 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66356
66357         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66358         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66359         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66360         Problems reported by Georg Schwarz for IRIX 5.3.
66361
66362         * gnulib-tool (autoconf_minversion): Take the maximum version number
66363         found, not the minimum.  Problem reported by James Youngman.
66364
66365 2007-01-03  Karl Berry  <karl@gnu.org>
66366
66367         * doc/error.texi: new file, explaining interaction with progname.
66368         * doc/gnulib.texi: include it.  Update copyright.
66369
66370 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66371
66372         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66373         AC_CANONICAL_HOST, to improve autobuild outputs.
66374
66375 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66376             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66377
66378         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66379         sockets, server sockets, and other file descriptors.  Count errors
66380         to compute the return value.  Reorder the code a bit to be easier
66381         to follow.  Don't set event bits that were not requested (except
66382         POLLERR and POLLHUP).
66383
66384 2007-01-01  Bruno Haible  <bruno@clisp.org>
66385
66386         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66387
66388 2007-01-03  Jim Meyering  <jim@meyering.net>
66389
66390         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66391
66392 2007-01-02  Bruno Haible  <bruno@clisp.org>
66393
66394         * modules/settime (Include): Require timespec.h.
66395         * modules/nanosleep (Include): Likewise.
66396
66397 2007-01-01  Bruno Haible  <bruno@clisp.org>
66398
66399         * gnulib-tool (func_emit_copyright_notice): Bump year.
66400         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66401
66402 2007-01-01  Bruno Haible  <bruno@clisp.org>
66403
66404         Improve support for OpenBSD.
66405         * build-aux/config.rpath (libname_spec): Export.
66406         (library_names_spec): New variable. Export.
66407         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66408         library_names_spec from the config.rpath output. Locate shared library
66409         through the name pattern in library_names_spec.
66410
66411 2007-01-01  Eric Blake  <ebb9@byu.net>
66412
66413         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66414
66415 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66416
66417         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66418         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66419         assume the C locale, and avoid an "eval" that could cause trouble.
66420         Problem with SORT reported by Bob Proulx.
66421
66422         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66423         Define.  Trivial patch from Henning Nielsen Lund, originally
66424         sent to bug-grep@gnu.org today.
66425
66426 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66427
66428         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66429         struct stat.  Problem reported by Henning Nielsen Lund.
66430         * lib/acl.c: Include acl.h first, to check interface.  Don't
66431         bother to include sys/types.h and sys/stat.h again.
66432
66433 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66434
66435         Import the following change from libc; problem reported by
66436         Sven Verdoolaege.
66437
66438         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66439
66440         [BZ #1373]
66441         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66442
66443 2006-12-28  Jim Meyering  <jim@meyering.net>
66444
66445         * build-aux/announce-gen: Do not assume that the package
66446         builds any of tar.gz, tar.bz2, and .xdelta files.
66447         Suggestion from Simon Josefsson.
66448
66449 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66450
66451         * modules/announce-gen: New file.
66452
66453 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66454
66455         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66456         handles its gotchas now.
66457         * lib/mbswidth.c: Likewise.
66458         * lib/wcwidth.h: Likewise.
66459         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66460         and iswcntrl; the wctype module does this stuff now.
66461         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66462         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66463         * modules/mbchar (Depends-on): Add wctype.
66464         * modules/mbswidth (Depends-on): Likewise.
66465         * modules/wcwidth (Depends-on): Likewise.
66466
66467 2006-12-27  Eric Blake  <ebb9@byu.net>
66468
66469         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66470         module uses more than what <wctype.h> is required to provide.
66471
66472 2006-12-26  Eric Blake  <ebb9@byu.net>
66473
66474         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66475
66476 2006-12-26  Eric Blake  <ebb9@byu.net>
66477
66478         * modules/absolute-header: New module.
66479         * modules/fcntl (Depends-on): Depend on it.
66480         * modules/inttypes (Depends-on): Likewise.
66481         * modules/stdint (Depends-on): Likewise.
66482         * modules/sys_stat (Depends-on): Likewise.
66483         * modules/wctype (Depends-on): Likewise.
66484         * MODULES.html.sh (Support for building libraries and
66485         executables): Document it.
66486
66487 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66488
66489         * gnulib-tool (SED): Remove, undoing previous change.
66490         The problem was that it broke coreutils on Solaris, because
66491         "sed --posix" leaked into a makefile.
66492         (sed): New alias, if 'alias' and GNU sed.
66493
66494 2006-12-24  Jim Meyering  <jim@meyering.net>
66495
66496         Work around an fchownat bug in glibc-2.4:
66497         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66498         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66499         in spite of the -P option.
66500         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66501         New macros.
66502         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66503         * modules/openat (Files): Add lib/fchownat.c.
66504         * lib/openat.c (fchownat): Don't define here.  Move to...
66505         * lib/fchownat.c: ...this new file.
66506
66507 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66508
66509         Fix bug reported by Bruno Haible in
66510         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66511         where quotearg.c didn't compile on Mac OS X 10.2 because it
66512         lacks <wchar.h> and wint_t.
66513         * lib/wctype_.h (__wctype_wint_t): New type.
66514         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66515         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66516         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66517         Arg is now of type __wctype_wint_t, not wint_t.
66518         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66519         substitute HAVE_WINT_T.
66520         * modules/wctype (Files): Add m4/wint_t.m4.
66521         (wctype.h): Substitute HAVE_WINT_T.
66522
66523 2006-12-23  Bruno Haible  <bruno@clisp.org>
66524
66525         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66526
66527 2006-12-23  Bruno Haible  <bruno@clisp.org>
66528
66529         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66530         S_ISLNK.
66531         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66532         mingw.
66533
66534 2006-12-22  Bruno Haible  <bruno@clisp.org>
66535
66536         * lib/copy-file.c: Include acl.h.
66537         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66538         Close the file descriptors only after being done with copy_acl.
66539         * modules/copy-file (Depends-on): Add acl.
66540
66541 2006-12-22  Bruno Haible  <bruno@clisp.org>
66542
66543         * gnulib-tool (SED): New variable.
66544         Use $SED instead of sed everywhere.
66545
66546 2006-12-22  Bruno Haible  <bruno@clisp.org>
66547
66548         * modules/no-c++: New file.
66549         * m4/no-c++.m4: New file.
66550         * MODULES.html.sh (Support for building libraries and executables):
66551         Add no-c++.
66552
66553 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66556         Include <limits.h>, and use its INT_MAX to rewrite the
66557         j loop so that it does not overflow 'int'.  Problem reported by
66558         Ralf Wildenhues in
66559         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66560         Play it safe by shifting left by 1 rather than multiplying by 2,
66561         as GCC is less likely to optimize this away when the value
66562         is signed (when it assumes overflow leads to undefined behavior).
66563         Also, don't assume time_t uses two's complement.
66564
66565 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66566
66567         * MODULES.html.sh: New module wctype.
66568         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66569         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66570         <wctype.h>, since the new wctype module should fix this.
66571         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66572         the wctype module should arrange for it.
66573         * lib/regex_internal.h: Likewise.
66574         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66575         since the wctype module should handle this now.
66576         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66577         * modules/fnmatch (Depends-on): Add wctype.
66578         * modules/quotearg (Depends-on): Likewise.
66579         * modules/regex (Depends-on): Likewise.
66580
66581 2006-12-19  Bruno Haible  <bruno@clisp.org>
66582
66583         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66584         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66585
66586 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66587
66588         * modules/savewd (Depends-on): Fix dependency on fcntl.
66589
66590 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66591
66592         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66593         conforms to C99, rather than relying on the user's environment
66594         setting of STDINT_H.
66595
66596 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66597         and Eric Blake  <ebb9@byu.net>
66598
66599         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66600         This is more consistent with the other defines here.
66601         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66602         Port to z/OS.  Problem reported by Paul Gilmartin.
66603         Change local vars to use gl_ prefix rather than ac_.
66604         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66605         with other defines.
66606         * modules/double-slash-root: New module.
66607         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66608         (Depends-on): Add double-slash-root.
66609         * MODULES.html.sh (File system functions): Mention new module.
66610
66611 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66612
66613         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66614         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66615         This is for the benefit of gzip, which doesn't do i18n.
66616
66617 2006-12-12  Jim Meyering  <jim@meyering.net>
66618
66619         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66620         Reported by Andreas Schwab <schwab@suse.de>.
66621
66622 2006-12-12  Bruno Haible  <bruno@clisp.org>
66623
66624         Merge these changes.
66625         2006-09-05  Bruno Haible  <bruno@clisp.org>
66626         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66627         iconv_alloc succeeded.
66628         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66629         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66630         test for " && dest " at the end - dest is always != NULL there. Call
66631         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66632         with 2xNULL arguments, also to flush the state storage. Handle the
66633         IRIX iconv behaviour. Realloc the final result, to throw away unused
66634         memory.
66635
66636 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66637
66638         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66639         and fchmodat unconditionally, since glibc 2.4 has them.
66640         Problem reported by Arkadiusz Miskiewicz.
66641
66642 2006-12-10  Bruno Haible  <bruno@clisp.org>
66643
66644         * gnulib-tool (func_import): Show the include files only for those
66645         modules that are copied and specified.
66646         Reported by Karl Berry.
66647
66648 2006-12-08  Jim Meyering  <jim@meyering.net>
66649
66650         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66651         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66652
66653         * build-aux/announce-gen: Add two new options, both optional:
66654         --bootstrap-tools=TOOL_LIST
66655               a comma-separated list of tools, e.g.,
66656               autoconf,automake,bison,gnulib
66657         --gnulib-snapshot-date=DATE
66658               if gnulib is in the bootstrap tool list,
66659               then report this as the snapshot date.
66660               If not specified, use the current date/time.
66661               If you specify a date here, be sure it's UTC.
66662
66663 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66664
66665         * tests/test-argp-2.sh: Fix test to match actual output.
66666         (func_compare): Fix sed script to be portable.
66667
66668 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66669
66670         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66671         workaround for this case.  It is not autoconfigured now; offhand
66672         it's hard to see how to autoconfigure it.
66673
66674 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66677         a directory that is about to be chowned.  Such a directory's
66678         initial file permissions should permit the owner only and this
66679         should not be changed until after the chown, since the group and
66680         other bits would be incorrect if they granted permission before
66681         the chown.
66682
66683         Fix porting problem for iswctype reported by Georg Schwarz in:
66684         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66685         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66686         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66687         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66688         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66689
66690 2006-12-03  Jim Meyering  <jim@meyering.net>
66691
66692         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66693         p->fts_statp may not yet be defined.
66694         (fts_read): Instead, set it in the caller, once p->fts_statp is
66695         sure to be defined, and corresponds to a top-level directory.
66696         This bug made du -x fail.  Here's the coreutils test case:
66697         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66698         Reported by Mike Frysinger.
66699
66700 2006-12-01  Jim Meyering  <jim@meyering.net>
66701
66702         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66703         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66704         Reported by Simon Josefsson.
66705
66706 2006-11-30  Jim Meyering  <jim@meyering.net>
66707
66708         * m4/warning.m4: Use the all-permissive copyright notice
66709         recommended by RMS (rather than LGPL).
66710         * m4/vararrays.m4: Likewise.
66711         * m4/flexmember.m4: Likewise.
66712
66713 2006-11-29  Bruno Haible  <bruno@clisp.org>
66714
66715         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66716         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66717         using +=.
66718         Reported by Simon Josefsson <simon@josefsson.org>.
66719
66720 2006-11-28  James Youngman <jay@gnu.org>
66721
66722         * README: Advise users that they might find the bug-gnulib@gnu.org
66723         and autotools-announce@gnu.org mailing lists useful.
66724
66725 2006-11-28  Bruno Haible  <bruno@clisp.org>
66726
66727         * m4/ptrdiff_max.m4: Remove file.
66728
66729 2006-11-21  Bruno Haible  <bruno@clisp.org>
66730
66731         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66732         _AC_COMPUTE_INT.
66733         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66734         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66735         _AC_COMPUTE_INT.
66736         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66737         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66738         _AC_COMPUTE_INT.
66739         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66740
66741 2006-11-28  Jim Meyering  <jim@meyering.net>
66742
66743         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66744         warning from "gcc -Wshadow" about shadowing the builtin.
66745
66746 2006-11-27  Bruno Haible  <bruno@clisp.org>
66747
66748         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66749         _AC_COMPUTE_INT.
66750         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66751
66752 2006-11-27  Bruno Haible  <bruno@clisp.org>
66753             Paul Eggert  <eggert@cs.ucla.edu>
66754
66755         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66756
66757 2006-11-26  Bruno Haible  <bruno@clisp.org>
66758
66759         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66760         noinst_LTLIBRARIES.
66761
66762 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66763             Bruno Haible  <bruno@clisp.org>
66764
66765         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66766         if compiling with "gcc -ansi".
66767
66768 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66769
66770         Fix some incompatibilities with gcc -ansi -pedantic.
66771         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66772         if compiling pedantically with GCC, unless it's C99 or later.
66773         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66774         it mishandles gcc -ansi -pedantic as well.
66775         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66776         if gcc -pedantic.
66777         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66778         initializers for struct if -pedantic, unless it's C99 or later.
66779
66780 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66781
66782         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66783         Don't close an fd more than once. Identical atimes indicate
66784         success, not failure.
66785
66786 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66787
66788         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66789
66790 2006-11-23  Jim Meyering  <jim@meyering.net>
66791
66792         * build-aux/announce-gen: New file.  From coreutils.
66793
66794 2006-11-22  Jim Meyering  <jim@meyering.net>
66795
66796         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66797         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66798         (fts_read): Use a temporary to narrow the overused st_size member
66799         before using it in a switch statement.  Reported by Matthew Woehlke.
66800
66801         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66802         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66803
66804 2006-11-20  Bruno Haible  <bruno@clisp.org>
66805
66806         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66807         changequote instead of pairs of brackets.
66808         Reported by Andreas Schwab <schwab@suse.de>.
66809
66810 2006-11-21  Jim Meyering  <jim@meyering.net>
66811
66812         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66813         so as to remain compatible with older compilers.
66814         Patch from Michael Deutschmann.
66815
66816 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66817
66818         * MODULES.html.sh (File system functions): Add openat.
66819
66820         * lib/openat.h (rpl_fstatat): New macro, if
66821         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66822         (fstatat): Define to rpl_fstatat under the same conditions,
66823         unless COMPILING_FSTATAT.
66824         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66825         seems to have the bug.
66826         * lib/fstatat.c: New file.
66827         * modules/openat (Files): Add it.
66828
66829 2006-11-20  Bruno Haible  <bruno@clisp.org>
66830
66831         * Makefile: New file.
66832
66833 2006-11-20  Jim Meyering  <jim@meyering.net>
66834
66835         The beginnings of syntax-related checks for gnulib.
66836         * lib/Makefile: New file.
66837         * lib/t-idcache: New script.  Ensure that the two halves of
66838         idcache.c stay in sync.
66839
66840         * lib/idcache.c: Adjust comments in user- and group- portions to
66841         be more accurate, and to be consistent with one another.
66842
66843 2006-11-20  Jim Meyering  <jim@meyering.net>
66844
66845         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66846         continue using the flexible array member (thus, this module performs
66847         half as many malloc calls), with the addition that...
66848         (getgroup, getuser): Consistently record a non-match via an empty
66849         "name" string, and map an empty string match to a NULL return value.
66850         * modules/idcache (Depends-on): Re-add flexmember.
66851
66852         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66853         (getuidbyname, getgroup, getgidbyname): Likewise.
66854
66855         Use cleaner syntax: NULL rather than 0.
66856         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66857
66858 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66859
66860         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66861         It mishandled the case where the group was missing.
66862         Problem reported by Greg Schafer.
66863         * modules/idcache: Likewise.
66864
66865 2006-11-18  Jim Meyering  <jim@meyering.net>
66866
66867         * check-module (%exempt_header): Add exception for some
66868         conditionally-included headers.
66869
66870         * modules/i-ring (Depends-on): Add verify.
66871         (License): Change to LGPL.
66872
66873 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66876         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66877         and inttostr.h.  Use snprintf rather than uinttostr, so that
66878         LGPLed code doesn't depend on GPLed.
66879
66880 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66881
66882         * modules/inline (License): Change from GPL to LGPL.
66883
66884 2006-11-17  Jim Meyering  <jim@meyering.net>
66885
66886         * modules/d-type (License): Switch to LGPL.
66887
66888 2006-11-15  Bruno Haible  <bruno@clisp.org>
66889
66890         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66891
66892 2006-11-15  Eric Blake  <ebb9@byu.net>
66893
66894         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66895         the module dependency.
66896
66897 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66898             Bruno Haible  <bruno@clisp.org>
66899
66900         * gnulib-tool (func_create_testdir): Add license consistency check.
66901
66902 2006-11-15  Eric Blake  <ebb9@byu.net>
66903
66904         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66905         random "(cached)" in configure output.
66906
66907 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66908
66909         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66910         test for conforming inttypes.h is both announced and cached.
66911
66912         * MODULES.html.sh (seen_modules, seen_files): New variables.
66913         (func_module): Rewrite to use a few less gnulib-tool and sed
66914         invocations.  Avoid a couple of quadratic algorithms for ...
66915         (missed_modules, missed_files): ... these, with ...
66916         (func_append, func_tmpdir): ... these new functions, from
66917         gnulib-tool.  Analogously, install traps for cleanup.
66918
66919         * tests/test-gc.c (main): Remove unused variables.
66920         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66921
66922 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66923
66924         * modules/inttostr (License): Change to LGPL.
66925
66926 2006-11-14  Eric Blake  <ebb9@byu.net>
66927
66928         * modules/tempname (License): Change to LGPL.
66929
66930 2006-11-14  Eric Blake  <ebb9@byu.net>
66931
66932         * doc/functions.texi (Function Portability): *printf functions on
66933         Cygwin now understand all POSIX size specifiers.
66934
66935 2006-11-14  Bruno Haible  <bruno@clisp.org>
66936
66937         * modules/c-ctype (License): Change to LGPL.
66938
66939 2006-11-12  Bruno Haible  <bruno@clisp.org>
66940
66941         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66942         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66943         for GNOME libraries, for which the include files are installed in
66944         subdirectories of $prefix/include.
66945
66946 2006-11-12  Bruno Haible  <bruno@clisp.org>
66947
66948         * m4/lib-link.m4: Require at least autoconf-2.54.
66949         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66950         name to underscores for the --with option.
66951
66952 2006-11-13  Bruno Haible  <bruno@clisp.org>
66953
66954         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66955         the tests directory.
66956         Reported by Ralf Wildenhues.
66957
66958 2006-11-13  Bruno Haible  <bruno@clisp.org>
66959
66960         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66961         (func_emit_initmacro_end): Undo the override here.
66962         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66963         Works around the famous automake error in coreutils.
66964
66965 2006-11-13  Eric Blake  <ebb9@byu.net>
66966
66967         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66968         element, not its node.
66969
66970 2006-11-12  Bruno Haible  <bruno@clisp.org>
66971
66972         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66973         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66974
66975 2006-11-12  Bruno Haible  <bruno@clisp.org>
66976
66977         * gnulib-tool: New option --local-symlink.
66978         (func_usage): Document it.
66979         (lsymbolic): New variable.
66980         (func_import, func_create_testdir): If --symlink was not specified,
66981         test whether --local-symlink was specified and the file comes from
66982         the local_gnulib_dir.
66983
66984 2006-11-12  Bruno Haible  <bruno@clisp.org>
66985
66986         * gnulib-tool (func_ln): New function.
66987         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66988
66989 2006-11-12  Bruno Haible  <bruno@clisp.org>
66990
66991         Finish support for source files in subdirectories.
66992         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66993         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66994         AUTOMAKE_OPTIONS.
66995         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66996
66997 2006-11-12  Bruno Haible  <bruno@clisp.org>
66998
66999         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67000         EXTRA_lib_SOURCES augmentation.
67001         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67002
67003 2006-11-12  Jim Meyering  <jim@meyering.net>
67004
67005         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67006         file descriptors.  This also averts a failure on systems with
67007         native openat support when a traversed directory lacks "x" access.
67008         * lib/fts_.h: Include "i-ring.h"
67009         (struct FTS) [fts_fd_ring]: New member.
67010         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67011         (FCHDIR): Add parentheses.
67012         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67013         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67014         When descending, rather than simply closing the previous
67015         fts_cwd_fd value, push that file descriptor onto the ring.
67016         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67017         (fts_open): Initialize the new fd_ring member.
67018         (fts_close): Clear the ring.
67019         (fts_safe_changedir): When possible, use our new fd_ring to skip
67020         the diropen and fstat and dev/ino comparison that would normally
67021         accompany a virtual `chdir ("..")'.
67022
67023         * modules/fts (Depends-on): Add i-ring.
67024         * modules/i-ring: New module.
67025         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67026         * m4/i-ring.m4: New file.
67027
67028 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67029
67030         * gnulib-tool (func_create_testdir): Fix replacement of
67031         `build-aux' in configure.ac.  Run autotools in gltests
67032         subdirectory.
67033         (func_create_testdir, func_create_megatestdir, test): There is
67034         no need for '--force' in most autotool invocations in a new
67035         tree.  Actually fail the whole test if any of the tools, or the
67036         configure or make stages fail.
67037
67038         Sync from Automake.
67039         * build-aux/gnupload: Revert last change.  Add pointer to upload
67040         instructions of the GNU Maintenance Instructions.
67041         Suggestion by Karl Berry.
67042
67043 2006-11-10  Jim Meyering  <jim@meyering.net>
67044
67045         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67046
67047 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67048
67049         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67050         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67051         (bind_textdomain_codeset) [! ENABLE_NLS]:
67052         Evaluate all the arguments.  That way, callers get compatible behavior
67053         if the arguments have side effects.  Also, it avoids some GCC
67054         diagnostics in some cases; Joel E. Denny reported problems when Bison
67055         was configured with --enable-gcc-warnigs.
67056
67057 2006-11-10  Jim Meyering  <jim@meyering.net>
67058
67059         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67060         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67061         account.
67062
67063 2006-11-10  Jim Meyering  <jim@meyering.net>
67064
67065         * modules/inline: New file/module.
67066         * modules/xalloc (Files): Remove m4/inline.m4.
67067         (Depends-on): Add inline, instead.
67068         * modules/oset: Likewise.
67069         * modules/list: Likewise.
67070
67071 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67072
67073         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67074         Problem reported by Matthew Woehlke.
67075
67076 2006-11-09  Bruno Haible  <bruno@clisp.org>
67077
67078         * lib/tempname.c (gen_tempname): Remove variant that invokes
67079         __gen_tempname.
67080         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67081         __gen_tempname.
67082
67083 2006-11-08  Bruno Haible  <bruno@clisp.org>
67084
67085         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67086         to 'yes' instead of 'cross-compiling'.
67087
67088 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67089
67090         * lib/quotearg.h (quotearg_free): New decl.
67091         * lib/quotearg.c (quotearg_free): New function.
67092         (slot0, nslots, slotvec0, slotvec):
67093         Now file-scope so that quotearg_free can get at them.
67094
67095 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67096
67097         Sync from Automake.
67098         * build-aux/gnupload: Add missing 'gnu' to example URL.
67099         Report by Karl Berry.
67100
67101 2006-11-08  Bruno Haible  <bruno@clisp.org>
67102
67103         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67104         Suggested by Paul Eggert.
67105
67106 2006-11-08  Jim Meyering  <jim@meyering.net>
67107
67108         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67109         It's already included if !_LIBC.
67110         (fts_safe_changedir): Add a comment.
67111
67112 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67113
67114         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67115         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67116         Matthew Woehlke.
67117
67118         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67119         definitions up, to avoid colliding with change below.
67120         (static_inline) [HAVE_INLINE]: New macro.
67121         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67122         Provide extern decls when !HAVE_INLINE.  Do not define unless
67123         static_inline is defined, either by us or by xmalloc.c.  Use
67124         static_inline rather than static inline.
67125         (XCALLOC): Optimize sizeof(T) = 1 case.
67126         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67127
67128 2006-11-07  Bruno Haible  <bruno@clisp.org>
67129
67130         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67131         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67132         AC_C_INLINE.
67133         * modules/xalloc (Files): Add m4/inline.m4.
67134
67135 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67136
67137         * README: Fix typo.
67138         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67139         (Miscellanous Notes): ...from this.
67140
67141 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67142
67143         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67144         Mention that offsetof should be used instead of sizeof.
67145         From Bruno Haible.
67146
67147 2006-11-07  Bruno Haible  <bruno@clisp.org>
67148
67149         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67150
67151 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67152
67153         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67154         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67155         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67156         (gl_tree_add_before, gl_tree_add_after):
67157         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67158         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67159         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67160         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67161         (gl_linked_add_after, gl_linked_add_at): Likewise.
67162         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67163         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67164         (gl_tree_add_before, gl_tree_add_after): Likewise.
67165         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67166         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67167         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67168
67169 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67170
67171         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67172
67173 2006-11-06  Bruno Haible  <bruno@clisp.org>
67174
67175         * m4/inline.m4: New file.
67176         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67177         * modules/list (Files): Add m4/inline.m4.
67178         * modules/oset (Files): Likewise.
67179
67180 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67181
67182         * lib/idcache.c: Include <stddef.h>, for offsetof.
67183         (struct userid.name): Change from char * to a flexible array member.
67184         All uses changed.
67185         * modules/idcache (Depends-on): Add flexmember.
67186
67187         * MODULES.html.sh (Core language properties): New module flexmember.
67188         * modules/flexmember, m4/flexmember.m4: New files.
67189
67190         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67191         inline functions that are identical with the old xnmalloc_inline,
67192         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67193         that we can avoid some unnecessary integer multiplications and
67194         divisions in the common case where the element size is known at
67195         compile time.
67196         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67197         needed.
67198         (xnboundedmalloc): Remove.
67199         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67200         arguments, for consistency with rest of this header.
67201         (xcharalloc): Rewrite using XNMALLOC.
67202         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67203         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67204         versions have been moved to lib/xalloc.h and renamed to be the
67205         non-*_inline versions.
67206         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67207         and xnrealloc functions, since those functions are now inline and
67208         now call us.
67209         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67210         renaming described above.
67211         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67212         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67213         captures the dependency in AC_C_INLINE.
67214
67215         New module canonicalize-lgpl, proposed by Charles Wilson in
67216         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67217         with a few small changes afterwards.
67218         * MODULES.html.sh (File system functions): New module
67219         canonicalize-lgpl.
67220         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67221         and canonicalize_file_name.
67222         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67223         * modules/canonicalize-lgpl: New files.
67224
67225 2006-11-05  Bruno Haible  <bruno@clisp.org>
67226
67227         * gnulib-tool (func_import, func_create_testdir): Create directories
67228         also for files in subdirectories of lib/.
67229
67230 2006-11-05  Bruno Haible  <bruno@clisp.org>
67231
67232         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67233         ANSI C compliant.
67234
67235 2006-11-03  Bruno Haible  <bruno@clisp.org>
67236
67237         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67238         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67239         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67240         (xnboundedmalloc): New inline function.
67241         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67242         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67243         xmalloc.
67244         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67245         xmalloc.
67246         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67247         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67248         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67249         xmalloc.
67250         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67251         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67252         xmalloc.
67253         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67254         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67255         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67256         xmalloc.
67257         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67258         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67259         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67260         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67261         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67262         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67263         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67264
67265 2006-11-03  Bruno Haible  <bruno@clisp.org>
67266
67267         * lib/c-ctype.h [C++]: Define functions without name mangling.
67268         * lib/fwriteerror.h [C++]: Likewise.
67269         * lib/gcd.h [C++]: Likewise.
67270         * lib/linebreak.h [C++]: Likewise.
67271
67272 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67273
67274         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67275         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67276         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67277         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67278         Check for functions and headers just once.
67279         Check for declaration of canonicalize_file_name.
67280         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67281
67282 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67283
67284         * gnulib-tool (func_import): Fix typo in actioncmd.
67285
67286 2006-11-02  Bruno Haible  <bruno@clisp.org>
67287
67288         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67289         newline sequence in the Makefile.am snippet as a space, like "make"
67290         does.
67291         Reported by Roger Persson <perrog@gmail.com>.
67292
67293 2006-11-01  Bruno Haible  <bruno@clisp.org>
67294
67295         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67296         already declared in <string.h>.
67297         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67298
67299 2006-11-01  Bruno Haible  <bruno@clisp.org>
67300
67301         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67302         * lib/strcase.h: Include <string.h>.
67303         (strcasecmp): Define to rpl_strcasecmp here.
67304
67305 2006-11-01  Bruno Haible  <bruno@clisp.org>
67306
67307         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67308
67309 2006-11-01  Eric Blake  <ebb9@byu.net>
67310
67311         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67312
67313         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67314
67315 2006-10-29  Bruno Haible  <bruno@clisp.org>
67316
67317         Make it compile in C++ mode.
67318         * lib/full-write.c (full_rw): Add a cast.
67319
67320 2006-11-01  Bruno Haible  <bruno@clisp.org>
67321
67322         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67323         be POSIX compliant.
67324         Reported by Roger Persson <perrog@gmail.com>.
67325
67326 2006-11-01  Eric Blake  <ebb9@byu.net>
67327
67328         * lib/getopt_.h: Fix comments.
67329
67330 2006-10-31  Eric Blake  <ebb9@byu.net>
67331
67332         * modules/tmpdir (Depends-on): Add sys_stat.
67333         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67334         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67335         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67336         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67337         tempname.
67338
67339 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67340
67341         Avoid some C++ diagnostics reported by Bruno Haible.
67342         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67343         xmalloc.
67344         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67345         (struct slotvec): Move to top level.
67346         (quotearg_n_options): Rewrite to avoid xmalloc.
67347         * lib/xalloc.h (xcharalloc): New function.
67348         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67349         [defined __cplusplus]: Add function template that provides result
67350         type propagation.  This part of the change is from Bruno Haible.
67351
67352 2006-10-29  Bruno Haible  <bruno@clisp.org>
67353
67354         Make it compile in C++ mode.
67355         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67356         * lib/strnlen1.c (strnlen1): Cast memchr result.
67357         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67358         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67359         (create_temp_dir): Rename local variable 'template'.
67360         (compile_csharp_using_sscli): Add cast.
67361         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67362         * lib/findprog.c (find_in_path): Likewise.
67363         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67364         * lib/wait-process.c (register_slave_subprocess): Likewise.
67365
67366 2006-10-22  Bruno Haible  <bruno@clisp.org>
67367
67368         * modules/tsearch: New file.
67369         * lib/tsearch.h: New file.
67370         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67371         * m4/tsearch.m4: New file.
67372         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67373
67374 2006-10-29  Eric Blake  <ebb9@byu.net>
67375
67376         * lib/arcfour.c: Assume config.h.
67377         * lib/arctwo.c: Likewise.
67378         * lib/base64.c: Likewise.
67379         * lib/check-version.c: Likewise.
67380         * lib/crc.c: Likewise.
67381         * lib/des.c: Likewise.
67382         * lib/gc-gnulib.c: Likewise.
67383         * lib/gc-libgcrypt.c: Likewise.
67384         * lib/gc-pbkdf2-sha1.c: Likewise.
67385         * lib/getaddrinfo.c: Likewise.
67386         * lib/getdelim.c: Likewise.
67387         * lib/getline.c: Likewise.
67388         * lib/hmac-md5.c: Likewise.
67389         * lib/hmac-sha1.c: Likewise.
67390         * lib/iconvme.c: Likewise.
67391         * lib/md2.c: Likewise.
67392         * lib/md4.c: Likewise.
67393         * lib/memxor.c: Likewise.
67394         * lib/read-file.c: Likewise.
67395         * lib/readline.c: Likewise.
67396         * lib/rijndael-alg-fst.c: Likewise.
67397         * lib/rijndael-api-fst.c: Likewise.
67398         * lib/xgetdomainname.c: Likewise.
67399
67400 2006-10-28  Eric Blake  <ebb9@byu.net>
67401
67402         * lib/xstrndup.c: Assume config.h.
67403
67404 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67405
67406         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67407         stat-macros.h is now for our own macros, whereas stat_h is for
67408         macros in the <sys/stat.h> name space.
67409         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67410         (STAT_MACROS_H): Remove.
67411         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67412         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67413         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67414         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67415         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67416         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67417         Move these macros to ...
67418         * lib/stat_.h: here.  Don't include stat-macros.h.
67419         * lib/canonicalize.c: Don't include stat-macros.h.
67420         * lib/chown.c: Likewise.
67421         * lib/euidaccess.c: Likewise.
67422         * lib/file-type.c: Likewise.
67423         * lib/filemode.c: Likewise.
67424         * lib/glob.c: Likewise.
67425         * lib/isapipe.c: Likewise.
67426         * lib/lchown.c: Likewise.
67427         * lib/lstat.c: Likewise.
67428         * lib/mkdir-p.c: Likewise.
67429         * lib/rmdir.c: Likewise.
67430         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67431         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67432         unless mkdir isn't declared, to speed up 'configure'.
67433         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67434         would define all the S_* symbols.
67435         * modules/canonicalize (Depends-on):
67436         Depend on sys_stat, not stat-macros.
67437         * modules/chown: Likewise.
67438         * modules/euidaccess: Likewise.
67439         * modules/filemode: Likewise.
67440         * modules/file-type: Likewise.
67441         * modules/glob: Likewise.
67442         * modules/isapipe: Likewise.
67443         * modules/lchown: Likewise.
67444         * modules/lstat: Likewise.
67445         * modules/mkancesdirs: Likewise.
67446         * modules/rmdir: Likewise.
67447         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67448         * modules/modechange: Likewise.
67449         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67450         (configure.ac): Remove gl_STAT_MACROS.
67451         * modules/sys_stat (Depends-on): Remove stat-macros.
67452
67453 2006-10-27  Bruno Haible  <bruno@clisp.org>
67454
67455         * m4/signed.m4: Remove file.
67456         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67457         invocation.
67458         * modules/vasnprintf (Files): Remove m4/signed.m4.
67459
67460 2006-10-27  Bruno Haible  <bruno@clisp.org>
67461
67462         Update to GNU gettext 0.16.
67463         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67464         m4/inttypes-h.m4, m4/signed.m4.
67465         * m4/gettext.m4: Update to GNU gettext 0.16.
67466         * m4/intl.m4: New file, from GNU gettext.
67467         * m4/intldir.m4: New file, from GNU gettext.
67468         * config/srclist.txt: Update
67469
67470 2006-10-27  Eric Blake  <ebb9@byu.net>
67471
67472         * MODULES.html.sh: Document tempname.
67473         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67474         dependencies.
67475         (Files): Move lib/tempname.c...
67476         * modules/tempname: ...to this new module.
67477         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67478         (gl_PREREQ_TEMPNAME): Move...
67479         * m4/tempname.m4: ...to this new file.
67480         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67481         * modules/sys_stat (Depends-on): Add stat-macros.
67482         * lib/stat_.h (includes): Pick up stat macros.
67483         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67484         if stat macros are broken.
67485         * lib/tempname.c (includes): No need to include "stat-macros.h".
67486         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67487         (direxists, __path_search) [!_LIBC]: Don't compile these in
67488         gnulib; the tmpdir module covers that.
67489         * lib/tempname.h: New file.
67490
67491 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67492
67493         * COPYING: Explain how gnulib-tool converts licence headers.
67494         Almost all wording by Eric Blake.
67495
67496 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67497
67498         * lib/mbchar.h (is_basic_table): Make read-only.
67499         * lib/mbchar.c (is_basic_table): Likewise.
67500         Reported by John Darrington.
67501
67502 2006-10-25  Bruno Haible  <bruno@clisp.org>
67503
67504         * lib/progname.h (set_program_name): Undefine before defining.
67505
67506 2006-10-25  Bruno Haible  <bruno@clisp.org>
67507
67508         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67509         false for non-gcc C++ compilers.
67510         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67511
67512 2006-10-24  Bruno Haible  <bruno@clisp.org>
67513
67514         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67515         iconv implementations like Irix iconv.
67516
67517 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67518
67519         * modules/vararrays: New file.
67520         * m4/vararrays.m4: New file, taken from diffutils.
67521         * MODULES.html.sh: New module vararrays.
67522
67523 2006-10-24  Karl Berry  <karl@gnu.org>
67524
67525         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67526         Don't call GNU Unix.
67527
67528 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67529
67530         * users.txt: Add Libtool.
67531
67532         Sync from Libtool:
67533
67534         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67535
67536         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67537         to gnulib's policy of including config.h unconditionally.
67538
67539 2006-10-24  Bruno Haible  <bruno@clisp.org>
67540
67541         * modules/wcwidth (Files): Add m4/wint_t.m4.
67542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67543         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67544
67545 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67546
67547         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67548         to pacify GCC with some -W flags enabled.  Problem reported by
67549         Bruno Haible.
67550
67551 2006-10-24  Jim Meyering  <jim@meyering.net>
67552
67553         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67554         Reported by Karl Berry.
67555
67556 2006-10-23  Bruno Haible  <bruno@clisp.org>
67557
67558         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67559
67560 2006-10-24  Bruno Haible  <bruno@clisp.org>
67561
67562         * lib/gl_list.h: Use C comment style, not C++ comment style.
67563
67564 2006-10-23  Eric Blake  <ebb9@byu.net>
67565
67566         * lib/getaddrinfo.c (includes): Add missing include.
67567
67568 2006-10-23  Bruno Haible  <bruno@clisp.org>
67569             Paul Eggert  <eggert@cs.ucla.edu>
67570
67571         Ability to rename obstack_free.
67572         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67573         obstack_free.
67574         (obstack_free): Invoke the __obstack_free macro.
67575         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67576
67577 2006-10-23  Bruno Haible  <bruno@clisp.org>
67578             Paul Eggert  <eggert@cs.ucla.edu>
67579
67580         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67581         __argc, __argv from the declaration. (They are defined as macros on
67582         mingw.)
67583
67584 2006-10-22  Bruno Haible  <bruno@clisp.org>
67585
67586         * doc/gnulib-intro.texi: New file.
67587         * doc/gnulib.texi: Include it.
67588
67589 2006-10-21  Bruno Haible  <bruno@clisp.org>
67590
67591         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67592         "Introduction", "Miscellanous Notes", "Particular Modules".
67593
67594 2006-10-21  Bruno Haible  <bruno@clisp.org>
67595
67596         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67597         Change mostlyclean-local rule to avoid sh syntax error from bash
67598         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67599
67600 2006-10-23  Jim Meyering  <jim@meyering.net>
67601
67602         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67603         in place of snprintf.
67604
67605         * modules/inttostr (Files): Add lib/uinttostr.c.
67606         * lib/uinttostr.c (inttostr): New file/function.
67607         * lib/inttostr.h (uinttostr): Declare.
67608         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67609         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67610         Add uinttostr.
67611         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67612
67613 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67614
67615         * lib/canonicalize.c (ELOOP): Define if not already defined.
67616         Problem reported by Bruno Haible in
67617         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67618
67619 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67620
67621         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67622         Problem reported by Perry Smith and Ville Laurikari.
67623
67624         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67625         uses.
67626
67627 2006-10-19  Bruno Haible  <bruno@clisp.org>
67628
67629         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67630         for mingw.
67631
67632 2006-10-19  Bruno Haible  <bruno@clisp.org>
67633
67634         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67635         Needed for mingw.
67636
67637 2006-10-19  Bruno Haible  <bruno@clisp.org>
67638
67639         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67640
67641 2006-10-19  Bruno Haible  <bruno@clisp.org>
67642
67643         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67644         it.
67645
67646 2006-10-19  Bruno Haible  <bruno@clisp.org>
67647
67648         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67649         invocation.
67650
67651 2006-10-19  Bruno Haible  <bruno@clisp.org>
67652
67653         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67654         mountlist by default.
67655
67656 2006-10-16  Bruno Haible  <bruno@clisp.org>
67657
67658         * lib/c-strstr.c: Include c-strstr.h.
67659
67660 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67661
67662         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67663         in a slash.
67664
67665 2006-10-18  Bruno Haible  <bruno@clisp.org>
67666
67667         * lib/lock.h [C++]: Wrap definitions in extern "C".
67668
67669 2006-10-18  Bruno Haible  <bruno@clisp.org>
67670
67671         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67672         gl_LIBOBJS list.
67673
67674 2006-10-18  Bruno Haible  <bruno@clisp.org>
67675
67676         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67677
67678 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67679
67680         * lib/xstrtol.h: Include gettext.h.
67681         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67682         Problem reported by Eric Blake.
67683         * modules/xstrtol (Depends-on): Add gettext-h.
67684
67685 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67686
67687         * lib/strftime.c (advance): New macro.
67688         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67689         incomplete type, so you can't add 0 to it.  Problem and patch
67690         reported by Eelco Dolstra for dietlibc.
67691
67692 2006-10-18  Jim Meyering  <jim@meyering.net>
67693
67694         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67695         type for a local, and rename it: s/up/user_proc/.
67696
67697 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67698
67699         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67700         READ_UTMP_USER_PROCESS.
67701         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67702
67703 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67704
67705         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67706         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67707
67708 2006-10-17  Eric Blake  <ebb9@byu.net>
67709
67710         * lib/sigprocmask.c (sigprocmask): Fix typo.
67711
67712         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67713
67714         * modules/clean-temp (Makefile.am): Don't add to make output...
67715         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67716         config.h.
67717
67718 2006-10-17  Bruno Haible  <bruno@clisp.org>
67719
67720         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67721         differently if DEFAULT_TEXT_DOMAIN is set.
67722
67723 2006-10-16  Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/clean-temp.c: Include fwriteerror.h.
67726
67727 2006-10-16  Bruno Haible  <bruno@clisp.org>
67728
67729         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67730
67731 2006-10-16  Bruno Haible  <bruno@clisp.org>
67732
67733         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67734         * lib/sigprocmask.h: Include <sys/types.h>.
67735         (sigset_t): Use the system's definition if present.
67736
67737 2006-10-17  Eric Blake  <ebb9@byu.net>
67738
67739         * lib/xvasprintf.c (includes): Assume config.h.
67740         * lib/xasprintf.c (includes): Likewise.
67741
67742 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67743
67744         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67745         at least as wide as intmax_t.
67746
67747 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67748
67749         (Imported from Automake.)
67750         * build-aux/gnupload: Update to version 1.1 of directive file.
67751
67752 2006-10-16  Eric Blake  <ebb9@byu.net>
67753
67754         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67755         match Automake 1.10a.
67756
67757 2006-10-14  Bruno Haible  <bruno@clisp.org>
67758
67759         * modules/sigprocmask: New file.
67760         * lib/sigprocmask.h: New file.
67761         * lib/sigprocmask.c: New file.
67762         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67763         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67764         request sigprocmask.o.
67765         (gl_PREREQ_SIGPROCMASK): New macro.
67766         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67767         (Depends-on): Add sigprocmask.
67768         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67769         gt_SIGNALBLOCKING. Test for 'raise' only once.
67770         * lib/fatal-signal.c: Include sigprocmask.h.
67771         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67772         unblock_fatal_signals): Define always.
67773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67774         sigprocmask.
67775
67776 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67777
67778         Sync from Automake.
67779         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67780         which incorrectly sets the mode of an existing destination
67781         directory.  In some cases the unpatched install-sh could do the
67782         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67783         system.  We hope this is rare in practice, but it's clearly worth
67784         fixing.  Problem reported by Alex Unleashed in
67785         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67786         Also, don't bother to check for -m bugs unless we're using -m;
67787         suggested by Stepan Kasal.
67788
67789 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67790
67791         Sync from Automake.
67792         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67793         `-c' flag, so they appear at the same position as in %FASTDEP%
67794         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67795         which ignores unknown options only after the first non-option.
67796         Bug report against M4 by Nelson H. F. Beebe.
67797
67798 2006-10-13  Jim Meyering  <jim@meyering.net>
67799
67800         Fix a bug in yesterday's change.
67801         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67802         p->fts_statp->st_dev would be used uninitialized.
67803         Ensures that we always call fts_stat on the very first entry.
67804         Miklos Szeredi reported that find -xdev stopped working.
67805
67806 2006-10-12  Bruno Haible  <bruno@clisp.org>
67807
67808         * gnulib-tool (func_get_automake_snippet): Append an automatically
67809         computed EXTRA_DIST augmentation.
67810         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67811         * modules/alloca-opt (Makefile.am): Likewise.
67812         * modules/allocsa (Makefile.am): Likewise.
67813         * modules/arcfour (Makefile.am): Likewise.
67814         * modules/arctwo (Makefile.am): Likewise.
67815         * modules/argmatch (Makefile.am): Likewise.
67816         * modules/argz (Makefile.am): Likewise.
67817         * modules/atexit (Makefile.am): Likewise.
67818         * modules/backupfile (Makefile.am): Likewise.
67819         * modules/byteswap (Makefile.am): Likewise.
67820         * modules/c-strtod (Makefile.am): Likewise.
67821         * modules/c-strtold (Makefile.am): Likewise.
67822         * modules/calloc (Makefile.am): Likewise.
67823         * modules/canon-host (Makefile.am): Likewise.
67824         * modules/canonicalize (Makefile.am): Likewise.
67825         * modules/chdir-long (Makefile.am): Likewise.
67826         * modules/chdir-safer (Makefile.am): Likewise.
67827         * modules/check-version (Makefile.am): Likewise.
67828         * modules/chown (Makefile.am): Likewise.
67829         * modules/cloexec (Makefile.am): Likewise.
67830         * modules/close-stream (Makefile.am): Likewise.
67831         * modules/closeout (Makefile.am): Likewise.
67832         * modules/crc (Makefile.am): Likewise.
67833         * modules/csharpexec (Makefile.am): Likewise.
67834         * modules/cycle-check (Makefile.am): Likewise.
67835         * modules/des (Makefile.am): Likewise.
67836         * modules/dev-ino (Makefile.am): Likewise.
67837         * modules/dirfd (Makefile.am): Likewise.
67838         * modules/dirname (Makefile.am): Likewise.
67839         * modules/dup2 (Makefile.am): Likewise.
67840         * modules/eealloc (Makefile.am): Likewise.
67841         * modules/error (Makefile.am): Likewise.
67842         * modules/euidaccess (Makefile.am): Likewise.
67843         * modules/exclude (Makefile.am): Likewise.
67844         * modules/exitfail (Makefile.am): Likewise.
67845         * modules/fcntl-safer (Makefile.am): Likewise.
67846         * modules/fcntl (Makefile.am): Likewise.
67847         * modules/file-type (Makefile.am): Likewise.
67848         * modules/fileblocks (Makefile.am): Likewise.
67849         * modules/filemode (Makefile.am): Likewise.
67850         * modules/filenamecat (Makefile.am): Likewise.
67851         * modules/fnmatch (Makefile.am): Likewise.
67852         * modules/fopen-safer (Makefile.am): Likewise.
67853         * modules/fpending (Makefile.am): Likewise.
67854         * modules/fprintftime (Makefile.am): Likewise.
67855         * modules/free (Makefile.am): Likewise.
67856         * modules/fsusage (Makefile.am): Likewise.
67857         * modules/ftruncate (Makefile.am): Likewise.
67858         * modules/fts (Makefile.am): Likewise.
67859         * modules/gc-arcfour (Makefile.am): Likewise.
67860         * modules/gc-des (Makefile.am): Likewise.
67861         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67862         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67863         * modules/gc-md4 (Makefile.am): Likewise.
67864         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67865         * modules/gc-sha1 (Makefile.am): Likewise.
67866         * modules/gc (Makefile.am): Likewise.
67867         * modules/getaddrinfo (Makefile.am): Likewise.
67868         * modules/getcwd (Makefile.am): Likewise.
67869         * modules/getdelim (Makefile.am): Likewise.
67870         * modules/getdomainname (Makefile.am): Likewise.
67871         * modules/getgroups (Makefile.am): Likewise.
67872         * modules/gethostname (Makefile.am): Likewise.
67873         * modules/gethrxtime (Makefile.am): Likewise.
67874         * modules/getline (Makefile.am): Likewise.
67875         * modules/getloadavg (Makefile.am): Likewise.
67876         * modules/getlogin_r (Makefile.am): Likewise.
67877         * modules/getndelim2 (Makefile.am): Likewise.
67878         * modules/getopt (Makefile.am): Likewise.
67879         * modules/getpagesize (Makefile.am): Likewise.
67880         * modules/getpass-gnu (Makefile.am): Likewise.
67881         * modules/getpass (Makefile.am): Likewise.
67882         * modules/getsubopt (Makefile.am): Likewise.
67883         * modules/gettime (Makefile.am): Likewise.
67884         * modules/gettimeofday (Makefile.am): Likewise.
67885         * modules/getugroups (Makefile.am): Likewise.
67886         * modules/getusershell (Makefile.am): Likewise.
67887         * modules/glob (Makefile.am): Likewise.
67888         * modules/group-member (Makefile.am): Likewise.
67889         * modules/hard-locale (Makefile.am): Likewise.
67890         * modules/hash (Makefile.am): Likewise.
67891         * modules/hmac-md5 (Makefile.am): Likewise.
67892         * modules/hmac-sha1 (Makefile.am): Likewise.
67893         * modules/human (Makefile.am): Likewise.
67894         * modules/idcache (Makefile.am): Likewise.
67895         * modules/imaxabs (Makefile.am): Likewise.
67896         * modules/imaxdiv (Makefile.am): Likewise.
67897         * modules/inet_ntop (Makefile.am): Likewise.
67898         * modules/inet_pton (Makefile.am): Likewise.
67899         * modules/intprops (Makefile.am): Likewise.
67900         * modules/inttostr (Makefile.am): Likewise.
67901         * modules/inttypes (Makefile.am): Likewise.
67902         * modules/isapipe (Makefile.am): Likewise.
67903         * modules/javaversion (Makefile.am): Likewise.
67904         * modules/lchmod (Makefile.am): Likewise.
67905         * modules/lchown (Makefile.am): Likewise.
67906         * modules/localcharset (Makefile.am): Likewise.
67907         * modules/long-options (Makefile.am): Likewise.
67908         * modules/lstat (Makefile.am): Likewise.
67909         * modules/malloc (Makefile.am): Likewise.
67910         * modules/mathl (Makefile.am): Likewise.
67911         * modules/mbchar (Makefile.am): Likewise.
67912         * modules/md2 (Makefile.am): Likewise.
67913         * modules/md4 (Makefile.am): Likewise.
67914         * modules/md5 (Makefile.am): Likewise.
67915         * modules/memcasecmp (Makefile.am): Likewise.
67916         * modules/memchr (Makefile.am): Likewise.
67917         * modules/memcmp (Makefile.am): Likewise.
67918         * modules/memcoll (Makefile.am): Likewise.
67919         * modules/memcpy (Makefile.am): Likewise.
67920         * modules/memmem (Makefile.am): Likewise.
67921         * modules/memmove (Makefile.am): Likewise.
67922         * modules/mempcpy (Makefile.am): Likewise.
67923         * modules/memrchr (Makefile.am): Likewise.
67924         * modules/memset (Makefile.am): Likewise.
67925         * modules/memxor (Makefile.am): Likewise.
67926         * modules/mkancesdirs (Makefile.am): Likewise.
67927         * modules/mkdir-p (Makefile.am): Likewise.
67928         * modules/mkdir (Makefile.am): Likewise.
67929         * modules/mkdtemp (Makefile.am): Likewise.
67930         * modules/mkstemp (Makefile.am): Likewise.
67931         * modules/mktime (Makefile.am): Likewise.
67932         * modules/modechange (Makefile.am): Likewise.
67933         * modules/mountlist (Makefile.am): Likewise.
67934         * modules/nanosleep (Makefile.am): Likewise.
67935         * modules/obstack (Makefile.am): Likewise.
67936         * modules/openat (Makefile.am): Likewise.
67937         * modules/pagealign_alloc (Makefile.am): Likewise.
67938         * modules/pathmax (Makefile.am): Likewise.
67939         * modules/physmem (Makefile.am): Likewise.
67940         * modules/poll (Makefile.am): Likewise.
67941         * modules/posixtm (Makefile.am): Likewise.
67942         * modules/posixver (Makefile.am): Likewise.
67943         * modules/putenv (Makefile.am): Likewise.
67944         * modules/quote (Makefile.am): Likewise.
67945         * modules/quotearg (Makefile.am): Likewise.
67946         * modules/raise (Makefile.am): Likewise.
67947         * modules/read-file (Makefile.am): Likewise.
67948         * modules/readline (Makefile.am): Likewise.
67949         * modules/readlink (Makefile.am): Likewise.
67950         * modules/readtokens (Makefile.am): Likewise.
67951         * modules/readutmp (Makefile.am): Likewise.
67952         * modules/realloc (Makefile.am): Likewise.
67953         * modules/regex (Makefile.am): Likewise.
67954         * modules/rename-dest-slash (Makefile.am): Likewise.
67955         * modules/rename (Makefile.am): Likewise.
67956         * modules/rijndael (Makefile.am): Likewise.
67957         * modules/rmdir (Makefile.am): Likewise.
67958         * modules/rpmatch (Makefile.am): Likewise.
67959         * modules/safe-read (Makefile.am): Likewise.
67960         * modules/safe-write (Makefile.am): Likewise.
67961         * modules/same-inode (Makefile.am): Likewise.
67962         * modules/same (Makefile.am): Likewise.
67963         * modules/save-cwd (Makefile.am): Likewise.
67964         * modules/savedir (Makefile.am): Likewise.
67965         * modules/setenv (Makefile.am): Likewise.
67966         * modules/settime (Makefile.am): Likewise.
67967         * modules/sha1 (Makefile.am): Likewise.
67968         * modules/sig2str (Makefile.am): Likewise.
67969         * modules/snprintf (Makefile.am): Likewise.
67970         * modules/stat-macros (Makefile.am): Likewise.
67971         * modules/stat-time (Makefile.am): Likewise.
67972         * modules/stdbool (Makefile.am): Likewise.
67973         * modules/stdint (Makefile.am): Likewise.
67974         * modules/stdlib-safer (Makefile.am): Likewise.
67975         * modules/stpcpy (Makefile.am): Likewise.
67976         * modules/stpncpy (Makefile.am): Likewise.
67977         * modules/strcase (Makefile.am): Likewise.
67978         * modules/strcasestr (Makefile.am): Likewise.
67979         * modules/strchrnul (Makefile.am): Likewise.
67980         * modules/strcspn (Makefile.am): Likewise.
67981         * modules/strdup (Makefile.am): Likewise.
67982         * modules/strerror (Makefile.am): Likewise.
67983         * modules/strftime (Makefile.am): Likewise.
67984         * modules/strndup (Makefile.am): Likewise.
67985         * modules/strnlen (Makefile.am): Likewise.
67986         * modules/strpbrk (Makefile.am): Likewise.
67987         * modules/strsep (Makefile.am): Likewise.
67988         * modules/strstr (Makefile.am): Likewise.
67989         * modules/strtod (Makefile.am): Likewise.
67990         * modules/strtoimax (Makefile.am): Likewise.
67991         * modules/strtok_r (Makefile.am): Likewise.
67992         * modules/strtol (Makefile.am): Likewise.
67993         * modules/strtoll (Makefile.am): Likewise.
67994         * modules/strtoul (Makefile.am): Likewise.
67995         * modules/strtoull (Makefile.am): Likewise.
67996         * modules/strtoumax (Makefile.am): Likewise.
67997         * modules/strverscmp (Makefile.am): Likewise.
67998         * modules/sys_socket (Makefile.am): Likewise.
67999         * modules/sys_stat (Makefile.am): Likewise.
68000         * modules/sysexits (Makefile.am): Likewise.
68001         * modules/time_r (Makefile.am): Likewise.
68002         * modules/timegm (Makefile.am): Likewise.
68003         * modules/timespec (Makefile.am): Likewise.
68004         * modules/tmpfile-safer (Makefile.am): Likewise.
68005         * modules/trim (Makefile.am): Likewise.
68006         * modules/unistd-safer (Makefile.am): Likewise.
68007         * modules/unlinkdir (Makefile.am): Likewise.
68008         * modules/unlocked-io (Makefile.am): Likewise.
68009         * modules/userspec (Makefile.am): Likewise.
68010         * modules/utime (Makefile.am): Likewise.
68011         * modules/utimecmp (Makefile.am): Likewise.
68012         * modules/utimens (Makefile.am): Likewise.
68013         * modules/vasnprintf (Makefile.am): Likewise.
68014         * modules/vasprintf (Makefile.am): Likewise.
68015         * modules/vsnprintf (Makefile.am): Likewise.
68016         * modules/xalloc (Makefile.am): Likewise.
68017         * modules/xgetcwd (Makefile.am): Likewise.
68018         * modules/xnanosleep (Makefile.am): Likewise.
68019         * modules/xreadlink (Makefile.am): Likewise.
68020         * modules/xstrtod (Makefile.am): Likewise.
68021         * modules/xstrtol (Makefile.am): Likewise.
68022         * modules/xstrtold (Makefile.am): Likewise.
68023         * modules/yesno (Makefile.am): Likewise.
68024         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68025
68026 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68027
68028         * modules/error (Makefile.am): Distribute files through
68029         EXTRA_DIST, not lib_SOURCES.
68030
68031 2006-10-12  Eric Blake  <ebb9@byu.net>
68032
68033         * modules/error (Makefile.am): Distribute files in /lib.
68034         * modules/obstack (Makefile.am): Likewise.
68035
68036 2006-10-12  Bruno Haible  <bruno@clisp.org>
68037
68038         * modules/acl (Makefile.am): Distribute all files in lib/ through
68039         EXTRA_DIST.
68040         * modules/arcfour (Makefile.am): Likewise.
68041         * modules/arctwo (Makefile.am): Likewise.
68042         * modules/argmatch (Makefile.am): Likewise.
68043         * modules/argz (Makefile.am): Likewise.
68044         * modules/atexit (Makefile.am): Likewise.
68045         * modules/backupfile (Makefile.am): Likewise.
68046         * modules/c-strtod (Makefile.am): Likewise.
68047         * modules/c-strtold (Makefile.am): Likewise.
68048         * modules/calloc (Makefile.am): Likewise.
68049         * modules/canon-host (Makefile.am): Likewise.
68050         * modules/canonicalize (Makefile.am): Likewise.
68051         * modules/chdir-long (Makefile.am): Likewise.
68052         * modules/chdir-safer (Makefile.am): Likewise.
68053         * modules/check-version (Makefile.am): Likewise.
68054         * modules/chown (Makefile.am): Likewise.
68055         * modules/cloexec (Makefile.am): Likewise.
68056         * modules/close-stream (Makefile.am): Likewise.
68057         * modules/closeout (Makefile.am): Likewise.
68058         * modules/crc (Makefile.am): Likewise.
68059         * modules/cycle-check (Makefile.am): Likewise.
68060         * modules/des (Makefile.am): Likewise.
68061         * modules/dirfd (Makefile.am): Likewise.
68062         * modules/dirname (Makefile.am): Likewise.
68063         * modules/dup2 (Makefile.am): Likewise.
68064         * modules/euidaccess (Makefile.am): Likewise.
68065         * modules/exclude (Makefile.am): Likewise.
68066         * modules/exitfail (Makefile.am): Likewise.
68067         * modules/fcntl-safer (Makefile.am): Likewise.
68068         * modules/file-type (Makefile.am): Likewise.
68069         * modules/fileblocks (Makefile.am): Likewise.
68070         * modules/filemode (Makefile.am): Likewise.
68071         * modules/filenamecat (Makefile.am): Likewise.
68072         * modules/fnmatch (Makefile.am): Likewise.
68073         * modules/fopen-safer (Makefile.am): Likewise.
68074         * modules/fpending (Makefile.am): Likewise.
68075         * modules/fprintftime (Makefile.am): Likewise.
68076         * modules/free (Makefile.am): Likewise.
68077         * modules/fsusage (Makefile.am): Likewise.
68078         * modules/ftruncate (Makefile.am): Likewise.
68079         * modules/fts (Makefile.am): Likewise.
68080         * modules/gc (Makefile.am): Likewise.
68081         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68082         * modules/getaddrinfo (Makefile.am): Likewise.
68083         * modules/getcwd (Makefile.am): Likewise.
68084         * modules/getdelim (Makefile.am): Likewise.
68085         * modules/getdomainname (Makefile.am): Likewise.
68086         * modules/getgroups (Makefile.am): Likewise.
68087         * modules/gethostname (Makefile.am): Likewise.
68088         * modules/gethrxtime (Makefile.am): Likewise.
68089         * modules/getline (Makefile.am): Likewise.
68090         * modules/getloadavg (Makefile.am): Likewise.
68091         * modules/getlogin_r (Makefile.am): Likewise.
68092         * modules/getopt (Makefile.am): Likewise.
68093         * modules/getpass (Makefile.am): Likewise.
68094         * modules/getpass-gnu (Makefile.am): Likewise.
68095         * modules/getsubopt (Makefile.am): Likewise.
68096         * modules/gettime (Makefile.am): Likewise.
68097         * modules/gettimeofday (Makefile.am): Likewise.
68098         * modules/getugroups (Makefile.am): Likewise.
68099         * modules/getusershell (Makefile.am): Likewise.
68100         * modules/glob (Makefile.am): Likewise.
68101         * modules/group-member (Makefile.am): Likewise.
68102         * modules/hard-locale (Makefile.am): Likewise.
68103         * modules/hash (Makefile.am): Likewise.
68104         * modules/hmac-md5 (Makefile.am): Likewise.
68105         * modules/hmac-sha1 (Makefile.am): Likewise.
68106         * modules/human (Makefile.am): Likewise.
68107         * modules/idcache (Makefile.am): Likewise.
68108         * modules/imaxabs (Makefile.am): Likewise.
68109         * modules/imaxdiv (Makefile.am): Likewise.
68110         * modules/inet_ntop (Makefile.am): Likewise.
68111         * modules/inet_pton (Makefile.am): Likewise.
68112         * modules/inttostr (Makefile.am): Likewise.
68113         * modules/isapipe (Makefile.am): Likewise.
68114         * modules/lchown (Makefile.am): Likewise.
68115         * modules/long-options (Makefile.am): Likewise.
68116         * modules/lstat (Makefile.am): Likewise.
68117         * modules/malloc (Makefile.am): Likewise.
68118         * modules/mathl (Makefile.am): Likewise.
68119         * modules/mbchar (Makefile.am): Likewise.
68120         * modules/md2 (Makefile.am): Likewise.
68121         * modules/md4 (Makefile.am): Likewise.
68122         * modules/md5 (Makefile.am): Likewise.
68123         * modules/memcasecmp (Makefile.am): Likewise.
68124         * modules/memchr (Makefile.am): Likewise.
68125         * modules/memcmp (Makefile.am): Likewise.
68126         * modules/memcoll (Makefile.am): Likewise.
68127         * modules/memcpy (Makefile.am): Likewise.
68128         * modules/memmem (Makefile.am): Likewise.
68129         * modules/memmove (Makefile.am): Likewise.
68130         * modules/mempcpy (Makefile.am): Likewise.
68131         * modules/memrchr (Makefile.am): Likewise.
68132         * modules/memset (Makefile.am): Likewise.
68133         * modules/memxor (Makefile.am): Likewise.
68134         * modules/mkancesdirs (Makefile.am): Likewise.
68135         * modules/mkdir (Makefile.am): Likewise.
68136         * modules/mkdir-p (Makefile.am): Likewise.
68137         * modules/mkdtemp (Makefile.am): Likewise.
68138         * modules/mkstemp (Makefile.am): Likewise.
68139         * modules/mktime (Makefile.am): Likewise.
68140         * modules/modechange (Makefile.am): Likewise.
68141         * modules/mountlist (Makefile.am): Likewise.
68142         * modules/nanosleep (Makefile.am): Likewise.
68143         * modules/openat (Makefile.am): Likewise.
68144         * modules/pagealign_alloc (Makefile.am): Likewise.
68145         * modules/physmem (Makefile.am): Likewise.
68146         * modules/poll (Makefile.am): Likewise.
68147         * modules/posixtm (Makefile.am): Likewise.
68148         * modules/posixver (Makefile.am): Likewise.
68149         * modules/putenv (Makefile.am): Likewise.
68150         * modules/quote (Makefile.am): Likewise.
68151         * modules/quotearg (Makefile.am): Likewise.
68152         * modules/raise (Makefile.am): Likewise.
68153         * modules/read-file (Makefile.am): Likewise.
68154         * modules/readline (Makefile.am): Likewise.
68155         * modules/readlink (Makefile.am): Likewise.
68156         * modules/readtokens (Makefile.am): Likewise.
68157         * modules/readutmp (Makefile.am): Likewise.
68158         * modules/realloc (Makefile.am): Likewise.
68159         * modules/regex (Makefile.am): Likewise.
68160         * modules/rename (Makefile.am): Likewise.
68161         * modules/rename-dest-slash (Makefile.am): Likewise.
68162         * modules/rijndael (Makefile.am): Likewise.
68163         * modules/rmdir (Makefile.am): Likewise.
68164         * modules/rpmatch (Makefile.am): Likewise.
68165         * modules/safe-read (Makefile.am): Likewise.
68166         * modules/safe-write (Makefile.am): Likewise.
68167         * modules/same (Makefile.am): Likewise.
68168         * modules/save-cwd (Makefile.am): Likewise.
68169         * modules/savedir (Makefile.am): Likewise.
68170         * modules/setenv (Makefile.am): Likewise.
68171         * modules/settime (Makefile.am): Likewise.
68172         * modules/sha1 (Makefile.am): Likewise.
68173         * modules/sig2str (Makefile.am): Likewise.
68174         * modules/snprintf (Makefile.am): Likewise.
68175         * modules/stdlib-safer (Makefile.am): Likewise.
68176         * modules/stpcpy (Makefile.am): Likewise.
68177         * modules/stpncpy (Makefile.am): Likewise.
68178         * modules/strcase (Makefile.am): Likewise.
68179         * modules/strcasestr (Makefile.am): Likewise.
68180         * modules/strchrnul (Makefile.am): Likewise.
68181         * modules/strcspn (Makefile.am): Likewise.
68182         * modules/strdup (Makefile.am): Likewise.
68183         * modules/strerror (Makefile.am): Likewise.
68184         * modules/strftime (Makefile.am): Likewise.
68185         * modules/strndup (Makefile.am): Likewise.
68186         * modules/strnlen (Makefile.am): Likewise.
68187         * modules/strpbrk (Makefile.am): Likewise.
68188         * modules/strsep (Makefile.am): Likewise.
68189         * modules/strstr (Makefile.am): Likewise.
68190         * modules/strtod (Makefile.am): Likewise.
68191         * modules/strtoimax (Makefile.am): Likewise.
68192         * modules/strtok_r (Makefile.am): Likewise.
68193         * modules/strtol (Makefile.am): Likewise.
68194         * modules/strtoll (Makefile.am): Likewise.
68195         * modules/strtoul (Makefile.am): Likewise.
68196         * modules/strtoull (Makefile.am): Likewise.
68197         * modules/strtoumax (Makefile.am): Likewise.
68198         * modules/strverscmp (Makefile.am): Likewise.
68199         * modules/time_r (Makefile.am): Likewise.
68200         * modules/timegm (Makefile.am): Likewise.
68201         * modules/tmpfile-safer (Makefile.am): Likewise.
68202         * modules/unistd-safer (Makefile.am): Likewise.
68203         * modules/unlinkdir (Makefile.am): Likewise.
68204         * modules/userspec (Makefile.am): Likewise.
68205         * modules/utime (Makefile.am): Likewise.
68206         * modules/utimecmp (Makefile.am): Likewise.
68207         * modules/utimens (Makefile.am): Likewise.
68208         * modules/vasnprintf (Makefile.am): Likewise.
68209         * modules/vasprintf (Makefile.am): Likewise.
68210         * modules/vsnprintf (Makefile.am): Likewise.
68211         * modules/xalloc (Makefile.am): Likewise.
68212         * modules/xgetcwd (Makefile.am): Likewise.
68213         * modules/xnanosleep (Makefile.am): Likewise.
68214         * modules/xreadlink (Makefile.am): Likewise.
68215         * modules/xstrtod (Makefile.am): Likewise.
68216         * modules/xstrtol (Makefile.am): Likewise.
68217         * modules/xstrtold (Makefile.am): Likewise.
68218         * modules/yesno (Makefile.am): Likewise.
68219
68220 2006-10-12  Jim Meyering  <jim@meyering.net>
68221
68222         * m4/getloadavg.m4: Revert the change below.
68223
68224         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68225         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68226         fail with a symlink, which is what coreutils' ./bootstrap now
68227         creates by default.
68228
68229 2006-10-12  Bruno Haible  <bruno@clisp.org>
68230
68231         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68232         mingw.
68233         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68234         MSVC and mingw explicitly.
68235
68236 2006-10-11  Simon Josefsson  <jas@extundo.com>
68237             Bruno Haible  <bruno@clisp.org>
68238
68239         Add support for multiple gnulib-tool invocations in the scope of a
68240         single configure.ac file.
68241         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68242         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68243         with the same contents as the _LIBADD variable.
68244         (func_emit_initmacro_start, func_emit_initmacro_end,
68245         func_emit_initmacro_done): New functions.
68246         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68247         gl_LIBOBJS and gl_LTLIBOBJS.
68248
68249 2006-10-11  Bruno Haible  <bruno@clisp.org>
68250
68251         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68252         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68253         autoreconf. Instead, invoke autopoint explicitly but move back the
68254         *.m4 files from gnulib.
68255
68256 2006-10-11  Bruno Haible  <bruno@clisp.org>
68257
68258         * gnulib-tool (func_usage): Make module names after --create-testdir
68259         optional.
68260         (func_create_testdir): If no module was specified, use nearly all
68261         modules.
68262
68263 2006-10-12  Jim Meyering  <jim@meyering.net>
68264
68265         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68266         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68267         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68268         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68269         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68270         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68271         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68272         (fts_set_stat_required): New function.
68273         (fts_open): Defer the calls to fts_stat, if possible or requested.
68274         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68275         into fts_stat itself.
68276         (fts_read): Perform any required (deferred) fts_stat call.
68277         (fts_build): Likewise, for the directory we're about to open and read.
68278         In the readdir loop, carefully decide whether each entry will require
68279         an eventual call to fts_stat, using dirent.d_type info if available.
68280         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68281         a command line argument into this function.  Update all callers.
68282         Map a return value of FTS_DOT to FTS_D for a command line argument.
68283         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68284         Thanks to Miklos Szeredi for his tenacity and for the initial
68285         bug report about "find" failing on a FUSE-based file system.
68286
68287         * lib/fts.c (fts_open): Use consistent indentation.
68288
68289 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68290
68291         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68292         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68293         reported by Jim Meyering.  All uses of cache variables renamed
68294         to match Autoconf's.
68295         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68296         the other one.
68297
68298         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68299         Fix misspelling in diagnostic.
68300
68301 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68302
68303         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68304         defined.  Problem reported by Matthew Woehlke.
68305
68306         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68307         Add support for Tandem NonStop R series.
68308         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68309         Use new macro.
68310
68311         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68312         (has_trailing_slash): Omit size arg; all callers changed.
68313         Omit 'inline', since it doesn't help performance and we'd
68314         need to configure it.
68315         Don't count //, ///, etc. as having a trailing slash.
68316         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68317         (rpl_rename_dest_slash): On failure, use rename's errno rather
68318         than (in some cases) an incorrect or junk errno.
68319         Simplify code by removing need to compute length; this does
68320         cause it to make two passes instead of one over the file name,
68321         but it's worth it.
68322
68323         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68324         change, since Autoconf's version may no longer be appropriate now
68325         that we are using CVS Autoconf's version.  Add support for Tandem.
68326
68327 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68328             Bruno Haible  <bruno@clisp.org>
68329
68330         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68331         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68332         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68333         gl_AC_TYPE_LONG_LONG.
68334
68335         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68336         instead of HAVE_LONG_LONG.
68337         * lib/printf-args.c (printf_fetchargs): Likewise.
68338         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68339         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68340         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68341         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68342         gl_AC_TYPE_LONG_LONG.
68343
68344 2006-10-11  Bruno Haible  <bruno@clisp.org>
68345
68346         * m4/longlong.m4: Add comments.
68347         * m4/ulonglong.m4: Likewise.
68348
68349 2006-10-10  Bruno Haible  <bruno@clisp.org>
68350
68351         Make it possible to #define stpcpy, strdup to aliases.
68352         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68353         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68354
68355 2006-10-10  Bruno Haible  <bruno@clisp.org>
68356
68357         Make it possible to #define gcd to an alias.
68358         * lib/gcd.c: Include config.h.
68359
68360 2006-10-10  Bruno Haible  <bruno@clisp.org>
68361
68362         Make it possible to #define c_isascii to an alias.
68363         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68364         defined. Undefine the macros before defining them, to avoid gcc
68365         warnings.
68366         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68367         define NO_C_CTYPE_MACROS early.
68368
68369 2006-10-10  Bruno Haible  <bruno@clisp.org>
68370
68371         Make it possible to #define set_program_name to an alias.
68372         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68373         ENABLE_RELOCATABLE early.
68374
68375 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68376
68377         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68378         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68379         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68380         More generally, don't assume that 64-bit signed int is available
68381         if unsigned int is, and vice versa.
68382         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68383         unsigned symbols, not on their signed counterparts.
68384         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68385         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68386         (UINT64_C, UINTMAX_C):
68387         Likewise.
68388         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68389         unsigned counterparts.
68390         (Have_long_long, Unsigned): New macros.
68391         (Int): Renamed from INT.
68392         (strtoimax): Use the new macros.
68393         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68394         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68395         * modules/inttypes (inttypes.h): Substitute
68396         HAVE_UNSIGNED_LONG_LONG_INT.
68397         * modules/stdint (stdint.h): Likewise.
68398         (Files): Add m4/ulonglong.m4.
68399
68400 2006-10-10  Bruno Haible  <bruno@clisp.org>
68401
68402         Fix a gcc -Wshadow warning.
68403         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68404         to 'bucket'.
68405         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68406         gl_linked_indexof_from_to): Likewise.
68407         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68408         Likewise.
68409         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68410         Likewise.
68411         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68412         Reported by Eric Blake.
68413
68414 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68415
68416         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68417         for NetBSD.  Problem reported by Bruno Haible.
68418
68419 2006-10-09  Jim Meyering  <jim@meyering.net>
68420
68421         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68422         Patch from Bruno Haible.
68423
68424 2006-10-09  Jim Meyering  <jim@meyering.net>
68425
68426         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68427         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68428         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68429
68430 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68431
68432         Don't include <config.h> twice; this doesn't work in some cases,
68433         e.g., when config.h has "#define intmax_t long long int" and
68434         we include <config.h>, <inttypes.h>, <config.h> in that order.
68435         Problem reported by Matthew Woehlke in:
68436         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68437         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68438         * lib/fts-cycle.c: Don't include config.h.
68439         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68440         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68441         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68442         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68443         inttypes.h.
68444         * lib/xstrtoumax.c: Likewise.
68445         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68446         __strtol and the like, so that this module is more like its siblings.
68447         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68448         Remove; no longer needed now that we assume gnulib inttypes.h.
68449
68450 2006-10-08  Bruno Haible  <bruno@clisp.org>
68451
68452         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68453         option.
68454
68455 2006-10-07  Jim Meyering  <jim@meyering.net>
68456
68457         * modules/inttypes (inttypes.h): Revert what seems to have been
68458         an inadvertent part of today's change: use "|", not "/" in the
68459         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68460
68461 2006-10-07  Bruno Haible  <bruno@clisp.org>
68462
68463         * modules/sublist: New file.
68464
68465 2006-10-07  Bruno Haible  <bruno@clisp.org>
68466
68467         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68468         * modules/argz (argz.h): Likewise.
68469         * modules/arpa_inet (arpa/inet.h): Likewise.
68470         * modules/byteswap (byteswap.h): Likewise.
68471         * modules/configmake (configmake.h): Likewise.
68472         * modules/fcntl (fcntl.h): Likewise.
68473         * modules/fnmatch (fnmatch.h): Likewise.
68474         * modules/getopt (getopt.h): Likewise.
68475         * modules/glob (glob.h): Likewise.
68476         * modules/inttypes (inttypes.h): Likewise.
68477         * modules/netinet_in (netinet/in.h): Likewise.
68478         * modules/poll (poll.h): Likewise.
68479         * modules/stdbool (stdbool.h): Likewise.
68480         * modules/stdint (stdint.h): Likewise.
68481         * modules/sys_select (sys/select.h): Likewise.
68482         * modules/sys_socket (sys/socket.h): Likewise.
68483         * modules/sys_stat (sys/stat.h): Likewise.
68484         * modules/sysexits (sysexits.h): Likewise.
68485         * modules/unistd (unistd.h): Likewise.
68486         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68487         Add a "DO NOT EDIT" comment to the generated file.
68488         (func_import): Likewise for gnulib-comp.m4.
68489
68490 2006-10-07  Bruno Haible  <bruno@clisp.org>
68491
68492         * lib/gl_sublist.h: New file.
68493         * lib/gl_sublist.c: New file.
68494
68495 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68496
68497         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68498         name (relative to the original working directory) and the file
68499         name component (relative to the temporary working directory).  All
68500         callers changed.
68501         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68502         * lib/mkdir-p.c (make_dir_parents): Likewise.
68503         * lib/mkdir-p.h (make_dir_parents): Likewise.
68504
68505 2006-10-06  Eric Blake  <ebb9@byu.net>
68506
68507         Define several macros for use by the clean-temp module.
68508         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68509         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68510         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68511
68512         * lib/clean-temp.h (close_stream_temp): New declaration.
68513         * lib/clean-temp.c (includes): Pull in headers according to what
68514         other modules are in use.
68515         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68516
68517 2006-10-06  Bruno Haible  <bruno@clisp.org>
68518
68519         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68520         instead of fopen, fwriteerror.
68521
68522 2006-10-06  Bruno Haible  <bruno@clisp.org>
68523
68524         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68525         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68526         int.
68527         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68528         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68529         Return an error indicator.
68530         Suggested by Eric Blake.
68531
68532 2006-10-06  Bruno Haible  <bruno@clisp.org>
68533
68534         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68535         Reported by Eric Blake.
68536
68537 2006-10-06  Bruno Haible  <bruno@clisp.org>
68538
68539         * modules/closeout (Description): Mention stderr too.
68540
68541 2006-10-06  Bruno Haible  <bruno@clisp.org>
68542         and Paul Eggert  <eggert@cs.ucla.edu>
68543
68544         * lib/closeout.c (close_stdout): Also close stderr.
68545         * lib/closeout.h: Update comment.
68546
68547 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68548
68549         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68550         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68551         * lib/dirchownmod.c: Include lchown.h.
68552         * lib/lchown.c: Don't include files that lchown.h now includes.
68553         Don't declare chown, since lchown.h now does that.
68554         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68555         (lchown): Define to rpl_chown if lchown is declared but
68556         does not exist.  Declare using a prototype if lchown is not
68557         declared.  Add a copyright notice.
68558         * lib/mkstemp.h: Include <unistd.h>.
68559         * lib/openat.c: Include lchown.h.
68560
68561         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68562         we now test for that separately.
68563         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68564         rather than O_NOFOLLOW, when testing whether it's possible to
68565         avoid a race condition reliably.
68566         * lib/savewd.c (savewd_chdir): Likewise.
68567
68568         Remove macros that are no longer needed now that stdint.h is
68569         reliable.
68570         * lib/fsusage.c (UINTMAX_MAX): Remove.
68571         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68572         * lib/utimecmp.c (SIZE_MAX): Remove.
68573
68574         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68575
68576         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68577         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68578         O_NOATIME works.
68579
68580 2006-10-05  Bruno Haible  <bruno@clisp.org>
68581
68582         * lib/gl_list.h (gl_sortedlist_search_from_to,
68583         gl_sortedlist_indexof_from_to): New declarations.
68584         (gl_list_implementation): New fields sortedlist_search_from_to,
68585         sortedlist_indexof_from_to.
68586         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68587         inline functions.
68588         * lib/gl_list.c (gl_sortedlist_search_from_to,
68589         gl_sortedlist_indexof_from_to): New functions.
68590         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68591         function.
68592         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68593         (gl_array_sortedlist_search_from_to): New function.
68594         (gl_array_list_implementation): Update.
68595         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68596         function.
68597         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68598         (gl_carray_sortedlist_search_from_to): New function.
68599         (gl_carray_list_implementation): Update.
68600         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68601         gl_linked_sortedlist_indexof_from_to): New functions.
68602         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68603         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68604         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68605         gl_tree_sortedlist_indexof_from_to): New functions.
68606         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68607         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68608         Update.
68609         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68610         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68611         Update.
68612
68613 2006-10-05  Bruno Haible  <bruno@clisp.org>
68614
68615         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68616         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68617         (struct gl_list_implementation): Add fields search_from_to,
68618         indexof_from_to. Remove fields search, indexof.
68619         (gl_list_search): Use the search_from_to method.
68620         (gl_list_search_from, gl_list_search_from_to): New functions.
68621         (gl_list_indexof): Use the indexof_from_to method.
68622         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68623         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68624         (gl_list_search_from, gl_list_search_from_to): New functions.
68625         (gl_list_indexof): Use the indexof_from_to method.
68626         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68627         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68628         gl_array_indexof. Add start_index, end_index arguments.
68629         (gl_array_search_from_to): Renamed from gl_array_search. Add
68630         start_index, end_index arguments.
68631         (gl_array_remove, gl_array_list_implementation): Update.
68632         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68633         gl_carray_indexof. Add start_index, end_index arguments.
68634         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68635         start_index, end_index arguments.
68636         (gl_carray_remove, gl_carray_list_implementation): Update.
68637         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68638         gl_linked_search. Add start_index, end_index arguments.
68639         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68640         start_index, end_index arguments.
68641         (gl_linked_remove): Update.
68642         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68643         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68644         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68645         field to 'size_t'.
68646         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68647         gl_tree_search. Add start_index, end_index arguments.
68648         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68649         start_index, end_index arguments.
68650         (gl_tree_remove): Update.
68651         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68652         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68653         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68654         function.
68655         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68656         gl_tree_search. Add start_index, end_index arguments.
68657         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68658         start_index, end_index arguments.
68659         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68660         Update.
68661         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68662
68663 2006-10-05  Bruno Haible  <bruno@clisp.org>
68664
68665         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68666
68667         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68668         fwriteerror_temp): New declarations.
68669         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68670         (descriptors): New variable.
68671         (cleanup): First, close the descriptors.
68672         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68673         fclose_temp, fwriteerror_temp): New functions.
68674
68675 2006-10-04  Jim Meyering  <jim@meyering.net>
68676
68677         * lib/fts.c (fts_open): Tiny comment change.
68678
68679 2006-10-04  Bruno Haible  <bruno@clisp.org>
68680
68681         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68682         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68683         gl_LOCK_BODY.
68684         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68685         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68686         gl_LOCK_EARLY_BODY.
68687         (gl_LOCK): Require gl_LOCK_BODY.
68688
68689 2006-10-04  Bruno Haible  <bruno@clisp.org>
68690
68691         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68692         (gl_oset_search_atleast): New declaration.
68693         (struct gl_oset_implementation): Add field 'search_atleast'.
68694         (gl_oset_search_atleast): New inline function.
68695         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68696         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68697         (gl_array_oset_implementation): Update.
68698         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68699         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68700         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68701
68702 2006-10-04  Bruno Haible  <bruno@clisp.org>
68703
68704         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68705
68706 2006-10-03  Bruno Haible  <bruno@clisp.org>
68707
68708         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68709         from gl_avltreehash_list_implementation.
68710
68711 2006-10-03  Bruno Haible  <bruno@clisp.org>
68712
68713         * lib/gl_oset.c (gl_oset_add): Fix return type.
68714
68715 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68716
68717         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68718
68719 2006-10-02  Eric Blake  <ebb9@byu.net>
68720
68721         * modules/strnlen (Depends-on): Add extensions.
68722
68723 2006-10-02  Eric Blake  <ebb9@byu.net>
68724
68725         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68726         definition in 2.60+.
68727
68728 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68729
68730         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68731         checks.
68732
68733 2006-10-02  Bruno Haible  <bruno@clisp.org>
68734
68735         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68736         to the AUTOMAKE_OPTIONS.
68737         Reported by Jim Meyering.
68738
68739 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68740
68741         Work around bug in Solaris 10 /proc file system:
68742         /proc/self/fd/NNN/.. isn't the parent directory of
68743         the directory whose file descriptor is NNN.  This needs to
68744         be worked around at run time, not compile time, since a
68745         program might be built on Solaris 8, where things work, and
68746         run on Solaris 10.
68747         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68748         to use the following interface instead:
68749         (OPENAT_BUFFER_SIZE): New macro.
68750         (openat_proc_name): New function.
68751         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68752         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68753         Likewise.
68754         * lib/openat-proc.c: New file.
68755         * modules/openat (Files): Add lib/openat-proc.c.
68756         (Depends-on): Add same-inode, stdbool.
68757         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68758
68759 2006-09-29  Bruno Haible  <bruno@clisp.org>
68760
68761         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68762         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68763         argument. Set stdout_closed before testing for ferror, not after.
68764         (fwriteerror, fwriteerror_no_ebadf): New functions.
68765
68766 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68767
68768         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68769
68770 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68771
68772         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68773         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68774
68775 2006-09-28  Jim Meyering  <jim@meyering.net>
68776
68777         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68778         Include <unistd.h>.
68779
68780 2006-09-28  Bruno Haible  <bruno@clisp.org>
68781
68782         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68783         * modules/linkedhash-list (Depends-on): Likewise.
68784         * modules/rbtreehash-list (Depends-on): Likewise.
68785
68786 2006-09-28  Bruno Haible  <bruno@clisp.org>
68787
68788         * lib/strndup.h: Simplify the redefinition of strndup.
68789         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68790         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68791
68792 2006-09-28  Bruno Haible  <bruno@clisp.org>
68793
68794         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68795         * lib/gl_linkedhash_list.c: Likewise.
68796         * lib/gl_rbtreehash_list.c: Likewise.
68797
68798 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68799
68800         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68801         getaddrinfo.
68802
68803         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68804         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68805         it causes <stdio_ext.h> to cause a compile-time error.
68806         Problem reported by Nelson H. F. Beebe.
68807         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68808         of HAVE_DECL___PENDING.
68809
68810         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68811         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68812         declaration.
68813
68814 2006-09-27  Jim Meyering  <jim@meyering.net>
68815
68816         This file could end up with a definition for a function
68817         named __strndup, rather than rpl_strndup on a system with
68818         incomplete weak_alias support.
68819         * lib/strndup.c (strndup): Rename from __strndup.
68820         Remove #defines that used to map __strndup to strndup.
68821         Don't use K&R prototypes.
68822         Remove LIBC-related code, since this file is not sync'd with glibc.
68823         * lib/strndup.h: Revamp, accordingly.
68824         * m4/strndup.m4: Modernize.
68825
68826 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68827
68828         * modules/savewd (Depends-on): Add 'raise'.
68829         * lib/savewd.c: Include <signal.h>, for 'raise'.
68830
68831 2006-09-26  Jim Meyering  <jim@meyering.net>
68832
68833         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68834         when we detect Darwin 8.7.0's acl_get_file bug.
68835         Rearrange to perform the new (below) run-test while $LIBS
68836         contains any acl-related library.  Set USE_ACL at the end.
68837         (gl_ACL_GET_FILE): New function.
68838
68839 2006-09-26  Eric Blake  <ebb9@byu.net>
68840
68841         * lib/verror.c: Include <config.h> unconditionally.
68842
68843 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68844
68845         * modules/clock-time (Maintainer): Add self.
68846         * modules/getlogin_r (Depends-on): Add extensions.
68847
68848 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68849
68850         * modules/clock-time: New module.
68851         * modules/nanosleep (Depends-on): Add clock-time.
68852         * modules/gethrxtime (Depends-on): Likewise.
68853         * modules/gettime (Depends-on): Likewise.
68854         * modules/settime (Depends-on): Likewise.
68855
68856         * modules/fts-lgpl: Depend on openat.
68857         * modules/mkancesdirs: Depend on savewd.
68858         * modules/mkdir-p: Likewise.
68859
68860 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68861
68862         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68863
68864         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68865         `gl_have_arbitrary_file_name_length_limit' to
68866         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68867         actually works between configure runs.
68868
68869 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68870             Bruno Haible  <bruno@clisp.org>
68871
68872         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68873
68874 2006-09-25  Jim Meyering  <jim@meyering.net>
68875
68876         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68877         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68878
68879 2006-09-25  Eric Blake  <ebb9@byu.net>
68880
68881         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68882         exec's in 2006-09-18 patch when shuffling fds.
68883
68884 2006-09-25  Bruno Haible  <bruno@clisp.org>
68885
68886         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68887         Reported by Jim Meyering.
68888
68889 2006-09-24  Jim Meyering  <jim@meyering.net>
68890
68891         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68892         compare a pointer against a literal "0".  That caused failures with
68893         at least HP-UX's hpcc.
68894
68895 2006-09-22  Simon Josefsson  <jas@extundo.com>
68896
68897         * modules/gc-sha1:
68898         * modules/gc-md4:
68899         * modules/gc-hmac-sha1:
68900         * modules/gc-hmac-md5:
68901         * modules/gc-des:
68902         * modules/gc-arcfour: Distribute more files.
68903
68904 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68905
68906         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68907         (gl_linked_iterator_from_to): Initialize struct completely.
68908         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68909         (gl_tree_iterator_from_to): Likewise
68910         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68911         * lib/gl_array_list.c [lint] (gl_array_iterator)
68912         (gl_array_iterator_from_to): Likewise.
68913         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68914         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68915         (gl_carray_iterator_from_to): Likewise.
68916
68917         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68918         * lib/md4.c (md4_process_block): Remove unused variable.
68919         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68920         parentheses for clarity.
68921
68922 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68923
68924         * modules/bison-i18n (Depends-on): Add gettext.
68925
68926 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68927
68928         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68929         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68930         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68931         also add missing comma that caused broken test.
68932         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68933         stdlib.h, for `abort'.
68934         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68935         variables.
68936         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68937         include unistd.h if present, for `rmdir'.
68938         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68939         variables.
68940         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68941         in the process include standard headers for prototypes.
68942         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68943         gets declared on GNU/Linux.
68944         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68945         unistd.h, for `rmdir'.
68946         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68947
68948         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68949         always true.
68950         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68951
68952         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68953
68954 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68955
68956         * gnulib-tool (func_version): Create output all at once.  This
68957         may help avoid triggering unnecessary SIGPIPEs, and at any
68958         rate it doesn't hurt.
68959
68960 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68961             Bruno Haible  <bruno@clisp.org>
68962
68963         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68964         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68965         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68966
68967         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68968         (gl_FUNC_VASPRINTF): Invoke it.
68969
68970 2006-09-22  Bruno Haible  <bruno@clisp.org>
68971
68972         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68973         getloadavg.c as first argument.
68974
68975 2006-09-22  Bruno Haible  <bruno@clisp.org>
68976
68977         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68978         at the beginning of the gl_INIT macro.
68979         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68980         gl_GETLOADAVG.
68981
68982 2006-09-22  Bruno Haible  <bruno@clisp.org>
68983
68984         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68985         module.
68986         Suggested by Ralf Wildenhues.
68987
68988 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68989
68990         Import this patch from libc:
68991
68992         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68993
68994         * lib/regex_internal.c (re_string_reconstruct): Handle
68995         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68996         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68997         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68998         re_string_context_at.
68999
69000         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69001         now requires it.
69002         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69003         gl_REGEX now does it for us.
69004         (gl_REGEX): Add test taken from
69005         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69006
69007         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69008         Check that large offsets work.  Modernize Autoconf usages.
69009         Prefer "yes" to mean a good thing rather than a bad.
69010         Don't put "#define mkstemp" in config.h, as this might interfere
69011         with standard system headers that "#define mkstemp mkstemp64".
69012
69013         * modules/mkstemp (Depends-on): Add extensions, so that
69014         mkstemp is visible on some platforms.
69015         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69016         (Include): Change to "mkstemp.h" from <stdlib.h>.
69017         (Files): Add mkstemp.h.
69018
69019         * lib/mkstemp.h: New file, since some standard headers
69020         #define mkstemp.
69021         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69022         Include "mkstemp.h".
69023         Make the _LIBC code resemble glibc original more,
69024         e.g., use K&R style.
69025         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69026         (mkstemp): Remove, since mkstemp.h does this for us.
69027         * lib/stdlib--.h: Include mkstemp.h.
69028
69029         Import this patch from libc:
69030
69031         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69032
69033         * lib/tempname.c (__gen_tempname): Change attempts_min
69034         into a macro.  Use preprocessor to decide how to initialize
69035         attempts [Coverity CID 67].
69036
69037 2006-09-20  Bruno Haible  <bruno@clisp.org>
69038
69039         * lib/mkdtemp.c: Import from libc.
69040         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69041                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69042                 attempts_min into a macro.  Use preprocessor to decide how to
69043                 initialize attempts [Coverity CID 67].
69044         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69045                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69046                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69047
69048 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69049
69050         * gnulib-tool (func_exit): New function, to allow to pass the
69051         exit status portably through the trap.  Use everywhere.
69052         (--help, --version): Signal a write error.
69053         (trap): catch SIGPIPE, for write errors.
69054         Exit at the end of the trap, with the correct exit status.
69055
69056 2006-09-19  Karl Berry  <karl@gnu.org>
69057
69058         * doc/gnulib.texi: note about the license texinfo files.
69059
69060 2006-09-19  Eric Blake  <ebb9@byu.net>
69061
69062         * gnulib-tool: Avoid space-tab.
69063
69064 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69065
69066         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69067         that prevented coreutils 6.1 from building.  Problem reported
69068         by Petter Reinholdtsen.
69069
69070 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69071
69072         * gnulib-tool (avoidlist): Fix typo that broke options like
69073         --avoid=lock that are used by coreutils bootstrap.
69074
69075 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69076
69077         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69078         more systematically.
69079
69080 2006-09-18  Jim Meyering  <jim@meyering.net>
69081
69082         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69083
69084 2006-09-18  Bruno Haible  <bruno@clisp.org>
69085
69086         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69087
69088 2006-09-18  Bruno Haible  <bruno@clisp.org>
69089
69090         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69091         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69092         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69093         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69094         * m4/gettext.m4: Require autoconf >= 2.52.
69095         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69096         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69097         of gl_cv_header_inttypes_h.
69098
69099 2006-09-18  Bruno Haible  <bruno@clisp.org>
69100
69101         * lib/javaversion.c: Include configmake.h.
69102
69103 2006-09-18  Bruno Haible  <bruno@clisp.org>
69104
69105         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69106         avoid that the while loops be executed in a subshell.
69107
69108 2006-09-18  Bruno Haible  <bruno@clisp.org>
69109
69110         * MODULES.html.sh (func_module): Break long lines.
69111         Suggested by Bruce Korb <bkorb@gnu.org>.
69112
69113 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69114
69115         Speed up by a factor of 1.12.
69116         * gnulib-tool (nl): New variable.
69117         (func_import): Rewrite include directive extraction to only read each
69118         directive once.
69119
69120 2006-09-17  Bruno Haible  <bruno@clisp.org>
69121
69122         * modules/javaversion (Makefile.am): Remove DEFS setting.
69123         (Depends-on): Add configmake, for PKGDATADIR definition.
69124
69125 2006-09-17  Bruno Haible  <bruno@clisp.org>
69126
69127         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69128
69129 2006-09-17  Bruno Haible  <bruno@clisp.org>
69130
69131         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69132         (func_modules_transitive_closure, func_modules_add_dummy,
69133         func_modules_to_filelist, func_import, func_create_testdir,
69134         func_create_megatestdir, ...): Use it wherever possible.
69135         Suggested by Ralf Wildenhues.
69136
69137 2006-09-16  Karl Berry  <karl@gnu.org>
69138
69139         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69140         to avoid sectioning errors.
69141         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69142         [ifinfo]: blank line after @center-ed titles.
69143         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69144         Spell FSF address consistently with others.
69145         (These changes approved by rms.)
69146
69147 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69148
69149         Speed up by a factor of 1.61.
69150         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69151         already checked module names again.
69152
69153 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69154
69155         Speed up by a factor of 1.13.
69156         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69157         for new_files, and the input to func_add_or_update.
69158
69159 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69160
69161         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69162         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69163
69164 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69165
69166         * modules/mkancesdirs (Depends-on): Add fcntl.
69167         * modules/savewd: New file.
69168         * MODULES.html.sh (File system functions): Add savewd.
69169
69170         * modules/configmake (Makefile.am): Add support for the
69171         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69172
69173 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69174
69175         * m4/savewd.m4: New file.
69176
69177 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69178
69179         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69180         (dirchownmod): New arg FD.  All callers changed.
69181         Use FD rather than opening the directory ourself, as opening is
69182         now the caller's responsibility.
69183         * lib/dirchownmod.h: Likewise.
69184         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69185         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69186         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69187         (test_dir): Remove.
69188         (mkancesdirs): Return length of prefix of FILE that has already
69189         been made, or -2 if there is a child doing the work.  Redo
69190         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69191         ".", and treat ".." specially since it might stray back into
69192         already-created areas.  Use a subprocess if necessary.  New arg
69193         WD; all users changed.  MAKE_DIR function should now return 1
69194         if it creates a directory that is not readable.  Return -2 if
69195         a child process is spun off.
69196         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69197         Adjust signature to match code.
69198         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69199         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69200         all users changed.
69201         * lib/savewd.c, lib/savewd.h: New files.
69202
69203 2006-09-15  Jim Meyering  <jim@meyering.net>
69204
69205         * modules/rename-dest-slash: New module.
69206         * MODULES.html.sh (posix_compat): Add it here.
69207
69208         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69209
69210 2006-09-15  Jim Meyering  <jim@meyering.net>
69211
69212         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69213         file.
69214
69215         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69216
69217 2006-09-15  Jim Meyering  <jim@meyering.net>
69218
69219         * lib/rename-dest-slash.c (has_trailing_slash): Use
69220         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69221         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69222         test before testing whether SRC is a directory.
69223         Suggestions from Bruno Haible.
69224
69225         Avoid a warning about an unused variable.
69226         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69227         into the #ifdef block where it's used.
69228
69229         * lib/rename-dest-slash.c: New file.
69230
69231 2006-09-14  Bruno Haible  <bruno@clisp.org>
69232
69233         * lib/allocsa.c: Include <config.h> unconditionally.
69234         * lib/asnprintf.c: Likewise.
69235         * lib/asprintf.c: Likewise.
69236         * lib/c-strcasecmp.c: Likewise.
69237         * lib/c-strcasestr.c: Likewise.
69238         * lib/c-strncasecmp.c: Likewise.
69239         * lib/c-strstr.c: Likewise.
69240         * lib/classpath.c: Likewise.
69241         * lib/clean-temp.c: Likewise.
69242         * lib/concatpath.c: Likewise.
69243         * lib/copy-file.c: Likewise.
69244         * lib/csharpcomp.c: Likewise.
69245         * lib/csharpexec.c: Likewise.
69246         * lib/execute.c: Likewise.
69247         * lib/fatal-signal.c: Likewise.
69248         * lib/findprog.c: Likewise.
69249         * lib/fwriteerror.c: Likewise.
69250         * lib/gl_array_list.c: Likewise.
69251         * lib/gl_array_oset.c: Likewise.
69252         * lib/gl_avltree_list.c: Likewise.
69253         * lib/gl_avltree_oset.c: Likewise.
69254         * lib/gl_avltreehash_list.c: Likewise.
69255         * lib/gl_carray_list.c: Likewise.
69256         * lib/gl_linked_list.c: Likewise.
69257         * lib/gl_linkedhash_list.c: Likewise.
69258         * lib/gl_list.c: Likewise.
69259         * lib/gl_oset.c: Likewise.
69260         * lib/gl_rbtree_list.c: Likewise.
69261         * lib/gl_rbtree_oset.c: Likewise.
69262         * lib/gl_rbtreehash_list.c: Likewise.
69263         * lib/imaxabs.c: Likewise.
69264         * lib/imaxdiv.c: Likewise.
69265         * lib/javacomp.c: Likewise.
69266         * lib/javaexec.c: Likewise.
69267         * lib/javaversion.c: Likewise.
69268         * lib/linebreak.c: Likewise.
69269         * lib/localcharset.c: Likewise.
69270         * lib/lock.c: Likewise.
69271         * lib/mbchar.c: Likewise.
69272         * lib/mbswidth.c: Likewise.
69273         * lib/mkdtemp.c: Likewise.
69274         * lib/pipe.c: Likewise.
69275         * lib/printf-args.c: Likewise.
69276         * lib/printf-parse.c: Likewise.
69277         * lib/progname.c: Likewise.
69278         * lib/progreloc.c: Likewise.
69279         * lib/readlink.c: Likewise.
69280         * lib/sh-quote.c: Likewise.
69281         * lib/stpcpy.c: Likewise.
69282         * lib/stpncpy.c: Likewise.
69283         * lib/strcasecmp.c: Likewise.
69284         * lib/strcasestr.c: Likewise.
69285         * lib/strcspn.c: Likewise.
69286         * lib/striconv.c: Likewise.
69287         * lib/strncasecmp.c: Likewise.
69288         * lib/strnlen1.c: Likewise.
69289         * lib/strstr.c: Likewise.
69290         * lib/strtok_r.c: Likewise.
69291         * lib/tls.c: Likewise.
69292         * lib/tmpdir.c: Likewise.
69293         * lib/unicodeio.c: Likewise.
69294         * lib/unsetenv.c: Likewise.
69295         * lib/vasnprintf.c: Likewise.
69296         * lib/vasprintf.c: Likewise.
69297         * lib/wait-process.c: Likewise.
69298         * lib/xallocsa.c: Likewise.
69299         * lib/xsetenv.c: Likewise.
69300         * lib/xstriconv.c: Likewise.
69301
69302 2006-09-13  Simon Josefsson  <jas@extundo.com>
69303
69304         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69305         that internally, suggested by Ralf Wildenhues
69306         <Ralf.Wildenhues@gmx.de>.
69307
69308 2006-09-13  Simon Josefsson  <jas@extundo.com>
69309
69310         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69311         @LIBOBJS@.
69312         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69313
69314 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69315
69316         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69317         longer worry about uses that don't define HAVE_CONFIG_H.
69318         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69319         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69320         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69321         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69322         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69323         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69324         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69325         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69326         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69327         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69328         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69329         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69330         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69331         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69332         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69333         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69334         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69335         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69336         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69337         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69338         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69339         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69340         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69341         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69342         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69343         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69344         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69345         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69346         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69347         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69348         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69349         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69350         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69351         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69352         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69353         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69354         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69355         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69356         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69357         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69358         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69359         Likewise.
69360
69361 2006-09-13  Eric Blake  <ebb9@byu.net>
69362
69363         * lib/getopt.c: Fix typo in last commit.
69364
69365 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69366
69367         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69368         dgettext.
69369
69370 2006-09-12  Jim Meyering  <jim@meyering.net>
69371
69372         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69373         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69374         Reported by Nelson H. F. Beebe.
69375
69376 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69377
69378         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69379         program_invocation_name and program_invocation_short_name are
69380         initialized.
69381         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69382         and program_invocation_short_name to argp.h, so they are visible
69383         to user programs.
69384         * lib/argp.h: Likewise
69385
69386 2006-09-10  Bruno Haible  <bruno@clisp.org>
69387
69388         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69389         m4/inttypes_h.m4, m4/uintmax_t.m4.
69390
69391 2006-09-10  Bruno Haible  <bruno@clisp.org>
69392
69393         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69394         gl_AC_TYPE_UINTMAX_T.
69395
69396 2006-09-10  Bruno Haible  <bruno@clisp.org>
69397
69398         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69399
69400 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69401
69402         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69403         convention.  Text proposed by Bruno Haible.
69404         (struct argp_option): Document the use of N_() wrappers.
69405
69406         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69407         '\v', and translate the two parts separately, instead of feeding
69408         the whole string to gettext.  This allows to exclude
69409         '\v' from the strings visible to the translator by writing doc
69410         strings as N_("..") "\v" N_("..").
69411
69412 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69413
69414         * config/srclist.txt: Undo latest change; the bug was fixed.
69415
69416 2006-09-09  Bruno Haible  <bruno@clisp.org>
69417
69418         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69419         assignments if building a library without libtool.
69420         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69421         in func_emit_lib_Makefile_am.
69422         (func_import): When building a static library libfoo.a, arrange to
69423         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69424         (func_create_testdir): Likewise.
69425         * modules/gc (configure.ac, Makefile.am): If building statically,
69426         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69427         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69428         * modules/striconv (configure.ac, Makefile.am): Likewise.
69429         Based on a suggestion by Ralf Wildenhues.
69430
69431 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69432
69433         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69434         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69435         Also:
69436
69437         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69438         Add year_2050_test to catch glibc bug 2821
69439         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69440
69441         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69442         Prefer #ifdef to #if.
69443
69444         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69445         Return from 'main' instead of calling 'exit'.
69446
69447 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69448
69449         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69450         returned the maximum time_t value rather than (time_t) -1.
69451         Problem originally reported by William Bardwell
69452         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69453
69454         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69455         Moved to here ...
69456         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69457         ... from here.
69458
69459 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69460
69461         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69462         2821 is fixed.
69463
69464 2006-09-08  Jim Meyering  <jim@meyering.net>
69465
69466         Don't make generated files read-only.  That would bother too many
69467         people.  However, do retain the ability to work when targets are
69468         read-only: remove the destination and temporary files before writing
69469         them (when generated via sed or echo), or by using the -f option for
69470         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69471         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69472         * modules/byteswap, modules/configmake, modules/fcntl:
69473         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69474         * modules/localcharset, modules/netinet_in, modules/poll:
69475         * modules/stdbool, modules/stdint, modules/sys_select:
69476         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69477
69478 2006-09-08  Jim Meyering  <jim@meyering.net>
69479
69480         Avoid new build failure on FreeBSD 6.0.
69481         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69482         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69483         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69484
69485 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69486
69487         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69488
69489 2006-09-07  Jim Meyering  <jim@meyering.net>
69490
69491         Fix global typo in last change: use chmod u-w, not chmod u-x.
69492         Spotted by Paul Eggert and Bruce Korb.
69493         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69494         * modules/byteswap, modules/configmake, modules/fcntl:
69495         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69496         * modules/localcharset, modules/netinet_in, modules/poll:
69497         * modules/stdbool, modules/stdint, modules/sys_select:
69498         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69499
69500 2006-09-06  Jim Meyering  <jim@meyering.net>
69501
69502         Make generated files be read-only.
69503         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69504         Ensure that each generated file is now read-only.
69505         * modules/argz: Likewise.
69506         * modules/arpa_inet: Likewise.
69507         * modules/byteswap: Likewise.
69508         * modules/configmake: Likewise.
69509         * modules/fcntl: Likewise.
69510         * modules/fnmatch: Likewise.
69511         * modules/getopt: Likewise.
69512         * modules/glob: Likewise.
69513         * modules/inttypes: Likewise.
69514         * modules/netinet_in: Likewise.
69515         * modules/poll: Likewise.
69516         * modules/stdbool: Likewise.
69517         * modules/stdint: Likewise.
69518         * modules/sys_select: Likewise.
69519         * modules/sys_socket: Likewise.
69520         * modules/sys_stat: Likewise.
69521         * modules/sysexits: Likewise.
69522         * modules/localcharset: Same as above, but continue using temporary
69523         file named "t-$@" (why different?) rather than the "$@-t" used
69524         everywhere else.
69525
69526         * modules/sysexits (Makefile.am): Replace literal occurrences
69527         of "sysexit.h" more readable, and more consistent, "$@".
69528
69529 2006-09-06  Bruno Haible  <bruno@clisp.org>
69530
69531         * modules/striconv: New file.
69532         * modules/xstriconv: New file.
69533         * MODULES.html.sh (Internationalization functions): Add striconv,
69534         xstriconv.
69535
69536 2006-09-06  Bruno Haible  <bruno@clisp.org>
69537
69538         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69539         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69540         not using libtool correctly.
69541
69542 2006-09-06  Bruno Haible  <bruno@clisp.org>
69543
69544         * lib/striconv.h: New file.
69545         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69546         iconvstring.c.
69547         * lib/xstriconv.h: New file.
69548         * lib/xstriconv.c: New file.
69549
69550 2006-09-06  Bruno Haible  <bruno@clisp.org>
69551
69552         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69553         lib_..._LDFLAGS.
69554
69555 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69556
69557         * lib/argz_.h: Sync from Libtool.
69558
69559         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69560                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69561
69562         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69563
69564 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69565
69566         * modules/trim: New file.
69567
69568 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69569
69570         * lib/trim.h: New file.
69571         * lib/trim.c: New file.
69572
69573 2006-09-05  Bruno Haible  <bruno@clisp.org>
69574
69575         * MODULES.html.sh (String handling): Add trim.
69576
69577 2006-09-04  Karl Berry  <karl@gnu.org>
69578
69579         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69580         until next release.
69581
69582 2006-09-03  Bruno Haible  <bruno@clisp.org>
69583
69584         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69585         correctly.
69586
69587 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69588
69589         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69590         not gl_GETLOADAVG.  Omit unneeded semicolons.
69591         Problems reported by Ralf Wildenhues in
69592         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69593         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69594         at the end, which is the usual gnulib style.
69595
69596         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69597         of doing all the work ourselves.
69598         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69599         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69600
69601 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69602
69603         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69604         Problem reported by Ralf Wildenhues in
69605         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69606
69607         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69608         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69609
69610 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69611
69612         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69613         yesterday's patch by changing test -n to test -z.
69614
69615 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69616
69617         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69618         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69619         the former is now obsolescent.
69620
69621         * modules/chdir-long (Depends-on): Add fcntl.
69622
69623 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69624
69625         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69626         obsolescent, and programs should use gnulib instead.
69627         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69628         but with prefixes changed.
69629
69630 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69631
69632         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69633         or stdbool.h, because they might not exist while configuring.
69634
69635         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69636         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69637         does that for us.
69638         (O_DIRECTORY): Remove.
69639
69640 2006-08-31  Eric Blake  <ebb9@byu.net>
69641
69642         * gnulib-tool: Don't let emacs change spaces to TAB.
69643
69644 2006-08-31  Bruno Haible  <bruno@clisp.org>
69645
69646         * gnulib-tool: When calling func_import more than once, do it in a
69647         subshell.
69648         Reported by Eric Blake <ebb9@byu.net>.
69649
69650 2006-08-31  Bruno Haible  <bruno@clisp.org>
69651
69652         * gnulib-tool (nl): Remove variable.
69653         (sed_transform_lib_file): Use more robust test for config-h module.
69654         (func_import): Fix typo in 2006-08-25 patch.
69655
69656 2006-08-31  Bruno Haible  <bruno@clisp.org>
69657
69658         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69659         specified, augment Makefile.am variables instead of assigning them.
69660
69661 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69662
69663         Work around a bug in both the Linux and SunOS 64-bit kernels:
69664         nanosleep mishandles sleeps for longer than 2**31 seconds.
69665         Problem reported by Frank v Waveren in
69666         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69668         Check for nanosleep bug.
69669         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69670
69671 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69672
69673         Work around a bug in both the Linux and SunOS 64-bit kernels:
69674         nanosleep mishandles sleeps for longer than 2**31 seconds.
69675         Problem reported by Frank v Waveren in
69676         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69677         * lib/nanosleep.c (BILLION): New constant.
69678         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69679         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69680         implementation.
69681
69682 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69683
69684         * modules/nanosleep (Depends-on): Add gettime.
69685
69686 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69687         and Simon Josefsson  <jas@extundo.com>
69688         and Oskar Liljeblad  <oskar@osk.mine.nu>
69689
69690         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69691         * gnulib-tool (func_import): New license type 'unmodifiable license
69692         text'.
69693         * modules/fdl: Use it.  Longer description.
69694         * module/gpl, module/lgpl: New files.
69695
69696 2006-08-30  Jim Meyering  <jim@meyering.net>
69697
69698         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69699         shadowing the parameter.
69700
69701 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69702
69703         Sync from Libtool:
69704
69705         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69706
69707         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69708         sharing with gnulib.  Report by Eric Blake.
69709
69710 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         * modules/isapipe: New file.
69713         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69714
69715 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69716
69717         * modules/configmake (Makefile.am): Add a comment, and omit
69718         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69719         by Bruno Haible.
69720
69721 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69722
69723         * m4/isapipe.m4: New file.
69724
69725 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69726
69727         * lib/isapipe.c, lib/isapipe.h: New files.
69728
69729 2006-08-29  Jim Meyering  <jim@meyering.net>
69730
69731         * modules/configmake (Makefile.am): Make configmake.h depend on
69732         Makefile.  Otherwise, a stale configmake.h could hang around.
69733
69734 2006-08-29  Eric Blake  <ebb9@byu.net>
69735
69736         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69737         resolution of upstream bug 3044.
69738
69739 2006-08-29  Bruno Haible  <bruno@clisp.org>
69740
69741         * modules/localcharset (Depends-on): Add configmake.
69742         (Makefile.am): Remove setting of LIBDIR through DEFS.
69743
69744 2006-08-29  Bruno Haible  <bruno@clisp.org>
69745
69746         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69747         defined.
69748
69749 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         * modules/fcntl: New file.
69752         * modules/chdir-safer (Depends-on): Add fcntl.
69753         * modules/fts: Likewise.
69754         * modules/mkdir-p: Likewise.
69755
69756         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69757         This undoes the most recent change, since we're now addressing the
69758         problem in a different way.
69759
69760         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69761         into output, since the output might be called Makefile.am even
69762         if $makefile_name is something different.
69763         (func_import): Use $makefile_am rather than
69764         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69765         empty.
69766
69767         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69768
69769 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69770
69771         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69772         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69773         recent change to stdint.m4, since we're now addressing the problem in a
69774         different way.
69775
69776 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * m4/fcntl_h.m4: New file.
69779
69780 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69781
69782         * lib/fcntl_.h: New file.
69783         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69784         the fcntl module.
69785         * lib/dirchownmod.c: Likewise.
69786         * lib/fts.c: Likewise.
69787
69788         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69789         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69790         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69791         just before including <inttypes.h>, to avoid circular inclusion.
69792
69793 2006-08-28  Jim Meyering  <jim@meyering.net>
69794
69795         * doc/visibility.texi: Actually read and correct the grammar of the
69796         sentence affected by yesterday's change.
69797
69798 2006-08-28  Eric Blake  <ebb9@byu.net>
69799
69800         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69801         needs wrapper.
69802
69803 2006-08-28  Eric Blake  <ebb9@byu.net>
69804
69805         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69806
69807 2006-08-28  Eric Blake  <ebb9@byu.net>
69808
69809         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69810
69811 2006-08-28  Bruno Haible  <bruno@clisp.org>
69812
69813         * modules/c-strstr: New file, from GNU gettext.
69814         * MODULES.html.sh (String handling): Add c-strstr.
69815
69816 2006-08-28  Bruno Haible  <bruno@clisp.org>
69817
69818         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69819         macros.
69820         Reported by Eric Blake.
69821
69822 2006-08-28  Bruno Haible  <bruno@clisp.org>
69823
69824         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69825         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69826         * lib/vasprintf.c: Include errno.h, limits.h.
69827         (EOVERFLOW): New fallback definition.
69828         (vasprintf): Test here whether the string length is > INT_MAX.
69829         * lib/vsnprintf.c: Include errno.h, limits.h.
69830         (EOVERFLOW): New fallback definition.
69831         (vsnprintf): Fix bug when generated string was too long for the buffer.
69832         Test here whether the string length is > INT_MAX.
69833
69834 2006-08-28  Bruno Haible  <bruno@clisp.org>
69835
69836         * lib/inttypes_.h (SCNX*): Remove definitions.
69837         Reported by Eric Blake.
69838
69839 2006-08-28  Bruno Haible  <bruno@clisp.org>
69840
69841         * lib/c-strstr.h: New file, from GNU gettext.
69842         * lib/c-strstr.c: New file, from GNU gettext.
69843
69844 2006-08-28  Bruno Haible  <bruno@clisp.org>
69845
69846         * gnulib-tool: Reorder some statements.
69847
69848 2006-08-28  Bruno Haible  <bruno@clisp.org>
69849
69850         * gnulib-tool: New option --makefile-name.
69851         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69852         $makefile_name.
69853         (func_import): Write $makefile_name to the cache file, and read it from
69854         there unless explicitly specified. Use $makefile_name as file name
69855         instead of Makefile.am. Adjust the recommendations accordingly.
69856
69857 2006-08-28  Bruno Haible  <bruno@clisp.org>
69858
69859         * gnulib-tool (func_verify_module): Check against misapplying patch.
69860
69861 2006-08-28  Bruno Haible  <bruno@clisp.org>
69862
69863         * gnulib-tool (func_relativize, func_relconcat): New functions.
69864         Give an error if --local-dir is given with --update.
69865         Remove trailing slashes from $local_gnulib_dir.
69866         (func_import): Store the relativized $local_gnulib_dir in
69867         gnulib-cache.m4, and read it from there if not specified explicitly.
69868
69869 2006-08-28  Bruno Haible  <bruno@clisp.org>
69870
69871         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69872         is the current directory. Respect also $local_gnulib_dir.
69873
69874 2006-08-28  Bruno Haible  <bruno@clisp.org>
69875             Simon Josefsson  <jas@extundo.com>
69876
69877         BeOS portability.
69878         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69879
69880 2006-08-27  Jim Meyering  <jim@meyering.net>
69881
69882         * doc/visibility.texi: Remove duplicate word: "pointer".
69883
69884 2006-08-26  Bruno Haible  <bruno@clisp.org>
69885
69886         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69887         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69888         (Makefile.am): Create inttypes.h from inttypes_.h.
69889         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69890
69891         * modules/imaxabs: New file.
69892
69893         * modules/imaxdiv: New file.
69894
69895 2006-08-26  Bruno Haible  <bruno@clisp.org>
69896
69897         * m4/inttypes.m4: New file.
69898         * m4/_inttypes_h.m4: Remove file.
69899         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69900         PRI_MACROS_BROKEN.
69901         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69902
69903         * m4/imaxabs.m4: New file.
69904
69905         * m4/imaxdiv.m4: New file.
69906
69907 2006-08-26  Bruno Haible  <bruno@clisp.org>
69908
69909         * lib/inttypes_.h: New file.
69910         * lib/inttypes.h: Remove file.
69911         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69912
69913         * lib/imaxabs.c: New file.
69914
69915         * lib/imaxdiv.c: New file.
69916
69917 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69918
69919         New config-h module, so that "make" output needn't be cluttered
69920         by -DHAVE_CONFIG_H.
69921         * MODULES.html.sh (Support for building libraries and executables):
69922         Add config-h.
69923         * modules/config-h: New file.
69924         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69925         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69926         the config-h module is used.
69927
69928         New configmake module, so that "make" output needn't be cluttered
69929         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69930         * MODULES.html.sh (Support for building libraries and executables):
69931         Add configmake.
69932         * modules/configmake: New file.
69933
69934 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69935
69936         * m4/config-h.m4: New file.
69937
69938 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69939
69940         * config/srclist.txt: Add elisp-comp.
69941
69942 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69943
69944         * MODULES.html.sh (Support for building libraries and executables):
69945         Add elisp-comp.
69946         * build-aux/elisp-comp: New file.
69947         * modules/elisp-comp: New file.
69948
69949 2006-08-24  Bruno Haible  <bruno@clisp.org>
69950
69951         * gnulib-tool (func_create_testdir): Use non-default values of
69952         sourcebase and m4base.
69953
69954 2006-08-24  Bruno Haible  <bruno@clisp.org>
69955
69956         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69957         HTML structure.
69958
69959 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         * modules/openat (Depends-on): Add lchown.
69962
69963 2006-08-23  Bruno Haible  <bruno@clisp.org>
69964
69965         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69966         of gl_LOCK_EARLY instead of gl_LOCK.
69967
69968 2006-08-23  Bruno Haible  <bruno@clisp.org>
69969
69970         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69971         on OSF/1 to no.
69972         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69973
69974 2006-08-23  Bruno Haible  <bruno@clisp.org>
69975
69976         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69977         as unusable.
69978
69979         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69980         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69981         (gl_LOCK): New macro.
69982
69983 2006-08-22  Simon Josefsson  <jas@extundo.com>
69984
69985         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69986         to md5 module.
69987
69988 2006-08-22  Simon Josefsson  <jas@extundo.com>
69989
69990         * MODULES.html.sh: Add "Support for maintaining and release
69991         projects".
69992
69993         * build-aux/gnupload: New file, from coreutils.
69994
69995 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         Avoid the need for AC_LIBSOURCES in m4 macros.
69998         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69999         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70000         * modules/check-version (EXTRA_DIST): Add check-version.h.
70001         * modules/crc (EXTRA_DIST): Add crc.h.
70002         * modules/des (EXTRA_DIST): Add des.h.
70003         * modules/gc (EXTRA_DIST): Add gc.h.
70004         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70005         * modules/getline (EXTRA_DIST): Add getline.h.
70006         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70007         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70008         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70009         * modules/md2 (EXTRA_DIST): Add md2.h.
70010         * modules/md4 (EXTRA_DIST): Add md4.h.
70011         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70012         * modules/read-file (EXTRA_DIST): Add read-file.h.
70013         * modules/readline (EXTRA_DIST): Add readline.h.
70014         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70015         rijndael-api-fst.h.
70016
70017 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70018
70019         * m4/rijndael.m4 (gl_ARCFOUR):
70020         * m4/arctwo.m4 (gl_ARCTWO):
70021         * m4/check-version.m4 (gl_CHECK_VERSION):
70022         * m4/crc.m4 (gl_CRC):
70023         * m4/des.m4 (gl_DES):
70024         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70025         * m4/gc.m4 (gl_GC):
70026         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70027         * m4/getline.m4 (gl_FUNC_GETLINE):
70028         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70029         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70030         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70031         * m4/md2.m4 (gl_MD2):
70032         * m4/md4.m4 (gl_MD4):
70033         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70034         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70035         * m4/readline.m4 (gl_FUNC_READLINE):
70036         * m4/rijndael.m4 (gl_RIJNDAEL):
70037         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70038         to get the necessary .h files and whatnot.
70039
70040 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70041
70042         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70043         gnulib rather than the other way around.
70044         * config/srclistvars.sh (COREUTILS): Remove.
70045
70046 2006-08-22  Jim Meyering  <jim@meyering.net>
70047
70048         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70049
70050         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70051
70052 2006-08-22  Eric Blake  <ebb9@byu.net>
70053
70054         * modules/regexprops-generic: New file.
70055         * MODULES.html.sh (Support for building documentation): List it.
70056
70057 2006-08-22  Eric Blake  <ebb9@byu.net>
70058
70059         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70060         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70061         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70062         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70063
70064 2006-08-22  Bruno Haible  <bruno@clisp.org>
70065
70066         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70067         and lib_LTLIBRARIES like the other lib_* variables.
70068
70069 2006-08-22  Bruno Haible  <bruno@clisp.org>
70070
70071         * build-aux/x-to-1.in: New file, from GNU gettext.
70072
70073 2006-08-22  Bruno Haible  <bruno@clisp.org>
70074
70075         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70076         <utmpx.h> exists.
70077
70078 2006-08-22  Bruno Haible  <bruno@clisp.org>
70079
70080         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70081         <utmpx.h> exists.
70082
70083 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70084
70085         BeOS portability.
70086         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70087         exist.
70088         Problem reported by Bruno Haible.
70089
70090 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         Avoid the need for AC_LIBSOURCES in m4 macros.
70093         * modules/acl (EXTRA_DIST): Add acl.h.
70094         * modules/argmatch (Files): Add m4/argmatch.m4.
70095         (configure.ac): Add gl_ARGMATCH.
70096         (EXTRA_DIST): Renamed from lib_SOURCES, for
70097         consistency with the other modules.  Remove argmatch.c.
70098         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70099         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70100         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70101         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70102         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70103         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70104         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70105         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70106         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70107         * modules/closeout (EXTRA_DIST): Add closeout.h.
70108         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70109         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70110         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70111         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70112         dirname.h; remove basename.c and stripslash.c.
70113         * modules/exclude (EXTRA_DIST): Add exclude.h.
70114         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70115         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70116         * modules/file-type (EXTRA_DIST): Add file-type.h.
70117         * modules/filemode (EXTRA_DIST): Add filemode.h.
70118         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70119         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70120         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70121         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70122         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70123         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70124         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70125         * modules/getdate (EXTRA_DIST): Add getdate.c.
70126         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70127         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70128         * modules/getpass (EXTRA_DIST): Add getpass.h.
70129         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70130         * modules/group-member (EXTRA_DIST): Add group-member.h.
70131         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70132         * modules/hash (EXTRA_DIST): Add hash.h.
70133         * modules/human (EXTRA_DIST): Add human.h.
70134         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70135         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70136         * modules/lchown (EXTRA_DIST): Add lchown.h.
70137         * modules/long-options (EXTRA_DIST): Add long-options.h.
70138         * modules/lstat (EXTRA_DIST): Add lstat.h.
70139         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70140         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70141         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70142         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70143         * modules/memxor (EXTRA_DIST): Add memxor.h.
70144         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70145         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70146         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70147         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70148         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70149         * modules/physmem (EXTRA_DIST): Add physmem.h.
70150         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70151         * modules/posixver (EXTRA_DIST): Add posixver.h.
70152         * modules/quote (EXTRA_DIST): Add quote.h.
70153         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70154         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70155         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70156         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70157         regex_internal.h regexec.c.
70158         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70159         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70160         * modules/same (EXTRA_DIST): Add same.h.
70161         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70162         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70163         * modules/savedir (EXTRA_DIST): Add savedir.h.
70164         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70165         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70166         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70167         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70168         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70169         * modules/strdup (EXTRA_DIST): Add strdup.h.
70170         * modules/strftime (EXTRA_DIST): Add strftime.h.
70171         * modules/strndup (EXTRA_DIST): Add strndup.h.
70172         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70173         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70174         * modules/time_r (EXTRA_DIST): Add time_r.h.
70175         * modules/timespec (EXTRA_DIST): Add timespec.h.
70176         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70177         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70178         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70179         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70180         * modules/userspec (EXTRA_DIST): Add userspec.h.
70181         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70182         * modules/utimens (EXTRA_DIST): Add utimens.h.
70183         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70184         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70185         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70186         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70187         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70188         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70189         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70190         * modules/yesno (EXTRA_DIST): Add yesno.h.
70191
70192 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70195
70196         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70197         * m4/dev-ino.m4, same-inode.m4: Remove.
70198
70199         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70200         * m4/acl.m4 (AC_FUNC_ACL):
70201         * m4/backupfile.m4 (gl_BACKUPFILE):
70202         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70203         * m4/canon-host.m4 (gl_CANON_HOST):
70204         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70205         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70206         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70207         * m4/cloexec.m4 (gl_CLOEXEC):
70208         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70209         * m4/closeout.m4 (gl_CLOSEOUT):
70210         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70211         * m4/dirname.m4 (gl_DIRNAME):
70212         * m4/exclude.m4 (gl_EXCLUDE):
70213         * m4/exitfail.m4 (gl_EXITFAIL):
70214         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70215         * m4/file-type.m4 (gl_FILE_TYPE):
70216         * m4/filemode.m4 (gl_FILEMODE):
70217         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70218         * m4/fpending.m4 (gl_FUNC_FPENDING):
70219         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70220         * m4/fts.m4 (gl_FUNC_FTS):
70221         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70222         * m4/getdate.m4 (gl_GETDATE):
70223         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70224         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70225         * m4/getpass.m4 (gl_FUNC_GETPASS):
70226         * m4/gettime.m4 (gl_GETTIME):
70227         * m4/getugroups.m4 (gl_GETUGROUPS):
70228         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70229         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70230         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70231         * m4/hash.m4 (gl_HASH):
70232         * m4/idcache.m4 (gl_IDCACHE):
70233         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70234         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70235         * m4/long-options.m4 (gl_LONG_OPTIONS):
70236         * m4/lstat.m4 (gl_FUNC_LSTAT):
70237         * m4/md5.m4 (gl_MD5):
70238         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70239         * m4/memcoll.m4 (gl_MEMCOLL):
70240         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70241         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70242         * m4/memxor.m4 (gl_MEMXOR):
70243         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70244         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70245         * m4/modechange.m4 (gl_MODECHANGE):
70246         * m4/mountlist.m4 (gl_MOUNTLIST):
70247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70248         * m4/openat.m4 (gl_FUNC_OPENAT):
70249         * m4/pathmax.m4 (gl_PATHMAX):
70250         * m4/physmem.m4 (gl_PHYSMEM):
70251         * m4/posixtm.m4 (gl_POSIXTM):
70252         * m4/posixver.m4 (gl_POSIXVER):
70253         * m4/quote.m4 (gl_QUOTE):
70254         * m4/quotearg.m4 (gl_QUOTEARG):
70255         * m4/readtokens.m4 (gl_READTOKENS):
70256         * m4/readutmp.m4 (gl_READUTMP):
70257         * m4/regex.m4 (gl_REGEX):
70258         * m4/safe-read.m4 (gl_SAFE_READ):
70259         * m4/safe-write.m4 (gl_SAFE_WRITE):
70260         * m4/same.m4 (gl_SAME):
70261         * m4/save-cwd.m4 (gl_SAVE_CWD):
70262         * m4/savedir.m4 (gl_SAVEDIR):
70263         * m4/settime.m4 (gl_SETTIME):
70264         * m4/sha1.m4 (gl_SHA1):
70265         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70266         * m4/stat-macros.m4 (gl_STAT_MACROS):
70267         * m4/stat-time.m4 (gl_STAT_TIME):
70268         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70269         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70270         * m4/strdup.m4 (gl_FUNC_STRDUP):
70271         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70272         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70273         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70274         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70275         * m4/time_r.m4 (gl_TIME_R):
70276         * m4/timespec.m4 (gl_TIMESPEC):
70277         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70278         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70279         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70280         * m4/userspec.m4 (gl_USERSPEC):
70281         * m4/utimecmp.m4 (gl_UTIMECMP):
70282         * m4/utimens.m4 (gl_UTIMENS):
70283         * m4/xalloc.m4 (gl_XALLOC):
70284         * m4/xgetcwd.m4 (gl_XGETCWD):
70285         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70286         * m4/xreadlink.m4 (gl_XREADLINK):
70287         * m4/xstrtod.m4 (gl_XSTRTOD):
70288         * m4/yesno.m4 (gl_YESNO):
70289         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70290         to get the necessary .h files and whatnot.
70291
70292 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70293             Bruno Haible  <bruno@clisp.org>
70294
70295         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70296         /bin/sh understanding of '!' conditional negation.
70297
70298 2006-08-21  Jim Meyering  <jim@meyering.net>
70299
70300         * modules/openat (Depends-on): Really alphabetize.
70301
70302         * modules/acl (Depends-on): Add error and quote.
70303
70304         * check-module (find_included_lib_files): Add at-func.c to the
70305         ok-to-include-more-than-once white list.
70306
70307         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70308
70309 2006-08-21  Bruno Haible  <bruno@clisp.org>
70310
70311         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70312         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70313         Reported by Martin Lambers <marlam@marlam.de>.
70314
70315 2006-08-21  Bruno Haible  <bruno@clisp.org>
70316
70317         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70318         specify an installation location, don't emit a noinst_LIBRARIES or
70319         noinst_LTLIBRARIES assignment.
70320
70321 2006-08-21  Bruno Haible  <bruno@clisp.org>
70322
70323         BeOS portability.
70324         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70325         BeOS has mbrtowc() but no <wctype.h>.
70326
70327 2006-08-21  Bruno Haible  <bruno@clisp.org>
70328
70329         BeOS portability.
70330         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70331         exist.
70332
70333 2006-08-21  Bruno Haible  <bruno@clisp.org>
70334
70335         BeOS portability.
70336         * lib/mbchar.h: Include <wctype.h> only if it exists.
70337
70338 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70339
70340         Remove files that are no longer needed by their respective modules.
70341         * m4/obstack.m4: Remove.
70342         * m4/strerror_r.m4: Remove.
70343         * m4/uint32_t.m4: Remove.
70344         * m4/uintptr_t.m4: Remove.
70345         * m4/ullong_max.m4: Remove.
70346         * m4/xstrtoimax.m4: Remove.
70347         * m4/xstrtoumax.m4: Remove.
70348
70349         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70350         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70351         dependencies now capture this.
70352
70353         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70354         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70355         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70356         * m4/human.m4 (gl_HUMAN): Likewise.
70357         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70358         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70359
70360         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70361
70362         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70363         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70364         stdint.
70365         * m4/human.m4 (gl_HUMAN): Likewise.
70366         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70367         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70368         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70369         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70370         * m4/xstrtol (gl_XSTRTOL): Likewise.
70371
70372         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70373         AC_TYPE_LONG_LONG_INT.
70374         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70375         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70376         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70377         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70378
70379         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70380         on stdbool.
70381
70382         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70383         (gl_PREREQ_XSTRTOUL): Remove.
70384
70385         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70386
70387         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70388         mode.
70389
70390 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70391
70392         Add and change modules to make it easier for coreutils to use
70393         gnulib-tool.
70394         * modules/backupfile (Files): Remove m4/d-ino.m4.
70395         (Depends-on): Add d-ino.
70396         * modules/cycle-check (Depends-on): Add stdint.
70397         (lib_SOURCES): Add cycle-check.h.
70398         * modules/d-ino: New module.
70399         * modules/d-type: New module.
70400         * modules/error (Files): Remove m4/strerror_r.m4.
70401         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70402         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70403         m4/inttypes_h.m4, m4/uintmax_t.m4.
70404         (Depends-on): Add stdint.
70405         (lib_SOURCES): Add fsusage.h.
70406         * modules/getcwd (Files): Remove d-ino.m4.
70407         (Depends-on): Add d-ino.
70408         * modules/getndelim2 (Depends-on): Add stdint.
70409         * modules/glob (Files): Remove m4/d-type.m4.
70410         (Depends-on): Add d-type.
70411         * modules/host-os: New module.
70412         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70413         m4/inttypes_h.m4, m4/uintmax_t.m4.
70414         * Depends-on: Add stdint.
70415         (lib_SOURCES): Add human.h.
70416         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70417         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70418         m4/uintmax_t.m4, m4/ulonglong.m4.
70419         (Depends-on): Add stdint.
70420         (EXTRA_DIST): Add inttostr.h.
70421         * modules/lchmod: New module.
70422         * modules/link-follow: New module.
70423         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70424         (Depends-on): Add lchmod.
70425         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70426         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70427         (Depends-on): Add stdint.
70428         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70429         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70430         (Depends-on): Add stdint.
70431         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70432         * modules/perl: New module.
70433         * modules/regex (Depends-on): Add stdint.
70434         * modules/rmdir-errno: New module.
70435         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70436         m4/intmax_t.m4.
70437         (Depends-on): Add stdint.
70438         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70439         m4/uintmax_t.m4.
70440         (Depends-on): Add stdint.
70441         * modules/unlink-busy: New module.
70442         * modules/utimecmp (Depends-on): Add stdint.
70443         * modules/uptime: New module.
70444         * modules/winsz-ioctl: New module.
70445         * modules/winsz-termios: New module.
70446         * modules/xnanosleep (Depends-on): Add nanosleep.
70447         * modules/ullong_max: Remove.
70448         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70449         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70450         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70451         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70452         (Depends-on): Add inttypes.
70453         (lib_SOURCES): Add xstrtol.h.
70454         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70455         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70456         * MODULES.html.sh: Move 'assert' into the assert section.
70457         Move 'dummy' into the linking section.
70458         Remove ullong_max.
70459         Add section for compatibility checks for POSIX:2001 functions,
70460         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70461         winsz-ioctl, and winsz-termios into it.
70462         Add lchmod.
70463         Add top-level Misc section and put host-os, perl, and uptime
70464         into it.
70465
70466 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70467
70468         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70469         now assume the stdint module.  Do not include inttypes.h.
70470         * lib/fsusage.h: Likewise.
70471         * lib/getndelim2.c: Likewise.
70472         * lib/human.h: Likewise.
70473         * lib/inttostr.h: Likewise.
70474         * lib/obstack.c: Likewise.
70475         * lib/regex_internal.h: Likewise.
70476         * lib/tempname.c: Likewise.
70477         * lib/utimecmp.c: Likewise.
70478         * lib/xstrtol.h: Likewise.
70479
70480         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70481
70482         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70483         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70484         * lib/xtime.h: Likewise.
70485
70486 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70487
70488         * modules/openat (Files): Add lib/fchmodat.c.
70489         Fixes problem reported by Jay Youngman.
70490
70491 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70492
70493         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70494         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70495
70496 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70497             Bruno Haible  <bruno@clisp.org>
70498
70499         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70500         and is a script that invokes bison. Tighten the code. Add comments.
70501
70502 2006-08-18  Jim Meyering  <jim@meyering.net>
70503
70504         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70505         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70506         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70507         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70508
70509 2006-08-18  Bruno Haible  <bruno@clisp.org>
70510
70511         * modules/bison-i18n: New file.
70512         * MODULES.html.sh (Internationalization functions): Add it.
70513
70514 2006-08-18  Bruno Haible  <bruno@clisp.org>
70515
70516         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70517         sys/statvfs.h. When getmntinfo was found, check its declaration and
70518         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70519
70520 2006-08-18  Bruno Haible  <bruno@clisp.org>
70521
70522         * m4/bison-i18n.m4: New file, from bison.
70523
70524 2006-08-18  Bruno Haible  <bruno@clisp.org>
70525
70526         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70527         (ME_DUMMY): Treat "kernfs" as a dummy.
70528         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70529
70530 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70531
70532         Update from coreutils.
70533
70534         2006-08-15  Jim Meyering  <jim@meyering.net>
70535
70536         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70537
70538         2006-01-17  Jim Meyering  <jim@meyering.net>
70539
70540         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70541
70542         2006-01-11  Jim Meyering  <jim@meyering.net>
70543
70544         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70545         Check for the lchmod function.
70546
70547 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70548
70549         Update from coreutils.
70550
70551         * lib/__fpending.h: Add copyright notice.
70552         * lib/fprintftime.h: Likewise.
70553         * lib/savedir.c: Use (C) in copyright notice.
70554         * lib/savedir.h: Likewise.
70555
70556         2006-08-15  Jim Meyering  <jim@meyering.net>
70557
70558         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70559         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70560         in support of the EXPECTED_ERRNO macro.
70561         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70562         definitions.  Instead, define the appropriate symbols and include
70563         "at-func.c".
70564         * lib/mkdirat.c (mkdirat): Likewise.
70565         * lib/fchmodat.c (fchmodat): Likewise.
70566         (ENOSYS): Remove definition.
70567         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70568         it.  Don't include "unistd--.h" -- it wasn't ever used.
70569
70570         2006-01-17  Jim Meyering  <jim@meyering.net>
70571
70572         Rewrite fts.c not to change the current working directory,
70573         by using openat, fstatat, fdopendir, etc..
70574
70575         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70576         (HAVE_OPENAT_SUPPORT): Define.
70577         [_LIBC] (fchdir): Don't undef or define; no longer used.
70578         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70579         Now, this `function' always succeeds, and consumes its file descriptor
70580         parameter -- so callers must not close such FDs.  Update callers.
70581         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70582         (diropen): Add parameter, SP.  Adjust all callers.
70583         Implement using diropen_fd, rather than open.
70584         (fts_open): Initialize new member, fts_cwd_fd.
70585         Remove fts_rft-setting code.
70586         (fts_close): Close fts_cwd_fd, if necessary.
70587         (__opendir2): Define in terms of opendir or opendirat,
70588         depending on whether the FST_NOCHDIR flag is set.
70589         (fts_build): Since fts_safe_changedir consumes its FD, and since
70590         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70591         and close the dup'd file descriptor upon failure.
70592         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70593         (fts_safe_changedir): Tweak semantics to reflect that this function
70594         now calls cwd_advance_fd and hence consumes its FD argument.
70595         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70596         [struct FTS] (fts_rft): Remove now-unused member.
70597         [struct FTS] (fts_cycle.state): Improve comment.
70598
70599         * lib/openat.c (openat_needs_fchdir): New function.
70600         * lib/openat.h (openat_needs_fchdir): Declare it.
70601
70602 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70603
70604         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70605         Problem and fix reported by Pádraig Brady in
70606         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70607
70608 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70609
70610         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70611
70612 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70613
70614         * lib/memcoll.c (memcoll): Optimize for the common case where the
70615         arguments are bytewise equal.
70616
70617 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70618
70619         * doc/regexprops-generic.texi: Add a copyright notice.
70620
70621 2006-08-15  Bruno Haible  <bruno@clisp.org>
70622
70623         * modules/tmpdir (License): Change to LGPL.
70624
70625 2006-08-15  Bruno Haible  <bruno@clisp.org>
70626
70627         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70628         module.
70629
70630 2006-08-14  Simon Josefsson  <jas@extundo.com>
70631
70632         * config/srclist.txt: Add gnupload.
70633
70634 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70635
70636         Change copyright notice from LGPL 2 to GPL 2, since that's the
70637         standard form used in the gnulib repository.
70638         * tests/test-lock.c: Likewise.
70639         * tests/test-stdint.c: Likewise.
70640         * tests/test-tls.c: Likewise.
70641
70642         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70643         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70644         Add copyright notice.
70645
70646         * check-module: Add copyright notice.  Output a copyright
70647         notice if "--version" is specified.
70648         * modules/COPYING: New file.
70649         * tests/test-getaddrinfo.c: Add copyright notice.
70650         * tests/test-verify.c: Likewise.
70651
70652 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70653
70654         Change copyright notice from LGPL 2 to GPL 2, since that's the
70655         standard form used in the gnulib repository.
70656         * lib/lock.c: LGPL -> GPL.
70657         * lib/lock.h: Likewise.
70658         * lib/strnlen1.c: Likewise.
70659         * lib/strnlen1.h: Likewise.
70660         * lib/tls.c: Likewise.
70661         * lib/tls.h: Likewise.
70662         * lib/tmpdir.c: Likewise.
70663
70664         * lib/TODO: Remove; this belongs only in coreutils.
70665
70666 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70667
70668         Add copyright notices to long-enough files that lack them, since
70669         otherwise the files aren't clearly free.  Use the same notice that
70670         getdate.texi already uses.
70671         * doc/alloca-opt.texi: Add copyright notice.
70672         * doc/alloca.texi: Likewise.
70673         * doc/ctime.texi: Likewise.
70674         * doc/functions.texi: Likewise.
70675         * doc/gcd.texi: Likewise.
70676         * doc/gnulib-tool.texi: Likewise.
70677         * doc/inet_ntoa.texi: Likewise.
70678         * doc/visibility.texi: Likewise.
70679
70680         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70681         * doc/quote.texi: Add copyright notice.
70682
70683         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70684         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70685         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70686         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70687         is now obsolete, and give a pointer to the Sun list.
70688         Add copyright notice.
70689
70690 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70691
70692         * config/srclistvars.sh: Add copyright notice.
70693
70694 2006-08-14  Eric Blake  <ebb9@byu.net>
70695
70696         Import the following change from libc:
70697
70698         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70699
70700         Upstream bug 2997.
70701         * lib/misc/error.c: Add space between program name and message if file
70702         name is missing.
70703
70704 2006-08-12  Karl Berry  <karl@gnu.org>
70705
70706         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70707         remove, these originate in gnulib now.
70708
70709 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70710
70711         * doc/Makefile (standards.info standards.html standards.dvi):
70712         Also depend on make-stds.texi.
70713
70714 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70715
70716         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70717         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70718
70719         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70720         in wchar_t.  Problem reported by Eric Blake.
70721
70722         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70723         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70724         Also, help the compiler to keep LEN in a register.
70725
70726 2006-08-11  Eric Blake  <ebb9@byu.net>
70727
70728         * users.txt: Sort.  Add tar.
70729
70730 2006-08-11  Bruno Haible  <bruno@clisp.org>
70731
70732         * users.txt: New file.
70733
70734 2006-08-11  Bruno Haible  <bruno@clisp.org>
70735
70736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70737         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70738
70739 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70740
70741         * modules/snprintf (Depends-on): Remove minmax.
70742         (Maintainer): Add self and Bruno.
70743
70744 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70745
70746         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70747         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70748         (EOVERFLOW): Define if the system does not.
70749         Do not include "minmax.h"; it wasn't used.
70750         (snprintf): Don't assume size_t promotes to an unsigned type.
70751         Fix bug when generated string was too long for the buffer: the
70752         buffer's contents are supposed to be the initial prefix of the
70753         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70754         exceeds INT_MAX; do the check ourselves.
70755
70756         Import the following changes from libc:
70757
70758         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70759
70760         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70761         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70762         set wc to the byte which couldn't be converted.
70763         (re_string_reconstruct): Don't clear valid_raw_len before calling
70764         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70765         tip_context using re_string_context_at.
70766
70767         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70768
70769         * lib/posix/regex.h: g++ still cannot handled [restrict].
70770
70771         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70772
70773         * lib/posix/regex.h: Remove special handling for VMS.
70774
70775 2006-08-10  Jim Meyering  <jim@meyering.net>
70776
70777         * modules/same-inode: New module.
70778         * modules/dev-ino: New module.
70779         * modules/cycle-check: Depend on these modules, rather than simply
70780         including their .h files.
70781         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70782         required via m4/cycle-check.m4.
70783         * modules/same: Depend on new same-inode module, rather than
70784         including same-inode.h.
70785         * modules/chdir-safer: New file.
70786
70787         * modules/chown (Depends-on): Add stat-macros.
70788
70789 2006-08-10  Jim Meyering  <jim@meyering.net>
70790
70791         * m4/cycle-check.m4: New file.
70792         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70793         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70794
70795 2006-08-10  Eric Blake  <ebb9@byu.net>
70796
70797         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70798         in from original proposal.
70799
70800 2006-08-10  Eric Blake  <ebb9@byu.net>
70801         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70802
70803         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70804         namespace.
70805
70806 2006-08-10  Bruno Haible  <bruno@clisp.org>
70807
70808         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70809         as well.
70810
70811 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70812
70813         Sync from coreutils.
70814
70815         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70816
70817         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70818         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70819
70820 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * modules/restrict: Remove; no longer needed now that we assume
70823         Autoconf 2.59 or later.
70824         * MODULES.html.sh: Remove 'restrict'.
70825         * modules/argp (Depends-on): Remove 'restrict'.
70826         * modules/base64 (Depends-on): Likewise.
70827         * modules/gc (Depends-on): Likewise.
70828         * modules/getaddrinfo (Depends-on): Likewise.
70829         * modules/glob (Depends-on): Likewise.
70830         * modules/inet_ntop (Depends-on): Likewise.
70831         * modules/inet_pton (Depends-on): Likewise.
70832         * modules/memxor (Depends-on): Likewise.
70833         * modules/regex (Depends-on): Likewise.
70834         * modules/strtok_r (Depends-on): Likewise.
70835         * modules/time_r (Depends-on): Likewise.
70836
70837 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70840         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70841         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70842         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70843         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70844         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70845         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70846         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70847
70848         Merge from coreutils.
70849         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70850         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70851         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70852         * m4/time_r.m4 (gl_TIME_R): Likewise.
70853
70854 2006-08-09  Karl Berry  <karl@gnu.org>
70855
70856         * config/srclist.txt: no more gettext-tools, per Bruno.
70857
70858 2006-08-08  Eric Blake  <ebb9@byu.net>
70859
70860         * modules/verror: New module.
70861         * MODULES.html.sh: Document it.
70862
70863 2006-08-08  Eric Blake  <ebb9@byu.net>
70864
70865         * lib/verror.h, lib/verror.c: New files.
70866
70867 2006-08-08  Eric Blake  <ebb9@byu.net>
70868
70869         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70870         verror_at_line output complies with GNU Coding Standards even when
70871         file is NULL.
70872
70873 2006-08-07  Bruno Haible  <bruno@clisp.org>
70874
70875         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70876         versions of AIX.
70877         Reported by Ralf Wildenhues.
70878
70879 2006-08-07  Bruno Haible  <bruno@clisp.org>
70880
70881         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70882         in an AC_DEFUN. Needed so that the autoconf snippets can use
70883         AC_REQUIRE.
70884
70885 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70886
70887         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70888         Initialize pkgdata_DATA.
70889         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70890         overriding it.
70891
70892 2006-08-06  Eric Blake  <ebb9@byu.net>
70893
70894         * lib/error.h: Fold in some upstream changes from glibc.
70895         * lib/error.c: Likewise.
70896
70897 2006-08-04  Bruno Haible  <bruno@clisp.org>
70898
70899         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70900         Make the mostlyclean-local rule depend on mostlyclean-generic.
70901         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70902
70903 2006-07-31  Bruno Haible  <bruno@clisp.org>
70904
70905         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70906         <stdlib.h>, <string.h>.
70907
70908 2006-07-30  Bruno Haible  <bruno@clisp.org>
70909
70910         * modules/readlink (License): Change to LGPL.
70911
70912 2006-07-30  Bruno Haible  <bruno@clisp.org>
70913
70914         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70915         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70916         set PKGDATADIR to point to it.
70917
70918 2006-07-30  Bruno Haible  <bruno@clisp.org>
70919
70920         * modules/csharpexec (configure.ac): Comment out macro invocation.
70921         * modules/javaexec (configure.ac): Likewise.
70922         * modules/javacomp-script (configure.ac): Likewise.
70923
70924         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70925
70926 2006-07-30  Bruno Haible  <bruno@clisp.org>
70927
70928         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70929         linked-list.
70930
70931 2006-07-30  Bruno Haible  <bruno@clisp.org>
70932
70933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70934
70935 2006-07-30  Bruno Haible  <bruno@clisp.org>
70936
70937         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70938         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70939         get removed.
70940
70941 2006-07-29  Bruno Haible  <bruno@clisp.org>
70942
70943         Make it possible for gnulib-tool to work with locally modified or
70944         augmented gnulib repositories.
70945         * gnulib-tool (func_usage): Document --local-dir option.
70946         (local_gnulib_dir): New variable.
70947         Handle --local-dir option.
70948         (func_lookup_file): New function.
70949         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70950         (func_get_description, func_get_filelist, func_get_description,
70951         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70952         func_get_automake_snippet, func_get_include_directive,
70953         func_get_license, func_get_maintainer): Use func_lookup_file.
70954         (func_import, func_create_testdir): Use func_lookup_file.
70955
70956 2006-07-29  Bruno Haible  <bruno@clisp.org>
70957
70958         * modules/setenv (Depends-on): Add unistd.
70959
70960 2006-07-29  Bruno Haible  <bruno@clisp.org>
70961
70962         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70963
70964 2006-07-29  Bruno Haible  <bruno@clisp.org>
70965
70966         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70967
70968 2006-07-29  Bruno Haible  <bruno@clisp.org>
70969
70970         * gnulib-tool (import, update): If there is no Makefile.am, look at
70971         aclocal.m4, instead of bailing out.
70972
70973 2006-07-29  Bruno Haible  <bruno@clisp.org>
70974
70975         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70976         Categorize the options by when they are useful.
70977
70978 2006-07-29  Bruno Haible  <bruno@clisp.org>
70979
70980         * gnulib-tool (func_usage): Document option --no-libtool.
70981         Handle option --no-libtool.
70982         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70983         for changed semantics of $libtool variable.
70984         (func_import): Likewise. If libtool is not used, show this through
70985         an option --no-libtool.
70986         (func_create_testdir): Update.
70987
70988 2006-07-29  Bruno Haible  <bruno@clisp.org>
70989
70990         * gnulib-tool (func_import): Extend error message about missing
70991         --doc-base.
70992
70993 2006-07-29  Bruno Haible  <bruno@clisp.org>
70994
70995         * gnulib-tool (func_import): Don't create the $docbase directory if
70996         there is no file to store there.
70997
70998 2006-07-29  Bruno Haible  <bruno@clisp.org>
70999
71000         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71001         relevant, look for configure.ac there, not in the current directory.
71002         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71003
71004 2006-07-29  Bruno Haible  <bruno@clisp.org>
71005
71006         * gnulib-tool (SORT): New variable.
71007         (func_usage): Undocument --assume-autoconf option.
71008         Remove --assume-autoconf option handling.
71009         (autoconf_minversion): Determine from the contents of configure.ac.
71010         (func_import): Remove autoconf_minversion handling.
71011         Suggested by Eric Blake.
71012
71013 2006-07-29  Bruno Haible  <bruno@clisp.org>
71014
71015         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71016
71017 2006-07-29  Bruno Haible  <bruno@clisp.org>
71018
71019         * config/srclist.txt (*setenv.[ch]): Remove rules.
71020
71021 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71022
71023         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71024
71025 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71026
71027         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71028         arpa/inet.h.
71029
71030 2006-07-28  Simon Josefsson  <jas@extundo.com>
71031
71032         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71033         * modules/inet_pton (Depends-on): Likewise.
71034
71035 2006-07-28  Simon Josefsson  <jas@extundo.com>
71036
71037         * m4/netinet_in_h.m4: New file.
71038
71039 2006-07-28  Simon Josefsson  <jas@extundo.com>
71040
71041         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71042         #include's.
71043
71044 2006-07-28  Simon Josefsson  <jas@extundo.com>
71045
71046         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71047         #include's.
71048
71049 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71050
71051         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71052         setgid on directories only if they set these bits.
71053         * lib/modechange.h: Remove obsolete comment about masks.
71054
71055 2006-07-28  Eric Blake  <ebb9@byu.net>
71056
71057         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71058         macro expansion.
71059
71060 2006-07-28  Bruno Haible  <bruno@clisp.org>
71061
71062         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71063
71064 2006-07-28  Bruno Haible  <bruno@clisp.org>
71065
71066         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71067
71068 2006-07-28  Bruno Haible  <bruno@clisp.org>
71069
71070         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71071         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71072         Define fallbacks.
71073         Avoids link error on FreeBSD 4.x.
71074         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71075
71076         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71077         encoding.
71078         * lib/mbswidth.c (iswcntrl): Likewise.
71079
71080 2006-07-27  Bruno Haible  <bruno@clisp.org>
71081
71082         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71083         test.
71084
71085 2006-07-27  Bruno Haible  <bruno@clisp.org>
71086
71087         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71088         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71089         defined.
71090
71091 2006-07-26  Eric Blake  <ebb9@byu.net>
71092
71093         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71094
71095 2006-07-26  Eric Blake  <ebb9@byu.net>
71096
71097         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71098         like mingw that lack mkstemp.
71099         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71100         avoid compilation warning on mingw.
71101
71102 2006-07-26  Bruno Haible  <bruno@clisp.org>
71103
71104         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71105         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71106         INT_FAST*_MIN, INTPTR_MIN.
71107
71108 2006-07-25  Bruno Haible  <bruno@clisp.org>
71109
71110         * modules/version-etc (Depends-on): Add stdarg.
71111
71112 2006-07-25  Bruno Haible  <bruno@clisp.org>
71113
71114         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71115         complex commands.
71116
71117 2006-07-25  Bruno Haible  <bruno@clisp.org>
71118
71119         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71120         defined in <stdarg.h> or config.h.
71121
71122 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71123
71124         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71125         (gl_STDIO_SAFER): Remove.
71126
71127 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71128
71129         * MODULES.html.sh (File stream based Input/Output):
71130         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71131         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71132         * modules/fopen-safer, modules/tmpfile-safer: New files.
71133         * modules/stdio-safer: Remove.
71134
71135 2006-07-24  Bruno Haible  <bruno@clisp.org>
71136
71137         * modules/tmpdir: New file.
71138         * MODULES.html.sh (File system functions): Add it.
71139
71140 2006-07-24  Bruno Haible  <bruno@clisp.org>
71141
71142         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71143         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71144
71145 2006-07-24  Bruno Haible  <bruno@clisp.org>
71146
71147         * modules/clean-temp: New file.
71148
71149 2006-07-24  Bruno Haible  <bruno@clisp.org>
71150
71151         * m4/tmpdir.m4: New file, from GNU gettext.
71152
71153 2006-07-24  Bruno Haible  <bruno@clisp.org>
71154
71155         * lib/tmpdir.h: New file, from GNU gettext.
71156         * lib/tmpdir.c: New file, from GNU gettext.
71157
71158 2006-07-24  Bruno Haible  <bruno@clisp.org>
71159
71160         * lib/clean-temp.h: New file, from GNU gettext.
71161         * lib/clean-temp.c: New file, from GNU gettext.
71162
71163 2006-07-23  Eric Blake  <ebb9@byu.net>
71164
71165         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71166         (Depends-on): Add binary-io.
71167
71168 2006-07-23  Eric Blake  <ebb9@byu.net>
71169
71170         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71171
71172 2006-07-23  Eric Blake  <ebb9@byu.net>
71173
71174         * lib/tmpfile-safer.c: New file.
71175         * lib/stdio-safer.h (fopen_safer): Add prototype.
71176         * lib/stdio--.h (tmpfile): Make safer.
71177
71178 2006-07-23  Bruno Haible  <bruno@clisp.org>
71179
71180         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71181         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71182         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71183         gl_linked_remove_at): Use it.
71184
71185 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71186         and Simon Josefsson <jas@extundo.com>
71187
71188         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71189
71190         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71191
71192 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71193
71194         * modules/close-stream: New file.
71195         * modules/closeout (Description): Make it clear that it exits
71196         with a diagnostic on error.
71197         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71198         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71199
71200 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71201
71202         * m4/close-stream.m4: New file.
71203
71204 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71205
71206         * lib/close-stream.c, lib/close-stream.h: New files.
71207
71208 2006-07-22  Bruno Haible  <bruno@clisp.org>
71209
71210         Merge from GNU gettext 0.15.
71211
71212         2006-05-01  Bruno Haible  <bruno@clisp.org>
71213
71214                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71215
71216         2006-07-22  Bruno Haible  <bruno@clisp.org>
71217
71218                 * modules/javaversion: New file.
71219                 * MODULES.html.sh (Java): Add javaversion.
71220
71221         2006-03-12  Bruno Haible  <bruno@clisp.org>
71222
71223                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71224
71225         2005-12-04  Bruno Haible  <bruno@clisp.org>
71226
71227                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71228                 (untested).
71229
71230         2006-06-21  Bruno Haible  <bruno@clisp.org>
71231
71232                 Avoid warnings from recent versions of mcs.
71233                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71234                 -o, -L, -r any more. Use options documented since mcs-1.0
71235                 instead. Similarly for -g.
71236
71237         2005-12-04  Bruno Haible  <bruno@clisp.org>
71238
71239                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71240                 .resources, not .resource.
71241
71242         2005-07-09  Bruno Haible  <bruno@clisp.org>
71243
71244                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71245                 add a .dll suffix.
71246                 Reported by Mark Junker <mjscod@gmx.de>.
71247
71248         2006-07-22  Bruno Haible  <bruno@clisp.org>
71249
71250                 * modules/gettext: Upgrade to gettext-0.15.
71251                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71252                 m4/visibility.m4.
71253                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71254
71255 2006-07-22  Bruno Haible  <bruno@clisp.org>
71256
71257         Merge from GNU gettext 0.15.
71258
71259         2006-03-25  Bruno Haible  <bruno@clisp.org>
71260
71261                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71262
71263         2006-07-21  Bruno Haible  <bruno@clisp.org>
71264
71265                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71266                 "1.1".
71267
71268         2006-05-09  Bruno Haible  <bruno@clisp.org>
71269
71270                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71271                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71272                 for the conftestver execution.
71273
71274         2006-05-01  Bruno Haible  <bruno@clisp.org>
71275
71276                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71277                 optional target-version argument. Verify that the compiler
71278                 groks source of the specified source-version, or add -source
71279                 option as necessary. Verify that the compiler produces
71280                 bytecode in the specified target-version, or add -target and
71281                 -source options as necessary. Make the result of the test
71282                 available as variable CONF_JAVAC. Also log error output in
71283                 config.log.
71284
71285         2006-03-11  Bruno Haible  <bruno@clisp.org>
71286
71287                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71288
71289         2006-05-09  Bruno Haible  <bruno@clisp.org>
71290
71291                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71292                 CLASSPATH_SEPARATOR to a semicolon.
71293
71294         2006-03-12  Bruno Haible  <bruno@clisp.org>
71295
71296                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71297                 available as variable CONF_JAVA, for subsequent autoconf
71298                 tests. Also log error output in config.log.
71299
71300         2006-07-19  Bruno Haible  <bruno@clisp.org>
71301
71302                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71303                 that getline works on glibc2 systems. Needed to avoid trouble
71304                 in relocatable.c.
71305                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71306
71307         2005-12-04  Bruno Haible  <bruno@clisp.org>
71308
71309                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71310                 launcher (untested).
71311
71312         2005-12-04  Bruno Haible  <bruno@clisp.org>
71313
71314                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71315
71316         2006-07-22  Bruno Haible  <bruno@clisp.org>
71317
71318                 * gettext.m4: Update from GNU gettext-0.15.
71319                 * nls.m4: Likewise.
71320                 * po.m4: Likewise.
71321                 * inttypes-pri.m4: Likewise.
71322                 * inttypes-h.m4: Renamed from inttypes.m4.
71323                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71324
71325 2006-07-22  Bruno Haible  <bruno@clisp.org>
71326
71327         Merge from GNU gettext 0.15.
71328
71329         2005-07-05  Bruno Haible  <bruno@clisp.org>
71330
71331                 * printf-args.c (printf_fetchargs): Work around broken
71332                 definition of wint_t on mingw.
71333
71334         2005-02-12  Bruno Haible  <bruno@clisp.org>
71335
71336                 * xallocsa.h: Add extern "C" for C++.
71337
71338         2006-05-17  Bruno Haible  <bruno@clisp.org>
71339
71340                 Cygwin portability.
71341                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71342
71343         2006-04-30  Bruno Haible  <bruno@clisp.org>
71344
71345                 * progreloc.c: Include <mach-o/dyld.h> if available.
71346                 (find_executable): Use _NSGetExecutablePath when possible.
71347
71348         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71349
71350                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71351                 function.
71352
71353         2005-12-29  Bruno Haible  <bruno@clisp.org>
71354
71355                 * progreloc.c (set_program_name_and_installdir): Fix
71356                 compilation error.
71357
71358         2005-12-04  Bruno Haible  <bruno@clisp.org>
71359
71360                 Cygwin portability.
71361                 * progreloc.c: Include <windows.h> also on Cygwin.
71362                 (find_executable): Add support for Cygwin.
71363                 (set_program_name_and_installdir): Handle also platforms with
71364                 nonempty EXEEXT.
71365
71366         2006-07-11  Bruno Haible  <bruno@clisp.org>
71367
71368                 * javacomp.c: Fix a comment.
71369                 Reported by Jim Meyering.
71370
71371         2006-04-30  Bruno Haible  <bruno@clisp.org>
71372
71373                 * javacomp.h (compile_java_class): Add source_version,
71374                 target_version arguments.
71375                 * javacomp.c: Rewritten to choose only a compiler that
71376                 respects the specified source_version and target_version.
71377
71378         2006-06-27  Bruno Haible  <bruno@clisp.org>
71379
71380                 Assume correct S_ISDIR macro.
71381                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71382
71383         2006-07-22  Bruno Haible  <bruno@clisp.org>
71384
71385                 * javaversion.h: New file, from GNU gettext.
71386                 * javaversion.c: New file, from GNU gettext.
71387                 * javaversion.java: New file, from GNU gettext.
71388                 * javaversion.class: New file, from GNU gettext.
71389
71390         2006-05-17  Bruno Haible  <bruno@clisp.org>
71391
71392                 Cygwin portability.
71393                 * javaexec.c (execute_java_class): Test for jview program
71394                 also on Cygwin.
71395
71396         2006-04-09  Bruno Haible  <bruno@clisp.org>
71397
71398                 * fatal-signal.c: Don't include string.h.
71399                 (at_fatal_signal): Use a copying loop instead of memcpy.
71400
71401         2005-12-04  Bruno Haible  <bruno@clisp.org>
71402
71403                 * csharpexec.c: Add support for 'clix' launcher (untested).
71404                 (execute_csharp_using_sscli): New function.
71405                 (execute_csharp_program): Call it.
71406
71407         2006-06-21  Bruno Haible  <bruno@clisp.org>
71408
71409                 Avoid warnings from recent versions of mcs.
71410                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71411                 -o, -L, -r any more. Use options documented since mcs-1.0
71412                 instead. Similarly for -g.
71413
71414         2005-07-09  Bruno Haible  <bruno@clisp.org>
71415
71416                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71417                 add a .dll suffix.
71418                 Reported by Mark Junker <mjscod@gmx.de>.
71419
71420         2006-06-17  Bruno Haible  <bruno@clisp.org>
71421
71422                 * config.charset: Update for NetBSD 3.0.
71423
71424         2006-05-17  Bruno Haible  <bruno@clisp.org>
71425
71426                 Cygwin portability.
71427                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71428
71429         2006-05-16  Bruno Haible  <bruno@clisp.org>
71430
71431                 * localcharset.c [CYGWIN]: Include <windows.h>.
71432                 (get_charset_aliases): For Cygwin, return the same CPxxx
71433                 aliases list as under WIN32.
71434                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71435                 the environment variables. Fall back to GetACP().
71436
71437         2006-04-05  Bruno Haible  <bruno@clisp.org>
71438
71439                 * config.charset: Update Juan Manuel Guerrero's address.
71440
71441         2005-02-12  Bruno Haible  <bruno@clisp.org>
71442
71443                 * allocsa.h: Add extern "C" for C++.
71444
71445         2005-02-10  Bruno Haible  <bruno@clisp.org>
71446
71447                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71448                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71449
71450         2006-07-22  Bruno Haible  <bruno@clisp.org>
71451
71452                 * gettext.h: Update to GNU gettext-0.15.
71453
71454 2006-07-22  Bruno Haible  <bruno@clisp.org>
71455
71456         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71457         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71458         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71459
71460 2006-07-21  Eric Blake  <ebb9@byu.net>
71461
71462         * modules/stdlib-safer: New file.
71463         * MODULES.html.sh (File stream based Input/Output): Add
71464         stdlib-safer.
71465
71466 2006-07-21  Eric Blake  <ebb9@byu.net>
71467
71468         * lib/stdlib-safer.h: New file from coreutils, required by
71469         stdlib--.h.
71470
71471 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71472
71473         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71474
71475 2006-07-20  Bruno Haible  <bruno@clisp.org>
71476
71477         * gnulib-tool: Recognize new option --assume-autoconf.
71478         (autoconf_minversion): New variable.
71479         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71480
71481 2006-07-20  Bruno Haible  <bruno@clisp.org>
71482
71483         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71484
71485 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71486
71487         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71488         Reindent and repaginate.
71489
71490 2006-07-19  Derek Price  <derek@ximbiot.com>
71491
71492         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71493         Correct grammar.
71494
71495 2006-07-17  Bruno Haible  <bruno@clisp.org>
71496
71497         * modules/list: New file.
71498         * modules/array-list: New file.
71499         * modules/carray-list, modules/carray-list-tests: New files.
71500         * modules/linked-list, modules/linked-list-tests: New files.
71501         * modules/avltree-list, modules/avltree-list-tests: New files.
71502         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71503         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71504         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71505         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71506         * modules/oset: New file.
71507         * modules/array-oset: New file.
71508         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71509         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71510         * tests/test-carray_list.c: New file.
71511         * tests/test-linked_list.c: New file.
71512         * tests/test-avltree_list.c: New file.
71513         * tests/test-rbtree_list.c: New file.
71514         * tests/test-linkedhash_list.c: New file.
71515         * tests/test-avltreehash_list.c: New file.
71516         * tests/test-rbtreehash_list.c: New file.
71517         * tests/test-avltree_oset.c: New file.
71518         * tests/test-rbtree_oset.c: New file.
71519         * MODULES.html.sh (Container data structures): New section.
71520
71521 2006-07-17  Bruno Haible  <bruno@clisp.org>
71522
71523         * m4/gl_list.m4: New file.
71524
71525 2006-07-17  Bruno Haible  <bruno@clisp.org>
71526
71527         * lib/gl_list.h: New file.
71528         * lib/gl_list.c: New file.
71529         * lib/gl_array_list.h: New file.
71530         * lib/gl_array_list.c: New file.
71531         * lib/gl_carray_list.h: New file.
71532         * lib/gl_carray_list.c: New file.
71533         * lib/gl_linked_list.h: New file.
71534         * lib/gl_linked_list.c: New file.
71535         * lib/gl_anylinked_list1.h: New file.
71536         * lib/gl_anylinked_list2.h: New file.
71537         * lib/gl_avltree_list.h: New file.
71538         * lib/gl_avltree_list.c: New file.
71539         * lib/gl_anyavltree_list1.h: New file.
71540         * lib/gl_anyavltree_list2.h: New file.
71541         * lib/gl_rbtree_list.h: New file.
71542         * lib/gl_rbtree_list.c: New file.
71543         * lib/gl_anyrbtree_list1.h: New file.
71544         * lib/gl_anyrbtree_list2.h: New file.
71545         * lib/gl_anytree_list1.h: New file.
71546         * lib/gl_anytree_list2.h: New file.
71547         * lib/gl_linkedhash_list.h: New file.
71548         * lib/gl_linkedhash_list.c: New file.
71549         * lib/gl_anyhash_list1.h: New file.
71550         * lib/gl_anyhash_list2.h: New file.
71551         * lib/gl_avltreehash_list.h: New file.
71552         * lib/gl_avltreehash_list.c: New file.
71553         * lib/gl_rbtreehash_list.h: New file.
71554         * lib/gl_rbtreehash_list.c: New file.
71555         * lib/gl_anytreehash_list1.h: New file.
71556         * lib/gl_anytreehash_list2.h: New file.
71557
71558         * lib/gl_oset.h: New file.
71559         * lib/gl_oset.c: New file.
71560         * lib/gl_array_oset.h: New file.
71561         * lib/gl_array_oset.c: New file.
71562         * lib/gl_avltree_oset.h: New file.
71563         * lib/gl_avltree_oset.c: New file.
71564         * lib/gl_rbtree_oset.h: New file.
71565         * lib/gl_rbtree_oset.c: New file.
71566         * lib/gl_anytree_oset.h: New file.
71567
71568 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         * m4/mkancesdirs.m4: New file.
71571         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71572         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71573         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71574         it.
71575
71576 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71577
71578         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71579         * lib/mkancesdirs.h: New files.
71580         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71581         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71582         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71583         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71584         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71585         callers changed.  Revamp internals significantly, by not
71586         attempting to create directories that are temporarily more
71587         permissive than the final results.  Do not attempt to use
71588         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71589         This removes some race conditions, fixes some bugs, and simplifies
71590         things.  Use new dirchownmod function to do owner and mode changes.
71591         * lib/mkdir-p.h: Likewise.
71592         * lib/modechange.c (octal_to_mode): New function.
71593         (struct mode_change): New member mentioned.
71594         (make_node_op_equals): New arg mentioned.  All callers changed.
71595         (mode_compile): Keep track of which mode bits the user has explicitly
71596         mentioned.
71597         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71598         New arg PMODE_BITS, to keep track of which mode bits the user
71599         mentioned; it treats S_ISUID and S_ISGID speciall.
71600         All callers changed.
71601         * lib/modechange.h: Likewise.
71602
71603 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71604
71605         * MODULES.html.sh: Add mkancestors.
71606         * modules/mkancesdirs: New module.
71607         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71608         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71609         The chdir-safer and afs files are now orphans; I'll remove them
71610         unless someone speaks up.
71611         Add lib/dirchownmod.c, lib/dirchownmod.h.
71612         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71613         Add lchown, mkancesdirs.
71614         (Maintainer): Add self.
71615
71616 2006-07-15  Karl Berry  <karl@gnu.org>
71617
71618         * gnulib-tool: help message wording/arrangement.
71619
71620 2006-07-14  Simon Josefsson  <jas@extundo.com>
71621
71622         * doc/gnulib.texi (Libtool and Windows): New section.
71623
71624 2006-07-12  Simon Josefsson  <jas@extundo.com>
71625
71626         * modules/gendocs (License): Fix license, approved by Karl.
71627
71628 2006-07-12  Eric Blake  <ebb9@byu.net>
71629
71630         * MODULES.html.sh: Add gendocs.
71631
71632 2006-07-11  Eric Blake  <ebb9@byu.net>
71633
71634         * modules/fdl: New module, to install doc/fdl.texi.
71635         * MODULES.html.sh: Add new section for documentation modules.
71636         * gnulib-tool: Avoid space-tab.
71637         (--doc-base): New option, to manage files from doc.
71638
71639 2006-07-11  Eric Blake  <ebb9@byu.net>
71640
71641         * m4/absolute-header.m4: Fix comments to match recent change.
71642
71643 2006-07-11  Eric Blake  <ebb9@byu.net>
71644
71645         * gnulib-tool: List --doc-base before --tests-base.
71646
71647 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71648
71649         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71650
71651 2006-07-11  Bruno Haible  <bruno@clisp.org>
71652
71653         * README: Mention where to put documentation.
71654
71655 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71656
71657         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71658
71659 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71660
71661         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71662         to stdint.m4.
71663
71664 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71665
71666         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71667         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71668         "no/such/file/stdint.h" when there is no such file, so that
71669         the resulting C code can be parsed by dodgy compilers.
71670         Problems reported by Bob Proulx.
71671
71672 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71673
71674         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71675         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71676         macros into the GNU _D_EXACT_NAMLEN.
71677         * lib/savedir.c:  Likewise.
71678         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71679
71680 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71681         and Paul Eggert  <eggert@cs.ucla.edu>
71682
71683         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71684         * m4/savedir.m4:
71685         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71686         macros into the GNU _D_EXACT_NAMLEN.
71687
71688 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71689
71690         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71691         around the absolute name, to work around a problem with the HP-UX
71692         11.23 native C compiler, reported by Bob Proulx.
71693
71694 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71695
71696         * doc/maintain.texi, make-stds.texi: Sync from
71697         <http://savannah.gnu.org/projects/gnustandards>.
71698
71699 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71700
71701         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71702
71703 2006-07-09  Jim Meyering  <jim@meyering.net>
71704
71705         * m4/glob.m4: Remove a doubled word in a comment.
71706
71707 2006-07-09  Jim Meyering  <jim@meyering.net>
71708
71709         * lib/argp-pv.c: Remove a doubled word in a comment.
71710         * lib/check-version.c (check_version): Likewise.
71711         * lib/javacomp.c (compile_java_class): Likewise.
71712
71713 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71714
71715         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71716         for the benefit of people using Autoconf 2.60.  If you want to
71717         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71718         (or m4/onceonly.m4, if pre-2.57) manually.
71719
71720 2006-07-08  Jim Meyering  <jim@meyering.net>
71721
71722         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71723         comment.
71724         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71725         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71726         comment.
71727
71728 2006-07-08  Jim Meyering  <jim@meyering.net>
71729
71730         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71731
71732 2006-07-07  Simon Josefsson  <jas@extundo.com>
71733
71734         * tests/test-crc.c: Change expected crc value, the test vector
71735         were probably computed using the old broken crc.c?
71736
71737 2006-07-06  Simon Josefsson  <jas@extundo.com>
71738
71739         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71740         now the canonical place for the M4 file).
71741
71742         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71743         from the sys_socket dependency now.
71744
71745         * modules/inet_pton (Files): Ditto.
71746
71747         * modules/inet_ntop (Files): Ditto.
71748
71749 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71750
71751         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71752         not gl_PREREQ_GETUSERSHELL.
71753
71754 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71755
71756         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71757         with only one argument, for Autoconf 2.60.
71758         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71759         expand to nothing, so add a shell command to avoid syntax error.
71760         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71761
71762 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71763
71764         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71765
71766 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71767
71768         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71769         no longer needed.  Check for isblank decl.
71770         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71771         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71772         of existence.
71773
71774 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71775
71776         * lib/getloadavg.c: Use __VMS, not VMS.
71777         * lib/getopt.c: Likewise.
71778         * lib/getpagesize.h: Likewise.
71779         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71780         and probably does not work.
71781
71782 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71783
71784         * lib/.cppi-disable: Add wcwidth.
71785         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71786         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71787         (ISGRAPH): Remove.  All uses changed to isgraph.
71788         (FOLD) [!defined _LIBC]: Remove special case.
71789         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71790         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71791         HAVE_ISBLANK.
71792         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71793         case.
71794
71795 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71796
71797         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71798         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71799         brackets.  Other minor changes to suppress some compiler
71800         warnings.
71801
71802 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71803         and Paul Eggert  <eggert@cs.ucla.edu>
71804
71805         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71806         of invoking obsolescent AC_HEADER_DIRENT macro.
71807         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71808         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71809         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71810         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71811         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71812         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71813         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71814         * m4/readdir.m4: Remove; no longer needed.
71815
71816 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71817         and Paul Eggert  <eggert@cs.ucla.edu>
71818
71819         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71820         Don't worry about this obsolete case any more.
71821         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71822         directories.
71823         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71824         worry about this obsolete case any more.
71825         * lib/fts.c: Likewise.
71826         * lib/getcwd.c: Likewise.
71827         * lib/glob.h: Likewise.
71828         * lib/savedir.c: Likewise.
71829
71830 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71831
71832         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71833         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71834         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71835         needed.
71836         All uses removed.
71837         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71838         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71839         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71840         needed.
71841         * m4/getdate.m4 (gl_GETDATE): Likewise.
71842         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71843         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71844         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71845         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71846         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71847         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71848         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71849         needed.
71850
71851 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71852
71853         * lib/memcasecmp.c: Include <limits.h>.
71854         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71855         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71856         Don't assume isdigit succeeds only on '0' through '9'.
71857
71858 2006-07-05  Eric Blake  <ebb9@byu.net>
71859
71860         * modules/getaddrinfo (Depends-on): Add snprintf.
71861
71862 2006-07-05  Eric Blake  <ebb9@byu.net>
71863
71864         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71865         to avoid 'header present but could not be compiled' on cygwin.
71866
71867 2006-07-05  Eric Blake  <ebb9@byu.net>
71868
71869         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71870         missing from netdb.h.
71871         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71872
71873 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71874
71875         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71876         no longer needed.
71877         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71878         * m4/getdate.m4 (gl_GETDATE): Likewise.
71879         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71880         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71881         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71882         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71883         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71884
71885 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71886
71887         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71888         All uses of is_space replaced by isspace.
71889         * lib/exit.h: Don't talk about STDC_HEADERS.
71890         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71891         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71892         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71893         replaced by isprint etc.
71894         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71895         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71896         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71897         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71898         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71899         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71900
71901 2006-07-05  Bruno Haible  <bruno@clisp.org>
71902
71903         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71904         the function exists, before testing against AIX.
71905         Reported by Martin Lambers <marlam@marlam.de>.
71906
71907 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71910         From Mark D. Baushke.
71911
71912 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71913
71914         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71915         to the absolute name, not just one, to bypass Sun C 5.8's
71916         "warning: #include of /usr/include/... may be non-portable".
71917
71918 2006-07-04  Eric Blake  <ebb9@byu.net>
71919
71920         * modules/dirname-tests: New test module.
71921         * tests/test-dirname.c: New file, replacing dirname.c
71922         TEST_DIRNAME section that was recently deleted.
71923
71924 2006-07-04  Bruno Haible  <bruno@clisp.org>
71925
71926         Assume ANSI C header files and <ctype.h> functions.
71927         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71928         (mbsnwidth): Use isprint, iscntrl instead.
71929
71930 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71931
71932         Merge from coreutils.
71933         * MODULES.html.sh: Add xstrtold.
71934         * modules/xstrtold: New file.
71935         * modules/cycle-check (Files): Add lib/same-inode.h.
71936         * modules/dirname (Files): Add m4/double-slash-root.m4.
71937         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71938         * modules/mkdir-p (Files): Add lib/same-inode.h.
71939         * modules/same (Files): Add lib/same-inode.h.
71940
71941 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71942
71943         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71944         This is to keep the terminology clean; POSIX talks about
71945         "absolute pathnames", not "full pathnames", but the GNU
71946         Coding Standards say to use "path" for something else;
71947         so use "absolute" to keep both sides happy.
71948         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71949         Set gl_absolute_header, not gl_full_header_path.
71950         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71951         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71952         All uses changed.
71953
71954         Merge from coreutils.
71955
71956         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71957
71958         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71959         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71960         want to require the building of c-strtod.o.
71961         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71962         needs -lm directly.
71963         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71964
71965         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71966
71967         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71968         --as-needed option if available.  Problem reported by Albert Chin in
71969         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71970         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71971         cc merely issues a bunch of annoying warnings for --as-needed
71972         (this problem was reported by Bob Proulx).  Also, try linking with
71973         -lm to detect a bug in binutils 2.16 (this problem was reported
71974         by Ralf Wildenhues).
71975
71976         2006-06-18  Jim Meyering  <jim@meyering.net>
71977
71978         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71979         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71980         macro.
71981         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71982         also check for glibc-2.4's abort-inducing bug.
71983
71984         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71985         Low-probability clean-up should be to use rmdir to get rid of
71986         the just-created directory, not unlink.
71987
71988         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71989         configure fail, and request a bug report to inform us about it.
71990         Add a comment that, barring reports to the contrary, in 2007 we'll
71991         assume ftruncate is universally available.
71992
71993         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71994
71995         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71996
71997         2006-03-12  Jim Meyering  <jim@meyering.net>
71998
71999         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72000         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72001         * m4/same.m4 (gl_SAME): Likewise.
72002         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72003
72004         2006-03-11  Eric Blake  <ebb9@byu.net>
72005
72006         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72007         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72008         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72009         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72010
72011 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72012
72013         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72014         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72015         reported by Mark D. Baushke, one in
72016         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72017
72018         Merge from coreutils.
72019
72020         * lib/.cppi-disable: Add stdint_.h.
72021         * lib/.cvsignore: Add stdint.h.
72022
72023         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72024
72025         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72026         both double and long double versions.
72027         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72028         * lib/xstrtold.c: New file.
72029         * lib/xstrtod.h (xstrtold): New decl.
72030
72031         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72032
72033         * lib/filemode.c (setst): Remove.
72034         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72035         (arguably) clearer, and the generated code is a bit smaller on my
72036         Debian GNU/Linux stable x86 host.
72037
72038         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72039
72040         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72041         Assume that filemode.h includes sys/types.h and sys/stat.h.
72042         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72043         (ftypelet): Reorder to put common cases first, for efficiency.
72044         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72045         to do 'M'.
72046         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72047         of 10, for compatibility with FreeBSD.  All callers changed.
72048         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72049         types that can't be deduced solely from st_mode.  First arg is now a
72050         const pointer.
72051         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72052         (strmode): Renamed from mode_string.
72053         (filemodestring): New decl.
72054         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72055         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72056         needed.
72057         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72058
72059         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72060
72061         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72062         fsusage.h now does that.  Include fsusage.h first, to test interface.
72063         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72064         at most one method (the old code could have generated decls that
72065         didn't conform to C89, not that this was ever exercised).
72066         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72067
72068         2006-03-19  Jim Meyering  <jim@meyering.net>
72069
72070         Work even in a chroot where d_ino values for entries in "/"
72071         don't match the stat.st_ino values for the same names.
72072         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72073         number, iterate through all entries again, using lstat instead.
72074         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72075         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72076
72077         * lib/getcwd.c (__getcwd): Clarify a comment.
72078         Use memcpy in place of a call to strcpy.
72079
72080         2006-03-12  Jim Meyering  <jim@meyering.net>
72081
72082         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72083         matches that of the current directory (which we're about to chdir ".."
72084         out of), then save the dev-ino of the parent, instead.
72085
72086         * lib/same-inode.h (SAME_INODE): New file/macro.
72087         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72088         Include "same-inode.h", instead.
72089         * lib/same.c: Likewise.
72090         * lib/cycle-check.h: Include "same-inode.h".
72091         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72092         * lib/cycle-check.c (SAME_INODE): Remove definition.
72093         * lib/root-dev-ino.h: Include "same-inode.h".
72094
72095         2006-03-11  Eric Blake  <ebb9@byu.net>
72096
72097         * lib/same.c (same_name): s/base_name/last_component/
72098         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72099         * lib/filenamecat.c (file_name_concat): Likewise.
72100
72101         2006-03-11  Eric Blake  <ebb9@byu.net>,
72102                     Paul Eggert  <eggert@cs.ucla.edu>
72103
72104         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72105         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72106         drive prefix.
72107         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72108         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72109         (last_component): New method.
72110         * lib/dirname.c (dir_len): Determine when drive letters need a
72111         subsequent slash.  Preserve // when it is special.
72112         (dir_name): Don't append dot when drive letter is absolute.
72113         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72114         * lib/basename.c (base_name): New semantics - malloc the result.
72115         Preserve // when it is special.  Preserve relative files that look
72116         like drive letters.
72117         (base_len): Preserve // when it is special.
72118         (last_component): New method, similar to old base_name semantics.
72119         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72120         base_name.  Strip redundant slashes from ///.
72121
72122 2006-07-03  Jim Meyering  <jim@meyering.net>
72123
72124         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72125         macro is used before the first cycle_check call.
72126
72127 2006-07-03  Eric Blake  <ebb9@byu.net>
72128
72129         * modules/dirname (Depends-on): Add xstrndup.
72130
72131 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72132
72133         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72134         test cases, so that config.log is a bit easier to follow.
72135
72136 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72137
72138         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72139         both are 64 bits, since this seems to be the tradition, and this
72140         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72141         we ever run into a host that prefers long long to long in this
72142         case, we'll need another configure-time test.  Problem reported by
72143         Jim Meyering.
72144
72145 2006-07-02  Eric Blake  <ebb9@byu.net>
72146
72147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72148
72149 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72150
72151         * modules/inttypes (Depends-on): No longer depends on stdint.
72152         * modules/stdint (Description): Say more about assumptions.
72153         Say that the fast types might differ.  Say macros are used.
72154         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72155         (Makefile.am): Revise list of substituted symbols to match
72156         new stdint.m4.
72157         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72158         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72159         * tests/test-stdint.c (verify_same_types)
72160         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72161         the code conforms to C99/C89.
72162         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72163         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72164
72165 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72166
72167         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72168         but fix a bug, by requiring at least 64 bits.
72169         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72170         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72171         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72172         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72173
72174         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72175         changes.  Make 2.59 a prerequisite.  Check and substitute for
72176         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72177         inttypes.h.  Do not use special include files; just use the
72178         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72179         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72180         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72181         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72182         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72183         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72184         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72185         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72186         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72187         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72188         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72189         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72190         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72191         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72192         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72193         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72194         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72195         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72196         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72197         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72198         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72199         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72200         not check for things that C99 does not require, e.g., int8_t.  If
72201         a test isn't needed unless <stdint.h> isn't working, and is
72202         unlikely to be needed for any other reason, then don't do it
72203         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72204         size_t, since we assume C89 freestanding at least.  Do not check
72205         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72206         the right thing even if the types are not defined.  Instead use:
72207         (gl_STDINT_TYPE_PROPERTIES): New macro.
72208         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72209         testing whether <sys/types.h> clashes, as Autoconf does this for
72210         us now.  All uses removed.
72211         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72212         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72213         (gl_CHECK_TYPE_SAME):
72214         Remove; no longer needed.
72215         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72216         exists, since we'll return 0 anyway in that case.
72217         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72218
72219 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72220
72221         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72222         possible collision with system files.
72223         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72224         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72225         WCHAR_MIN and WCHAR_MAX in this case.
72226         (<stddef.h>): Do not include; no longer needed.
72227         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72228         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72229         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72230         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72231         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72232         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72233         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72234         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72235         !defined(__c99))]: Include in this case too, since it's harmless
72236         now.
72237         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72238         dangerous to do so.
72239         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72240         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72241         (_STDINT_MIN, _STDINT_MAX): New macros.
72242         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72243         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72244         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72245         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72246         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72247         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72248         macros, not typedefs; this simplifies things quite a bit.
72249         Use long int for all types narrower than int64_t.
72250         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72251         Define in terms of long long int or int64_t or long int,
72252         not int64_t or int32_t.  This saves some compile-time testing.
72253         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72254         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72255         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72256         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72257         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72258         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72259         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72260         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72261         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72262         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72263         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72264         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72265         undef any previous version and define our own version, for
72266         simplicity and consistency with the new macros for types.
72267         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72268         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72269         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72270         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72271         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72272         @WINT_T_SUFFIX@ to keep things simple here.
72273         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72274         Simplify by assuming typical 8/16/32/64 host, since we're
72275         already doing that elsewhere anyway.
72276         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72277         and assume long long int is 64 bits if available.  This
72278         speeds up 'configure'.
72279
72280 2006-07-01  Eric Blake  <ebb9@byu.net>
72281
72282         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72283         Reported by Andreas Buening.
72284
72285 2006-07-01  Eric Blake  <ebb9@byu.net>
72286
72287         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72288
72289 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72290
72291         * lib/getaddrinfo.c: fixed typo
72292
72293 2006-06-29  Jim Meyering  <jim@meyering.net>
72294
72295         * modules/strftime (Maintainer): Add my name, since with the
72296         FPRINTFTIME changes strftime.c has forked from glibc.
72297
72298 2006-06-29  Eric Blake  <ebb9@byu.net>
72299
72300         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72301
72302 2006-06-29  Eric Blake  <ebb9@byu.net>
72303
72304         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72305
72306 2006-06-29  Eric Blake  <ebb9@byu.net>
72307
72308         * lib/stat_.h: New file.
72309
72310 2006-06-29  Eric Blake  <ebb9@byu.net>
72311
72312         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72313         unused static function.
72314
72315 2006-06-29  Eric Blake  <ebb9@byu.net>
72316
72317         * doc/functions.texi (Function Portability): Document missing lstat
72318         on mingw.
72319
72320 2006-06-29  Eric Blake  <ebb9@byu.net>
72321
72322         * MODULES.html.sh: Add sys_stat.
72323         * modules/sys_stat: New module.
72324         * modules/mkstemp (Depends-on): Add sys_stat.
72325
72326 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72327
72328         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72329
72330 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72331
72332         * m4/c-bs-a.m4: Removed.
72333
72334 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72335
72336         * lib/strftime.c: Assume strftime() exists.
72337
72338 2006-06-29  Derek Price  <derek@ximbiot.com>
72339
72340         * modules/c-bs-a: Removed - \a is C89.
72341         * MODULES.html.sh: Remove c-bs-a.
72342
72343 2006-06-29  Bruno Haible  <bruno@clisp.org>
72344
72345         * modules/wcwidth (License): Change to LGPL.
72346
72347 2006-06-28  Simon Josefsson  <jas@extundo.com>
72348
72349         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72350         on _WIN32.
72351
72352         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72353         getnameinfo.
72354
72355 2006-06-28  Simon Josefsson  <jas@extundo.com>
72356
72357         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72358
72359 2006-06-28  Simon Josefsson  <jas@extundo.com>
72360
72361         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72362         functions there.  It will succeed on Windows XP, but on Windows
72363         2000 and (presumably) earlier, it will fail, and use the internal
72364         re-implementation.
72365         (use_win32_p): New function.
72366         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72367         Support AI_NUMERICSERV to disable getservbyname.
72368         (getnameinfo): New function, only supports
72369         NI_NUMERICHOST|NI_NUMERICSERV for now.
72370
72371         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72372         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72373         getnameinfo.
72374
72375 2006-06-28  Eric Blake  <ebb9@byu.net>
72376
72377         * modules/wcwidth: New file.
72378         * modules/mbchar (Depends-on): Add wcwidth.
72379         * modules/mbswidth (Depends-on): Add wcwidth.
72380         * MODULES.html.sh: Add wcwidth.
72381
72382 2006-06-28  Eric Blake  <ebb9@byu.net>
72383
72384         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72386
72387 2006-06-28  Eric Blake  <ebb9@byu.net>
72388
72389         * lib/xvasprintf.h: Fix comments.
72390
72391 2006-06-28  Eric Blake  <ebb9@byu.net>
72392
72393         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72394         * lib/mbswidth.c (wcwidth): Move from here...
72395         * lib/wcwidth.h: ...to this new file.
72396
72397 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72398
72399         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72400
72401         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72402         it's obsolete.
72403         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72404
72405 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72406
72407         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72408         Autoconf 2.60 says this stuff was obsolete.
72409
72410 2006-06-28  Bruno Haible  <bruno@clisp.org>
72411
72412         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72413
72414 2006-06-28  Bruno Haible  <bruno@clisp.org>
72415
72416         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72417         gt_TYPE_WCHAR_T.
72418
72419 2006-06-28  Bruno Haible  <bruno@clisp.org>
72420
72421         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72422         declaration for wcwidth.
72423         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72424
72425 2006-06-28  Bruno Haible  <bruno@clisp.org>
72426
72427         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72428         (mkdir): Define using _mkdir.
72429
72430 2006-06-28  Bruno Haible  <bruno@clisp.org>
72431
72432         * lib/getaddrinfo.h: Fix POSIX URL.
72433         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72434         _WIN32.
72435         (use_win32_p): Make static.
72436         (getaddrinfo): Reject service name if it is empty or does not consist
72437         solely of decimal digits, or if its value is > 65535.
72438         (getnameinfo): Remove useless casts.
72439
72440 2006-06-27  Simon Josefsson  <jas@extundo.com>
72441
72442         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72443         Eggert and Martin Lambers.
72444
72445 2006-06-27  Simon Josefsson  <jas@extundo.com>
72446
72447         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72448         Eggert and Martin Lambers.
72449
72450 2006-06-27  Bruno Haible  <bruno@clisp.org>
72451
72452         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72453         result to 0, not to empty.
72454         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72455
72456 2006-06-27  Bruno Haible  <bruno@clisp.org>
72457
72458         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72459
72460 2006-06-26  Simon Josefsson  <jas@extundo.com>
72461
72462         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72463         present.
72464
72465 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72466
72467         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72468         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72469         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72470
72471 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72472
72473         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72474
72475 2006-06-26  Bruno Haible  <bruno@clisp.org>
72476
72477         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72478
72479 2006-06-26  Bruno Haible  <bruno@clisp.org>
72480
72481         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72482
72483 2006-06-26  Bruno Haible  <bruno@clisp.org>
72484
72485         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72486         SGI C compiler in pre-C99 mode.
72487         Suggested by Mark D. Baushke and Larry Jones.
72488
72489 2006-06-26  Bruno Haible  <bruno@clisp.org>
72490
72491         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72492         WCHAR_MAX.
72493         Reported by Mark D. Baushke and Larry Jones.
72494
72495 2006-06-26  Bruno Haible  <bruno@clisp.org>
72496
72497         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72498         in pre-C99 mode.
72499         Suggested by Mark D. Baushke and Larry Jones.
72500
72501 2006-06-23  Simon Josefsson  <jas@extundo.com>
72502             Bruno Haible  <bruno@clisp.org>
72503
72504         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72505         Emit mostlyclean-local rule.
72506         (func_emit_tests_Makefile_am): Likewise.
72507         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72508
72509 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72510
72511         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72512
72513 2006-06-23  Bruno Haible  <bruno@clisp.org>
72514
72515         * tests/test-stdint.c: Update to match ISO C 99 Technical
72516         Corrigendum 1.
72517
72518 2006-06-23  Bruno Haible  <bruno@clisp.org>
72519
72520         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72521
72522 2006-06-23  Bruno Haible  <bruno@clisp.org>
72523
72524         * lib/stdint_.h: Treat IRIX like OpenBSD.
72525
72526 2006-06-23  Bruno Haible  <bruno@clisp.org>
72527
72528         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72529         ISO C 99 Technical Corrigendum 1.
72530
72531 2006-06-22  Simon Josefsson  <jas@extundo.com>
72532
72533         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72534         MinGW.
72535
72536 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72537
72538         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72539         needed.  Some compiler complained about some of them.  Problem reported
72540         by Larry Jones in
72541         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72542
72543 2006-06-21  Simon Josefsson  <jas@extundo.com>
72544
72545         * tests/test-getaddrinfo.c: New file.
72546
72547         * modules/getaddrinfo-tests: New file.
72548
72549         * MODULES.html.sh: Add inet_pton.
72550
72551         * modules/inet_pton: New file.
72552
72553 2006-06-21  Simon Josefsson  <jas@extundo.com>
72554
72555         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72556         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72557         of using the (limited) gnulib implementation on Windows XP.
72558
72559         * m4/inet_pton.m4: New file.
72560
72561 2006-06-21  Simon Josefsson  <jas@extundo.com>
72562
72563         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72564         variable.
72565
72566         * lib/socket_.h: Don't define WINVER.
72567
72568         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72569         slightly modified to work in gnulib.
72570
72571 2006-06-21  Simon Josefsson  <jas@extundo.com>
72572
72573         * doc/gnulib.texi (Windows sockets): Add.
72574
72575 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72576
72577         * lib/read-file.c (fread_file): Start with buffer allocation of
72578         0 bytes rather than 1 byte; this simplifies the code.
72579         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72580         code to free buffer and save/restore errno.
72581         (internal_read_file): Remove unused local.
72582
72583 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72584
72585         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72586         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72587         Problem reported by Denis Excoffier in
72588         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72589
72590 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72591
72592         * modules/sys_socket, modules/socklen: Include sys/types since
72593         FreeBSD 4.x's sys/socket.h needs it.
72594
72595 2006-06-19  Simon Josefsson  <jas@extundo.com>
72596
72597         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72598
72599 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72600
72601         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72602
72603 2006-06-19  Bruno Haible  <bruno@clisp.org>
72604
72605         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72606         and FULL_PATH_INTTYPES_H in angle brackets.
72607         Reported by Mark D. Baushke <mdb@gnu.org>.
72608
72609 2006-06-17  Eric Blake  <ebb9@byu.net>
72610
72611         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72612         errno.
72613
72614 2006-06-17  Bruno Haible  <bruno@clisp.org>
72615
72616         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72617         <sys/inttypes.h>.
72618
72619 2006-06-17  Bruno Haible  <bruno@clisp.org>
72620
72621         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72622         whether errno is declared. Assume <errno.h> declares errno.
72623
72624 2006-06-17  Bruno Haible  <bruno@clisp.org>
72625
72626         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72627
72628 2006-06-17  Bruno Haible  <bruno@clisp.org>
72629
72630         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72631         problem on Solaris 2.5.1.
72632
72633 2006-06-16  Eric Blake  <ebb9@byu.net>
72634
72635         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72636         * lib/unicodeio.c [!defined errno]: Likewise.
72637         * lib/strtol.c [!defined errno]: Likewise.
72638         * lib/strtod.c [!defined errno]: Likewise.
72639
72640 2006-06-15  Eric Blake  <ebb9@byu.net>
72641
72642         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72643
72644 2006-06-15  Eric Blake  <ebb9@byu.net>
72645
72646         * config/srclist.txt (ssize_t.m4): Lose sync.
72647
72648 2006-06-15  Bruno Haible  <bruno@clisp.org>
72649
72650         * modules/stdint (Files): Include m4/full-header-path.m4,
72651         m4/size_max.m4, m4/wchar_t.m4.
72652         (Makefile.am): Many more substitutions.
72653         * modules/stdint-tests: New file.
72654         * tests/test-stdint.c: New file.
72655
72656 2006-06-15  Bruno Haible  <bruno@clisp.org>
72657
72658         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72659         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72660         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72661         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72662         gl_CHECK_TYPE_SAME): New macros.
72663
72664 2006-06-15  Bruno Haible  <bruno@clisp.org>
72665
72666         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72667
72668 2006-06-15  Bruno Haible  <bruno@clisp.org>
72669
72670         * lib/stdint_.h: Rewritten to be fully auto-configured.
72671         Fixes bug on HP-UX/IA64.
72672
72673 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72674
72675         * lib/getdate.y (__attribute__): Don't define if already defined.
72676         Problem reported by Larry Jones.
72677         * lib/utimens.c (__attribute__): Likewise.
72678
72679 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72680
72681         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72682         reported by Andreas Schwab.
72683
72684 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72685             Bruno Haible  <bruno@clisp.org>
72686
72687         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72688         check for the declaration of strnlen and a run test that exposes the
72689         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72690         rpl_strndup.
72691
72692 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72693             Bruno Haible  <bruno@clisp.org>
72694
72695         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72696
72697 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72698
72699         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72700         compile test, for Tru64 4.0D.
72701
72702 2006-05-28  Karl Berry  <karl@gnu.org>
72703
72704         * config/srclist.txt (printf-args.c): lose sync.
72705
72706 2006-05-26  Martin Lambers  <marlam@marlam.de>
72707
72708         * lib/getpass.c: Updates the test for the native W32 API, and adds
72709         missing includes, thus fixing compilation warnings.
72710
72711 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72712
72713         * lib/exclude.c (exclude_fnmatch): New function.
72714         (excluded_file_name): Call exclude_fnmatch.
72715         * lib/exclude.h (excluded_file_name): New prototype
72716
72717 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72718
72719         * lib/tempname.c (small_open, large_open): New macros.
72720         (__open, __open64) [!_LIBC]: Remove.
72721         (__gen_tempname): Use small_open and large_open instead of __open
72722         and __open64.  This fixes a portability bug on HP-UX 11.11i
72723         reported by Simon Wing-Tang in
72724         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72725
72726 2006-05-24  Bruno Haible  <bruno@clisp.org>
72727
72728         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72729         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72730         Reported by Thorsten Maerz <torte@netztorte.de> via
72731         Aaron Stone <aaron@serendipity.cx>.
72732
72733 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72734
72735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72736         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72737         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72738         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72739         not really conditional on the cache.
72740         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72741
72742 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72743
72744         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72745         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72746         (my_usleep): Don't mishandle maximum value.
72747
72748 2006-05-19  Jim Meyering  <jim@meyering.net>
72749
72750         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72751
72752 2006-05-17  Bruno Haible  <bruno@clisp.org>
72753
72754         Cygwin portability.
72755         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72756
72757 2006-05-17  Bruno Haible  <bruno@clisp.org>
72758
72759         * lib/stdint_.h: Fix recognition of Cygwin.
72760
72761 2006-05-15  Bruno Haible  <bruno@clisp.org>
72762
72763         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72764         on libtool patch by Ralf Wildenhues.
72765
72766 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72767
72768         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72769         test for C99 conformance; (bool) 0.5 is an integer constant
72770         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72771         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72772
72773 2006-05-11  Simon Josefsson  <jas@extundo.com>
72774
72775         * m4/xvasprintf.m4: Fix obvious typo.
72776
72777 2006-05-11  Jim Meyering  <jim@meyering.net>
72778
72779         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72780         James Lemley.
72781
72782 2006-05-10  Simon Josefsson  <jas@extundo.com>
72783
72784         * lib/md4.c: Typo fix, update copyright years.
72785         (K1, K2): Don't use L because it turn computations into 64-bit on
72786         64-bit platforms.
72787
72788 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72789
72790         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72791         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72792         unwanted sign propagation, e.g., on hosts with 64-bit int.
72793         There still are some problems with reeelly weird theoretical hosts
72794         (e.g., 33-bit int) but it's not worth worrying about now.
72795         * lib/sha1.c (rol): Likewise.
72796         (K1, K2, K3, K4): Remove unnecessary L suffix.
72797
72798 2006-05-10  Bruno Haible  <bruno@clisp.org>
72799
72800         * lib/des.c: Cast to avoid warnings.
72801
72802 2006-05-09  Bruno Haible  <bruno@clisp.org>
72803
72804         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72805         (Depends-on): Depend also on xsize, stdarg.
72806         (configure.ac): Add gl_XVASPRINTF.
72807
72808 2006-05-09  Bruno Haible  <bruno@clisp.org>
72809
72810         * m4/xvasprintf.m4: New file.
72811
72812 2006-05-09  Bruno Haible  <bruno@clisp.org>
72813
72814         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72815         (EOVERFLOW): Define fallback value.
72816         (xstrcat): New function.
72817         (xvasprintf): Recognize the special case of a string concatenation.
72818
72819 2006-05-08  Eric Blake  <ebb9@byu.net>
72820
72821         * gnulib-tool (func_version): Base copyright year on CVS date.
72822         (func_emit_copyright_notice): New function.
72823         (func_emit_lib_Makefile_am): Use it.
72824         (func_emit_tests_Makefile_am): Likewise.
72825         (func_import): Likewise.
72826
72827 2006-05-08  Bruno Haible  <bruno@clisp.org>
72828
72829         * modules/stdarg: New file.
72830         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72831
72832 2006-05-08  Bruno Haible  <bruno@clisp.org>
72833
72834         * m4/stdarg.m4: New file, from GNU gettext.
72835
72836 2006-05-08  Bruno Haible  <bruno@clisp.org>
72837
72838         * config/srclist.txt (build-aux/config.rpath): different from latest
72839         release.
72840
72841 2006-05-08  Bruno Haible  <bruno@clisp.org>
72842
72843         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72844
72845 2006-05-05  Jim Meyering  <jim@meyering.net>
72846
72847         * m4/warning.m4: New file, derived from bison's file by the same name.
72848
72849 2006-05-03  Bruno Haible  <bruno@clisp.org>
72850
72851         * lib/stdint_.h: Shorter URL.
72852         * lib/inttypes.h: Likewise.
72853
72854 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72855
72856         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72857
72858 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72859
72860         * lib/verify.h: Document the internals better.  Most of this change
72861         was written by Bruno Haible.
72862
72863 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         * doc/verify.texi: New file, partly based on a proposal by
72866         Bruno Haible.
72867
72868 2006-05-02  Bruno Haible  <bruno@clisp.org>
72869
72870         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72871         test from here...
72872         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72873
72874 2006-04-29  Bruno Haible  <bruno@clisp.org>
72875
72876         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72877         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72878
72879 2006-04-29  Bruno Haible  <bruno@clisp.org>
72880
72881         * gnulib-tool: Make --update option actually work.
72882
72883 2006-04-29  Bruno Haible  <bruno@clisp.org>
72884
72885         * doc/gcd.texi: New file.
72886         * doc/gnulib.texi: Include it.
72887
72888 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72889
72890         * lib/getdate.y (get_date): When adding relative date, start with the
72891         initial time, not with the result of the first mktime call.
72892
72893 2006-04-25  Bruno Haible  <bruno@clisp.org>
72894
72895         * gnulib-tool (func_import): Output the include directives in three
72896         blocks, sorted separately.
72897         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72898
72899 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72900
72901         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72902         to define main with arguments, for C++.  Reported by Eric Blake.
72903         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72904         Prefer 'int main ()' to 'int main (void)', for C++.
72905         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72906         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72907         for 'main', for C99 and C++.
72908
72909 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72910
72911         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72912         Don't assume that exit status -1 is valid.
72913         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72914         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72915         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72916         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72917         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72918         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72919         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72920         functions can be used without declaring them, or that you can
72921         exit with status -1.
72922         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72923
72924 2006-04-24  Karl Berry  <karl@gnu.org>
72925
72926         * config/srclist.txt (longdouble.m4): sync lost.
72927
72928 2006-04-24  Eric Blake  <ebb9@byu.net>
72929
72930         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72931
72932 2006-04-24  Bruno Haible  <bruno@clisp.org>
72933
72934         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72935         poll() implementation in AIX.
72936         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72937
72938 2006-04-24  Bruno Haible  <bruno@clisp.org>
72939
72940         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72941         assigned exactly once.
72942
72943 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72944             Bruno Haible  <bruno@clisp.org>
72945
72946         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72947         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72948         for AM_CPPFLAGS.
72949
72950 2006-04-23  Bruno Haible  <bruno@clisp.org>
72951
72952         * modules/copy-file: Depend on unistd.
72953         * modules/execute: Likewise.
72954         * modules/fatal-signal: Likewise.
72955         * modules/findprog: Likewise.
72956         * modules/mkdtemp : Likewise.
72957         * modules/pipe: Likewise.
72958         * modules/wait-process: Likewise.
72959
72960 2006-04-23  Bruno Haible  <bruno@clisp.org>
72961
72962         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72963         condition was already detected.
72964         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72965
72966 2006-04-23  Bruno Haible  <bruno@clisp.org>
72967
72968         * lib/copy-file.c: Include <unistd.h> unconditionally.
72969         * lib/execute.c: Likewise.
72970         * lib/fatal-signal.c: Likewise.
72971         * lib/findprog.c: Likewise.
72972         * lib/mkdtemp.c: Likewise.
72973         * lib/pipe.h: Likewise.
72974         * lib/pipe.c: Likewise.
72975         * lib/wait-process.h: Likewise.
72976
72977 2006-04-23  Bruno Haible  <bruno@clisp.org>
72978
72979         * gnulib-tool (func_usage): Fix --import description. Document
72980         --update.
72981         (func_import): Create temporary file in a temporary directory, if
72982         --dry-run is specified. Silence errors from 'grep' when there are no
72983         m4 files in $m4dir.
72984         (func_create_testdir): Silence errors from 'grep' when there are no
72985         m4 files in $m4dir.
72986         Reported by Karl Berry <karl@freefriends.org>.
72987
72988 2006-04-20  Bruno Haible  <bruno@clisp.org>
72989
72990         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72991         one argument, so that the code will be portable to Autoconf 2.60.
72992         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72993         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72994         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72995
72996 2006-04-19  Derek Price  <derek@ximbiot.com>
72997             Eric Blake  <ebb9@byu.net>
72998
72999         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73000         rather than "/full/path.h".  Update comment to match.  Shorten &
73001         generalize m4_translit call via AS_TR_CPP.
73002
73003 2006-04-19  Derek Price  <derek@ximbiot.com>
73004             Eric Blake  <ebb9@byu.net>
73005
73006         * lib/inttypes.h: Correct grammar in comment.
73007
73008 2006-04-18  Derek Price  <derek@ximbiot.com>
73009             Paul Eggert  <eggert@cs.ucla.edu>
73010
73011         * modules/inttypes: New file.
73012         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73013
73014 2006-04-18  Derek Price  <derek@ximbiot.com>
73015             Paul Eggert  <eggert@cs.ucla.edu>
73016
73017         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73018         New files.
73019
73020 2006-04-18  Derek Price  <derek@ximbiot.com>
73021             Paul Eggert  <eggert@cs.ucla.edu>
73022
73023         * lib/inttypes.h: New file.
73024         * lib/strtoimax.c: Assume <inttypes.h>.
73025
73026 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73027
73028         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73029         isn't mounted.  Problem reported by Kir Kolyshkin.
73030
73031 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73032
73033         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73034         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73035         Derek R. Price.
73036         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73037         implementation.
73038
73039 2006-04-12  Eric Blake  <ebb9@byu.net>
73040
73041         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73042         is now done automatically by the corresponding Autoconf macro.
73043
73044 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73047         time_r.h.
73048
73049 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73050
73051         Merge regex changes from libc, removing some of our
73052         POSIX-conformance changes that were rejected and redoing them in a
73053         less-intrusive way.
73054
73055         * lib/regcomp.c (re_compile_internal, init_dfa):
73056         Length arg is now size_t, not Idx.  All uses changed.
73057         (peek_token): Forward decl now says internal_function.
73058         (__re_error_msgid, __re_error_msgid_idx):
73059         Now static rather than extern with attribute_hidden.
73060         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73061         For some reason libc prefers K&R style defns for external functions.
73062         (regerror) [!defined _LIBC]: Likewise.
73063         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73064         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73065         (build_range_exp, build_collating_symbol):
73066         Use K&R-style defn.
73067         (re_compile_fastmap): Use '\0' to memset, not 0.
73068         (utf8_sb_map): Make the calculations more obvious.
73069         (init_dfa, parse_bracket_exp, build_charclass_op):
73070         Call calloc and cast result, as glibc does.
73071         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73072         (build_range_exp, build_collating_symbol):
73073         Now internal functions.
73074
73075         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73076
73077         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73078         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73079         Don't depend on VMS; depend on __VMS instead, for POSIX
73080         namespace cleanness.
73081         (regoff_t): Define to ssize_t, not long int.
73082
73083         Remove the REG_ macros named below.  Instead, make the old names
73084         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73085         __USE_GNU_REGEX.
73086         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73087         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73088         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73089         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73090         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73091         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73092         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73093         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73094         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73095         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73096         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73097         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73098         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73099         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73100         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73101         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73102         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73103         (REG_NREGS):
73104         Remove.  All uses replaced by the old RE_* names.
73105         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73106         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73107         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73108         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73109         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73110         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73111         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73112         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73113         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73114         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73115         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73116         Don't bother having these macros be independent of each others'
73117         values, since they no longer exist in the POSIX name space.
73118
73119         Rename the following member names back to their old names,
73120         unless !__USE_GNU_REGEX.  All uses changed back.
73121         (buffer): Renamed from re_buffer.
73122         (allocated): Renamed from re_allocated.
73123         (used): Renamed from re_used.
73124         (syntax): Renamed from re_syntax.
73125         (fastmap): Renamed from re_fastmap.
73126         (translate): Renamed from re_translate.
73127         (can_be_null): Renamed from re_can_be_null.
73128         (regs_allocated): Renamed from re_regs_allocated.
73129         (fastmap_accurate): Renamed from re_fastmap_accurate.
73130         (no_sub): Renamed from re_no_sub.
73131         (not_bol): Renamed from re_not_bol.
73132         (not_eol): Renamed from re_not_eol.
73133         (newline_anchor): Renamed from re_newline_anchor.
73134         (num_regs): Renamed from rm_num_regs.
73135         (start): Renamed from rm_start.
73136         (end): Renamed from rm_end.
73137
73138         (free_state): Move up a bit.
73139
73140         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73141         #define to be empty.
73142         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73143         when that is what is intended.
73144         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73145         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73146         (MAX): New macro.
73147         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73148         All uses changed back to re_malloc, etc.  It's now the caller's
73149         responsibility to check for overflow; all callers changed.
73150         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73151         (re_x2nrealloc): Remove.
73152         (free_state): Remove decl.
73153
73154         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73155         (re_set_registers, re_exec):
73156         Use K&R-style defn.
73157
73158         2006-01-31  Roland McGrath  <roland@redhat.com>
73159
73160         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73161         Reported by Mike Frysinger <vapier@gentoo.org>.
73162
73163         2006-01-15  Andreas Jaeger  <aj@suse.de>
73164
73165         [BZ #1950]
73166         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73167         build_wcs_upper_buffer change.
73168         (build_wcs_upper_buffer): Change return type.
73169
73170         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73171
73172         * lib/regex_internal.h: Include <stdint.h> if available.
73173
73174         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73175
73176         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73177
73178         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73179
73180         * lib/regcomp.c: Adjust for changed secondary hash function.
73181
73182         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73183
73184         * lib/regex.h: Pretty printing.
73185         Clean up namespace a bit.
73186
73187         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73188
73189         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73190         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73191
73192         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73193                     Ulrich Drepper  <drepper@redhat.com>
73194
73195         [BZ #1302]
73196         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73197         changed.
73198         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73199
73200         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73201
73202         [BZ #281]
73203         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73204         * lib/regcomp.c: Remove unnecessary uses of
73205         unsigned RE_TRANSLATE_TYPE.
73206         * lib/regex_internal.h: Likewise.
73207         * lib/regex_internal.c: Likewise.
73208         * lib/regexec.c: Likewise.
73209         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73210
73211         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73212
73213         * lib/regexec.c (find_recover_state): Remove unnecessary
73214         initialization.
73215         (transit_state_bkref): Make DFA a const pointer.
73216         (get_subexp): Likewise.
73217         (check_arrival): Likewise.
73218         (update_cur_sifted_state): Likewise.
73219         (re_search_internal): Likewise.
73220         (prune_impossible_nodes): Likewise.
73221         (acquire_init_state_context): Likewise.
73222         (proceed_next_node): Likewise.
73223         (set_regs): Likewise.
73224         (free_fail_stack_return): Likewise.
73225         (check_arrival_expand_ecl): Mark DFA parameter as const.
73226         (check_arrival_expand_ecl_sub): Likewise.
73227         (check_subexp_limits): Likewise.
73228         (sub_epsilon_src_nodes):  Likewise.
73229         (add_epsilon_src_nodes):  Likewise.
73230         (merge_state_array): Likewise.
73231         (update_regs): Likewise.
73232         (build_trtable): Likewise.
73233         (sift_states_backward): Mark MCTX parameter as const.
73234         (build_sifted_states): Likewise.
73235         (update_cur_sifted_state): Likewise.
73236         (sift_states_mkref): Likewise.
73237         (check_arrival_expand_ecl): Mark eclosure as const.
73238         (check_dst_limits_calc_pos_1): Likewise.
73239         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73240         pointer.
73241
73242         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73243
73244         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73245         (transit_state_sb): Likewise.
73246         (transit_state_mb): Likewise.
73247         (sift_states_iter_mb): Likewise.
73248         (check_arrival_add_next_nodes): Likewise.
73249         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73250         [_LIBC] (re_search_2_stub): Use mempcpy.
73251
73252         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73253         mbrtowc for very simple UTF-8 case.
73254
73255         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73256         a pointer-to-const.
73257         (re_acquire_state_context): Likewise.
73258         * lib/regex_internal.h: Adjust prototypes.
73259
73260         * lib/regex.c: Prevent using C++ compilers.
73261
73262         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73263         (re_acquire_state_context): Likewise.
73264
73265 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73266
73267         * modules/regex (Depends-on): Add ssize_t.
73268
73269 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73270
73271         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73272         translation table.
73273
73274 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73275
73276         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73277
73278 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73279             Bruno Haible  <bruno@clisp.org>
73280
73281         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73282         <sys/types.h> and <inttypes.h>.
73283
73284 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73285
73286         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73287         `__error_t_defined', so argp.h will not typedef the former.
73288
73289 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73290
73291         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73292         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73293         glibc names.  Even if glibc is changed to conform to POSIX, the
73294         traditional names will be available anyway, since regex depends on
73295         the extensions module.  Also, fix a longstanding typo in the
73296         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73297         reported by Emanuele Giaquinta.  Also, change sense of cached
73298         variable, so that the message makes sense.
73299
73300 2006-03-24  Simon Josefsson  <jas@extundo.com>
73301
73302         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73303         including some doc fixes.
73304         (base64_encode_alloc): Fix +1 bug on allocation failures.
73305
73306 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73307
73308         * lib/base64.c (base64_encode): Do not read past end of array with
73309         unsanitized input on systems with CHAR_BIT > 8.
73310
73311 2006-03-24  Eric Blake  <ebb9@byu.net>
73312
73313         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73314
73315 2006-03-22  Karl Berry  <karl@gnu.org>
73316
73317         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73318         * config/srclistvars.sh (COREUTILS): new var.
73319
73320 2006-03-17  Jim Meyering  <jim@meyering.net>
73321
73322         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73323         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73324
73325 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73326
73327         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73328         no longer needs it.  Instead, check that regoff_t is as least
73329         as wide as ptrdiff_t.
73330
73331         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73332         so that our regex.h stays compatible with the installed regex.
73333         This is helpful for installers who configure --without-included-regex.
73334         Problem reported by Emanuele Giaquinta.
73335
73336 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73337
73338         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73339         Typedef to long int, not to off_, as POSIX will likely change
73340         in that direction.
73341
73342 2006-03-15  Eric Blake  <ebb9@byu.net>
73343
73344         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73345
73346 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73347
73348         * lib/argp-help.c (validate_uparams): Fix typo
73349         * lib/argp-parse.c (argp_default_options): Consistently begin help
73350         messages with a lowercase letter.
73351
73352 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73355         overrun buffers and shouldn't be used (much as gets shouldn't be
73356         used).
73357         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73358
73359 2006-03-08  Simon Josefsson  <jas@extundo.com>
73360
73361         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73362         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73363
73364 2006-03-08  Simon Josefsson  <jas@extundo.com>
73365
73366         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73367         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73368
73369 2006-03-08  Simon Josefsson  <jas@extundo.com>
73370
73371         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73372         signal that configure disabled the device.
73373
73374 2006-03-08  Simon Josefsson  <jas@extundo.com>
73375
73376         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73377         languages.
73378
73379 2006-03-07  Simon Josefsson  <jas@extundo.com>
73380
73381         * modules/getopt (Depends-on): Add unistd.
73382
73383         * modules/unistd: New file.
73384
73385 2006-03-07  Simon Josefsson  <jas@extundo.com>
73386
73387         * modules/gc-random: New file.
73388
73389 2006-03-07  Simon Josefsson  <jas@extundo.com>
73390
73391         * m4/unistd_h.m4: New file.
73392
73393 2006-03-07  Simon Josefsson  <jas@extundo.com>
73394
73395         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73396         test to be side-effect free by storing the result in the cache
73397         variable gl_cv_lib_readline, and moving the assignment of
73398         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73399         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73400
73401 2006-03-07  Simon Josefsson  <jas@extundo.com>
73402
73403         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73404         error on missing devices (the functions will return an error).
73405
73406         * m4/gc.m4: Move random stuff to gc-random.m4
73407
73408 2006-03-07  Simon Josefsson  <jas@extundo.com>
73409
73410         * lib/unistd_.h: New file.
73411
73412 2006-03-07  Simon Josefsson  <jas@extundo.com>
73413
73414         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73415
73416 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73417
73418         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73419         Problem reported by Juan Manuel Guerrero.
73420
73421 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73422
73423         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73424         the unistd module.
73425         * lib/getlogin_r.c: Likewise.
73426         * lib/getlogin_r.h: Likewise.
73427         * lib/glob.c: Likewise.
73428         * lib/pagealign_alloc.c: Likewise.
73429         * lib/unistd_.h: Remove; no longer needed.
73430
73431 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73432
73433         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73434         Add unistd.
73435         * modules/c-stack (Depends-on): Add unistd.
73436         * modules/getlogin_r: Likewise.
73437         * modules/glob: Likewise.
73438         * modules/pagealign_alloc: Likewise.
73439         * modules/unistd (Files): Remove lib/unistd_.h.
73440         (EXTRA_DIST): Remove.
73441         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73442         need unistd_.h.
73443         (MOSTLYCLEANFILES): Remove unistd.h-t.
73444
73445 2006-03-03  Simon Josefsson  <jas@extundo.com>
73446
73447         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73448
73449 2006-03-03  Simon Josefsson  <jas@extundo.com>
73450
73451         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73452         libidn and bison.
73453
73454 2006-03-03  Simon Josefsson  <jas@extundo.com>
73455
73456         * build-aux/maint.mk: Add indent target.
73457
73458 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73459
73460         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73461         our replacement poll.h in any case, to avoid a differing
73462         declaration from a system header.  Seen on AIX.
73463
73464 2006-03-01  Simon Josefsson  <jas@extundo.com>
73465
73466         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73467         <kasal@ucw.cz>.
73468
73469 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73470
73471         * modules/gettime (Depends-on): Add extensions module.
73472         * modules/nanosleep (Depends-on): Likewise.
73473         * modules/settime (Depends-on): Likewise.
73474
73475 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73476
73477         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73478         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73479         pedantically.
73480         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73481         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73482
73483         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73484         not "==".  Reported by Ralf Wildenhues.
73485
73486 2006-03-01  Karl Berry  <karl@gnu.org>
73487
73488         * doc/Copyright/request-*: new files, synced from gnuorg.
73489
73490 2006-03-01  Karl Berry  <karl@gnu.org>
73491
73492         * config/srclist.txt (Copyright/*): new entries.
73493
73494 2006-02-28  Simon Josefsson  <jas@extundo.com>
73495
73496         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73497
73498 2006-02-27  Simon Josefsson  <jas@extundo.com>
73499
73500         * lib/base64.h: Indent #define's.  From Jim Meyering
73501         <jim@meyering.net>.
73502
73503 2006-02-27  Jim Meyering  <jim@meyering.net>
73504
73505         Revert the change of 2006-02-24, so these files can continue
73506         to be sync'd from gettext.
73507         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73508         of `config.h'.
73509
73510 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73511
73512         * modules/intprops: New file.
73513         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73514         Add intprops.
73515         * modules/getloadavg (Files): Remove lib/intprops.h.
73516         (Depends-on): Add intprops.
73517         * modules/human: Likewise.
73518         * modules/inttostr: Likewise.
73519         * modules/openat: Likewise.
73520         * modules/sig2str: Likewise.
73521         * modules/userspec: Likewise.
73522         * modules/utimecmp: Likewise.
73523         * modules/xnanosleep: Likewise.
73524         * modules/xstrtol: Likewise.
73525
73526 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73527
73528         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73529         * modules/lock-tests (TESTS): Use $(EXEEXT).
73530         * modules/tls-tests: Likewise.
73531         * modules/argp-tests: Likewise.
73532         (check_PROGRAMS): New var, replacing...
73533         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73534
73535 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73536
73537         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73538         `config.h'.
73539
73540 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73543
73544 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73545
73546         Sync from coreutils.
73547         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73548         gl_CHDIR_SAFER.
73549
73550 2006-02-22  Jim Meyering  <jim@meyering.net>
73551
73552         Sync from coreutils.
73553         * m4/chdir-safer.m4: New file.
73554
73555 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73556
73557         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73558         AT_FDCWD exceeds INT_MAX.
73559         * lib/openat.h (AT_FDCWD): Likewise.
73560
73561 2006-02-17  Eric Blake  <address@hidden>
73562
73563         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73564
73565 2006-02-16  Simon Josefsson  <jas@extundo.com>
73566
73567         * modules/getaddrinfo (Depends-on): Add sys_socket.
73568
73569 2006-02-15  Simon Josefsson  <jas@extundo.com>
73570
73571         * build-aux/maint.mk: Add dsyntax-check rule.
73572
73573 2006-02-15  Eric Blake  <ebb9@byu.net>
73574
73575         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73576         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73577         'present but cannot compile' warnings on cygwin.
73578         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73579         use ws2tcpip.h if sys/socket.h works.
73580         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73581         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73582
73583 2006-02-14  Simon Josefsson  <jas@extundo.com>
73584
73585         * modules/maintainer-makefile (Files): Rename.
73586
73587         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73588         and (the local) Makefile.cfg to maint-cfg.mk.
73589
73590         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73591         to the latter.
73592
73593         * modules/maintainer-makefile: New module.
73594
73595         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73596         severaly stripped to make it possible to build it up from scratch
73597         with reliable tests.
73598
73599         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73600         fixes to permit overriding the default actions when configure and
73601         makefile are not available.
73602
73603 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         Sync from coreutils.
73606         * modules/lstat (Depends-on): Don't depend on xalloc.
73607         (License): Change from GPL to LGPL, since this is now simply a
73608         replacement for a libc function.
73609
73610 2006-02-14  Jim Meyering  <jim@meyering.net>
73611
73612         Sync from coreutils.
73613
73614         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73615         failure on deficient systems, and simplify gnulib lgpl dependencies.
73616         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73617         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73618
73619         * lib/xalloc-die.c: Remove unused definition of N_.
73620
73621 2006-02-14  Jim Meyering  <jim@meyering.net>
73622
73623         Sync from coreutils.
73624         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73625         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73626         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73627         double-quote uses of that variable, to accommodate the rare case in
73628         which getmntent is available in none of the libraries checked.  This
73629         happens at least on FreeBSD 5.0.
73630
73631 2006-02-13  Simon Josefsson  <jas@extundo.com>
73632
73633         * gnulib-tool (Usage): Fix --import, from
73634         karl@freefriends.org (Karl Berry).
73635
73636 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73637
73638         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73639
73640 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73641
73642         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73643         "autoupdate" on 2005-12-12.
73644
73645 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73646
73647         * modules/closeout (Depends-on): Remove atexit.
73648
73649 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73650
73651         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73652         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73653
73654 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73657         __EXTENSIONS__ if this causes compilation to fail.  Problem
73658         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73659         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73660
73661 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73662
73663         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73664         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73665         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73666         All uses changed.
73667
73668 2006-01-26  Simon Josefsson  <jas@extundo.com>
73669
73670         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73671         prototype is visible on mingw32.
73672
73673         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73674         for mingw32.
73675
73676         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73677         mingw32).
73678
73679 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73682         attempt to open for write; this always fails, at least on POSIX
73683         hosts.  This reinstates the 2006-01-09 change, which was
73684         inadvertently removed.
73685
73686 2006-01-26  Bruno Haible  <bruno@clisp.org>
73687
73688         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73689         Reported by Paul Eggert.
73690
73691 2006-01-26  Bruno Haible  <bruno@clisp.org>
73692             Paul Eggert  <eggert@cs.ucla.edu>
73693
73694         * lib/stdbool_.h (_Bool)
73695         [(! (defined __cplusplus || defined __BEOS__)
73696           && !defined __GNUC__
73697           && !(defined __HP_cc || defined __xlc__
73698                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73699                || defined __sgi))]:
73700         #define to signed char in these cases too; this simplifies
73701         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73702         etc., separately) and makes it more conservative.
73703
73704 2006-01-25  Simon Josefsson  <jas@extundo.com>
73705
73706         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73707         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73708         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73709
73710 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73711
73712         * lib/argp-namefrob.h: Bugfix. Remove stray #
73713
73714 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73715
73716         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73717         so that we test the test.
73718         Check for yet another HP-UX cc bug involving *bool |= bool.
73719
73720 2006-01-25  Karl Berry  <karl@gnu.org>
73721
73722         * config/srclist.txt (vasnprintf.c): sync lost.
73723
73724 2006-01-25  Jim Meyering  <jim@meyering.net>
73725
73726         Sync from the stable (b5) branch of coreutils:
73727
73728         * lib/fts.c (fts_children): Don't let close() clobber errno from
73729         failed fchdir().
73730
73731         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73732         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73733         a dangling symlink.  That can also happen at least for ELOOP.
73734         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73735         FYI, this bug predates the inclusion of fts.c in coreutils.
73736
73737         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73738         in their own block, so pre-c99 compilers don't object.
73739
73740         Avoid the double-free (first in fts_read, second in fts_close) that
73741         would occur when an `active' directory is made inaccessible (e.g.,
73742         via chmod a-x) during a traversal.
73743         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73744         before returning.  Reproduce this failure by
73745         mkdir -p a/b; cd a; chmod a-x . b
73746         Reported by Stavros Passas.
73747
73748 2006-01-25  Jim Meyering  <jim@meyering.net>
73749
73750         * lib/fileblocks.c: Remove more useless parentheses.
73751         * lib/readutmp.h: Likewise.
73752
73753 2006-01-25  Bruno Haible  <bruno@clisp.org>
73754
73755         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73756         warnings.
73757         Reported by Paul Eggert.
73758
73759 2006-01-25  Bruno Haible  <bruno@clisp.org>
73760
73761         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73762         rid of a trap command. For Solaris sh.
73763         Reported by Mark D. Baushke <mdb@gnu.org>.
73764
73765 2006-01-24  Simon Josefsson  <jas@extundo.com>
73766
73767         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73768         Bruno.
73769
73770 2006-01-24  Karl Berry  <karl@gnu.org>
73771
73772         * config/srclist.txt (argp-namefrob.h): sync lost.
73773
73774 2006-01-24  Jim Meyering  <jim@meyering.net>
73775
73776         * modules/openat (Files): Add lib/intprops.h.
73777         From Mark D. Baushke.
73778
73779 2006-01-24  Jim Meyering  <jim@meyering.net>
73780
73781         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73782         Reported by Mark D. Baushke.
73783
73784 2006-01-24  Jim Meyering  <jim@meyering.net>
73785
73786         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73787
73788 2006-01-24  Bruno Haible  <bruno@clisp.org>
73789
73790         * modules/strnlen (Maintainer): Change from glibc to all.
73791
73792 2006-01-24  Bruno Haible  <bruno@clisp.org>
73793
73794         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73795         Patch by Paul Eggert.
73796
73797 2006-01-24  Bruno Haible  <bruno@clisp.org>
73798
73799         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73800         already has it.
73801         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73802         2005-11-26.
73803
73804         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73805         'signed char' to avoid problems with the built-in _Bool type.
73806         Reported by Paul Eggert on 2005-11-26.
73807
73808 2006-01-24  Bruno Haible  <bruno@clisp.org>
73809
73810         * gnulib-tool (func_import): Avoid constructing complicated sed
73811         expressions inside backquote.
73812         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73813
73814 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73815
73816         These changes imported from libc.
73817         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73818         test and two separate function calls.
73819         * lib/strndup.c (__strndup): Add libc_hidden_def.
73820
73821 2006-01-23  Simon Josefsson  <jas@extundo.com>
73822
73823         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73824         Remove the test_*_SOURCES variable: automake infers it by default.
73825         * modules/tls-tests: Likewise.
73826
73827 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73828
73829         Work around porting bugs reported by Dieter in
73830         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73831         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73832         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73833         Include "getopt.h" first, to check interface.
73834         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73835         !HAVE_DECL_GETENV.
73836         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73837         (__strndup): Revert to K&R-style function dfns, the glibc style.
73838         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73839         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73840         Include strnlen.h first, to get prototype properly.
73841         (strnlen): Renamed from __strnlen.
73842         Remove weak alias.
73843
73844 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73845
73846         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73847
73848 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         * config/srclist.txt: Adjust to reflect glibc reorganization.
73851         This affects only comments.
73852
73853 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73854
73855          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73856          Reported by Bruce Korb <bkorb@gnu.org>.
73857
73858 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73859
73860         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73861         to pacify gcc -Wswitch-default.
73862
73863 2006-01-22  Bruno Haible  <bruno@clisp.org>
73864
73865         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73866         temporary buffer for sprintf, take into account the precision also
73867         for 'd', 'i', 'u', 'o', 'x', 'X'.
73868
73869 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73870
73871         * modules/argp-tests: New module
73872         * tests/test-argp.c: New file
73873         * tests/test-argp-2.sh: New file
73874
73875 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73876
73877         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73878         (__argp_base_name): Removed
73879         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73880         typo.
73881         (__argp_base_name): Provide macro definition or extern declaration
73882         depending on the configuration
73883
73884 2006-01-20  Simon Josefsson  <jas@extundo.com>
73885
73886         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73887
73888 2006-01-20  Simon Josefsson  <jas@extundo.com>
73889
73890         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73891
73892 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73893
73894         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73895         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73896         Suggested by Bruno Haible.
73897
73898 2006-01-20  Karl Berry  <karl@gnu.org>
73899
73900         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73901         until changes propagate, I guess.
73902
73903 2006-01-19  Simon Josefsson  <jas@extundo.com>
73904
73905         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73906
73907 2006-01-19  Simon Josefsson  <jas@extundo.com>
73908
73909         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73910
73911 2006-01-19  Simon Josefsson  <jas@extundo.com>
73912
73913         * gnulib-tool: Set check_PROGRAMS.
73914
73915         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73916         modules/des-tests, modules/gc-arcfour-tests,
73917         modules/gc-arctwo-tests, modules/gc-des-tests,
73918         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73919         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73920         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73921         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73922         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73923         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73924         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73925         test_*_SOURCES.
73926
73927 2006-01-18  Simon Josefsson  <jas@extundo.com>
73928
73929         * modules/socklen (Depends-on): Depend on sys_socket.
73930
73931 2006-01-18  Simon Josefsson  <jas@extundo.com>
73932
73933         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73934         modules/des-tests, modules/gc-arcfour-tests,
73935         modules/gc-arctwo-tests, modules/gc-des-tests,
73936         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73937         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73938         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73939         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73940         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73941         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73942         $(EXEEXT) to automake TESTS variable, for mingw32.
73943
73944 2006-01-17  Simon Josefsson  <jas@extundo.com>
73945
73946         * modules/socklen (Include): Need sys/socket.h.
73947
73948 2006-01-17  Bruno Haible  <bruno@clisp.org>
73949
73950         * modules/ssize_t (Include): Add <sys/types.h>.
73951
73952 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73955         it's not portable and it doesn't work with cross-compiles.
73956         Problem reported by Bruno Haible.  Fix missing-$ typo in
73957         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73958         -zignore from being used with Sun's C compiler.
73959
73960 2006-01-12  Simon Josefsson  <jas@extundo.com>
73961
73962         * lib/base64.c: Fix warning, reported by Bruno Haible
73963         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73964
73965 2006-01-12  Bruno Haible  <bruno@clisp.org>
73966
73967         * modules/ldd: New file.
73968         * build-aux/ldd.sh.in: New file.
73969         * MODULES.html.sh (Support for building libraries and executables): Add
73970         ldd.
73971
73972 2006-01-12  Bruno Haible  <bruno@clisp.org>
73973
73974         * m4/ldd.m4: New file.
73975
73976 2006-01-12  Bruno Haible  <bruno@clisp.org>
73977
73978         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73979         endless loop while replacing $auxdir with build-aux.
73980
73981 2006-01-11  Simon Josefsson  <jas@extundo.com>
73982
73983         * lib/stdint_.h (SIZE_MAX): Add missing (.
73984
73985 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73986
73987         Sync from coreutils.
73988         * lib/md5.c: Fix commentary typos.
73989         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73990         * lib/md5.h (__attribute__): Remove; unused.
73991         * lib/sha1.c: Fix commentary to match md5 better.
73992         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73993         so that we don't need to worry about alignment.  All uses changed.
73994         This merges the 2005-10-28 md5 change into sha1.
73995
73996 2006-01-11  Jim Meyering  <jim@meyering.net>
73997
73998         Sync from coreutils.
73999         * lib/md5.c (OP): Fix spacing.
74000
74001 2006-01-11  Bruno Haible  <bruno@clisp.org>
74002
74003         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74004         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74005         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74006
74007 2006-01-11  Bruno Haible  <bruno@clisp.org>
74008
74009         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74010         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74011         the "early" section as well.
74012
74013 2006-01-11  Bruno Haible  <bruno@clisp.org>
74014
74015         Avoid "ar: no archive members specified" error on MacOS X.
74016         * gnulib-tool (func_modules_add_dummy): New function.
74017         (func_import, func_create_testdir): Invoke it.
74018
74019 2006-01-11  Bruno Haible  <bruno@clisp.org>
74020
74021         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74022         with $auxdir in AC_CONFIG_FILES statements.
74023
74024 2006-01-11  Bruno Haible  <bruno@clisp.org>
74025
74026         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74027         Initialize also noinst_HEADERS to empty.
74028
74029 2006-01-11  Bruno Haible  <bruno@clisp.org>
74030
74031         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74032         variables.
74033         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74034         autoreconf.
74035
74036 2006-01-11  Bruno Haible  <bruno@clisp.org>
74037
74038         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74039         overridable by the user.
74040         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74041
74042 2006-01-10  Simon Josefsson  <jas@extundo.com>
74043
74044         * modules/sys_socket: New file.
74045
74046 2006-01-10  Simon Josefsson  <jas@extundo.com>
74047
74048         * m4/sys_socket_h.m4: New file.
74049
74050 2006-01-10  Simon Josefsson  <jas@extundo.com>
74051
74052         * lib/socket_.h: New file.
74053
74054 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74055
74056         * modules/readutmp (Maintainer): Add myself.
74057
74058 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74059
74060         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74061         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74062         People who are still concerned with buggy memcmp implementations
74063         can invoke gl_FUNC_MEMCMP themselves.
74064
74065 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74066
74067         * lib/regex_internal.h (BITSET_WORD_BITS):
74068         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74069         preprocessor mishandles large unsigned values as if they were signed.
74070         Problem reported by Claudio Fontana in
74071         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74072
74073 2006-01-10  Jim Meyering  <jim@meyering.net>
74074
74075         Avoid the double-free (first in fts_read, second in fts_close) that
74076         would occur when an `active' directory is made inaccessible (e.g.,
74077         via chmod a-x) during a traversal.
74078         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74079         before returning.  Reproduce this failure by
74080         mkdir -p a/b; cd a; chmod a-x . b
74081         Reported by Stavros Passas.
74082
74083         Sync from coreutils.
74084         * lib/sha1.c: Tweak grammar in a comment.
74085
74086 2006-01-10  Jim Meyering  <jim@meyering.net>
74087
74088         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74089         Patch by Joerg Sonnenberger.
74090
74091 2006-01-10  Bruno Haible  <bruno@clisp.org>
74092
74093         * modules/readutmp: Depend on module free.
74094         * modules/strtok_r: Depend on module restrict.
74095
74096 2006-01-10  Bruno Haible  <bruno@clisp.org>
74097
74098         * modules/gettext (configure.ac): Add an invocation of
74099         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74100
74101 2006-01-10  Bruno Haible  <bruno@clisp.org>
74102
74103         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74104         Reported by Werner Lemberg <wl@gnu.org>.
74105
74106 2006-01-10  Bruno Haible  <bruno@clisp.org>
74107
74108         * lib/localcharset.c: Update from GNU gettext.
74109
74110 2006-01-10  Bruno Haible  <bruno@clisp.org>
74111
74112         * lib/argp.h (__const): Remove macro. Use const instead.
74113         * lib/argp-fmtstream.h (__const): Likewise.
74114         * lib/glob_.h (__const): Remove macro.
74115         * lib/glob-libc.h: Use const instead of __const.
74116
74117 2006-01-10  Bruno Haible  <bruno@clisp.org>
74118
74119         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74120         variable.
74121         Needed to avoid an automake error regarding the 'gettext' module.
74122
74123 2006-01-09  Simon Josefsson  <jas@extundo.com>
74124
74125         * modules/inet_ntop (Depends-on): Add restrict.
74126
74127 2006-01-09  Simon Josefsson  <jas@extundo.com>
74128
74129         * modules/gc-rijndael-tests (License): Put under LGPL.
74130
74131         * modules/gc-des-tests (License): Likewise.
74132
74133         * modules/gc-arcfour-tests (License): Likewise.
74134
74135         * modules/gc-arctwo-tests (License): Likewise.
74136
74137         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74138
74139         * modules/gc-hmac-sha1-tests (Files): Likewise.
74140
74141         * modules/gc-hmac-md5-tests (License): Likewise.
74142
74143         * modules/gc-sha1-tests (License): Likewise.
74144
74145         * modules/gc-md5-tests (License): Likewise.
74146
74147         * modules/gc-md4-tests (License): Likewise.
74148
74149         * modules/gc-md2-tests (License): Likewise.
74150
74151         * modules/gc-tests (License): Likewise.
74152
74153         * modules/des-tests (License): Likewise.
74154
74155         * modules/md4-tests (License): Likewise.
74156
74157         * modules/md2-tests (License): Likewise.
74158
74159 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74160
74161         Sync from coreutils:
74162
74163         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74164         * modules/lib-ignore: New file.
74165         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74166         chdir-safer.m4, lchmod.m4.
74167         * modules/openat: Add mkdirat.c, openat-priv.h.
74168
74169 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         Sync from coreutils.
74172         * m4/lib-ignore.m4: New file.
74173         * m4/lchmod.m4: New file.
74174
74175 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74176
74177         Sync from coreutils.
74178         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74179         for write access: POSIX says that must fail.
74180         * lib/fts.c (diropen): Likewise.
74181         * lib/save-cwd.c (save_cwd): Likewise.
74182         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74183         well, for minor improvements on hosts that lack O_DIRECTORY.
74184         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74185         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74186         Fall back on chown if open failed with EACCES.
74187
74188         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74189         Report an error at compile-time if only a 1-second nominal clock
74190         resolution is found.
74191
74192         * lib/lchmod.h: New file.
74193         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74194         (make_dir_parents): Use lchown rather than chown, and
74195         lchmod rather than chmod.
74196
74197         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74198         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74199         "proc" reported by n0dalus.
74200
74201         * lib/mountlist.c: Include <limits.h>.
74202         (dev_from_mount_options)
74203         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74204         New function.  It no longer assumes "dev=" has the System V meaning
74205         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74206         (read_file_system_list)
74207         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74208         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74209         dev= in that case.
74210
74211         * lib/posixtm.h (PDS_PRE_2000): New macro.
74212         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74213         allow_century.  All usages changed.  Reject dates outside the range
74214         1969-1999 if PDS_PRE_2000 is used.
74215
74216 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74217
74218         Sync from coreutils.
74219         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74220         (Time of day items): Mention the possibility of leap seconds.
74221         Problem reported by Dr. David Alan Gilbert.
74222
74223 2006-01-09  Jim Meyering  <jim@meyering.net>
74224
74225         Sync from coreutils.
74226
74227         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74228
74229         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74230
74231         * lib/modechange.c (mode_compile): Reject an invalid mode string
74232         that starts with an octal digit.  From Andreas Gruenbacher.
74233
74234         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74235         and dup to open_safer and dup_safer, respectively.
74236         (openat_permissive): Fix typo in comment.
74237
74238         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74239         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74240         (_): Remove; no longer needed.
74241         (openat): Renamed from rpl_openat; no need for rpl_openat
74242         since openat.h renames openat for us.
74243         Replace most of the body with a call to openat_permissive,
74244         to avoid duplicate code.
74245         Port to (probably hypothetical) environments were mode_t is
74246         wider than int.
74247         (openat_permissive): Require mode arg, so that we can check
74248         types better.  Put it just after flags.  Change cwd failure
74249         indicator from pointer-to-bool to pointer-to-errno-value.
74250         All callers changed.
74251         Invoke openat_save_fail and/or openat_restore_fail if
74252         cwd_errno is null, so that openat can call us.
74253         (openat_permissive, fdopendir, fstatat, unlinkat):
74254         Simplify errno handling to avoid some duplicate code,
74255         as it's OK to set errno on success.
74256         * lib/openat.h: Revamp code so that function macros depend on
74257         __OPENAT_PREFIX only, not also on AT_FDCWD.
74258         (openat_ro): Remove.  Caller changed to use openat_permissive.
74259         (openat_permissive): Now a macro, if not a function.
74260         (openat_restore_fail, openat_save_fail): Now always functions,
74261         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74262
74263         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74264         and openat.c.
74265         * lib/mkdirat.c: Include openat-priv.h.
74266         Remove definitions of macros defined therein.
74267         * lib/openat.c: Likewise.
74268
74269         * lib/mkdirat.c (mkdirat): New file and function.
74270         * lib/openat.h (mkdirat): Declare.
74271
74272         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74273
74274         * lib/openat.h (openat_permissive): Declare.
74275         (openat_ro): Define.
74276
74277         * lib/openat.c (EXPECTED_ERRNO): New macro.
74278         (openat_permissive): New function -- used in remove.c rewrite.
74279         (all functions): Set errno just before returning, only if there
74280         was an actual failure.
74281         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74282
74283         Emulate openat-family functions using Linux's procfs, if possible.
74284         Idea and some code based on Ulrich Drepper's glibc changes.
74285
74286         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74287         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74288         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74289         before falling back on save_cwd and restore_cwd.
74290         (fdopendir, fstatat, unlinkat): Likewise.
74291
74292         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74293         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74294
74295         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74296         as second argument to va_arg.  Otherwise, some versions of gcc
74297         warn that `if this code is reached, the program will abort'.
74298
74299 2006-01-09  Jim Meyering  <jim@meyering.net>
74300
74301         Sync from coreutils.
74302         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74303         Require openat-priv.h.
74304
74305 2006-01-09  Bruno Haible  <bruno@clisp.org>
74306
74307         * modules/strnlen (Include): Use strnlen.h.
74308
74309 2006-01-09  Bruno Haible  <bruno@clisp.org>
74310
74311         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74312
74313 2006-01-09  Bruno Haible  <bruno@clisp.org>
74314
74315         * lib/sysexit_.h (EX_OK): New macro.
74316         Suggested by Martin Lambers <marlam@marlam.de>.
74317
74318 2006-01-09  Bruno Haible  <bruno@clisp.org>
74319
74320         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74321         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74322
74323 2006-01-09  Bruno Haible  <bruno@clisp.org>
74324
74325         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74326         numbers.
74327
74328 2006-01-09  Bruno Haible  <bruno@clisp.org>
74329
74330         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74331         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74332         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74333         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74334
74335 2006-01-09  Bruno Haible  <bruno@clisp.org>
74336
74337         * build-aux/javacomp.sh.in: New file, moved from lib/.
74338         * modules/javacomp-script (Files): Update.
74339         (configure.ac): Add AC_CONFIG_FILES invocation.
74340         (EXTRA_DIST): Remove variable.
74341
74342         * build-aux/javaexec.sh.in: New file, moved from lib/.
74343         * modules/javaexec (Files): Update.
74344         (configure.ac): Add AC_CONFIG_FILES invocation.
74345         (EXTRA_DIST): Remove javaexec.sh.in.
74346
74347         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74348         * modules/csharpcomp-script (Files): Update.
74349         (configure.ac): Add AC_CONFIG_FILES invocation.
74350         (EXTRA_DIST): Remove variable.
74351
74352         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74353         * modules/csharpexec (Files): Update.
74354         (configure.ac): Add AC_CONFIG_FILES invocation.
74355         (EXTRA_DIST): Remove csharpexec.sh.in.
74356
74357 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74358
74359         Sync from coreutils.
74360
74361         Add POSIX ACL support
74362         * lib/acl.h (copy_acl, set_acl): Add declarations.
74363         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74364         systems other than Linux.
74365         (chmod_or_fchmod): New function: use fchmod when possible,
74366         and chmod otherwise.
74367         (file_has_acl): Add a POSIX ACL implementation, with a
74368         Linux-specific subcase.
74369         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74370         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74371         acls are unsupported.
74372         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74373         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74374         are unsupported.
74375
74376 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74377
74378         Sync from coreutils.
74379         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74380
74381 2006-01-07  Bruno Haible  <bruno@clisp.org>
74382
74383         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74384         gl_EARLY.
74385
74386 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74389         Problem reported for Mingw by Mark Junker.
74390
74391 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74392
74393         * README: Gnulib normally doesn't generate a tarball.
74394
74395 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74396
74397         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74398         long int, not int, for nanosecond counts, so that people who are
74399         used to POSIX struct timespec won't be surprised.  Reported by Jim
74400         Meyering.
74401
74402 2005-12-28  Bruno Haible  <bruno@clisp.org>
74403
74404         * build-aux/config.rpath: Update from GNU gettext.
74405
74406 2005-12-16  Jim Meyering  <jim@meyering.net>
74407
74408         * modules/fprintftime: New module.
74409         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74410
74411 2005-12-16  Jim Meyering  <jim@meyering.net>
74412
74413         * m4/fprintftime.m4: New file.
74414
74415 2005-12-16  Jim Meyering  <jim@meyering.net>
74416
74417         * lib/fprintftime.c, lib/fprintftime.h: New files.
74418
74419 2005-12-15  Simon Josefsson  <jas@extundo.com>
74420
74421         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74422         new m4/socklen.m4.
74423
74424 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74425
74426         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74427         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74428
74429 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74430
74431         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74432         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74433         struct uparams is valid. Fall back to the default values if it is
74434         not.
74435
74436 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74437
74438         * modules/argp (Files): Add argp-pin.c
74439         (Depends-on): dirname
74440         (lib_SOURCES): Add argp-pin.c
74441
74442 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74443
74444         * m4/argp.m4:  Check if program_invocation_name and
74445         program_invocation_short_name are declared and define appropriate
74446         macros if they are not.
74447
74448 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74449
74450         * lib/argp-help.c (__argp_base_name): New function
74451         (__argp_short_program_name): Rewrite using __argp_base_name
74452         * lib/argp-namefrob.h: Define program_invocation_name and
74453         program_invocation_short_name if requested
74454         (__argp_base_name): Add prototype
74455         * lib/argp-parse.c (argp_def): Use gettext wrappers
74456         (argp_default_parser): Use __argp_base_name
74457         * lib/argp-pin.c: New file. Defines program_invocation_name and
74458         program_invocation_short_name on systems that lack them.
74459
74460 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74461
74462         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74463         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74464         porting problem reported by Georg Schwarz in
74465         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74466
74467 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74468
74469         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74470         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74471         porting problem reported by Georg Schwarz in
74472         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74473
74474 2005-12-05  Bruno Haible  <bruno@clisp.org>
74475
74476         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74477         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74478         Reported by Mark Junker <mjscod@gmx.de>.
74479
74480 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74481
74482         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74483         Use implementation from Albert Chin, with some
74484         comments/corrections by Stepan Kasal and myself.
74485
74486 2005-12-02  Bruno Haible  <bruno@clisp.org>
74487
74488         * gnulib-tool (func_import): Accept GPLed build tool modules when
74489         --lgpl is given.
74490         * modules/csharpcomp-script: New file.
74491         * modules/csharpcomp: Depend on it.
74492         * modules/javacomp-script: New file.
74493         * modules/javacomp: Depend on it.
74494         Suggested by Simon Josefsson.
74495
74496 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74497
74498         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74499         statement, to work around an HP-UX 10.20 compiler bug reported by
74500         Peter O'Gorman.
74501
74502 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74503
74504         * modules/savedir (Depends-on): Add openat.
74505
74506 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74507
74508         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74509         (uintmax_t) [defined uintmax_t]: Do not declare.
74510         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74511         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74512         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74513         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74514         sake of portability to weird hosts that C allows (though we don't
74515         know of any practical examples).
74516
74517         * lib/savedir.h (fdsavedir): New decl.
74518         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74519         contains most of the former guts of savedir.
74520         (savedir): Use savedirstream.
74521         Include "openat.h".
74522
74523 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74524
74525         * modules/obstack (Files): Add m4/ulonglong.m4.
74526         Problem reported by Davide Angelocola.
74527
74528 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74529
74530         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74531         coreutils no longer futzes with rounding modes.
74532
74533 2005-11-14  Jim Meyering  <jim@meyering.net>
74534
74535         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74536         replacement of mkstemp.
74537
74538 2005-11-10  Simon Josefsson  <jas@extundo.com>
74539
74540         * lib/readline.c: Remove EOL.
74541
74542 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74543
74544         * modules/gethrxtime (Depends-on): Add gettime.
74545
74546 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74547
74548         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74549         or gettimeofday; no longer needed.
74550
74551 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74552
74553         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74554         time business.
74555         (gethrxtime) [! (HAVE_NANOUPTIME
74556         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74557         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74558         our own approximation.
74559
74560 2005-11-08  Eric Blake  <ebb9@byu.net>
74561
74562         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74563
74564 2005-11-08  Eric Blake  <ebb9@byu.net>
74565
74566         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74567
74568 2005-11-04  Bruno Haible  <bruno@clisp.org>
74569
74570         * gnulib-tool: Implement --update mode.
74571
74572 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74573
74574         Fix porting problem reported by Theodoros V. Kalamatianos.
74575         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74576         Don't assume that futimes failing means we must fail.
74577
74578 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74579
74580         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74581         variables to suggest the intended function of the PATH_MAX check.
74582
74583 2005-10-30  Kean Johnston  <jkj@sco.com>
74584
74585         Trivial changes to support SCO systems.
74586         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74587         as PATH_MAX.
74588         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74589         where __ptr is null when no I/O is pending.
74590
74591 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74592
74593         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74594         leave errno alone.  Problem reported by Dmitry V. Levin.
74595
74596 2005-10-28  Simon Josefsson  <jas@extundo.com>
74597
74598         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74599         Test more.
74600
74601         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74602
74603         * modules/md2, modules/md2-tests: New files.
74604
74605 2005-10-28  Simon Josefsson  <jas@extundo.com>
74606
74607         * m4/inet_ntop.m4: More tests.
74608
74609         * m4/gc-md2.m4, md2.m4: New file.
74610
74611 2005-10-28  Simon Josefsson  <jas@extundo.com>
74612
74613         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74614         "restrict" keywords, as per POSIX.  Protect the function
74615         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74616         Don't use K&R prototypes.  Check the sprintf return values.
74617         Re-define EAFNOSUPPORT if not present.  Indent.
74618
74619         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74620         suggested by Bruno Haible <bruno@clisp.org>.
74621
74622         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74623
74624         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74625
74626         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74627         libgcrypt).
74628
74629         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74630
74631         * lib/md2.h, lib/md2.c: New files.
74632
74633 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74634
74635         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74636         errno alone.  Problem reported by Frederic Jolliton.
74637
74638 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74639
74640         * modules/verify (License): Change from GPL to LGPL.  This is a
74641         tiny module and there are apparently near-equivalents that are
74642         under the BSD license.
74643
74644 2005-10-24  Simon Josefsson  <jas@extundo.com>
74645
74646         * modules/sha1: Relicense to LGPL.
74647
74648 2005-10-24  Simon Josefsson  <jas@extundo.com>
74649
74650         * lib/md4.h: Shrink buffer size, now that we changed the type.
74651
74652 2005-10-23  Simon Josefsson  <jas@extundo.com>
74653
74654         * gnulib-tool (func_import): Fix --tests-base.
74655
74656 2005-10-22  Simon Josefsson  <jas@extundo.com>
74657
74658         * modules/arcfour (Depends-on): Need stdint.
74659
74660 2005-10-22  Simon Josefsson  <jas@extundo.com>
74661
74662         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74663         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74664
74665 2005-10-22  Simon Josefsson  <jas@extundo.com>
74666
74667         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74668         suggested by Bruno Haible <bruno@clisp.org>.
74669
74670 2005-10-22  Simon Josefsson  <jas@extundo.com>
74671
74672         * lib/crc.h: Include stddef.h, for size_t.
74673
74674 2005-10-22  Simon Josefsson  <jas@extundo.com>
74675
74676         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74677         arcfour_context struct (simplify test vector testing in GNU
74678         Shishi).
74679
74680 2005-10-21  Simon Josefsson  <jas@extundo.com>
74681
74682         * modules/des, modules/des-tests: New files.
74683
74684         * modules/gc-des, modules/gc-des-tests: New files.
74685
74686         * tests/test-des.c, tests/test-gc-des.c: New file.
74687
74688 2005-10-21  Simon Josefsson  <jas@extundo.com>
74689
74690         * modules/arctwo, modules/arctwo-tests: New files.
74691
74692         * tests/test-arctwo.c: New file.
74693
74694         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74695
74696         * tests/test-gc-arctwo.c: New file.
74697
74698 2005-10-21  Simon Josefsson  <jas@extundo.com>
74699
74700         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74701         Bruno Haible <bruno@clisp.org>.
74702
74703         * m4/gc-des.m4: New file.
74704
74705 2005-10-21  Simon Josefsson  <jas@extundo.com>
74706
74707         * m4/arctwo.m4: New file.
74708
74709         * m4/gc-arctwo.m4: New file.
74710
74711 2005-10-21  Simon Josefsson  <jas@extundo.com>
74712
74713         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74714         block.
74715
74716 2005-10-21  Simon Josefsson  <jas@extundo.com>
74717
74718         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74719         <bruno@clisp.org>.
74720
74721         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74722
74723         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74724         Bruno Haible <bruno@clisp.org>.
74725
74726         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74727         <bruno@clisp.org>.
74728
74729 2005-10-21  Simon Josefsson  <jas@extundo.com>
74730
74731         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74732
74733 2005-10-21  Simon Josefsson  <jas@extundo.com>
74734
74735         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74736
74737 2005-10-21  Simon Josefsson  <jas@extundo.com>
74738
74739         * lib/des.h, lib/des.c: New files.
74740
74741         * lib/gc-gnulib.c: Support DES.c
74742
74743 2005-10-21  Simon Josefsson  <jas@extundo.com>
74744
74745         * lib/arctwo.h, lib/arctwo.c: New files.
74746
74747         * lib/gc-gnulib.c: Support ARCTWO.
74748
74749 2005-10-21  Simon Josefsson  <jas@extundo.com>
74750
74751         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74752         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74753
74754 2005-10-21  Simon Josefsson  <jas@extundo.com>
74755
74756         * gnulib-tool (func_import, func_create_testdir): Define automake
74757         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74758         Makefile.am snippet),
74759         suggested by Bruno Haible <bruno@clisp.org>.
74760
74761         * modules/gc (Makefile.am): Use it.
74762
74763 2005-10-21  Bruno Haible  <bruno@clisp.org>
74764
74765         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74766         patch.
74767
74768 2005-10-19  Simon Josefsson  <jas@extundo.com>
74769
74770         * tests/test-gc-rijndael.c: New file.
74771
74772         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74773
74774 2005-10-19  Simon Josefsson  <jas@extundo.com>
74775
74776         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74777         interface too.
74778
74779 2005-10-19  Simon Josefsson  <jas@extundo.com>
74780
74781         * tests/test-gc-arcfour.c: New file.
74782
74783         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74784
74785 2005-10-19  Simon Josefsson  <jas@extundo.com>
74786
74787         * modules/gc-md4, modules/gc-md4-tests: New file.
74788
74789         * tests/test-gc-md4.c: New file.
74790
74791 2005-10-19  Simon Josefsson  <jas@extundo.com>
74792
74793         * m4/gc-md4.m4: New file.
74794
74795 2005-10-19  Simon Josefsson  <jas@extundo.com>
74796
74797         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74798         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74799         <kasal@ucw.cz>.
74800
74801 2005-10-19  Simon Josefsson  <jas@extundo.com>
74802
74803         * m4/gc-arcfour.m4: New file.
74804
74805         * m4/gc-rijndael.m4: New file.
74806
74807 2005-10-19  Simon Josefsson  <jas@extundo.com>
74808
74809         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74810
74811 2005-10-19  Simon Josefsson  <jas@extundo.com>
74812
74813         * lib/gc-gnulib.c: Support ARCFOUR.
74814
74815 2005-10-19  Simon Josefsson  <jas@extundo.com>
74816
74817         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74818         support.
74819
74820         * lib/gc.h: Add ECB enum type.
74821
74822         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74823
74824 2005-10-18  Simon Josefsson  <jas@extundo.com>
74825
74826         * tests/test-md5.c: New file.
74827
74828         * modules/md5-tests: New file.
74829
74830 2005-10-18  Simon Josefsson  <jas@extundo.com>
74831
74832         * tests/test-md4.c: New file.
74833
74834         * modules/md4, modules/md4-tests: New files.
74835
74836 2005-10-18  Simon Josefsson  <jas@extundo.com>
74837
74838         * m4/md4.m4: New file.
74839
74840 2005-10-18  Simon Josefsson  <jas@extundo.com>
74841
74842         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74843
74844 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74845
74846         * gnulib-tool (func_create_testdir): Omit the second check whether
74847         BUILT_SOURCES in nonempty.
74848
74849 2005-10-17  Simon Josefsson  <jas@extundo.com>
74850
74851         * tests/test-rijndael.c: New file.
74852
74853 2005-10-17  Simon Josefsson  <jas@extundo.com>
74854
74855         * modules/sha1: Depend on stdint instead of md5.
74856
74857         * modules/md5: Depend on stdint, remove uint32_t.
74858
74859 2005-10-17  Simon Josefsson  <jas@extundo.com>
74860
74861         * modules/gc-sha1-tests: New file.
74862
74863         * tests/test-gc-sha1.c: New file.
74864
74865 2005-10-17  Simon Josefsson  <jas@extundo.com>
74866
74867         * m4/md5.m4: Remove call to uint32_t.m4.
74868
74869 2005-10-17  Simon Josefsson  <jas@extundo.com>
74870
74871         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74872
74873         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74874         md5.h.
74875
74876         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74877
74878         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74879
74880 2005-10-17  Simon Josefsson  <jas@extundo.com>
74881
74882         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74883
74884 2005-10-17  Simon Josefsson  <jas@extundo.com>
74885
74886         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74887
74888 2005-10-17  Simon Josefsson  <jas@extundo.com>
74889
74890         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74891
74892         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74893
74894 2005-10-17  Bruno Haible  <bruno@clisp.org>
74895
74896         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74897         that it can also be used in a test.
74898
74899 2005-10-16  Bruno Haible  <bruno@clisp.org>
74900
74901         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74902         TESTS_ENVIRONMENT, so that individual tests can augment it.
74903
74904         * gnulib-tool (func_create_testdir): Use an intermediate target for
74905         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74906         macros, like $(ALLOCA_H), which cannot be passed through the command
74907         line.
74908
74909 2005-10-15  Simon Josefsson  <jas@extundo.com>
74910
74911         * modules/rijndael-tests: New file.
74912
74913         * modules/rijndael: New file.
74914
74915 2005-10-15  Simon Josefsson  <jas@extundo.com>
74916
74917         * m4/rijndael.m4: New file.
74918
74919 2005-10-15  Simon Josefsson  <jas@extundo.com>
74920
74921         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74922
74923         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74924
74925 2005-10-14  Simon Josefsson  <jas@extundo.com>
74926
74927         * tests/test-arcfour.c: New file.
74928
74929         * modules/arcfour, modules/arcfour-tests: New files.
74930
74931 2005-10-14  Simon Josefsson  <jas@extundo.com>
74932
74933         * m4/arcfour.m4: New file.
74934
74935 2005-10-14  Simon Josefsson  <jas@extundo.com>
74936
74937         * lib/arcfour.h, lib/arcfour.c: New files.
74938
74939 2005-10-14  Roland McGrath  <roland@redhat.com>
74940
74941         Import from libc.  [BZ #1331]
74942         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74943         macro argument.
74944         Reported by Matej Vela <vela@debian.org>.
74945
74946 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74949         include <wchar.h>; no longer needed.
74950
74951 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74952
74953         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74954
74955 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74956         and  Ulrich Drepper  <drepper@redhat.com>
74957
74958         Import from libc.
74959         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74960         instead of inline stream orientation test and two separate
74961         function calls.  Pay no attention to USE_IN_LIBIO.
74962
74963 2005-10-13  Simon Josefsson  <jas@extundo.com>
74964
74965         * modules/gc-hmac-md5-tests: New file.
74966
74967         * tests/test-gc-hmac-sha1.c: New file.
74968
74969         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74970
74971         * modules/gc-hmac-md5-tests: New file.
74972
74973         * tests/test-gc-md5.c: New file.
74974
74975         * modules/gc-md5-tests: New file.
74976
74977 2005-10-13  Simon Josefsson  <jas@extundo.com>
74978
74979         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74980         Move memory allocation outside of loop.
74981
74982 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74983
74984         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74985         intermediate directory is in a read-only file system.  Problem
74986         reported by Eric Blake.
74987
74988 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74989
74990         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74991
74992 2005-10-12  Simon Josefsson  <jas@extundo.com>
74993
74994         * tests/test-hmac-sha1.c: New file.
74995
74996         * modules/hmac-sha1-tests: New file.
74997
74998         * modules/hmac-sha1: New file.
74999
75000 2005-10-12  Simon Josefsson  <jas@extundo.com>
75001
75002         * modules/gc-sha1: New file.
75003
75004 2005-10-12  Simon Josefsson  <jas@extundo.com>
75005
75006         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75007
75008         * tests/test-gc-pbkdf2-sha1.c: New file.
75009
75010 2005-10-12  Simon Josefsson  <jas@extundo.com>
75011
75012         * modules/gc-md5, modules/gc-hmac-md5: New files.
75013
75014         * modules/gc (Files): Remove md5, memxor and hmac files.
75015
75016 2005-10-12  Simon Josefsson  <jas@extundo.com>
75017
75018         * m4/gc-pbkdf2-sha1.m4: New file.
75019
75020         * m4/gc-hmac-sha1.m4: New file.
75021
75022         * m4/gc-sha1: New file.
75023
75024         * m4/hmac-sha1.m4: New file.
75025
75026 2005-10-12  Simon Josefsson  <jas@extundo.com>
75027
75028         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75029
75030         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75031
75032 2005-10-12  Simon Josefsson  <jas@extundo.com>
75033
75034         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75035         suggested by Bruno Haible <bruno@clisp.org>.
75036
75037 2005-10-12  Simon Josefsson  <jas@extundo.com>
75038
75039         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75040
75041 2005-10-12  Simon Josefsson  <jas@extundo.com>
75042
75043         * lib/gc-pbkdf2-sha1.c: New file.
75044
75045         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75046
75047 2005-10-12  Simon Josefsson  <jas@extundo.com>
75048
75049         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75050
75051         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75052
75053 2005-10-12  Simon Josefsson  <jas@extundo.com>
75054
75055         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75056         GC_USE_HMAC_MD5, respectively.
75057
75058         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75059         (gc_md5): Fix typo.
75060
75061         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75062
75063         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75064
75065         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75066
75067 2005-10-12  Bruno Haible  <bruno@clisp.org>
75068
75069         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75070         Reported by Stepan Kasal <kasal@ucw.cz>.
75071
75072 2005-10-11  Simon Josefsson  <jas@extundo.com>
75073
75074         * tests/test-crc.c: New file.
75075
75076         * modules/crc, modules/crc-tests: New files.
75077
75078 2005-10-11  Simon Josefsson  <jas@extundo.com>
75079
75080         * m4/crc.m4: New file.
75081
75082 2005-10-11  Simon Josefsson  <jas@extundo.com>
75083
75084         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75085
75086         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75087
75088         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75089
75090 2005-10-11  Simon Josefsson  <jas@extundo.com>
75091
75092         * lib/crc.h, lib/crc.c: New files.
75093
75094         * lib/gc.h (gc_hash_buffer): Add doc.
75095
75096 2005-10-11  Bruno Haible  <bruno@clisp.org>
75097
75098         * modules/c-strcasestr: New file.
75099         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75100
75101 2005-10-11  Bruno Haible  <bruno@clisp.org>
75102
75103         * modules/c-strcase: New file.
75104         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75105
75106 2005-10-11  Bruno Haible  <bruno@clisp.org>
75107
75108         * lib/strcasecmp.c: Include limits.h.
75109         (strcasecmp): Avoid integer overflow on exotic platforms.
75110         * lib/strncasecmp.c: Include limits.h.
75111         (strncasecmp): Avoid integer overflow on exotic platforms.
75112         Reported by Paul Eggert.
75113
75114 2005-10-11  Bruno Haible  <bruno@clisp.org>
75115
75116         * lib/c-strcasestr.h: New file, from GNU gettext.
75117         * lib/c-strcasestr.c: New file, from GNU gettext.
75118
75119 2005-10-11  Bruno Haible  <bruno@clisp.org>
75120
75121         * lib/c-strcase.h: New file, from GNU gettext.
75122         * lib/c-strcasecmp.c: New file, from GNU gettext.
75123         * lib/c-strncasecmp.c: New file, from GNU gettext.
75124
75125 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75126
75127         * modules/mempcpy (License): GPL -> LGPL.
75128         * modules/strchrnul (License): Likewise.
75129         * modules/sysexits (License): Likewise.
75130
75131 2005-10-08  Simon Josefsson  <jas@extundo.com>
75132
75133         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75134
75135 2005-10-07  Simon Josefsson  <jas@extundo.com>
75136
75137         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75138
75139 2005-10-06  Simon Josefsson  <jas@extundo.com>
75140
75141         * tests/test-hmac-md5.c: New file.
75142
75143         * modules/hmac-md5-tests: New file.
75144
75145         * modules/hmac-md5: New file.
75146
75147 2005-10-06  Simon Josefsson  <jas@extundo.com>
75148
75149         * m4/hmac-md5.m4: New file.
75150
75151         * m4/memxor.m4: Require gl_C_RESTRICT.
75152
75153 2005-10-06  Simon Josefsson  <jas@extundo.com>
75154
75155         * lib/memxor.c (memxor): Avoid casts and warnings.
75156
75157 2005-10-06  Simon Josefsson  <jas@extundo.com>
75158
75159         * lib/hmac-md5.c: New file.
75160
75161         * lib/hmac.h: New file.
75162
75163 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75164
75165         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75166         promotes to int, not unsigned int, to catch the AIX 5.3
75167         compiler bug.
75168
75169 2005-10-05  Simon Josefsson  <jas@extundo.com>
75170
75171         * modules/memxor: New file.
75172
75173         * modules/iconv (Files): Move config.rpath to havelib, it is used
75174         there.
75175
75176         * modules/havelib (Files): Add config.rpath.
75177
75178 2005-10-05  Simon Josefsson  <jas@extundo.com>
75179
75180         * m4/memxor.m4: New file.
75181
75182 2005-10-05  Simon Josefsson  <jas@extundo.com>
75183
75184         * lib/memxor.c (memxor): Fix compiler error.
75185
75186         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75187         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75188
75189         * lib/memxor.h, lib/memxor.c: New files.
75190
75191         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75192         we assume all systems have it, suggested by Jim Meyering
75193         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75194         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75195         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75196         same reasons.
75197
75198 2005-10-05  Simon Josefsson  <jas@extundo.com>
75199
75200         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75201
75202 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75203
75204         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75205         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75206         needed, since the source code now assumes these .h files.
75207
75208 2005-10-05  Derek Price  <derek@ximbiot.com>
75209
75210         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75211
75212 2005-10-05  Bruno Haible  <bruno@clisp.org>
75213
75214         * modules/stdint (License): Change to LGPL.
75215
75216 2005-10-04  Simon Josefsson  <jas@extundo.com>
75217
75218         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75219         D. Baushke" <mdb@gnu.org>.
75220
75221 2005-10-04  Bruno Haible  <bruno@clisp.org>
75222
75223         * lib/verify.h (verify_true): Provide alternative definition for C++.
75224
75225 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75226
75227         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75228         (SSIZE_MAX): New macro, if not already defined.
75229         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75230         than 2 GiB.
75231
75232 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75233
75234         Sync from coreutils.
75235         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75236         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75237         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75238         ULLONG_MAX doesn't work with 2.7.2.1.
75239
75240 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75241
75242         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75243         From Ben Pfaff.
75244
75245         * modules/exclude (Depends-on): Depend on verify.
75246         * modules/strtoimax (Depends-on): Likewise.
75247         * modules/utimecmp (Depends-on): Likewise.
75248
75249 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75250
75251         * lib/exclude.c: Include verify.h.
75252         (verify): Remove.  All callers changed to use verify.h's version.
75253         * lib/strtoimax.c: Likewise.
75254         * lib/utimecmp.c: Likewis.e
75255
75256         Sync from coreutils.
75257         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75258         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75259         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75260         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75261         bother returning ENOSYS if settimeofday or stime fails; just let
75262         them return whatever errno they want to return.
75263         * lib/utimens.c: Include unistd.h, for dup2.
75264         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75265         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75266
75267 2005-10-02  Jim Meyering  <jim@meyering.net>
75268
75269         Sync from coreutils.
75270         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75271         from glibc-2.2.5 that fails for read-only files.
75272
75273 2005-10-02  Jim Meyering  <jim@meyering.net>
75274
75275         Sync from coreutils.
75276         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75277         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75278         `#if HAVE_CONFIG_H'.
75279         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75280         Remove AT_FDCWD test.
75281         Do not consume the fd unless successful.
75282         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75283         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75284         block, so that we don't even try to compile it if settimeofday is
75285         available.  This works around a compilation failure on OSF1 V5.1,
75286         due to stime requiring a `long int*' while tv_sec is `int'.
75287
75288 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75289
75290         Sync from coreutils.
75291         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75292         against `yes', rather than just testing for nonempty.
75293
75294 2005-10-01  Simon Josefsson  <jas@extundo.com>
75295
75296         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75297         and Darwin.
75298
75299         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75300         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75301         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75302         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75303         Check if struct addrinfo is declared.
75304
75305 2005-10-01  Simon Josefsson  <jas@extundo.com>
75306
75307         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75308         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75309         AI_* and EAI_* definitions.  Protect function declarations.
75310
75311 2005-10-01  Jim Meyering  <jim@meyering.net>
75312
75313         Sync from coreutils.
75314
75315         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75316         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75317         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75318         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75319         in the inet and nsl libraries.  Required on Solaris 5.7.
75320
75321 2005-10-01  Jim Meyering  <jim@meyering.net>
75322
75323         Sync from coreutils.
75324         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75325         in the inet and nsl libraries.  Required on Solaris 5.7.
75326
75327 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75328
75329         * lib/getdelim.c (getdelim): Remove unused variables.
75330
75331 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75332
75333         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75334         so that the code works even with ancient cpp.  Portability problem
75335         with GCC 2.7.2.1 reported by Thomas M.Ott.
75336
75337 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75338
75339         * modules/regex (Depends-on): Add strcase.
75340
75341         * modules/gethostname (Licence): Change from GPL to LGPL, since
75342         gethostname.c is a trivial implementation of a standard library
75343         function.
75344         * modules/poll (License): Change from GPL to LGPL, since it's
75345         derived from LGPL code.
75346
75347 2005-09-27  Jim Meyering  <jim@meyering.net>
75348
75349         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75350         HAVE_CONFIG_H.
75351
75352         * lib/intprops.h (signed_type_or_expr__): Define.
75353         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75354         for unsigned types.
75355
75356 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75357
75358         * lib/verify.h (verify_expr): Remove, replacing with:
75359         (verify_true): New macro that returns true instead of void.
75360         (verify_type__): Remove.
75361         (verify): Use verify_true rather than verify_type__.
75362
75363 2005-09-26  Bruno Haible  <bruno@clisp.org>
75364
75365         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75366         is necessary.
75367         (lib_SOURCES): Remove mbchar.c.
75368         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75369         (Files): Add m4/mbrtowc.m4.
75370         * modules/mbiter: Likewise.
75371         * modules/mbuiter: Likewise.
75372
75373 2005-09-26  Bruno Haible  <bruno@clisp.org>
75374
75375         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75376         compile mbchar.c if they are not both present.
75377         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75378         * m4/mbiter.m4 (gl_MBITER): Likewise.
75379         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75380         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75381         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75382
75383 2005-09-25  Jim Meyering  <jim@meyering.net>
75384
75385         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75386         also uses socklen_t.
75387
75388 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75389
75390         * lib/utimens.c (ENOSYS): Define if not already defined.
75391         (futimens): Support having a null PATH if the file descriptor
75392         is nonnegative.
75393
75394         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75395         Remove.
75396         (__attribute): Define to empty unless GCC 3.1 or later.
75397         This works around a core dump on OpenBSD 3.4, which has GCC
75398         2.95.3, which dumps core when given __attribute__(()).  It also
75399         simplifies other tests, since we really don't want to bother with
75400         worrying about which ancient version of GCC supported what.
75401         Original problem reported by Yoann Vandoorselaere, with part of
75402         the fix suggested by Derek Price.
75403
75404 2005-09-24  Jim Meyering  <jim@meyering.net>
75405
75406         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75407         so we can once again use a positive bitfield width of 1 -- now we
75408         don't have to explain why we were using a bitfield width of 2.
75409
75410 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75411
75412         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75413         and similarly for the other external symbols.  Problem reported
75414         by James Gallager.
75415
75416         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75417         bug reported by Jim Meyering.
75418
75419         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75420         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75421         not needed, since socklen is a prerequisite module.
75422
75423 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75424
75425         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75426         Problem reported by Eric Blake.
75427         (getaddrinfo): Initialize se so that it's not garbage.
75428         Redo internal storage allocation so that it doesn't make unportable
75429         assumptions about alignment.
75430         Fix a memory leak.
75431
75432         * lib/utimens.c (futimens): Use futimesat if available.
75433         Prefer it to futimes since it doesn't have the futimes bug.
75434
75435         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75436         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75437         Instead, declare a function that returns a pointer to an array,
75438         and use verify_type__ to declare the size of the array.
75439         Problem and germ of a solution reported by Bruno Haible.
75440         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75441         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75442
75443 2005-09-23  Jim Meyering  <jim@meyering.net>
75444
75445         Sync from coreutils.
75446         Correct build failure (socklen_t not defined) on at least
75447         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75448         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75449
75450 2005-09-23  Jim Meyering  <jim@meyering.net>
75451
75452         * modules/getaddrinfo (Depends-on): Add socklen.
75453
75454 2005-09-23  Bruno Haible  <bruno@clisp.org>
75455
75456         * tests/test-verify.c: New file.
75457
75458 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75459
75460         Sync from coreutils.
75461
75462         * modules/argmatch (Depends-on): Add verify.
75463         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75464         unistd-safer.
75465         * modules/save-cwd (Depends-on): Likewise.
75466
75467         * modules/openat (Files): Add lib/openat-die.c.
75468         (Depends-on): Remove error, exitfail.
75469         Add dirname.
75470
75471         * modules/verify: New file.
75472         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75473         with "verify" module.
75474
75475 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75476
75477         Sync from coreutils.
75478
75479         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75480         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75481         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75482         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75483         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75484         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75485         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75486         Don't bother checking for string.h, stdlib.h, unistd.h.
75487         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75488         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75489         module's job.
75490         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75491         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75492
75493         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75494         (gl_GETDATE): Use it.
75495
75496         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75497
75498 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75499
75500         Sync from coreutils.
75501
75502         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75503         stat-time.h.
75504         * lib/argmatch.h: Include verify.h
75505         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75506         (ARGMATCH_ASSERT): Remove; unused.
75507         * lib/canonicalize.c: Assume STDC_HEADERS.
75508         * lib/exclude.c: Include "strcase.h".
75509         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75510         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75511         and stdio-safer.h.
75512         (getusershell): Call fopen, not fopen_safer.
75513         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75514         Do not include unistd-safer.h.
75515         (save_cwd): Don't call fd_safer; no longer needed
75516         now that we include fcntl--.h.
75517
75518         * lib/getdate.y (relative_time): New type.
75519         (RELATIVE_TIME_0): New constant.
75520         (parser_control): Use relative_time instead of doing it ourselves.
75521         (%union): Add new relative_time rel member.
75522         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75523         Now typeless.
75524         (relunit, relunit_snumber): Now of type rel.
75525         (zone, rel, relunit, get_date): Adjust to above changes.
75526
75527         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75528         Do not include unistd-safer.h.
75529         (getloadavg): Don't call fd_safer; no longer needed
75530         now that we include fcntl--.h.
75531
75532         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75533         (make_dir_parents): Treat ENOSYS like EEXIST.
75534
75535         Improve quality of diagnostics on restore_cwd failure.
75536         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75537         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75538         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75539         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75540         each time through the loop.  Do not diagnose restore_cwd failure;
75541         that is the caller's job (and perhaps the caller does not care).
75542
75543         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75544         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75545         If the file already exists but is not a directory, don't bother
75546         to try to make its parents.
75547         Close potential file descriptor leak if we can't chdir("/") (!).
75548         Don't always return true if chdir($PWD) fails; return true only
75549         if the requested action was done successfully (except for the
75550         chdir($PWD)).
75551         Don't log final directory unless we actually made it.
75552         Refactor to avoid duplicate code to fix up permissions.
75553         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75554
75555         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75556         to make it a bit faster and (I hope) clearer.
75557         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75558         Fix bug in formats like %2N.
75559
75560         * lib/verify.h: New file.
75561
75562 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         Sync from coreutils.
75565         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75566
75567 2005-09-22  Jim Meyering  <jim@meyering.net>
75568
75569         Sync from coreutils.
75570
75571         * m4/lstat.m4 (gl_FUNC_LSTAT):
75572         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75573         Remove obsolete comment.
75574         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75575         * m4/xstrtod.m4: Likewise.
75576
75577         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75578
75579 2005-09-22  Jim Meyering  <jim@meyering.net>
75580
75581         Sync from coreutils.
75582
75583         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75584
75585         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75586         the .tm_year member, since otherwise gcc-4.0 would now warn about
75587         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75588
75589         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75590         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75591
75592         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75593         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75594         when run in a time zone for which daylight savings time is in effect
75595         for the starting date.
75596
75597         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75598         stop us from restricting permissions of just-created absolute-named
75599         directories.
75600         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75601         to restore initial working directory.
75602         * lib/mkdir-p.c (make_dir_parents): New parameter:
75603         different_working_dir, to tell caller if/when we change the working
75604         directory and are unable to return to the initial one.
75605         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75606         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75607         `return false'.  This fixes a bug introduced on 2004-07-30.
75608
75609         * lib/openat.c (fdopendir): Be sure to close the supplied
75610         file descriptor before returning.  This makes our replacement
75611         implementation a little closer to Solaris's, where fdopendir
75612         ties the file descriptor to the returned DIR* pointer.
75613         * lib/openat.c (unlinkat): New function.
75614         * lib/openat.h (unlinkat): Add prototype.
75615         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75616         (openat_restore_fail): Rename from openat_restore_die.
75617         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75618
75619         Provide an alternative to exiting immediately upon save_cwd or
75620         restore_cwd failure.  Now, an application can arrange e.g.,
75621         to perform a longjump in that case.
75622         * lib/openat.c: Include dirname.h.
75623         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75624         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75625         and openat_restore_die rather than calling error directly.
75626         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75627
75628         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75629         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75630         define.
75631
75632         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75633         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75634                             int utc, int nanoseconds);
75635         Background:
75636         date should not have to allocate a megabyte of virtual memory to
75637         handle a format argument like +%1048575T.  When implemented with
75638         strftime, it must allocate such a buffer, use strftime to fill it
75639         in, print it, then free it.
75640         With fprintftime, it simply prints everything and exits.
75641         With no need for memory allocation, that's one fewer way to fail.
75642         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75643         optional field width, not before, so we accept %9:z, not %:9z.
75644         (my_strftime): Be sure to use L_('x') for literals.
75645
75646         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75647         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75648         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75649         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75650         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75651         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75652         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75653         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75654         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75655         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75656         * lib/xgethostname.c, lib/xreadlink.c:
75657         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75658
75659         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75660         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75661         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75662         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75663         and don't include <sys/file.h>).
75664
75665 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75666
75667         Sync from coreutils.
75668
75669         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75670         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75671         [!LDAV_DONE]: Avoid unused variable warning.
75672
75673 2005-09-21  Bruno Haible  <bruno@clisp.org>
75674
75675         * lib/unicodeio.h (unicode_to_mb): New declaration.
75676
75677 2005-09-20  Derek Price  <derek@ximbiot.com>
75678
75679         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75680         getaddrinfo.h.
75681
75682 2005-09-20  Bruno Haible  <bruno@clisp.org>
75683
75684         * gnulib-tool: Remove trailing slashes from the values specified for
75685         --source-base, --m4-base, --tests-base, --aux-dir.
75686         Suggested by Simon Josefsson <jas@extundo.com>.
75687
75688 2005-09-20  Bruno Haible  <bruno@clisp.org>
75689
75690         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75691         func_modules_to_filelist, func_import, func_create_testdir): Make all
75692         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75693         change when gnulib-tool is invoked in a different locale.
75694
75695 2005-09-19  Simon Josefsson  <jas@extundo.com>
75696
75697         * m4/socklen.m4: Fix typo.
75698
75699 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75700
75701         Use a consistent style for including <config.h>.
75702         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75703         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75704         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75705         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75706         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75707         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75708         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75709         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75710         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75711         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75712         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75713         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75714         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75715         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75716         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75717         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75718         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75719         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75720         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75721         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75722         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75723         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75724         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75725         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75726         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75727         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75728         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75729         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75730         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75731         lib/xstrtoumax.c, lib/yesno.c:
75732         Standardize inclusion of config.h.
75733         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75734         lib/inttostr.h:  Removed inclusion of config.h from header files.
75735         * lib/inttostr.c:  Adjusted in-tree users.
75736         * lib/timespec.h: Remove superfluous warning to include config.h.
75737         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75738         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75739         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75740         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75741         config.h with HAVE_CONFIG_H.
75742
75743 2005-09-19  Jim Meyering  <jim@meyering.net>
75744
75745         * modules/pathmax (License): Change to LGPL.
75746
75747 2005-09-19  Derek Price  <derek@ximbiot.com>
75748
75749         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75750
75751 2005-09-19  Bruno Haible  <bruno@clisp.org>
75752
75753         * gnulib-tool (import): Provide default for --tests-base.
75754
75755 2005-09-19  Bruno Haible  <bruno@clisp.org>
75756
75757         * doc/quote.texi: New file, extracted from gnulib.texi.
75758         * doc/ctime.texi: New file, extracted from gnulib.texi.
75759         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75760         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75761         * doc/gnulib.texi: Include them.
75762
75763 2005-09-18  Bruno Haible  <bruno@clisp.org>
75764
75765         Portability fix.
75766         * gnulib-tool (func_readlink): New function.
75767         (func_ln_if_changed): Use it.
75768
75769 2005-09-18  Bruno Haible  <bruno@clisp.org>
75770
75771         * gnulib-tool: Support --with-tests also with --import.
75772         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75773         (func_import): Use variables $testsbase and $inctests. Emit a
75774         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75775         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75776         SUBDIRS += $testsdir.
75777         (func_create_testdir): Update.
75778
75779 2005-09-18  Bruno Haible  <bruno@clisp.org>
75780
75781         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75782         instead of $dry_run.
75783         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75784         (func_ln_if_changed): Don't handle dry-run here.
75785         (func_import): In dry-run mode, detect more precisely which actions
75786         would be performed, and don't use "...ing" verbs.
75787
75788 2005-09-18  Bruno Haible  <bruno@clisp.org>
75789
75790         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75791         (func_import): Use join on two temporary files instead of three nested
75792         loops, in order to determine which files are new or old.
75793
75794 2005-09-18  Bruno Haible  <bruno@clisp.org>
75795
75796         * gnulib-tool (func_import): Comment out code that spits out the
75797         new files with --dry-run.
75798
75799 2005-09-18  Bruno Haible  <bruno@clisp.org>
75800
75801         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75802
75803 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75804
75805         * lib/stat-time.h: New file.
75806         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75807         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75808         in a different way.
75809         (timespec_cmp): New function.
75810         * lib/utimecmp.c: Include stat-time.h.
75811         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75812         members exist, not on the obsolescent ST_MTIM_NSEC.
75813         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75814
75815 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75816
75817         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75818
75819 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75820
75821         * MODULES.html.sh (File system functions): Add stat-time.
75822         * modules/stat-time: New file.
75823         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75824         is now done in a different way, by the stat-time module.
75825         * modules/utimecmp (Depends-on): Add stat-time.
75826
75827 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75828
75829         * m4/st_mtim.m4: Remove.  Superseded by...
75830         * m4/stat-time.m4: New file.
75831         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75832         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75833
75834 2005-09-15  Derek Price  <derek@ximbiot.com>
75835
75836         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75837
75838 2005-09-15  Derek Price  <derek@ximbiot.com>
75839
75840         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75841         * lib/regex_internal.c: Ditto, using this...
75842         (__GNUC_PREREQ): ...new macro.
75843         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75844         using...
75845         (__GNUC_PREREQ): ...this new macro.
75846
75847         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75848
75849 2005-09-15  Derek Price  <derek@ximbiot.com>
75850             Paul Eggert  <eggert@cs.ucla.edu>
75851
75852         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75853         changes, consolidating in...
75854         * lib/regex_internal.h: ...this file.
75855
75856 2005-09-13  Jim Meyering  <jim@meyering.net>
75857
75858         * lib/canon-host.c: Filter through gnu indent and reword comments
75859         slightly.
75860         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75861
75862 2005-09-13  Derek Price  <derek@ximbiot.com>
75863
75864         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75865         failure.
75866         Reported by Jim Meyering  <jim@meyering.net>.
75867
75868 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75869
75870         * lib/base64.c: Typo.
75871         (base64_encode): Put b64str in initialized data section.
75872
75873 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75874
75875         Merge glibc and coreutils changes into gnulib, plus a few
75876         extra fixes.
75877         * lib/md5.c: Use #error rather than a string.
75878         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75879         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75880         (__attribute__): Define to empty for non recent-GCC.
75881         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75882         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75883         Renamed from their non-__ counterparts, with new macros replacing
75884         them if not _LIBC.  Add __THROW attribute.
75885         (rol): Remove.
75886         (struct md5_ctx): Align buffer if using GCC.
75887         * lib/sha1.h (struct sha1_ctx): Likewise.
75888         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75889         The old name was backwards.
75890         (NOTSWAP): Remove; not used.
75891         (rol): New macro, moved here from md5.h.
75892         (sha1_process_block): Remove a FIXME that doesn't make sense.
75893
75894 2005-09-12  Derek Price  <derek@ximbiot.com>
75895
75896         Return usable errors from canon-host.
75897         * lib/canon-host.h: New file.
75898         * lib/canon-host.c (canon_host): Wrap...
75899         (canon_host_r): ...this new function, which now relies exclusively on
75900         getaddrinfo.
75901         (ch_strerror): New function.
75902         (last_cherror): New global.
75903         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75904         interface.
75905         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75906         void *.
75907         (freeaddrinfo): Free ai->ai_canonname when set.
75908
75909 2005-09-12  Derek Price  <derek@ximbiot.com>
75910
75911         Make canon-host require getaddrinfo.
75912         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75913         AC_LIBSOURCE canon-host.h.  Call...
75914         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75915         gl_GETADDRINFO.
75916         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75917
75918 2005-09-12  Derek Price  <derek@ximbiot.com>
75919
75920         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75921         LGPL.
75922         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75923
75924 2005-09-12  Derek Price  <derek@ximbiot.com>
75925
75926         * lib/gai_strerror.c: Include config.h when available.  Include
75927         getaddrinfo.h before other headers to test interface.
75928         Reported by Larry Jones <lawrence.jones@ugs.com>.
75929
75930 2005-09-12  Derek Price  <derek@ximbiot.com>
75931             Paul Eggert  <eggert@cs.ucla.edu>
75932
75933         * modules/glob (Files): Add glob-libc.h.
75934
75935 2005-09-12  Derek Price  <derek@ximbiot.com>
75936             Paul Eggert  <eggert@cs.ucla.edu>
75937
75938         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75939         glob_.h, glob-libc.h.
75940         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75941
75942 2005-09-12  Derek Price  <derek@ximbiot.com>
75943             Paul Eggert  <eggert@cs.ucla.edu>
75944
75945         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75946         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75947         protecting things that should be done only in gnulib contexts.
75948         * lib/glob_.h: New file, containing only the glob things needed for
75949         gnulib.
75950         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75951         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75952         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75953         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75954         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75955         and to respect the namespace rules better.
75956
75957 2005-09-08  Simon Josefsson  <jas@extundo.com>
75958
75959         * modules/socklen: New file.
75960
75961 2005-09-08  Simon Josefsson  <jas@extundo.com>
75962
75963         * m4/socklen.m4: New file.
75964
75965 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75966
75967         * modules/utimens (Files): Add m4/utimbuf.m4, since
75968         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75969         Reported by Sergey Poznyakoff.
75970
75971 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75972
75973         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75974         definitions, since that's the preferred style in glibc.
75975         Fix a minor spacing issue, and update copyright notice to match
75976         glibc's.
75977
75978 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75981
75982 2005-09-06  Simon Josefsson  <jas@extundo.com>
75983
75984         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75985         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75986
75987 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75988
75989         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75990         warning.
75991
75992 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75993
75994         * config/srclist.txt: Add glibc bug 1302.
75995
75996 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75997
75998         Change bitset word type from unsigned int to unsigned long int,
75999         as this has better performance on typical 64-bit hosts.
76000         Port bitset code to hosts with unusual word sizes.
76001         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76002         (build_collating_symbol):
76003         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76004         argument is a bitset.  This is merely a style issue, but it makes
76005         it clearer that an entire array is expected.
76006         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76007         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76008         Port to the case where bitset_word is not the same as unsigned int.
76009         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76010         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76011         Likewise.
76012         * lib/regexec.c (check_dst_limits_calc_pos_1,
76013         check_subexp_matching_top):
76014         (build_trtable, group_nodes_into_DFAstates):
76015         Likewise.
76016         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76017         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76018         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76019         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76020         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76021         * lib/regcomp.c (optimize_subexps, lower_subexp):
76022         Work even if bitset_word has holes in its bitwise representation.
76023         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76024         * lib/regexec.c (check_dst_limits_calc_pos_1,
76025         check_subexp_matching_top):
76026         Likewise.
76027         * lib/regex_internal.c (re_string_reconstruct):
76028         Don't assume UCHAR_MAX == 255.
76029         * lib/regex_internal.h (bitset_set_all): Likewise.
76030         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76031         All uses changed.
76032         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76033         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76034         All uses changed.
76035         (BITSET_WORD_MAX): New macro.
76036         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76037         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76038         (bitset_empty, bitset_copy):
76039         Prefer sizeof (bitset) to multiplying it out ourselves.
76040         (bitset_not_merge): Remove; unused.
76041         (bitset_contain): Return bool, not unsigned int with one bit on.
76042         All callers changed.
76043         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76044         alignment than re_node_set; do this by defining a new internal
76045         type struct dests_alloc and using it to allocate memory.
76046
76047 2005-09-05  Bruno Haible  <bruno@clisp.org>
76048
76049         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76050         links.
76051
76052 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76053
76054         * modules/size_max (Makefile.am): Add size_max.h
76055
76056 2005-09-04  Derek Price  <derek@ximbiot.com>
76057
76058         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76059
76060 2005-09-03  Simon Josefsson  <jas@extundo.com>
76061
76062         * gnulib-tool: Fix typo.
76063
76064 2005-09-03  Simon Josefsson  <jas@extundo.com>
76065
76066         * config/srclist.txt: Add glibc bug 1293.
76067
76068 2005-09-03  Derek Price  <derek@ximbiot.com>
76069
76070         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76071         From Larry Jones <lawrence.jones@ugs.com>.
76072
76073 2005-09-02  Simon Josefsson  <jas@extundo.com>
76074
76075         * modules/socklen: New file.
76076
76077 2005-09-02  Simon Josefsson  <jas@extundo.com>
76078
76079         * modules/havelib: New module.
76080
76081         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76082         Use havelib.
76083
76084 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76085
76086         Check for arithmetic overflow when calculating sizes, to prevent
76087         some buffer-overflow issues.  These patches are conservative, in the
76088         sense that when I couldn't determine whether an overflow was possible,
76089         I inserted a run-time check.
76090         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76091         macros.
76092         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76093         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76094         (re_xnrealloc, re_x2nrealloc): New inline functions.
76095         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76096         parse_bracket_exp):
76097         (build_equiv_class, build_charclass): Check for arithmetic overflow
76098         in size expression calculations.
76099         * lib/regex_internal.c (re_string_realloc_buffers):
76100         (build_wcs_upper_buffer, re_node_set_add_intersect):
76101         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76102         (re_dfa_add_node, register_state): Likewise.
76103         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76104         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76105         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76106         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76107
76108 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76109
76110         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76111         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76112
76113 2005-09-02  Bruno Haible  <bruno@clisp.org>
76114
76115         Support for lib vs. lib64 distinction on biarch platforms.
76116         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76117         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76118         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76119
76120 2005-09-02  Bruno Haible  <bruno@clisp.org>
76121
76122         * gnulib-tool (import): In the other first-use case, provide defaults
76123         as well.
76124
76125 2005-09-02  Bruno Haible  <bruno@clisp.org>
76126
76127         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76128         patches not yet found in the latest gettext release.
76129
76130 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76131
76132         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76133         to avoid a collision with bits/local_lim.h in glibc.
76134         All uses changed.  Problem reported by Dmitry V. Levin in
76135         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76136
76137         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76138         bugs in int versus size_t comparisons.
76139         (re_string_context_at): Fix bug where the code assumed that
76140         Idx is signed.
76141
76142         Use bool where appropriate.
76143         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76144         All callers changed.
76145         (calc_eclosure_iter): Likewise, for ROOT arg.
76146         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76147         (build_charclass_op): Likewise, for NON_MATCH arg.
76148         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76149         (re_string_construct_common): Likewise, for ICASE arg.
76150         * lib/regexec.c (re_search_2_stub, re_search_stub):
76151         Likewise, for RET_LEN arg.
76152         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76153         (set_regs): Likewise, for FL_BACKTRACK arg.
76154         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76155         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76156         (calc_eclosure_iter, parse_bracket_exp):
76157         Use bool for internal variables that are booleans.
76158         * lib/regexec.c (re_search_internal, check_matching,
76159         proceed_next_node):
76160         (set_regs, build_sifted_states, sift_states_bkref):
76161         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76162         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76163         (find_collation_sequence_value):
76164         Likewise.
76165         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76166         (re_node_set_compare):
76167         Return bool, not int. All callers changed.
76168         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76169         (build_trtable, check_node_accept): Likewise.
76170         * lib/regex_internal.h: Include stdbool.h.
76171
76172         Fix bugs uncovered when converting to bool.
76173         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76174         failure instead of charging ahead blindly.
76175         * lib/regex_internal.c (register_state): Likewise.
76176         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76177         for freeing internal storage.
76178         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76179         bitset pieces used as boolean, to avoid undefined behavior
76180         on hosts that do int overflow checking.
76181
76182 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76183
76184         * config/srclist.txt: Add glibc bugs 1285-1287.
76185
76186 2005-09-01  Jim Meyering  <jim@meyering.net>
76187
76188         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76189         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76190         Require gl_STAT_MACROS, too.
76191
76192 2005-09-01  Bruno Haible  <bruno@clisp.org>
76193
76194         * gnulib-tool (import): In the first-use case, provide defaults.
76195
76196 2005-09-01  Bruno Haible  <bruno@clisp.org>
76197
76198         * gnulib-tool (func_import): Remove the .tmp files.
76199
76200 2005-09-01  Bruno Haible  <bruno@clisp.org>
76201
76202         * gnulib-tool (func_import): Fix handling of symbolic links.
76203
76204 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76205
76206         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76207         old glibc regex code mishandles strings longer than 2**31 bytes.
76208         This patch fixes this when the regex code is used in gnulib
76209         (i.e., outside glibc).
76210
76211         This patch should not affect the use of the regex code inside
76212         glibc.  No doubt this problem also needs to be handled for glibc
76213         as well, but the result will be an incompatible change to the
76214         glibc ABI, and the old ABI will have to be supported too.  That
76215         can be the the subject for another patch.
76216
76217         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76218         governing whether the rest of this patch is active.  By default,
76219         the macro is disabled and the patch has no effect.
76220         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76221         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76222         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76223         (re_match_2, re_set_registers): Use the new types.
76224         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76225         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76226         New macros.
76227         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76228         (re_string_context_at, bin_tree_t, re_dfastate_t):
76229         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76230         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76231         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76232         (re_string_char_size_at, re_string_wchar_at):
76233         (re_string_elem_size_at):
76234         Use the new types and macros to port to 64-bit hosts.
76235         Use unsigned types for internal values, so that the code
76236         mostly works even for arrays larger than SSIZE_MAX.
76237         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76238         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76239         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76240         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76241         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76242         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76243         (calc_inveclosure, parse_dup_op, build_range_exp):
76244         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76245         (fetch_number, create_token_tree, mark_opt_subexp):
76246         Likewise.
76247         * lib/regex_internal.c (re_string_construct_common,
76248         create_ci_newstate):
76249         (create_cd_newstate, re_string_allocate, re_string_construct):
76250         (re_string_realloc_buffers, build_wcs_upper_buffer):
76251         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76252         (re_string_reconstruct, re_string_peek_byte_case):
76253         (re_string_fetch_byte_case, re_string_context_at):
76254         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76255         (re_node_set_init_copy, re_node_set_add_intersect):
76256         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76257         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76258         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76259         (re_acquire_state, re_acquire_state_context, register_state):
76260         Likewise.
76261         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76262         search_cur_bkref_entry):
76263         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76264         (re_search_internal, re_search_2_stub, re_search_stub)
76265         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76266         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76267         (update_cur_sifted_state, check_dst_limits):
76268         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76269         (check_subexp_limits, sift_states_bkref, merge_state_array):
76270         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76271         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76272         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76273         (expand_bkref_cache, check_node_accept_bytes):
76274         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76275         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76276         (acquire_init_state_context, check_halt_node_context):
76277         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76278         (sift_states_backward, clean_state_log_if_needed):
76279         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76280         (find_recover_state, transit_state_sb, transit_state_mb):
76281         (transit_state_bkref, build_trtable, match_ctx_clean):
76282         Likewise.
76283         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76284         to work around an assumption that REG_MISSING is negative.
76285
76286         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76287         (seek_collating_symbol_entry) [defined _LIBC]:
76288         (lookup_collation_sequence_value) [defined _LIBC]:
76289         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76290         Use prototypes rather than old-style function definitions.
76291         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76292         (transit_state_sb) [0]:
76293         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76294
76295         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76296         rm_eo.
76297
76298         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76299         (optimize_subexps, lower_subexp):
76300         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76301         since the signed shift might overflow.  Use 1u<<31 instead.
76302         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76303         Likewise.
76304         * lib/regexec.c (check_dst_limits_calc_pos_1,
76305         check_subexp_matching_top): Likewise.
76306
76307         * lib/regcomp.c (optimize_subexps, lower_subexp):
76308         Use CHAR_BIT rather than 8, for clarity.
76309         * lib/regexec.c (check_dst_limits_calc_pos_1):
76310         (check_subexp_matching_top): Likewise.
76311         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76312         have to worry about portability issues when shifting it left.
76313         Remove no-longer-needed test for table_size > 0.
76314         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76315         in a word, as the resulting behavior is undefined.
76316         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76317         in one case, a <= should have been an <, and in another case the
76318         whole test was missing.
76319         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76320         the standard name CHAR_BIT.
76321         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76322         this is not true on one's complement and signed-magnitude hosts.
76323
76324         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76325         next_last_offset.
76326         (struct re_dfa_t): Remove unused member states_alloc.
76327         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76328
76329 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76330
76331         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76332         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76333         and large-file glibc and in 32-bit large-file Solaris.
76334
76335 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76336
76337         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76338         lengths fit in regoff_t; this isn't true if regoff_t is the same
76339         width as size_t.
76340         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76341         (= START + RANGE) instead of RANGE.  This avoids overflow
76342         problems when regoff_t is the same width as size_t.
76343         All callers changed.
76344         (re_search_2_stub): Check for overflow when adding the
76345         sizes of the two strings.
76346         (re_search_stub): Check for overflow when adding START
76347         to RANGE; if it occurs, substitute the extreme value.
76348
76349 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76350
76351         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76352
76353 2005-08-31  Jim Meyering  <jim@meyering.net>
76354
76355         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76356         a pointer-to-const.
76357         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76358         (register_state): Likewise.
76359         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76360         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76361         (group_nodes_into_DFAstates): Likewise.
76362
76363 2005-08-31  Jim Meyering  <jim@meyering.net>
76364
76365         * check-module: Add a FIXME comment.
76366
76367 2005-08-31  Eric Blake  <ebb9@byu.net>
76368
76369         * modules/unistd-safer (Files): Add unistd--.h.
76370         * modules/stdio-safer (Files): Add stdio--.h.
76371
76372 2005-08-31  Derek Price  <derek@ximbiot.com>
76373
76374         * lib/getdelim.c (getdelim): Return EOF on EOF.
76375         Reported by Larry Jones <lawrence.jones@ugs.com>.
76376
76377 2005-08-31  Bruno Haible  <bruno@clisp.org>
76378
76379         Avoid unnecessary diffs in the generated lib/Makefile.am.
76380         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76381         the generated files.
76382         (func_import): Don't set cmd.
76383
76384 2005-08-31  Bruno Haible  <bruno@clisp.org>
76385
76386         * lib/strstr.c: Include <stddef.h>, for NULL.
76387         * lib/strcasestr.c: Likewise.
76388         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76389
76390 2005-08-31  Bruno Haible  <bruno@clisp.org>
76391
76392         * gnulib-tool: New option --macro-prefix.
76393         (func_import): Use macro_prefix.
76394         (import): Handle option --macro-prefix.
76395
76396 2005-08-31  Bruno Haible  <bruno@clisp.org>
76397
76398         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76399         Also use new variables cached_lgpl, cached_libtool.
76400
76401 2005-08-31  Bruno Haible  <bruno@clisp.org>
76402
76403         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76404         always instantiating them.
76405
76406 2005-08-31  Bruno Haible  <bruno@clisp.org>
76407
76408         * gnulib-tool (func_import): Read the previous cached settings
76409         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76410         earlier added by gnulib but are now dropped. Warn when a gnulib file
76411         overwrites a non-gnulib file.
76412
76413 2005-08-31  Bruno Haible  <bruno@clisp.org>
76414
76415         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76416         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76417         projects that don't keep autogenerated files in CVS. Put into
76418         actioncmd only the specified modules, not the transitive closure.
76419
76420 2005-08-31  Bruno Haible  <bruno@clisp.org>
76421
76422         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76423         Create directories that shall be filled.
76424         (import): Don't look for gl_* macros in configure.ac. Recurse across
76425         all directories containing a gnulib-cache.m4 files, if meaningful.
76426
76427 2005-08-31  Bruno Haible  <bruno@clisp.org>
76428
76429         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76430         (import): Set seen_libtool when we see gl_LIBTOOL.
76431
76432 2005-08-31  Bruno Haible  <bruno@clisp.org>
76433
76434         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76435         declaration macro definitions from generated gnulib.m4.
76436
76437 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76438
76439         * lib/iconvme.h: Add prototype for iconv_alloc.
76440
76441 2005-08-29  Simon Josefsson  <jas@extundo.com>
76442
76443         * lib/iconvme.c: Fix errno.
76444
76445 2005-08-29  Bruno Haible  <bruno@clisp.org>
76446
76447         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76448         that it works when the directory contains spaces.
76449
76450 2005-08-29  Bruno Haible  <bruno@clisp.org>
76451
76452         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76453
76454 2005-08-29  Bruno Haible  <bruno@clisp.org>
76455
76456         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76457         Emit more advice.
76458
76459 2005-08-29  Bruno Haible  <bruno@clisp.org>
76460         and Stepan Kasal  <kasal@ucw.cz>
76461
76462         * check-module: If more parameters are given, check each of them
76463         separately; add more exceptions, as noted by Jim Meyering.
76464         (check_module): New procedure.
76465         (%exempt_header): Now contains all exceptions.
76466
76467 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76468
76469         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76470
76471 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76472
76473         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76474
76475 2005-08-28  Bruno Haible  <bruno@clisp.org>
76476
76477         * m4/gnulib-tool.m4: New file.
76478
76479 2005-08-27  Jim Meyering  <jim@meyering.net>
76480
76481         * modules/unistd-safer (Files): Add pipe-safer.c.
76482         * modules/fcntl-safer (Files): Add creat-safer.c.
76483
76484 2005-08-27  Jim Meyering  <jim@meyering.net>
76485
76486         * m4/stdlib-safer.m4: New file.  From coreutils.
76487         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76488         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76489         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76490         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76491         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76492
76493 2005-08-27  Jim Meyering  <jim@meyering.net>
76494
76495         * lib/fopen-safer.c: Merge minor changes from coreutils.
76496         * lib/dup-safer.c: Likewise.
76497         * lib/fd-safer.c: Likewise.
76498
76499         Merge from coreutils.
76500         * lib/stdio--.h: New file.
76501         * lib/stdlib--.h: New file.
76502         * lib/mkstemp-safer.c: New file.
76503
76504         GNU tar needs these.
76505         * lib/pipe-safer.c: New file.
76506         * lib/creat-safer.c: New file.
76507         * lib/fcntl--.h (creat): Define to creat_safer.
76508         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76509         * lib/unistd--.h (pipe): Define to pipe_safer.
76510         * lib/unistd-safer.h: Declare pipe_safer.
76511
76512 2005-08-26  Simon Josefsson  <jas@extundo.com>
76513
76514         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76515         Haible <bruno@clisp.org>.
76516
76517 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76518
76519         * lib/regex_internal.h: Remove all references to
76520         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76521         or better.
76522         (bitset_not, bitset_merge, bitset_not_merge):
76523         (bitset_mask, re_string_allocate, re_string_construct):
76524         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76525         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76526         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76527         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76528         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76529         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76530         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76531         (re_acquire_state_context):
76532         Remove unnecessary forward decls.
76533         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76534         Put __attribute at function definition,
76535         now that the function decl has been removed.
76536         * lib/regex_internal.c (re_string_peek_byte_case):
76537         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76538         Likewise.
76539
76540 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76541
76542         * m4/regex.m4: Add AC_PREREQ(2.50).
76543         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76544
76545 2005-08-25  Simon Josefsson  <jas@extundo.com>
76546
76547         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76548         __fsetlocking.
76549
76550 2005-08-25  Simon Josefsson  <jas@extundo.com>
76551
76552         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76553         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76554         GLIBC specific code.
76555
76556 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76557
76558         Make regex safe for g++.  This fixes one real bug (an "err"
76559         that should have been "*err").  g++ problem reported by
76560         Sam Steingold.
76561         * lib/regex_internal.h (re_calloc): New macro, consistent with
76562         re_malloc etc.  All callers of calloc changed to use re_calloc.
76563         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76564         not int.  All callers changed.
76565         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76566         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76567         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76568         (find_recover_state): Change "err" to "*err"; this fixes what
76569         appears to be a real bug.
76570         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76571         versus int.
76572
76573 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76574
76575         * modules/regex (Depends-on): Add malloc, since the code
76576         assumes that !malloc(0) means failure.
76577
76578 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76579
76580         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76581
76582         alloca modernization/simplification for regex.
76583         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76584         needs to be at the start of the file, and can be moved into
76585         regex_internal.h and simplified.
76586         * lib/regex_internal.h: Include <alloca.h>.
76587         (__libc_use_alloca) [!defined _LIBC]: New macro.
76588         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76589         now works outside glibc.
76590
76591 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76592
76593         * config/srclist.txt: Add glibc bugs 1241, 1245.
76594
76595 2005-08-25  Jim Meyering  <jim@meyering.net>
76596
76597         * lib/open-safer.c: Include <config.h>.
76598         Otherwise, we'd lose LARGEFILE support in any file using
76599         e.g. "fcntl--.h"
76600
76601 2005-08-25  Bruno Haible  <bruno@clisp.org>
76602
76603         * m4/minmax.m4: Require autoconf 2.52.
76604         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76605         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76606         alternatives of translit over the alphabet.
76607         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76608
76609 2005-08-24  Simon Josefsson  <jas@extundo.com>
76610
76611         * tests/test-getpass.c: New file.
76612
76613 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76614
76615         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76616         for GNU regex features.
76617
76618 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76619
76620         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76621         * lib/regex.h (regerror): Likewise.
76622
76623         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76624         requires this.  (The code never needed it.)
76625
76626         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76627         All uses of recently-renamed identifiers changed to use the new,
76628         POSIX-compliant names.  The code will build and run just fine
76629         without these changes, but it's better to eat our own dog food
76630         and use the standard-conforming names.
76631
76632         * lib/regex.h: Fix a multitude of POSIX name space violations.
76633         These changes have an effect only for programs that define
76634         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76635         do not change anything for programs compiled in the normal way.
76636         Also, there is no effect on the ABI.
76637
76638         (_REGEX_SOURCE): New macro.
76639         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76640         defined and _GNU_SOURCE is not; this fixes a name space violation.
76641
76642         Rename the following macros to obey POSIX requirements.
76643         The old names are still visible as macros if _REGEX_SOURCE is defined.
76644         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76645         RE_BACKSLASH_ESCAPE_IN_LISTS.
76646         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76647         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76648         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76649         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76650         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76651         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76652         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76653         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76654         (REG_INTERVALS): renamed from RE_INTERVALS.
76655         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76656         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76657         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76658         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76659         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76660         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76661         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76662         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76663         RE_UNMATCHED_RIGHT_PAREN_ORD.
76664         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76665         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76666         (REG_DEBUG): renamed from RE_DEBUG.
76667         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76668         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76669         unusual, since we can't clash with the POSIX REG_ICASE.
76670         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76671         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76672         (REG_NO_SUB): renamed from RE_NO_SUB.
76673         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76674         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76675         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76676         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76677         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76678         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76679         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76680         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76681         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76682         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76683         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76684         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76685         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76686         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76687         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76688         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76689         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76690         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76691         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76692         (REG_FIXED): Renamed from REGS_FIXED.
76693         (REG_NREGS): Renamed from RE_NREGS.
76694
76695         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76696         of other REG_* macros, since POSIX says the user is allowed to
76697         #undef these macros selectively.
76698
76699         (reg_errcode_t): Update comment stating what other tables need
76700         to be consistent.
76701
76702         Rename the following enum values to obey POSIX requirements.
76703         The old names are still visible as macros.
76704         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76705         is not defined, since GNU is supposed to be a superset of POSIX as
76706         much as possible, and since we want reg_errcode_t to be a signed
76707         type for implementation consistency.
76708         (_REG_NOERROR): Renamed from REG_NOERROR.
76709         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76710         (_REG_BADPAT): Renamed from REG_BADPAT.
76711         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76712         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76713         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76714         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76715         (_REG_EBRACK): Renamed from REG_EBRACK.
76716         (_REG_EPAREN): Renamed from REG_EPAREN.
76717         (_REG_EBRACE): Renamed from REG_EBRACE.
76718         (_REG_BADBR): Renamed from REG_BADBR.
76719         (_REG_ERANGE): Renamed from REG_ERANGE.
76720         (_REG_ESPACE): Renamed from REG_ESPACE.
76721         (_REG_BADRPT): Renamed from REG_BADRPT.
76722         (_REG_EEND): Renamed from REG_EEND.
76723         (_REG_ESIZE): Renamed from REG_ESIZE.
76724         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76725         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76726         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76727         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76728         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76729
76730         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76731         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76732         changed.  But support the old name if the new one is not defined
76733         and if _REGEX_SOURCE.
76734
76735         Change the following member names in struct re_pattern_buffer.
76736         The old names are still supported if !_REGEX_SOURCE.
76737         The new names are always supported, regardless of _REGEX_SOURCE.
76738         (re_buffer): Renamed from buffer.
76739         (re_allocated): Renamed from allocated.
76740         (re_used): Renamed from used.
76741         (re_syntax): Renamed from syntax.
76742         (re_fastmap): Renamed from fastmap.
76743         (re_translate): Renamed from translate.
76744         (re_can_be_null): Renamed from can_be_null.
76745         (re_regs_allocated): Renamed from regs_allocated.
76746         (re_fastmap_accurate): Renamed from fastmap_accurate.
76747         (re_no_sub): Renamed from no_sub.
76748         (re_not_bol): Renamed from not_bol.
76749         (re_not_eol): Renamed from not_eol.
76750         (re_newline_anchor): Renamed from newline_anchor.
76751
76752         Change the following member names in struct re_registers.
76753         The old names are still supported if !_REGEX_SOURCE.
76754         The new names are always supported, regardless of _REGEX_SOURCE.
76755         (rm_num_regs): Renamed from num_regs.
76756         (rm_start): Renamed from start.
76757         (rm_end): Renamed from end.
76758
76759         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76760         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76761         Prepend __ to parameter names.
76762
76763         Undo yesterday's changes.
76764
76765 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76766
76767         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76768         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76769         lib/regex.c.
76770
76771 2005-08-24  Jim Meyering  <jim@meyering.net>
76772
76773         Sync from coreutils.
76774         * m4/fcntl-safer.m4: New file.
76775
76776         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76777         and object files for this module.
76778
76779 2005-08-24  Jim Meyering  <jim@meyering.net>
76780
76781         Sync from coreutils.
76782         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76783
76784 2005-08-24  Jim Meyering  <jim@meyering.net>
76785
76786         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76787         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76788
76789 2005-08-24  Jim Meyering  <jim@meyering.net>
76790
76791         * modules/fcntl-safer: New module.
76792         * modules/fts (Depends-on): Add fcntl-safer.
76793         * MODULES.html.sh (File descriptor based Input/Output):
76794         Add fcntl-safer.
76795
76796 2005-08-24  Bruno Haible  <bruno@clisp.org>
76797
76798         Support for unit test modules.
76799         * modules/README: Mention tests modules.
76800         * modules/TEMPLATE-TESTS: New file.
76801         * gnulib-tool: New options --extract-tests-module, --with-tests and
76802         --tests-base (unused for the moment).
76803         (testsbase, inctests): New variables.
76804         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76805         (func_verify_module): Exclude TEMPLATE-TESTS.
76806         (func_verify_nontests_module, func_verify_tests_module): New functions.
76807         (func_get_dependencies): Add implicit dependency for tests modules.
76808         (func_get_tests_module): New function.
76809         (func_modules_transitive_closure): When --with-tests was specified,
76810         include the unit tests as well, unless explicitly avoided.
76811         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76812         (func_emit_tests_Makefile_am): New function.
76813         (func_create_testdir): When --with-tests was specified, emit a
76814         tests/ directory.
76815         * MODULES.html.sh (Future developments): Update.
76816
76817 2005-08-24  Bruno Haible  <bruno@clisp.org>
76818
76819         * modules/tls-tests: New file.
76820         * tests/test-tls.c: New file, from GNU gettext.
76821
76822 2005-08-24  Bruno Haible  <bruno@clisp.org>
76823
76824         * modules/lock-tests: New file.
76825         * tests/test-lock.c: New file, from GNU gettext.
76826
76827 2005-08-24  Bruno Haible  <bruno@clisp.org>
76828
76829         * lib/lock.h: Add multiple inclusion guard.
76830         * lib/tls.h: Add multiple inclusion guard.
76831
76832 2005-08-24  Bruno Haible  <bruno@clisp.org>
76833
76834         * gnulib-tool: Add support for the --aux-dir option to
76835         --create-testdir, --create-megatestdir, --test, --megatest.
76836         (func_create_testdir, func_create_megatestdir): Optionally emit a
76837         AC_CONFIG_AUX_DIR directive.
76838         (create-testdir, create-megatestdir, test, megatest): Provide a
76839         default value for $auxdir.
76840
76841 2005-08-24  Bruno Haible  <bruno@clisp.org>
76842
76843         * gnulib-tool (import): Use compound statement instead of subshell
76844         where possible.
76845
76846 2005-08-24  Bruno Haible  <bruno@clisp.org>
76847
76848         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76849
76850 2005-08-24  Bruno Haible  <bruno@clisp.org>
76851
76852         * gnulib-tool (func_version): Update.
76853
76854 2005-08-24  Bruno Haible  <bruno@clisp.org>
76855
76856         * gnulib-tool (func_import, func_create_testdir,
76857         func_create_megatestdir): Quote all autoconf macro arguments.
76858
76859 2005-08-24  Bruno Haible  <bruno@clisp.org>
76860
76861         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76862         option --force, because --force causes the aclocal.m4 of each
76863         subdirectory to be newer than the corresponding config.h.in.
76864
76865 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76866
76867         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76868         All contents moved to gl_REGEX.
76869         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76870         assume that it does.
76871
76872 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76873
76874         * lib/regex.h (REG_NOSYS)
76875         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76876         Define, since POSIX requires it as of 2001.
76877         (_REG_ENOSYS)
76878         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76879         New private symbol, used to keep the enum signed in all cases.
76880         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76881         Youngman in
76882         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76883
76884         * lib/regex_internal.c (re_string_skip_chars, register_state):
76885         (calc_state_hash):
76886         Remove forward decls; no longer needed now that we use prototypes.
76887         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76888         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76889         (clean_state_log_if_needed): Likewise.
76890
76891 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76892
76893         * config/srclist.txt: Add glibc bugs 1231-1233.
76894
76895 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76896
76897         Fix problems reported by Sam Steingold in
76898         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76899         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76900         assumed that reg_errcode_t is a signed type, which is not
76901         necessarily true if _XOPEN_SOURCE is not defined.
76902         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76903         since some compilers warn about it otherwise.
76904
76905 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76908         (init_word_char, create_initial_state, duplicate_node_closure):
76909         (fetch_token, peek_token_bracket, build_range_exp):
76910         (build_collating_symbol): Remove forward decls; no longer needed
76911         now that we use prototypes.
76912
76913         * lib/regcomp.c:
76914         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76915         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76916         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76917         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76918         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76919         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76920         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76921         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76922         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76923         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76924         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76925         (build_charclass, build_charclass_op, fetch_number, create_tree):
76926         (create_token_tree, mark_opt_subexp, duplicate_tree):
76927         Use prototypes rather than old-style definitions.
76928
76929         * lib/regex_internal.c:
76930         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76931         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76932         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76933         (re_string_reconstruct, re_string_peek_byte_case):
76934         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76935         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76936         (re_node_set_init_copy, re_node_set_add_intersect):
76937         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76938         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76939         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76940         (re_acquire_state, re_acquire_state_context, register_state):
76941         (create_ci_newstate, create_cd_newstate, free_state):
76942         Likewise.
76943         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76944         re_search_2):
76945         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76946         (re_search_internal, prune_impossible_nodes):
76947         (acquire_init_state_context, check_matching, static):
76948         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76949         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76950         (update_regs, sift_states_backward, build_sifted_states):
76951         (clean_state_log_if_needed, merge_state_array):
76952         (update_cur_sifted_state, add_epsilon_src_nodes):
76953         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76954         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76955         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76956         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76957         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76958         (check_arrival, check_arrival_add_next_nodes):
76959         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76960         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76961         (check_node_accept_bytes, check_node_accept, extend_buffers):
76962         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76963         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76964         (sift_ctx_init):
76965         Likewise.
76966
76967         * lib/regex_internal.h:
76968         (re_string_allocate, re_string_construct, re_string_reconstruct):
76969         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76970         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76971         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76972         (re_string_context_at, re_string_peek_byte_case):
76973         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76974         is defined, since we now use prototypes always.
76975
76976         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76977         C89 or better.  All uses removed.
76978
76979 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76980
76981         * config/srclist.txt: Add glibc bugs 1220-1227.
76982
76983 2005-08-20  Jim Meyering  <jim@meyering.net>
76984
76985         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76986         of unused local, dfa.
76987
76988 2005-08-20  Bruno Haible  <bruno@clisp.org>
76989
76990         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76991
76992 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76993
76994         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76995         (re_node_set_insert_last, re_dfa_add_node):
76996         Rename local variables to avoid GCC shadowing warnings.
76997
76998 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76999
77000         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77001         [defined lint]: Suppress bogus uninitialized-variable warnings.
77002
77003         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77004         and let the caller return REG_ESPACE if out of space.  This
77005         removes an uninitialied-variable warning with GCC 4.0.1, and also
77006         avoids taking the address of a local variable.  All callers
77007         changed.
77008
77009 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77010
77011         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77012         $LIBCSRC/posix/regexec.c.
77013         Add glibc bug 1217 for regcomp.c.
77014
77015 2005-08-19  Jim Meyering  <jim@meyering.net>
77016
77017         * lib/regexec.c (proceed_next_node): Redo local variables to
77018         avoid GCC shadowing warnings.
77019
77020 2005-08-18  Bruno Haible  <bruno@clisp.org>
77021
77022         * lib/strstr.c (strstr): Fix return value in multibyte case.
77023         * lib/strcasestr.c (strcasestr): Likewise.
77024
77025 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77026
77027         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77028
77029 2005-08-17  Jim Meyering  <jim@meyering.net>
77030
77031         Make the %s format (seconds since the epoch) work for a negative
77032         number and when used with a zero-padded field width, e.g. %015s.
77033
77034         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77035         label so that it precedes the code to set `digits'.  Otherwise,
77036         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77037         print `00-22'.  Now, it prints `-0022', as it should.
77038
77039 2005-08-17  Bruno Haible  <bruno@clisp.org>
77040
77041         * modules/strstr (Files): Add m4/mbrtowc.m4.
77042         (Depends-on): Add mbuiter.
77043
77044 2005-08-17  Bruno Haible  <bruno@clisp.org>
77045
77046         * modules/strcasestr: New file.
77047         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77048         strcasestr.
77049
77050 2005-08-17  Bruno Haible  <bruno@clisp.org>
77051
77052         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77053
77054 2005-08-17  Bruno Haible  <bruno@clisp.org>
77055
77056         * modules/mbuiter: New file.
77057         * MODULES.html.sh (Extended multibyte and wide character utilities):
77058         Add mbuiter.
77059
77060 2005-08-17  Bruno Haible  <bruno@clisp.org>
77061
77062         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77063         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77064
77065 2005-08-17  Bruno Haible  <bruno@clisp.org>
77066
77067         * m4/strcasestr.m4: New file.
77068
77069 2005-08-17  Bruno Haible  <bruno@clisp.org>
77070
77071         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77072         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77073
77074 2005-08-17  Bruno Haible  <bruno@clisp.org>
77075
77076         * lib/strcasestr.h: New file.
77077         * lib/strcasestr.c: New file.
77078
77079 2005-08-17  Bruno Haible  <bruno@clisp.org>
77080
77081         * lib/strcasecmp.c: Use mbuiter.h.
77082
77083 2005-08-17  Bruno Haible  <bruno@clisp.org>
77084
77085         * lib/mbuiter.h: New file.
77086
77087 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77088
77089         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77090         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77091         and gl_GETOPT are both invoked via different paths (as happens
77092         with GNU tar CVS because it uses both argp and getopt), the former
77093         wins.
77094
77095 2005-08-16  Bruno Haible  <bruno@clisp.org>
77096
77097         * modules/tls: New file.
77098         * MODULES.html.sh (Multithreading): Add tls.
77099
77100 2005-08-16  Bruno Haible  <bruno@clisp.org>
77101
77102         * modules/strnlen1: New file.
77103         * MODULES.html.sh (String handling): Add strnlen1.
77104
77105 2005-08-16  Bruno Haible  <bruno@clisp.org>
77106
77107         * modules/strcase (Files): Add m4/mbrtowc.m4.
77108         (Depends-on): Add strnlen1, mbchar.
77109
77110 2005-08-16  Bruno Haible  <bruno@clisp.org>
77111
77112         * modules/mbiter: New file.
77113         * MODULES.html.sh (Extended multibyte and wide character utilities):
77114         Add mbiter.
77115
77116 2005-08-16  Bruno Haible  <bruno@clisp.org>
77117
77118         * modules/mbfile: New file.
77119         * MODULES.html.sh (Extended multibyte and wide character utilities):
77120         Add mbfile.
77121
77122 2005-08-16  Bruno Haible  <bruno@clisp.org>
77123
77124         * modules/mbchar: New file.
77125         * MODULES.html.sh (Extended multibyte and wide character utilities):
77126         New section.
77127
77128 2005-08-16  Bruno Haible  <bruno@clisp.org>
77129
77130         * m4/tls.m4: New file, from GNU gettext.
77131
77132 2005-08-16  Bruno Haible  <bruno@clisp.org>
77133
77134         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77135         always.
77136         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77137
77138 2005-08-16  Bruno Haible  <bruno@clisp.org>
77139
77140         * m4/mbiter.m4: New file.
77141
77142 2005-08-16  Bruno Haible  <bruno@clisp.org>
77143
77144         * m4/mbfile.m4: New file.
77145
77146 2005-08-16  Bruno Haible  <bruno@clisp.org>
77147
77148         * m4/mbchar.m4: New file.
77149
77150 2005-08-16  Bruno Haible  <bruno@clisp.org>
77151
77152         * lib/tls.h: New file, from GNU gettext.
77153         * lib/tls.c: New file, from GNU gettext.
77154
77155 2005-08-16  Bruno Haible  <bruno@clisp.org>
77156
77157         * lib/strnlen1.h: New file.
77158         * lib/strnlen1.c: New file.
77159
77160 2005-08-16  Bruno Haible  <bruno@clisp.org>
77161
77162         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77163         (mbi_init): Update.
77164         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77165         NUL byte, not after it.
77166
77167 2005-08-16  Bruno Haible  <bruno@clisp.org>
77168
77169         * lib/strcase.h (strcasecmp): Add note in comments.
77170         * lib/strncasecmp.c: Use code from strcasecmp.c.
77171         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77172         (strcasecmp): Work correctly in multibyte locales.
77173
77174 2005-08-16  Bruno Haible  <bruno@clisp.org>
77175
77176         * lib/mbiter.h: New file.
77177
77178 2005-08-16  Bruno Haible  <bruno@clisp.org>
77179
77180         * lib/mbfile.h: New file.
77181
77182 2005-08-16  Bruno Haible  <bruno@clisp.org>
77183
77184         * lib/mbchar.h: New file.
77185         * lib/mbchar.c: New file.
77186
77187 2005-08-16  Bruno Haible  <bruno@clisp.org>
77188
77189         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77190         the valid ones. Makes the comparison operations transitive:
77191         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77192         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77193
77194 2005-08-15  Simon Josefsson  <jas@extundo.com>
77195
77196         * modules/ssize_t (License): Change to 'unlimited'.
77197
77198         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77199
77200 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77201
77202         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77203         Add comments for each pending glibc patch.
77204
77205 2005-08-15  Bruno Haible  <bruno@clisp.org>
77206
77207         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77208         __cplusplus is defined.
77209
77210 2005-08-14  Jim Meyering  <jim@meyering.net>
77211
77212         Sync from coreutils.
77213
77214         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77215         Use the hash-table-based cycle-detection code not just when
77216         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77217         Reported by James Youngman in
77218         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77219         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77220         FTS_TIGHT_CYCLE_CHECK.
77221         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77222         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77223         once again.
77224         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77225         * lib/fts.c (fd_safer): Remove decl.
77226         Include fcntl--.h rather than unistd-safer.h
77227         (fts_safe_changedir): Don't call fd_safer; no longer needed
77228         now that we include fcntl--.h.
77229
77230 2005-08-12  Simon Josefsson  <jas@extundo.com>
77231
77232         * modules/getndelim2: Use ssize_t module.
77233         * modules/getnline: Likewise.
77234         * modules/safe-read: Likewise.
77235         * modules/xreadlink: Likewise.
77236
77237         * modules/ssize_t: New file.
77238
77239 2005-08-12  Simon Josefsson  <jas@extundo.com>
77240
77241         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77242
77243 2005-08-12  Simon Josefsson  <jas@extundo.com>
77244
77245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77246         ssize_t.
77247
77248 2005-08-12  Simon Josefsson  <jas@extundo.com>
77249
77250         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77251         readline, getdelim and check_version.
77252         (Support for systems lacking ISO C 99: Sizes of integer types):
77253         Add size_max.
77254
77255 2005-08-12  Bruno Haible  <bruno@clisp.org>
77256
77257         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77258
77259 2005-08-11  Simon Josefsson  <jas@extundo.com>
77260
77261         * modules/readline: New file.
77262
77263         * modules/strnlen (Files): Add strnlen.h.
77264
77265 2005-08-11  Simon Josefsson  <jas@extundo.com>
77266
77267         * m4/readline.m4: New file.
77268
77269 2005-08-11  Simon Josefsson  <jas@extundo.com>
77270
77271         * lib/readline.h, readline.c: New file.
77272
77273 2005-08-11  Simon Josefsson  <jas@extundo.com>
77274
77275         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77276         gl_AVOID.
77277
77278 2005-08-11  Bruno Haible  <bruno@clisp.org>
77279
77280         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77281
77282 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77283
77284         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77285
77286 2005-08-10  Simon Josefsson  <jas@extundo.com>
77287
77288         * tests/test-iconvme.c: New file.
77289
77290 2005-08-10  Simon Josefsson  <jas@extundo.com>
77291
77292         * m4/strnlen.m4: New file.
77293
77294         * m4/strndup.m4: Don't check for strnlen declaration, done in
77295         strnlen.m4.
77296
77297 2005-08-10  Simon Josefsson  <jas@extundo.com>
77298
77299         * lib/strndup.c: Use strnlen.h.
77300
77301         * lib/strnlen.h: New file.
77302
77303 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77304
77305         * README: Typos.
77306
77307 2005-08-02  Simon Josefsson  <jas@extundo.com>
77308
77309         * modules/readline: New file.
77310
77311 2005-08-02  Simon Josefsson  <jas@extundo.com>
77312
77313         * modules/getdelim: New file.
77314
77315         * modules/getline: Rewrite, don't use getndelim2.
77316
77317 2005-08-02  Simon Josefsson  <jas@extundo.com>
77318
77319         * m4/getline.m4: Separate out getdelim stuff into separate module.
77320
77321         * m4/getdelim.m4: New file.
77322
77323 2005-08-02  Simon Josefsson  <jas@extundo.com>
77324
77325         * lib/getline.h, getline.c: Rewrite.
77326
77327         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77328
77329 2005-07-31  Bruno Haible  <bruno@clisp.org>
77330
77331         * lib/lock.h (gl_lock_initializer): New macro.
77332         (gl_lock_define_initialized): Use it.
77333         (gl_rwlock_initializer): New macro.
77334         (gl_rwlock_define_initialized): Use it.
77335         (gl_recursive_lock_initializer): New macro.
77336         (gl_recursive_lock_define_initialized): Use it.
77337
77338 2005-07-30  Karl Berry  <karl@gnu.org>
77339
77340         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77341         Report from Ben Pfaff, regarding getopt.
77342
77343 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77346         normal way.
77347         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77348         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77349         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77350         (gl_GETOPT): Use the new macros.  Most of the implementation
77351         is moved to the new macros.  This is for programs like Emacs
77352         that don't want all the functionality of gl_GETOPT.
77353
77354 2005-07-26  Bruno Haible  <bruno@clisp.org>
77355
77356         * m4/lock.m4: Update from GNU gettext.
77357
77358 2005-07-26  Bruno Haible  <bruno@clisp.org>
77359
77360         * lib/lock.h: Update from GNU gettext.
77361         * lib/lock.c: Update from GNU gettext.
77362
77363 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77364
77365         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77366         obsolescent AC_TRY_RUN.  Include the default includes files, for
77367         'exit'.
77368
77369 2005-07-24  Bruno Haible  <bruno@clisp.org>
77370
77371         * modules/visibility: New file.
77372         * MODULES.html.sh (Misc): Add visibility.
77373
77374 2005-07-24  Bruno Haible  <bruno@clisp.org>
77375
77376         * m4/visibility.m4: New file.
77377
77378 2005-07-24  Bruno Haible  <bruno@clisp.org>
77379
77380         * doc/visibility.texi: New file.
77381
77382 2005-07-22  Bruno Haible  <bruno@clisp.org>
77383
77384         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77385         $(ALLOCA_H), redundant through BUILT_SOURCES.
77386         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77387         redundant through BUILT_SOURCES.
77388         * modules/byteswap (Makefile.am): Remove explicit dependency on
77389         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77390         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77391         $(FNMATCH_H), redundant through BUILT_SOURCES.
77392         * modules/getopt (Makefile.am): Remove explicit dependency on
77393         $(GETOPT_H), redundant through BUILT_SOURCES.
77394         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77395         redundant through BUILT_SOURCES.
77396         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77397         redundant through BUILT_SOURCES.
77398         * modules/stdbool (Makefile.am): Remove explicit dependency on
77399         $(STDBOOL_H), redundant through BUILT_SOURCES.
77400         * modules/stdint (Makefile.am): Remove explicit dependency on
77401         $(STDINT_H), redundant through BUILT_SOURCES.
77402         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77403         Remove explicit dependency on $(SYSEXITS_H).
77404         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77405
77406 2005-07-18  Simon Josefsson  <jas@extundo.com>
77407
77408         * lib/check-version.c (check_version): Accept identical versions too.
77409
77410 2005-07-18  Bruno Haible  <bruno@clisp.org>
77411
77412         * modules/lock: New file.
77413         * MODULES.html.sh (Multithreading): New section.
77414
77415 2005-07-18  Bruno Haible  <bruno@clisp.org>
77416
77417         * m4/lock.m4: New file, from GNU gettext.
77418
77419 2005-07-18  Bruno Haible  <bruno@clisp.org>
77420
77421         * lib/lock.h: New file, from GNU gettext.
77422         * lib/lock.c: New file, from GNU gettext.
77423
77424 2005-07-18  Bruno Haible  <bruno@clisp.org>
77425
77426         * lib/lock.h (gl_once_t): New type.
77427         (gl_once_define, gl_once): New macros.
77428         * lib/lock.c (fresh_once): New variable.
77429         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77430         functions.
77431
77432 2005-07-16  Simon Josefsson  <jas@extundo.com>
77433
77434         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77435         workaround, suggested by Bruno.
77436
77437 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77438
77439         * modules/xalloc (Depends-on): Add xalloc-die.
77440         * modules/xvasprintf (Depends-on): Add xalloc-die.
77441
77442 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77443
77444         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77445         with a minor change.
77446
77447 2005-07-15  Bruno Haible  <bruno@clisp.org>
77448
77449         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77450         When using lib/poll.c, define poll as rpl_poll.
77451
77452 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77453
77454         * modules/argp (Depends-on): Remove unlocked-io.
77455
77456 2005-07-14  Derek Price  <derek@ximbiot.com>
77457
77458         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77459         for glob symlink bug.
77460
77461 2005-07-14  Bruno Haible  <bruno@clisp.org>
77462
77463         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77464         Instead, test for *_unlocked function declarations directly.
77465
77466 2005-07-11  Simon Josefsson  <jas@extundo.com>
77467
77468         * modules/size_max: New file.
77469
77470         * modules/xsize: Depend on size_max module for size_max.m4.
77471
77472 2005-07-11  Simon Josefsson  <jas@extundo.com>
77473
77474         * lib/size_max.h: New file.
77475
77476 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77477
77478         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77479         copyright symbol and the year.
77480         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77481         (version_etc_va): Use parameterized copyright notice.
77482         Reword to conform to the current GNU coding standards.
77483
77484 2005-07-11  Karl Berry  <karl@gnu.org>
77485
77486         * doc/gnulib.texi (Quoting): new node.
77487         (Initial import): more info, from Patrice.
77488
77489 2005-07-11  Bruno Haible  <bruno@clisp.org>
77490
77491         * gnulib-tool (func_usage): Document option --avoid.
77492         (Command line options): Handle --avoid.
77493         (func_acceptable): New function.
77494         (func_modules_transitive_closure): Use it.
77495
77496 2005-07-11  Bruno Haible  <bruno@clisp.org>
77497
77498         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77499         Reported by Jim Meyering.
77500
77501 2005-07-10  Bruno Haible  <bruno@clisp.org>
77502
77503         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77504         Needed when size_t is smaller than 'unsigned int'.
77505         Reported by Paul Eggert.
77506
77507 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77508
77509         * modules/argp (Depends-on): Add unlocked-io
77510
77511 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77512
77513         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77514         block of defines.
77515
77516 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77517
77518         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77519         fix now.
77520
77521 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77522         and Paul Eggert  <eggert@cs.ucla.edu>
77523
77524         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77525         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77526
77527 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77528
77529         * modules/regex (Files): Add lib/regex_internal.c,
77530         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77531         (Depends-on): Add extensions.
77532         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77533
77534 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77535
77536         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77537         pathconf.
77538         * m4/same.m4 (gl_SAME): Likewise.
77539         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77540
77541         * m4/regex.m4: Adjust to new libc regex implementation.
77542         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77543         all the .c and .h parts of (the new) regex.
77544         Quote the m4 stuff better.
77545         Check for RE_ICASE bug of old gnulib.
77546         Check for REG_STARTEND of recent libc.
77547         Rename local variables from jm_* to gl_*.
77548         Quote operand of "test -f".
77549         Say "recent enough" version of libc, not "version 2".
77550         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77551         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77552         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77553         Remove check for btowc, isascii.
77554         Require AM_LANGINFO_CODESET.
77555
77556 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77557
77558         * lib/regex.c, regex.h: Sync from libc.
77559         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77560         * lib/regexec.c:
77561         New files, synced from libc, except that regex_internal.h
77562         currently has a small porting fix.
77563
77564 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77565
77566         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77567         regex_internal.c, regexec.c.
77568         Add regex_internal.h too, but as a comment, since the libc version
77569         is currently broken in gnulib mode.
77570
77571 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77572
77573         Support programs like Emacs that use gnulib but not gettext.
77574         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77575         * modules/gettext-h: New file.
77576         * modules/gettext (Files): Remove lib/gettext.h.
77577         (Depends-on): Add gettext-h.
77578         (Makefile.am): Remove lib_SOURCES.
77579         * modules/argmatch, modules/c-stack, modules/closeout:
77580         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77581         * modules/execute, modules/file-type, modules/getaddrinfo:
77582         * modules/getopt, modules/human, modules/javacomp:
77583         * modules/javaexec, modules/mkdir-p, modules/obstack:
77584         * modules/openat, modules/pagealign_alloc, modules/pipe:
77585         * modules/quotearg, modules/regex, modules/rpmatch:
77586         * modules/unicodeio, modules/userspec, modules/version-etc:
77587         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77588         * modules/xsetenv:
77589         Depend on gettext-h, not gettext.
77590
77591 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77592
77593         * gnulib-tool (func_import): Add support for 'public domain' license.
77594         * modules/alloca, modules/atexit, modules/memmove:
77595         Now public domain, not GPL.
77596         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77597         * modules/realloc, modules/strerror, modules/strtod:
77598         Now LGPL, not GPL.
77599
77600 2005-07-05  Bruno Haible  <bruno@clisp.org>
77601
77602         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77603         autoconf CVS. Needed for mingw.
77604
77605 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77606
77607         Remove the dependency of the strftime module on the tzset module.
77608         * modules/strftime (Depends-on): Remove dependency on tzset.
77609
77610 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77611
77612         Remove the dependency of the strftime module on the tzset module.
77613         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77614         gl_FUNC_TZSET_CLOBBER.
77615
77616 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77617
77618         Remove the dependency of the strftime module on the tzset module.
77619         * lib/strftime.c (my_strftime)
77620         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77621         Copy the input structure, to work around some of the bug with
77622         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77623         Solaris releases, you should also use the tzset module, but we won't
77624         require it as a dependency any more since we don't want LGPLed code
77625         to depend on GPLed code.
77626
77627 2005-07-02  Jim Meyering  <jim@meyering.net>
77628
77629         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77630         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77631         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77632         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77633
77634 2005-07-02  Jim Meyering  <jim@meyering.net>
77635
77636         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77637
77638 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77639
77640         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77641         declares only 'struct timespec;' (!).
77642
77643 2005-07-01  Jim Meyering  <jim@meyering.net>
77644
77645         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77646         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77647         * lib/save-cwd.c, tempname.c:
77648         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77649         and don't include <sys/file.h>).
77650
77651 2005-06-29  Jim Meyering  <jim@meyering.net>
77652
77653         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77654         type name.  Use the variable name instead.
77655         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77656         Likewise.
77657
77658 2005-06-28  Simon Josefsson  <jas@extundo.com>
77659
77660         * modules/check-version (Files): Add check-version.m4.
77661
77662 2005-06-28  Simon Josefsson  <jas@extundo.com>
77663
77664         * m4/check-version.m4: New file, suggested by Jim Meyering
77665         <jim@meyering.net>.
77666
77667 2005-06-28  Simon Josefsson  <jas@extundo.com>
77668
77669         * lib/check-version.h, lib/check-version.c: New files.
77670
77671 2005-06-28  Simon Josefsson  <jas@extundo.com>
77672
77673         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77674         collision with global variable.  Better indentation.  Don't
77675         increment buffer pointer beyond buffer end.  Based on comments
77676         from Paul Eggert <eggert@cs.ucla.edu>.
77677
77678         * lib/base64.h: Indent.
77679
77680 2005-06-28  Simon Josefsson  <jas@extundo.com>
77681
77682         * doc/gnulib.texi (Library version handling): New section.
77683
77684 2005-06-28  Jim Meyering  <jim@meyering.net>
77685
77686         * check-module (find_included_lib_files): Hard-code another
77687         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77688         but modules/fts-lgpl (correctly) does not list those files.
77689
77690         * modules/canonicalize (Files): Add lib/pathmax.h.
77691
77692 2005-06-25  Simon Josefsson  <jas@extundo.com>
77693
77694         * modules/check-version: New file.
77695
77696 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77697
77698         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77699         initializer of struct addrinfo, as an indication that we don't
77700         care how many members the structure has.
77701
77702 2005-06-24  Derek Price  <derek@ximbiot.com>
77703         and Bruno Haible  <bruno@clisp.org>
77704
77705         Remove stat module & update lstat.
77706         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77707         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77708         * m4/stat.m4: Remove this file.
77709
77710 2005-06-24  Derek Price  <derek@ximbiot.com>
77711         and Bruno Haible  <bruno@clisp.org>
77712
77713         Remove stat module & update lstat.
77714         * lib/stat.c: Remove this file...
77715         (slash_aware_lstat): ...moving this content and its support...
77716         * lib/lstat.c (rpl_lstat): ...into here.
77717         * lib/lstat.h: New file.
77718
77719 2005-06-24  Derek Price  <derek@ximbiot.com>
77720         and Bruno Haible  <bruno@clisp.org>
77721
77722         Remove stat module & update lstat.
77723         * config/srclist.txt (libc sources): Remove stat.
77724
77725 2005-06-24  Derek Price  <derek@ximbiot.com>
77726         and Bruno Haible  <bruno@clisp.org>
77727
77728         Remove stat module & update lstat.
77729         * MODULES.html.sh (stat): Remove.
77730         * MODULES.html: Regenerated.
77731         * modules/lstat (Description): Correct function name.
77732         (Files): Add "lstat.h".
77733         (Depends-on): Remove stat, add xalloc, stat-macros.
77734         * modules/stat: Remove this file.
77735         (Include): Add "lstat.h", remove <sys/stat.h>.
77736
77737 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77738
77739         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77740         (ranged_convert): Don't save conversion in a temporary struct.
77741         This causes a warning with GCC 4.0.0, and anyway in the typical
77742         case it's not worth the extra 100 bytes or so of code.
77743         (ranged_convert, __mktime_internal): When calling a function via a
77744         pointer P, use P () rather than (*P) (), as we now assume C89 or
77745         better.
77746
77747 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77750         "who -r" failed to give output.  Problem reported by Tim Waugh.
77751
77752         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77753         (xcalloc): Use it to avoid needless tests.
77754         Problem reported by Jim Meyering.
77755
77756 2005-06-20  Derek Price  <derek@ximbiot.com>
77757
77758         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77759         unnecessary for Autoconfs > 2.59c.
77760
77761 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77762
77763         * lib/argp.h (__option_is_short): Check upper limit of
77764         __key. Isprint() requires its argument to have the value
77765         of an unsigned char or EOF.
77766
77767 2005-06-16  Jim Meyering  <jim@meyering.net>
77768
77769         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77770         when either N or S is zero.
77771
77772 2005-06-16  Derek Price  <derek@ximbiot.com>
77773
77774         * m4/bison.m4: Declare YACC & YFLAGS precious.
77775
77776 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77777
77778         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77779         multibyte string or pattern, fall back on unibyte matching.
77780         Problem reported by James Youngman.
77781
77782 2005-06-08  Bruno Haible  <bruno@clisp.org>
77783
77784         * modules/csharpcomp: New file.
77785         * MODULES.html.sh (C#): Add csharpcomp.
77786
77787 2005-06-08  Bruno Haible  <bruno@clisp.org>
77788
77789         * m4/csharpcomp.m4: New file, from GNU gettext.
77790
77791 2005-06-08  Bruno Haible  <bruno@clisp.org>
77792
77793         * lib/csharpcomp.h: New file, from GNU gettext.
77794         * lib/csharpcomp.c: New file, from GNU gettext.
77795         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77796
77797 2005-06-08  Bruno Haible  <bruno@clisp.org>
77798
77799         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77800         warning on mingw.
77801
77802 2005-06-07  Derek Price  <derek@ximbiot.com>
77803
77804         Sync from CVS.
77805         * lib/glob_.h: Indent nested #ifdef.
77806
77807 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77808
77809         Sync from coreutils.
77810         Use "file name" when talking about file names, instead of "filename"
77811         or "path", as per the GNU coding standards.
77812         * lib/mkdir-p.c: Renamed from makepath.c.
77813         (make_dir_parents): Renamed from make_path.  All callers changed.
77814         * lib/mkdir-p.h: Likewise.  All includers changed.
77815         * lib/filenamecat.c: Renamed from path-concat.c.
77816         (file_name_concat): Renamed from path_concat.  All callers changed.
77817         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77818         * lib/filenamecat.h: Likewise.  All includers changed.
77819         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77820         in comments or local variable names.
77821         * lib/basename.c: Likewise.
77822         * lib/canonicalize.c, canonicalize.h: Likewise.
77823         * lib/dirname.c, dirname.h: Likewise.
77824         * lib/euidaccess.c: Likewise.
77825         * lib/exclude.c: Likewise
77826         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77827         * lib/fsusage.c, fsuage.h: Likewise.
77828         * lib/fts.c, fts_.h: Likewise.
77829         * lib/getcwd.c: Likewise.
77830         * lib/getloadavg.c: Likewise.
77831         * lib/mkstemp.c: Likewise.
77832         * lib/mountlist.c, mountlist.h: Likewise.
77833         * lib/openat.c, openat.h: Likewise.
77834         * lib/readlink-stub.c: Likewise.
77835         * lib/readutmp.c, readutmp.h: Likewise.
77836         * lib/rename.c: Likewise.
77837         * lib/rmdir.c: Likewise.
77838         * lib/same.c: Likewise.
77839         * lib/savedir.c: Likewise.
77840         * lib/stripslash.c: Likewise.
77841         * lib/tempname.c: Likewise.
77842         * lib/xreadlink.c: Likewise.
77843         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77844         All uses changed.
77845         * lib/exclude.h: Likewise.
77846
77847         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77848         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77849         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77850         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77851         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77852         files have been getting away with it for years (MORE/BSD 4.3
77853         is extinct now).
77854         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77855         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77856
77857         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77858         Define to 256, not 255, as per modern POSIX.
77859
77860 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77861
77862         Sync from coreutils.
77863         Use "file name" when talking about file names, instead of "filename"
77864         or "path", as per the GNU coding standards.
77865         * MODULES.html.sh: mkdir-p renamed from makepath.
77866         filenamecat renamed from path-concat.
77867         * modules/filenamecat: Renamed from modules/path-concat.
77868         (Files): filenamecat.h and filenamecat.c renamed from
77869         path-concat.h and path-concat.c.
77870         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77871         (Include): filenamecat.h, not path-concat.h.
77872         * modules/mkdir-p: Renamed from modules/makepath.
77873         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77874         makepath.c.
77875         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77876         (Include): mkdir-p.h, not makepath.h.
77877
77878 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77879
77880         Sync from coreutils.
77881         * m4/mkdir-p.m4: Renamed from makepath.m4.
77882         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77883         Rename files from makepath.c to mkdir-p.c, and from
77884         makepath.h to mkdir-p.h.
77885         * m4/filenamecat.m4: Renamed from path-concat.m4.
77886         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77887         Rename files from path-concat.c to filenamecat.c,
77888         and from path-concat.h to filenamecat.h.
77889         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77890         "file name" in local variables or comments.
77891         * m4/rename.m4: Likewise.
77892
77893 2005-06-01  Bruno Haible  <bruno@clisp.org>
77894
77895         * modules/csharpexec: New file.
77896         * MODULES.html.sh (C#): New section.
77897
77898 2005-06-01  Bruno Haible  <bruno@clisp.org>
77899
77900         * m4/csharp.m4: New file, from GNU gettext.
77901         * m4/csharpexec.m4: New file, from GNU gettext.
77902
77903 2005-06-01  Bruno Haible  <bruno@clisp.org>
77904
77905         * lib/csharpexec.h: New file, from GNU gettext.
77906         * lib/csharpexec.c: New file, from GNU gettext.
77907         * lib/csharpexec.sh.in: New file, from GNU gettext.
77908
77909 2005-05-31  Derek Price  <derek@ximbiot.com>
77910             Paul Eggert  <eggert@cs.ucla.edu>
77911
77912         Sync from cvs.
77913         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77914
77915 2005-05-31  Derek Price  <derek@ximbiot.com>
77916             Paul Eggert  <eggert@cs.ucla.edu>
77917
77918         Sync from cvs.
77919         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77920
77921 2005-05-29  Derek Price  <derek@ximbiot.com>
77922
77923         * config/srclist.txt (glob_.h, glob.c): Add these files.
77924
77925 2005-05-29  Derek Price  <derek@ximbiot.com>
77926
77927         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77928         * modules/glob: New file.
77929         * modules/getlogin_r: Add link to POSIX spec in description.
77930
77931 2005-05-29  Derek Price  <derek@ximbiot.com>
77932             Paul Eggert  <eggert@cs.ucla.edu>
77933
77934         * m4/glob.m4: New file.
77935
77936 2005-05-29  Derek Price  <derek@ximbiot.com>
77937             Paul Eggert  <eggert@cs.ucla.edu>
77938
77939         * lib/glob_.h, lib/glob.c: New files.
77940
77941 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77942
77943         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77944         * modules/fts-lgpl (Depends-on): Remove gettext.
77945
77946 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77947
77948         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77949         and don't require gt_INTTYPES_PRI.
77950
77951 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77952
77953         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77954
77955         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77956         the configuration hassle isn't worth it.
77957         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77958         (LONGEST_MODIFIER, PRIuMAX): Remove.
77959
77960 2005-05-27  Bruno Haible  <bruno@clisp.org>
77961
77962         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77963
77964 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77965
77966         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77967         _POSIX_PTHREAD_SEMANTICS for Solaris.
77968
77969 2005-05-25  Derek Price  <derek@ximbiot.com>
77970
77971         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77972
77973 2005-05-25  Derek Price  <derek@ximbiot.com>
77974             Paul Eggert  <eggert@cs.ucla.edu>
77975
77976         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77977         * lib/getlogin_r.c, getlogin_r.h: New files.
77978
77979 2005-05-25  Bruno Haible  <bruno@clisp.org>
77980             Derek Price  <derek@ximbiot.com>
77981
77982         * lib/getlogin_r.h: Simplify API documentation.
77983
77984 2005-05-23  Derek Price  <derek@ximbiot.com>
77985
77986         * modules/minmax (Files): Add m4/minmax.m4.
77987         (configure.ac): Add gl_MINMAX.
77988
77989 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77990
77991         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77992         so that unistd-safer.h (GPL'ed code) need not be included.
77993
77994 2005-05-22  Bruno Haible  <bruno@clisp.org>
77995
77996         * m4/minmax.m4: New file.
77997         Based on a patch by Derek Price <derek@ximbiot.com>.
77998
77999 2005-05-22  Bruno Haible  <bruno@clisp.org>
78000
78001         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78002         (INT64_MIN): Fix definition.
78003         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78004
78005         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78006         NEED_SIGNED_INT_TYPES.
78007
78008         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78009         HAVE_SYSTEM_INTTYPES.
78010
78011 2005-05-22  Bruno Haible  <bruno@clisp.org>
78012
78013         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78014         Also include <sys/param.h> if it defines MIN, MAX.
78015         Based on a patch by Derek Price <derek@ximbiot.com>.
78016
78017 2005-05-21  Jim Meyering  <jim@meyering.net>
78018
78019         * modules/fts (Files): Add m4/inttypes-pri.m4.
78020         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78021
78022 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78023
78024         New fts module.
78025         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78026         (setup_dir, free_dir): New functions.
78027         (enter_dir, leave_dir): Define trivial
78028         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78029         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78030         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78031         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78032         Move to fts-cycle.c.
78033         (fts_open): Use setup_dir.
78034         (fts_close): Use free_dir.
78035         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78036         This adds a label and some gotos, but the alternatives were messier.
78037         Check for memory allocation failure when entering a dir.
78038         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78039         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78040         (FTS): New member fts_cycle, that is a union that contains the
78041         old active_dir_ht and cycle_state.  All uses changed to mention
78042         fts_cycle.ht and fts_cycle.state.
78043         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78044         fts.c, with the following changes:
78045         (setup_dir, free_dir): New functions.
78046         (enter_dir): Now returns bool.  Return true if successful, false
78047         if memory exhausted.  All callers changed.
78048         Do not bother partly cleaning up on
78049         memory allocation failure; that is free_dir's job.
78050         However, free ad if hash_insert fails, to avoid memory leak.
78051         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78052         fts->fts_options to see which union member to use.
78053
78054 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78055
78056         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78057         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78058
78059 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78060
78061         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78062
78063 2005-05-20  Jim Meyering  <jim@meyering.net>
78064
78065         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78066         Now a macro, to pacify GCC.
78067
78068 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78069
78070         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78071         of -1.
78072
78073 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78074
78075         * lib/chown.c (rpl_chown): Return -1 on failure.
78076
78077 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78078
78079         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78080         Don't check for stddef.h.
78081         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78082         don't use its results.
78083         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78084         since we include them unconditionally.  Don't require
78085         AM_STDBOOL_H, since stdbool is a prerequisite.
78086         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78087         since we assume C89 or better.
78088         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78089         as we don't use their results.
78090         Don't check for fchdir, memmove, memset, strrchr, as we use
78091         them unconditionally.
78092         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78093         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78094
78095 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78098         Include <stddef.h> unconditionally, since we assume C89 now.
78099         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78100         * lib/fts.c: Include fts_.h first, to check interface.
78101         Do not include intprops.h; no longer needed.
78102         Include cycle-check.h and hash.h, since fts_.h no longer does.
78103         Remove unnecessary casts of closedir to void.
78104         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78105         decide whether to decrement nlinks.
78106         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78107         (FTS): Use struct hash_table * instead of Hash_table, so that
78108         we no longer need to include hash.h here.
78109
78110 2005-05-18  Jim Meyering  <jim@meyering.net>
78111
78112         * modules/dirfd (License): Change to LGPL.  Most of the code
78113         is already in the public domain.
78114
78115 2005-05-18  Jim Meyering  <jim@meyering.net>
78116
78117         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78118         Reported by Yoann Vandoorselaere.
78119
78120 2005-05-17  Jim Meyering  <jim@meyering.net>
78121
78122         * m4/fts.m4: New file, from coreutils.
78123
78124 2005-05-17  Jim Meyering  <jim@meyering.net>
78125
78126         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78127
78128 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         Sync from coreutils.
78131         * m4/unlinkdir.m4: New file.
78132
78133 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78134
78135         Sync from coreutils.
78136         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78137         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78138         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78139         White space changes only.
78140         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78141         special.
78142         * lib/yesno.c: Include getline.h, not ctype.h.
78143         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78144         Use getline to remove arbitrary restriction on response length.
78145
78146 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78147
78148         * config/srclist-update: Spell out "Street" in FSF postal
78149         mail address; this is the style the FSF seems to prefer.
78150
78151         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78152         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78153         this updates FSF postal mail address.
78154
78155         Sync from coreutils.
78156         * modules/unlinkdir: New file.
78157         * modules/yesno (Depends-on): Add getline.
78158         * MODULES.html.sh (File system functions): Add unlinkdir.
78159
78160 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78161
78162         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78163         lib/strsep.h:
78164         Change the initial comment to refer to GPL, not LGPL.
78165         gnulib-tool will change it to LGPL as needed.
78166
78167         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78168         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78169         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78170         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78171         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78172         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78173         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78174         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78175         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78176         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78177         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78178         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78179         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78180         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78181         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78182         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78183         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78184         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78185         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78186         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78187         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78188         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78189         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78190         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78191         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78192         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78193         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78194         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78195         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78196         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78197         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78198         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78199         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78200         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78201         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78202         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78203         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78204         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78205         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78206         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78207         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78208         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78209         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78210         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78211         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78212         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78213         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78214         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78215         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78216         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78217         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78218         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78219         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78220         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78221         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78222         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78223         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78224         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78225         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78226         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78227         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78228         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78229         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78230         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78231         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78232         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78233         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78234         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78235         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78236         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78237         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78238         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78239         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78240         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78241         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78242         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78243         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78244         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78245         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78246         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78247         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78248         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78249         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78250         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78251         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78252         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78253         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78254         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78255         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78256         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78257         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78258         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78259         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78260         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78261         lib/yesno.c, lib/yesno.h:
78262         Update FSF postal mail address.
78263
78264 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78265
78266         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78267         tests/test-memmem.c, tests/test-stpncpy.c:
78268         Update FSF postal mail address.
78269
78270 2005-05-13  Bruno Haible  <bruno@clisp.org>
78271
78272         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78273         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78274         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78275         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78276         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78277         Add support for 64-bit integers in the MSVC compiler.
78278
78279 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78280
78281         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78282
78283 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78284
78285         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78286
78287 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78288
78289         * doc/getdate.texi (General date syntax): Don't say that date
78290         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78291         Problem reported by Nic Ferrier.
78292
78293 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78294
78295         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78296         specified in ai_socktype. Fix invalid ai_protocol
78297         check. ai_protocol is usually set to 0 or depending on
78298         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78299         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78300         ai_socktype / ai_protocol in the returned addrinfo structure.
78301
78302 2005-05-10  Simon Josefsson  <jas@extundo.com>
78303
78304         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78305         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78306
78307 2005-05-10  Karl Berry  <karl@gnu.org>
78308
78309         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78310         (from http://www.gnu.org/licenses).
78311         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78312         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78313         fdl.texi suffices.
78314
78315 2005-05-10  Karl Berry  <karl@gnu.org>
78316
78317         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78318         (COPYING.DOC): remove.
78319
78320         * config/srclist-update: new FSF address.
78321
78322 2005-05-10  Derek Price  <derek@ximbiot.com>
78323
78324         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78325         possible.
78326
78327 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78328             Bruno Haible  <bruno@clisp.org>
78329
78330         * modules/inet_ntop: New file.
78331         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78332         inet_ntop.
78333
78334 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78335             Bruno Haible  <bruno@clisp.org>
78336
78337         * m4/inet_ntop.m4: New file.
78338
78339 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78340             Bruno Haible  <bruno@clisp.org>
78341
78342         * lib/inet_ntop.h: New file.
78343         * lib/inet_ntop.c: New file, from glibc with modifications.
78344
78345 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78346
78347         * modules/time_r (License): Change to LGPL.
78348         * modules/extensions (License): Change to LGPL.  Actually,
78349         the license is more permissive than that, but currently gnulib-tool
78350         doesn't know how to handle more-permissive licenses.
78351
78352         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78353         Problem reported by Dave Love.
78354
78355 2005-05-08  Jim Meyering  <jim@meyering.net>
78356
78357         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78358         blank.
78359
78360 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78361
78362         * modules/argmatch (Depends-on): Add stdbool.
78363         * modules/backupfile (Depends-on): Likewise.
78364         * modules/chdir-long (Depends-on): Likewise.
78365         * modules/closeout (Depends-on): Likewise.
78366         * modules/cycle-check (Depends-on): Likewise.
78367         * modules/dirname (Depends-on): Likewise.
78368         * modules/fnmatch (Depends-on): Likewise.
78369         * modules/fsusage (Depends-on): Likewise.
78370         * modules/fwriteerror (Depends-on): Likewise.
78371         * modules/getcwd (Depends-on): Likewise.
78372         * modules/getloadavg (Depends-on): Likewise.
78373         * modules/hard-locale (Depends-on): Likewise.
78374         * modules/makepath (Depends-on): Likewise.
78375         * modules/mountlist (Depends-on): Likewise.
78376         * modules/nanosleep (Depends-on): Likewise.
78377         * modules/posixtm (Depends-on): Likewise.
78378         * modules/quotearg (Depends-on): Likewise.
78379         * modules/readtokens (Depends-on): Likewise.
78380         * modules/readtokens0 (Depends-on): Likewise.
78381         * modules/readutmp (Depends-on): Likewise.
78382         * modules/save-cwd (Depends-on): Likewise.
78383         * modules/strftime (Depends-on): Likewise.
78384         * modules/userspec (Depends-on): Likewise.
78385         * modules/utimecmp (Depends-on): Likewise.
78386         * modules/xgetcwd (Depends-on): Likewise.
78387         * modules/xnanosleep (Depends-on): Likewise.
78388         * modules/xstrtod (Depends-on): Likewise.
78389         * modules/yesno (Depends-on): Likewise.
78390
78391 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78392
78393         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78394         needless checks.
78395
78396 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78397
78398         Merge from coreutils.  Among other things,
78399         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78400         * lib/fd-safer.c: New file.
78401         * lib/fcntl-safer.h, open-safer.c: Remove.
78402         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78403         * lib/dup-safer.c: Include unistd-safer.h first.
78404         Don't include errno.h.
78405         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78406         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78407         * lib/file-type.c: Rely on file-type.h change.
78408         * lib/getloadavg.c: Include unistd-safer.h.
78409         (getloadavg): Use safer open.
78410         * lib/getusershell.c: Include "stdio-safer.h".
78411         (getusershell): Use safer fopen.
78412         * lib/long-options.c (long_options): Use NULL rather than 0.
78413         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78414         'free'.
78415         * lib/modechange.c: Likewise.
78416         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78417         (MODE_DONE): New constant.
78418         (struct mode_change): Remove 'next' member.
78419         (make_node_op_equals): New function; like the old one of the
78420         same name, except it allocates an array.
78421         (mode_compile, mode_create_from_ref): Use it.
78422         (mode_compile): Allocate result as an array, not a linked list.
78423         Parse octal string ourself, so that we catch mistakes like "+0".
78424         (mode_adjust): Arg is an array, not a linked list.
78425         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78426         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78427         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78428         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78429         Remove.  This is now stat-macros.h's job.
78430         (talloc): Remove.  All callers replaced by xalloc, so that
78431         our invokers don't have to worry about reporting memory failures.
78432         (make_node_op_equals): Remove.
78433         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78434         New constants.
78435         (struct mode_change): Moved here from modechange.h.
78436         (mode_append_entry): Remove.
78437         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78438         apps to have incorrect behavior.  Use simpler algorithm for head
78439         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78440         Detect more invalid usages rather than having somewhat-random behavior.
78441         Don't insert an "a=" action, as that leads to incorrect behavior.
78442         (mode_compile, mode_create_from_ref): Return NULL on error instead
78443         of an enum, since now there's only one way to have an error.  All
78444         callers changed.
78445         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78446         at the correct time.  Simplify calculation of "+u" and its ilk.
78447         Don't mishandle "+X".
78448         (mode_free): Remove "register" and localize decls.
78449         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78450         (struct mode_change): Move to modechange.c; callers don't
78451         need to see this stuff.
78452         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78453         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78454         (mode_change, mode_adjust): Reflect the new signatures noted above.
78455         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78456         that might redefine system include files.
78457         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78458         (my_usleep): Use NULL rather than (void *) 0.
78459         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78460         Use siginterrupt to specify that system calls should be interrupted.
78461         (rpl_nanosleep): Move initialization of suspended closer to call of
78462         my_usleep.
78463         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78464         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78465         (desirable_utmp_entry): New function.
78466         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78467         using x2nrealloc, to simplify logic.
78468         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78469         size calculation.  Do not assume utmp file is a regular file.
78470         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78471         (READ_UTMP_CHECK_PIDS): New constant.
78472         * lib/save-cwd.c: Include unistd-safer.h.
78473         (save_cwd): Use fd_safer.
78474         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78475         [!_LIBC] Include "stat-macros.h" instead.
78476         * lib/unistd-safer.h (fd_safer): New decl.
78477
78478 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78479
78480         * modules/getloadavg (Depends-on): Add unistd-safer.
78481         * modules/getusershell (Depends-on): Add stdio-safer.
78482         * modules/lstat (Depends-on): Remove xalloc.
78483         * modules/mkstemp (Depends-on): Add stat-macros.
78484         * modules/modechange (Depends-on): Remove xstrtol.
78485         Add stat-macros, xalloc.
78486         * modules/save-cwd (Depends-on): Add unistd-safer.
78487         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78488         * modules/unistd-safer (Files): Add lib/fd-safer.c
78489         (Makefile.am): Remove lib_SOURCES.
78490
78491         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78492         Remove fcntl-safer; unistd-safer supersedes it.
78493
78494 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78495
78496         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78497         AC_HEADER_STAT.
78498         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78499         (gl_PREREQ_CHOWN): Remove.
78500         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78501         it.  Don't require AC_HEADER_STAT.
78502         (gl_PREREQ_LSTAT): Remove.
78503         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78504         Don't require AC_HEADER_STAT.
78505         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78506         (gl_PREREQ_RMDIR): Remove.
78507         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78508         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78509         the stat-macros module a prerequisite.
78510         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78511         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78512         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78513         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78514         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78515         variable names.
78516         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78517         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78518         variable prefixes.
78519         * m4/fcntl-safer.m4: Remove.
78520         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78521         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78522         Invoke gl_PREREQ_FD_SAFER.
78523         (gl_PREREQ_FD_SAFER): New macro.
78524         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78525         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78526         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78527         Remove duplicate call to AC_LIBOBJ(readutmp).
78528         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78529
78530         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78531         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78532
78533 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78534
78535         * MODULES.html.sh (Misc): Add byteswap.
78536
78537 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78538
78539         * modules/getcwd (Depends-on): Add extensions.
78540         * modules/openat (Depends-on): Likewise.
78541
78542 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78543
78544         * modules/byteswap: New file.
78545
78546 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78547
78548         * m4/byteswap.m4: New file.
78549
78550 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78551
78552         * lib/byteswap_.h: New file.
78553
78554 2005-04-25  Karl Berry  <karl@gnu.org>
78555
78556         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78557
78558 2005-04-25  Albert Chin  <china@thewrittenword.com>
78559
78560         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78561         Toolkit C bug.
78562
78563 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78564
78565         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78566         (func_ln_if_changed): Remove forcibly for no error message
78567         in case file does not exist.
78568
78569 2005-04-19  Simon Josefsson  <jas@extundo.com>
78570
78571         * gnulib-tool (Options): Make --symlink mean --symbolic.
78572
78573 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78574
78575         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78576
78577 2005-04-16  Simon Josefsson  <jas@extundo.com>
78578
78579         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78580
78581 2005-04-15  Simon Josefsson  <jas@extundo.com>
78582
78583         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78584
78585 2005-04-15  Simon Josefsson  <jas@extundo.com>
78586
78587         * gnulib-tool: Rename --symlink to --symbolic.
78588
78589 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78590
78591         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78592         symbolic links to files instead of copying/moving.  Add --aux-dir,
78593         specifying directory relative --dir where auxiliary build tools
78594         are placed.
78595
78596 2005-04-14  Bruno Haible  <bruno@clisp.org>
78597
78598         * modules/allocsa (License): Change to LGPL.
78599         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78600
78601 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78602
78603         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78604         that "UTC +1 second" continues to work.  Problem reported
78605         by Dmitry V. Levin.
78606         (relunit_snumber): New rule.
78607         (relunit): Use it.
78608
78609 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78610
78611         * lib/getdate.y (universal_time_zone_table): New constant.
78612         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78613         universal_time_zone_table.
78614         (lookup_zone): Prefer universal_time_zone_table to
78615         local_time_zone_table, so that "GMT" time stamps are allowed in
78616         London during the summer.  Problem reported by Ian Abbott.
78617
78618 2005-04-12  Jim Meyering  <jim@meyering.net>
78619
78620         * lib/human.c (humblock): Set *options even when returning due to
78621         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78622         warning from gcc-4.
78623
78624 2005-04-09  Jim Meyering  <jim@meyering.net>
78625
78626         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78627         -Wuninitialized: initialize tm0.tm_year.
78628
78629 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78630
78631         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78632         count, since there's no maximum.  All uses changed.
78633         Add member dsts_seen.
78634         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78635         not being INT_MAX.
78636         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78637         Use pc_rels_seen to decide whther a date is absolute.
78638
78639         * lib/getdate.y (number): Don't overwrite year.
78640         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78641         check.
78642
78643 2005-04-02  Simon Josefsson  <jas@extundo.com>
78644
78645         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78646         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78647
78648 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78649
78650         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78651         where no absolute path name can be longer than PATH_MAX.
78652
78653 2005-03-27  Jim Meyering  <jim@meyering.net>
78654
78655         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78656
78657 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78658
78659         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78660         "one's complement" -> "ones' complement" in comment, as per Knuth.
78661         "value of type" -> "type or expression" in comment.
78662         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78663
78664 2005-03-26  Jim Meyering  <jim@meyering.net>
78665
78666         Comment nits.
78667         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78668         Correct typos: s/or/of/.
78669
78670 2005-03-26  Jim Meyering  <jim@meyering.net>
78671
78672         * modules/check-include-files: Move to ../ and rename to...
78673         * check-module: ...this.
78674
78675 2005-03-25  Jim Meyering  <jim@meyering.net>
78676
78677         * modules/xvasprintf (Files): Add xalloc.h.
78678
78679 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         * modules/gettext (Files): config/config.rpath ->
78682         build-aux/config.rpath
78683         * modules/iconv (Files): Likewise.
78684         Problem reported by Oskar Liljeblad.
78685
78686 2005-03-23  Jim Meyering  <jim@meyering.net>
78687
78688         * modules/check-include-files: New script to check for
78689         missing dependencies, multiple includes, etc.
78690
78691         * modules/c-strtold (Depends-on): Add xalloc.
78692         * modules/c-strtod (Depends-on): Add xalloc.
78693         * modules/hash (Depends-on): Add xalloc.
78694         (Files): Remove lib/xalloc.h.
78695
78696         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78697         * modules/userspec (Files): Add lib/inttostr.h.
78698
78699 2005-03-23  Jim Meyering  <jim@meyering.net>
78700
78701         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78702
78703 2005-03-22  Jim Meyering  <jim@meyering.net>
78704
78705         * modules/stat-macros: New module.
78706         * modules/canonicalize, modules/euidaccess, modules/file-type,
78707         * modules/filemode, modules/lchown, modules/makepath,
78708         * modules/rmdir, modules/stat: Depend on new stat-macros module
78709         rather than listing lib/stat-macros.h manually.
78710         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78711
78712 2005-03-22  Jim Meyering  <jim@meyering.net>
78713
78714         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78715
78716 2005-03-22  Bruno Haible  <bruno@clisp.org>
78717
78718         * config/srclist.txt: Replace target directory 'config' with
78719         'build-aux'.
78720         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78721         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78722         ../build-aux/.
78723
78724 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78725
78726         * modules/chdir-long (Depends-on): Add mempcpy.
78727
78728         * modules/acl, modules/backupfile, modules/c-strtod,
78729         modules/c-strtold, modules/canon-host, modules/canonicalize,
78730         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78731         modules/exclude, modules/exitfail, modules/file-type,
78732         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78733         modules/getdate, modules/getline, modules/getpagesize,
78734         modules/getpass, modules/getugroups, modules/group-member,
78735         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78736         modules/inttostr, modules/long-options, modules/makepath,
78737         modules/md5, modules/memcasecmp, modules/memcoll,
78738         modules/modechange, modules/mountlist, modules/path-concat,
78739         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78740         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78741         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78742         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78743         modules/strftime, modules/strndup, modules/strverscmp,
78744         modules/timespec, modules/unlocked-io, modules/userspec,
78745         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78746         modules/yesno:
78747         Remove lib_SOURCES line from Makefile.am section, as this is now
78748         done automatically by the corresponding Autoconf macro.
78749
78750 2005-03-21  Jim Meyering  <jim@meyering.net>
78751
78752         Changes imported from coreutils.
78753
78754         * lib/cycle-check.c: Don't include xalloc.h.
78755
78756         * lib/path-concat.c: Don't include assert.h.
78757         (path_concat): Remove assertion that would have triggered
78758         for ABASE starting with more than one slash.
78759         Reported by Andreas Schwab.
78760
78761         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78762         properly when ABASE is an absolute file name.
78763         Correct the description of this function.
78764         Include <assert.h>.
78765         Add an assertion and a test driver.
78766         This fixes a bug introduced on 2004-07-02.
78767         Andreas Schwab reported the resulting failure of cp --parents:
78768         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78769
78770 2005-03-21  Jim Meyering  <jim@meyering.net>
78771
78772         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78773         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78774
78775 2005-03-21  Jim Meyering  <jim@meyering.net>
78776         and  Paul Eggert  <eggert@cs.ucla.edu>
78777
78778         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78779         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78780         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78781         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78782         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78783         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78784         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78785         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78786         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78787         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78788         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78789         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78790         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78791         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78792         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78793         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78794         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78795         for these modules.
78796
78797 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78800         (which shouldn't happen), generate nothing instead of returning 0
78801         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78802
78803 2005-03-16  Bruno Haible  <bruno@clisp.org>
78804
78805         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78806         HAVE_LONGLONG_64BIT.
78807
78808 2005-03-16  Bruno Haible  <bruno@clisp.org>
78809
78810         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78811         HAVE_LONGLONG_64BIT.
78812
78813 2005-03-16  Bruno Haible  <bruno@clisp.org>
78814
78815         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78816         HAVE_LONGLONG_64BIT.
78817
78818 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78819
78820         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78821         reliably distinguish strftime failure from empty output on POSIX
78822         hosts.
78823
78824 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78825
78826         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78827         (iconv_string): Don't guess a size-zero buffer, as that might cause
78828         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78829         result would be 'too large', where 'too large' is (heuristically)
78830         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78831         overflow concerns.  This will prevent some unwanted malloc failures
78832         when the inputs are very large.
78833
78834 2005-03-15  Karl Berry  <karl@gnu.org>
78835
78836         * config/srclist.txt (config.rpath): from gettext.
78837         * config/config.rpath: update.
78838
78839 2005-03-15  Bruno Haible  <bruno@clisp.org>
78840
78841         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78842         to 'negate'.
78843
78844         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78845         variable.
78846
78847         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78848         results.
78849
78850 2005-03-14  Simon Josefsson  <jas@extundo.com>
78851
78852         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78853         <fx@gnu.org>.
78854
78855 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78856
78857         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78858         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78859         intprops.h.
78860         * lib/strtol.c: Likewise.
78861
78862 2005-03-14  Jim Meyering  <jim@meyering.net>
78863
78864         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78865         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78866         to be nonzero so that we (and caller) can detect the difference
78867         between a valid zero-length expansion and an error return, even
78868         when the underlying strftime fails before writing anything into
78869         that location.
78870
78871 2005-03-14  Bruno Haible  <bruno@clisp.org>
78872
78873         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78874         Update from GNU gettext 0.14.3.
78875
78876 2005-03-10  Jim Meyering  <jim@meyering.net>
78877
78878         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78879
78880 2005-03-10  Jim Meyering  <jim@meyering.net>
78881
78882         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78883         so that this module works on systems without fchdir.
78884
78885 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78886
78887         Factor int-properties macros into a single file, except for
78888         glibc-related files.
78889         * lib/intprops.h: New file.
78890         * lib/getloadavg.c: Include it instead of limits.h.
78891         (INT_STRLEN_BOUND): Remove.
78892         * lib/human.c: Include intprops.h.
78893         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78894         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78895         302/1000.
78896         * lib/inttostr.h: Include intprops.h instead of limits.h.
78897         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78898         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78899         for consistency with intprops.h.
78900         (time_t_is_integer, twos_complement_arithmetic): Use them.
78901         * lib/sig2str.h: Include <signal.h>, intprops.h.
78902         (INT_STRLEN_BOUND): Remove.
78903         * lib/strftime.c (TYPE_SIGNED): Remove.
78904         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78905         * lib/strtol.c: Adjust comments to match intprops.h.
78906         * lib/userspec.c: Include intprops.h.
78907         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78908         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78909         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78910         instead of rolling our own expressions.
78911         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78912
78913         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78914         instead of int.
78915         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78916         the right thing even if adding 1900 would overflow.  Similarly
78917         for tm_mon + 1 and tm_yday + 1.
78918         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78919         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78920         (DO_SIGNED_NUMBER): New macro.
78921         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78922
78923 2005-03-07  Bruno Haible  <bruno@clisp.org>
78924
78925         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78926
78927 2005-03-07  Bruno Haible  <bruno@clisp.org>
78928
78929         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78930
78931 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78932
78933         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78934         (func_import): Only replace files via --import when they have actually
78935         changed.
78936
78937 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78938
78939         * m4/mmap-anon.m4: New file.
78940         * m4/pagealign_alloc.m4: New file.
78941
78942 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78943             Bruno Haible  <bruno@clisp.org>
78944
78945         * modules/pagealign_alloc: New file.
78946         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78947
78948 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78949             Bruno Haible  <bruno@clisp.org>
78950
78951         * lib/pagealign_alloc.h: New file.
78952         * lib/pagealign_alloc.c: New file.
78953
78954 2005-03-03  Bruno Haible  <bruno@clisp.org>
78955
78956         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78957         Use an all-permissive copyright notice, recommended by RMS.
78958
78959 2005-03-02  Bruno Haible  <bruno@clisp.org>
78960
78961         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78962         of AIX, the replacement has to be done only after <string.h> is
78963         included, therefore not in config.h. stpncpy.h does the replacement,
78964         and stpncpy.c uses it.
78965
78966 2005-03-02  Bruno Haible  <bruno@clisp.org>
78967
78968         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78969         stpncpy.c uses it.
78970
78971 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78972
78973         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78974         The workaround isn't strictly needed for POSIX conformance, and
78975         it's too much of a pain to configure and maintain.  We'll ask
78976         people to fix their kernels instead.
78977         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78978         (NANOSLEEP_BUG_WORKAROUND): Remove.
78979         (xnanosleep): Remove the workaround.
78980
78981 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78982
78983         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78984         Reported by Derek Price.
78985         (Include): Add "timespec.h".
78986
78987         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78988
78989 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78992         to detect nanosleep bug.
78993
78994 2005-03-01  Bruno Haible  <bruno@clisp.org>
78995
78996         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78997
78998 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78999
79000         * modules/gethrxtime: New file.
79001         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79002         (Depends-on): Add gethrxtime.
79003         (configure.ac): Add gl_XNANOSLEEP.
79004         (Makefile.am): Remove lib_SOURCES line.
79005
79006 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79007
79008         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79009         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79010
79011 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79012
79013         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79014         * lib/timespec.h (gettime): Return void, since it always
79015         succeeds now.  All uses changed.
79016         * lib/gettime.c (gettime): Likewise.
79017         [HAVE_NANOTIME]: Prefer nanotime.
79018         Assume gettimeofday succeeds, as POSIX requires.
79019         Assime time () succeeds, since other code already does.
79020         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79021         (timespec_subtract): Remove.
79022         (NANOSLEEP_BUG_WORKAROUND): New constant.
79023         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79024         things considerably.  Use it only on GNU/Linux hosts, since the
79025         workaround shouldn't be needed elsewhere.
79026
79027 2005-02-24  Bruno Haible  <bruno@clisp.org>
79028
79029         * modules/gettext (Files): Add m4/glibc2.m4.
79030
79031 2005-02-24  Bruno Haible  <bruno@clisp.org>
79032
79033         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79034         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79035         * m4/progtest.m4:
79036         Update from GNU gettext 0.14.2.
79037         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79038
79039 2005-02-24  Bruno Haible  <bruno@clisp.org>
79040
79041         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79042         * lib/config.charset: Update from GNU gettext 0.14.2.
79043
79044 2005-02-24  Bruno Haible  <bruno@clisp.org>
79045
79046         * lib/gettext.h: Update from GNU gettext 0.14.2.
79047
79048 2005-02-23  Simon Josefsson  <jas@extundo.com>
79049
79050         * m4/iconvme.m4: New file.
79051
79052 2005-02-23  Jim Meyering  <jim@meyering.net>
79053
79054         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79055         change.
79056         Thanks to Bruno Haible for catching it.
79057
79058 2005-02-22  Simon Josefsson  <jas@extundo.com>
79059
79060         * modules/iconvme: New file.
79061
79062         * MODULES.html.sh: Add iconvme.
79063
79064 2005-02-22  Simon Josefsson  <jas@extundo.com>
79065
79066         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79067
79068 2005-02-22  Simon Josefsson  <jas@extundo.com>
79069
79070         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79071
79072 2005-02-22  Jim Meyering  <jim@meyering.net>
79073
79074         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79075         s/ifndef/ifdef/.
79076
79077 2005-02-20  Neil Conway  <neilc@samurai.com>
79078
79079         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79080         returned by OSX/Darwin if the specified buffer is not large
79081         enough for the hostname.
79082
79083 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79084
79085         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79086         pass it to _help, otherwise the latter coredumps trying to
79087         dereference state.root_argp.
79088
79089 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79090
79091         * modules/chdir-long (Depends-on): Add memrchr.
79092         * modules/memrchr (Files): Add lib/memrchr.h.
79093         (Include): "memrchr.h".
79094
79095 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79098
79099 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79100
79101         * lib/memrchr.h: New file.
79102         * lib/chdir-long.c: Include it.
79103         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79104         Don't bother including stddef.h.
79105
79106 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79107
79108         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79109         inclusion.
79110         Include <sys/types.h>, for dev_t.
79111         (ME_DUMMY, ME_REMOTE): Move from here....
79112         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79113         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79114         Dmitry V. Levin.
79115         Include mountlist.h first, to test the interface.
79116
79117 2005-01-29  Bruno Haible  <bruno@clisp.org>
79118
79119         * lib/progname.c (program_name): Initialize.
79120         Needed when linking statically on MacOS X.
79121
79122 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79123
79124         Sync from coreutils.
79125         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79126         (Depends-on): Add c-strtod.
79127         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79128
79129 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79130
79131         Sync from coreutils.
79132         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79133
79134         Remove files that are specific to coreutils.
79135         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79136
79137 2005-01-28  Bruno Haible  <bruno@clisp.org>
79138
79139         * modules/javacomp: New file.
79140         * MODULES.html.sh (Java): Add javacomp.
79141
79142 2005-01-28  Bruno Haible  <bruno@clisp.org>
79143
79144         * m4/javacomp.m4: New file, from GNU gettext.
79145
79146 2005-01-28  Bruno Haible  <bruno@clisp.org>
79147
79148         * lib/javacomp.sh.in: New file, from GNU gettext.
79149         * lib/javacomp.h: New file, from GNU gettext.
79150         * lib/javacomp.c: New file, from GNU gettext.
79151
79152 2005-01-26  Simon Josefsson  <jas@extundo.com>
79153
79154         * lib/gai_strerror.c: Use GPL in header.
79155
79156 2005-01-26  Bruno Haible  <bruno@clisp.org>
79157
79158         * modules/javaexec: New file.
79159         * MODULES.html.sh (Java): Add javaexec.
79160
79161 2005-01-26  Bruno Haible  <bruno@clisp.org>
79162
79163         * m4/javaexec.m4: New file, from GNU gettext.
79164
79165 2005-01-26  Bruno Haible  <bruno@clisp.org>
79166
79167         * lib/javaexec.sh.in: New file, from GNU gettext.
79168         * lib/javaexec.h: New file, from GNU gettext.
79169         * lib/javaexec.c: New file, from GNU gettext.
79170
79171 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79172
79173         * modules/lchown (Depends-on): Remove lchown.h
79174
79175 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79176
79177         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79178         must be defined if the header file was not found, in order
79179         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79180
79181 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79182
79183         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79184         initializers for struct pentry_state.
79185         (__argp_error): Check return value of __asprintf
79186         (__argp_failure): Translate error message
79187
79188         * lib/argp-parse.c: Removed braces around the expansion of N_()
79189
79190 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79193         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79194         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79195         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79196         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79197         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79198         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79199         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79200         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79201         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79202         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79203         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79204         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79205         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79206         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79207         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79208         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79209         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79210         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79211         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79212         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79213         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79214         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79215         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79216         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79217         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79218         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79219         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79220         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79221         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79222         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79223         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79224         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79225         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79226         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79227         Use an all-permissive copyright notice, recommended by RMS.
79228
79229 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79230
79231         * modules/chdir-long (Depends-on): Remove mempcpy.
79232
79233 2005-01-21  Jim Meyering  <jim@meyering.net>
79234
79235         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79236         same value as for Solaris 9.
79237
79238         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79239         component length.  This included changing the parameter to be
79240         of type `char *' rather than `char const *'.
79241         * lib/chdir-long.h (chdir_long): Update prototype.
79242
79243         * lib/openat.c (fdopendir, fstatat): New functions.
79244         * lib/openat.h: Include headers required for use of DIR and struct
79245         stat.
79246         [AT_SYMLINK_NOFOLLOW]: Define.
79247         (fdopendir, fstatat): Add prototypes.
79248
79249 2005-01-21  Bruno Haible  <bruno@clisp.org>
79250
79251         * modules/classpath: New file.
79252         * MODULES.html.sh (Java): Add classpath.
79253
79254 2005-01-21  Bruno Haible  <bruno@clisp.org>
79255
79256         * lib/classpath.h: New file, from GNU gettext.
79257         * lib/classpath.c: New file, from GNU gettext.
79258
79259 2005-01-20  Simon Josefsson  <jas@extundo.com>
79260
79261         * modules/version-etc-fsf: New file.
79262
79263 2005-01-20  Simon Josefsson  <jas@extundo.com>
79264
79265         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79266         * lib/version-etc.c: Remove version_etc_copyright.
79267         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79268         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79269
79270 2005-01-20  Simon Josefsson  <jas@extundo.com>
79271
79272         * lib/base64.h (isbase64): Add.
79273
79274         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79275         using a unsigned prototype, don't inline.
79276         (base64_decode): Use it.
79277
79278 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79279
79280         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79281         it.
79282
79283 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79284
79285         * lib/save-cwd.c (save_cwd): Remove code to support the case
79286         where fchdir is missing or flaky.
79287
79288 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79289
79290         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79291
79292 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79293
79294         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79295         AC_LIBSOURCES now does this.
79296         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79297         with new ullong_max module.
79298
79299 2005-01-19  Bruno Haible  <bruno@clisp.org>
79300
79301         * modules/sh-quote: New file.
79302         * MODULES.html.sh (Executing programs): Add sh-quote.
79303
79304 2005-01-19  Bruno Haible  <bruno@clisp.org>
79305
79306         * lib/sh-quote.h: New file, from GNU gettext.
79307         * lib/sh-quote.c: New file, from GNU gettext.
79308
79309 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79310
79311         Merge from coreutils.
79312         * m4/ullong_max.m4: New file.
79313         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79314         (gl_MACROS): Assume localeconv exists.
79315
79316 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79317
79318         Merge changes from coreutils, as described below in several
79319         changelogs dated today.
79320
79321         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79322         (O_DIRECTORY): Remove; not needed here, since "." must be
79323         a directory.  All uses removed.
79324         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79325         universal on Suns, and we also need to test for IRIX.
79326         Revamp code to use 'if' rather than '#if'.
79327         Avoid unnecessary comparison of cwd->desc to 0.
79328
79329         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79330         for known valid error numbers rather than observed invalid ones.
79331
79332 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79333
79334         * modules/ullong_max: New file.
79335
79336         * modules/chdir-long, modules/openat: New files.
79337         * modules/save-cwd (Depends-on): Depend on chdir-long.
79338         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79339
79340 2005-01-18  Jim Meyering  <jim@meyering.net>
79341
79342         Merge from coreutils.
79343         * m4/chdir-long.m4, m4/openat.m4: New files.
79344         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79345         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79346         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79347         is sane and DOES follow symlinks.  Besides, testing 20 different
79348         systems found no broken chown implementations.
79349         Prompted by a change in rsync's copy of this macro.
79350         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79351
79352         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79353
79354         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79355         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79356         NULL-means-set-to-current-time semantics.
79357         Remove temporary file immediately, rather than waiting
79358         for configure's at-exit trap code to do it.
79359
79360 2005-01-18  Jim Meyering  <jim@meyering.net>
79361
79362         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79363
79364         * lib/utimens.c (futimens): Account for the fact that futimes
79365         can also fail with errno == ENOSYS or errno == ENOENT.
79366         Patch from Dmitry V. Levin.
79367
79368         Change the name of the robust chdir function from chdir to chdir_long.
79369         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79370         (restore_cwd): Use chdir_long, not chdir.
79371         * lib/chdir-long.c: Renamed from chdir.c.
79372         * lib/chdir-long.h: Renamed from chdir.h.
79373         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79374         Hurd.
79375
79376 2005-01-18  Bruno Haible  <bruno@clisp.org>
79377
79378         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79379         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79380         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79381         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79382         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79383         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79384         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79385         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79386         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79387         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79388         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79389         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79390         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79391         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79392         Use an all-permissive copyright notice, recommended by RMS.
79393
79394 2005-01-18  Bob Proulx  <bob@proulx.com>
79395
79396         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79397         simplify offsetof() macro construct to avoid compile failure with
79398         native HP-UX 11.0 ANSI C compiler.
79399
79400 2005-01-17  Bruno Haible  <bruno@clisp.org>
79401
79402         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79403         redundant because stpncpy.m4 takes care of it.
79404
79405 2005-01-17  Bruno Haible  <bruno@clisp.org>
79406
79407         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79408
79409 2005-01-17  Bruno Haible  <bruno@clisp.org>
79410
79411         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79412         used.
79413
79414 2005-01-17  Bruno Haible  <bruno@clisp.org>
79415
79416         * lib/fwriteerror.h (fwriteerror): Change specification to include
79417         fclose.
79418         * lib/fwriteerror.c: Include <stdbool.h>.
79419         (fwriteerror): At the end, close the file stream. Record whether
79420         stdout was already closed.
79421
79422 2005-01-17  Bruno Haible  <bruno@clisp.org>
79423
79424         * lib/execute.c (environ): Declare if needed.
79425         * lib/pipe.c (environ): Likewise.
79426         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79427
79428 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79429
79430         * modules/argp: Depend on vsnprintf
79431
79432 2005-01-10  Jim Meyering  <jim@meyering.net>
79433
79434         * modules/closeout (Depends-on): Add atexit.
79435
79436 2005-01-06  Bruno Haible  <bruno@clisp.org>
79437
79438         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79439
79440 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79441
79442         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79443         definitions to be after all include files, to avoid collisions.
79444         Problem reported by Bob Proulx.
79445
79446 2005-01-04  Jim Meyering  <jim@meyering.net>
79447
79448         Changes imported from coreutils.
79449         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79450         as the mkstemp template, use a temporary directory and an
79451         8.3-friendly template to avoid trouble on systems like DJGPP.
79452         Reported by Juan M. Guerrero via Stepan Kasal.
79453         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79454         close. Remove the temporary directory right away, rather than waiting
79455         for configure's at-exit trap code to do it.
79456         Suggestion from Stepan Kasal.
79457
79458 2005-01-01  Simon Josefsson  <jas@extundo.com>
79459
79460         * gnulib-tool: Print #include directives when --import'ing.
79461
79462 2004-12-28  Simon Josefsson  <jas@extundo.com>
79463
79464         * tests/test-base64.c: Include required header files.  Remove
79465         unused variables.
79466
79467 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79468
79469         * modules/error (Depends-on): Remove gettext.
79470
79471 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79472
79473         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79474         not needed.  This removes a dependency on the gettext module.
79475         [defined _LIBC]: Do not include <libintl.h>; not needed.
79476
79477 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79478
79479         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79480         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79481
79482 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79483
79484         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79485         HAVE_DECL_STRTOLD.
79486
79487 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79488
79489         * modules/getdate (Depends-on): Remove alloca-opt.
79490
79491 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79492
79493         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79494
79495 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79496
79497         * lib/argp-parse.c: Include <stddef.h>.
79498         (alignof, alignto): New macros.
79499         (parser_init): Don't assume that void * is aligned sufficiently
79500         for struct option.
79501
79502         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79503         need to extend the stack.
79504         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79505         large.
79506
79507 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79508
79509         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79510
79511 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79512
79513         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79514         (2004-10-24) change.  Apparently this was a false alarm.
79515
79516         * modules/getdate: Depend on alloca-opt, not alloca.
79517
79518 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79519
79520         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79521         Remove now-obsolete comment about AIX.
79522         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79523         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79524         (YYMAXDEPTH): New macro.
79525
79526 2004-12-18  Simon Josefsson  <jas@extundo.com>
79527
79528         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79529
79530 2004-12-18  Bruno Haible  <bruno@clisp.org>
79531
79532         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79533
79534 2004-12-18  Bruno Haible  <bruno@clisp.org>
79535
79536         * lib/fatal-signal.c (fatal_signals): Make non-const.
79537         (init_fatal_signals): New function.
79538         (uninstall_handlers, install_handlers): Ignore signals that were set to
79539         SIG_IGN.
79540         (at_fatal_signal): Call init_fatal_signals.
79541         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79542         SIG_IGN.
79543         Reported by Paul Eggert.
79544
79545 2004-12-18  Bruno Haible  <bruno@clisp.org>
79546
79547         * doc/alloca.texi: New file.
79548         * doc/alloca-opt.texi: New file.
79549
79550 2004-12-17  Jim Meyering  <jim@meyering.net>
79551
79552         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79553         Otherwise, install-sh could exit with improper exit status when
79554         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79555
79556 2004-12-16  Simon Josefsson  <jas@extundo.com>
79557
79558         * tests/test-base64.c: Add license.
79559
79560 2004-12-15  Stepan Kasal  <address@hidden>
79561
79562         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79563
79564 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79565
79566         * modules/getcwd (Files): Add m4/d-ino.m4.
79567         Suggested by Mark D. Baushke.
79568
79569 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79570
79571         * lib/getdate.y (textint): New member "negative".
79572         (time_zone_hhmm): New function.
79573         Expect 14 shift-reduce conflicts, not 13.
79574         (o_colon_minutes): New rule.
79575         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79576         (yylex): Set the "negative" member of signed numbers.
79577
79578 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79579
79580         * doc/getdate.texi (Time of day items, Time zone items):
79581         Describe new formats +00:00, UTC+00:00.
79582
79583 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79584
79585         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79586         spurious "-l"s.  Problem reported by Stepan Kasal.
79587
79588 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79589
79590         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79591         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79592
79593 2004-12-04  Simon Josefsson  <jas@extundo.com>
79594
79595         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79596         Vandoorselaere <yoann@prelude-ids.org>.
79597
79598 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79599
79600         Changes imported from coreutils.
79601         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79602         exist.
79603         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79604
79605 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79606
79607         Changes imported from coreutils.
79608         * lib/hard-locale.c: Assume <locale.h> exists.
79609         Include "strdup.h".
79610         (GLIBC_VERSION): New macro.
79611         (hard_locale): Assume setlocale exists.
79612         Rewrite to avoid #ifdef.
79613         Use strdup rather than malloc + strcpy.
79614         * lib/human.c: Assume <locale.h> exists.
79615         (human_readable): Assume localeconv exists.
79616
79617 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79618
79619         * modules/hard-locale (Depends-on): Add strdup.
79620
79621 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79622
79623         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79624         convert T2, not T.  (Imported from libc.)
79625
79626 2004-11-30  Simon Josefsson  <jas@extundo.com>
79627
79628         * modules/restrict (License): Change to LGPL.
79629
79630 2004-11-30  Simon Josefsson  <jas@extundo.com>
79631
79632         * m4/restrict.m4: Add copyright and copying conditions.
79633
79634 2004-11-30  Simon Josefsson  <jas@extundo.com>
79635
79636         * m4/base64.m4: New file.
79637
79638 2004-11-30  Simon Josefsson  <jas@extundo.com>
79639
79640         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79641         base64.
79642
79643         * tests/test-base64.c: New file.
79644
79645         * modules/base64: New file.
79646
79647 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79648
79649         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79650         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79651
79652         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79653
79654 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79655
79656         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79657         (__getcwd.c): Don't restore errno; glibc doesn't.
79658         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79659         first, falling back to our code only if its results look suspicious.
79660         Ensure that the resulting buffer is only as large as necessary.
79661
79662         * lib/readutmp.c: Include readutmp.h first.
79663         Include <errno.h>, since readutmp.h no longer does that.
79664         * lib/readutmp.h: Don't include <errno.h>,
79665         <sys/param.h>, <time.h>; not needed to establish interface.
79666         (errno): Remove decl.
79667         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79668         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79669         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79670
79671 2004-11-28  Simon Josefsson  <jas@extundo.com>
79672
79673         * lib/base64.h, base64.c: New file.
79674
79675 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79676
79677         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79678
79679 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79680
79681         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79682         (Depends-on): Remove pathmax, same.  Add mempcpy.
79683         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79684         (Makefile.am): Append getcwd.h to lib_SOURCES.
79685         (Include): Add getcwd.h.
79686         (Maintainer): Change from Jim Meyering to "all, glibc",
79687         since getdate now uses intended-for-glibc code.
79688         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79689         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79690
79691 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79692
79693         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79694         HP's ANSI C compiler.
79695         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79696         Declaring int functions causes warnings on some modern systems and
79697         shouldn't be needed to compile on ancient ones.
79698         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79699         defined.
79700
79701         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79702         with the following changes.
79703         (__set_errno): Parenthesize properly.
79704         Include <stdbool.h>.
79705         (MIN, MAX, MATCHING_INO): New macros.
79706         (__getcwd): Define with prototype, not K&R form.
79707         Use heuristics to allocate default buffer on stack if possible.
79708         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79709         behavior, and to avoid the PATH_MAX limit when computing
79710         ../../../../...
79711         Use MATCHING_INO to compare inode number to file.
79712         Check for arithmetic overflow in size calculations.
79713         Fix bug in reallocation of dot array that caused getcwd to fail
79714         on directories nested deeper than 75.
79715         Be more careful about saving errno on error.
79716         Do not use realloc; use only free+malloc, as this is a bit
79717         more flexible and avoids a needless copy operation.
79718         Do not inspect st_dev and st_ino for symbolic links; POSIX
79719         doesn't specify the latter.
79720         Check for closedir errors.
79721         Avoid needless casts.
79722         Use "#ifdef weak_alias" around weak_alias, to be like other
79723         glibc code.
79724         The following changes to getcwd.c have effect only when used in
79725         gnulib; they have no effect inside glibc proper.
79726         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79727         as alloca isn't used.
79728         (alloca, __alloca): Likewise.
79729         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79730         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79731         unconditionally, as gnulib assumes C89 or better.
79732         Do not include <sys/param.h>.
79733         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79734         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79735         better.
79736         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79737         Include <dirent.h> in a way that is compatible with modern Autoconf.
79738         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79739         New macros, if not already defined.
79740         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79741         Use "_LIBC", not "defined _LIBC", for consistency.
79742         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79743         a mempcpy module.
79744         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79745         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79746         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79747         credit only to Jim Meyering and adjust the copyright dates.
79748         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79749         <stdlib.h>, <unistd.h>, "pathmax.h".
79750         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79751         (INITIAL_BUFFER_SIZE): Remove.
79752         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79753
79754 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79755
79756         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79757         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79758         Use the _ONCE methods, for efficiency.
79759         Check for fcntl.h.  In test program, include <errno.h>
79760         and <fcntl.h> if available.  Remove old K&R cruft from
79761         test program.  Check for common errors in GNU/Linux,
79762         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79763         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79764         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79765         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79766         name accordingly.
79767         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79768         accommodate new getcwd.c.
79769         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79770         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79771         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79772         that's all we need now.
79773
79774 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79775
79776         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79777         argp-parse.c depends on getopt internals, that means we should
79778         always use our getopt, to be on the safe side.
79779         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79780         order not to spoil the result of an eventual previous invocation
79781         of gl_GETOPT_SUBSTITUTE.
79782
79783 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79784
79785         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79786         redefinition warnings. To avoid them, include the defines
79787         in `#if !defined __need_getopt ... #endif'. The only place
79788         where __getopt_argv_const is used is in definitions
79789         of getopt_long and getopt_long_only below, which are as well
79790         protected by `#ifndef __need_getopt'.
79791         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79792         __need_getopt after including <stdio.h> and <unistd.h> These
79793         headers might have defined it.
79794
79795 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79796
79797         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79798
79799 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79800
79801         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79802         (futimens): New function, which uses futimes if available.
79803         (futimens, utimens): Support timespec==NULL, with same semantics
79804         as utime and utimens.
79805         * lib/utimens.h (futimens): New decl.
79806
79807 2004-11-23  Jim Meyering  <jim@meyering.net>
79808
79809         * lib/getopt_.h: Remove trailing blanks.
79810
79811 2004-11-23  Jim Meyering  <jim@meyering.net>
79812
79813         * lib/__fpending.c: Add comment.
79814
79815 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79816
79817         * modules/canonicalize (Depends-on): Add xreadlink.
79818         Problem reported by James Youngman.
79819
79820 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79821
79822         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79823         New macros.
79824         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79825         optopt): Use them instead of invoking ## directly; otherwise, the
79826         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79827
79828 2004-11-19  Bruno Haible  <bruno@clisp.org>
79829
79830         * lib/strtok_r.c: Move comments from here...
79831         * lib/strtok_r.h: ... to here.
79832
79833 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79834
79835         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79836         implementations that mishandle size_t overflow.
79837
79838 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79839
79840         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79841         might fail.  Problem reported by Yoann Vandoorselaere.
79842         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79843         implementations that mishandle size_t overflow.
79844
79845 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79846
79847         * modules/canon-host (Depends-on): Add strdup.
79848
79849 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79850
79851         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79852
79853 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79854
79855         * lib/canon-host.c: Include "strdup.h".
79856         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79857         Use strdup instead of malloc/strcpy to duplicate strings.
79858
79859         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79860         (human_space_before_unit): New constant.
79861         * lib/human.c (human_readable): Support it.
79862
79863         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79864         (xgetcwd): Set errno correctly when failing.
79865         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79866         the failure is actually due to a PATH_MAX problem.
79867
79868         Further getopt changes to make it more likely that glibc will
79869         buy the changes back.
79870         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79871         (getopt): Use it, so to preserve glibc semantic
79872         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79873         when compiling for libc.
79874         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79875         (getopt_long, getopt_long_only): Use it.
79876
79877         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79878         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79879         (getopt): Argv is now char * const *, as per standard.
79880         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79881         not char *__getopt_argv_const *.
79882         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79883         _getopt_long_only_r): Likewise.
79884         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79885         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79886         _getopt_long_r, _getopt_long_only_r): Likewise.
79887         * lib/getopt_.h (__getopt_argv_const): Remove.
79888         (getopt): Argv is now char * const *, as per standard.
79889
79890         * lib/getdate.y (tORDINAL): New token.
79891         (day, relunit): Allow it for relative times.
79892         (relative_time_table): Use tORDINAL for ordinals.
79893
79894 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79895
79896         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79897         Document that "second" isn't allowed as an ordinal number.
79898
79899 2004-11-16  Jim Meyering  <jim@meyering.net>
79900
79901         * modules/closeout (Depends-on): Add fpending.
79902
79903 2004-11-15  Jim Meyering  <jim@meyering.net>
79904
79905         * lib/closeout.c: Include "__fpending.h" once again.
79906         Include <stdbool.h>.
79907         (close_stdout): Don't fail just because stdout was closed initially,
79908         since some programs don't write to stdout in the normal course of
79909         operation (other than --version and --help), and we don't want this
79910         function to make e.g. `touch file >&-' fail.
79911         But do fail if it was closed and someone has tried to write to it.
79912         E.g., `printf foo >&-' must fail.
79913
79914 2004-11-13  Jim Meyering  <jim@meyering.net>
79915
79916         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79917
79918 2004-11-12  Simon Josefsson  <jas@extundo.com>
79919
79920         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79921         small doc fix is still pending.
79922
79923 2004-11-11  Simon Josefsson  <jas@extundo.com>
79924
79925         * modules/strtok_r: New file.
79926
79927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79928         strtok_r.
79929
79930 2004-11-11  Simon Josefsson  <jas@extundo.com>
79931
79932         * m4/strtok_r.m4: New file.
79933
79934         * m4/getopt.m4: Replace opterr.
79935
79936 2004-11-11  Simon Josefsson  <jas@extundo.com>
79937
79938         * lib/strtok_r.h, strtok_r.c: New file.
79939
79940 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79941
79942         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79943         of replacing opterr, getopt, etc.  This should handle the
79944         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79945
79946 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79947
79948         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79949         we can stop lying to compilers about the constness of argv when we
79950         are compiled outside glibc.
79951         (getopt, getopt_long, getopt_long_only): Use it.
79952         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79953         _getopt_internal, getopt): Likewise.
79954         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79955         _getopt_long_only_r): Likewise.
79956         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79957         _getopt_long_r, _getopt_long_only_r): Likewise.
79958
79959         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79960         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79961         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79962         the other external symbols.
79963         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79964         declaration, since the above renaming now works around collisions.
79965
79966 2004-11-11  Jim Meyering  <jim@meyering.net>
79967
79968         * lib/linebreak.c: Remove trailing blanks.
79969         * lib/alloca_.h: Likewise.
79970         * lib/acosl.c: Likewise.
79971         * lib/euidaccess.c: Likewise.
79972         * lib/allocsa.h: Likewise.
79973
79974 2004-11-10  Simon Josefsson  <jas@extundo.com>
79975
79976         * m4/getaddrinfo.m4: New file.
79977
79978 2004-11-10  Simon Josefsson  <jas@extundo.com>
79979
79980         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79981
79982 2004-11-10  Simon Josefsson  <jas@extundo.com>
79983
79984         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79985         getaddrinfo.
79986
79987         * modules/getaddrinfo: New file.
79988
79989 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79990
79991         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79992
79993 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79994
79995         * lib/mktime.c (SHR): New macro, which is a portable
79996         substitute for >> that should work even on Crays.
79997         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79998         Problem reported by Mark D. Baushke in
79999         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80000         * lib/getdate.y (SHR): Likewise.
80001         (tm_diff): Use it.
80002         * lib/strftime.c (SHR): Likewise.
80003         (tm_diff): Use it.
80004         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80005         quote_these_too, so that right shifts are well defined.  All uses
80006         changed.
80007
80008 2004-11-10  Jim Meyering  <jim@meyering.net>
80009
80010         Ensure that no close failure goes unreported.
80011         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80012         return early when it seems there's nothing to flush.
80013         Don't include __fpending.h.
80014
80015 2004-11-10  Jim Meyering  <jim@meyering.net>
80016
80017         * modules/closeout (Depends-on): Remove fpending.
80018
80019 2004-11-10  Jim Meyering  <jim@meyering.net>
80020
80021         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80022
80023 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80026         gl_FUNC_STRFTIME.
80027         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80028         and AC_REQUIRE when possible, to avoid duplicate checks.
80029         Check for <wchar.h>.
80030
80031 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80032
80033         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80034
80035 2004-11-09  Bruno Haible  <bruno@clisp.org>
80036
80037         * m4/sockpfaf.m4: New file.
80038
80039 2004-11-05  Bruno Haible  <bruno@clisp.org>
80040
80041         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80042         Reported by Mark D. Baushke <mdb@cvshome.org>.
80043
80044 2004-11-04  Bruno Haible  <bruno@clisp.org>
80045
80046         2004-09-11  Bruno Haible  <bruno@clisp.org>
80047                 * allocsa.valgrind: New file.
80048         2004-02-06  Bruno Haible  <bruno@clisp.org>
80049                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80050                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80051                 Reported by Christopher Seip <chris.seip@hp.com>.
80052
80053 2004-11-04  Bruno Haible  <bruno@clisp.org>
80054
80055         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80056         (Makefile.am): Distribute it.
80057
80058 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80059
80060         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80061         with errno == ERANGE if the buffer is too small.
80062         Problem reported by Mark D. Baushke.
80063
80064 2004-11-03  Albert Chin  <china@thewrittenword.com>
80065             Paul Eggert  <eggert@cs.ucla.edu>
80066
80067         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80068         equivalent, substitute $ac_type for equivalent type rather than
80069         blindly using uint32_t *always* which won't work if uint32_t is not
80070         available.  Define _UINT32_T to work around typedef of uint32_t if
80071         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80072         2.5.1.
80073
80074 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80075
80076         * m4/jm-macros.m4: Sync from coreutils.
80077         (gl_MACROS): Check for mbrlen, for pathchk.
80078         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80079
80080 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80081
80082         * lib/xreadlink.c (MAXSIZE): New macro.
80083         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80084         size does not exceed MAXSIZE.  Avoid cast.
80085         As suggested by Mark D. Baushke in
80086         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80087         if readlink fails with buffer size just under MAXSIZE, try again
80088         with MAXSIZE.
80089
80090 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80091
80092         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80093
80094 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80095         and  Paul Eggert  <eggert@cs.ucla.edu>
80096
80097         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80098         (get_date): Overparenthesize to avoid GCC warning.
80099
80100 2004-11-02  Bruno Haible  <bruno@clisp.org>
80101
80102         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80103         returns void.
80104
80105 2004-11-02  Bruno Haible  <bruno@clisp.org>
80106
80107         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80108         function returns void.
80109
80110 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80111
80112         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80113         fflush_unlocked, flockfile, funlockfile, funlockfile,
80114         fputs_unlocked, putc_unlocked.
80115
80116 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80117
80118         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80119         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80120         already declared.
80121
80122 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80123
80124         * modules/getdate (Files): Add doc/getdate.texi.
80125         (Depends-on): Add setenv, xalloc.
80126
80127 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80128
80129         * lib/getdate.y: Add support for TZ="foo" within a date string.
80130         Fix some bugs near time_t boundaries.  Reject dates with
80131         out-of-range components, e.g., "Sept 31".
80132         Include <stdlib.h>, "setenv.h", "xalloc.h".
80133         (ISDIGIT_LOCALE): Remove; unused.
80134         Note that the TZ and time functions used here are not reentrant.
80135         (mktime_ok, get_tz): New functions.
80136         (TZBUFSIZE): New constant.
80137         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80138         This requires that we sometimes generate our own TZ="XXX..." setting.
80139
80140 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80141
80142         * doc/getdate.texi: New file, from coreutils with modifications for
80143         the new TZ parsing.
80144
80145 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80146
80147         * lib/mktime.c (not_equal_tm): Remove redundant check.
80148
80149 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80150
80151         * modules/regex (lib_SOURCES): Add regex.c.
80152         Reported by James Youngman in
80153         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80154
80155 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80156
80157         * lib/getdate.y: Use Bison 1.875 features, and some minor
80158         code cleanups.  This change does not affect semantics.
80159         Don't include <stdlib.h>; no longer needed.
80160         Don't include unlocked-io.h; only the "#if TEST" code uses
80161         stdio, and performance isn't crucial there.
80162         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80163         Bison 1.875 features as described below.
80164         All uses of "PC." replaced by "pc->".
80165         (YYSTYPE): Add a forward declaration.
80166         (yylex, yyerror): Use full prototypes in forward decls.
80167         Use "%pure-parser" rather than obsolescent "%pure_parser".
80168         Use %parse-param and %lex-param instead of obsolescent
80169         YYPARSE_PARAM and YYLEX_PARAM.
80170         (meridian_table, month_and_day_table, time_units_table,
80171         relative_time_table, time_zone_table, military_table,
80172         lookup_zone, lookup_word, get_date):
80173         Use NULL instead of 0 where appropriate.
80174         (to_hour): Avoid abort (), to avoid a dependency on
80175         stdlib.h.
80176         (yyerror, yylex): Now accepts parser_control * arg.
80177         (main) [TEST]: Use '\0' rather than 0 for char.
80178
80179 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80180
80181         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80182
80183 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80184
80185         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80186         It's now the caller's responsibility to handle the case where
80187         !HAVE_GETPAGESIZE && !defined getpagesize.
80188
80189         * lib/mktime.c (leapyear): Arg is long int, not int.
80190
80191 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80192
80193         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80194
80195 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80196
80197         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80198         missing.  Problem reported by James Youngman.
80199
80200 2004-10-16  Simon Josefsson  <jas@extundo.com>
80201
80202         * gnulib-tool: Fix comments.  Fix parse problem.
80203         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80204
80205 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80206
80207         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80208         implementation of getopt_long.  Problem reported by Alexander Taler in:
80209         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80210
80211 2004-10-15  Bruno Haible  <bruno@clisp.org>
80212
80213         * gnulib-tool: Untabify. Initialize supplied_libname.
80214         (func_usage): More homogenous output.
80215         (func_modules_transitive_closure, func_modules_to_filelist,
80216         func_emit_lib_Makefile_am): New functions.
80217         (func_import): New function, extracted from big case statement. Use
80218         func_get_license, func_modules_transitive_closure,
80219         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80220         opt_lgpl. Don't use test -a, as it's not portable.
80221         (func_create_testdir): Use func_modules_transitive_closure,
80222         func_modules_to_filelist, func_emit_lib_Makefile_am.
80223
80224 2004-10-15  Bruno Haible  <bruno@clisp.org>
80225
80226         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80227
80228 2004-10-15  Bruno Haible  <bruno@clisp.org>
80229
80230         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80231         the portions belonging to each module.
80232         Suggested by Derek Robert Price <derek@ximbiot.com>.
80233
80234 2004-10-12  Simon Josefsson  <jas@extundo.com>
80235
80236         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80237         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80238         to real functions.
80239
80240 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80241
80242         * modules/vsnprintf: New file.
80243
80244 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80245
80246         * m4/vsnprintf.m4: New file.
80247
80248 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80249
80250         * lib/vsnprintf.h: New file.
80251         * lib/vsnprintf.c: New file.
80252
80253 2004-10-11  Bruno Haible  <bruno@clisp.org>
80254
80255         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80256         vsnprintf.
80257
80258 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80259
80260         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80261
80262 2004-10-07  Bruno Haible  <bruno@clisp.org>
80263
80264         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80265         fits into the provided buffer.
80266
80267 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80268
80269         * lib/diacrit.c, diacrit.h: Add GPL notice.
80270
80271         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80272         notice.
80273         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80274         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80275         This avoids a potential constant-folding bug.
80276
80277 2004-10-05  Bruno Haible  <bruno@clisp.org>
80278
80279         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80280         for the declaration of strsep.
80281
80282 2004-10-05  Bruno Haible  <bruno@clisp.org>
80283
80284         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80285
80286 2004-10-04  Simon Josefsson  <jas@extundo.com>
80287
80288         * modules/memmem: New file.
80289         * tests/test-memmem.c: New file.
80290         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80291
80292 2004-10-04  Simon Josefsson  <jas@extundo.com>
80293
80294         * m4/memmem.m4: New file.
80295
80296 2004-10-04  Simon Josefsson  <jas@extundo.com>
80297
80298         * lib/memmem.h: New file.
80299         * lib/memmem.c: New file, taken from glibc.
80300
80301 2004-10-04  Simon Josefsson  <jas@extundo.com>
80302
80303         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80304         '#ifdef USE_UNLOCKED_IO'.
80305
80306 2004-10-04  Simon Josefsson  <jas@extundo.com>
80307
80308         * config/srclist.txt: Add memmem from glibc.
80309
80310 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80311
80312         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80313
80314         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80315         modules/exclude, modules/getdate, modules/getline,
80316         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80317         modules/getusershell, modules/linebuffer, modules/md5,
80318         modules/mountlist, modules/posixtm, modules/readtokens,
80319         modules/readutmp, modules/regex, modules/sha1,
80320         modules/version-etc, modules/yesno:
80321         Remove dependency on unlocked-io.
80322
80323 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80324
80325         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80326
80327         * m4/unlocked-io.m4: Add copyright notice.
80328         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80329
80330 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80331
80332         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80333         * lib/xmalloc.c (xmemdup): Likewise.
80334         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80335         XFREE): Remove these long-obsolescent macros.
80336         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80337         * lib/xstrdup.c: Remove.
80338
80339         * lib/regex.c (re_comp): Cast gettext return value to char *,
80340         Problem reported by Martin Neitzel via Mark D. Baushke.
80341
80342 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80343
80344         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80345         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80346         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80347         regex.c, sha1.c, version-etc.c, yesno.c:
80348         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80349         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80350         the includer's responsibility.
80351
80352         Sync from coreutils.
80353
80354         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80355         points to the start of a string, as the C Standard says the
80356         resulting behavior is undefined.
80357
80358         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80359         simple -> simple_backups, numbered_existing ->
80360         numbered_existing_backups, numbered -> numbered_backups
80361         to avoid shadowing problems.  All uses changed.
80362         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80363         * lib/backupfile.c (check_extension, numbered_backup):
80364         Rename locals to avoid shadowing 'basename'.
80365         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80366         once.
80367
80368         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80369         * lib/.cvsignore: Add getopt.h.
80370
80371 2004-10-04  Bruno Haible  <bruno@clisp.org>
80372
80373         * modules/README: New file.
80374         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80375         not a module.
80376
80377 2004-10-02  Jim Meyering  <jim@meyering.net>
80378
80379         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80380
80381 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80382
80383         * modules/strsep: New file.
80384
80385 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80386
80387         * m4/strsep.m4: New file.
80388
80389 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80390
80391         * lib/strsep.h: New file.
80392         * lib/strsep.c: New file.
80393
80394 2004-10-01  Simon Josefsson  <jas@extundo.com>
80395
80396         * lib/snprintf.c (snprintf): Handle size==0.
80397
80398 2004-10-01  Simon Josefsson  <jas@extundo.com>
80399             Bruno Haible  <bruno@clisp.org>
80400
80401         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80402         (snprintf): Declare 'args'.
80403
80404 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80405
80406         * lib/snprintf.c: Remove comments as to why each header is needed.
80407
80408 2004-10-01  Bruno Haible  <bruno@clisp.org>
80409
80410         * MODULES.html.sh: Add strsep.
80411
80412 2004-09-30  Simon Josefsson  <jas@extundo.com>
80413
80414         * modules/snprintf: New file.
80415
80416 2004-09-30  Simon Josefsson  <jas@extundo.com>
80417
80418         * m4/snprintf.m4: New file.
80419
80420 2004-09-30  Simon Josefsson  <jas@extundo.com>
80421
80422         * lib/snprintf.h, lib/snprintf.c: New files.
80423
80424 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80425
80426         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80427         (hol_entry_help): Never translate an empty string.
80428         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80429         * lib/argp.h (OPTION_NO_TRANS): New option.
80430
80431 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80432
80433         * modules/argp (Maintainer): Replace Simon Josefsson
80434         by Sergey Poznyakoff.
80435
80436 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80437
80438         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80439         changes merged back into glibc.
80440
80441 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80444
80445 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80446
80447         * lib/xvasprintf.c: Include xalloc.h.
80448         (xvasprintf): Use xalloc_die, not xmalloc_die.
80449
80450 2004-09-29  Bruno Haible  <bruno@clisp.org>
80451
80452         * modules/alloca-opt: New file, derived from modules/alloca.
80453         * modules/allocsa: Depend on alloca-opt instead of alloca.
80454         * modules/setenv: Likewise.
80455         * modules/vasnprintf: Likewise.
80456         * MODULES.html.sh: Add alloca-opt.
80457
80458 2004-09-28  Simon Josefsson  <jas@extundo.com>
80459
80460         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80461         LGPL, and to replace license template from GPL to LGPL.
80462
80463 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80464
80465         * modules/dummy: Change license to LGPL.
80466
80467 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80468
80469         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80470
80471 2004-09-24  Simon Josefsson  <jas@extundo.com>
80472
80473         * modules/minmax (License): Change from GPL to LGPL.
80474
80475 2004-09-23  Simon Josefsson  <jas@extundo.com>
80476
80477         * gnulib-tool (--import): Typo.
80478
80479 2004-09-23  Simon Josefsson  <jas@extundo.com>
80480
80481         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80482
80483 2004-09-22  Bruno Haible  <bruno@clisp.org>
80484
80485         * modules/*: Add 'License' field.
80486         * gnulib-tool: Accept --extract-license option.
80487         (func_get_license): New function.
80488
80489 2004-09-21  Bruno Haible  <bruno@clisp.org>
80490
80491         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80492         Reported by Simon Josefsson.
80493
80494 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80495
80496         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80497         gl_AC_TYPE_LONG_LONG.
80498
80499 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80500
80501         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80502
80503 2004-09-18  Simon Josefsson  <jas@extundo.com>
80504         and  Paul Eggert  <eggert@cs.ucla.edu>
80505
80506         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80507         calls with autoreconf.  Define GL_LIB.
80508
80509 2004-09-14  Karl Berry  <karl@gnu.org>
80510
80511         * config/srclist.txt: unsync setenv.c, sigh.
80512
80513 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80514
80515         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80516         Problem reported by Bruno Haible in:
80517         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80518
80519 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80520
80521         * config/srclist.txt: Comment out argp-pvh.c.
80522
80523 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80524
80525         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80526         in case some system header has #define'd it.  Problem reported by
80527         Soeren D. Schulze in
80528         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80529
80530 2004-09-09  Karl Berry  <karl@gnu.org>
80531
80532         * regex.[ch]: delete from the root.  These were supposed to be
80533                 synced with emacs cvs, but this has not happened for about
80534                 a year, and anyway nothing else uses emacs regex.[ch].
80535                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80536                 lib/regex[.ch] is untouched.
80537
80538 2004-09-09  Bruno Haible  <bruno@clisp.org>
80539
80540         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80541
80542 2004-09-09  Bruno Haible  <bruno@clisp.org>
80543
80544         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80545         modifications.
80546         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80547
80548 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80549
80550         * modules/xvasprintf: New file.
80551         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80552
80553 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80554
80555         * lib/xvasprintf.h: New file.
80556         * lib/xvasprintf.c: New file.
80557         * lib/xasprintf.c: New file.
80558
80559 2004-09-08  Bruno Haible  <bruno@clisp.org>
80560
80561         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80562
80563 2004-09-08  Bruno Haible  <bruno@clisp.org>
80564
80565         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80566         length is > INT_MAX.
80567         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80568         more.
80569
80570 2004-09-08  Bruno Haible  <bruno@clisp.org>
80571
80572         * lib/stdint_.h: New file, taken from GNU clisp.
80573
80574 2004-09-08  Bruno Haible  <bruno@clisp.org>
80575             Oskar Liljeblad  <oskar@osk.mine.nu>
80576
80577         * modules/stdint: New file.
80578         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80579
80580 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80581
80582         Import from coreutils.
80583         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80584         strings on unbounded length.  alloca's performance benefits aren't
80585         that important here.
80586         (V_STRDUP): Remove.
80587         (parse_with_separator): New function, with most of the internals
80588         of the old parse_user_spec.  Allow user to omit both user and group,
80589         for compatibility with FreeBSD.
80590         Clone only the user name, not the entire spec.
80591         Do not set *uid, *gid unless entirely successful.
80592         Avoid memory leak in some failing cases.
80593         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80594         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80595         (parse_user_spec): Rewrite to use parse_with_separator.
80596
80597 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80598
80599         * modules/userspec: Don't depend on alloca.
80600
80601 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80602
80603         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80604
80605 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80606
80607         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80608         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80609         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80610
80611 2004-08-16  Simon Josefsson  <jas@extundo.com>
80612
80613         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80614         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80615         Add --dry-run for --import.
80616         Let user provided command line parameters override configure.ac
80617         settings.
80618
80619 2004-08-12  Simon Josefsson  <jas@extundo.com>
80620
80621         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80622         as discussed with Paul Eggert in threads rooted at
80623         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80624         and
80625         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80626         Before, the test was empty, and relied on ELIDE_CODE in source
80627         code.)
80628         (gl_PREREQ_GETOPT): New macro.
80629         (gl_GETOPT): Use them.
80630
80631 2004-08-12  Simon Josefsson  <jas@extundo.com>
80632
80633         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80634         * lib/getopt_.h: Renamed from getopt.h.
80635
80636 2004-08-12  Simon Josefsson  <jas@extundo.com>
80637
80638         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80639         Change default library name from libfoo to libgnu.
80640         Now, if you have a configure.ac that says:
80641                 gl_SOURCE_BASE(gl)
80642                 gl_M4_BASE(gl/m4)
80643                 gl_MODULES(error getopt etcetera)
80644                 gl_INIT
80645         you can import all you need by running:
80646                 ../gnulib/gnulib-tool --import
80647
80648         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80649         (Makefile.am): Rewrite, use logic from argz.
80650         (Include): Use <getopt.h> instead of "getopt.h".
80651
80652 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80653
80654         * modules/argp (Files): Add m4/unlocked-io.m4.
80655         (Depends-on): Add extensions.
80656
80657 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80658
80659         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80660         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80661         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80662         Check for program_invocation_name, program_invocation_short_name,
80663         flockfile, funlockfile, features.h, _getopt_long_only_r.
80664
80665 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80666
80667         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80668         its complicated substitute.
80669         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80670         and program_invocation_name.
80671         (__argp_basename) [!_LIBC]: Remove; the only use was
80672         replaced by its body.
80673         (__argp_short_program_name): Change condition from
80674         !defined __argp_short_program_name to
80675         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80676         to match argp-namefrob.h.
80677         (__argp_failure): Don't assume strerror_r returns char *.
80678         * lib/argp-parse.c (N_): Define unconditionally.
80679         (argp_default_options): Fill out initializers with 0 to avoid
80680         gcc warnings.
80681
80682 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80683
80684         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80685         getopt1.c.
80686
80687 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80688
80689         Merge from coreutils.
80690
80691         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80692
80693         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80694         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80695
80696 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80697
80698         Merge from coreutils.
80699
80700         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80701         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80702         for Reliant Unix 5.43.
80703
80704         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80705         (union fooround): Use uintmax_t, not long int.
80706         The rest is a merge from libc:
80707         [defined _LIBC]: Include <shlib-compat.h>.
80708         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80709
80710         * lib/settime.c (settime): Recode to avoid warning with
80711         Sun Forte C 6U2.
80712
80713         * lib/strverscmp.c: Convert to UTF-8.
80714
80715 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80716
80717         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80718         m4/uintmax_t.m4.
80719
80720 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80721
80722         * modules/xalloc-die: New file.
80723         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80724
80725         * modules/md5 (Files): Add m4/uint32_t.m4.
80726         * modules/sha1: Renamed from modules/sha.
80727         (Files):
80728         Rename lib/sha.h to lib/sha1.h.
80729         Rename lib/sha.c to lib/sha1.c.
80730         Rename m4/sha.m4 to m4/sha1.m4.
80731         (lib_SOURCES): Likewise.
80732         (configure.ac): Rename gl_SHA to gl_SHA1.
80733         (Include): sha.h -> sha1.h.
80734
80735 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80736
80737         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80738         * m4/sha1.m4: Renamed from sha.m4.
80739         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80740
80741 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80742
80743         * lib/obstack.h (obstack_empty_p):
80744         Don't assume that chunk->contents is suitably aligned.
80745         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80746         Likewise. Problem reported by Benno in
80747         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80748
80749         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80750         readable.  This could be improved further but it'd take some work.
80751
80752 2004-08-08  Simon Josefsson  <jas@extundo.com>
80753
80754         * modules/xgethostname (Depends-on): Remove exit and error (not
80755         used).
80756
80757         * modules/getpass-gnu: Add getpass.h.
80758         (Depends-on): Add stdbool.
80759         * modules/getpass: Add getpass.h.
80760
80761 2004-08-08  Simon Josefsson  <jas@extundo.com>
80762
80763         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80764         Check getpass declaration.
80765
80766 2004-08-08  Simon Josefsson  <jas@extundo.com>
80767
80768         * lib/xgethostname.c: Don't include error.h (not used).
80769
80770         * lib/getpass.h: Add.
80771         * lib/getpass.c: Include getpass.h first.
80772
80773 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80774
80775         * lib/xalloc-die.c: New file.
80776         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80777         All uses removed.
80778         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80779         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80780         xalloc-die.c.
80781         (_, N_, xalloc_die): Move to xalloc-die.c.
80782         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80783         so that we needn't mess with xalloc_msg_memory_exhausted.
80784
80785         * lib/sha1.h: Renamed from sha.h.
80786         (SHA1_H): Renamed from _SHA_H.
80787         (sha1_ctx): Renamed from sha_ctx.
80788         (sha1_init_ctx): Renamed from sha_init_ctx.
80789         (sha1_process_block): Renamed from sha_process_block.
80790         (sha1_process_bytes): Renamed from sha_process_bytes.
80791         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80792         (sha1_read_ctx): Renamed from sha_read_ctx.
80793         (sha1_stream): Renamed from sha_stream.
80794         (sha1_buffer): Renamed from sha_buffer.
80795         * lib/sha1.c: Likewise; renamed from sha.c.
80796         Do not include <sys/types.h>.
80797         Include <stddef.h> rather than <stdlib.h>.
80798
80799 2004-08-08  Bruno Haible  <bruno@clisp.org>
80800
80801         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80802         FILESYSTEM_PREFIX_LEN.
80803         * lib/progreloc.c: Likewise.
80804         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80805
80806 2004-08-06  Simon Josefsson  <jas@extundo.com>
80807
80808         * modules/progname (Depends-on): Don't depend on stdbool.
80809
80810 2004-08-06  Simon Josefsson  <jas@extundo.com>
80811
80812         * modules/getsubopt: New file.
80813         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80814         getsubopt.
80815
80816 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80817
80818         More merge from coreutils.
80819
80820         * m4/utimens.m4, m4/utimecmp.m4: New files.
80821         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80822         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80823         prereq.m4, sha.m4: Import changes from coreutils.
80824
80825 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80826
80827         More merge from coreutils.
80828         * modules/raise, modules/readtokens0, modules/utimens:
80829         * modules/utimecmp, module/xnanosleep: New files.
80830         * modules/strftime: Add lib/strftime.h.
80831         Change include from <time.h> to "strftime.h".
80832         * modules/yesno: Add lib/yesno.h.
80833         * modules/backupfile: Remove lib/addext.c.
80834         * modules/euidaccess: Add stat-macros.h.
80835         * modules/canonicalize, modules/euidaccess,
80836         modules/filemode, modules/lchown, modules/makepath,
80837         modules/rmdir, modules/stat: Likewise.
80838
80839 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80840
80841         Merge from tar.
80842         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80843         SIZE_MAX is a valid preprocessor constant.
80844         (__argp_basename): Change from "#ifndef _LIBC"
80845         to "#ifndef __argp_short_program_name", so that
80846         we don't compile these functions for tar.
80847
80848         More merges from coreutils.
80849         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80850         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80851         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80852         * lib/addext.c: Remove; no longer needed.
80853         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80854         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80855         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80856         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80857         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80858         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80859         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80860         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80861         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80862         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80863         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80864         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80865         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80866         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80867         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80868         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80869         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80870         Import changes from coreutils.
80871
80872 2004-08-05  Simon Josefsson  <jas@extundo.com>
80873
80874         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80875
80876 2004-08-05  Simon Josefsson  <jas@extundo.com>
80877
80878         * m4/getsubopt.m4: New file.
80879
80880 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80881
80882         Merge from coreutils.
80883
80884         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80885         * m4/getcwd-path-max.m4: New files.
80886
80887         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80888         FILESYSTEM_PREFIX_LEN ->
80889         FILE_SYSTEM_PREFIX_LEN.
80890         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80891         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80892         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80893         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80894
80895         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80896         prerequisite modules now handle the DOS stuff.
80897         Don't check for unistd.h.
80898
80899 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80900
80901         Merge from coreutils.
80902
80903         * lib/.gdb-history: Remove; this doesn't belong here.
80904
80905         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80906         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80907         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80908         * lib/getcwd.c: New files.
80909
80910         * lib/dirname.h: Include <stdbool.h>.
80911         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80912         for consistency with POSIX terminology.  All uses changed.
80913         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80914         (strip_trailing_slashes): Use bool for booleans.
80915         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80916
80917         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80918         sometimes returns a positive errno value even when it succeeds.
80919         (print_errno_message) [!LIBC]: Fall back on strerror if
80920         __strerror_r fails.
80921
80922         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80923         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80924         (longest_relative_suffix): New function.
80925         (path_concat): Use it.  Assume first argument is not NULL.
80926         Port to DOS.  Omit redundant separators.
80927         Report an error instead of returning NULL.
80928         Use mempcpy instead of memcpy.
80929         (xpath_concat): Remove: not declared or used.
80930
80931         * lib/same.h: Include <stdbool.h>
80932         (same_name): Return bool, not int.
80933         * lib/same.c (same_name): Likewise.
80934         (errno): Don't declare; we assume C89 or better now.
80935
80936         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80937         if not already defined.
80938
80939         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80940         * lib/dup-safer.c (errno): Likewise.
80941
80942 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80943
80944         Merge from coreutils.
80945         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80946         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80947         * modules/path-concat: Don't depend on strdup.
80948
80949 2004-08-03  Simon Josefsson  <jas@extundo.com>
80950
80951         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80952         * lib/progname.h: Don't include stdbool.h.
80953
80954 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80955
80956         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80957         * MODULES.html.sh (func_all_modules): Remove fatal.
80958
80959 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80960
80961         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80962
80963 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80964
80965         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80966         working.
80967
80968 2004-08-02  Simon Josefsson  <jas@extundo.com>
80969
80970         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80971         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80972         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80973
80974 2004-08-01  Simon Josefsson  <jas@extundo.com>
80975
80976         * lib/xgetdomainname.c: Include stdlib.h, for free().
80977
80978 2004-07-19  Bruno Haible  <bruno@clisp.org>
80979
80980         * MODULES.html.sh (func_all_modules): Add dummy.
80981
80982 2004-07-16  Simon Josefsson  <jas@extundo.com>
80983
80984         * modules/dummy: New file.
80985
80986 2004-07-16  Simon Josefsson  <jas@extundo.com>
80987
80988         * lib/dummy.c: New file.
80989
80990 2004-07-16  Bruno Haible  <bruno@clisp.org>
80991
80992         * lib/backupfile.h: Add extern "C" for C++.
80993         * lib/closeout.h: Likewise.
80994         * lib/copy-file.h: Likewise.
80995         * lib/findprog.h: Likewise.
80996         * lib/full-write.h: Likewise.
80997         * lib/pathname.h: Likewise.
80998         * lib/progname.h: Likewise.
80999         * lib/stpcpy.h: Likewise.
81000         * lib/stpncpy.h: Likewise.
81001         * lib/strcase.h: Likewise.
81002         * lib/strstr.h: Likewise.
81003         * lib/xalloc.h: Likewise.
81004
81005         * lib/mbswidth.h: Add extern "C" for C++.
81006         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81007
81008 2004-07-13  Robert Millan  <robertmh@gnu.org>
81009
81010         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81011
81012 2004-07-09  Simon Josefsson  <jas@extundo.com>
81013
81014         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81015         failed without this.)
81016
81017 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81018
81019         * modules/chown (Files): Add lib/fchown-stub.c, since
81020         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81021
81022 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81023
81024         * lib/fchown-stub.c: New file.
81025
81026 2004-06-24  Jim Meyering  <jim@meyering.net>
81027
81028         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81029
81030 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81031
81032         * modules/argz: Omit "#include".
81033
81034         * MODULES.html.sh (func_all_modules): Add calloc, to match
81035         2004-06-01 addition of calloc module.
81036
81037 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81038
81039         * m4/argz.m4: New file, which is autoupdated from libtool.
81040
81041 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81042
81043         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81044         libtool.
81045
81046 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81047
81048         * config/srclist-update: Don't insist on "USA." before the
81049         close-comment, as libtool omits the period and puts the */ on a
81050         separate line.
81051         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81052         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81053
81054 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81055
81056         * modules/argz: New file.
81057         * MODULES.html.sh (func_all_modules): Add argz.
81058
81059 2004-06-12  Jim Meyering  <jim@meyering.net>
81060         and  Paul Eggert  <eggert@cs.ucla.edu>
81061
81062         * modules/hash (Files): Add lib/xalloc.h.
81063         * modules/pipe (Depends-on): Add wait-process.
81064         * modules/stat (Depends-on): Add xalloc.
81065         * modules/userspec (Files): Add lib/userspec.h.
81066         * modules/xstrto
81067
81068         Upgrade from gettext-0.13.
81069         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81070         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81071         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81072
81073 2004-06-10  Jim Meyering  <jim@meyering.net>
81074
81075         * lib/calloc.c: New file.
81076
81077 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         * lib/getdate.y (yylex): Allow space between sign and number.
81080         Problem reported by Dan Jacobson.
81081
81082 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81083
81084         Merge from coreutils CVS.
81085
81086         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81087         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81088         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81089         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81090         xstrtol.m4: Fix copyright date and/or serial number.
81091
81092         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81093         See if we need an fchown replacement.
81094         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81095         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81096         and use the replacement function if we detect either defect.
81097
81098         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81099         gl_UTIMECMP.
81100
81101 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81102         and  Jim Meyering  <jim@meyering.net>
81103
81104         Merge from coreutils CVS.
81105
81106         * lib/stat-macros.h: New file, with contents from file-type.h
81107         and coreutils' system.h.
81108         * lib/file-type.c: Include "stat-macros.h".
81109         * lib/file-type.h (file_type): Move all macro definitions to new file,
81110         stat-macros.h.
81111
81112         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81113         Wrap old code with this conditional.
81114         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81115         function that does not dereference symlinks.
81116         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81117
81118         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81119         dependency problems.
81120         (xreadlink): Accept new arg SIZE, for efficiency.
81121         All decls and uses changed.
81122         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81123
81124         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81125         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81126
81127         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81128         sysexits.h.
81129
81130 2004-06-01  Jim Meyering  <jim@meyering.net>
81131
81132         * m4/calloc.m4: New file.
81133
81134 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81135
81136         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81137         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81138         Also, fix a typo in a diagnostic.
81139
81140 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81141
81142         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81143         or AC_FUNC_REALLOC.
81144
81145 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81146
81147         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81148         macros to be defined.
81149         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81150         the allocator returns NULL because the requested size is zero.
81151
81152 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81153
81154         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81155         var.  Add comment explaining why libc still defines it.  This
81156         merges the following patch from glibc:
81157         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81158
81159 2004-05-20  Andreas Schwab  <schwab@suse.de>
81160
81161         * m4/free.m4: Replace free if it not known to work, not the other
81162         way round.
81163
81164 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81165
81166         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81167         present in glibc since revision 1.1 of this file.
81168         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81169         obstack_alignment_mask, obstack_alloc, obstack_base,
81170         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81171         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81172         obstack_grow0, obstack_init, obstack_int_grow,
81173         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81174         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81175         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81176         nonexistent functions.
81177
81178 2004-05-18  Karl Berry  <karl@gnu.org>
81179
81180         * config/srclist.txt: break link for vasnprintf.c.
81181
81182 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81183
81184         Port obstack to the AS/400, where pointers are 16 bytes wide and
81185         you cannot cast an integer to a valid pointer.  This patch is
81186         currently waiting to be integrated into glibc; see
81187         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81188
81189         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81190         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81191         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81192         (struct obstack): temp member is now a union of a pointer and
81193         an integer, instead of an integer.  All integer uses changed.
81194         This does not affect the physical layout of struct obstack,
81195         except on hosts (like the AS/400) where the size or alignment of
81196         void * is greater than that of ptrdiff_t.
81197         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81198         __STDC__)]: Store temporary in pointer member of union, not
81199         integer member.
81200         * lib/obstack.c: Include <stddef.h>, for offsetof.
81201         (struct fooalign): Remove; it doesn't need a name.
81202         (union fooround): Change double to long double, and add void *.
81203         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81204         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81205         not a macro.  Hence the values are always int; so remove all
81206         casts-to-int in uses.
81207
81208 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81209
81210         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81211         we can get this patch merged into glibc.
81212
81213 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81214             Paul Eggert  <eggert@cs.ucla.edu>
81215
81216         * m4/argp: Depend on alloca.
81217
81218 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81219             Paul Eggert  <eggert@cs.ucla.edu>
81220
81221         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81222         freecoding.
81223
81224 2004-05-17  Bruno Haible  <bruno@clisp.org>
81225
81226         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81227         precision that consists of a '.' followed by an empty digit string.
81228         Patch by Tor Lillqvist <tml@iki.fi>.
81229
81230 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81231
81232         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81233         for backward compatibility with older code.  We need our own
81234         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81235         it under some other name, and our alloca.h will define it.
81236
81237 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81238             Derek Price  <derek@ximbiot.com>
81239
81240         * lib/alloca.c: Include <alloca.h>, to get our interface.
81241         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81242         include <alloca.h> first.  Use C89 prototype for alloca; this
81243         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81244         Use #elif for simplicity, since we can assume C89 now.
81245         Don't try to source the system alloca.h since it will not be found
81246         and to prevent recursively including its replacement.
81247         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81248         * lib/regex.c: Likewise.
81249
81250 2004-05-16  Derek Price  <derek@ximbiot.com>
81251             Paul Eggert  <eggert@cs.ucla.edu>
81252
81253         getline cleanup.  This changes the getndelim2 API: both order of
81254         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81255         no delimiter).
81256
81257         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81258         interface does that.
81259         (getline): Always use getdelim, so that we don't have two
81260         copies of this code.
81261         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81262         if available.
81263         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81264         (GETNDELIM2_MAXIMUM): New macro.
81265         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81266         instead of the old practice of delim2==0.  All callers changed.
81267         Return -1 on overflow, instead of returning junk.
81268         Do not set *linesize unless allocation succeeds.
81269         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81270         that we include sys/types.h.
81271         * lib/getnline.h: Likewise.
81272         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81273         (getndelim2): Reorder arguments.
81274         * lib/getnline.c (getnline, getndelim):
81275         Don't discard the NMAX argument.
81276         (getnline): Invoke getndelim, to avoid code duplication.
81277         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81278         of (size_t) -1 by callers of the getnline family.
81279
81280 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81281
81282         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81283         Check for gettimeofday.
81284         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81285         Check for settimeofday, stime.
81286
81287 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81288
81289         * lib/nanosleep.c (suspended): Change its type from int to
81290         sig_atomic_t volatile.
81291         (first_call): Make it private to rpl_nanosleep, and have it
81292         be zero initially as that's a bit faster.
81293         (my_usleep): Round up fractional times instead of truncating them,
81294         as this is the usual meaning for 'sleep'.
81295
81296         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81297         doesn't work.
81298         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81299         (ENOSYS): Define if not defined.
81300         (settime): Fall back on stime if it exists and settimeofday fails.
81301         But don't bother with fallbacks if a method fails with errno == EPERM.
81302
81303 2004-05-11  Jim Meyering  <jim@meyering.net>
81304
81305         Prior to this change, the save_cwd caller required read access to the
81306         current directory on most systems (ones with the fchdir function).
81307
81308         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81309         fails, try write-only, and finally, resort to using xgetcwd.
81310
81311 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81312
81313         * lib/obstack.c, obstack.h: Import changes from libc.
81314
81315 2004-04-28  Bruno Haible  <bruno@clisp.org>
81316
81317         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81318         also implicitly appends .exe to executables.
81319         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81320         accepts Windows pathnames.
81321         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81322         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81323         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81324         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81325         Reported by Derek Robert Price <derek@ximbiot.com>.
81326
81327 2004-04-21  Karl Berry  <karl@gnu.org>
81328
81329         * config/srclist.txt (localcharset.c): break sync.
81330
81331 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81332
81333         * m4/host-os.m4: Add a copyright notice.
81334
81335 2004-04-20  Jim Meyering  <jim@meyering.net>
81336
81337         Change UTILS_ to gl_ in AC_DEFINE'd names.
81338         Change utils_- and jm_-prefixed variables, too.
81339         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81340         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81341         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81342
81343         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81344         Don't emit trailing blanks.
81345         Also rename jm_-prefixed variables to have gl_ prefix.
81346
81347         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81348         Also rename jm_-prefixed variables to have gl_ prefix.
81349
81350         * m4/jm-macros.m4: Reflect the renamings.
81351         * m4/prereq.m4: Likewise.
81352
81353 2004-04-20  Jim Meyering  <jim@meyering.net>
81354
81355         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81356         memory.
81357
81358 2004-04-20  Jim Meyering  <jim@meyering.net>
81359             Bruno Haible  <bruno@clisp.org>
81360
81361         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81362         memory when realloc fails.
81363
81364 2004-04-19  Jim Meyering  <jim@meyering.net>
81365
81366         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81367         now that readutmp.c may call `free (0)'.
81368
81369 2004-04-19  Bruno Haible  <bruno@clisp.org>
81370
81371         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81372         * m4/inttypes_h.m4: Likewise.
81373         * m4/stdint_h.m4: Likewise.
81374         * m4/intmax_t.m4: Likewise.
81375         * m4/uintmax_t.m4: Likewise.
81376
81377 2004-04-18  Jim Meyering  <jim@meyering.net>
81378
81379         * m4/prereq.m4: Don't forbid jm_ prefix.
81380
81381         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81382         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81383         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81384         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81385         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81386         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81387         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81388         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81389         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81390         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81391         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81392         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81393         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81394         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81395         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81396         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81397         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81398         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81399         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81400
81401 2004-04-18  Jim Meyering  <jim@meyering.net>
81402
81403         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81404         failure, don't leak memory and do call END_UTMP_ENT.
81405
81406 2004-04-16  Jim Meyering  <jim@meyering.net>
81407
81408         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81409         coreutils' stat program.
81410         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81411
81412 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81413
81414         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81415         C89.
81416         (CHAR_BIT): Remove, since we assume C89.
81417         Include <stdint.h> if available, as per current Autoconf CVS advice.
81418
81419 2004-03-31  Jim Meyering  <jim@meyering.net>
81420
81421         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81422         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81423         * m4/xalloc.m4: Likewise.
81424
81425 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81426
81427         Merge from coreutils.
81428
81429         * m4/inttostr.m4: New file.
81430         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81431         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81432         Require gl_CLOCK_TIME.
81433         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81434
81435 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81436
81437         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81438         not bool, to be more consistent with Unix conventions.
81439         Suggested by Bruno Haible.
81440
81441         Merge from coreutils.
81442
81443         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81444         * lib/umaxtostr.c: New files.
81445
81446         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81447         the usual <time.h> dance.
81448         (get_date): Change signature to support fractional time stamps.
81449         All callers changed.
81450         * lib/getdate.y: Include "getdate.h" first, as we can now
81451         assume C89 and don't need to worry about 'const'.
81452         Similarly, include "unlocked-io.h" near start, not in middle.
81453         Include <limits.h>.
81454         (textint.value): Use long int rather than int.
81455         (textint.digits): Use size_t rather than int.
81456         (BILLION, LOG10_BILLION): New constants.
81457         (parser_control): New member rel_ns.  Members day_ordinal,
81458         time_zone, month, day, hour, minutes, rel_year, rel_month,
81459         rel_day, rel_hour, rel_minutes, rel_seconds
81460         are now long int, not int.  Member seconds is now struct timespec,
81461         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81462         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81463         not int.
81464         (%union.intval): Now long int, not int.
81465         New member timespec.
81466         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81467         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81468         (spec): Now is a timespec or an item list.
81469         (timespec, items): New nonterminals.
81470         (time, rel, relunit, number, get_date):
81471         Add support for fractional seconds.
81472         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81473         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81474         (to_hour): First arg is now long int, not int.
81475         (to_year): Returns long int, not int.
81476         Don't treat year -70 like 70.
81477         (tm_diff): Returns long int, not int.
81478         (lookup_word): Use bool instead of int when appropriate.
81479         (yylex): Use size_t for count, not int.
81480         Detect overflow when parsing large integer constants.
81481         Add support for fractions.
81482         (get_date): Make pointers 'const' if possible.
81483         Use more-portable code to detect integer overflow.
81484         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81485         Don't use ctime; it's not reliable if the year has >4 digits.
81486
81487         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81488         This is for compatibility with BSD.
81489
81490         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81491         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81492         From coreutils' system.h.
81493
81494         * lib/userspec.c: Don't include "posixver.h".
81495         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81496         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81497         compatible extension.  Simplify code by removing a boolean int
81498         that was always nonzero if a string was nonnull.
81499
81500 2004-03-30  Jim Meyering  <jim@meyering.net>
81501
81502         Merge from coreutils.
81503
81504         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81505         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81506         on some systems one must include <grp.h> before it.
81507         Reported by Christian Krackowizer.
81508
81509 2004-03-30  Jim Meyering  <jim@meyering.net>
81510
81511         Merge from coreutils.
81512
81513         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81514
81515         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81516         an empty input stream.
81517
81518         * lib/readtokens.c: Include <stdbool.h>.
81519         (readtoken): Use `size_t' rather than int/long.
81520         All callers adjusted.
81521         Use `bool' rather than `int' where appropriate.
81522         Use memset rather than an explicit loop.
81523         Use x2nrealloc rather than xrealloc.
81524         Allow the use of `\0' as a delimiter.
81525         (readtokens): Likewise.
81526         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81527
81528 2004-03-30  Jim Meyering  <jim@meyering.net>
81529
81530         * m4/realloc.m4: Remove file, since now it does no more than
81531         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81532         the `configure.ac' section of module/realloc.
81533         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81534
81535 2004-03-30  Bruno Haible  <bruno@clisp.org>
81536
81537         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81538         nonnull.
81539
81540 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81541
81542         Merge changes to getloadavg.c from coreutils and Emacs.
81543
81544         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81545         Define to an expression, not to the empty string.
81546         Include cloexec.h and xalloc.h.
81547         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81548         Use set_cloexec_flag rather than rolling our own.
81549         * lib/cloexec.c, lib/cloexec.h: New files.
81550
81551 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81552
81553         * m4/cloexec.m4: New file.
81554
81555 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81556
81557         * lib/getopt.h: Sync with libc CVS.
81558
81559 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81560             Bruno Haible  <bruno@clisp.org>
81561
81562         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81563         mbswidth.
81564
81565 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81566             Bruno Haible  <bruno@clisp.org>
81567
81568         * lib/mbswidth.h: Include <wchar.h> only if
81569         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81570         <wchar.h>.
81571         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81572
81573 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81574
81575         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81576         Sync with libc CVS.
81577         * lib/getopt_int.h: New file, also synced from libc.
81578
81579 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81580
81581         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81582         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81583         Bring back getopt.c, getopt.h, getopt1.c.
81584
81585 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81586
81587         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81588         All uses changed.  Check for sa_sigaction member; this fixes
81589         a bug first reported by Jason Andrade in
81590         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81591
81592 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81593
81594         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81595         '#if' expressions.  Unlike the code it replaces, it does not
81596         depend on (defined _SC_PAGESIZE).  However, it does depend on
81597         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81598         first reported by Jason Andrade in
81599         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81600
81601 2004-02-25  Simon Josefsson  <jas@extundo.com>
81602
81603         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81604
81605 2004-02-25  Simon Josefsson  <jas@extundo.com>
81606
81607         * lib/strdup.h: New file.
81608         * lib/strdup.c: Include it.
81609         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81610         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81611
81612 2004-02-23  Karl Berry  <karl@gnu.org>
81613
81614         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81615         (from fencepost.gnu.org:/gd/gnuorg).
81616
81617 2004-02-23  Karl Berry  <karl@gnu.org>
81618
81619         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81620         * config/srclist.txt: add maintain/standards documents.
81621
81622 2004-02-18  Bruno Haible  <bruno@clisp.org>
81623
81624         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81625         Reported by Derek Robert Price <derek@ximbiot.com>.
81626
81627 2004-02-16  Karl Berry  <karl@gnu.org>
81628
81629         * config/mkinstalldirs, install-sh: update from automake.
81630
81631 2004-02-06  Karl Berry  <karl@gnu.org>
81632
81633         * m4/po.m4: update from gettext 0.14.1.
81634
81635 2004-02-06  Karl Berry  <karl@gnu.org>
81636
81637         * lib/config.charset: update from gettext 0.14.1.
81638
81639 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81640
81641         Add comments and code, prompted by suggestions from Bruno Haible
81642         for sh-quote.
81643         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81644         describing the enum quoting_style values.
81645         * lib/quotearg.c (quotearg_alloc): New function.
81646         (quotearg_buffer_restyled): Treat lone { and } as special.
81647         Treat = as special.  Work around bug with older shells
81648         that "see" a '\' that is really the 2nd byte of a multibyte char.
81649         Quote empty string with shell_quoting_style.
81650
81651 2004-02-03  Bruno Haible  <bruno@clisp.org>
81652
81653         * m4/pipe.m4: New file, from GNU gettext.
81654
81655 2004-02-03  Bruno Haible  <bruno@clisp.org>
81656
81657         * lib/pipe.h: New file, from GNU gettext.
81658         * lib/pipe.c: New file, from GNU gettext.
81659
81660 2004-01-27  Bruno Haible  <bruno@clisp.org>
81661
81662         * m4/execute.m4: New file, from GNU gettext.
81663
81664 2004-01-27  Bruno Haible  <bruno@clisp.org>
81665
81666         * lib/execute.h: New file, from GNU gettext.
81667         * lib/execute.c: New file, from GNU gettext.
81668         * lib/w32spawn.h: New file, from GNU gettext.
81669
81670 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81671
81672         Merge from diffutils.
81673
81674         * lib/file-type.c (file_type): Add typed memory objects.
81675         * lib/file-type.h (S_TYPEISTMO): New macro.
81676
81677         * lib/c-stack.h (c_stack_action): Remove argv argument.
81678         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81679         (die): Don't calculate message unless segv_action returns.
81680         (get_stack_location, min_address_from_argv, max_address_from_argv,
81681         volatile stack_base, volatile_stack_size): Remove.
81682         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81683         that every segmentation violation is a stack overflow.  (Ouch!)
81684         See Debian bug 136249 (still outstanding) for more info about why
81685         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81686
81687 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81688
81689         Exit-status fix from coreutils.
81690
81691         Use exit_failure consistently in place of EXIT_FAILURE,
81692         so that program exit statuses are consistent on failure.
81693
81694         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81695         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81696         * lib/argmatch.h: Comment fix to match the above.
81697         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81698         Now a macro referring to exit_failure, instead of a separate
81699         variable.  Include "exitfail.h" to get it.
81700         * lib/xstrtol.h: Include "exitfail.h".
81701         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81702
81703         * lib/long-options.c (parse_long_options): Use prototype
81704         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81705         for clarity.
81706
81707 2004-01-21  Jim Meyering  <jim@meyering.net>
81708
81709         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81710         so as not to conflict with a different-sized __mktime_internal
81711         function in GNU libc.
81712         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81713         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81714
81715 2004-01-20  Karl Berry  <karl@gnu.org>
81716
81717         * config/config.guess: update from config.
81718
81719         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81720
81721 2004-01-20  Bruno Haible  <bruno@clisp.org>
81722
81723         Safer stack allocation.
81724         * lib/setenv.c: Include allocsa.h.
81725         (alloca): Remove fallback definition.
81726         (freea): Remove macro.
81727         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81728         instead of freea.
81729
81730 2004-01-20  Bruno Haible  <bruno@clisp.org>
81731
81732         * m4/eealloc.m4: New file, from GNU gettext.
81733
81734 2004-01-20  Bruno Haible  <bruno@clisp.org>
81735
81736         * m4/allocsa.m4: New file, from GNU gettext.
81737
81738 2004-01-20  Bruno Haible  <bruno@clisp.org>
81739
81740         * lib/xallocsa.h: New file, from GNU gettext.
81741         * lib/xallocsa.c: New file, from GNU gettext.
81742
81743 2004-01-20  Bruno Haible  <bruno@clisp.org>
81744
81745         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81746
81747 2004-01-20  Bruno Haible  <bruno@clisp.org>
81748
81749         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81750         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81751         specially.
81752
81753 2004-01-20  Bruno Haible  <bruno@clisp.org>
81754
81755         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81756         patch.
81757
81758 2004-01-20  Bruno Haible  <bruno@clisp.org>
81759
81760         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81761
81762 2004-01-20  Bruno Haible  <bruno@clisp.org>
81763
81764         * lib/eealloc.h: New file.
81765
81766 2004-01-20  Bruno Haible  <bruno@clisp.org>
81767
81768         * lib/binary-io.h: Avoid warnings on Cygwin.
81769
81770 2004-01-20  Bruno Haible  <bruno@clisp.org>
81771
81772         * lib/allocsa.h: New file, from GNU gettext.
81773         * lib/allocsa.c: New file, from GNU gettext.
81774
81775 2004-01-18  Karl Berry  <karl@gnu.org>
81776
81777         * doc/gpl.texi, doc/lgpl.texi: new files.
81778
81779 2004-01-18  Karl Berry  <karl@gnu.org>
81780
81781         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81782         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81783
81784 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81785
81786         Merge from coreutils.
81787
81788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81789         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81790         (gl_DEFAULT_POSIX2_VERSION): Move
81791         the documentation from 'configure' into 'config.hin',
81792         so that 'configure --help' isn't burdened by it and
81793         we don't have to worry about its formatting there.
81794         Reword the documentation so that it's more succinct
81795         and can be run together into a single paragraph.
81796         * m4/same.m4 (gl_SAME): Check for pathconf.
81797
81798 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81799
81800         Merge from coreutils.
81801
81802         * lib/posixver.c: Include posixver.h.
81803
81804         * lib/same.c: Include <stdbool.h>, <limits.h>.
81805         (_POSIX_NAME_MAX): Define if not defined.
81806         (MIN): New macro.
81807         (same_name): If file names are silently truncated, report
81808         that the file names are the same if they are the same after
81809         the silent truncation.
81810
81811         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81812         conversion function.
81813         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81814         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81815         longer needed.
81816
81817 2004-01-15  Jim Meyering  <jim@meyering.net>
81818
81819         Merge from coreutils.
81820
81821         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81822         if no library is required.
81823         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81824         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81825         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81826         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81827         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81828         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81829         value, $ac_cv_search_crypt, if it's "none required".
81830         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81831         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81832         not gl_FUNC_GETLOADAVG.
81833         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81834         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81835
81836 2004-01-15  Jim Meyering  <jim@meyering.net>
81837
81838         Merge from coreutils.
81839
81840         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81841         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81842         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81843
81844         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81845         optional configure-time default.
81846
81847         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81848
81849         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81850
81851 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81852
81853         Merge from coreutils.
81854
81855         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81856         value, $ac_cv_search_nanosleep, if it's "none required".
81857
81858 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81859
81860         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81861         with like-named macro in fnmatch.c.
81862         (EXT): Use an internal constant instead.
81863
81864         Merge fnmatch patches from glibc.
81865         * lib/fnmatch.c (mbsinit): Remove define.
81866         Add libc_hidden_ver (__fnmatch, fnmatch).
81867         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81868         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81869
81870 2004-01-14  Karl Berry  <karl@gnu.org>
81871
81872         * config/install-sh: update from automake.
81873
81874 2004-01-13  Karl Berry  <karl@gnu.org>
81875
81876         * config/install-sh: update from automake.
81877
81878 2004-01-09  Karl Berry  <karl@gnu.org>
81879
81880         * config/install-sh: update from automake.
81881
81882 2004-01-05  Karl Berry  <karl@gnu.org>
81883
81884         * config/config.{sub,guess}: update from config.
81885
81886 2003-12-31  Karl Berry  <karl@gnu.org>
81887
81888         * config/depcomp: update from automake.
81889
81890 2003-12-14  Karl Berry  <karl@gnu.org>
81891
81892         * lib/config.charset: update from gettext-runtime.
81893
81894 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81895
81896         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81897         Bug reported by Alfred M. Szmidt.
81898
81899 2003-12-03  Bruno Haible  <bruno@clisp.org>
81900
81901         * m4/gettext.m4: Upgrade from gettext-0.13.
81902         * m4/po.m4: Upgrade from gettext-0.13.
81903         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81904         * m4/intmax.m4: New file, from gettext-0.13.
81905         * m4/printf-posix.m4: New file, from gettext-0.13.
81906
81907 2003-11-29  Karl Berry  <karl@gnu.org>
81908
81909         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81910
81911 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81912             Bruno Haible  <bruno@clisp.org>
81913
81914         * lib/printf-parse.h: Don't include sys/types.h.
81915         (ARG_NONE): New macro.
81916         (char_directive): Change type of *arg_index fields to size_t.
81917         * lib/printf-parse.c: Don't include sys/types.h.
81918         (SSIZE_MAX): Remove macro.
81919         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81920         Remove unnecessary overflow check.
81921         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81922         fields.
81923
81924 2003-11-25  Bruno Haible  <bruno@clisp.org>
81925
81926         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81927
81928 2003-11-25  Bruno Haible  <bruno@clisp.org>
81929
81930         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81931         gt_TYPE_SSIZE_T.
81932
81933 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81934
81935         * modules/alloca: Remove dependency on xalloc.
81936
81937 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81938
81939         * lib/alloca.c: Remove dependency on xalloc module.
81940         (xalloc_die): Remove.
81941         (memory_full) [!defined emacs]: New macro.
81942         [!defined emacs]: Don't include xalloc.h.
81943         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81944         address arithmetic overflows.  Change datatypes a bit to avoid
81945         unnecessary casts.
81946
81947 2003-11-22  Jim Meyering  <jim@meyering.net>
81948
81949         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81950         s/size/size_t/.
81951
81952 2003-11-21  Karl Berry  <karl@gnu.org>
81953
81954         * config/config.{sub,guess}: update from config.
81955
81956 2003-11-18  Karl Berry  <karl@gnu.org>
81957
81958         * config/config.{sub,guess}: update from config.
81959
81960         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81961
81962 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81963
81964         * README: Mention that S+T cannot overflow if S is the size of
81965         an existing object and T is sufficiently small.
81966
81967 2003-11-17  Jim Meyering  <jim@meyering.net>
81968
81969         On systems without utime and without a utimes function capable of
81970         dealing with a NULL struct utimbuf* argument, this utime replacement
81971         could -- in unusual circumstances -- leak a file descriptor.
81972         * lib/utime.c: Include <unistd.h> and <errno.h>.
81973         (utime_null): Be sure to close `fd' and to preserve errno.
81974         Reported by Geoff Collyer via Arnold Robbins.
81975
81976 2003-11-17  Bruno Haible  <bruno@clisp.org>
81977
81978         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81979         (Depends-on): Add xsize.
81980
81981 2003-11-17  Bruno Haible  <bruno@clisp.org>
81982
81983         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81984
81985 2003-11-17  Bruno Haible  <bruno@clisp.org>
81986
81987         * lib/vasnprintf.c (alloca): Remove fallback definition.
81988         (freea): Remove definition.
81989         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81990         Reported by Paul Eggert.
81991
81992 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81993             Bruno Haible  <bruno@clisp.org>
81994
81995         Protect against address arithmetic overflow.
81996         * lib/printf-args.h: Include stddef.h.
81997         (arguments): Change type of field 'count' to size_t.
81998         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81999         'unsigned int' where appropriate.
82000         * lib/printf-parse.h: Include sys/types.h.
82001         (char_directive): Change type of *arg_index fields to ssize_t.
82002         (char_directives): Change type of fields 'count', max_*_length to
82003         size_t.
82004         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82005         (SSIZE_MAX): Define fallback value.
82006         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82007         instead of 'int' where appropriate. Check a_allocated, d_allocated
82008         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82009         * lib/vasnprintf.c: Include xsize.h.
82010         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82011         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82012         overflow. Avoid wraparound when converting a width or precision from
82013         decimal to binary.
82014
82015 2003-11-16  Bruno Haible  <bruno@clisp.org>
82016
82017         Update from GNU gettext.
82018         * lib/printf-parse.c: Generalize to it can be compiled for wide
82019         strings.
82020         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82021         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82022         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82023         SNPRINTF): New macros.
82024         Don't include <alloca.h> if the file is used inside libintl.
82025         (local_wcslen): New function, for Solaris 2.5.1.
82026         (VASNPRINTF): Use it instead of wcslen.
82027
82028 2003-11-16  Bruno Haible  <bruno@clisp.org>
82029
82030         * lib/xsize.h (xmax): New function.
82031         (xsum, xsum3, xsum4): Declare as "pure" functions.
82032
82033 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82034
82035         * modules/xalloc (Files): Undo latest change, since xalloc.h
82036         no longer needs SIZE_MAX or PTRDIFF_MAX.
82037
82038 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82039
82040         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82041         gl_PTRDIFF_MAX.
82042
82043 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82044
82045         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82046         "return", to pacify some unknown compiler.  Problem reported
82047         by Joerg Schilling.
82048
82049 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82050
82051         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82052         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82053         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82054         heuristic is just as accurate as far as we know, and it removes a
82055         dependency on size_max.m4 and ptrdiff_max.m4.
82056
82057 2003-11-11  Bruno Haible  <bruno@clisp.org>
82058
82059         * modules/xsize (Files): Add m4/size_max.m4.
82060         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82061
82062 2003-11-11  Bruno Haible  <bruno@clisp.org>
82063
82064         * m4/size_max.m4: New file.
82065         * m4/ptrdiff_max.m4: New file.
82066         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82067         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82068         (gl_XALLOC): Invoke it.
82069
82070 2003-11-11  Bruno Haible  <bruno@clisp.org>
82071
82072         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82073         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82074         defined.
82075
82076 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82077
82078         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82079         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82080         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82081         From Bruno Haible.
82082         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82083         not (size_t) -1, since it's defined here.
82084
82085 2003-11-09  Karl Berry  <karl@gnu.org>
82086
82087         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82088
82089 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82090
82091         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82092         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82093         Reject sizes of exactly SIZE_MAX bytes.
82094         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82095         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82096
82097 2003-11-05  Bruno Haible  <bruno@clisp.org>
82098
82099         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82100         SIZE_MAX defined in <limits.h> on Solaris.
82101
82102 2003-11-04  Jim Meyering  <jim@meyering.net>
82103
82104         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82105         variable names, rather than @VAR@.
82106         * modules/poll: Likewise.
82107
82108 2003-11-04  Bruno Haible  <bruno@clisp.org>
82109
82110         * modules/xsize: New file.
82111         * modules/linebreak: Depend on xsize.
82112         * MODULES.html.sh (func_all_modules): Add xsize.
82113
82114 2003-11-04  Bruno Haible  <bruno@clisp.org>
82115
82116         * m4/xsize.m4: New file.
82117
82118 2003-11-04  Bruno Haible  <bruno@clisp.org>
82119
82120         * lib/xsize.h: New file.
82121         * lib/linebreak.c: Include xsize.h.
82122         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82123         argument for overflow.
82124         Suggested by Paul Eggert.
82125
82126 2003-11-03  Karl Berry  <karl@gnu.org>
82127
82128         * config/config.{guess,sub}: update from config.
82129
82130 2003-11-03  Jim Meyering  <jim@meyering.net>
82131
82132         * modules/userspec (lib_SOURCES): Add userspec.h.
82133         (Include): Add "userspec.h".
82134         Improve description.
82135
82136 2003-11-03  Jim Meyering  <jim@meyering.net>
82137
82138         * lib/userspec.c: Include "userspec.h".
82139         * lib/userspec.h: New file.
82140
82141 2003-11-03  Bruno Haible  <bruno@clisp.org>
82142
82143         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82144
82145 2003-11-03  Bruno Haible  <bruno@clisp.org>
82146
82147         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82148         available, to avoid (extremely rare) race condition.
82149         Suggested by Paul Eggert.
82150
82151 2003-11-02  Karl Berry  <karl@gnu.org>
82152
82153         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82154
82155 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82156
82157         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82158         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82159         (read_filesystem_list): Set and use me_type_malloced.
82160         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82161         whatever the type happens to be), for brevity and consistency.
82162         Check for size calculation overflow on Alphas running OSF/1.
82163
82164 2003-10-31  Jim Meyering  <jim@meyering.net>
82165
82166         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82167
82168         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82169
82170 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82171             Bruno Haible  <bruno@clisp.org>
82172
82173         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82174         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82175
82176 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82177
82178         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82179         netbsd*-gnu*.  Suggested by Robert Millan.
82180
82181 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82182
82183         * modules/group-member: Depend on stdbool.
82184
82185 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82186
82187         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82188
82189 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82190
82191         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82192         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82193         after the 'gnu' in these cases.  This fixes some bugs in the
82194         previous change, and is based on suggestions by Robert Millan.
82195
82196 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82197
82198         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82199         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82200         no longer needed.
82201         * lib/quotearg.c (quotearg_n_options): Use it.
82202         * lib/group-member.c: Include <stdbool.h>.
82203         (free_group_info): Arg is now const *; don't free arg.
82204         (get_group_info): Now returns bool and accepts struct group_info *,
82205         rather than returning a malloc'ed struct group_info *.
82206         All uses changed.  Check for overflow in internal size calculation.
82207
82208         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82209         rather than xmalloc/xrealloc.
82210         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82211         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82212         conformance bug: the old code used a pointer after freeing the
82213         storage that it addressed.
82214         * lib/hash.c (hash_initialize): Simplify the code by using
82215         xalloc_oversized rather than doing it by hand.
82216         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82217         the buffer preserved.  Use free and xmalloc instead.
82218         * lib/quotearg.c (quotearg_n_options): Likewise.
82219         Use a simpler test for size overflow.  Don't use xalloc_oversized
82220         because unsigned int might be wider than size_t (!); this suggests
82221         that we should switch from unsigned int to size_t for slot numbers.
82222
82223 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82224
82225         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82226         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82227         NetBSD kernels.  Requested by Richard Stallman.
82228
82229 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82230
82231         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82232         to allocate the returned structure.  Do not allocate a subarray,
82233         as x2nrealloc will do that.
82234         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82235         instead of xnrealloc.
82236         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82237
82238 2003-10-27  Bruno Haible  <bruno@clisp.org>
82239
82240         * lib/stdbool_.h: Better support for BeOS.
82241
82242 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82243
82244         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82245         now uses inline.
82246
82247 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82248
82249         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82250         callers that want to do their own size-overflow checking.  Include
82251         <stdbool.h>, since xalloc_oversized returns bool.
82252         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82253         to use xalloc_oversized.
82254
82255         Add two functions x2realloc, x2nrealloc, for programs that grow
82256         arrays dynamically by doubling their sizes.
82257         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82258         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82259         New functions.
82260
82261         Port to C99 semantics for 'inline' of external functions.
82262         Bug reported by Bruno Haible.
82263         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82264         with the old contents of xnmalloc.
82265         (xnmalloc, xmalloc): Use it.
82266         (xnrealloc_inline): New static inline function,
82267         with the old contents of xnrealloc.
82268         (xnrealloc, xrealloc): Use it.
82269
82270         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82271         that.
82272
82273 2003-10-26  Karl Berry  <karl@gnu.org>
82274
82275         * config/srclist.txt (COPYING.DOC): no longer available from
82276         /gd/gnuorg; don't know where the ultimate source is.
82277
82278 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82279
82280         Fix several address-calculation bugs in the hash modules,
82281         plus some minor code cleanup.
82282
82283         * lib/hash.h: Include <stdbool.h>, for bool.
82284         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82285         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82286         hash_get_n_entries, hash_get_max_bucket_length,
82287         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82288         hash_rehash): Use size_t rather than unsigned.
82289         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82290         hash_get_n_buckets_used, hash_get_n_entries,
82291         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82292         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82293         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82294         Likewise.
82295         (SIZE_MAX): Define if not defined.
82296         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82297         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82298         hash_print):
82299         Use const * when possible.
82300         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82301         (check_tuning): Fix bug: if tuning parameters were very close to
82302         0 or 1, rounding errors could have caused subscript violations.
82303         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82304         (hash_initialize): Add 'fail:' label
82305         to free table and return NULL, and use it to simplify code.
82306         Use calloc rather than clearing the storage ourself.
82307         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82308         buffer size calculations.
82309         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82310         Include <stddef.h>, for size_t.
82311         * lib/hash-pjw.c (hash_pjw): Likewise.
82312         Switch to method described by Bruno Haible.
82313         Include <limits.h>, for CHAR_BIT.
82314         (SIZE_BITS): New macro.
82315
82316 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82317
82318         * m4/getline.m4 (AM_FUNC_GETLINE):
82319         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82320         hosts.  Problem reported by Derek Robert Price in
82321         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82322         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82323         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82324
82325 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82326
82327         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82328         ceiling the allocation at NMAX bytes rather than silently
82329         discarding input bytes before NMAX is reached.  This makes
82330         a difference only if NMAX exceeds SIZE_MAX / 2.
82331
82332         * lib/obstack.c: Merge from glibc.
82333         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82334         Add libc_hidden_def (_obstack_newchunk).
82335         (_obstack_free) [! defined _LIBC]: Remove.
82336         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82337         a clone of the function body.
82338         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82339         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82340
82341         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82342         glibc.
82343         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82344         arg to memcpy.
82345
82346         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82347         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82348         Don't use lvalue casts, as GCC plans to remove support for them
82349         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82350         was also present in the non-GCC version, indicating that this
82351         code had always been buggy and had never been widely used.
82352         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82353         Use the fast variant of each macro, rather than copying the
82354         definiens of the fast variant; that way, we'll be more likely to
82355         catch future bugs in the fast variants.
82356
82357 2003-10-20  Bruno Haible  <bruno@clisp.org>
82358
82359         * modules/wait-process: New file.
82360         * MODULES.html.sh (func_all_modules): Add wait-process.
82361
82362 2003-10-20  Bruno Haible  <bruno@clisp.org>
82363
82364         * m4/wait-process.m4: New file.
82365
82366 2003-10-20  Bruno Haible  <bruno@clisp.org>
82367
82368         * lib/wait-process.h: New file, from GNU gettext.
82369         * lib/wait-process.c: New file, from GNU gettext.
82370
82371 2003-10-19  Jim Meyering  <jim@meyering.net>
82372
82373         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82374         HPUX 10.20.
82375
82376 2003-10-18  Karl Berry  <karl@gnu.org>
82377
82378         * config/config.guess: update from config.
82379
82380 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82381
82382         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82383         (getgroups): First arg is int, not size_t.
82384         Don't let 'free' mangle errno.
82385
82386 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82387
82388         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82389
82390 2003-10-16  Karl Berry  <karl@gnu.org>
82391
82392         * config/config.{guess,sub}: update from config.
82393
82394 2003-10-16  Jim Meyering  <jim@meyering.net>
82395
82396         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82397         memcpy.
82398
82399 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82400
82401         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82402         (SIZE_MAX): Remove.
82403         (new_exclude, add_exclude_file): Initial size no longer needs to
82404         be a power of 2.
82405         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82406         our own address arithmetic overflow checking.
82407
82408         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82409         (fnmatch): Do not alloca more than 2000 wide characters;
82410         instead, use malloc for large buffers.
82411         Check for address arithmetic overflow, and return -1
82412         with errno set to ENOMEM in that case.
82413         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82414         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82415         instead, return -1.  Check for address arithmetic overflow.
82416
82417 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82418
82419         Handle invalid suffixes and overflow independently, so that
82420         callers can treat them independently as needed.  Fix some bugs in
82421         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82422         suffix for a human-readable blocksize.  The major caller-visible
82423         change is the addition of a new
82424         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82425         that both overflow and suffix chars were found.
82426
82427         * lib/human.c (humblock): Don't check separately for invalid suffix
82428         char; that is xstrtoumax's job (now that its bug is fixed).
82429         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82430         INTMAX_MAX]: New macros.
82431         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82432         TYPE_MAXIMUM): New macros.
82433         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82434         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82435         if overflow occurs, as it's what __strtol does and it's more useful
82436         in practice.
82437         (__xstrtol): If __strtol reports some error other than ERANGE,
82438         reflect it to the caller as LONGINT_INVALID.  If it reports
82439         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82440         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82441         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82442         value.
82443         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82444         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82445         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82446         [defined UINTMAX_MAX]: New macros.
82447
82448 2003-10-14  Bruno Haible  <bruno@clisp.org>
82449
82450         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82451
82452 2003-10-14  Bruno Haible  <bruno@clisp.org>
82453
82454         * m4/sig_atomic_t: New file, from GNU gettext.
82455         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82456
82457 2003-10-14  Bruno Haible  <bruno@clisp.org>
82458
82459         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82460         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82461         Also use volatile where needed.
82462
82463 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82464
82465         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82466         Change maintainer from Bruno Haible to 'all'.
82467
82468 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82469
82470         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82471
82472 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82473
82474         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82475         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82476         and define in terms of the other primitives.
82477         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82478         (SIZE_MAX): Define if not already defined.
82479         (array_size_overflow): New function.
82480         (xalloc_die): Abort instead of exiting if 'error' returns.
82481         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82482         (xmalloc, xrealloc): Use them.
82483         (xcalloc): Check for address arithmetic overflow.
82484         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82485         a bit faster than strcpy.
82486
82487 2003-10-10  Simon Josefsson  <jas@extundo.com>
82488
82489         * modules/argp (Depends-on): Add restrict and strcase.
82490
82491 2003-10-10  Simon Josefsson  <jas@extundo.com>
82492
82493         * m4/argp.m4: Add AC_C_INLINE.
82494
82495 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82496
82497         Merge getpass from libc, plus a few fixes.
82498
82499         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82500         Include <stdbool.h>.
82501         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82502         __fsetlocking to empty.
82503         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82504         do include <bits/libc-lock.h>.
82505         Do not include <fcntl.h>; not needed.
82506         [_LIBC]: Include <wchar.h>.
82507         (NOTCANCEL_MODE): New macro.
82508         (flockfile, funlockfile) [_LIBC]: New macros.
82509         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82510         [!_LIBC]: New macros.
82511         (call_fclose): New function.
82512         (getpass): Use it.  Save tty stream separately; this simplifies the
82513         code and makes it more reliable if stdin happens to equal stdout.
82514         Invoke __fsetlocking on tty.
82515         Handle thread cancellation if needed.
82516         Namespace cleanup (use __tcgetattr, __getline).
82517         Use bool for Booleans.
82518         [USE_IN_LIBIO]: Handle wide streams.
82519         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82520         stream might go where.
82521
82522         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82523         doesn't have to include <stdio.h> before us.
82524         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82525         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82526         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82527         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82528         if not declared, so that we can use getpass.c code from libc without
82529         rewriting it.
82530         (flockfile, ftrylockfile, funlockfile): New macros.
82531
82532 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82533
82534         * modules/getpass: Depend on stdbool.
82535
82536 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82537
82538         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82539
82540 2003-10-07  Karl Berry  <karl@gnu.org>
82541
82542         * config/config.{guess,sub}: update from config.
82543
82544 2003-10-06  Jim Meyering  <jim@meyering.net>
82545             Bruno Haible  <bruno@clisp.org>
82546
82547         This lets translators provide better translations for the
82548         "Written by ..." part of --version output.
82549         * lib/version-etc.h: Include stdarg.h.
82550         (version_etc_copyright): Declare as readonly.
82551         (version_etc): Make this function variadic with a NULL-terminated list
82552         of author name strings.
82553         (version_etc_va): New declaration.
82554         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82555         (version_etc_copyright): Declare as readonly.
82556         (version_etc_va): New function. Provide a different translatable string
82557         for each possible number of authors < 10. Abbreviate when there are 10
82558         authors or more.
82559         (version_etc): Make this function variadic. Call version_etc_va.
82560         Suggestion from Gary V. Vaughan.
82561
82562         * lib/long-options.h (parse_long_options): Change prototype: the
82563         authors string is moved to the end and becomes variadic.
82564         * lib/long-options.c: Include stdarg.h.
82565         (parse_long_options): Make this function variadic, too.
82566         Call version_etc_va, not version_etc.
82567
82568 2003-10-06  Bruno Haible  <bruno@clisp.org>
82569
82570         * modules/version-etc-2: Remove file.
82571         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82572
82573 2003-10-06  Bruno Haible  <bruno@clisp.org>
82574
82575         * modules/fatal-signal: New file.
82576         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82577
82578 2003-10-06  Bruno Haible  <bruno@clisp.org>
82579
82580         * m4/fatal-signal.m4: New file.
82581         * m4/signalblocking.m4: New file, from GNU gettext.
82582
82583 2003-10-06  Bruno Haible  <bruno@clisp.org>
82584
82585         * lib/version-etc-2.h: Remove file.
82586         * lib/version-etc-2.c: Remove file.
82587
82588 2003-10-06  Bruno Haible  <bruno@clisp.org>
82589
82590         * lib/fatal-signal.h: New file, from GNU gettext.
82591         * lib/fatal-signal.c: New file, from GNU gettext.
82592
82593 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82594
82595         * README: Rework advice for preventing empty .o files.
82596         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82597         not <sys/types.h>.
82598
82599 2003-10-04  Karl Berry  <karl@gnu.org>
82600
82601         * lib/argp*: update from libc.
82602
82603 2003-10-04  Karl Berry  <karl@gnu.org>
82604
82605         * config/config.{guess,sub}: update from config.
82606
82607 2003-10-02  Bruno Haible  <bruno@clisp.org>
82608
82609         * modules/lchown (Include): Add lchown.h.
82610         * modules/time_r (Include): Use "..." syntax.
82611         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82612
82613 2003-10-01  Simon Josefsson  <jas@extundo.com>
82614
82615         * MODULES.html.sh (func_all_modules): Move gethostname from section
82616         'based on' to section 'lacking' POSIX:2001.
82617
82618 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82619
82620         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82621         to output mode on the same stream.
82622
82623 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82624
82625         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82626         Fix arg typo in previous patch.
82627
82628 2003-09-28  Jim Meyering  <jim@meyering.net>
82629
82630         * lib/error.c: Correct cpp indentation.
82631
82632 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82633
82634         * modules/free: New file.
82635
82636 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82637
82638         * m4/free.m4: New file.
82639
82640 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82641
82642         * lib/minmax.h (MIN, MAX)
82643         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82644         Omit the special code that used __typeof__, since we worry that
82645         it could be more trouble than it's worth.  See:
82646         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82647         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82648
82649         * lib/free.c: New file.
82650
82651 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82652
82653         Trivial fixes to Makefile.am parts of module listings.
82654         * modules/strstr: Append strstr.h to lib_SOURCES.
82655         * modules/strcase: Likewise, for strcase.h.
82656
82657 2003-09-27  Karl Berry  <karl@gnu.org>
82658
82659         * config/mkinstalldirs: update from automake.
82660
82661 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82662
82663         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82664         (error_tail): Do not loop, reallocating temporary buffer, since
82665         the output cannot contain more wide characters than the input
82666         contains bytes, the size must be big enough already.  This avoids
82667         one potential size overflow calculation.  Check for size overflow
82668         when calculating temporary buffer size.  Free temporary buffer
82669         when done, if it was allocated with malloc; this plugs a memory
82670         leak.  Remove casts from void * to pointers, that are no longer
82671         needed now that we're assuming C89 or better.
82672
82673         Merge error changes from glibc.
82674
82675         * lib/error.c, error.h: Update copyright notice header to match glibc.
82676         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82677         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82678         Disable cancellation while printing error.
82679         * lib/error.h: Prepend __ to parameter names.
82680
82681 2003-09-26  Jim Meyering  <jim@meyering.net>
82682
82683         * lib/error.c (error_tail): Move some declarations
82684         into inner scope where the local variables are used.
82685
82686 2003-09-26  Bruno Haible  <bruno@clisp.org>
82687
82688         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82689         stpncpy().
82690         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82691
82692 2003-09-26  Bruno Haible  <bruno@clisp.org>
82693
82694         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82695         (stpncpy): Define as alias for gnu_stpncpy.
82696         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82697
82698 2003-09-25  Simon Josefsson  <jas@extundo.com>
82699
82700         * lib/xgetdomainname.h: New file.
82701         * lib/xgetdomainname.c: New file.
82702
82703 2003-09-25  Simon Josefsson  <jas@extundo.com>
82704             Bruno Haible  <bruno@clisp.org>
82705
82706         * modules/getdomainname: New file.
82707         * modules/xgetdomainname: New file.
82708         * MODULES.html.sh (func_all_modules): Add getdomainname,
82709         xgetdomainname.
82710
82711 2003-09-25  Simon Josefsson  <jas@extundo.com>
82712             Bruno Haible  <bruno@clisp.org>
82713
82714         * m4/getdomainname.m4: New file.
82715
82716 2003-09-25  Simon Josefsson  <jas@extundo.com>
82717             Bruno Haible  <bruno@clisp.org>
82718
82719         * lib/getdomainname.h: New file.
82720         * lib/getdomainname.c: New file.
82721
82722 2003-09-25  Karl Berry  <karl@gnu.org>
82723
82724         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82725
82726 2003-09-25  Karl Berry  <karl@gnu.org>
82727
82728         * config/install-sh: update from automake.
82729
82730 2003-09-25  Bruno Haible  <bruno@clisp.org>
82731
82732         * modules/version-etc-2: New file, from modules/version-etc with
82733         modifications.
82734         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82735
82736 2003-09-25  Bruno Haible  <bruno@clisp.org>
82737
82738         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82739         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82740
82741 2003-09-24  Simon Josefsson  <jas@extundo.com>
82742
82743         * modules/xgethostname: Add xgethostname.h.
82744
82745 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82746
82747         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82748         the buffer associated with the argument.  Bug reported by
82749         Simon Josefsson.
82750
82751 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82752
82753         * README: Document assumptions that 'int' is at least 32 bits
82754         wide, that integer arithmetic is 2's complement without overflow,
82755         that there are no holes in integer values, that adding sizes of
82756         two nonoverlapping objects can't overflow, and that all-bits-zero
82757         yields scalar zero.  Fix spelling and capitalization typos.
82758
82759 2003-09-19  Karl Berry  <karl@gnu.org>
82760
82761         * lib/argp.h: update from libc.
82762
82763 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82764
82765         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82766         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82767         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82768
82769 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82770
82771         * gnulib-tool: Use "test -h", not "test -L", for portability
82772         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82773         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82774         (sed_extract_prog): Issue s commands one-by-one, rather than
82775         using \| in one s command.
82776
82777 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82778
82779         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82780         input error, instead of returning NULL the next time we are called
82781         (and therefore losing track of errno).
82782
82783 2003-09-16  Bruno Haible  <bruno@clisp.org>
82784
82785         * gnulib-tool (func_create_testdir): Warn about duplicated
82786         dependencies.
82787
82788 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82789
82790         * modules/argmatch, modules/fatal, modules/obstack,
82791         modules/xalloc, modules/xgethostname: Sort dependencies by
82792         importance, not alphabetically.
82793
82794 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82795
82796         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82797         fails, so that the caller gets the proper errno.
82798
82799         * lib/readutmp.c (read_utmp): Likewise.
82800         Check for fstat error.  Close stream and free storage
82801         when failing.
82802
82803 2003-09-14  Karl Berry  <karl@gnu.org>
82804
82805         * config/srclist.txt (strdup.c): disable for c89 changes.
82806
82807 2003-09-14  Jim Meyering  <jim@meyering.net>
82808
82809         * lib/getloadavg.c: Correct cpp indentation.
82810         * lib/strdup.c: Likewise.
82811         * lib/vasnprintf.c: Likewise.
82812
82813 2003-09-14  Bruno Haible  <bruno@clisp.org>
82814
82815         * modules/fwriteerror: New file.
82816         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82817
82818 2003-09-14  Bruno Haible  <bruno@clisp.org>
82819
82820         * lib/fwriteerror.h: New file.
82821         * lib/fwriteerror.c: New file.
82822
82823 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82824
82825         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82826         modules/xgethostname, modules/xalloc: Depend on exit.
82827
82828 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82829
82830         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82831
82832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82833         and AC_MINIX, too, so that their extensions are available.
82834
82835         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82836         This macro has been superseded by gl_BACKUPFILE.
82837
82838         More patches to assume C89 or better.
82839
82840         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82841
82842         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82843         unconditionally.
82844         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82845         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82846         Include <string.h>, <stdlib.h> unconditionally.
82847         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82848         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82849         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82850         headers or for string.h.
82851         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82852         or strtoul.
82853
82854         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82855         headers.
82856         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82857         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82858         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82859         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82860         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82861         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82862         memcpy, memset.
82863         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82864         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82865         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82866         strtol.
82867         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82868         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82869         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82870         strtoul.
82871
82872 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82873
82874         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82875         * lib/obstack.c [!defined _LIBC]: Likewise.
82876         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82877         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82878         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82879
82880         More changes to assume C89 or better.
82881
82882         * lib/error.c (error_tail): Assume vprintf.
82883
82884         * lib/argmatch.c (getenv): Remove decl.
82885         * lib/progreloc.c (get_full_program_name): Define via prototype.
82886         * lib/setenv.c (clearenv): Likewise.
82887         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82888         needed.
82889         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82890         (malloc, memcpy): Remove decls.
82891         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82892         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82893         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82894         (memcpy): Remove macro.
82895         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82896         (__P): Remove.  All uses removed.
82897         (PTR): Remove.  All uses changed to void *.
82898         (CHAR_BIT, NULL): Remove.
82899         (spaces, zeros, memset_space, memset_zero)
82900         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82901         Remove.
82902         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82903         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82904         Define with prototype.
82905         Remove now-unnecessary prototype decl.
82906         (extra_args_spec): Assume ANSI C.  All uses changed.
82907         (extra_args_spec_iso): Remove.
82908         (my_strftime, emacs_strftimeu): Define via prototype.
82909         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82910         unconditionally.
82911         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82912         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82913         (strtoul, strtol): Remove decls.
82914         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82915         LONG_MAX): Remove.
82916         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82917         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82918         (LOCALE_PARAM_PROTO): New macro.
82919         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82920         (INTERNAL (strtol), strtol): Define with a prototype.
82921         (PARAMS): Remove.  All uses removed.
82922         * lib/tempname.c: Include <string.h> unconditionally.
82923         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82924         * lib/xgethostname.c (main): Define with a prototype.
82925         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82926         Include <stdlib.h> unconditionally.
82927         (calloc, malloc, realloc, free): Remove decls.
82928         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82929         Include <stdlib.h> unconditionally.  Sort include file names.
82930         (strtod): Remove.
82931         (xstrtod): Define with a prototype.
82932         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82933         (strtol, strtoul): Remove decls.
82934
82935 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82936
82937         More patches to assume C89 or better.
82938         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82939         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82940         string.h, memchr, STDC_HEADERS.
82941
82942 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82943
82944         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82945         Include <stdlib.h>, <string.h> unconditionally.
82946         Remove now-unnecessary cast to char *.
82947         * lib/strnlen.c: Include <string.h> unconditionally.
82948         * lib/yesno.c (yesno): Define with a prototype.
82949
82950 2003-09-11  Bruno Haible  <bruno@clisp.org>
82951
82952         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82953
82954 2003-09-10  Jim Meyering  <jim@meyering.net>
82955
82956         * lib/error.c: Correct indentation of cpp directives.
82957
82958 2003-09-10  Bruno Haible  <bruno@clisp.org>
82959
82960         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82961         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82962         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82963         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82964         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82965         <stdlib.h> and <string.h> checks.
82966         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82967         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82968
82969 2003-09-10  Bruno Haible  <bruno@clisp.org>
82970
82971         * lib/strcspn.c: Include <string.h> unconditionally.
82972         * lib/strpbrk.c: Include <string.h> unconditionally.
82973         * lib/strstr.c: Include <string.h> unconditionally.
82974         * lib/unicodeio.c: Include <string.h> unconditionally.
82975         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82976         * lib/unsetenv.c: Likewise.
82977         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82978         * lib/yesno.c: Include <stdlib.h> unconditionally.
82979         (rpmatch): Add prototype.
82980
82981 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82982
82983         More patches to assume C89 or better.
82984         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82985         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82986         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82987         or for string.h.
82988         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82989         stdlib.h.
82990         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82991         C headers.
82992         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82993         string.h.
82994         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82995         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82996         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82997         or for string.h.
82998         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82999         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83000         C headers.
83001         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83002         memcpy.
83003         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83004         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83005         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83006         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83007         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83008         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83009         string.h, free.
83010         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83011         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83012         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83013         C headers, or for string.h.
83014         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83015         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83016         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83017         headers, memory.h, stdlib.h, string.h, strings.h.
83018         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83019         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83020         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83021         strchr.
83022         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83023         headers, memory.h, string.h.
83024         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83025         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83026         free.
83027         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83028         headers.
83029         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83030         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83031         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83032         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83033         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83034
83035 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83036
83037         More K&R removal.
83038
83039         * lib/acosl.c (main): Use a prototype.
83040         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83041         tanl.c: Likewise.
83042
83043         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83044
83045         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83046         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83047         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83048         with a prototype.
83049         * lib/getopt.c (const): Remove macro.
83050         Include <string.h> unconditionally.
83051         (my_index): Remove; all uses changed to strchr.
83052         (strlen): Remove decl.
83053         (exchange): Remove forward decl; no longer needed.
83054         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83055         Define with prototype.
83056         * lib/getopt1.c (const): Remove macro.
83057         (getopt_long, getopt_long_only, main): Define with prototype.
83058
83059         * lib/getugroups.c: Include <string.h> unconditionally.
83060
83061         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83062         (getusershell, setusershell, endusershell, readname, main):
83063         Define with prototypes.
83064
83065         * lib/group-member.c: Include group-member.h first.
83066         Include <stdlib.h> unconditionally.
83067
83068         * lib/hard-locale.c: Include hard-locale.h first.
83069         Include <stdlib.h>, <string.h> unconditionally.
83070
83071         * lib/hash.c (free, malloc): Remove decls.
83072         Include <stdlib.h> unconditionally.
83073
83074         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83075         (getenv): Do not declare.
83076
83077         * lib/idcache.c: Include <string.h> unconditionally.
83078
83079         * lib/long-options.c: Include long-options.h first, to test interface.
83080         Include <stdlib.h> unconditionally.
83081
83082         * lib/makepath.c: Include makepath.h first, to test interface.
83083         Include <stdlib.h> and <string.h> unconditionally.
83084
83085         * lib/linebuffer.c: Include <stdlib.h>.
83086         (free): Remove decl.
83087
83088         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83089         stddef.h. rpl_malloc returns void *, not char *.
83090         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83091         prototype.
83092
83093         * lib/md5.h: Include <limits.h> unconditionally.
83094         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83095         (__P): Remove; all uses removed.
83096         * lib/md5.c: Include "md5.h" first.
83097         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83098         md5_buffer, md5_process_bytes, md5_process_block):
83099         Define with prototypes.
83100         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83101         * lib/sha.c: Include "sha.h" first.
83102         Include <stdlib.h>, <string.h> unconditionally.
83103
83104         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83105         * lib/memcmp.c (__ptr_t): Likewise.
83106         * lib/memrchr.c (__ptr_t): Likewise.
83107         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83108         Include <string.h> unconditionally.
83109         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83110         * lib/memchr.c: Include <stdlib.h> unconditionally.
83111         * lib/memchr.c (LONG_MAX): Remove.
83112         * lib/memrchr.c (LONG_MAX): Likewise.
83113         * lib/memchr.c (__memchr): Define via a prototype.
83114         * lib/memrchr.c (__memrchr): Likewise.
83115         * lib/memcmp.c (__P): Remove, and remove all uses.
83116         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83117         Remove forward decls; no longer needed.
83118         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83119         Use types required by C89 in prototype.
83120
83121         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83122         * lib/savedir.c: Likewise.
83123         * lib/mkdir.c (free): Remove decl.
83124         * lib/rmdir.c (rmdir): Define with a prototype.
83125         * lib/savedir.c: Include savedir.h first, to test interface.
83126
83127         * lib/mktime.c (STDC_HEADERS): Remove.
83128         Include <stdlib.h>, <string.h> unconditionally.
83129
83130         * lib/modechange.c: Include <stdlib.h> unconditionally.
83131         (malloc): Remove decl.
83132
83133         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83134         (free): Remove decl.
83135
83136         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83137         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83138         (This type really should be intptr_t, but that's a C99ism.)
83139         (_obstack_memcpy): Remove: all uses changed to memcpy.
83140         Include <string.h> unconditionally.
83141         (struct obstack): Assume __STDC__ for types of members
83142         chunkfun, freefun, extra_arg.
83143         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83144         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83145         obstack_begin, obstack_specify_allocation,
83146         obstack_specify_allocation_with_arg, obstack_chunkfun,
83147         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83148         Remove unprototyped decls and the macros that use them.
83149         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83150         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83151         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83152         (defined __STDC__ && __STDC__)]:
83153         Remove nonprototyped code.
83154         Include <stdlib.h> unconditionally.
83155         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83156         _obstack_allocated_p, _obstack_free, obstack_free,
83157         _obstack_memory_used, print_and_abort):
83158         Define using prototypes.
83159         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83160         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83161         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83162         obstack_next_free, obstack_object_size, obstack_room) [0]:
83163         Remove unused, unprototyped code.
83164
83165         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83166
83167         * lib/physmem.c (physmem_total, physmem_available, main): Define
83168         with prototypes.
83169
83170         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83171         (main): Define with a prototype.
83172
83173         * lib/posixver.c (getenv): Remove decl.
83174
83175         * lib/putenv.c (malloc): Returns void *, not char *.
83176         Include <string.h> unconditionally.
83177         (strchr, memcpy, NULL): Do not define.
83178
83179         * lib/readtokens.c: Include readtokens.h first, to test interface.
83180         Include <stdlib.h>, <string.h> unconditionally.
83181         (init_tokenbuffer): Define with a prototype.
83182
83183         * lib/regex.c (PARAMS): Remove.  All uses removed.
83184         All uses of _RE_ARGS removed, too.
83185         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83186         unconditionally.
83187         (bzero): Assume memset exists.
83188         (memcmp, memcpy, NULL): Remove.
83189         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83190         char, or assignments to local vars of type signed char.
83191         (init_syntax_once, PREFIX(extract_number_and_incr),
83192         PREFIX(print_partial_compiled_pattern),
83193         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83194         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83195         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83196         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83197         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83198         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83199         wcs_compile_range, byte_compile_range, truncate_wchar,
83200         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83201         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83202         count_mbs_length, wcs_re_match_2_internal,
83203         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83204         PREFIX(alt_match_null_string_p),
83205         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83206         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83207         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83208         now-unnecessary declaration, if any.
83209         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83210         regcomp, regexec):
83211         Remove now-unnecessary casts among pointer types.
83212         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83213
83214         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83215         (free): Remove decl.
83216
83217         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83218
83219         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83220         (free): Remove decl.
83221
83222         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83223         * lib/xgetcwd.c: Likewise.
83224
83225         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83226         (free): Remove decl.
83227
83228         * lib/strchrnul.c (strchrnul): Define with a prototype.
83229         Fix bug: c_in was not converted to char before searching.
83230
83231         The following changes are not K&R related:
83232
83233         * lib/group-member.h: Include <sys/types.h>, so that this file is
83234         self-contained.
83235         * lib/makepath.h: Likewise.
83236
83237         * lib/getusershell.c (readname, default_index, line_size, readname):
83238         Use size_t, not int, for sizes.
83239         (readname): If the size overflows, report an error instead of
83240         looping forever.
83241
83242 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83243
83244         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83245         libc.
83246
83247 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83248
83249         * README: New section: portability guidelines.
83250
83251 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83252
83253         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83254         C89 spec.
83255
83256 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83257
83258         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83259
83260 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83261
83262         Assume C89 or better; remove K&R cruft.
83263         A few of these changes were first proposed by Derek Robert Price
83264         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83265
83266         * lib/addext.c: Include <string.h> unconditionally.
83267         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83268         Don't declare getenv or malloc.
83269
83270         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83271         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83272         (NULL): Remove.
83273         (find_stack_direction, alloca): Use prototypes.
83274
83275         * lib/atexit.c (atexit): Define using a prototype.
83276
83277         * lib/basename.c, dirname.c, stripslash.c:
83278         Include <string.h> unconditionally.
83279
83280         * lib/bcopy.c: Include <stddef.h>.
83281         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83282
83283         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83284
83285         * lib/error.h (error, error_at_line, error_print_progname)
83286         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83287         * lib/error.c: Include error.h first, to check interface.
83288         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83289         (VA_START): Remove; all uses changeed to va_start.
83290         (exit, strerror): Remove decls.
83291         (error_print_progname): Prototype uncondionally.
83292         Don't include <errno.h>; no longer needed.
83293         (private_strerror): Remove.
83294         (error_tail): Always define.
83295         (error, error_at_line): Assume C89 or better; always use prototypes.
83296         * lib/fatal.c: Include "fatal.h" first, to test interface.
83297         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83298         (VA_START): Remove; all uses changed to va_start.
83299         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83300         this case.
83301         (exit): Remove decl.
83302         (fatal): Prototype unconditionally.  Assume va_start works.
83303         Abort at end, to pacify gcc.
83304
83305         * lib/euidaccess.c (main): Define with a prototype.
83306
83307         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83308
83309         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83310
83311         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83312         prototypes.
83313         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83314         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83315         (getenv): Remove decl.
83316         (fnmatch): Define using a prototype.
83317         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83318         (FCT): Define using a prototype.
83319
83320         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83321
83322         * lib/gethostname.c: Include <stddef.h>.
83323         (gethostname): Define with prototype.  Length is size_t, not int.
83324
83325 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83326
83327         Assume C89 or better; remove K&R cruft.
83328         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83329         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83330         string.h, getenv, malloc.
83331         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83332         headers.
83333         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83334         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83335         do not check for strerror.
83336         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83337         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83338         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83339         do not check for doprnt or vprintf.
83340         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83341         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83342
83343 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83344
83345         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83346         getversion.c should have been removed then, but was accidentally
83347         preserved.
83348
83349         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83350         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83351
83352 2003-09-08  Karl Berry  <karl@gnu.org>
83353
83354         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83355                 config, forget about prep.
83356
83357         * config/depcomp, missing: update from automake.
83358
83359 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83360
83361         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83362         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83363
83364 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83365
83366         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83367         copy_tm_result.  Bug reported by Simon Josefsson in
83368         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83369
83370 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83371
83372         * m4/time_r.m4: New file.
83373         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83374         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83375         is. Check for timegm declaration.
83376         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83377         Do not check for gmtime_r.
83378         Replace mktime if __mktime_internal does not exist and if mktime
83379         hasn't been replaced already.
83380
83381 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83382
83383         * lib/time_r.c, lib/time_r.h: New files.
83384
83385         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83386         __localtime_r.
83387         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83388         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83389
83390         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83391         __gmtime_r.
83392         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83393         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83394         Include <time_r.h>.
83395
83396         * lib/timegm.c: Switch to glibc implementation, with the following
83397         changes:
83398         [defined HAVE_CONFIG_H]: Include <config.h>.
83399         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83400         (__mktime_internal) [!defined _LIBC]: New decl.
83401         (__gmtime_r) [!defined _LIBC]: New macro and function.
83402         (timegm): Use a prototype, since gnulib assumes C89.
83403         Do not bother declaring tmp to be const, as it's not really usefu.
83404         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83405         (timegm): Declare only if HAVE_DECL_TIMEGM.
83406
83407 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83408
83409         * MODULES.html.sh (func_all_modules): Add time_r.
83410         * modules/time_r: New file.
83411         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83412         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83413
83414 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83415
83416         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83417         Bug reported by Lute Kamstra in
83418         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83419
83420         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83421         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83422         course with correspondingly smaller numbers for tomorrow and
83423         yesterday.  From Tadayoshi Funaba.  Originally installed into
83424         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83425         coreutils merge?).
83426
83427 2003-08-31  Simon Josefsson  <jas@extundo.com>
83428
83429         * modules/timegm: New file.
83430         * MODULES.html.sh (func_all_modules): Add timegm.
83431
83432 2003-08-31  Simon Josefsson  <jas@extundo.com>
83433
83434         * m4/timegm.m4: New file.
83435
83436 2003-08-31  Simon Josefsson  <jas@extundo.com>
83437
83438         * lib/timegm.h: New file.
83439         * lib/timegm.c: New file.  Based on
83440         wget-1.8.2/src/http.c:mktime_from_utc.
83441
83442 2003-08-31  Karl Berry  <karl@gnu.org>
83443
83444         * lib/argp.h: update from libc.
83445
83446 2003-08-28  Bruno Haible  <bruno@clisp.org>
83447
83448         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83449         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83450         followed by '#define fnmatch fnmatch_posix' gives an error.
83451
83452 2003-08-28  Bruno Haible  <bruno@clisp.org>
83453
83454         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83455         warning on QNX, which defines O_BINARY to 000000.
83456
83457 2003-08-27  Jim Meyering  <jim@meyering.net>
83458
83459         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83460         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83461         would fail after 32.  Reported by Danny Levinson.  Details here:
83462         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83463
83464 2003-08-24  Bruno Haible  <bruno@clisp.org>
83465
83466         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83467         MSVC7 <stdio.h> is included later.
83468
83469 2003-08-22  Simon Josefsson  <jas@extundo.com>
83470
83471         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83472
83473 2003-08-20  Karl Berry  <karl@gnu.org>
83474
83475         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83476
83477 2003-08-20  Bruno Haible  <bruno@clisp.org>
83478
83479         * modules/progname: New file.
83480         * MODULES.html.sh (func_all_modules): Add progname.
83481
83482 2003-08-20  Bruno Haible  <bruno@clisp.org>
83483
83484         * lib/progname.h: New file, from GNU gettext.
83485         * lib/progname.c: New file, from GNU gettext.
83486         * lib/progreloc.c: New file, from GNU gettext.
83487
83488 2003-08-19  Jim Meyering  <jim@meyering.net>
83489
83490         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83491         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83492
83493 2003-08-19  Bruno Haible  <bruno@clisp.org>
83494
83495         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83496         more.
83497
83498 2003-08-19  Bruno Haible  <bruno@clisp.org>
83499
83500         * lib/xstrdup.c: Assume <string.h> exists.
83501
83502 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83503
83504         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83505         in makefile rules.
83506
83507 2003-08-18  Jim Meyering  <jim@meyering.net>
83508
83509         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83510         * m4/lib-ld.m4: Likewise.
83511
83512 2003-08-18  Jim Meyering  <jim@meyering.net>
83513
83514         * lib/setenv.h: Indent nested cpp directive.
83515         * lib/vasnprintf.c: Remove trailing blanks.
83516
83517 2003-08-17  Simon Josefsson  <jas@extundo.com>
83518
83519         * modules/xstrndup: New file.
83520         * MODULES.html.sh (func_all_modules): Add xstrndup.
83521
83522 2003-08-17  Simon Josefsson  <jas@extundo.com>
83523
83524         * modules/argp: Fix autoconf macro name. Add more dependencies.
83525
83526 2003-08-17  Simon Josefsson  <jas@extundo.com>
83527
83528         * m4/xstrndup.m4: New file.
83529
83530 2003-08-17  Simon Josefsson  <jas@extundo.com>
83531
83532         * m4/argp.m4: New file.
83533
83534 2003-08-17  Simon Josefsson  <jas@extundo.com>
83535             Bruno Haible  <bruno@clisp.org>
83536
83537         * lib/xstrndup.h: New file.
83538         * lib/xstrndup.c: New file.
83539
83540 2003-08-17  Bruno Haible  <bruno@clisp.org>
83541
83542         * modules/strndup (Files, Include): Add lib/strndup.h.
83543
83544 2003-08-17  Bruno Haible  <bruno@clisp.org>
83545
83546         * modules/euidaccess (Files): Add lib/euidaccess.h.
83547
83548 2003-08-17  Bruno Haible  <bruno@clisp.org>
83549
83550         * lib/strndup.h: New file.
83551
83552 2003-08-17  Bruno Haible  <bruno@clisp.org>
83553
83554         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83555         like AC_GNU_SOURCE.
83556         * modules/extensions (configure.ac): Comment out the invocation of
83557         gl_USE_SYSTEM_EXTENSIONS.
83558
83559 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83560
83561         Merges from coreutils, etc.
83562         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83563         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83564         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83565         fixing a typo.
83566         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83567         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83568
83569 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83570
83571         Document merge from coreutils.
83572         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83573         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83574         * modules/utime: Add m4/utimes-null.m4.
83575
83576 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83577
83578         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83579         space, undoing this 2003-08-12 change:
83580         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83581
83582 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83583
83584         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83585         strtoul.c from libc, undoing this 2003-08-12 change:
83586         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83587
83588 2003-08-16  Jim Meyering  <jim@meyering.net>
83589
83590         Merges from coreutils.
83591         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83592         prefix.  Adjust cache variables similarly.  Create 500 rather than
83593         just 300 files, to exercise bug on Darwin6.5, too.
83594         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83595         $missing_dir.
83596         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83597         AM_SYS_POSIX_TERMIOS.
83598         Reported by mkc@mathdogs.com.
83599         Also change use of $am_cv_sys_posix_termios
83600         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83601         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83602         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83603         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83604         in /proc/mounts until it finds one with matching device number.  This
83605         is unnecessary when the FILE argument *is* a mount point.  No stat call
83606         is necessary in that case.  So, disable the statvfs-testing code on
83607         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83608         as RedHat bug# 84846.
83609         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83610         to 1MB, so as not to render systems with no stack size limit (e.g.,
83611         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83612         Include <unistd.h>.  On some systems,
83613         it is required for the definition of _SC_PAGESIZE.
83614
83615 2003-08-16  Jim Meyering  <jim@meyering.net>
83616
83617         Merge from coreutils.
83618         * lib/xstrtoimax.c: #else #if -> #elif.
83619         * lib/xstrtoumax.c: Likewise.
83620
83621 2003-08-16  Jim Meyering  <jim@meyering.net>
83622
83623         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83624         * m4/utimes.m4: Removed.
83625         * m4/utimes-null.m4: Renamed from utimes.m4.
83626
83627         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83628         to 1MB, so as not to render systems with no stack size limit (e.g.,
83629         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83630         Include <unistd.h>.  On some systems,
83631         it is required for the definition of _SC_PAGESIZE.
83632
83633 2003-08-16  Jim Meyering  <jim@meyering.net>
83634         and Paul Eggert  <eggert@cs.ucla.edu>
83635
83636         Merges from coreutils, etc.
83637
83638         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83639         using the latest version from cvs.  This avoids problems with #line
83640         directives using a vendor (Sun) compiler.
83641         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83642         Don't set GETGROUPS_LIB here; now it's
83643         done via getgroups.m4's wrapper function.
83644         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83645         rather than just in sh-util/configure.in, so that the
83646         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83647         same.
83648         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83649         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83650         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83651         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83652         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83653         Remove code that is now done by the newly-required macros.
83654         Append $(EXEEXT) to DF_PROG.
83655         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83656         Do not invoke or require the following here,
83657         since prereq.m4 or some gnulib .m4 now does this for us:
83658         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83659         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83660         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83661         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83662         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83663         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83664         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83665         AC_FUNC_OBSTACK.
83666         Do not replace the following functions, as this is now the job
83667         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83668         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83669         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83670         atexit getpass, strdup, getpagesize.
83671         Replace 'raise'.
83672         Do not check for the following functions, as this is now the job
83673         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83674         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83675         setregid.
83676         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83677         Check for sys/sysctl.h.
83678         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83679         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83680         of checking for ssize_t ourselves.
83681
83682         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83683         Require every macro that gnulib/modules/* suggests for us.
83684         (jm_PREREQ_ADDEXT): New macro.
83685         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83686         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83687
83688         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83689         (gl_PHYSMEM): Use it.
83690         Also check for `table' function.
83691         Check for new headers and functions.
83692         Add check for sys/sysmp.h.
83693         With suggestions from Kaveh Ghazi.
83694         Ignore headers that are present but cannot be compiled.  This
83695         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83696         C 5.4.
83697
83698 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83699
83700         Document merge from coreutils.
83701         * modules/userspec: Depend on posixver.
83702         * modules/strftime: Depend on tzset.
83703
83704 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83705
83706         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83707         rather than tab, after '#' in shell-script copyright notices.
83708         Suggested by Bruno Haible.
83709
83710 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83711
83712         * config/srclist-update: Use three spaces, rather than tab, after '#'
83713         in shell-script copyright notices.  Suggested by Bruno Haible.
83714         Remove unnecessary parenthesization in regular expression.
83715
83716 2003-08-15  Jim Meyering  <jim@meyering.net>
83717
83718         Merge from coreutils.
83719         * lib/xgethostname.c: Include <stdlib.h>.
83720         (xghostname): Don't exit for anything other than memory-related
83721         failure; just return NULL.
83722         * lib/userspec.c: Include "posixver.h".
83723         (parse_user_spec): Accept `.' as a separator only
83724         in pre-POSIX-200112 mode.
83725         * lib/strtoimax.c: Use #elif rather than #else #if.
83726         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83727         Remove function, now that we can rely on a working tzset function.
83728         [!_LIBC]: Ensure that the required autoconf test has been run.
83729         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83730         Use underlying_strftime for %r.
83731         * lib/sha.c: Merge in some clean-up and optimization changes from
83732         glibc.
83733         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83734         Ensure that it is a multiple of 64.
83735         Rearrange loop exit tests so as to avoid performing an
83736         additional fread after encountering an error or EOF.
83737         * lib/realloc.c: Update copyright date.
83738
83739 2003-08-15  Jim Meyering  <jim@meyering.net>
83740         and Paul Eggert  <eggert@twinsun.com>
83741
83742         Merge from coreutils.
83743         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83744         member but strut utmpx does not.  Needed for AIX 4.3.3.
83745         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83746
83747 2003-08-15  Jim Meyering  <jim@meyering.net>
83748         and Paul Eggert  <eggert@cs.ucla.edu>
83749
83750         Merges from coreutils, etc.
83751         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83752         Require gl_FUNC_TZSET_CLOBBER.
83753         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83754         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83755         members.
83756
83757 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83758
83759         Help the merge from coreutils.
83760         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83761         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83762         * m4/tzset.m4: Use it too.
83763
83764 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83765
83766         * modules/tzset: New file.
83767
83768 2003-08-14  Jim Meyering  <jim@meyering.net>
83769
83770         Merges from coreutils.
83771         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83772         variable names, rather than @FNMATCH_H@.
83773         * modules/alloca: Likewise for $(ALLOCA_H).
83774
83775         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83776         the three copies of the literal target, `fnmatch.h'.
83777         * modules/alloca (alloca.h): Likewise.
83778
83779 2003-08-14  Jim Meyering  <jim@meyering.net>
83780
83781         Merge from coreutils.
83782         * m4/tzset.m4: New file.
83783         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83784         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83785         otherwise, AIX 5.1 systems would end up using the latter.
83786         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83787         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83788         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83789         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83790
83791 2003-08-14  Jim Meyering  <jim@meyering.net>
83792
83793         Merge from coreutils.
83794         * lib/obstack.h: Whitespace changes.
83795         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83796         and xcalloc return values.
83797         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83798         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83799         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83800         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83801         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83802         error from mntctl.
83803         Use mntctl's return value to drive the entry-processing loop, since
83804         we can't rely on the value of the vmt_length member in the last
83805         entry.  On some systems doing so could result in exhausting
83806         virtual memory.  Based in part on a patch from Mike Jetzer.
83807
83808 2003-08-14  Jim Meyering  <jim@meyering.net>
83809         and Paul Eggert  <eggert@twinsun.com>
83810
83811         Merges from coreutils, plus other fixes.
83812         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83813         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83814         for credits and details.  Thanks to Kaveh Ghazi for helping
83815         to keep these files in sync.
83816         (ARRAY_SIZE): Define it.
83817         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83818         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83819         (memcasecmp): Don't assume size_t fits in unsigned int.
83820         Remove casts and duplicate code.
83821         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83822         (memcpy): Remove definition.
83823         Merge in some clean-up and optimization changes from glibc.
83824         [BLOCKSIZE]: Move definition to top of file.
83825         Ensure that it is a multiple of 64.
83826         Rearrange loop exit tests so as to avoid performing an
83827         additional fread after encountering an error or EOF.
83828         * lib/md5.h (md5_uintptr): Define.
83829         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83830         return to the initial working directory.  Preserve errno
83831         for caller.
83832         * lib/idcache.c: Include "xalloc.h".
83833         (xmalloc, xrealloc): Remove decls.
83834         (getuser): Remove casts no longer required in C89.
83835         * lib/human.c: Include stdio.h, for sprintf.
83836         * lib/group-member.c: Include "xalloc.h".
83837         (xmalloc, xrealloc): Remove decls.
83838         (get_group_info): Remove casts no longer required in C89.
83839         * lib/getusershell.c (readname): Remove casts no longer required in
83840         C89.
83841         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83842         * lib/getline.c: Whitespace fix, from coreutils.
83843
83844 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83845
83846         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83847         Check for isascii.
83848
83849         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83850         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83851         Undo previous (whitespace-only) change.
83852
83853 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83854
83855         * lib/exclude.c: Include <ctype.h>
83856         (IN_CTYPE_DOMAIN): New macro.
83857         (is_space): New fn.
83858         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83859         and empty lines.
83860
83861         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83862         Undo previous (whitespace-only) change.
83863
83864 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83865
83866         * config/srclist-update: Change update back to the old behavior,
83867         leaving whitespace alone.  Use one 'sed' command rather than a
83868         pipeline.
83869         (fixlicense): Now a variable, not a function.
83870         (remove_trailing_blanks): Remove.
83871         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83872         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83873         Undo previous (whitespace-only) change.
83874
83875 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83876
83877         Merge from coreutils.
83878         * modules/euidaccess: Add lib_SOURCES, include for new
83879         file euidaccess.h
83880
83881 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83882
83883         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83884         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83885         Normalize leading white space and remove trailing white space.
83886
83887         Merge from coreutils
83888         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83889
83890         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83891         0.12.1.  These files are now being upgraded automatically by
83892         ../config/srclist-update.
83893
83894 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83895
83896         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83897         Normalize leading white space and remove trailing white space.
83898         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83899         notice, as per ../config/srclist-update.
83900
83901         Merge from coreutils.
83902         * lib/euidaccess.h: New file.
83903         * lib/euidaccess.c: Include it.
83904         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83905         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83906         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83907
83908 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83909
83910         * config/srclist-update: Add copyright notice.
83911         (remove_id_lines, remove_trailing_blanks): New constants.
83912         (fixfile): Use them to normalize spacing a bit in copied files.
83913         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83914         Normalize leading white space and remove trailing white space.
83915
83916         * config/texinfo.tex: Sync with texinfo.
83917
83918         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83919         strtoul.c from libc, to merge coreutils whitespace changes.
83920
83921         * config/srclist.txt: Get the following m4 files from gettext:
83922         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83923         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83924         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83925         wint_t.m4.
83926
83927 2003-08-12  Karl Berry  <karl@gnu.org>
83928
83929         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83930         been made.
83931
83932 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83933
83934         * modules/gnu-source, m4/gnu-source.m4:
83935         Remove; we're assuming Autoconf 2.54 or later now.
83936         Suggested by Bruno Haible.
83937         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83938
83939 2003-08-11  Bruno Haible  <bruno@clisp.org>
83940
83941         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83942
83943 2003-08-11  Bruno Haible  <bruno@clisp.org>
83944
83945         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83946         (vasnprintf): Use it instead of wcslen.
83947
83948 2003-08-11  Bruno Haible  <bruno@clisp.org>
83949
83950         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83951         value to ensure that _Bool promotes to int. Use #define for _Bool when
83952         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83953
83954 2003-08-10  Karl Berry  <karl@gnu.org>
83955
83956         * lib/regex.h: update from libc (whitespace fix).
83957
83958 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83959
83960         Merge some files from coreutils.  These changes were
83961         originally made by Jim Meyering.
83962         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83963         many older Unixes require this.
83964         * lib/alloca.c (alloca): Remove cast to argument of free;
83965         no longer needed in C89.
83966         * lib/alloca_.h, regex.h: Fix white space to match
83967         what GNU indent does.
83968
83969 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83970
83971         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83972         apparently Emacs's Unicode mode got confused before my 2003-08-05
83973         checkin.
83974
83975 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83976
83977         * m4/extensions.m4: New file.
83978         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83979         Require gl_USE_SYSTEM_EXTENSIONS.
83980         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83981         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83982
83983 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83984
83985         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83986         * modules/extensions, modules/gnu-source: New files.
83987         * modules/timespec, modules/unlocked-io: Depend on extensions.
83988
83989 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83990
83991         * modules/restrict: New file.
83992         * MODULES.html.sh (func_all_modules): Add restrict.
83993         * modules/regex: Depend on restrict.
83994
83995 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83996
83997         * m4/restrict.m4: New file.
83998         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83999
84000 2003-08-07  Bruno Haible  <bruno@clisp.org>
84001
84002         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84003         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84004
84005 2003-08-07  Bruno Haible  <bruno@clisp.org>
84006
84007         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84008         makes the module 'getndelim2' compatible with the module 'getline'.
84009
84010 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84011
84012         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84013         byte with "\201" to avoid glitches when editing that source file
84014         with multi-gnome-terminal.
84015
84016 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84017
84018         * lib/bumpalloc.h: Remove.
84019
84020 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84021
84022         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84023         * modules/bumpalloc: Remove.
84024
84025 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84026
84027         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84028         GNU coding style.
84029
84030         Merge from coreutils.
84031         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84032         1. From glibc.
84033         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84034         from Karl Berry, implemented by Jim Meyering.
84035         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84036         from Dmitry V. Levin.
84037         Remove anachronistic cast of xrealloc.
84038         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84039         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84040         type. Otherwise, it wouldn't compile with at least /bin/cc on
84041         ymp-cray-unicos9.0.2.X.
84042         Combine two mostly-identical uses of alloca into one.
84043         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84044
84045 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84046
84047         [From Emacs.]
84048
84049         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84050         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84051         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84052         obsolete NLIST_NAME_UNION.
84053         [__GNU__]: Undef BSD and FSCALE.
84054         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84055
84056 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84057
84058         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84059         an enum type, so that it's guaranteed to promote to int.  See:
84060         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84061
84062 2003-08-03  Karl Berry  <karl@gnu.org>
84063
84064         * config/depcomp: update from automake.
84065
84066 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84067
84068         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84069         (strerror): Don't assume that a printable int fits in 14 bytes.
84070
84071 2003-07-31  Bruno Haible  <bruno@clisp.org>
84072
84073         * modules/getpass-gnu: New file.
84074         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84075
84076 2003-07-31  Bruno Haible  <bruno@clisp.org>
84077
84078         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84079
84080 2003-07-24  Karl Berry  <karl@gnu.org>
84081
84082         * config/missing: update from automake.
84083
84084 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84085             Bruno Haible  <bruno@clisp.org>
84086
84087         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84088         * lib/getline.c (getline, getdelim): Likewise.
84089         Remove _GNU_SOURCE define; now it's defined in config.h through
84090         m4/getline.m4.
84091
84092 2003-07-23  Karl Berry  <karl@gnu.org>
84093
84094         * config/config.sub: update from prep.
84095
84096 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84097
84098         * modules/xalloc (Depends-on): Add exitfail.
84099         * modules/xmemcoll: Likewise.
84100
84101 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84102
84103         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84104         over-parenthesization in macros.
84105
84106         Sync with coreutils.
84107
84108         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84109         required by C99.
84110
84111         Use `exit_failure' for xalloc and xmemcoll instead of their own
84112         private exit-failure variables.
84113         * lib/xalloc.h (xalloc_exit_failure): Remove.
84114         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84115         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84116         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84117         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84118         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84119
84120 2003-07-20  Jim Meyering  <jim@meyering.net>
84121
84122         * modules/closeout (Depends-on): Add exitfail.
84123         Suggestion from Bruno Haible.
84124
84125 2003-07-19  Karl Berry  <karl@gnu.org>
84126
84127         * config/config.sub: update from prep.
84128
84129 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84130
84131         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84132         Remove.
84133         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84134         to test that it can stand by itself.  Include "exitfail.h".
84135         Clients should set exit_failure instead.
84136         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84137
84138 2003-07-18  Bruno Haible  <bruno@clisp.org>
84139
84140         * modules/getndelim2: New file.
84141         * modules/getline: Share files with module getndelim2.
84142         * modules/getnline: Depend on getndelim2 instead of sharing files with
84143         it. Add getnline.c to lib_SOURCES.
84144         * MODULES.html.sh (func_all_modules): Add getndelim2.
84145
84146 2003-07-18  Bruno Haible  <bruno@clisp.org>
84147
84148         * m4/getndelim2.m4: New file.
84149         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84150         invoke gl_PREREQ_GETNDELIM2.
84151         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84152         gl_PREREQ_GETNDELIM2.
84153         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84154         gl_GETNDELIM2.
84155
84156 2003-07-18  Bruno Haible  <bruno@clisp.org>
84157
84158         * lib/getndelim2.h: New file.
84159         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84160         getndelim2.h.
84161         (getndelim2): Make non-static. Change return type to ssize_t.
84162         * lib/getline.h: Change argument names.
84163         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84164         * lib/getnline.c: Include getndelim2.h.
84165
84166 2003-07-18  Andreas Schwab  <schwab@suse.de>
84167
84168         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84169
84170 2003-07-17  Karl Berry  <karl@gnu.org>
84171
84172         * config/config.sub: update from prep.
84173
84174 2003-07-17  Bruno Haible  <bruno@clisp.org>
84175
84176         * modules/getnline: New file.
84177         * modules/getline: Add lib/getndelim2.c to source file list.
84178         * MODULES.html.sh (func_all_modules): Add getnline.
84179
84180 2003-07-17  Bruno Haible  <bruno@clisp.org>
84181
84182         * m4/getnline.m4: New file.
84183
84184 2003-07-17  Bruno Haible  <bruno@clisp.org>
84185
84186         * m4/Makefile.am.in: Remove file.
84187         * m4/Makefile.am: Remove file.
84188         * m4/Makefile.in: Remove file.
84189
84190 2003-07-17  Bruno Haible  <bruno@clisp.org>
84191
84192         * lib/getnline.h: New file.
84193         * lib/getnline.c: New file.
84194         * lib/getndelim2.c: New file, extracted from getline.c.
84195         (getndelim2): Renamed from getdelim2, with added nmax argument.
84196         * lib/getline.c: Include getndelim2.c.
84197         (getdelim2): Moved out to getndelim2.c.
84198         (getline, getdelim): Update.
84199
84200 2003-07-17  Bruno Haible  <bruno@clisp.org>
84201
84202         * lib/Makefile.am: Remove file.
84203         * lib/Makefile.in: Remove file.
84204
84205 2003-07-17  Bruno Haible  <bruno@clisp.org>
84206
84207         * configure.in: Remove file.
84208         * Makefile.in: Remove file.
84209
84210 2003-07-17  Bruno Haible  <bruno@clisp.org>
84211
84212         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84213
84214 2003-07-16  Karl Berry  <karl@gnu.org>
84215
84216         * config/srclist-update: was running fixlicense twice, which caused
84217                 texinfo.tex to be nullified for some reason.  Simplify,
84218                 $gplsrc is no longer needed as far as I can see?
84219
84220 2003-07-16  Jim Meyering  <jim@meyering.net>
84221
84222         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84223
84224 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84225
84226         * config/srclist.txt: Get the following files from gettext-runtime/intl
84227         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84228         ref-del.sin.  From Bruno Haible.
84229         * config/srclist-update (fixfile): Change grep pattern again, since the
84230         previous fix didn't work (there was another trailing $).  Use
84231         '[$]' to escape the $s.
84232
84233 2003-07-15  Karl Berry  <karl@gnu.org>
84234
84235         * lib/vasnprintf.c: update from gettext.
84236
84237 2003-07-15  Karl Berry  <karl@gnu.org>
84238
84239         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84240         gets expanded when surrounded by '$'.
84241
84242 2003-07-15  Jim Meyering  <jim@meyering.net>
84243
84244         * modules/save-cwd: Don't depend on error.  From Derek Price.
84245
84246 2003-07-15  Jim Meyering  <jim@meyering.net>
84247
84248         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84249
84250 2003-07-14  Simon Josefsson  <jas@extundo.com>
84251
84252         * modules/mempcpy: New file.
84253         * MODULES.html.sh (func_all_modules): Add mempcpy.
84254
84255 2003-07-14  Simon Josefsson  <jas@extundo.com>
84256
84257         * m4/mempcpy.m4: New file.
84258
84259 2003-07-14  Simon Josefsson  <jas@extundo.com>
84260
84261         * lib/mempcpy.h: New file.
84262         * lib/mempcpy.c: New file.
84263
84264 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84265
84266         * modules/getdate, modules/posixtm: Depend on mktime.
84267
84268 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84269
84270         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84271         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84272         unicodeio.c, unicodeio.h, unlocked-io.h:
84273         Switch from LGPL to GPL.
84274
84275 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84276
84277         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84278         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84279         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84280         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84281         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84282         updated automatically by ../config/srclist-update.  This changes
84283         their license from LPGL to GPL.
84284
84285 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84286
84287         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84288         assumed to refer to the root of the most recent stable gettext version.
84289         * config/srclistvars.sh: Add defaults for eggert.
84290         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84291         Match "This program" as well as "The program".  This is needed
84292         for gettext.
84293
84294 2003-07-14  Jim Meyering  <jim@meyering.net>
84295
84296         Don't emit diagnostics.  Let callers do that.
84297         * lib/save-cwd.c: Don't include "error.h".
84298         (save_cwd): Don't call error.  Ensure that errno is valid
84299         when returning nonzero.
84300
84301         * lib/save-cwd.h (restore_cwd): Update prototype.
84302         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84303         Simplify.  Don't call error upon failure.  Let callers do that.
84304         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84305         when auditing is enabled.  But don't bother updating the #if.
84306
84307 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84308
84309         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84310         it breaks C++ compilation.
84311         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84312
84313 2003-07-10  Simon Josefsson  <jas@extundo.com>
84314
84315         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84316
84317 2003-07-10  Jim Meyering  <jim@meyering.net>
84318
84319         * m4/clock_time.m4: Remove trailing blank.
84320         * m4/intmax_t.m4: Likewise.
84321
84322 2003-07-10  Jim Meyering  <jim@meyering.net>
84323
84324         * lib/vasnprintf.c: Remove trailing blanks.
84325         Make cpp indentation consistent.
84326
84327 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84328
84329         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84330         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84331         Switch from LGPL to GPL.
84332
84333 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84334
84335         * config/srclist.txt: Sort sublists.  Add
84336         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84337         that differ from gnulib for one reason or another; we'd like this list
84338         to be smaller but for now let's document what we have.
84339
84340 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84341
84342         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84343         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84344         and sweeter "eval x=$x".
84345         * config/srclist.txt: Get lib/argp* from glibc.
84346
84347 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84348
84349         * lib/mktime.c: Fix some boundary cases and remove need for floating
84350         point.
84351
84352         Issue a compile-time diagnostic if time_t is floating point, or if
84353         two's complement arithmetic is not in effect, or if arithmetic
84354         right shift does not propagate the sign.  These assumptions were
84355         all in the original code but they weren't checked.
84356
84357         (TIME_T_MIDPOINT, verify): New macros.
84358         (__isleap): Remove; it has integer overflow problems.
84359         (leapyear): New function, without those problems.
84360         (ydhms_tm_diff): Remove; splitting into two parts.
84361         (ydhms_diff): New function, containing the arithmetic part of
84362         the old ydhms_tm_diff function.  Issue a compile-time
84363         diagnostic if we are not using C99 integer division.
84364         Avoid casts when possible.
84365         (guess_time_tm): New function, containing the checking part of
84366         the old ydhms_tm_diff function.  Return the new value, rather than
84367         the difference between it and the old.  Accept a new argument T
84368         so that *T specifies the old value.  Check for overflow in the result.
84369
84370         (__mktime_internal): Use a time_t offset, not a long int offset.
84371         This undoes the 2003-06-04 change, which is no longer needed now
84372         that we have better overflow checking.
84373         (localtime_offset): Likewise.
84374
84375         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84376         and long are 64-bit but int is only 32-bit.
84377         (ydhms_diff): Use long int to store year1 and yday1.
84378         Issue a compile-time diagnostic if long int is not wide enough.
84379
84380         (__mktime_internal): Use long int to store adjusted year and yday.
84381         Use plain C rather than preprocessor commands, if that doesn't
84382         affect efficiency.
84383         Check for overflow (and try to repair) after each probe
84384         rather than checking only at the very end.  This avoids some bugs
84385         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84386         does not equal GMT offset at maximum time).
84387         Use integer to check for overflow rather than floating point; this
84388         is more portable to non-IEEE hosts, and is a tad faster.
84389         When we detect that we are oscillating between two values,
84390         don't check whether tm_isdst has the requested value, since
84391         we already know the answer.  When tm_isdst has the wrong value,
84392         use a different heuristic to find the right one, based on the
84393         extreme values actually observed in practice in tz2003a,
84394         rather than the (overly optimistic) "previous 3 calendar quarters".
84395
84396         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84397         "T const" to accommodate glibc style.
84398         (check_result): Use less-confusing report format.  "long" -> "long int.
84399         (main): Likewise.
84400         Don't loop if the iteration overflows time_t.
84401         Allow a negative step in the iteration.
84402
84403 2003-07-06  Karl Berry  <karl@gnu.org>
84404
84405         * config/depcomp: update from automake.
84406         * config/config.sub: update from prep.
84407
84408 2003-07-03  Karl Berry  <karl@gnu.org>
84409
84410         * config/config.guess: update from prep.
84411
84412 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84413
84414         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84415         xreadlink.c now includes it unconditionally.
84416
84417 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84418
84419         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84420         having it depend on HAVE_SYS_TYPES_H.
84421
84422 2003-07-01  Bruno Haible  <bruno@clisp.org>
84423
84424         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84425         <sys/types.h> should be sufficient.
84426         Reported by Paul Eggert.
84427
84428 2003-06-26  Karl Berry  <karl@gnu.org>
84429
84430         * config/depcomp: update from automake.
84431
84432 2003-06-26  Bruno Haible  <bruno@clisp.org>
84433
84434         * modules/human: Depend on module stdbool.
84435
84436 2003-06-25  Bruno Haible  <bruno@clisp.org>
84437
84438         * modules/readlink: New file.
84439         * modules/xreadlink: Depend on it.
84440         * MODULES.html.sh (func_all_modules): Add readlink.
84441
84442 2003-06-25  Bruno Haible  <bruno@clisp.org>
84443
84444         * m4/readlink.m4: New file.
84445
84446 2003-06-25  Bruno Haible  <bruno@clisp.org>
84447
84448         * lib/readlink.c: New file.
84449
84450 2003-06-22  Karl Berry  <karl@gnu.org>
84451
84452         * config/srclist.txt: update mkinstalldirs from automake.
84453         * config/mkinstalldirs: update.
84454
84455 2003-06-22  Bruno Haible  <bruno@clisp.org>
84456
84457         Portability to mingw32.
84458         * m4/ssize_t.m4: New file, from GNU gettext.
84459         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84460         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84461
84462 2003-06-22  Bruno Haible  <bruno@clisp.org>
84463
84464         * modules/safe-read: Add m4/ssize_t.m4.
84465         * modules/xreadlink: Add m4/ssize_t.m4.
84466
84467 2003-06-20  Bruno Haible  <bruno@clisp.org>
84468
84469         Assume C89, so PARAMS isn't needed.
84470         * lib/unicodeio.h (PARAMS): Remove.
84471         * lib/unicodeio.c: Don't use PARAMS.
84472
84473 2003-06-18  Karl Berry  <karl@gnu.org>
84474
84475         * config/config.{guess,sub}: update from prep.
84476
84477 2003-06-18  Jim Meyering  <jim@meyering.net>
84478
84479         Merge changes from coreutils.
84480         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84481         Remove explicit declarations of xmalloc and realloc.
84482         Include xalloc.h.
84483         (read_utmp): Remove anachronistic cast of xmalloc.
84484
84485 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84486
84487         Assume C89, so PARAMS isn't needed.
84488         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84489         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84490         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84491         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84492         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84493         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84494         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84495         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84496         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84497         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84498         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84499         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84500         no longer needed. Anyway, config.h should always be included before any
84501         other file.
84502
84503 2003-06-11  Simon Josefsson  <jas@extundo.com>
84504
84505         * modules/sysexits: New file.
84506         * MODULES.html.sh (func_all_modules): Add sysexits.
84507
84508 2003-06-11  Simon Josefsson  <jas@extundo.com>
84509
84510         * lib/sysexit_.h: New file.
84511
84512 2003-06-11  Derek Price  <derek@ximbiot.com>
84513
84514         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84515         necessary.
84516
84517 2003-06-11  Bruno Haible  <bruno@clisp.org>
84518
84519         * m4/sysexits.m4: New file.
84520
84521 2003-06-10  Simon Josefsson  <jas@extundo.com>
84522
84523         * lib/argp.h: New file, from glibc.
84524         * lib/argp-ba.c: New file, from glibc.
84525         * lib/argp-eexst.c: New file, from glibc.
84526         * lib/argp-fmtstream.c: New file, from glibc.
84527         * lib/argp-fmtstream.h: New file, from glibc.
84528         * lib/argp-fs-xinl.c: New file, from glibc.
84529         * lib/argp-help.c: New file, from glibc.
84530         * lib/argp-namefrob.h: New file, from glibc.
84531         * lib/argp-parse.c: New file, from glibc.
84532         * lib/argp-pv.c: New file, from glibc.
84533         * lib/argp-pvh.c: New file, from glibc.
84534         * lib/argp-xinl.c: New file, from glibc.
84535
84536 2003-06-10  Simon Josefsson  <jas@extundo.com>
84537
84538         * modules/strchrnul: New file.
84539
84540 2003-06-10  Simon Josefsson  <jas@extundo.com>
84541
84542         * modules/argp: New file.
84543
84544 2003-06-10  Simon Josefsson  <jas@extundo.com>
84545
84546         * m4/strchrnul.m4: New file.
84547
84548 2003-06-10  Simon Josefsson  <jas@extundo.com>
84549
84550         * lib/strchrnul.h: New file.
84551         * lib/strchrnul.c: New file.
84552
84553 2003-06-10  Bruno Haible  <bruno@clisp.org>
84554
84555         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84556
84557 2003-06-07  Karl Berry  <karl@gnu.org>
84558
84559         * config/config.{guess,sub}: update from prep.
84560
84561 2003-06-07  Jim Meyering  <jim@meyering.net>
84562
84563         * modules/strtod: Use $(...) notation, not @...@ for
84564         AC_REPLACE'd variables.
84565         * modules/localcharset: Likewise.
84566
84567 2003-06-07  Jim Meyering  <jim@meyering.net>
84568
84569         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84570         in place of my name in the copyright comment.
84571         Remove definition and uses of __P.
84572
84573         From coreutils.
84574         * lib/stat.c: Don't declare xmalloc explicitly.
84575         Instead, include "xalloc.h".
84576         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84577         xrealloc, and xcalloc return values.
84578         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84579         Improve comment.
84580         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84581
84582 2003-06-07  Bruno Haible  <bruno@clisp.org>
84583
84584         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84585         avoid AC_CONFIG_LINKS.
84586         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84587         fnmatch.h, to avoid AC_CONFIG_LINKS.
84588         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84589
84590 2003-06-07  Bruno Haible  <bruno@clisp.org>
84591
84592         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84593         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84594         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84595         directory.
84596         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84597         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84598         directory.
84599
84600 2003-06-06  Jim Meyering  <jim@meyering.net>
84601
84602         Merge from coreutils.
84603         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84604         Consolidate declarations and initializations of *_base* locals.
84605
84606         Merge from coreutils.
84607         This avoids a core dump on systems without GNU putenv,
84608         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84609         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84610         (unsetenv): New static function, from GNU libc.
84611         (rpl_putenv): Use it.
84612
84613         * lib/modechange.c: Remove trailing blanks.
84614
84615         Merge from coreutils.
84616         * lib/fsusage.c: Remove declaration of statfs.
84617         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84618
84619         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84620
84621 2003-06-06  Jim Meyering  <jim@meyering.net>
84622
84623         * lib/stdbool_.h: Renamed from stdbool.h.in.
84624
84625 2003-06-06  Jim Meyering  <jim@meyering.net>
84626             Bruno Haible  <bruno@clisp.org>
84627
84628         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84629         Adjust Makefile.am snippet not to redirect directly to target.
84630         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84631
84632 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84633
84634         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84635         mismatch, look in future quarters as well as past.  This fixes a
84636         bug when processing fall-backwards gaps immediately after a long
84637         period of daylight-saving time.
84638
84639         * lib/mktime.c: Assume freestanding C89 or better.
84640         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84641         (__P): Remove; not used.
84642         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84643         (mktime, not_equal_tm, print_tm, check_result,
84644         main): Use prototypes.  Use const * where appropriate.
84645         (main): Fix typo in testing code that uncovered by above changes.
84646         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84647
84648 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84649
84650         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84651         locale.h, localeconv.  This merges changes from coreutils.
84652
84653         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84654         It can be removed after the next Autoconf is released.
84655         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84656         needed.
84657
84658 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84659
84660         * lib/mktime.c: Fix Debian bug 177940
84661         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84662         (localtime_offset): Now long int, not time_t, because we want it
84663         to be guaranteed to be signed.  All uses changed.
84664         (__mktime_internal): If overflow would occur when adding offset,
84665         don't add it.
84666
84667         Merge 'human' changes from coreutils.  Rewrite to support
84668         locale-specific notations like thousands separators.
84669         * lib/human.c: Simplify authorship notice.
84670         Include human.h immediately after config.h.
84671         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84672         <limits.h>: Do not include, since human.h does.
84673         (SIZE_MAX, UINTMAX_MAX): New macros.
84674         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84675         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84676         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84677         (power_letter): Renamed from suffixes.
84678         (generate_suffix_backwards): Remove.
84679         (adjust_value): Now takes int style (because of human.h changes)
84680         and long double value (for greater precision on some platforms).
84681         (group_number): New function.
84682         (human_readable): Use it.  Use integer options, not enum.
84683         Put the options before the sizes in the arg list.
84684         Support all the new options.
84685         The old human_readable function has been removed;
84686         use inttostr.h instead.
84687         (human_readable, default_block_size, humblock):
84688         Use uintmax_t, not int, for block sizes.
84689         (human_readable_inexact, block_size_types): Remove.
84690         (block_size_opts): New constant.
84691         (human_options): Renamed from human_block_size, with new signature
84692         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84693         * lib/human.h: Add copyright and authorship notice.
84694         Include <limits.h> and <stdbool.h> unconditionally.
84695         (PARAMS): Remove.  All uses removed.
84696         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84697         (enum human_inexact_style): Remove tag; now a nameless enum.
84698         (human_floor, human_ceiling, human_round_to_even): Now have
84699         values 2, 0, 1 rather than -1, 1, 0.
84700         (human_group_digits, human_suppress_point_zero, human_autoscale,
84701         human_base_1024, human_SI, human_B): New constants.
84702         (human_readable_inexact, human_block_size): Remove.
84703         (human_readable): Size args are now uintmax_t, not int.
84704         (human_options): New decl.
84705
84706         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84707         unnecessary now that we assume C89 or better.  This change
84708         imported from coreutils.
84709
84710         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84711         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84712         in the 2003-05-30 sync from glibc.
84713
84714         .h files should stand alone, but we shouldn't include <sys/types.h>
84715         if we can get away with just <stddef.h>.
84716
84717         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84718         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84719         rather than <sys/types.h>, as we merely need size_t.
84720         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84721         to get size_t.
84722         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84723         Include <stdio.h>, to get FILE.
84724         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84725         memcasecmp.h has included <stddef.h> and all we need is size_t.
84726         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84727         our interface, instead of including <sys/types.h>
84728
84729 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84730
84731         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84732         now, as glibc mktime is buggy on non-glibc systems.
84733
84734 2003-06-03  Karl Berry  <karl@gnu.org>
84735
84736         * config/config.sub: update from prep.
84737
84738 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84739
84740         [from coreutils]
84741         Fix some minor time-related bugs with POSIX time arguments.
84742         Some valid time stamps were being rejected (notably -1, and
84743         time stamps before 1900 on 64-bit hosts).  And some invalid
84744         time stamps were being accepted, e.g. September 31.
84745
84746         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84747         that we can return (time_t) -1 successfully.
84748         * lib/posixtm.c: Likewise.
84749         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84750         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84751         (t): Remove static var.
84752         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84753         of static var.  All uses changed.
84754         (year): Do not reject years before 1900; they can occur with
84755         64-bit time_t.
84756         (posix_time_parse): Do not check for out-of-range components;
84757         that is now the caller's responsibility, since our checks were
84758         only approximations.
84759         (posixtime): Use mktime to check for out-of-range components,
84760         since it knows them exactly.
84761         If mktime returns (time_t) -1, check whether an error actually occurred
84762         by invoking localtime on -1.
84763         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84764         posixtime failures better.
84765         Improve the test data (in comments only).
84766
84767 2003-06-02  Karl Berry  <karl@gnu.org>
84768
84769         * config/mkinstalldirs (version): new variable.
84770         (--version): new option.
84771         (usage): improve message.
84772
84773 2003-05-30  Karl Berry  <karl@gnu.org>
84774
84775         * lib/mktime.c: update from libc.
84776
84777 2003-05-30  Bruno Haible  <bruno@clisp.org>
84778
84779         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84780         * config/config.rpath: Upgrade to gettext-0.12.1.
84781
84782 2003-05-30  Bruno Haible  <bruno@clisp.org>
84783
84784         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84785         * m4/nls.m4: New file, from gettext-0.12.1.
84786         * m4/po.m4: New file, from gettext-0.12.1.
84787         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84788
84789 2003-05-30  Bruno Haible  <bruno@clisp.org>
84790
84791         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84792         * lib/localcharset.h: Likewise.
84793         * lib/localcharset.c: Likewise.
84794
84795 2003-05-29  Karl Berry  <karl@gnu.org>
84796
84797         * config/config.rpath: update from gettext.
84798
84799 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84800
84801         Assume the headers required for C89 freestanding compilers.
84802         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84803         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84804         * m4/human.m4 (gl_HUMAN): Likewise.
84805         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84806         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84807         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84808         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84809         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84810         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84811
84812 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84813
84814         Assume the headers required for C89 freestanding compilers.
84815         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84816         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84817         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84818         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84819         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84820         define, since <limits.h> is guaranteed to do that.
84821         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84822         * lib/exclude.c: Include <stdbool.h> unconditionally.
84823         * lib/tempname.c: Include <stddef.h> unconditionally.
84824         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84825         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84826         <stddef.h> does that.
84827         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84828         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84829         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84830         needed.
84831         * lib/xstrtol.c: Likewise.
84832         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84833         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84834
84835         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84836         warnings on some platforms.
84837
84838         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84839         arbitrarily.
84840
84841 2003-05-26  Jim Meyering  <jim@meyering.net>
84842
84843         Merge in a change from coreutils:
84844         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84845         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84846         that condition, rather than `-1' which is slightly misleading.
84847         Change the name of the cache variable to have the gl_ prefix.
84848         Prompted by a patch from Richard Dawe for DJGPP.
84849
84850 2003-05-24  Karl Berry  <karl@gnu.org>
84851
84852         * config/config.guess: update from prep.
84853
84854 2003-05-22  Karl Berry  <karl@gnu.org>
84855
84856         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84857
84858 2003-05-20  Karl Berry  <karl@gnu.org>
84859
84860         * config/config.guess: update from prep.
84861
84862 2003-05-18  Karl Berry  <karl@gnu.org>
84863
84864         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84865         might actually be set by the user.
84866
84867         * config/depcomp, install-sh, mdate-sh: update from automake.
84868
84869 2003-05-17  Bruno Haible  <bruno@clisp.org>
84870
84871         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84872         invalid expansion for AC_EGREP_CPP.
84873         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84874         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84875         Suggested by Akim Demaille <akim@epita.fr> in
84876         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84877
84878 2003-05-12  Jim Meyering  <jim@meyering.net>
84879
84880         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84881         the space-padded-by-default conversion specifiers, %e, %k, %l.
84882
84883 2003-05-12  Bruno Haible  <bruno@clisp.org>
84884
84885         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84886         the string is longer than 4 KB.
84887
84888 2003-05-11  Karl Berry  <karl@gnu.org>
84889
84890         * config/config.{guess,sub}: update from prep.
84891
84892 2003-05-09  Bruno Haible  <bruno@clisp.org>
84893
84894         * modules/error: Add m4/strerror_r.m4 to file list.
84895
84896 2003-05-03  Bruno Haible  <bruno@clisp.org>
84897
84898         Upgrade to Unicode-4.0.
84899         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84900         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84901         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84902         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84903         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84904         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84905         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84906         Change width of U+E0100..U+E01EF from 1 to 0.
84907
84908 2003-04-25  Jim Meyering  <jim@meyering.net>
84909
84910         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84911         of type size_t, not int.
84912
84913 2003-04-25  Bruno Haible  <bruno@clisp.org>
84914
84915         * lib/copy-file.c: Include <stddef.h>, for size_t.
84916
84917 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84918
84919         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84920         code which expansion is under static control.  Patch imported from
84921         Akim Demaille's patch to Bison; see
84922         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84923
84924 2003-04-14  Bruno Haible  <bruno@clisp.org>
84925
84926         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84927
84928 2003-04-11  Jim Meyering  <jim@meyering.net>
84929
84930         Merge changes from Coreutils.
84931
84932         2003-03-22  Jim Meyering  <jim@meyering.net>
84933
84934         * lib/strftime.c (widen): Cast alloca return value to proper type.
84935
84936         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84937
84938         From GNU libc.
84939         * lib/strftime.c (my_strftime): Handle very large width
84940         specifications for numeric values correctly.  Improve checks for
84941         overflow.
84942
84943         2003-01-19  Jim Meyering  <jim@meyering.net>
84944
84945         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84946         definitions.
84947         (nl_get_alt_digit) [! defined my_strftime]: Define.
84948         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84949         _nl_get_alt_digit and _nl_get_walt_digit.
84950
84951         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84952         libc. These changes have no effect outside of _LIBC.
84953
84954 2003-04-10  Bruno Haible  <bruno@clisp.org>
84955
84956         * modules/findprog: New file.
84957         * MODULES.html.sh (func_all_modules): Add it.
84958
84959 2003-04-10  Bruno Haible  <bruno@clisp.org>
84960
84961         * m4/findprog.m4: New file.
84962         * m4/eaccess.m4: New file.
84963
84964 2003-04-10  Bruno Haible  <bruno@clisp.org>
84965
84966         * lib/findprog.h: New file, from GNU gettext.
84967         * lib/findprog.c: New file, from GNU gettext.
84968
84969 2003-04-05  Jim Meyering  <jim@meyering.net>
84970
84971         Merge changes from Coreutils.
84972
84973         * lib/exclude.h (PARAMS): Remove definition and uses.
84974         * lib/exclude.c: Remove uses of `PARAMS'.
84975
84976         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84977         Add test-cases for DOS filenames. Declare program_name.
84978         (main): Set up program_name.  Patch by Rich Dawe.
84979
84980         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84981         error from mntctl.
84982         Use mntctl's return value to drive the entry-processing loop, since
84983         we can't rely on the value of the vmt_length member in the last
84984         entry.  On some systems doing so could result in exhausting
84985         virtual memory.  Based in part on a patch from Mike Jetzer.
84986
84987 2003-04-04  Bruno Haible  <bruno@clisp.org>
84988
84989         * modules/linebreak: New file.
84990         * MODULES.html.sh (func_all_modules): Add it.
84991
84992 2003-04-04  Bruno Haible  <bruno@clisp.org>
84993
84994         * m4/linebreak.m4: New file.
84995
84996 2003-04-04  Bruno Haible  <bruno@clisp.org>
84997
84998         * lib/linebreak.h: New file, from GNU gettext.
84999         * lib/linebreak.c: New file, from GNU gettext with slight
85000         modifications.
85001         * lib/lbrkprop.h: New file, from GNU gettext.
85002
85003 2003-04-03  Bruno Haible  <bruno@clisp.org>
85004
85005         * modules/utf8-ucs4: New file.
85006         * modules/utf16-ucs4: New file.
85007         * modules/ucs4-utf8: New file.
85008         * modules/ucs4-utf16: New file.
85009         * MODULES.html.sh (func_all_modules): Add them.
85010
85011 2003-04-03  Bruno Haible  <bruno@clisp.org>
85012
85013         * m4/utf-ucs4.m4: New file.
85014         * m4/ucs4-utf.m4: New file.
85015
85016 2003-04-03  Bruno Haible  <bruno@clisp.org>
85017
85018         * lib/utf8-ucs4.h: New file, from GNU gettext.
85019         * lib/utf16-ucs4.h: New file, from GNU gettext.
85020         * lib/ucs4-utf8.h: New file, from GNU gettext.
85021         * lib/ucs4-utf16.h: New file, from GNU gettext.
85022
85023 2003-04-02  Bruno Haible  <bruno@clisp.org>
85024
85025         * modules/binary-io: New file.
85026         * MODULES.html.sh (func_all_modules): Add it.
85027
85028 2003-04-02  Bruno Haible  <bruno@clisp.org>
85029
85030         * lib/binary-io.h: New file, from GNU gettext.
85031
85032 2003-04-01  Bruno Haible  <bruno@clisp.org>
85033
85034         * modules/pathname: New file.
85035         * MODULES.html.sh (func_all_modules): Add it.
85036
85037 2003-04-01  Bruno Haible  <bruno@clisp.org>
85038
85039         * lib/pathname.h: New file, from GNU gettext.
85040         * lib/concatpath.c: New file, from GNU gettext.
85041
85042 2003-03-30  Bruno Haible  <bruno@clisp.org>
85043
85044         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85045
85046 2003-03-30  Bruno Haible  <bruno@clisp.org>
85047
85048         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85049         function chown() doesn't exist.
85050
85051 2003-03-28  Bruno Haible  <bruno@clisp.org>
85052
85053         * modules/copy-file: New file.
85054         * MODULES.html.sh (func_all_modules): Add it.
85055
85056 2003-03-28  Bruno Haible  <bruno@clisp.org>
85057
85058         * m4/copy-file.m4: New file.
85059
85060 2003-03-28  Bruno Haible  <bruno@clisp.org>
85061
85062         * lib/copy-file.h: New file, from GNU gettext.
85063         * lib/copy-file.c: New file, from GNU gettext.
85064
85065 2003-03-18  Jim Meyering  <jim@meyering.net>
85066
85067         * lib/quote.c (quote_n): Fix typo in comment.
85068
85069 2003-03-18  Bruno Haible  <bruno@clisp.org>
85070
85071         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85072         checking.
85073         * m4/onceonly_2_57.m4: Likewise.
85074
85075 2003-03-17  Bruno Haible  <bruno@clisp.org>
85076
85077         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85078         (m4_quote): Remove macro.
85079         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85080
85081 2003-03-14  Jim Meyering  <jim@meyering.net>
85082
85083         Merge changes from Coreutils.
85084         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85085         to be const, in order to avoid warnings.
85086         (obstack_room): Likewise.
85087         (obstack_empty_p): Likewise.
85088
85089 2003-03-14  Bruno Haible  <bruno@clisp.org>
85090
85091         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85092         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85093
85094 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85095
85096         Merge changes from Bison.
85097         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85098         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85099         when compiling Bison 1.875's `bitset bset = obstack_alloc
85100         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85101         * lib/hash.c: Include <stdbool.h> unconditionally.
85102
85103 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85104
85105         * m4/onceonly.m4 (m4_quote): New macro.
85106         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85107         Quote AC_FOREACH variable-expansions properly.
85108
85109 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85110
85111         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85112
85113 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85114
85115         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85116         Reported by Bruce Becker; see:
85117         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85118
85119 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85120             Bruno Haible  <bruno@clisp.org>
85121
85122         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85123         Reported by John Hughes, see
85124         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85125
85126 2003-02-20  Bruno Haible  <bruno@clisp.org>
85127
85128         * MODULES.html.sh (func_all_modules): Add poll.
85129
85130 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85131
85132         * modules/poll: New file.
85133
85134 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85135
85136         * lib/poll_.h: New file.
85137         * lib/poll.c: New file.
85138
85139 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85140
85141         * m4/poll.m4: New file.
85142
85143 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85144
85145         * modules/mathl: New file.
85146
85147 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85148
85149         * lib/mathl.h: New file.
85150         * lib/acosl.c: New file.
85151         * lib/asinl.c: New file.
85152         * lib/atanl.c: New file.
85153         * lib/ceill.c: New file.
85154         * lib/cosl.c: New file.
85155         * lib/expl.c: New file.
85156         * lib/floorl.c: New file.
85157         * lib/frexpl.c: New file.
85158         * lib/ldexpl.c: New file.
85159         * lib/logl.c: New file.
85160         * lib/sincosl.c: New file.
85161         * lib/sinl.c: New file.
85162         * lib/sqrtl.c: New file.
85163         * lib/tanl.c: New file.
85164         * lib/trigl.c: New file.
85165         * lib/trigl.h: New file.
85166
85167 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85168
85169         * m4/mathl.m4: New file.
85170
85171 2003-02-18  Bruno Haible  <bruno@clisp.org>
85172
85173         * MODULES.html.sh (func_all_modules): Add mathl.
85174
85175 2003-02-17  Bruno Haible  <bruno@clisp.org>
85176
85177         * modules/mkdtemp: New module.
85178         * MODULES.html.sh (func_all_modules): Add it.
85179
85180 2003-02-17  Bruno Haible  <bruno@clisp.org>
85181
85182         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85183
85184 2003-02-17  Bruno Haible  <bruno@clisp.org>
85185
85186         * lib/mkdtemp.h: New file, from GNU gettext.
85187         * lib/mkdtemp.c: New file, from GNU gettext.
85188
85189 2003-02-02  Jim Meyering  <jim@meyering.net>
85190
85191         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85192         e.g. glibc-2.2.93.
85193
85194 2003-01-31  Bruno Haible  <bruno@clisp.org>
85195
85196         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85197         'rpl_rename'.
85198         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85199         'rpl_strnlen'.
85200         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85201         'rpl_strtod'.
85202         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85203         'rpl_utime'.
85204
85205 2003-01-31  Bruno Haible  <bruno@clisp.org>
85206
85207         * lib/rename.c: #undef rename before defining rpl_rename.
85208         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85209
85210 2003-01-30  Bruno Haible  <bruno@clisp.org>
85211
85212         * modules/vasnprintf, modules/vasprintf: New modules.
85213         * MODULES.html.sh (func_all_modules): Add them.
85214
85215 2003-01-30  Bruno Haible  <bruno@clisp.org>
85216
85217         * m4/signed.m4: New file, from GNU gettext.
85218         * m4/longdouble.m4: New file, from GNU gettext.
85219         * m4/wchar_t.m4: New file, from GNU gettext.
85220         * m4/wint_t.m4: New file, from GNU gettext.
85221         * m4/vasnprintf.m4: New file.
85222         * m4/vasprintf.m4: New file.
85223
85224 2003-01-30  Bruno Haible  <bruno@clisp.org>
85225
85226         * lib/printf-args.h: New file, from GNU gettext.
85227         * lib/printf-args.c: New file, from GNU gettext.
85228         * lib/printf-parse.h: New file, from GNU gettext.
85229         * lib/printf-parse.c: New file, from GNU gettext.
85230         * lib/vasnprintf.h: New file, from GNU gettext.
85231         * lib/vasnprintf.c: New file, from GNU gettext.
85232         * lib/asnprintf.c: New file, from GNU gettext.
85233         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85234         * lib/vasprintf.c: New file, from GNU gettext.
85235         * lib/asprintf.c: New file, from GNU gettext.
85236
85237 2003-01-29  Bruno Haible  <bruno@clisp.org>
85238
85239         * modules/stpncpy: New module.
85240         * MODULES.html.sh (func_all_modules): Add it.
85241
85242 2003-01-29  Bruno Haible  <bruno@clisp.org>
85243
85244         * m4/stpncpy.m4: New file.
85245
85246 2003-01-29  Bruno Haible  <bruno@clisp.org>
85247
85248         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85249         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85250
85251 2003-01-28  Bruno Haible  <bruno@clisp.org>
85252
85253         * modules/c-ctype: New module.
85254         * MODULES.html.sh (func_all_modules): Add it.
85255
85256 2003-01-28  Bruno Haible  <bruno@clisp.org>
85257
85258         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85259         Paul Eggert.
85260         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85261         Paul Eggert.
85262
85263 2003-01-27  Bruno Haible  <bruno@clisp.org>
85264
85265         * modules/xsetenv: New module.
85266         * MODULES.html.sh (func_all_modules): Add it.
85267
85268 2003-01-27  Bruno Haible  <bruno@clisp.org>
85269
85270         * lib/xsetenv.h: New file, from GNU gettext.
85271         * lib/xsetenv.c: New file, from GNU gettext.
85272
85273 2003-01-23  Jim Meyering  <jim@meyering.net>
85274
85275         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85276         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85277
85278 2003-01-23  Bruno Haible  <bruno@clisp.org>
85279
85280         * modules/minmax: New module.
85281         * MODULES.html.sh (func_all_modules): Add it.
85282
85283 2003-01-23  Bruno Haible  <bruno@clisp.org>
85284
85285         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85286         Eggert.
85287
85288 2003-01-22  Bruno Haible  <bruno@clisp.org>
85289
85290         * modules/exit: New module.
85291         * MODULES.html.sh (func_all_modules): Add it.
85292
85293 2003-01-22  Bruno Haible  <bruno@clisp.org>
85294
85295         * lib/exit.h: New file, from GNU gettext.
85296
85297 2003-01-19  Bruno Haible  <bruno@clisp.org>
85298
85299         * gnulib-tool: Recognize option --extract-maintainer.
85300         (func_get_maintainer): New function.
85301         * modules/*: Add Maintainer entry.
85302
85303 2003-01-16  Jim Meyering  <jim@meyering.net>
85304
85305         * m4/regex.m4: The `regex' struct is both input and output.
85306         Initialize it before each use.  Patch by Tim Waugh.
85307
85308 2003-01-16  Bruno Haible  <bruno@clisp.org>
85309
85310         * MODULES.html.sh: Add a table of contents. Add the module name as
85311         leftmost column. Add hyperlinks.
85312
85313 2003-01-15  Bruno Haible  <bruno@clisp.org>
85314
85315         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85316
85317 2003-01-15  Bruno Haible  <bruno@clisp.org>
85318
85319         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85320         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85321         suffix.
85322
85323 2003-01-15  Bruno Haible  <bruno@clisp.org>
85324
85325         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85326
85327 2003-01-15  Bruno Haible  <bruno@clisp.org>
85328
85329         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85330         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85331
85332 2003-01-14  Jim Meyering  <jim@meyering.net>
85333
85334         * lib/same.c (same_name): Tweak a comment.
85335
85336 2003-01-14  Bruno Haible  <bruno@clisp.org>
85337
85338         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85339         when a string comparison is sufficient.
85340
85341 2003-01-14  Bruno Haible  <bruno@clisp.org>
85342
85343         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85344         'unsigned int'.
85345
85346 2003-01-14  Bruno Haible  <bruno@clisp.org>
85347
85348         * lib/hash-pjw.c: Add comment about low quality of this function.
85349
85350 2003-01-13  Bruno Haible  <bruno@clisp.org>
85351
85352         * modules/stpcpy: Distribute lib/stpcpy.h.
85353         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85354
85355 2003-01-13  Bruno Haible  <bruno@clisp.org>
85356
85357         * modules/*: Add a description.
85358         * modules/strpbrk: Fix Makefile.am snippet.
85359         * modules/strtoimax: Fix dependencies.
85360         * modules/strtoumax: Likewise.
85361
85362 2003-01-13  Bruno Haible  <bruno@clisp.org>
85363
85364         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85365         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85366         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85367
85368 2003-01-13  Bruno Haible  <bruno@clisp.org>
85369
85370         * gnulib-tool (func_create_testdir): Store config/* files in the main
85371         directory.
85372         * config.rpath: Move to ...
85373         * config/config.rpath: ... here.
85374         * modules/gettext: Contains config/config.rpath, not config.rpath.
85375         * modules/iconv: Likewise.
85376
85377 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85378
85379         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85380         to avoid collisions with libcurses and libreadline.
85381
85382         * m4/getstr.m4: Remove.
85383         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85384
85385 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85386
85387         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85388         to avoid collisions with libcurses and libreadline.
85389
85390         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85391         * lib/getstr.h, getstr.c: Remove.
85392         * lib/getline.c: Include "getline.h", to check interface.
85393         Move body of old getstr.c here: this defines MIN_CHUNK and
85394         declares getdelim2, which is renamed from getstr.
85395         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85396
85397         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85398         All uses changed.
85399         * lib/linebuffer.h: Likewise.
85400         (readline): Remove backward-compatibility macro.
85401
85402 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85403
85404         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85405         to avoid collisions with libcurses and libreadline.
85406         * getstr: Remove.
85407         * MODULES.html.sh: Remove getstr.
85408         * modules/getline: Depend on unlocked-io, not getstr.
85409
85410 2003-01-12  Jim Meyering  <jim@meyering.net>
85411
85412         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85413
85414 2003-01-10  Bruno Haible  <bruno@clisp.org>
85415
85416         * modules/alloca: Change Makefile.am requirements. Simplify Include
85417         requirements. Add lib/alloca_.h to file list.
85418
85419 2003-01-10  Bruno Haible  <bruno@clisp.org>
85420
85421         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85422
85423 2003-01-10  Bruno Haible  <bruno@clisp.org>
85424
85425         * lib/alloca_.h: New file.
85426         * lib/getdate.y: Unconditionally include alloca.h.
85427         * lib/makepath.c: Likewise.
85428         * lib/setenv.c: Likewise.
85429         * lib/userspec.c: Likewise.
85430
85431 2003-01-09  Karl Berry  <karl@gnu.org>
85432
85433         * MODULES.html.sh: include `dirname $0` in PATH, to find
85434         gnulib-tool.
85435
85436 2003-01-09  Bruno Haible  <bruno@clisp.org>
85437
85438         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85439         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85440
85441 2003-01-09  Bruno Haible  <bruno@clisp.org>
85442
85443         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85444
85445 2003-01-09  Bruno Haible  <bruno@clisp.org>
85446
85447         * lib/stdbool.h.in: New file.
85448
85449 2003-01-09  Bruno Haible  <bruno@clisp.org>
85450
85451         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85452         * MODULES.html.sh: Likewise.
85453
85454 2003-01-08  Jim Meyering  <jim@meyering.net>
85455
85456         * lib/full-write.c: Undefine and define-away `const' after inclusion
85457         of errno.h, not before.  Suggestion from Bruno Haible.
85458
85459 2003-01-08  Bruno Haible  <bruno@clisp.org>
85460
85461         * modules/full-read: Depend on full-write.
85462
85463 2003-01-08  Bruno Haible  <bruno@clisp.org>
85464
85465         * lib/safe-read.c: Include specification header first, to ensure its
85466         selfcontainedness.
85467         * lib/full-write.c: Likewise.
85468
85469 2003-01-07  Jim Meyering  <jim@meyering.net>
85470
85471         * lib/full-write.c: Rework so that it may serve to define full_read,
85472         too.
85473         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85474
85475 2003-01-07  Bruno Haible  <bruno@clisp.org>
85476
85477         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85478         <inttypes.h>.
85479         * lib/xstrtol.h: Likewise.
85480         * lib/xstrtoimax.c: Likewise.
85481         * lib/xstrtoumax.c: Likewise.
85482         * lib/human.h: Likewise.
85483
85484         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85485         on systems that have <inttypes.h> but not <stdint.h>.
85486
85487 2003-01-07  Bruno Haible  <bruno@clisp.org>
85488
85489         * MODULES.html.sh: Add copyright notice.
85490         (missed_files): Omit CVS directory entries.
85491         (func_module): Make it work with sed-3.02.
85492         * MODULES.txt: Remove file.
85493
85494 2003-01-06  Jim Meyering  <jim@meyering.net>
85495
85496         * lib/version-etc.c: Update year in translatable copyright string.
85497
85498 2003-01-03  Karl Berry  <karl@gnu.org>
85499
85500         * config/config.{guess,sub}: update from prep.
85501
85502 2003-01-02  Karl Berry  <karl@gnu.org>
85503
85504         * doc/COPYING.DOC: belatedly updated to 1.2.
85505
85506 2003-01-01  Karl Berry  <karl@gnu.org>
85507
85508         * gnulib-tool (func_verify_module): report module name $module in
85509         error message, not $1.
85510         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85511         be created, only if it doesn't exist.
85512         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85513
85514 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85515
85516         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85517
85518 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85519
85520         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85521         memcmp if strcoll doesn't work.
85522
85523 2002-12-31  Bruno Haible  <bruno@clisp.org>
85524
85525         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85526         nonempty.
85527
85528 2002-12-31  Bruno Haible  <bruno@clisp.org>
85529
85530         * lib/memcoll.c (STRCOLL): New macro.
85531         (memcoll): Use it.
85532
85533 2002-12-31  Bruno Haible  <bruno@clisp.org>
85534
85535         * lib/localcharset.h: New file.
85536         * lib/localcharset.c: Include it.
85537         * lib/unicodeio.c: Likewise.
85538
85539 2002-12-31  Bruno Haible  <bruno@clisp.org>
85540
85541         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85542         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85543
85544 2002-12-31  Bruno Haible  <bruno@clisp.org>
85545
85546         * lib/getline.h: Include <stddef.h>, for size_t.
85547
85548         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85549         * lib/unicodeio.c: Don't include <stddef.h>.
85550
85551 2002-12-31  Bruno Haible  <bruno@clisp.org>
85552
85553         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85554         HAVE_TM_ZONE.
85555
85556 2002-12-24  Karl Berry  <karl@gnu.org>
85557
85558         * config/config.guess: update from prep.
85559
85560 2002-12-24  Bruno Haible  <bruno@clisp.org>
85561
85562         General infrasructure.
85563         * m4/README: Rewritten.
85564         * m4/onceonly.m4: New file.
85565         * m4/onceonly_2_57.m4: New file.
85566
85567         Module atexit.
85568         * m4/atexit.m4: New file.
85569
85570         Module strtod.
85571         * m4/strtod.m4: New file.
85572
85573         Module strtol.
85574         * m4/strtol.m4: New file.
85575
85576         Module strtoul.
85577         * m4/strtoul.m4: New file.
85578
85579         Module memchr.
85580         * m4/memchr.m4: New file.
85581
85582         Module memcmp.
85583         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85584         (jm_FUNC_MEMCMP): Invoke it.
85585
85586         Module memcpy.
85587         * m4/memcpy.m4: New file.
85588
85589         Module memmove.
85590         * m4/memmove.m4: New file.
85591
85592         Module memset.
85593         * m4/memset.m4: New file.
85594
85595         Module strcspn.
85596         * m4/strcspn.m4: New file.
85597
85598         Module strpbrk.
85599         * m4/strpbrk.m4: New file.
85600
85601         Module strstr.
85602         * m4/strstr.m4: New file.
85603
85604         Module strerror.
85605         * m4/strerror.m4: New file.
85606
85607         Module mktime.
85608         * m4/mktime.m4: Renamed from jm-mktime.m4.
85609         (gl_PREREQ_MKTIME): New macro.
85610         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85611
85612         Module malloc.
85613         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85614         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85615         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85616
85617         Module realloc.
85618         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85619         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85620         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85621
85622         Module strftime.
85623         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85624         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85625         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85626         gl_TM_GMTOFF.
85627         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85628
85629         Module xalloc.
85630         * m4/xalloc.m4: New file.
85631
85632         Module alloca.
85633         * m4/alloca.m4: New file.
85634
85635         Module putenv.
85636         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85637         (jm_FUNC_PUTENV): Invoke it.
85638
85639         Module setenv.
85640         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85641         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85642         when invoked twice.
85643         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85644         gt_FUNC_SETENV.
85645
85646         Module memrchr.
85647         * m4/memrchr.m4: New file.
85648
85649         Module stpcpy.
85650         * m4/stpcpy.m4: New file.
85651
85652         Module strcase.
85653         * m4/strcase.m4: New file.
85654
85655         Module strdup.
85656         * m4/strdup.m4: New file.
85657
85658         Module strnlen.
85659         * m4/strnlen.m4: New file.
85660
85661         Module strndup.
85662         * m4/strndup.m4: New file.
85663
85664         Module xstrtod.
85665         * m4/xstrtod.m4: New file.
85666
85667         Module xstrtol.
85668         * m4/xstrtol.m4: New file.
85669
85670         Module getdate.
85671         * m4/getdate.m4: New file.
85672
85673         Module unlocked-io.
85674         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85675         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85676         * m4/jm-glibc-io.m4n: Remove file.
85677
85678         Module long-options.
85679         * m4/long-options.m4: New file.
85680
85681         Module md5.
85682         * m4/md5.m4: New file.
85683
85684         Module sha.
85685         * m4/sha.m4: New file.
85686
85687         Module getstr.
85688         * m4/getstr.m4: New file.
85689
85690         Module getline.
85691         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85692         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85693         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85694         simply getline. Infoke gl_PREREQ_GETLINE.
85695
85696         Module obstack.
85697         * m4/obstack.m4: New file.
85698
85699         Module hash.
85700         * m4/hash.m4: New file.
85701
85702         Module readtokens.
85703         * m4/readtokens.m4: New file.
85704
85705         Module strverscmp.
85706         * m4/strverscmp.m4: New file.
85707
85708         Module stdbool.
85709         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85710         OSF/1.
85711
85712         Module strtoll.
85713         * m4/strtoll.m4: New file.
85714
85715         Module strtoull.
85716         * m4/strtoull.m4: New file.
85717
85718         Module strtoimax.
85719         * m4/strtoimax.m4: New file.
85720
85721         Module strtoumax.
85722         * m4/strtoumax.m4: New file.
85723
85724         Module xstrtoimax.
85725         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85726         jm_AC_PREREQ_XSTRTOIMAX.
85727         Moved the strtol prerequisites to strtol.m4.
85728         Moved the strtoll prerequisites to strtoll.m4.
85729         Moved the strtoimax prerequisites to strtoimax.m4.
85730
85731         Module xstrtoumax.
85732         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85733         jm_AC_PREREQ_XSTRTOUMAX.
85734         Moved the strtoul prerequisites to strtoul.m4.
85735         Moved the strtoull prerequisites to strtoull.m4.
85736         Moved the strtoumax prerequisites to strtoumax.m4.
85737
85738         Module chown.
85739         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85740         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85741
85742         Module dup2.
85743         * m4/dup2.m4: New file.
85744
85745         Module ftruncate.
85746         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85747         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85748
85749         Module getgroups.
85750         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85751         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85752
85753         Module gettimeofday.
85754         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85755         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85756         gl_PREREQ_GETTIMEOFDAY.
85757
85758         Module mkdir.
85759         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85760         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85761
85762         Module mkstemp.
85763         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85764         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85765         jm_AC_TYPE_UINTMAX_T.
85766         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85767
85768         Module stat.
85769         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85770         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85771
85772         Module lstat.
85773         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85774         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85775
85776         Module timespec.
85777         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85778         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85779         * m4/st_mtim.m4: Indentation.
85780
85781         Module nanosleep.
85782         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85783         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85784         gl_PREREQ_NANOSLEEP.
85785
85786         Module regex.
85787         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85788         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85789         (gl_REGEX): New macro.
85790
85791         Module rename.
85792         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85793         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85794
85795         Module rmdir.
85796         * m4/rmdir.m4: New file.
85797
85798         Module utime.
85799         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85800         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85801         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85802
85803         Module dirname.
85804         * m4/dirname.m4: New file.
85805
85806         Module getopt.
85807         * m4/getopt.m4: New file.
85808
85809         Module unistd-safer.
85810         * m4/unistd-safer.m4: New file.
85811
85812         Module fnmatch.
85813         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85814         declaration.
85815         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85816         (gl_FUNC_FNMATCH_POSIX): New macro.
85817         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85818         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85819         simply fnmatch.
85820
85821         Module exclude.
85822         * m4/exclude.m4: New file.
85823
85824         Module human.
85825         * m4/human.m4: New file.
85826
85827         Module acl.
85828         * m4/acl.m4: Nop.
85829
85830         Module backupfile.
85831         * m4/backupfile.m4: New file.
85832         * m4/d-ino.m4: Indentation.
85833
85834         Module fsusage.
85835         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85836         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85837         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85838
85839         Module dirfd.
85840         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85841         requirements.
85842
85843         Module euidaccess.
85844         * m4/euidaccess.m4: New file.
85845
85846         Module file-type.
85847         * m4/file-type.m4: New file.
85848
85849         Module fileblocks.
85850         * m4/fileblocks.m4: New file.
85851
85852         Module filemode.
85853         * m4/filemode.m4: New file.
85854
85855         Module isdir.
85856         * m4/isdir.m4: New file.
85857
85858         Module lchown.
85859         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85860         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85861
85862         Module makepath.
85863         * m4/makepath.m4: New file.
85864
85865         Module modechange.
85866         * m4/modechange.m4: New file.
85867
85868         Module mountlist.
85869         * m4/mountlist.m4: New file.
85870         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85871         Indentation.
85872
85873         Module path-concat.
85874         * m4/path-concat.m4: New file.
85875
85876         Module pathmax.
85877         * m4/pathmax.m4: New file.
85878
85879         Module same.
85880         * m4/same.m4: New file.
85881
85882         Module save-cwd.
85883         * m4/save-cwd.m4: New file.
85884
85885         Module savedir.
85886         * m4/savedir.m4: New file.
85887
85888         Module xgetcwd.
85889         * m4/xgetcwd.m4: New file.
85890         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85891
85892         Module xreadlink.
85893         * m4/xreadlink.m4: New file.
85894
85895         Module safe-read.
85896         * m4/safe-read.m4: New file.
85897
85898         Module safe-write.
85899         * m4/safe-write.m4: New file.
85900
85901         Module closeout.
85902         * m4/closeout.m4: New file.
85903
85904         Module stdio-safer.
85905         * m4/stdio-safer.m4: New file.
85906
85907         Module getpass.
85908         * m4/getpass.m4: New file.
85909
85910         Module getugroups.
85911         * m4/getugroups.m4: New file.
85912
85913         Module group-member.
85914         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85915         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85916
85917         Module idcache.
85918         * m4/idcache.m4: New file.
85919
85920         Module userspec.
85921         * m4/userspec.m4: New file.
85922
85923         Module gettime.
85924         * m4/clock_time.m4: New file.
85925         * m4/gettime.m4: New file.
85926
85927         Module settime.
85928         * m4/settime.m4: New file.
85929
85930         Module posixtm.
85931         * m4/posixtm.m4: New file.
85932
85933         Module gethostname.
85934         * m4/gethostname.m4: New file.
85935
85936         Module canon-host.
85937         * m4/canon-host.m4: New file.
85938
85939         Module gettext.
85940         * m4/codeset.m4: New file, from gettext-0.11.5.
85941         * m4/gettext.m4: New file, from gettext-0.11.5.
85942         * m4/glibc21.m4: New file, from gettext-0.11.5.
85943         * m4/iconv.m4: New file, from gettext-0.11.5.
85944         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85945         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85946         * m4/inttypes.m4: New file, from gettext-0.11.5.
85947         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85948         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85949         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85950         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85951         * m4/lib-link.m4: New file, from gettext-0.11.5.
85952         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85953         * m4/progtest.m4: New file, from gettext-0.11.5.
85954         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85955         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85956         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85957
85958         Module localcharset.
85959         * m4/localcharset.m4: New file.
85960
85961         Module hard-locale.
85962         * m4/hard-locale.m4: New file.
85963
85964         Module mbswidth.
85965         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85966         onceonly macros.
85967         * m4/mbrtowc.m4: Add comment.
85968
85969         Module memcasecmp.
85970         * m4/memcasecmp.m4: New file.
85971
85972         Module memcoll.
85973         * m4/memcoll.m4: New file.
85974
85975         Module unicodeio.
85976         * m4/unicodeio.m4: New file.
85977
85978         Module rpmatch.
85979         * m4/rpmatch.m4: New file.
85980
85981         Module yesno.
85982         * m4/yesno.m4: New file.
85983
85984         Module exitfail.
85985         * m4/exitfail.m4: New file.
85986
85987         Module c-stack.
85988         * m4/c-stack.m4 (gl_C_STACK): New macro.
85989         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85990
85991         Module error.
85992         * m4/error.m4 (gl_ERROR): New macro.
85993         (jm_PREREQ_ERROR): Use onceonly macros.
85994
85995         Module fatal.
85996         * m4/fatal.m4: New file.
85997
85998         Module getloadavg.
85999         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86000         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86001
86002         Module getpagesize.
86003         * m4/getpagesize.m4: New file.
86004
86005         Module getusershell.
86006         * m4/getusershell.m4: New file.
86007
86008         Module physmem.
86009         * m4/physmem.m4: New file.
86010
86011         Module posixver.
86012         * m4/posixver.m4: New file.
86013
86014         Module quotearg.
86015         * m4/quotearg.m4: New file.
86016
86017         Module quote.
86018         * m4/quote.m4: New file.
86019
86020         Module readutmp.
86021         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86022
86023         Module sig2str.
86024         * m4/sig2str.m4: New file.
86025
86026         Other.
86027         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86028         ulonglong.m4.
86029         * m4/intmax_t.m4: New file.
86030         * m4/d-type.m4: Indentation.
86031         * m4/jm-macros.m4: Update.
86032         * m4/prereq.m4 (jm_PREREQ): Update.
86033         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86034         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86035         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86036         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86037         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86038         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86039         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86040         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86041         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86042         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86043         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86044         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86045         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86046         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86047         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86048         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86049         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86050         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86051         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86052
86053 2002-12-24  Bruno Haible  <bruno@clisp.org>
86054
86055         * MODULES.txt: Update according to m4/ changes.
86056
86057         Module gettext.
86058         * config.rpath: New file, from gettext-0.11.5.
86059
86060         * modules/*: New module descriptions.
86061         * gnulib-tool: New file.
86062         * MODULES.html.sh: New file.
86063
86064 2002-12-21  Karl Berry  <karl@gnu.org>
86065
86066         * doc/fdl.texi: update to version 1.2.
86067
86068 2002-12-19  Karl Berry  <karl@gnu.org>
86069
86070         * config/config.guess: update from prep.
86071
86072 2002-12-18  Bruno Haible  <bruno@clisp.org>
86073
86074         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86075         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86076
86077 2002-12-17  Bruno Haible  <bruno@clisp.org>
86078
86079         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86080         stdlib.h, string.h.
86081
86082 2002-12-17  Bruno Haible  <bruno@clisp.org>
86083
86084         * lib/canon-host.c (strdup): Remove unused declaration.
86085
86086         * lib/fsusage.c: Include full_read.h.
86087         (get_fs_usage): Use full_read instead of safe_read.
86088
86089         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86090
86091 2002-12-12  Karl Berry  <karl@gnu.org>
86092
86093         * config/config.guess: update from prep.
86094
86095 2002-12-11  Bruno Haible  <bruno@clisp.org>
86096
86097         * m4/setenv.m4: New file, from gettext-0.11.5.
86098
86099 2002-12-11  Bruno Haible  <bruno@clisp.org>
86100
86101         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86102         not unsetenv().
86103         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86104         modifications:
86105
86106         2002-12-11  Bruno Haible  <bruno@clisp.org>
86107
86108                 * setenv.c (alloca): Fall back to malloc.
86109                 (freea): New macro.
86110                 (setenv): Use freea() to free memory allocated with alloca().
86111
86112         2002-11-13  Bruno Haible  <bruno@clisp.org>
86113
86114                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86115                 function declarations.
86116                 * unsetenv.c (unsetenv): Likewise.
86117
86118         2002-03-04  Bruno Haible  <bruno@clisp.org>
86119
86120                 Portability to AIX 4.3.3.
86121                 * unsetenv.c: New file, extracted from setenv.c.
86122                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86123
86124         2001-12-20  Bruno Haible  <bruno@clisp.org>
86125
86126                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86127                 use malloc instead. For SunOS 4.
86128
86129         2001-12-11  Bruno Haible  <bruno@clisp.org>
86130
86131                 * setenv.c: Declare alloca.
86132                 (compar_fn_t): New typedef.
86133                 (KNOWN_VALUE, STORE_VALUE): Use it.
86134
86135         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86136         setenv.h.
86137
86138 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86139
86140         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86141         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86142         Choose values that are less likely to collide with system fnmatch
86143         options.
86144         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86145         defined (e.g., a pure POSIX system).
86146         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86147         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86148
86149 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86150
86151         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86152         a pain in practice to deal with generated m4 files.  This change
86153         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86154
86155         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86156         and jm-glibc-io.m4, as they are no longer a special case.
86157         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86158         kludge and the auto-generation stuff.  Check only whether the
86159         functions are declared, not whether they exist, since older hosts
86160         that don't declare the functions can't use the optimization anyway.
86161
86162 2002-12-06  Jim Meyering  <jim@meyering.net>
86163
86164         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86165
86166         Merge in changes from libc's misc/error.c, in preparation
86167         for the merge of gnulib's changes back into libc.
86168
86169         * lib/error.c (_): Define only if not already defined.
86170         Move definition to follow all #include directives.
86171         Include unlocked-io.h only if !_LIBC.
86172         [_LIBC]: Include <libio/libioP.h>.
86173         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86174         (fflush): Tweak definition to use INTUSE.
86175         (putc): Define.
86176
86177 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86178
86179         * lib/alloca.c [defined emacs]: Include "lisp.h".
86180         (xalloc_die) [defined emacs]: New macro.
86181         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86182         [! defined emacs]: Include <xalloc.h>.
86183         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86184         (pointer): Typedef to POINTER_TYPE *.
86185         (malloc): Remove decl; we now always use xmalloc.
86186         (alloca): Use old-style definition, since Emacs needs this.
86187         Check for arithmetic overflow when computing combined size.
86188
86189 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86190
86191         Do not generate unlocked-io.h automatically, since it's easier to
86192         maintain it by hand.
86193
86194         * lib/unlocked-io.h: New file, from GNU diffutils,
86195         but with proper copyright notice and attribution.
86196         * lib/gen-uio: Remove.
86197         * lib/Makefile.am: Add copyright notice.
86198         (libfetish_a_SOURCES): Add unlocked-io.h.
86199         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86200         (DISTCLEANFILES, io_functions): Remove macros.
86201         (EXTRA_DIST): Remove gen_uio.
86202         (unlocked-io.h): Remove rule.
86203
86204 2002-12-04  Jim Meyering  <jim@meyering.net>
86205
86206         Reflect the fact that stat.c and lstat.c are no longer generated.
86207         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86208         (DISTCLEANFILES): Likewise.
86209         (EXTRA_DIST): Likewise.
86210         (all_local): Don't depend on stat.c or lstat.c.
86211         (stat.c, lstat.c): Remove rules.
86212         (EXTRA_DIST): Remove xstat.in.
86213
86214         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86215         * lib/stat.c: New file.  Contents mostly from xstat.in.
86216         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86217         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86218
86219         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86220         too.
86221         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86222
86223 2002-12-03  Jim Meyering  <jim@meyering.net>
86224
86225         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86226         but not semantics, to minimize the differences between these two files.
86227         (safe_read): Change comment to mention SAFE_READ_ERROR.
86228
86229         * lib/safe-read.c (IS_EINTR): Define.
86230         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86231
86232 2002-12-02  Jim Meyering  <jim@meyering.net>
86233
86234         * lib/safe-read.c (EINTR): Define.
86235         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86236         (INT_MAX): Provide fallback.
86237         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86238
86239         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86240
86241 2002-12-02  Bruno Haible  <bruno@clisp.org>
86242
86243         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86244         Define, taken from safe-read.c.
86245         (INT_MAX): Provide fallback.
86246         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86247         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86248
86249         * lib/safe-read.c (EINTR): Remove definition.
86250         (safe_read): Don't use EINTR if it is absent.
86251
86252 2002-12-01  Jim Meyering  <jim@meyering.net>
86253
86254         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86255         zero.
86256         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86257
86258 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86259
86260         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86261         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86262         with `if (! (value < limit)) abort ();', for readability.
86263
86264 2002-11-26  Karl Berry  <karl@gnu.org>
86265
86266         * lib/strdup.c: copy from libc again, with jim's ok.
86267         * lib/.cppi-disable: re-add strdup.c
86268
86269 2002-11-25  Karl Berry  <karl@gnu.org>
86270
86271         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86272         instead of "strtol.c".
86273
86274 2002-11-25  Karl Berry  <karl@gnu.org>
86275
86276         * config/install-sh: update from automake for variable quoting, $0 in
86277         error msgs, etc.
86278
86279         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86280         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86281         entry.
86282
86283 2002-11-25  Jim Meyering  <jim@meyering.net>
86284
86285         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86286
86287 2002-11-24  Karl Berry  <karl@gnu.org>
86288
86289         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86290         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86291
86292 2002-11-24  Jim Meyering  <jim@meyering.net>
86293
86294         Update from coreutils:
86295
86296         * lib/mktime.c: Merge in changes from libc.
86297
86298         Avoid a link-time failure on some Linux systems.
86299         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86300         (otherwise).
86301         (__mon_yday): Declare with the STATIC attribute.
86302         (__mktime_internal): Likewise.
86303         Based on a report from Greg Schafer.
86304
86305 2002-11-23  Jim Meyering  <jim@meyering.net>
86306
86307         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86308         Use `unsigned', not `int', as type of index.
86309
86310         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86311
86312         * lib/fsusage.c: Remove unneeded parentheses around operands of
86313         `defined'.
86314
86315 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86316
86317         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86318         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86319         so that we can be included first.
86320         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86321         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86322         No need to include stddef.h or sys/types.h any more.
86323         Surround local include files with "", not "<>".
86324         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86325         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86326         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86327         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86328         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86329         (ISPRINT): Remove; no longer needed now that we assume C89.
86330
86331         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86332         Preserve errno.
86333
86334         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86335         quotearg_char): Use SIZE_MAX rather than
86336         (size_t) -1 when we are talking about "infinity".
86337
86338         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86339
86340 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86341
86342         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86343         hint that one should use `if (! x) abort ();' rather than `assert
86344         (x);', and anyway it's one less thing to worry about configuring.
86345         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86346         hash_rehash, hash_insert): Use abort rather than assert.
86347
86348 2002-11-22  Bruno Haible  <bruno@clisp.org>
86349
86350         * lib/safe-read.h: Assume C89. Add comments.
86351         (safe_read): Change return type to size_t.
86352         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86353         byte counts > SSIZE_MAX correctly.
86354         * lib/safe-write.h: New file.
86355         * lib/safe-write.c: New file.
86356         * lib/full-read.h: New file.
86357         * lib/full-read.c: New file.
86358         * lib/full-write.h: Assume C89. Add comments.
86359         * lib/full-write.c: Include safe-write.h.
86360         (full_write): Rewritten to use safe_write.
86361         Suggested by Jim Meyering and Paul Eggert.
86362
86363 2002-11-21  Jim Meyering  <jim@meyering.net>
86364
86365         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86366
86367         Merge in changes from the coreutils.
86368
86369         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86370         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86371         <stdint.h>.
86372         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86373         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86374         int.  Work more efficiently if X is the same width as uintmax_t.
86375         Do not compare X to -1, to avoid bogus compiler warning.
86376         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86377         Don't assume that f_frsize and f_bsize are the same type.
86378
86379         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86380         warning on FreeBSD.
86381
86382         * lib/makepath.c (make_path): Restore umask *before* creating the final
86383         component.
86384         (make_path): Minor reformatting.
86385
86386         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86387         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86388         HAVE_MALLOC/HAVE_REALLOC.
86389
86390         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86391         dummy ones.  At least on GNU/Linux systems, `auto' means something
86392         else.
86393         From Michael Stone.
86394
86395 2002-11-21  Bruno Haible  <bruno@clisp.org>
86396
86397         Remove case insensitive option matching.
86398         * lib/argmatch.h (argcasematch): Remove declaration.
86399         (ARGCASEMATCH): Remove macro.
86400         (__xargmatch_internal): Remove case_sensitive argument.
86401         (XARGMATCH): Update.
86402         (XARGCASEMATCH): Remove macro.
86403         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86404         case_sensitive argument.
86405         (argcasematch): Remove function.
86406         (__xargmatch_internal): Remove case_sensitive argument.
86407         (main): Use XARGMATCH instead of XARGCASEMATCH.
86408
86409         * lib/xmalloc.c: Change compile-time error message. Add comment about
86410         required autoconf version.
86411
86412 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86413
86414         Merge argmatch cleanups from Bison.  Assume C89.
86415
86416         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86417         Include stdlib.h, for EXIT_FAILURE.
86418         Always include <string.h>, since we assume C89.
86419         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86420         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86421         Include <stddef.h> instead, since it's all we need for size_t.
86422         (PARAMS): Remove.  All uses removed.
86423         (ARRAY_CARDINALITY): Do not bother to #undef.
86424         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86425         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86426         Remove unnecessary parentheses.
86427         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86428         Insert necessary parentheses.
86429         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86430         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86431
86432 2002-11-19  Bruno Haible  <bruno@clisp.org>
86433
86434         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86435         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86436
86437         * lib/mbswidth.h (PARAMS): Remove macro.
86438         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86439         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86440
86441         * lib/gcd.h (PARAMS): Remove macro.
86442         (gcd): Use ANSI C function declarations.
86443         * lib/gcd.c (gcd): Likewise.
86444
86445 2002-11-15  Bruno Haible  <bruno@clisp.org>
86446
86447         * lib/strcspn.c: Include <stddef.h>.
86448         (strcspn): Use ANSI C function declaration. Change return type to
86449         size_t. Use NULL.
86450         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86451         (strpbrk): Use NULL.
86452         * lib/strpbrk.h (PARAMS): Remove macro.
86453         (strpbrk): Use ANSI C function declaration.
86454         * lib/strstr.c: Don't include <sys/types.h>.
86455         * lib/strstr.h (PARAMS): Remove macro.
86456         (strstr): Use ANSI C function declarations.
86457
86458 2002-11-14  Karl Berry  <karl@gnu.org>
86459
86460         * config/mkinstalldirs: `do' on separate line, instead of
86461         `for var; do'.
86462
86463 2002-11-06  Bruno Haible  <bruno@clisp.org>
86464
86465         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86466         * lib/gcd.c (gcd): Likewise.
86467
86468 2002-11-05  Bruno Haible  <bruno@clisp.org>
86469
86470         * lib/gcd.h: New file, from gettext-0.11.5.
86471         * lib/gcd.c: New file, from gettext-0.11.5.
86472
86473 2002-11-05  Bruno Haible  <bruno@clisp.org>
86474
86475         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86476         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86477         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86478         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86479
86480         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86481         <libintl.h>.
86482         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86483         <libintl.h>.
86484
86485         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86486         * lib/human.c: Include gettext.h instead of <libintl.h>.
86487         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86488         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86489         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86490         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86491         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86492         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86493         (textdomain): Remove definition.
86494         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86495
86496         * lib/long-options.c: Remove include of <libintl.h> and definition of
86497         _.
86498         * lib/same.c: Remove include of <libintl.h> and definition of _.
86499
86500 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86501
86502         * lib/config.charset: A few additions for Solaris.
86503
86504 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86505
86506         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86507         * lib/localcharset.c (locale_charset): Declare as extern "C".
86508
86509 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86510
86511         * lib/config.charset: msdos in uk_UA uses CP1125.
86512
86513 2002-11-04  Bruno Haible  <bruno@clisp.org>
86514
86515         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86516         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86517         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86518         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86519         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86520
86521 2002-11-04  Bruno Haible  <bruno@clisp.org>
86522
86523         * lib/localcharset.c (locale_charset): Don't return an empty string.
86524
86525 2002-11-04  Bruno Haible  <bruno@clisp.org>
86526
86527         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86528         aliases.
86529
86530 2002-11-04  Bruno Haible  <bruno@clisp.org>
86531
86532         * lib/config.charset: Update for newest glibc. Add canonical names
86533         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86534
86535 2002-11-04  Bruno Haible  <bruno@clisp.org>
86536
86537         * lib/config.charset: Add support for NetBSD.
86538
86539 2002-11-04  Bruno Haible  <bruno@clisp.org>
86540
86541         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86542
86543 2002-11-01  Bruno Haible  <bruno@clisp.org>
86544
86545         * configure.in: Add AC_CONFIG_AUX_DIR call.
86546         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86547         test/Makefile.
86548         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86549
86550 2002-09-28  Karl Berry  <karl@gnu.org>
86551
86552         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86553         installed automake until the next release, since changes have been
86554         made.
86555
86556 2002-09-25  Karl Berry  <karl@gnu.org>
86557
86558         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86559         * lib/getopt*: copy from libc/posix.
86560         * lib/gettext.h: copy from gettext.
86561         * lib/.cppi-disable: add strdup.c, gettext.h.
86562
86563 2002-09-25  Karl Berry  <karl@gnu.org>
86564
86565         * config/srclist.txt: enable gettext.h check.
86566         * config/config.{guess,sub}: update from prep.
86567         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86568                 from automake 1.6.3.
86569         See srclist*.
86570
86571 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86572
86573         * regex.c (PATFETCH): Remove the translating fetch.
86574         (PATFETCH_RAW): Rename to PATFETCH.
86575         (set_image_of_range): New fun.
86576         (SET_RANGE_TABLE_WORK_AREA): Use it.
86577         (regex_compile): Don't translate the pattern chars so eagerly.
86578         Only do it when inserting an `exactn' bytecode or when handling
86579         a char-range.
86580         (mutually_exclusive_p): Avoid empty statement.
86581
86582 2002-07-06  Jim Meyering  <meyering@lucent.com>
86583
86584         * m4/README: Don't mention Makefile.am.in.
86585         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86586
86587 2002-07-01  Jim Meyering  <meyering@lucent.com>
86588
86589         * lib/c-stack.c: Include sys/time.h.
86590         From Volker Borchert.
86591
86592 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86593
86594         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86595
86596 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86597
86598         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86599         New macro.  Use it uniformly instead of
86600         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86601         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86602         reported by Vin Shelton.
86603
86604 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86605
86606         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86607         Do not assume SA_SIGINFO behavior.
86608         Bug reported by Jim Meyering on NetBSD 1.5.2.
86609
86610 2002-06-22  Jim Meyering  <meyering@lucent.com>
86611
86612         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86613         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86614
86615         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86616         now that configure.ac uses AC_GNU_SOURCE.
86617         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86618         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86619
86620         Update to latest tools.  Suggestions from Paul Eggert.
86621         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86622         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86623         * m4/fnmatch.m4: Likewise.
86624         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86625         to AC_HEADER_STDBOOL
86626
86627 2002-06-22  Jim Meyering  <meyering@lucent.com>
86628
86629         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86630         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86631
86632 2002-06-22  Jim Meyering  <meyering@lucent.com>
86633
86634         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86635
86636         * lib/exitfail.c, exitfail.h: Likewise.
86637         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86638
86639         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86640         of fnmatch.h.
86641         (EXTRA_DIST): Add fnmatch_loop.c.
86642         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86643
86644         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86645         * lib/fnmatch.c: Update from diffutils-2.8.2.
86646         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86647         * lib/fnmatch.h: Remove file.
86648
86649 2002-06-21  Jim Meyering  <meyering@lucent.com>
86650
86651         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86652         * m4/mbrtowc.m4: Likewise.
86653
86654         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86655         * m4/mbswidth.m4: Reflect name change:
86656         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86657         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86658
86659         * m4/lib-link.m4: Update from gettext-0.11.2.
86660         * m4/gettext.m4: Likewise.
86661
86662         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86663         From Alfred M. Szmidt.
86664
86665 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86666
86667         * lib/file-type.h: Report an error if neither S_ISREG nor
86668         S_IFREG is defined, instead of using a test specific to glibc
86669         2.2.  This should be safe, since POSIX requires S_ISREG and
86670         Unix Version 7 had S_IFREG.  We don't need to check for
86671         <sys/types.h> since we don't use any symbols that it defines.
86672
86673 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86674
86675         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86676         $@-t, so that each temporary file name is unique and valid in the first
86677         8 characters, for operation under DOS.
86678
86679 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86680
86681         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86682
86683 2002-06-15  Jim Meyering  <meyering@lucent.com>
86684
86685         Work even with DJGPP 2.03, which lacks support for symlinks.
86686         From Richard Dawe.
86687         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86688         is defined.
86689         * lib/lchown.c (S_ISLNK): Likewise.
86690
86691 2002-06-15  Jim Meyering  <meyering@lucent.com>
86692
86693         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86694         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86695         have been included before this file.
86696
86697 2002-06-14  Jim Meyering  <meyering@lucent.com>
86698
86699         * lib/file-type.h: Use the version from diffutils-2.8.2.
86700         * lib/file-type.c: Likewise.
86701
86702 2002-06-07  Jim Meyering  <meyering@lucent.com>
86703
86704         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86705         They're needed at least for NetBSD 1.5.2.
86706         ($statxfs_includes): Include those same headers.
86707         ($statxfs_includes): Include sys/vfs.h if available.
86708         ($statxfs_includes): Likewise for sys/statvfs.h.
86709         Check for the following members in both structs statfs and statvfs:
86710         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86711
86712 2002-06-01  Jim Meyering  <meyering@lucent.com>
86713
86714         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86715         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86716
86717 2002-05-28  Jim Meyering  <meyering@lucent.com>
86718
86719         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86720         Reported by Volker Borchert.
86721
86722 2002-05-27  Jim Meyering  <meyering@lucent.com>
86723
86724         Fix a problem seen only on nonconforming systems whereby ls.c's
86725         use of localtime, and then of gettimeofday would cause trouble:
86726         the localtime call used to initialize rpl_gettimeofday's save
86727         mechanism would clobber ls's current local time information so
86728         that in any long listing the first file would always be listed
86729         with date 1970-01-01.  Analysis by Volker Borchert.
86730
86731         * lib/gettimeofday.c (localtime): Undefine.
86732         (rpl_localtime): New function.
86733
86734 2002-05-27  Jim Meyering  <meyering@lucent.com>
86735
86736         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86737         localtime.
86738
86739         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86740         use the replacement function; it wouldn't resolve at link time.
86741         Reported by Volker Borchert.
86742
86743 2002-05-22  Jim Meyering  <meyering@lucent.com>
86744
86745         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86746         file-type.h.
86747         * lib/file-type.h: New file.
86748         * lib/file-type.c (file_type): New file/function.  Extracted from
86749         diffutils.
86750
86751 2002-04-30  Jim Meyering  <meyering@lucent.com>
86752
86753         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86754
86755 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86756
86757         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86758
86759 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86760
86761         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86762         Do not check for alloca.h (no longer used) or stdbool.h (was never
86763         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86764
86765 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86766
86767         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86768
86769 2002-04-29  Jim Meyering  <meyering@lucent.com>
86770
86771         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86772         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86773         Use AC_FUNC_STRNLEN here instead.
86774
86775         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86776         With autoconf-2.53a, it's part of AC_PROG_CC.
86777
86778 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86779
86780         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86781         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86782
86783 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86784
86785         * lib/sig2str.h, lib/sig2str.c: New files.
86786         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86787
86788 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86789
86790         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86791         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86792         of 127, since 64 is the largest conceivable number for ancient
86793         nonstandard hosts.
86794         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86795
86796 2002-04-28  Jim Meyering  <meyering@lucent.com>
86797
86798         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86799
86800 2002-04-24  Jim Meyering  <meyering@lucent.com>
86801
86802         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86803         (jm_PREREQ): Use it.
86804
86805         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86806         mach/mach.h fcntl.h.
86807         Check for this function: setlocale.
86808
86809 2002-04-24  Jim Meyering  <meyering@lucent.com>
86810
86811         * lib/gettext.h: New file, from Gettext.
86812         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86813         (libfetish_a_SOURCES): Add gettext.h.
86814
86815 2002-04-16  Jim Meyering  <meyering@lucent.com>
86816
86817         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86818         ut_pid, ut_id, ut_exit.
86819
86820 2002-04-16  Jim Meyering  <meyering@lucent.com>
86821
86822         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86823         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86824         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86825
86826 2002-04-12  Jim Meyering  <meyering@lucent.com>
86827
86828         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86829         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86830         existence of the getmntinfo function.  Needed for Darwin 5.3.
86831
86832         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86833         This is necessary at least on Darwin 5.3.
86834
86835         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86836         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86837         strnlen.o in the library, and that makes some versions of ranlib
86838         object.
86839
86840 2002-04-12  Jim Meyering  <meyering@lucent.com>
86841
86842         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86843
86844 2002-04-09  Jim Meyering  <meyering@lucent.com>
86845
86846         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86847         to be more precise.  Rather than saying we're checking whether the
86848         function `works', say what we're testing.
86849         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86850         Reported by Bruno Haible.
86851
86852 2002-03-10  Jim Meyering  <meyering@lucent.com>
86853
86854         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86855         Suggestion from Santiago Vila.
86856
86857 2002-03-08  Jim Meyering  <meyering@lucent.com>
86858
86859         * lib/rename.c: Mention that this wrapper is needed also on
86860         mips-dec-ultrix4.4 systems.
86861
86862 2002-03-02  Jim Meyering  <meyering@lucent.com>
86863
86864         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86865         not HAVE_CLOCK_SETTIME.
86866
86867 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86868
86869         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86870         Check for clock_settime.
86871
86872 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86873
86874         * lib/nanosleep.h: Rename to....
86875         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86876
86877         * lib/gettime.c: New file.
86878         * lib/settime.c: New file.
86879         * lib/stime.c: Remove.
86880
86881         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86882         timespec.h.  Remove nanosleep.h.
86883
86884 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86885
86886         * m4/acl.m4: New file.
86887         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86888         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86889
86890 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86891
86892         * lib/acl.c, lib/acl.h: New files.
86893         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86894
86895 2002-02-24  Jim Meyering  <meyering@lucent.com>
86896
86897         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86898         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86899         cause trouble.  Reported by Nelson Beebe.
86900
86901 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86902
86903         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86904         compilers that don't know that xalloc_die never returns.
86905
86906 2002-02-20  Jim Meyering  <meyering@lucent.com>
86907
86908         * lib/getdate.c: Regenerate using bison-1.33.
86909
86910 2002-02-17  Jim Meyering  <meyering@lucent.com>
86911
86912         * config/config.guess (main): Don't use `head -1'; it's no longer
86913         portable. Use `sed 1q' instead.
86914
86915 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86916
86917         * m4/codeset.m4: Upgrade to gettext-0.11.
86918         * m4/gettext.m4: Upgrade to gettext-0.11.
86919         * m4/glibc21.m4: Upgrade to gettext-0.11.
86920         * m4/iconv.m4: Upgrade to gettext-0.11.
86921         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86922         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86923         * m4/lib-ld.m4: New file, from gettext-0.11.
86924         * m4/lib-link.m4: New file, from gettext-0.11.
86925         * m4/lib-prefix.m4: New file, from gettext-0.11.
86926         * m4/progtest.m4: Upgrade to gettext-0.11.
86927
86928 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86929
86930         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86931         (jm_PREREQ): Use it.
86932
86933 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86934
86935         * lib/posixver.c, lib/posixver.h: New files.
86936         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86937
86938 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86939             Bruno Haible  <bruno@clisp.org>
86940
86941         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86942         (fwrite_success_callback): New declaration.
86943         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86944         print_unicode_char. Call failure callback instead of error.
86945         (fwrite_success_callback): New function.
86946         (exit_failure_callback): New function.
86947         (fallback_failure_callback): New function.
86948         (print_unicode_char): Call unicode_to_mb.
86949
86950 2002-01-26  Jim Meyering  <meyering@lucent.com>
86951
86952         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86953         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86954
86955 2002-01-26  Jim Meyering  <meyering@lucent.com>
86956
86957         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86958
86959 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86960
86961         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86962
86963 2002-01-22  Jim Meyering  <meyering@lucent.com>
86964
86965         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86966         Otherwise, some versions of automake would omit the rule that makes
86967         Makefile from Makefile.in.
86968
86969 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86970
86971         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86972         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86973         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86974         (memcoll): Set errno to zero if there is no error.
86975
86976         * lib/quotearg.c (quotearg_buffer_restyled):
86977         Fix bug with quoting buffers containing NUL when backslashing escapes.
86978         This bug was exposed by the other changes in this patch.
86979         (quotearg_n_options): New arg ARGSIZE.
86980         All callers changed.
86981         (quoting_options_from_style): New function.
86982         (quotearg_n_style): Use it.
86983         (quotearg_n_style_mem): New function.
86984
86985         * lib/quotearg.h (quotearg_n_style_mem): New function.
86986
86987 2002-01-19  Jim Meyering  <meyering@lucent.com>
86988
86989         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86990         Remove useless quotes: DF_PROG="df".
86991         * m4/strnlen.m4: New file.
86992
86993 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86994
86995         * lib/backupfile.c (ISDIGIT): Comment fix.
86996         * lib/getdate.y (ISDIGIT): Likewise.
86997         * lib/posixtm.c (ISDIGIT, year): Likewise.
86998         * lib/strverscmp.c (ISDIGIT): Likewise.
86999         * lib/userspec.c (ISDIGIT): Likewise.
87000
87001 2002-01-16  Jim Meyering  <meyering@lucent.com>
87002
87003         * lib/getdate.y: Add three semicolons, each just before a closing
87004         brace. Bison (as of version 1.31) no longer papers over that mistake.
87005
87006 2002-01-05  Jim Meyering  <meyering@lucent.com>
87007
87008         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87009
87010 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87011
87012         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87013         not silently exit merely because the output buffer happens to
87014         have nothing pending.
87015
87016 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87017
87018         See the big note in ../ChangeLog.
87019         * lib/human.c (suffixes): Prefer K to k for 1024.
87020         (generate_suffix_backwards): New function.
87021         (human_readable_inexact): Use it.
87022         * lib/xstrtol.c (__xstrtol): If there is no number but there
87023         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87024         Accept 'K' as well as 'k'.
87025
87026 2001-12-15  Jim Meyering  <meyering@lucent.com>
87027
87028         * lib/regex.h (__restrict_arr): Update from libc.
87029
87030         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87031         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87032         (STREQ): Define.
87033
87034 2001-12-14  Jim Meyering  <meyering@lucent.com>
87035
87036         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87037         Suggestion from Bruno Haible.
87038
87039 2001-12-10  Jim Meyering  <meyering@lucent.com>
87040
87041         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87042         xrealloc, Instead, include "xalloc.h".
87043         (initbuffer): Don't cast xmalloc return value to char*.
87044         (readline): Reword comment.
87045         Don't cast xrealloc return value to char*
87046         Return NULL, not 0.
87047
87048 2001-12-09  Jim Meyering  <meyering@lucent.com>
87049
87050         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87051         about `signed and unsigned type in conditional expression'.
87052         * lib/posixtm.c (posix_time_parse): Likewise.
87053
87054         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87055
87056         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87057         to avoid a pedantic warning.
87058
87059         * lib/getstr.c: Don't include assert.h.
87060         (getstr): Remove warning-evoking assertions.
87061         Return -1 if offset parameter is out of bounds.
87062         Change the type of a local from int to size_t.
87063
87064         * lib/strftime.c (my_strftime_localtime_r): Include this function
87065         definition in the `#if ! HAVE_TM_GMTOFF' block.
87066
87067         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87068         Include xalloc.h instead.
87069
87070 2001-12-02  Jim Meyering  <meyering@lucent.com>
87071
87072         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87073         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87074         included.
87075
87076         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87077         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87078
87079 2001-11-30  Akim Demaille  <akim@epita.fr>
87080
87081         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87082         before being defined.
87083
87084 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87085
87086         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87087         First arg is int, not unsigned.
87088         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87089         (SIZE_MAX, UINT_MAX): New macros.
87090         (quotearg_n_options): Abort if N is negative.
87091         Avoid overflow check on hosts where size_t is 64 bits and int
87092         is 32 bits, as overflow is impossible there.
87093         Fix off-by-one typo that caused unnecessary reallocation.
87094
87095 2001-11-27  Jim Meyering  <meyering@lucent.com>
87096
87097         * lib/tempname.c: Merge with version from libc.
87098         * lib/regex.c: Likewise.
87099
87100         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87101         systems for which STDC_HEADERS is 0, it was not included, resulting in
87102         a warning about an integer-to-pointer conversion problem with getenv.
87103         Reported by Volker Borchert.
87104
87105 2001-11-26  Jim Meyering  <meyering@lucent.com>
87106
87107         * lib/gtod.h: Remove file.
87108         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87109         * lib/gettimeofday.c: Don't include gtod.h.
87110         (GTOD_init): Remove function.
87111         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87112         Suggestion from Volker Borchert.
87113
87114 2001-11-23  Jim Meyering  <meyering@lucent.com>
87115
87116         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87117         it.
87118         * lib/hash.c (struct hash_table): Define it here instead.
87119
87120 2001-11-22  Jim Meyering  <meyering@lucent.com>
87121
87122         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87123
87124 2001-11-20  Jim Meyering  <meyering@lucent.com>
87125
87126         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87127         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87128
87129 2001-11-19  Jim Meyering  <meyering@lucent.com>
87130
87131         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87132         directory.  Use "conftestXXXXXX" as the template.
87133         Suggestion from Paul Eggert.
87134
87135         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87136         immediately, so the test doesn't mistakenly hit the max-open-files
87137         limit.
87138
87139 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87140
87141         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87142         (TEMPORARIES): New macro.
87143         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87144         removes an artificial limitation (e.g. HP-UX 10.20, where
87145         TMP_MAX is 17576).
87146
87147 2001-11-18  Jim Meyering  <meyering@lucent.com>
87148
87149         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87150
87151 2001-11-18  Jim Meyering  <meyering@lucent.com>
87152
87153         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87154         on SunOS 4.
87155
87156         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87157         files will be created before anything else.
87158
87159 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87160
87161         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87162         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87163
87164 2001-11-17  Jim Meyering  <meyering@lucent.com>
87165
87166         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87167         Prompted by a report from Bob Proulx.
87168
87169         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87170         Instead, require UTILS_FUNC_MKSTEMP.
87171
87172 2001-11-17  Jim Meyering  <meyering@lucent.com>
87173
87174         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87175         Now, that's done as part of AC_FUNC_STRTOD.
87176
87177 2001-11-17  Jim Meyering  <meyering@lucent.com>
87178
87179         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87180         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87181         rather than group writable.  Patch by Juan F. Codagnone.
87182
87183         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87184         xrealloc, Instead, include "xalloc.h".
87185
87186         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87187         Remove explicit declarations of xmalloc, xrealloc,
87188         and xstrdup.  Instead, include "xalloc.h".
87189
87190         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87191         unlocked-io.h.
87192         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87193         Likewise.
87194         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87195
87196         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87197         Reported by Padraig Brady.
87198
87199         * lib/mkstemp.c: #undef mkstemp.
87200         Include config.h.
87201         (rpl_mkstemp): Rename from mkstemp.
87202         Protoize.
87203
87204 2001-11-16  Jim Meyering  <meyering@lucent.com>
87205
87206         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87207         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87208         determine the amount of total physical memory, use pstat_getstatic.
87209         HPUX-11 doesn't define _SC_PHYS_PAGES.
87210         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87211         If sysconf couldn't be used to determine the amount of available
87212         physical memory, use both pstat_getstatic and pstat_getdynamic.
87213         Based on a patch from Bob Proulx.
87214
87215 2001-11-10  Jim Meyering  <meyering@lucent.com>
87216
87217         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87218         (jm_PREREQ): Use it.
87219
87220 2001-11-09  Jim Meyering  <meyering@lucent.com>
87221
87222         * m4/jm-macros.m4: Require autoconf-2.52f.
87223         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87224         Use these AC_-prefixed names, not the AM_-prefixed ones.
87225
87226         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87227
87228 2001-11-05  Jim Meyering  <meyering@lucent.com>
87229
87230         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87231
87232 2001-11-04  Jim Meyering  <meyering@lucent.com>
87233
87234         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87235         $DEFS.
87236
87237 2001-11-03  Jim Meyering  <meyering@lucent.com>
87238
87239         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87240         of AC_DEFUN.
87241
87242         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87243         know the name of the variable in the macro definition.
87244
87245 2001-11-03  Jim Meyering  <meyering@lucent.com>
87246
87247         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87248         in argmatch_to_argument call.
87249
87250         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87251         argument.
87252
87253         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87254         e.g., a fault due to an attempt to free a NULL pointer.
87255
87256 2001-11-01  Jim Meyering  <meyering@lucent.com>
87257
87258         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87259         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87260
87261 2001-11-01  Jim Meyering  <meyering@lucent.com>
87262
87263         * lib/dirfd.c, lib/dirfd.h: New files.
87264         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87265
87266         * lib/hash.c (hash_print) [TESTING]: Clean up.
87267
87268 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87269
87270         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87271         to avoid a warning if -Wall.
87272
87273 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87274
87275         * README: New file
87276         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87277         (per RMS's instructions, this is now the canonical source)
87278         * lgpl/, gpl/: New directories.
87279
87280 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87281
87282         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87283
87284 2001-10-21  Jim Meyering  <meyering@lucent.com>
87285
87286         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87287         this code would end up calling gettext even in packages built
87288         with --disable-nls.
87289         * lib/getopt.c (_): Likewise.
87290         * lib/regex.c (_): Likewise.
87291
87292 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87293
87294         * m4/error.m4 (jm_PREREQ_ERROR):
87295         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87296         AC_FUNC_STRERROR_R does that.
87297         Check for strerror declaration.
87298
87299         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87300         are supposed to have them these days.
87301         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87302         Merge changes from latest Autoconf CVS.
87303         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87304         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87305         POSIX decided to standardize on the int flavor of strerror_r.
87306
87307 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87308
87309         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87310         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87311         Use strerror_r that is only a macro, even if it is not a function.
87312         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87313         (private_strerror): Use prototypes, not old-style function definition.
87314         (print_errno_message): New function.
87315         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87316         char*-flavored one.
87317         (error_tail, error, error_at_line): Use it.
87318
87319 2001-10-11  Jim Meyering  <meyering@lucent.com>
87320
87321         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87322         and quote_n (1, ... to avoid clobbering a buffer.
87323
87324 2001-10-05  Jim Meyering  <meyering@lucent.com>
87325
87326         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87327         hash-pjw.h.
87328         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87329         * lib/hash-pjw.h: New file.
87330
87331 2001-09-30  Jim Meyering  <meyering@lucent.com>
87332
87333         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87334         `struct fsstat' has the `f_fstypename' member.
87335         Use that to define FS_TYPE, which is now used to make
87336         the getfsstat link test tighter.
87337
87338 2001-09-30  Jim Meyering  <meyering@lucent.com>
87339
87340         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87341         Include <sys/ucred.h>, for Apple Darwin.
87342         Include sys/mount.h and sys/fs_types.h only if available.
87343         (FS_TYPE): Define.
87344         (read_filesystem_list): Use FS_TYPE.
87345
87346 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87347
87348         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87349         a boolean context.
87350
87351 2001-09-29  Jim Meyering  <meyering@lucent.com>
87352
87353         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87354         [one-argument getmntent function]): Include stdio.h before mntent.h.
87355         SunOS 4.1.x needs it for the declaration of `FILE'.
87356         Patch by Volker Borchert.
87357
87358         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87359         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87360         sys/fs_types.h, and make the link-test for getfsstat guard #include
87361         directives with appropriate #if HAVE_*_H tests so that we can
87362         detect getfsstat on Apple Darwin1.3.7 systems.
87363         Reported by Nelson Beebe.
87364         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87365
87366 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87367
87368         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87369         #defines strtoimax.  Also treat the other strto* functions
87370         like strtoimax.
87371
87372         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87373         Check for strtoul and strtoumax,
87374         as those declarations are made even in the signed case.
87375         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87376         Likewise, for strtol and strtoimax.
87377
87378 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87379
87380         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87381         #defines strtoimax.  Also treat the other strto* functions
87382         like strtoimax.
87383
87384         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87385         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87386         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87387
87388 2001-09-26  Jim Meyering  <meyering@lucent.com>
87389
87390         Most macros in unlocked-io.h had the wrong number of arguments.
87391         * lib/gen-uio: New script.
87392         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87393         * lib/unlocked-io.hin: Remove file.
87394         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87395         rather than trying to embed it here.
87396         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87397         Reported by Padraig Brady.
87398
87399 2001-09-25  Volker Borchert  <bt@teknon.de>
87400
87401         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87402         `result'.
87403
87404 2001-09-24  Jim Meyering  <meyering@lucent.com>
87405
87406         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87407
87408 2001-09-23  Jim Meyering  <meyering@lucent.com>
87409
87410         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87411         instead of the mere test for existence of mntent.h.  The latter
87412         would get a false-positive on AIX 3.4 systems.
87413         In the outer getmntent if-block, don't die if neither of the getmntent
87414         tests succeeds.  Instead, just fall through and continue with the
87415         remaining tests.
87416
87417 2001-09-23  Jim Meyering  <meyering@lucent.com>
87418
87419         * lib/mountlist.c: Remove useless parentheses in #if directives.
87420         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87421         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87422
87423 2001-09-22  Jim Meyering  <meyering@lucent.com>
87424
87425         * m4/gettext.m4: New file.  From gettext.
87426         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87427         * m4/progtest.m4: Likewise
87428         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87429         * m4/glibc21.m4: Likewise.
87430
87431         * m4/libintl.m4: Remove.  No longer used.
87432
87433 2001-09-22  Jim Meyering  <meyering@lucent.com>
87434
87435         * lib/localcharset.c: Update from latest gettext.
87436         * lib/config.charset: Likewise.
87437
87438 2001-09-20  Jim Meyering  <meyering@lucent.com>
87439
87440         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87441         strtoimax.
87442         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87443         strtoumax.
87444
87445 2001-09-20  Jim Meyering  <meyering@lucent.com>
87446
87447         * lib/xstrtol.c (strtoimax): Guard declaration with
87448         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87449         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87450         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87451         (strtoumax): Likewise, for completeness (it wasn't necessary).
87452
87453 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87454
87455         * lib/strtoimax.c (HAVE_LONG_LONG):
87456         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87457         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87458         to work around bug in IBM C compiler.
87459
87460 2001-09-17  Jim Meyering  <meyering@lucent.com>
87461
87462         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87463         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87464         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87465         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87466         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87467         whenever the right hand side need not be expanded by the shell.
87468
87469 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87470
87471         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87472         library.  It's not correct, as some older glibcs are buggy.
87473         fnmatch wasn't fixed until glibc 2.2.
87474
87475         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87476         special shell magic here.
87477
87478 2001-09-16  Jim Meyering  <meyering@lucent.com>
87479
87480         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87481         * m4/jm-macros.m4: Require it.
87482
87483 2001-09-16  Jim Meyering  <meyering@lucent.com>
87484
87485         * lib/mkdir.c: New file.
87486
87487 2001-09-15  Jim Meyering  <meyering@lucent.com>
87488
87489         * m4/jm-macros.m4: Check for help2man.
87490
87491 2001-09-11  Jim Meyering  <meyering@lucent.com>
87492
87493         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87494         The body, by Paul Eggert, was moved here from configure.in.
87495         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87496
87497 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87498
87499         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87500         (jm_PREREQ): Use it.
87501
87502 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87503
87504         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87505         Use ssize_t, not int, to store result of readlink.
87506         Check for ssize_t overflow as well as size_t overflow,
87507         as POSIX says the result of readlink is implementation-defined
87508         when ssize_t overflows.
87509         Remove unnecessary cast to char*.
87510         Use free+malloc instead of realloc, as the storage doesn't need
87511         to be preserved and it's clearer and can be more efficient that way.
87512         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87513         * lib/xreadlink.h (xreadlink): Update prototype.
87514
87515 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87516
87517         * lib/xgetcwd.c: Revert some of the previous change; intead,
87518         fix the HAVE_GETCWD_NULL code to behave more like the
87519         !HAVE_GETCWD_NULL code used to.
87520
87521         Include "xalloc.h".
87522         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87523         invoke xalloc_die.
87524
87525 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87526
87527         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87528         sys/param.h, as pathmax.h includes them.
87529
87530 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87531
87532         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87533         (jm_PREREQ_XGETCWD): New macro.
87534
87535         * m4/getcwd.m4: New file.
87536
87537 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87538
87539         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87540         like the HAVE_GETCWD_NULL code.
87541         Include pathmax.h if not HAVE_GETCWD.
87542         Do not include xalloc.h.
87543         (INITIAL_BUFFER_SIZE): New symbol.
87544         Do not use xmalloc / xrealloc, since the caller is responsible for
87545         handling errors.  Preserve errno around `free' during failure.
87546         Do not overrun buffer when using getwd.
87547
87548 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87549
87550         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87551         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87552         getcwd (NULL, 0).
87553
87554 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87555
87556         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87557         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87558         spotted by Jim Meyering.
87559
87560 2001-09-03  Jim Meyering  <meyering@lucent.com>
87561
87562         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87563         failure.
87564
87565 2001-09-02  Jim Meyering  <meyering@lucent.com>
87566
87567         * lib/error.c: Update from GNU libc.
87568
87569 2001-09-01  Jim Meyering  <meyering@lucent.com>
87570
87571         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87572         Used by df.
87573
87574 2001-09-01  Jim Meyering  <meyering@lucent.com>
87575
87576         * lib/xreadlink.c: New file.
87577         * lib/xreadlink.h: New file.
87578         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87579         xreadlink.h.
87580
87581         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87582         doesn't conflict with sparc Solaris 7's definition in
87583         /usr/include/sys/int_types.h.
87584
87585         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87586         files.
87587         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87588         and strncasecmp as r-values.  Unixware didn't have declarations.
87589
87590 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87591
87592         * lib/xstrtol.h: Add copyright notice.
87593         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87594         LONGINT_INVALID_SUFFIX_CHAR.
87595
87596 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87597
87598         * lib/xstrtol.c (strtoimax): New decl.
87599
87600 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87601
87602         * lib/xgetcwd.c: Don't include pathmax.h.
87603         Include stdlib.h and unistd.h if available.
87604         Include xalloc.h.
87605         (xmalloc, xstrdup, free): Remove decls.
87606         (xgetcwd): Don't assume sizes fit in unsigned.
87607         Check for overflow when computing sizes.
87608         Simplify reallocation code.
87609
87610 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87611
87612         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87613         a directory's st_size can have an arbitrary value, so the old
87614         usage could waste an arbitrary amount of memory.  All uses
87615         changed.
87616         * lib/savedir.h: Update prototype.
87617
87618 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87619
87620         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87621
87622         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87623         old strtoimax.c.
87624
87625         Also, make the following further changes to make this file's
87626         configuration more similar to that of strtol.c:
87627         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87628         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87629         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87630         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87631         changed to signed values.
87632
87633         And make the following changes as well:
87634         Fix copyright notice, as 1999 was missing.
87635         (verify): New macro.
87636         (strtoimax): Check sizes at compile-time, not run-time.
87637         Prefer strtol to strtoll if both work.
87638         (main): Remove; it was not that useful and was a pain to maintain.
87639
87640         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87641
87642 2001-08-31  Jim Meyering  <meyering@lucent.com>
87643
87644         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87645         Use an initial, malloc'd, buffer of length 128 rather than
87646         a statically allocated one of length 1024.
87647
87648 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87649
87650         Simplify code, partly by assuming autoconf 2.52 semantics.
87651
87652         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87653
87654         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87655         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87656         All uses removed.
87657         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87658         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87659         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87660         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87661         jm_AC_HEADER_INTTYPES_H.
87662         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87663
87664         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87665
87666         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87667         Quote first arg of AC_DEFUN.
87668         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87669         since they are needed to parse the include file even if we need
87670         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87671         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87672         but with opposite signedness.
87673
87674 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87675
87676         Merge 'exclude' changes from tar 1.13.22.
87677         This fixes one or two unlikely storage allocation overflow bugs,
87678         but doesn't change user-visible behavior otherwise.
87679
87680 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87681
87682         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87683         (jm_PREREQ_EXCLUDE): New macro.
87684
87685 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87686
87687         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87688         tm to be declared.
87689
87690 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87691
87692         * lib/hash.c: Remove '2001' from copyright notice.
87693
87694 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87695
87696         * lib/full-write.h: New file.
87697         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87698         * lib/full-write.c: Correct credits, as cccp.c no longer
87699         exists and anyway it was so heavily changed from the old cccp
87700         code as to be unrecognizable.  Include full-write.h.
87701         (full_write): Return size_t, with short writes meaning failure.
87702         All callers changed.  This fixes a bug with large buffers
87703         on 64-bit hosts.
87704         * lib/utime.c: Include full-write.h.
87705
87706 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87707
87708         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87709         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87710         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87711         Include if available.
87712         (<xalloc.h>): Include
87713         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87714         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87715         collide with FNM macros.
87716         (struct patopts): New struct.
87717         (struct exclude): Use it, as exclude patterns now come with options.
87718         (new_exclude): Support above changes.
87719         (new_exclude, add_exclude_file):
87720         Initial size must now be a power of two to simplify overflow checking.
87721         (free_exclude, fnmatch_no_wildcards): New function.
87722         (excluded_filename): No longer requires options arg, as the options
87723         are determined by add_exclude.  Now returns bool, not int.
87724         (excluded_filename, add_exclude):
87725         Add support for the fancy new exclusion options.
87726         (add_exclude, add_exclude_file): Now takes int options arg.
87727         Check for arithmetic overflow when computing sizes.
87728         (add_exclude_file): xrealloc might modify errno, so don't
87729         realloc until after errno might be used.
87730
87731         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87732         New macros.
87733         (free_exclude): New decl.
87734         (add_exclude, add_exclude_file): Now takes int options arg.
87735         (excluded_filename): No longer requires options arg, as the options
87736         are determined by add_exclude.  Now returns bool, not int.
87737
87738 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87739
87740         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87741
87742 2001-08-27  Jim Meyering  <meyering@lucent.com>
87743
87744         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87745
87746         * lib/version-etc.c (N_): Remove definition.
87747         Revert most of last change.
87748         Instead, simply don't mark the `Copyright...' string for translation.
87749         Based on advice from Paul Eggert.
87750
87751         * lib/strtoxmax.c: Tweak comment.
87752
87753 2001-08-26  Jim Meyering  <meyering@lucent.com>
87754
87755         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87756
87757         * m4/xstrtoimax.m4: New file.
87758         * m4/xstrtoumax.m4: Add comments explaining why we
87759         AC_REPLACE_FUNCS(strtol).
87760
87761 2001-08-26  Jim Meyering  <meyering@lucent.com>
87762
87763         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87764         of copyright with `%s' so translators don't get an untranslated
87765         message in 2002.
87766         (COPYRIGHT_YEAR): Define.
87767         (version_etc): Use fprintf rather than fputs.
87768         Suggestion from Ulrich Drepper.
87769
87770         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87771
87772         * lib/strtoll.c: New file, from GNU libc.
87773         * lib/xstrtoimax.c: New file.
87774
87775         * lib/xstrtol.h: Add xstrtoimax.
87776         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87777         * lib/strtoimax.c: New file.  Likewise, but first define
87778         STRTOUXMAX_SIGNED.
87779
87780         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87781         ...
87782         * lib/strtoxmax.c: ... then renamed to this.
87783
87784 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87785
87786         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87787         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87788         (jm_AC_TYPE_INTMAX_T): New macro.
87789         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87790
87791         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87792
87793         * m4/longlong.m4: Renamed from ulonglong.m4.
87794         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87795         * m4/uintmax_t.m4: Removed.
87796
87797 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87798
87799         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87800         Port to Solaris 8, where 'sed' requires a space after the 'r'
87801         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87802         Redirect output to $tmp just once.
87803
87804 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87805
87806         * lib/addext.c (<errno.h>): Include.
87807         (errno): Declare if not defined.
87808         (addext): Work correctly when pathconf returns -1 and leaves
87809         errno alone because there is no limit.  Also, work even if
87810         pathconf returns a value greater than SIZE_MAX.
87811
87812 2001-08-12  Jim Meyering  <meyering@lucent.com>
87813
87814         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87815         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87816         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87817         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87818         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87819         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87820         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87821         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87822         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87823         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87824         utime.m4, utimes.m4, xstrtoumax.m4:
87825         Quote the first argument in each use of AC_DEFUN.
87826
87827 2001-08-12  Jim Meyering  <meyering@lucent.com>
87828
87829         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87830         Simply `return getcwd (NULL, 0);'.
87831         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87832         Use 1300 as initial value for length, not PATH_MAX.
87833
87834         * lib/pathmax.h: Clean up cpp syntax.
87835
87836 2001-08-12  Jim Meyering  <meyering@lucent.com>
87837
87838         * lib/gettimeofday.c: New file.
87839         * lib/gtod.h: New file.
87840         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87841
87842 2001-08-05  Jim Meyering  <meyering@lucent.com>
87843
87844         * m4/jm-macros.m4: Require autoconf-2.52.
87845
87846 2001-08-04  Jim Meyering  <meyering@lucent.com>
87847
87848         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87849         stmt, to get in sync with glibc.
87850
87851 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87852
87853         The following changes are from gettext 0.10.39 as maintained by
87854         Bruno Haible.
87855
87856         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87857         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87858         with inverted sense.  All uses changed.
87859
87860         * lib/mbswidth.c: Don't include <limits.h>.
87861         Include <stdlib.h> and <string.h> unconditionally.
87862         (iswcntrl, mbsinit, ISCNTRL): New macros.
87863         (mbsnwidth): Use K&R style function declarations.
87864         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87865         can optimize it when MB_CUR_MAX == 1.
87866         The width of control characters is zero, not 1.
87867
87868 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87869
87870         The following changes are from gettext 0.10.39 as maintained by
87871         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87872
87873         * m4/codeset.m4: Upgrade to serial AM1.
87874         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87875         all uses changed.  Quote first arg of AC_DEFUN.
87876         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87877
87878         * m4/iconv.m4: Upgrade to serial AM2.
87879         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87880         Add --with-libconv-prefix.
87881         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87882         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87883         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87884         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87885         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87886
87887         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87888         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87889         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87890         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87891         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87892         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87893         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87894         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87895         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87896
87897         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87898         string.h any more.
87899
87900         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87901         not the default value.
87902
87903         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87904         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87905         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87906         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87907         Also check for iswcntrl, used for wcwidth fallback.
87908         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87909         to Autoconf 2.13.
87910
87911 2001-08-03  Jim Meyering  <meyering@lucent.com>
87912
87913         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87914         as it was in the original.  Reported by Paul Eggert.
87915
87916 2001-07-16  Jim Meyering  <meyering@lucent.com>
87917
87918         * m4/gettimeofday.m4: New file.
87919         Prompted by a report from Bernhard Baehr.
87920
87921 2001-07-15  Jim Meyering  <meyering@lucent.com>
87922
87923         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87924         stuff. Now it's in ../Makefile.cfg.
87925
87926 2001-07-15  Jim Meyering  <meyering@lucent.com>
87927
87928         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87929         (BUILT_SOURCES): Add unlocked-io.h.
87930         (io_functions): Define.
87931         (unlocked-io.h): New rule.
87932         (DISTCLEANFILES): Add unlocked-io.h.
87933         (all-local): Depend on unlocked-io.h, to ensure it is created.
87934
87935         * lib/unlocked-io.hin: New file
87936
87937         * lib/regex.c: Update from glibc.
87938
87939 2001-07-05  Jim Meyering  <meyering@lucent.com>
87940
87941         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87942         recommendation.
87943         (libfetish_a_SOURCES): Put all .h files here instead.
87944         Remove a thus-exposed (better checks in automake) duplicate and
87945         two unnecessary .h files.
87946
87947 2001-07-04  Jim Meyering  <meyering@lucent.com>
87948
87949         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87950         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87951         distcheck failure.
87952
87953 2001-07-02  Jim Meyering  <meyering@lucent.com>
87954
87955         The following changes were prompted by suggestions from Bruno Haible.
87956
87957         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87958         is now generated.
87959         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87960         definition of EXTRA_DIST.
87961         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87962         ensure that the generated file is created/updated whenever the list
87963         of $(unlocked_functions) is changed.
87964         (jm-glibc-io.m4): New rule.
87965         (unlocked-io.h): New rule -- currently unused.
87966
87967 2001-06-24  Jim Meyering  <meyering@lucent.com>
87968
87969         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87970         unmatched right bracket, rather than kludging it with an extra,
87971         falsely-matching quote in a comment.  Patch by Akim Demaille.
87972
87973 2001-06-11  Jim Meyering  <meyering@lucent.com>
87974
87975         * lib/regex.c: Update from GNU libc.
87976
87977 2001-05-27  Jim Meyering  <meyering@lucent.com>
87978
87979         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87980         Check for ut_type in struct utmp.
87981
87982 2001-05-27  Jim Meyering  <meyering@lucent.com>
87983
87984         * lib/readutmp.h (UT_TYPE): Define.
87985
87986 2001-05-24  Jim Meyering  <meyering@lucent.com>
87987
87988         * lib/argmatch.c: Include "quote.h".
87989         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87990         quote function.  Reported by Göran Uddeborg.
87991
87992 2001-05-22  Jim Meyering  <meyering@lucent.com>
87993
87994         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87995         now that we use the package-supplied version unconditionally.
87996         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87997
87998 2001-05-21  Jim Meyering  <meyering@lucent.com>
87999
88000         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88001         shell syntax errors.
88002
88003 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88004
88005         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88006
88007 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88008
88009         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88010         Don't bother to check library strftime, since
88011         we'll be using our own my_strftime function anyway.
88012         Define my_strftime instead of strftime.
88013
88014 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88015
88016         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88017         which is not yet declared.
88018
88019 2001-05-15  Jim Meyering  <meyering@lucent.com>
88020
88021         * m4/regex.m4: Use proper quoting so brackets appear in the test
88022         program.
88023         Reported by, and with help from, Bruno Haible.
88024
88025 2001-05-13  Jim Meyering  <meyering@lucent.com>
88026
88027         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88028         undefined.
88029
88030 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88031
88032         dirname code cleanup.  base_name now behaves more compatibly
88033         with POSIX basename when given file names that have trailing
88034         slashes, and similarly for dir_name.  Add new primitives
88035         base_len and dir_len.  Put the directory-name-related decls
88036         into dirname.h.
88037
88038         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88039         * lib/backupfile.c (base_name): Likewise.
88040         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88041         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88042         * lib/makepath.c (strip_trailing_slashes): Likewise.
88043         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88044         ISSLASH): Likewise.
88045         * lib/rename.c (strip_trailing_slashes): Likewise.
88046         * lib/same.c (base_name): Likewise.
88047         * lib/stripslash.c (ISSLASH): Likewise.
88048
88049         * lib/addext.c: Include <dirname.h> after size_t is defined.
88050         * lib/backupfile.c: Likewise.
88051
88052         * lib/addext.c (addext): Use base_len to trim redundant
88053         trailing slashes instead of doing it ourselves.
88054         But do not trim the last slash if it is not redundant.
88055
88056         * lib/backupfile.c (find_backup_file_name,
88057         max_backup_version): Use base_len instead of rolling it ourselves.
88058         Handle the case of "" and (on DOS) "C:" correctly.
88059
88060         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88061         needed. Include <string.h>, <dirname.h>.
88062         (base_name): Allow file names ending in slashes, other than names
88063         that are all slashes.  In this case, return the basename followed
88064         by the slashes.  This is more general, and can be used in places
88065         where the original base_name purposely had an assertion failure.
88066         (base_len): New function.
88067
88068         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88069         Do not include <assert.h>; no longer needed.
88070         Include xalloc.h.
88071         (memrchr): Remove decl.
88072         (dir_name_r): Remove.
88073         (dir_len): Renamed from dirlen.  All callers changed.
88074         Rewrite in terms of base_name, for simplicity and consistency.
88075         (dir_name): Never return NULL.  All callers changed.
88076         Do not include <stdlib.h> in test program; no longer needed.
88077         return 0; is fine for test program.
88078
88079         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88080         New macros.
88081         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88082
88083         * lib/path-concat.c (path_concat): Use base_len to compute
88084         base length, not strlen; this means we cannot rely on memcpy
88085         to null-terminate.
88086
88087         * lib/same.c (STREQ): Remove.
88088         (same_name): Handle the case where the basename ends in trailing '/'.
88089
88090         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88091         a slash was stripped.  Do not strip the last slash after a
88092         file system prefix.
88093
88094 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88095
88096         * lib/Makefile.am (libfetish_a_SOURCES):
88097         Add strftime.c, since we now compile it on all hosts.
88098
88099         * lib/strftime.c (my_strftime):
88100         Define to nstrftime if emacs, but only if my_strftime is not defined.
88101         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88102         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88103         Add one more extra argument: a nanoseconds value.
88104         All uses changed.
88105         (ns): New macro.
88106         (my_strftime function): Add %N format.
88107         (emacs_strftimeu): Renamed from emacs_strftime,
88108         with extra ut argument.
88109
88110 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88111
88112         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88113
88114 2001-04-21  Jim Meyering  <meyering@lucent.com>
88115
88116         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88117         doesn't interfere.
88118
88119 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88120
88121         * m4/ftruncate.m4: Check for chsize.
88122         Link with ftruncate.o unconditionally if ftruncate is missing.
88123         This was required when cross-compiling to i586-mingw32msvc.
88124
88125 2001-04-08  Jim Meyering  <meyering@lucent.com>
88126
88127         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88128         recomputed; that's necessary when the offset spans a DST transition.
88129         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88130
88131 2001-04-02  Jim Meyering  <meyering@lucent.com>
88132
88133         * lib/regex.h, regex.c: Update from GNU libc.
88134
88135 2001-03-24  Jim Meyering  <meyering@lucent.com>
88136
88137         * m4/jm-macros.m4: Require autoconf-2.49d.
88138
88139 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88140
88141         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88142
88143 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88144
88145         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88146
88147 2001-03-17  Jim Meyering  <meyering@lucent.com>
88148
88149         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88150         now that the version in autoconf is equivalent.
88151         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88152
88153         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88154         Suggestion from Akim Demaille.
88155
88156         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88157         (jm_PREREQ_TEMPNAME): New function.
88158
88159 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88160
88161         * lib/tempname.c (uint64_t): Define to uintmax_t if
88162         not defined, and if UINT64_MAX is not defined.
88163         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88164         Reported by John David Anglin.
88165
88166 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88167
88168         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88169         resolve alias if codeset is empty.
88170         * lib/config.charset (BeOS): Use wildcard syntax.
88171
88172 2001-03-13  Jim Meyering  <meyering@lucent.com>
88173
88174         * lib/path-concat.c (path_concat)
88175         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88176         concatenating e.g., `C:' and `foo'.
88177         From Bruno Haible.
88178
88179 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88180
88181         * lib/localcharset.c (locale_charset): Don't use
88182         setlocale(LC_CTYPE,NULL). Don't return NULL.
88183         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88184
88185 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88186
88187         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88188         support for DOS/DJGPP.
88189
88190 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88191
88192         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88193         lacks mkstemp.  Compile our own tempname.c if we compile our own
88194         mkstemp.c, as mkstemp relies on tempname.
88195
88196 2001-03-01  Jim Meyering  <meyering@lucent.com>
88197
88198         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88199         AH_VERBATIM really does output its argument verbatim.
88200
88201 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88202
88203         * lib/Makefile.am (libfetish_a_SOURCES):
88204         Add dup-safer.c, fopen-safer.c.
88205         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88206
88207         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88208         * lib/unistd-safer.h: New files.
88209
88210 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88211
88212         The mkstemp replacement is taken from glibc 2.2.2, with some
88213         portability fixes for use outside glibc, as follows:
88214
88215         * lib/tempname.c (struct_stat64): New macro.
88216         (direxists, __gen_tempname): Use it.
88217         This avoids a portability problem with Solaris 8.
88218
88219         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88220         (<stddef.h>, <stdint.h>, <string.h>):
88221         Include only if STDC_HEADERS || _LIBC.
88222         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88223         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88224         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88225         (__set_errno): Define this macro if <errno.h> doesn't.
88226         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88227         Define these macros if <stdio.h> doesn't.
88228         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88229         Define these macros if <sys/stat.h>
88230         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88231         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88232         __xstat64): Define if not _LIBC.
88233         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88234         (__gen_tempname): Invoke gettimeofday only if
88235         HAVE_GETTIMEOFDAY || _LIBC;
88236         otherwise, fall back on plain "time".
88237         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88238
88239         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88240
88241         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88242
88243 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88244
88245         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88246
88247 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88248
88249         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88250         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88251         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88252         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88253
88254 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88255
88256         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88257         Remove workaround macros for hosts that have mbrtowc but not
88258         mbstate_t, as we now insist on proper declarations for both
88259         before using mbrtowc.
88260
88261 2001-02-17  Jim Meyering  <meyering@lucent.com>
88262
88263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88264         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88265         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88266         UnixWare 7.1.1.
88267
88268         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88269         rather than AC_CACHE_VAL.
88270
88271 2001-02-17  Jim Meyering  <meyering@lucent.com>
88272
88273         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88274         around included file name.
88275
88276         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88277
88278         * lib/strftime.c: Update from GNU libc (the only changes were to
88279         comments).
88280
88281 2001-02-17  Jim Meyering  <meyering@lucent.com>
88282
88283         * lib/regex.c: Update from libc.
88284
88285 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88286
88287         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88288         clash.
88289
88290 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88291
88292         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88293         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88294         Reported by Mark Hounschell via Paul Eggert.
88295
88296 2001-02-07  Jim Meyering  <meyering@lucent.com>
88297
88298         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88299
88300 2001-02-05  Jim Meyering  <meyering@lucent.com>
88301
88302         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88303         it includes the patch required for `large file' support with at least
88304         HP-UX's 10.20 /bin/cc.
88305
88306 2001-02-03  Jim Meyering  <meyering@lucent.com>
88307
88308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88309         AS_IF, now that it works once again (mysteriously).
88310         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88311
88312 2001-01-30  Jim Meyering  <meyering@lucent.com>
88313
88314         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88315         * m4/chown.m4: Rename conftestchown to conftest.chown.
88316         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88317         s/conftestdir2/conftest.d2/.
88318         * m4/utimes.m4: s/conftestdata/conftest.data/
88319         Inspired by Pavel Roskin's change in autoconf.
88320
88321 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88322
88323         * lib/config.charset: Update for FreeBSD 4.2.
88324
88325 2001-01-27  Jim Meyering  <meyering@lucent.com>
88326
88327         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88328         a use of AS_IF.
88329         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88330
88331 2001-01-26  Jim Meyering  <meyering@lucent.com>
88332
88333         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88334         quotearg.c includes it.
88335
88336 2001-01-26  Jim Meyering  <meyering@lucent.com>
88337
88338         * lib/quotearg.c: Include stddef.h.
88339         * lib/quote.c: Include stddef.h.
88340         Reported by Axel Kittenberger.
88341
88342         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88343         line in double quotes so that it evokes a better diagnostic.
88344         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88345         Reported by Axel Kittenberger.
88346
88347 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88348
88349         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88350         as if it was a `charset'.
88351
88352 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88353
88354         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88355         has const.
88356
88357 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88358
88359         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88360         to avoid a warning.  Add back 'const' to inptr.
88361
88362 2001-01-20  Jim Meyering  <meyering@lucent.com>
88363
88364         Be sure that headers are checked before used in code compiled
88365         for the type checks.
88366         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88367         In place of that, invoke jm_CHECK_ALL_TYPES.
88368         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88369         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88370         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88371         The check for ssize_t was mistakenly run before the test for unistd.h.
88372
88373         The configure-time check for stdbool.h was missing.
88374         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88375         (jm_PREREQ_HASH): New function.
88376
88377 2001-01-17  Jim Meyering  <meyering@lucent.com>
88378
88379         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88380         for autoconf-2.49c.
88381         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88382
88383 2001-01-16  Jim Meyering  <meyering@lucent.com>
88384
88385         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88386         From Bruno Haible.
88387
88388 2001-01-14  Jim Meyering  <meyering@lucent.com>
88389
88390         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88391         foo and bar.  Create conftestdir/ in the script, not in the C code.
88392         Remove directories in the script, not in the C code.
88393         Remove conftestdir{,2} before trying to create the directory.
88394         Make the entire configure script fail if the mkdir fails.
88395
88396 2001-01-14  Jim Meyering  <meyering@lucent.com>
88397
88398         * lib/rename.c: New file.  From Volker Borchert.
88399         Include stdlib.h, string.h or strings.h, and xalloc.h.
88400         Use strip_trailing_slashes rather than open-coding it.
88401
88402 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88403
88404         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88405
88406 2001-01-03  Jim Meyering  <meyering@lucent.com>
88407
88408         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88409         of local `inptr' to avoid warning with some system declarations of
88410         iconv.
88411
88412 2001-01-02  Volker Borchert  <bt@teknon.de>
88413
88414         * m4/rename.m4: New file.
88415         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88416
88417 2001-01-01  Jim Meyering  <meyering@lucent.com>
88418
88419         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88420         even on systems with utmpx.h.  It's necessary for the declaration of
88421         utmp's ut_user member.  Reported by Andreas Jaeger.
88422
88423         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88424         available. They are required for the declarations of getgrgid and
88425         getpwuid resp.
88426         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88427         Reported by Andreas Jaeger.
88428
88429 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88430
88431         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88432         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88433         so `make install' also works in VPATH builds.
88434
88435 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88436
88437         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88438         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88439         can be used in subdirectories.
88440
88441 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88442
88443         * lib/modechange.c: Do not assume that mode_t uses the
88444         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88445         the other-execute bit of FOO even if S_IXOTH != 1.
88446
88447         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88448         WOTH, XOTH, ALLM): New macros.
88449         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88450          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88451         Use them.
88452         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88453         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88454         (mode_compile):
88455         No need to use uintmax_t; unsigned long is long enough.
88456         Don't bother to get suffix since we don't use it.
88457
88458 2000-12-26  Jim Meyering  <meyering@lucent.com>
88459
88460         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88461         better with autoheader.
88462
88463 2000-12-24  Jim Meyering  <meyering@lucent.com>
88464
88465         * lib/hash.c (is_prime): Return explicit boolean values.
88466         (hash_get_first): Return NULL to appease Irix5.6's 89.
88467         Reported by Nelson Beebe.
88468
88469 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88470
88471         * lib/localcharset.c (locale_charset): Add support for Win32.
88472
88473 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88474
88475         * lib/physmem.h, lib/physmem.c: New files.
88476
88477         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88478         (noinst_HEADERS): Add physmem.h.
88479
88480         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88481         't' for compatibility with Solaris 8 sort.
88482
88483 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88484
88485         * lib/config.charset: Add support for BeOS.
88486
88487 2000-12-17  Jim Meyering  <meyering@lucent.com>
88488
88489         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88490         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88491
88492 2000-12-16  Jim Meyering  <meyering@lucent.com>
88493
88494         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88495         N and M) would have treated it like `chown N:N FILE'.
88496
88497         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88498
88499 2000-12-16  Jim Meyering  <meyering@lucent.com>
88500
88501         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88502         SHELLS_FILE to a file name that's useful on djgpp systems.
88503         Include stdlib.h.
88504         (ADDITIONAL_DEFAULT_SHELLS): Define.
88505         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88506         Based mostly on a patch from Prashant TR.
88507
88508 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88509
88510         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88511         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88512         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88513
88514 2000-12-08  Andreas Schwab  <schwab@suse.de>
88515
88516         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88517         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88518
88519 2000-12-07  Jim Meyering  <meyering@lucent.com>
88520
88521         * lib/stripslash.c (ISSLASH): Define.
88522         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88523         `/'.
88524         From Prashant TR.
88525
88526         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88527         (dir_name_r): Declare this function as static.
88528         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88529         manifest itself on a name containing a mix of slashes and
88530         backslashes.
88531         Make this function work with names starting with a DOS-style
88532         drive letter and colon prefix.
88533         (dir_name): Append `.' if necessary.
88534         Based mostly on patches from Prashant TR and Eli Zaretskii.
88535
88536         * lib/dirname.h (dir_name_r): Remove prototype.
88537
88538 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88539
88540         * m4/off_t-format.m4: Remove this file.
88541         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88542
88543 2000-12-06  Jim Meyering  <meyering@lucent.com>
88544
88545         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88546         replacement strtoull, we may well need the replacement strtoul, too.
88547         Check for declarations of strtoul and strtoull.
88548         Check for strtol.  Mainly as a cue to cause automake to include
88549         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88550         Check for limits.h -- strtol.c needs it.
88551
88552 2000-12-05  Jim Meyering  <meyering@lucent.com>
88553
88554         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88555
88556 2000-12-04  Jim Meyering  <meyering@lucent.com>
88557
88558         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88559         Also include memory.h, stdlib.h, unistd.h if appropriate.
88560         Reported by Andreas Jaeger (conflicting declaration of malloc).
88561
88562 2000-12-02  Jim Meyering  <meyering@lucent.com>
88563
88564         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88565         * m4/jm-macros.m4 (jm_MACROS): require it.
88566
88567 2000-12-02  Jim Meyering  <meyering@lucent.com>
88568
88569         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88570
88571 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88572
88573         * lib/memrchr.c: Include <config.h> before any system include file.
88574
88575 2000-11-30  Jim Meyering  <meyering@lucent.com>
88576
88577         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88578
88579 2000-11-30  Jim Meyering  <meyering@lucent.com>
88580
88581         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88582
88583 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88584
88585         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88586
88587 2000-11-26  Jim Meyering  <meyering@lucent.com>
88588
88589         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88590
88591 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88592
88593         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88594         size of (size_t) -1; it's not portable.
88595
88596 2000-11-17  Jim Meyering  <meyering@lucent.com>
88597
88598         * lib/strstr.c: Update from GNU libc.
88599
88600 2000-11-17  Akim Demaille  <akim@epita.fr>
88601
88602         * lib/obstack.h: Formatting changes.
88603         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88604         prevent type checking.
88605         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88606         cast the value to (void *): assigning a `foo *' to a `void *'
88607         variable is valid.
88608         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88609
88610 2000-11-16  Jim Meyering  <meyering@lucent.com>
88611
88612         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88613
88614 2000-11-11  Jim Meyering  <meyering@lucent.com>
88615
88616         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88617
88618 2000-11-10  Jim Meyering  <meyering@lucent.com>
88619
88620         * lib/obstack.h: Update from GNU libc.
88621         * lib/obstack.c: Likewise.
88622
88623 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88624
88625         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88626
88627 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88628
88629         * lib/getusershell.c (setusershell): Use rewind rather than
88630         fseek/fseeko, to avoid configuration hassles with fseeko.
88631         Don't bother opening SHELLS_FILE if shellstream is NULL;
88632         it's not necessary.
88633
88634 2000-11-05  Jim Meyering  <meyering@lucent.com>
88635
88636         * lib/makepath.h (make_dir): Declare.
88637         * lib/makepath.c (make_dir): Remove `static' attribute.
88638         Tweak a comment.
88639
88640 2000-11-04  Jim Meyering  <meyering@lucent.com>
88641
88642         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88643
88644 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88645
88646         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88647         last one in a bucket, advance to the next bucket.
88648
88649 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88650
88651         * lib/fnmatch.c: Do not comment out all the code if we are using
88652         the GNU C library, because in some cases we are replacing buggy
88653         code in the GNU C library itself.
88654
88655 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88656
88657         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88658         (regex_compile): Catch bogus \(\1\).
88659
88660 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88661
88662         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88663         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88664         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88665
88666 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88667
88668         * lib/error.h, getline.h, modechange.h:
88669         Remove "2000" from Copyright line, as the file hasn't been
88670         changed this year other than in the copyright notice.
88671
88672         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88673         was changed this year.
88674
88675 2000-10-29  Jim Meyering  <meyering@lucent.com>
88676
88677         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88678         renaming.
88679         * m4/ls-mntd-fs.m4: Likewise
88680
88681 2000-10-29  Jim Meyering  <meyering@lucent.com>
88682
88683         * lib/xstat.in: Fix grammar in comment.
88684
88685 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88686
88687         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88688         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88689         doesn't define __restrict_arr.
88690
88691 2000-10-28  Jim Meyering  <meyering@lucent.com>
88692
88693         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88694         (jm_PREREQ_MEMCHR): New function.
88695
88696 2000-10-28  Jim Meyering  <meyering@lucent.com>
88697
88698         * lib/memchr.c: Update from libc.
88699         Adjust for portability:
88700         [HAVE_STDLIB_H]: Include stdlib.h.
88701         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88702         Undef __memchr, too.
88703         [!weak_alias]: Define __memchr to memchr.
88704
88705         * lib/regex.c: Update from libc.
88706         * lib/regex.h: Likewise.
88707         * lib/getopt1.c: Likewise.
88708         * lib/memcmp.c: Likewise.
88709
88710         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88711         Avoid using fseek, when possible -- it's broken by design.
88712         Patch by Ulrich Drepper.
88713
88714 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88715
88716         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88717         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88718         Giving in to popular pressure to shut up the compiler with casts.
88719
88720 2000-10-26  Jim Meyering  <meyering@lucent.com>
88721
88722         * lib/strftime.c: Update from libc.
88723
88724 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88725
88726         * regex.c: More `unsigned char' -> `re_char' changes.
88727         Also change several `int' into `re_wchar_t'.
88728         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88729         (PUSH_FAILURE_POINTER): Don't cast any more.
88730         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88731         We want GCC to complain, since this piece of code makes
88732         re_match non-reentrant, which *should* be fixed.
88733         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88734         (EXTEND_BUFFER): Use RETALLOC.
88735         (SET_LIST_BIT): Don't cast.
88736         (re_wchar_t): New type.
88737         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88738         that those two functions will always properly return.
88739         (IMMEDIATE_QUIT_CHECK): Cast to void.
88740         (analyse_first): Use recursion rather than an explicit stack.
88741         (re_compile_fastmap): Can't fail anymore.
88742         (re_search_2): Don't check re_compile_fastmap for failure.
88743         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88744         Now also sets the new value (passed in a new argument).
88745         (re_match_2_internal): Use it.
88746         Also, use a new var `reg' of type size_t when looping through regs
88747         rather than reuse the inappropriate `mcnt'.
88748
88749 2000-10-25  Jim Meyering  <meyering@lucent.com>
88750
88751         * lib/obstack.c: Update from libc.
88752
88753 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88754
88755         * regex.c (regex_compile): Change the way of handling a range from
88756         a char less than 256 to a char not less than 256.
88757
88758 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88759
88760         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88761         NT-Emacs only.
88762         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88763         so that re_search functions only quit when callers expect them to.
88764
88765 2000-10-23  Jim Meyering  <meyering@lucent.com>
88766
88767         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88768         wrong.  That set_locale call must not have any side effects.
88769         From Paul Eggert.
88770
88771 2000-10-22  Jim Meyering  <meyering@lucent.com>
88772
88773         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88774         [CYCLIC]: Remove now-unused definition.
88775
88776         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88777         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88778         Suggestion from Ulrich Drepper.
88779
88780 2000-10-21  Jim Meyering  <meyering@lucent.com>
88781
88782         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88783         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88784         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88785
88786 2000-10-21  Jim Meyering  <meyering@lucent.com>
88787
88788         * lib/dirname.c (memrchr): Declare if necessary.
88789         (dir_name): Remove the restriction that there be no
88790         trailing slashes.  Now, this code skips past them, effectively
88791         ignoring them.
88792         [TEST_DIRNAME] (main): New unit tests.
88793
88794         * lib/memrchr.c: New file from GNU libc.
88795         Undef __memrchr, too.
88796         [!weak_alias]: Define __memrchr to memrchr.
88797         Guard weak_alias use with `#ifdef weak_alias'.
88798
88799 2000-10-21  Jim Meyering  <meyering@lucent.com>
88800
88801         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88802         (dir_name): Use dir_name_r.
88803         * lib/dirname.h (dir_name_r): Declare it.
88804
88805 2000-10-17  Jim Meyering  <meyering@lucent.com>
88806
88807         * lib/quote.h (PARAMS): Define and use.
88808         Reported by Akim Demaille.
88809
88810         * lib/getopt.c: Update from libc.
88811
88812 2000-10-16  Jim Meyering  <meyering@lucent.com>
88813
88814         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88815         setlocale.
88816         From Jan Fedak.
88817
88818 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88819
88820         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88821
88822 2000-09-25  Jim Meyering  <meyering@lucent.com>
88823
88824         * lib/md5.h (rol): Define (from GnuPG).
88825
88826         * lib/sha.c: Give credit (GnuPG) where due.
88827         (M): Use rol rather than open-coding it.
88828         Add a FIXME comment.
88829
88830 2000-09-21  Jim Meyering  <meyering@lucent.com>
88831
88832         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88833         Reported by Michael Stone.
88834
88835 2000-09-20  Jim Meyering  <meyering@lucent.com>
88836
88837         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88838         (noinst_HEADERS): Add sha.h.
88839         Based on code from Scott G. Miller and from GnuPG.
88840
88841 2000-09-18  Jim Meyering  <meyering@lucent.com>
88842
88843         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88844         LIBS. Otherwise, everyone ends up linking with -lelf for some
88845         configurations.
88846         Reported by Mike Stone.
88847
88848 2000-09-15  Jim Meyering  <meyering@lucent.com>
88849
88850         * lib/regex.c: Update from libc.
88851
88852 2000-09-10  Jim Meyering  <meyering@lucent.com>
88853
88854         * lib/getopt.c (_getopt_internal): Update from glibc.
88855
88856 2000-09-09  Jim Meyering  <meyering@lucent.com>
88857
88858         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88859         think it should be used as a general replacement for isascii.
88860         * lib/fnmatch.c: Likewise.
88861         * lib/mbswidth.c: Likewise
88862         * lib/regex.c: Likewise.
88863
88864         Don't use atoi.
88865         * lib/userspec.c: Include sys/param.h and limits.h.
88866         Include xstrtol.h.
88867         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88868         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88869         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88870         UID, GID.  Check range.
88871
88872 2000-09-06  Jim Meyering  <meyering@lucent.com>
88873
88874         * lib/getopt.c (_getopt_internal): Update from glibc.
88875
88876 2000-08-30  Jim Meyering  <meyering@lucent.com>
88877
88878         * lib/strftime.c: Merge in changes from GNU libc.
88879
88880 2000-08-26  Jim Meyering  <meyering@lucent.com>
88881
88882         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88883         * m4/fpending.m4: New file.
88884
88885 2000-08-26  Jim Meyering  <meyering@lucent.com>
88886
88887         * lib/closeout.c: Include "__fpending.h".
88888         (close_stdout_status): Return right away if there's nothing to flush.
88889
88890         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88891         * lib/__fpending.c: New file.
88892         * lib/__fpending.h: New file.
88893
88894 2000-08-20  Jim Meyering  <meyering@lucent.com>
88895
88896         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88897         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88898         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88899
88900 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88901
88902         Improve fileutils installation on systems where running
88903         programs (like install) can't be unlinked.
88904         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88905         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88906
88907 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88908
88909         Standardize on "memory exhausted" instead of "Memory exhausted"
88910         or "virtual memory exhausted".
88911         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88912         "virtual memory exhausted".
88913         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88914         our own message.
88915         * lib/userspec.c (parse_user_spec): Likewise.
88916         * lib/bumpalloc.h: comment fix
88917         * lib/same.c, userspec.c: Include xalloc.h.
88918
88919         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88920         not char *const and pointing to a constant array.
88921         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88922         (xrealloc): Comment fix.
88923
88924         * lib/userspec.c (parse_user_spec):
88925         Don't translate a message until just before returning,
88926         to avoid unnecessary translation.
88927
88928 2000-08-07  Jim Meyering  <meyering@lucent.com>
88929
88930         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88931         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88932         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88933         getgroups.c, gethostname.c, getopt.h, group-member.c,
88934         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88935         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88936         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88937         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88938         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88939         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88940         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88941         yesno.c: Back out Copyright date changes for each file with no change
88942         this year.  This eases coordination with other programs using the same
88943         source code modules.  From Paul Eggert.
88944
88945 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88946
88947         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88948         not char, for compatibility with glibc 2.1.3 strftime.c.
88949
88950 2000-08-03  Greg McGary  <greg@mcgary.org>
88951
88952         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88953         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88954         (EXTEND_BUFFER): Use them.
88955
88956 2000-08-01  Jim Meyering  <meyering@lucent.com>
88957
88958         * lib/dirname.c (ISSLASH): Define.
88959         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88960         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88961         both `\' and `/' may be use as path separators.
88962         Based on a patch from Prashant TR.
88963
88964 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88965
88966         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88967         slot vector a constant, since it might get modified.
88968
88969 2000-07-31  Jim Meyering  <meyering@lucent.com>
88970
88971         * lib/xmalloc.c: Use `virtual memory exhausted', not
88972         `Memory exhausted'.
88973         * lib/obstack.c (print_and_abort): Likewise.
88974
88975 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88976
88977         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88978         buffer, so that the caller can always quote one small
88979         component of a "memory exhausted" message in slot 0.
88980         From a suggestion by Jim Meyering.
88981
88982 2000-07-30  Jim Meyering  <meyering@lucent.com>
88983
88984         * lib/makepath.c (make_path): Quote the other instance, too.
88985
88986         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88987         (STATIC_BUF_SIZE): Define.
88988         (quotearg_n_options): Use only statically allocated storage when
88989         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88990         than STATIC_BUF_SIZE.
88991
88992 2000-07-29  Jim Meyering  <meyering@lucent.com>
88993
88994         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88995         * lib/dirname.c (dir_name): Likewise.
88996
88997         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88998         `/'.
88999
89000         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89001         (dir_name): Assert that there are no trailing slashes.
89002
89003 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89004
89005         * lib/mbswidth.h (mbswidth): Add a flags argument.
89006         (mbswidth): New declaration.
89007         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89008         * lib/mbswidth.c (mbswidth): Add a flags argument.
89009         (mbsnwidth): New function.
89010
89011 2000-07-24  Jim Meyering  <meyering@lucent.com>
89012
89013         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89014
89015 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89016
89017         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89018
89019 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89020
89021         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89022         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89023         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89024         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89025         invoke multibyte primitives.
89026
89027 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89028
89029         * lib/quotearg.c:
89030         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89031         so that mbstate_t is always defined.
89032
89033         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89034         be 1 in at least one GCC installation, and this configuration
89035         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89036         performance on hosts that have mbrtowc but have only unibyte
89037         locales, but I assume these hosts are rare.
89038
89039 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89040
89041         * lib/mbswidth.c (_XOPEN_SOURCE):
89042         Don't define; this causes problems on Solaris 7.
89043         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89044
89045 2000-07-23  Jim Meyering  <meyering@lucent.com>
89046
89047         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89048         too: getgrgid, getpwuid, getuid.
89049
89050 2000-07-23  Jim Meyering  <meyering@lucent.com>
89051
89052         * lib/basename.c (base_name): Add an assertion.
89053
89054 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89055
89056         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89057         shadow its mbsinit function.
89058
89059 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89060
89061         * lib/mbswidth.h: New file.
89062         * lib/mbswidth.c: New file.
89063         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89064         (noinst_HEADERS): Add mbswidth.h.
89065
89066 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89067
89068         * lib/config.charset: Add support for FreeBSD. Improve support for
89069         HP-UX and IRIX 6.
89070
89071 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89072
89073         * m4/mbswidth.m4: New file.
89074         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89075
89076 2000-07-15  Jim Meyering  <meyering@lucent.com>
89077
89078         * lib/makepath.c: Include quote.h.
89079         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89080         corresponding argument in a `quote (...)' call.
89081         Give better diagnostics.
89082
89083         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89084         (noinst_HEADERS): Add quote.h.
89085
89086         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89087         from tar's src/misc.c.
89088         * lib/quote.h: New file.  Prototypes for same.
89089
89090 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89091
89092         From a suggestion by Bruno Haible.
89093         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89094         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89095         to decide whether to define the BeOS workaround macro;
89096         this adjusts to the change to AC_MBSTATE_T.
89097
89098 2000-07-14  Jim Meyering  <meyering@lucent.com>
89099
89100         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89101         jm_AC_TYPE_UINTMAX_T.
89102
89103 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89104
89105         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89106
89107         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89108         quotearg_buffer_restyled): Add support for
89109         clocale_quoting_style.  Undo previous change to
89110         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89111         and "{RIGHT QUOTATION MARK}" msgids.
89112
89113 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89114
89115         From a suggestion by Bruno Haible.
89116         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89117         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89118         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89119         and mbstate_t, to a single-part test that simply defines mbstate_t.
89120         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89121         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89122
89123 2000-07-10  Jim Meyering  <meyering@lucent.com>
89124
89125         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89126
89127         * m4/gnu-source.m4: Output to confdefs.h directly.
89128         Suggestion from Akim Demaille.
89129
89130 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89131
89132         The old behavior of quoting `like this' doesn't look good with
89133         newer, ISO-style fonts.  See:
89134         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89135
89136         Instead, quote "like this" by default.  Let the translator
89137         tailor the locale-specific quoting behavior by providing
89138         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89139
89140         * lib/quotearg.c (N_): New macro.
89141         (gettext_default): New function.
89142         (quotearg_buffer_restyled): Use
89143         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89144         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89145
89146 2000-07-09  Jim Meyering  <meyering@lucent.com>
89147
89148         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89149         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89150
89151         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89152         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89153
89154 2000-07-09  Jim Meyering  <meyering@lucent.com>
89155
89156         * lib/Most files: Update copyright dates to include 2000.
89157
89158 2000-07-08  Jim Meyering  <meyering@lucent.com>
89159
89160         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89161         if not defined.
89162         (xgethostname): Remove now-unnecessary #ifdef.
89163         Move declaration of `err' into loop where it's used.
89164
89165 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89166         and Bruno Haible  <haible@clisp.cons.org>
89167
89168         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89169         only if the test for an object-type mbstate_t fails.  This
89170         prevents us from mistakenly reporting that mbstate_t is a
89171         system object type after we "#define mbstate_t int" to work
89172         around its lack.
89173
89174 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89175         and Bruno Haible  <haible@clisp.cons.org>
89176
89177         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89178
89179 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89180
89181         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89182         to strerror_r.
89183         Include <ctype.h> for use of isalpha.
89184
89185 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89186
89187         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89188         by allocating a larger buffer. Test the gethostname return value for
89189         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89190         returns an error and ENAMETOOLONG isn't defined.
89191
89192 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89193
89194         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89195         dimension.
89196
89197 2000-07-04  Jim Meyering  <meyering@lucent.com>
89198
89199         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89200         of the deprecated AC_CHECKING.
89201
89202 2000-07-04  Jim Meyering  <meyering@lucent.com>
89203
89204         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89205         Reported by Bruno Haible.
89206
89207 2000-07-04  Jim Meyering  <meyering@lucent.com>
89208
89209         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89210         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89211         lacks mbrtowc.
89212
89213 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89214
89215         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89216         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89217
89218 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89219         and Bruno Haible  <haible@clisp.cons.org>
89220
89221         * lib/quotearg.c (mbrtowc):
89222         Assign to *pwc, and return 1 only if result is nonzero.
89223         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89224
89225 2000-07-03  Jim Meyering  <meyering@lucent.com>
89226
89227         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89228
89229 2000-07-03  Jim Meyering  <meyering@lucent.com>
89230
89231         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89232         This is necessary to get a definition of e.g., UTMP_FILE on
89233         HP-UX 10.20.
89234         From Bob Proulx.
89235
89236 2000-07-02  Jim Meyering  <meyering@lucent.com>
89237
89238         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89239
89240         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89241         AC_LIBOBJ(function_name).
89242         * m4/chown.m4: Likewise.
89243         * m4/fnmatch.m4: Likewise.
89244         * m4/ftruncate.m4: Likewise.
89245         * m4/getgroups.m4: Likewise.
89246         * m4/getline.m4: Likewise.
89247         * m4/group-member.m4: Likewise.
89248         * m4/jm-macros.m4: Likewise.
89249         * m4/lstat.m4: Likewise.
89250         * m4/malloc.m4: Likewise.
89251         * m4/memcmp.m4: Likewise.
89252         * m4/nanosleep.m4: Likewise.
89253         * m4/putenv.m4: Likewise.
89254         * m4/realloc.m4: Likewise.
89255         * m4/regex.m4: Likewise.
89256         * m4/stat.m4: Likewise.
89257         * m4/strftime.m4: Likewise.
89258
89259 2000-07-02  Jim Meyering  <meyering@lucent.com>
89260
89261         * lib/quotearg.c (mbstate_t): Don't define here.
89262
89263 2000-07-02  Jim Meyering  <meyering@lucent.com>
89264
89265         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89266
89267 2000-07-01  Jim Meyering  <meyering@lucent.com>
89268
89269         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89270
89271 2000-07-01  Jim Meyering  <meyering@lucent.com>
89272
89273         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89274         problem.
89275
89276 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89277
89278         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89279         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89280
89281 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89282
89283         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89284         per change in ../m4/ls-mntd-fs.m4.
89285         (read_filesystem_list): Ignore symbolic links.
89286
89287 2000-06-29  Jim Meyering  <meyering@lucent.com>
89288
89289         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89290         for declaration of strcmp.
89291
89292         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89293
89294         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89295         Avoid warning by casting result to `char *' to remove `const'.
89296
89297 2000-06-28  Jim Meyering  <meyering@lucent.com>
89298
89299         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89300         included by quotearg.c, for which we perform this test.  From
89301         Bruno Haible.
89302
89303 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89304
89305         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89306         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89307         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89308
89309 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89310
89311         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89312
89313 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89314
89315         savedir now sets errno on failure and invokes xmalloc to get memory.
89316         Fix a couple of other minor bugs while we're at it.
89317
89318         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89319         (NAMLEN): Remove macro.
89320         (malloc, realloc): Remove decls.
89321         (stpcpy): Likewise.
89322         ("xalloc.h"): Include.
89323         (NAME_SIZE_DEFAULT): New macro.
89324         (savedir): Use xmalloc / xrealloc to allocate memory.
89325         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89326         Skip "" directory entries.
89327         Use strlen to calculate directory entry length, since the old method
89328         is rarely used these days and isn't worth supporting.
89329         Don't use a pointer after freeing it.
89330         Check for integer overflow when calculating allocation size.
89331         Use memcpy to copy entries, instead of stpcpy.
89332         Set errno properly when returning NULL.
89333         Check for readdir error.
89334
89335 2000-06-26  Jim Meyering  <meyering@lucent.com>
89336
89337         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89338
89339 2000-06-25  Jim Meyering  <meyering@lucent.com>
89340
89341         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89342         Linux header bug when _XOPEN_SOURCE is defined to 500.
89343
89344 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89345
89346         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89347         deficiency.
89348
89349 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89350
89351         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89352         Include xalloc.h.
89353         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89354
89355 2000-06-24  Jim Meyering  <meyering@lucent.com>
89356
89357         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89358         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89359         for which strerror does return char*, but which lacks a conveniently
89360         accessible declaration of the function.  If the compile-test says
89361         strerror_r doesn't work, then resort to a `run'-test that works on
89362         BeOS and segfaults on DEC Unix.
89363
89364 2000-06-24  Jim Meyering  <meyering@lucent.com>
89365
89366         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89367
89368 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89369
89370         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89371         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89372
89373 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89374
89375         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89376         (mbrtowc, mbstate_t): Define substitutes if
89377         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89378         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89379         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89380
89381 2000-06-23  Jim Meyering  <meyering@lucent.com>
89382
89383         * m4/afs.m4: Add missing AC_MSG_RESULT.
89384         Reported by Bruno Haible.
89385
89386         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89387         Suggestion from Bruno Haible.
89388
89389 2000-06-23  Jim Meyering  <meyering@lucent.com>
89390
89391         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89392
89393 2000-06-21  Jim Meyering  <meyering@lucent.com>
89394
89395         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89396
89397 2000-06-21  Jim Meyering  <meyering@lucent.com>
89398
89399         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89400         (noinst_HEADERS): Add getstr.h.
89401
89402         * lib/getline.c (getstr): Move into a separate file.
89403         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89404         the following changes: new parameter, delim2; both delim[12]
89405         parameters have type `int', not `char'.  The latter would lose
89406         with 8-bit delimiters.
89407         * lib/getstr.h: New file.
89408
89409 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89410
89411         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89412         than 1024, return a memory chunk of least possible size, instead
89413         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89414         Use free/xmalloc instead of xrealloc to avoid copying for very long
89415         paths.
89416
89417 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89418
89419         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89420         the empty string.
89421
89422 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89423
89424         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89425         address, not strdup.  Include <stdlib.h> and don't declare free().
89426
89427 2000-06-19  Jim Meyering  <meyering@lucent.com>
89428
89429         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89430
89431 2000-06-18  Jim Meyering  <meyering@lucent.com>
89432
89433         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89434
89435         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89436         `checking whether...' message to be consistent with that of the
89437         lstat test.
89438
89439 2000-06-18  Jim Meyering  <meyering@lucent.com>
89440
89441         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89442         Besides, these days every porting target provides a mkdir function.
89443
89444         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89445         needed. (this snippet comes from src/system.h).
89446
89447 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89448
89449         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89450
89451 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89452
89453         * lib/human.c (adjust_value): New function.
89454         (human_readable_inexact): Apply rounding style even when
89455         printing approximate values.
89456
89457 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89458
89459         * lib/human.c (human_readable_inexact): Allow an input block
89460         size that is not a multiple of the output block size, and vice versa.
89461         Reported by Piergiorgio Sartor.
89462
89463 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89464
89465         * lib/getdate.y (get_date): Apply relative times after time
89466         zone indicator, not before.  Reported by Todd A. Jacobs.
89467
89468 2000-06-13  Jim Meyering  <meyering@lucent.com>
89469
89470         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89471
89472         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89473
89474 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89475
89476         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89477
89478 2000-06-12  Jim Meyering  <meyering@lucent.com>
89479
89480         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89481         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89482         optional argument.
89483         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89484         the optional argument, `lib'.
89485
89486 2000-06-08  Jim Meyering  <meyering@lucent.com>
89487
89488         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89489
89490 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89491
89492         Rewrite largefile configuration so that we don't need to run
89493         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89494         AC_CANONICAL_HOST in configure.in -- jmm]
89495
89496         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89497         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89498         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89499         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89500         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89501         All uses changed.
89502         Instead of inspecting the output of getconf, try to compile the
89503         test program without and with the macro definition.
89504         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89505         for getconf.  Instead, check for the needed flags by compiling
89506         test programs.
89507
89508 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89509
89510         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89511
89512 2000-06-04  Jim Meyering  <meyering@lucent.com>
89513
89514         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89515         SunOS 4.1.4 for which gid_t is an unsigned type.
89516
89517 2000-06-03  Jim Meyering  <meyering@lucent.com>
89518
89519         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89520         now that autoconf requires that.
89521
89522         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89523         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89524         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89525
89526 2000-06-03  Jim Meyering  <meyering@lucent.com>
89527
89528         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89529
89530 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89531
89532         * m4/glibc21.m4: New file.
89533         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89534
89535 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89536
89537         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89538         newer, don't install charset.alias.
89539         * lib/config.charset: Change the Linux/glibc rules so they become empty
89540         on glibc-2.1 or newer.
89541
89542 2000-06-02  Jim Meyering  <meyering@lucent.com>
89543
89544         * lib/mountlist.c: Back out last change.  Instead, do this...
89545         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89546         me_dummy member using the same `ignore'-testing code.
89547         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89548         fs_type strings.
89549         From Mark D. Roth.
89550
89551 2000-05-29  Jim Meyering  <meyering@lucent.com>
89552
89553         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89554         mounts with the `ignore' attribute.  Based on a patch from
89555         Mark D. Roth.
89556
89557 2000-05-28  Jim Meyering  <meyering@lucent.com>
89558
89559         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89560         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89561         * m4/stat.m4: Likewise.
89562         * m4/lstat.m4: Likewise.
89563         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89564
89565         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89566         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89567
89568 2000-05-26  Jim Meyering  <meyering@lucent.com>
89569
89570         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89571
89572 2000-05-24  Jim Meyering  <meyering@lucent.com>
89573
89574         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89575         autoconf requires that.
89576         * m4/lib-check.m4: Likewise.
89577         * m4/jm-macros.m4: Likewise.
89578         * m4/strftime.m4: Likewise.
89579
89580         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89581         AC_CHECK_DECLS, now that autoconf requires that.
89582
89583 2000-05-22  Jim Meyering  <meyering@lucent.com>
89584
89585         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89586         * m4/lstat.m4: Likewise.
89587
89588 2000-05-22  Jim Meyering  <meyering@lucent.com>
89589
89590         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89591
89592 2000-05-20  Jim Meyering  <meyering@lucent.com>
89593
89594         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89595         (jm_PREREQ): Use it.
89596
89597 2000-05-18  Jim Meyering  <meyering@lucent.com>
89598
89599         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89600         back, too, since it may have been modified by allocate_entry.
89601         (hash_delete): Rewrite to use neither the assignment operator
89602         nor the comma operator in an if-expression.
89603
89604 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89605
89606         * lib/closeout.c:
89607         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89608         Remove; no longer needed.
89609         "quotearg.h": Add include.
89610         (file_name): Do not bother to explicitly initialize to NULL; it's less
89611         efficient on some hosts.
89612         (close_stdout_status): Remove test as to whether stdout was already
89613         closed; it breaks for the case "echo x | sort >&-".
89614         Quote file name colons.
89615         Do not assume that _("write error") lacks format strings.
89616
89617 2000-05-15  Jim Meyering  <meyering@lucent.com>
89618
89619         * lib/version-etc.c (version_etc_copyright): Update the copyright
89620         string used in all --version output.
89621
89622 2000-05-14  Jim Meyering  <meyering@lucent.com>
89623
89624         * lib/closeout.c (close_stdout_set_file_name): New function.
89625         (close_stdout_status): Use new file-scoped global.
89626         Return right away if fstat says the stdout file descriptor is invalid.
89627         * lib/closeout.h (close_stdout_set_file_name): Declare.
89628
89629 2000-05-10  Jim Meyering  <meyering@lucent.com>
89630
89631         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89632         (close_stdout_set_status): New function.
89633         * lib/closeout.h (close_stdout_set_status): Declare.
89634
89635 2000-05-09  Jim Meyering  <meyering@lucent.com>
89636
89637         * m4/gettext.m4: Rename this...
89638         * m4/libintl.m4: ...to this.
89639
89640 2000-05-08  Jim Meyering  <meyering@lucent.com>
89641
89642         * lib/long-options.c: Don't include closeout.h.
89643         (parse_long_options): Don't call close_stdout for --version.
89644
89645 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89646
89647         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89648         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89649         2.1.3 bug.  This avoids a clash when files like regex.c define
89650         _GNU_SOURCE.
89651
89652 2000-05-06  Jim Meyering  <meyering@lucent.com>
89653
89654         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89655         (AC_REPLACE_FUNCS): Add strnlen.
89656
89657         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89658         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89659
89660         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89661         AC_SEARCH_LIBS call for nanosleep.
89662         (LIB_NANOSLEEP): Set and AC_SUBST.
89663
89664 2000-05-06  Jim Meyering  <meyering@lucent.com>
89665
89666         * lib/strnlen.c: Undefine __strnlen and strnlen.
89667         [!weak_alias]: Define __strnlen to strnlen.
89668
89669         * lib/atexit.c: New file, from libiberty.
89670
89671 2000-05-06  Jim Meyering  <meyering@lucent.com>
89672
89673         * lib/closeout.c (close_stdout_status): Also check for errors on the
89674         stderr stream.
89675
89676 2000-05-05  Jim Meyering  <meyering@lucent.com>
89677
89678         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89679         AC_SEARCH_LIBS call for clock_gettime.
89680         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89681
89682         * m4/search-libs.m4: Update from autoconf.
89683
89684         su doesn't work on Solaris 2.6.
89685         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89686         <shadow.h>.  Reported by Dragos Harabor.
89687
89688 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89689
89690         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89691         memcpy instead of xmalloc, xrealloc, path_concat.
89692         (locale_charset): Treat empty environment variables as absent.
89693         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89694
89695 2000-05-04  Jim Meyering  <meyering@lucent.com>
89696
89697         * lib/getopt.c: Update from glibc.
89698         * lib/obstack.c: Likewise.
89699         * lib/obstack.h: Likewise.
89700         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89701         file
89702
89703         * lib/regex.h: Likewise.
89704         * lib/strndup.c: Likewise.
89705         * lib/strnlen.c: New file, from glibc.
89706
89707 2000-05-03  Jim Meyering  <meyering@lucent.com>
89708
89709         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89710
89711 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89712
89713         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89714         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89715         compile-time test, rather than inspecting host and OS, to
89716         decide whether to define _LARGEFILE_SOURCE.
89717
89718 2000-05-01  Jim Meyering  <meyering@lucent.com>
89719
89720         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89721
89722         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89723         Based on a patch from Bruno Haible.
89724
89725 2000-05-01  Jim Meyering  <meyering@lucent.com>
89726
89727         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89728
89729 2000-04-29  Jim Meyering  <meyering@lucent.com>
89730
89731         * lib/path-concat.c: Declare strdup only if it's not defined.
89732         * lib/canon-host.c: Likewise.
89733
89734 2000-04-28  Jim Meyering  <meyering@lucent.com>
89735
89736         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89737         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89738         is included first, then limits.h is included by locale.h by libintl.h.
89739         From John David Anglin.
89740
89741 2000-04-25  Jim Meyering  <meyering@lucent.com>
89742
89743         * lib/makepath.c (S_IRWXUGO): Define.
89744         (make_path): Always perform explicit chmod if MODE specifies any
89745         of the `special' permission bits.  Prompted by a bug report against
89746         install from Mate Wierdl and Joost van Baal.
89747
89748 2000-04-18  Jim Meyering  <meyering@lucent.com>
89749
89750         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89751         (jm_PREREQ): Use it.
89752
89753 2000-04-18  Jim Meyering  <meyering@lucent.com>
89754
89755         * lib/README: New file.
89756
89757         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89758         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89759
89760 2000-04-17  Jim Meyering  <meyering@lucent.com>
89761
89762         Get it right :-)
89763         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89764         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89765         Suggestion from Akim Demaille.
89766
89767 2000-04-17  Jim Meyering  <meyering@lucent.com>
89768
89769         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89770         the definition of it to rpl_strftime also defined-away the system's
89771         declaration.
89772
89773 2000-04-15  Jim Meyering  <meyering@lucent.com>
89774
89775         Use `C' to denote so-called `contiguous' files, the same way
89776         that tar does.
89777         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89778         (ftypelet): Use S_ISCTG.
89779         From Michael Deutschmann.
89780
89781 2000-04-14  Jim Meyering  <meyering@lucent.com>
89782
89783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89784         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89785         clobbered.
89786
89787 2000-04-14  Jim Meyering  <meyering@lucent.com>
89788
89789         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89790
89791 2000-04-13  Jim Meyering  <meyering@lucent.com>
89792
89793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89794         AH_VERBATIM to insert required #ifndef into config.h.in.
89795         Suggestion from Akim Demaille.
89796
89797 2000-04-12  Jim Meyering  <meyering@lucent.com>
89798
89799         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89800         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89801         Christian Krackowizer.
89802
89803         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89804         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89805         (AC_SYS_LARGEFILE): Require.
89806         (AM_C_PROTOTYPES): Require.
89807
89808 2000-04-08  Jim Meyering  <meyering@lucent.com>
89809
89810         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89811         names don't conflict.  Reported by Eli Zaretskii.
89812
89813 2000-04-07  Jim Meyering  <meyering@lucent.com>
89814
89815         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89816         sys/types.h, to work around system header problems on AIX 3.2.5.
89817         From Bruno Haible.
89818
89819 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89820
89821         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89822         bug.  Deal with the different error behavior of Irix iconv.
89823
89824 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89825
89826         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89827         IRIX if the installer said otherwise.
89828
89829 2000-04-05  Jim Meyering  <meyering@lucent.com>
89830
89831         Portability tweaks required for ultrix4.3.
89832         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89833         (jm_CHECK_DECLS): Add getutent to the list of functions.
89834         (_jm_DECL_HEADERS): Add utmpx.h.
89835         From John David Anglin.
89836
89837         * m4/strftime.m4: Back out the 2000-04-02 change.
89838         Instead of that change, simply undefine putenv in the test program.
89839
89840 2000-04-05  Jim Meyering  <meyering@lucent.com>
89841
89842         Portability tweaks required for ultrix4.3.
89843         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89844         getutent.
89845         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89846         * lib/canon-host.c: Declare strdup.
89847         * lib/path-concat.c: Likewise.
89848         From John David Anglin.
89849
89850 2000-04-04  Jim Meyering  <meyering@lucent.com>
89851
89852         Be more DOS 8.3-friendly.
89853         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89854         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89855         * lib/Makefile.am: Reflect renaming.
89856         Reported by Eli Zaretskii.
89857
89858         Use a temporary file name that won't clash with `charset.alias'
89859         in the DOS 8.3 name space.
89860         * lib/Makefile.am (charset_tmp): Define.
89861         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89862         (uninstall-local): Likewise.
89863         Reported by Eli Zaretskii.
89864
89865 2000-04-03  Jim Meyering  <meyering@lucent.com>
89866
89867         * m4/gettext.m4: Fix typo in comment.
89868
89869         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89870         textutils/configure.in).  Suggestion from Paul Eggert.
89871         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89872
89873 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89874
89875         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89876         variable in the shell rather than using putenv, which isn't
89877         portable.  This avoids the configure-time inter-test dependency
89878         on the potentially-renamed putenv function.
89879
89880 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89881
89882         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89883         before checking struct stat.st_blksize, so that
89884         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89885
89886 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89887
89888         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89889         since strftime.c uses HAVE_STRFTIME to decide whether to use
89890         the underlying strftime.
89891
89892 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89893
89894         * lib/time/strftime.c (my_strftime): Make sure we call the system
89895         strftime, not ourselves, when invoking the underlying strftime.
89896
89897 2000-03-24  Jim Meyering  <meyering@lucent.com>
89898
89899         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89900         (charset_alias): Define.
89901         (install-exec-local): Factor out common code.
89902         (uninstall-local): Split lines longer than 80.
89903         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89904         (SUFFIXES): Define.
89905         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89906         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89907
89908 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89909
89910         * lib/config.charset: Output a line containing "Packages using this
89911         file".
89912         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89913         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89914         ref-del.sed): New rules.
89915
89916 2000-03-17  Jim Meyering  <meyering@lucent.com>
89917
89918         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89919         Otherwise, include <strings.h>
89920
89921 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89922
89923         * lib/unicodeio.c (utf8_wctomb): New function.
89924         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89925         format instead of in UCS-4 with platform dependent endianness.
89926
89927 2000-03-10  Jim Meyering  <meyering@lucent.com>
89928
89929         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89930         From Marco Franzen.
89931
89932 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89933
89934         * lib/savedir.c (savedir): Work even if directory size is
89935         negative; this can happen with some screwy NFS configurations.
89936
89937 2000-03-06  Jim Meyering  <meyering@lucent.com>
89938
89939         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89940         if it's NULL (because we ran out of memory).  From Bruno Haible.
89941
89942 2000-03-05  Jim Meyering  <meyering@lucent.com>
89943
89944         * lib/localcharset.c ("path-concat.h"): Include.
89945         (get_charset_aliases): Use path_concat instead of ANSI string
89946         concatenation.
89947
89948         * lib/unicodeio.h (PARAMS): Define.
89949         Use it to guard prototype.
89950
89951 2000-03-04  Jim Meyering  <meyering@lucent.com>
89952
89953         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89954         for lib/localcharset.c.
89955
89956 2000-03-04  Jim Meyering  <meyering@lucent.com>
89957
89958         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89959         installing into it.
89960         (uninstall-local): Uncomment this rule so `make distcheck' works
89961         once again.
89962
89963         * lib/unicodeio.c (<errno.h>): Include it.
89964         (errno): Declare if not defined.
89965
89966         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89967
89968         * lib/config.charset: New version, incorporating remarks from a linux
89969         i18n mailing list.  From Bruno Haible.
89970
89971 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89972
89973         * m4/codeset.m4: New file.
89974         * m4/iconv.m4: New file.
89975         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89976
89977 2000-03-03  Jim Meyering  <meyering@lucent.com>
89978
89979         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89980
89981 2000-03-02  Jim Meyering  <meyering@lucent.com>
89982
89983         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89984         the messages come out on separate lines.
89985
89986         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89987         rather than jm_CHECK_DECLARATIONS.
89988         * m4/decl.m4: Remove now-unused file.
89989
89990         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89991         geteuid.
89992
89993 2000-03-02  Jim Meyering  <meyering@lucent.com>
89994
89995         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89996
89997 2000-03-01  Jim Meyering  <meyering@lucent.com>
89998
89999         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90000         * lib/unicodeio.c: Likewise.
90001
90002 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90003
90004         * lib/config.charset: New file.
90005         * lib/localcharset.c: New file.
90006         * lib/unicodeio.h, lib/unicodeio.c: New files.
90007         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90008         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90009         (noinst_HEADERS): Add unicodeio.h.
90010         (all-local, install-exec-local, charset.alias): New targets.
90011
90012 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90013
90014         * lib/quotearg.c (ALERT_CHAR): New macro.
90015         (quotearg_buffer_restyled): Use it.
90016
90017 2000-02-27  Jim Meyering  <meyering@lucent.com>
90018
90019         * m4/check-decl.m4: Add getenv to the list.
90020
90021 2000-02-27  Jim Meyering  <meyering@lucent.com>
90022
90023         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90024         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90025
90026         * lib/backupfile.c: Guard inclusion of stdlib.h with
90027         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90028         Declare malloc if needed.
90029
90030         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90031         `#ifndef HAVE_DECL..'
90032         now that autoconf always defines the HAVE_DECL_ symbols.
90033         * lib/human.c: Likewise.
90034         * lib/same.c: Likewise.
90035         * lib/strtoumax.c: Likewise.
90036
90037         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90038         declaration check was not run.
90039         * lib/hash.c: Likewise.
90040         * lib/human.c: Likewise.
90041         * lib/same.c: Likewise.
90042         * lib/strtoumax.c: Likewise.
90043
90044         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90045         `.', then first look up the entire `.'-containing string as a login
90046         name.
90047
90048 2000-02-23  Jim Meyering  <meyering@lucent.com>
90049
90050         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90051         in place of my hack.
90052
90053 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90054
90055         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90056         (textint): New typedef.
90057         (parser_control): Member year changed from int to textint.
90058         All uses changed.
90059         (YYSTYPE): Removed; replaced by %union with int and textint members.
90060         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90061         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90062         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90063         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90064         (date, number, to_year): Use width of number in digits, not its value,
90065         to determine whether it's a 2-digit year, or a 2-digit time.
90066         (yylex): Store number of digits of numeric tokens.
90067         Reported by John Kendall.
90068
90069         (parser_control): Changed from struct parser_control to typedef (for
90070         consistency).  All uses changed.
90071
90072         (tID): Removed; not used.
90073         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90074
90075 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90076
90077         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90078         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90079
90080 2000-02-12  Jim Meyering  <meyering@lucent.com>
90081
90082         * lib/userspec.c (ISDIGIT): Define it.
90083         (isdigit): Remove definition.
90084         (is_number): Use ISDIGIT, not isdigit.
90085         <libintl.h>: Include.
90086         (_ and N_): Define.
90087         (parse_user_spec): Mark translatable strings.
90088
90089 2000-02-10  Jim Meyering  <meyering@lucent.com>
90090
90091         With these changes, nanosleep.[ch] are finally enough like the other
90092         lib/* replacement files to compile on a few more losing systems.
90093
90094         * lib/nanosleep.h: Don't include config.h.
90095         Remove prototype from declaration of nanosleep.
90096         (PARAMS): Remove now-unneeded definition.
90097         * lib/nanosleep.c: #undef nanosleep.
90098         (rpl_nanosleep): Rename from nanosleep.
90099
90100 2000-02-10  Jim Meyering  <meyering@lucent.com>
90101
90102         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90103         gnu_nanosleep to rpl_nanosleep.
90104
90105 2000-02-09  Jim Meyering  <meyering@lucent.com>
90106
90107         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90108         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90109
90110 2000-02-08  Akim Demaille  <akim@epita.fr>
90111
90112         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90113         `[' and `]' and remove uses of `changequote'.
90114         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90115         (AC_SYS_LARGEFILE): Likewise.
90116         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90117         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90118         of changequote.
90119         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90120         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90121         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90122         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90123
90124 2000-02-05  Jim Meyering  <meyering@lucent.com>
90125
90126         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90127         Remove explicit use of AC_HEADER_TIME.  It is required by
90128         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90129         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90130         in autoconf whereby the expansion of the latter ended up preceding
90131         the expansion of its prerequisite, AC_HEADER_TIME.
90132         Reported by Volker Borchert.
90133
90134 2000-02-03  Jim Meyering  <meyering@lucent.com>
90135
90136         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90137
90138 2000-02-03  Jim Meyering  <meyering@lucent.com>
90139
90140         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90141         rather than with `#if HAVE_UTMPNAME'.
90142
90143 2000-02-02  Jim Meyering  <meyering@lucent.com>
90144
90145         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90146         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90147         Reported by Eli Zaretskii.
90148
90149 2000-02-01  Jim Meyering  <meyering@lucent.com>
90150
90151         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90152
90153 2000-01-31  Jim Meyering  <meyering@lucent.com>
90154
90155         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90156         functions.  Add the time.h and sys/time.h headers along with the
90157         AC_REQUIRE'ment of AC_HEADER_TIME.
90158
90159 2000-01-31  Jim Meyering  <meyering@lucent.com>
90160
90161         * lib/nanosleep.h (nanosleep): Guard declaration with
90162         `#if ! HAVE_DECL_NANOSLEEP'.
90163         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90164         the declaration in that vendor's sys/timers.h.
90165         Reported by Christian Krackowizer.
90166
90167         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90168         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90169         (ISPRINT): Likewise.
90170         Reported by Tom Tromey.
90171
90172 2000-01-30  Jim Meyering  <meyering@lucent.com>
90173
90174         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90175
90176         * m4/prereq.m4 (utmp_includes): Define.
90177         Check for ut_user and ut_name members in both struct utmpx
90178         and struct utmp.
90179
90180 2000-01-30  Jim Meyering  <meyering@lucent.com>
90181
90182         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90183         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90184         header files where only utmpx.ut_user is declared.
90185
90186         * lib/readutmp.h (UT_USER): Define.
90187
90188 2000-01-29  Jim Meyering  <meyering@lucent.com>
90189
90190         * m4/lib-check.m4: New file containing library-related checks from
90191         fileutils and sh-utils (textutils had none).
90192
90193 2000-01-28  Jim Meyering  <meyering@lucent.com>
90194
90195         * m4/perl.m4: Change format of warning message to look more like that
90196         from the missing script.  Suggestion from François Pinard.
90197
90198 2000-01-25  Jim Meyering  <meyering@lucent.com>
90199
90200         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90201         well as time.h in the compile check.
90202         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90203         Fix typo in cross-compiling case: s/yes/no/.
90204
90205 2000-01-23  Jim Meyering  <meyering@lucent.com>
90206
90207         * m4/jm-macros.m4: Move df-related tests here from
90208         fileutils/configure.in
90209
90210         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90211         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90212
90213         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90214         s/space/ac_fsusage_space/.
90215         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90216
90217         * m4/ftruncate.m4: New file (derived from part of
90218         fileutils/configure.in).
90219         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90220         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90221
90222         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90223         AC_SUBST these here, rather than just in sh-util/configure.in, so
90224         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90225         all the same.
90226         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90227         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90228         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90229         (AC_SUBST(POW_LIBM)): Likewise.
90230         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90231
90232 2000-01-23  Jim Meyering  <meyering@lucent.com>
90233
90234         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90235         obstack.c.
90236
90237 2000-01-22  Jim Meyering  <meyering@lucent.com>
90238
90239         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90240
90241         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90242
90243         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90244         configure.in
90245         (AC_CHECK_HEADERS): Likewise for sh-utils.
90246         (AC_CHECK_HEADERS): Likewise for textutils.
90247         Merge the three lists of headers.
90248
90249         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90250         from fileutils' configure.in.
90251
90252         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90253         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90254         check-decl.m4.
90255
90256         * m4/check-decl.m4: Use #if rather than #ifdef.
90257         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90258         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90259         (_jm_DECL_HEADERS): Define new function.
90260         (jm_CHECK_DECLARATIONS): Require it.
90261
90262 2000-01-22  Jim Meyering  <meyering@lucent.com>
90263
90264         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90265         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90266         Required for some AIX systems.  Reported by Christian Krackowizer.
90267         [TESTING] (main): New function.
90268
90269         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90270         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90271         letters.
90272
90273         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90274         iswprint.
90275
90276         * lib/strverscmp.c (ISDIGIT): Define.
90277         (strverscmp): Use ISDIGIT, not isdigit.
90278
90279 2000-01-19  Jim Meyering  <meyering@lucent.com>
90280
90281         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90282         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90283         defines `struct timespec' in <sys/time.h>
90284
90285         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90286         Thanks to Akim for explaining.
90287
90288 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90289
90290         * lib/nanosleep.c (nanosleep):
90291         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90292         POSIX.1 doesn't require SA_INTERRUPT and some systems
90293         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90294         it's been part of POSIX.1 since day 1 (in 1988).
90295
90296 2000-01-17  Jim Meyering  <meyering@lucent.com>
90297
90298         * lib/interlock: Remove unused file.  Reported by François Pinard.
90299
90300 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90301
90302         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90303         alert, backslash, formfeed, and vertical tab unnecessarily in
90304         shell quoting style.
90305
90306 2000-01-16  Jim Meyering  <meyering@lucent.com>
90307
90308         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90309         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90310         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90311         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90312
90313 2000-01-16  Jim Meyering  <meyering@lucent.com>
90314
90315         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90316         because the latter didn't work.
90317
90318 2000-01-15  Jim Meyering  <meyering@lucent.com>
90319
90320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90321         (AC_REPLACE_FUNCS): Add memcpy and memset.
90322         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90323         Add strpbrk.
90324         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90325
90326 2000-01-12  Jim Meyering  <meyering@lucent.com>
90327
90328         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90329         (jm_PREREQ): Use it.
90330         (jm_PREREQ_READUTMP): New macro.
90331         (jm_PREREQ): Use it.
90332
90333 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90334
90335         Quote multibyte characters correctly.
90336         * m4/c-bs-a.m4: New file.
90337         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90338         (jm_PREREQ): Use it.
90339
90340 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90341
90342         * m4/uintmax_t.m4: Port to autoconf 2.13.
90343
90344 2000-01-08  Jim Meyering  <meyering@ascend.com>
90345
90346         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90347         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90348
90349 2000-01-04  Jim Meyering  <meyering@ascend.com>
90350
90351         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90352         jm_STRUCT_DIRENT_D_TYPE.
90353         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90354         jm_STRUCT_DIRENT_D_INO.
90355         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90356         jm_STRUCT_UTIMBUF.
90357         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90358         renamings.
90359         * m4/utime.m4: Likewise.
90360
90361         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90362         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90363
90364 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90365
90366         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90367         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90368
90369 2000-01-02  Jim Meyering  <meyering@ascend.com>
90370
90371         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90372         remember if this is necessary.
90373
90374 1999-12-26  Jim Meyering  <meyering@ascend.com>
90375
90376         * m4/jm-macros.m4: Use it here.
90377         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90378
90379 1999-12-23  Jim Meyering  <meyering@ascend.com>
90380
90381         * m4/jm-macros.m4: Check for clock_gettime (moved from
90382         fileutils/configure.in)
90383         Check for gettimeofday.
90384
90385 1999-12-20  Jim Meyering  <meyering@ascend.com>
90386
90387         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90388         autoconf-2.14a-1999-12-20.
90389
90390 1999-12-19  Jim Meyering  <meyering@ascend.com>
90391
90392         * m4/lstat-slash.m4: New file.
90393         * m4/jm-macros.m4: Use the new macro:
90394         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90395
90396 1999-12-07  Jim Meyering  <meyering@ascend.com>
90397
90398         * m4/perl.m4: Require that File::Compare be available, too.
90399         Too many systems seem to lack it.
90400
90401         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90402         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90403
90404 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90405
90406         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90407         problem with the QNX 4.25 shell, which doesn't propagate exit
90408         status of failed commands inside shell assignments.
90409
90410 1999-11-17  Jim Meyering  <meyering@ascend.com>
90411
90412         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90413
90414 1999-11-07  Jim Meyering  <meyering@ascend.com>
90415
90416         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90417
90418 1999-11-06  Jim Meyering  <meyering@ascend.com>
90419
90420         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90421         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90422
90423 1999-11-05  Jim Meyering  <meyering@ascend.com>
90424
90425         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90426         configure.in of textutils, fileutils, and sh-utils into this one
90427         (shared between those packages) file.
90428         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90429         AC_STRUCT_ST_BLKSIZE.
90430
90431 1999-11-03  Jim Meyering  <meyering@ascend.com>
90432
90433         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90434         of AC_CHECK_TYPE checks includes unistd.h.
90435         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90436         Suggestion from Akim Demaille.
90437
90438 1999-10-30  Jim Meyering  <meyering@ascend.com>
90439
90440         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90441         m4-quoted string.
90442         * m4/ls-mntd-fs.m4: Likewise.
90443         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90444         * m4/jm-winsz1.m4: Likewise.
90445
90446         * m4/const.m4: Remove file, since the fix made it into the experimental
90447         version of autoconf.
90448         * m4/mktime.m4: Likewise.
90449
90450         * m4/check-type.m4: Remove file, now that the latest version of
90451         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90452
90453         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90454         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90455         AC_CHECK_TYPE.
90456
90457 1999-10-04  Jim Meyering  <meyering@ascend.com>
90458
90459         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90460
90461 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90462
90463         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90464         2.95.1 bug with HP-UX 10.20.
90465
90466 1999-09-17  Jim Meyering  <meyering@ascend.com>
90467
90468         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90469         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90470         due to missing strdup (against sh-utils-2.0).
90471
90472 1999-08-29  Jim Meyering  <meyering@ascend.com>
90473
90474         * m4/jm-macros.m4: Require jm_BISON.
90475         * m4/bison.m4: New file.
90476
90477 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90478
90479         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90480         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90481
90482 1999-08-05  Jim Meyering  <meyering@ascend.com>
90483
90484         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90485         to avoid conflicts with `conftest' on 8+3 filesystems.
90486         Suggestion from Eli Zaretskii.
90487
90488 1999-08-04  Jim Meyering  <meyering@ascend.com>
90489
90490         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90491         fileutils and sh-utils (textutils's getline test was inadequate).
90492         (AM_FUNC_GETLINE): Run this test.
90493         (AC_CHECK_FUNCS): Check for getdelim.
90494         Reported by Bob Proulx.
90495
90496 1999-08-02  Jim Meyering  <meyering@ascend.com>
90497
90498         * m4/jm-macros.m4: Add a comment.
90499
90500 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90501
90502         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90503         <inttypes.h> defines strtoumax as a macro (and not as a
90504         function).
90505
90506 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90507
90508         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90509         that we can shift, multiply and divide unsigned long long
90510         values; Ultrix cc can't do it.
90511
90512 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90513
90514         * m4/mktime.m4: New file, which is a preview of what should appear
90515         in the next public autoconf release.
90516
90517 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90518
90519         * m4/lfs.m4: Remove this file.
90520         * m4/largefile.m4: New file.  It contains the old contents of
90521         lfs.m4, except that all names with prefix AC_LFS have been
90522         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90523         compatible with future autoconf versions.  Also, some minor m4
90524         quoting problems have been fixed.
90525
90526 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90527
90528         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90529         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90530         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90531         and simplify the shell code.
90532
90533 1999-08-01  Jim Meyering  <meyering@ascend.com>
90534
90535         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90536         m4.
90537
90538 1999-07-20  Jim Meyering  <meyering@ascend.com>
90539
90540         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90541
90542 1999-07-15  Jim Meyering  <meyering@ascend.com>
90543
90544         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90545
90546 1999-05-22  Jim Meyering  <meyering@ascend.com>
90547
90548         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90549
90550 1999-05-20  Jim Meyering  <meyering@ascend.com>
90551
90552         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90553         Add a colon after each `then' in case $4 is empty.
90554
90555 1999-05-16  Jim Meyering  <meyering@ascend.com>
90556
90557         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90558
90559 1999-05-10  Jim Meyering  <meyering@ascend.com>
90560
90561         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90562
90563         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90564         AC_FUNC_MKTIME.
90565
90566 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90567
90568         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90569
90570 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90571
90572         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90573         not CPPFLAGS, so that linking works correctly in IRIX.
90574
90575 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90576
90577         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90578
90579 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90580
90581         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90582         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90583         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90584         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90585         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90586
90587         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90588
90589 1999-04-20  Jim Meyering  <meyering@ascend.com>
90590
90591         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90592         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90593         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90594
90595 1999-04-18  Jim Meyering  <meyering@ascend.com>
90596
90597         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90598         * m4/jm-macros.m4: Use it.
90599
90600 1999-04-06  Jim Meyering  <meyering@ascend.com>
90601
90602         * m4/strftime.m4: Remove test for %f.
90603
90604 1999-03-29  Jim Meyering  <meyering@ascend.com>
90605
90606         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90607         superset of the AC_TYPE_* checks in the textutils, fileutils,
90608         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90609         AC_TYPE_PID_T.
90610
90611 1999-03-28  Jim Meyering  <meyering@ascend.com>
90612
90613         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90614         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90615         replaced e.g., in the *.sh files of the sh-utils.
90616
90617 1999-03-20  Jim Meyering  <meyering@ascend.com>
90618
90619         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90620         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90621         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90622
90623 1999-03-19  Jim Meyering  <meyering@ascend.com>
90624
90625         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90626
90627 1999-03-12  Jim Meyering  <meyering@ascend.com>
90628
90629         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90630
90631 1999-03-07  Jim Meyering  <meyering@ascend.com>
90632
90633         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90634         declared.
90635
90636 1999-02-17  Jim Meyering  <meyering@ascend.com>
90637
90638         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90639         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90640
90641 1999-02-07  Jim Meyering  <meyering@ascend.com>
90642
90643         * m4/group-member.m4: New file -- extracted from sh-utils'
90644         configure.in.
90645
90646         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90647         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90648
90649 1999-02-06  Jim Meyering  <meyering@ascend.com>
90650
90651         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90652         * m4/fnmatch.m4: Likewise.
90653         * m4/getgroups.m4: Likewise.
90654         * m4/lstat.m4: Likewise.
90655         * m4/malloc.m4: Likewise.
90656         * m4/putenv.m4: Likewise.
90657         * m4/realloc.m4: Likewise.
90658         * m4/regex.m4: Likewise.
90659         * m4/stat.m4: Likewise.
90660         * m4/strftime.m4: Likewise.
90661         Suggestion from Alain Magloire.
90662
90663         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90664         * m4/fnmatch.m4: Likewise.
90665         * m4/getgroups.m4: Likewise.
90666         * m4/getline.m4: Likewise.
90667         * m4/lstat.m4: Likewise.
90668         * m4/malloc.m4: Likewise.
90669         * m4/memcmp.m4: Likewise.
90670         * m4/putenv.m4: Likewise.
90671         * m4/realloc.m4: Likewise.
90672         * m4/regex.m4: Likewise.
90673         * m4/stat.m4: Likewise.
90674         * m4/strftime.m4: Likewise.
90675         Suggestion from Alain Magloire.
90676
90677         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90678         an argument.
90679
90680         * m4/regex.m4: Add a run-time Test for proper operation of
90681         re_compile_pattern.
90682
90683 1999-01-31  Jim Meyering  <meyering@ascend.com>
90684
90685         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90686
90687 1999-01-30  Jim Meyering  <meyering@ascend.com>
90688
90689         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90690
90691         * m4/jm-mktime.m4: Make this a wrapper around the official
90692         AM_FUNC_MKTIME rather than my private copy, now that the official one
90693         is up to date.
90694         * m4/mktime.m4: Remove file.
90695
90696         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90697         * m4/uptime.m4: Likewise.
90698         * m4/uintmax_t.m4: Likewise.
90699
90700 1999-01-28  Jim Meyering  <meyering@ascend.com>
90701
90702         * m4/jm-macros.m4: Use jm_AFS.
90703         * m4/afs.m4: New file (from fileutils' configure.in).
90704
90705         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90706         * m4/chown.m4: Likewise.
90707         * m4/d-ino.m4: Likewise.
90708         * m4/d-type.m4: Likewise.
90709         * m4/fnmatch.m4: Likewise.
90710         * m4/getgroups.m4: Likewise.
90711         * m4/gettext.m4: Likewise.
90712         * m4/jm-mktime.m4: Likewise.
90713         * m4/jm-winsz2.m4: Likewise.
90714         * m4/lcmessage.m4: Likewise.
90715         * m4/ls-mntd-fs.m4: Likewise.
90716         * m4/malloc.m4: Likewise.
90717         * m4/memcmp.m4: Likewise.
90718         * m4/putenv.m4: Likewise.
90719         * m4/realloc.m4: Likewise.
90720         * m4/st_mtim.m4: Likewise.
90721         * m4/strftime.m4: Likewise.
90722
90723 1999-01-16  Jim Meyering  <meyering@ascend.com>
90724
90725         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90726         (ARGMATCH_DIE_DECL): Define.
90727
90728 1999-01-12  Jim Meyering  <meyering@ascend.com>
90729
90730         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90731         Reported by Lars Hecking.
90732
90733 1999-01-10  Jim Meyering  <meyering@ascend.com>
90734
90735         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90736         gross kludge.
90737         * m4/inttypes_h.m4: Likewise.
90738         * m4/lstat.m4: Likewise.
90739         * m4/malloc.m4: Likewise.
90740         * m4/readdir.m4: Likewise.
90741         * m4/realloc.m4: Likewise.
90742         * m4/st_dm_mode.m4: Likewise.
90743         * m4/stat.m4: Likewise.
90744         * m4/utimbuf.m4: Likewise.
90745         * m4/utimes.m4: Likewise.
90746
90747         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90748         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90749         comments in config.h.in are meaningful.
90750
90751         * m4/jm-macros.m4: Require autoconf-2.13 here.
90752
90753         * m4/regex.m4: By default, don't use the included regex.c on systems
90754         with glibc 2.  Suggestion from Uli Drepper.
90755
90756 1999-01-02  Jim Meyering  <meyering@ascend.com>
90757
90758         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90759
90760 1998-12-18  Jim Meyering  <meyering@ascend.com>
90761
90762         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90763         Based on a suggestion from Lars Hecking.
90764
90765 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90766
90767         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90768
90769 1998-11-16  Jim Meyering  <meyering@ascend.com>
90770
90771         * m4/lfs.m4: Double-quote the `uname...` expression.
90772
90773 1998-11-14  Jim Meyering  <meyering@ascend.com>
90774
90775         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90776         * m4/stat.m4: Likewise.
90777
90778 1998-11-03  Jim Meyering  <meyering@ascend.com>
90779
90780         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90781         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90782
90783 1998-10-18  Jim Meyering  <meyering@ascend.com>
90784
90785         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90786
90787 1998-10-17  Jim Meyering  <meyering@ascend.com>
90788
90789         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90790         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90791         calls for those previously hard-coded headers.  Instead, take a new
90792         parameter.
90793         (jm_CHECK_DECLARATIONS): Reflect interface change.
90794         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90795         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90796
90797         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90798
90799 1998-10-14  Jim Meyering  <meyering@ascend.com>
90800
90801         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90802         instead of "TZ=America/Vancouver".  From Paul Eggert.
90803
90804 1998-10-11  Jim Meyering  <meyering@ascend.com>
90805
90806         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90807         This adds a test for a recently added compatibility fix for mktime.c.
90808         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90809
90810 1998-09-27  Jim Meyering  <meyering@ascend.com>
90811
90812         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90813
90814         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90815         ../configure.in, including a change from Gordon Matzigkeit to allow
90816         cross-compiling for the Hurd.
90817
90818         * m4/glibc.m4: New file/macro to test for the GNU C Library
90819         versions 1 and 2.  From Gordon Matzigkeit.
90820         Indent.
90821
90822 1998-09-21  Jim Meyering  <meyering@ascend.com>
90823
90824         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90825
90826 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90827
90828         Port nanosecond-resolution times to UnixWare 2.1.2 and
90829         pedantic Solaris 2.6.
90830
90831         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90832         AC_STRUCT_ST_MTIM.
90833         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90834         Generate name of ns member, instead of just 1 or undef.
90835         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90836
90837 1998-08-15  Jim Meyering  <meyering@ascend.com>
90838
90839         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90840         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90841         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90842         instead of jm_TYPE_SSIZE_T.
90843
90844 1998-08-12  Jim Meyering  <meyering@ascend.com>
90845
90846         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90847
90848 1998-08-02  Jim Meyering  <meyering@ascend.com>
90849
90850         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90851         in acconfig.h manually.
90852
90853 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90854
90855         * m4/st_mtim.m4: New file.
90856
90857 1998-07-28  Jim Meyering  <meyering@ascend.com>
90858
90859         * m4/utimes.m4: Undef stat.
90860
90861 1998-07-25  Jim Meyering  <meyering@ascend.com>
90862
90863         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90864         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90865
90866 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90867
90868         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90869         uid and gid actually remain unchanged.
90870
90871 1998-07-07  Jim Meyering  <meyering@ascend.com>
90872
90873         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90874
90875 1998-07-04  Jim Meyering  <meyering@ascend.com>
90876
90877         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90878         to prove that this macro can be used in packages without regex.c.
90879
90880 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90881
90882         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90883         is to be used.
90884
90885 1998-07-03  Jim Meyering  <meyering@ascend.com>
90886
90887         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90888
90889         * m4/gettext.m4: New file -- from gettext-0.10.35.
90890         * m4/lcmessage.m4: Likewise.
90891         * m4/progtest.m4: Likewise.
90892
90893         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90894         * m4/jm-macros.m4: Require the new macro.
90895
90896 1998-06-29  Jim Meyering  <meyering@ascend.com>
90897
90898         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90899         for the definition of NGROUPS (used in a system header included
90900         by sys/mount.h).
90901
90902 1998-06-28  Jim Meyering  <meyering@ascend.com>
90903
90904         * m4/ls-mntd-fs.m4: New file.
90905         * m4/fstypename.m4: New file.
90906
90907         * m4/jm-macros.m4: Require the new macro.
90908         * m4/jm-glibc-io.m4: New file.
90909
90910 1998-05-19  Jim Meyering  <meyering@ascend.com>
90911
90912         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90913         * m4/lchown.m4: New file.
90914
90915         * m4/Makefile.am.in: New file.
90916         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90917
90918 1998-05-14  Jim Meyering  <meyering@ascend.com>
90919
90920         * m4/Makefile.am (EXTRA_DIST): Add them.
90921         * m4/jm-macros.m4: New file.
90922         * m4/utimbuf.m4: New file.
90923
90924 1998-05-12  Jim Meyering  <meyering@ascend.com>
90925
90926         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90927
90928 1998-05-11  Jim Meyering  <meyering@ascend.com>
90929
90930         * m4/isc-posix.m4: New file.
90931
90932 1998-05-10  Jim Meyering  <meyering@ascend.com>
90933
90934         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90935
90936 1998-05-09  Jim Meyering  <meyering@ascend.com>
90937
90938         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90939         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90940         with automake.
90941
90942         * m4/ssize_t.m4: New file.
90943         * m4/mktime.m4: Remove file -- the new automake has this now.
90944
90945 1998-04-26  Jim Meyering  <meyering@ascend.com>
90946
90947         * m4/assert.m4: New file.
90948         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90949
90950 1998-04-05  Jim Meyering  <meyering@ascend.com>
90951
90952         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90953         (jm_PREREQ): Use it here.
90954
90955 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90956
90957         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90958         in acconfig.h.
90959
90960 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90961
90962         * m4/prereq.m4: New file.
90963         * m4/error.m4: New file.
90964         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90965
90966 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90967
90968         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90969         cache-check for the same variable -- that defeated the purpose of
90970         the test; the test program was never run.  This was a problem only
90971         on systems with losing getline functions -- HP-UX 10.20 is one.
90972         Reported by Bjorn Helgaas.
90973
90974 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90975
90976         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90977
90978 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90979
90980         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90981
90982         * m4/const.m4: New file.  Use an initializer in this declaration
90983         typedef int charset[2]; const charset x;
90984         Reported by Bob Glickstein.
90985
90986 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90987
90988         * m4/chown.m4: Fix reversed types on -1 args to chown.
90989         From Kaveh Ghazi.
90990
90991 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90992
90993         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90994         Add lseek and memchr.
90995
90996         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90997         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90998         have a 20-character limit on names.
90999
91000 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91001
91002         * m4/inttypes_h.m4: New file.
91003         * m4/uintmax_t.m4: New file.
91004         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91005
91006
91007         -----
91008
91009         Local Variables:
91010         coding: utf-8
91011         End:
91012
91013         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91014
91015         Copying and distribution of this file, with or without
91016         modification, are permitted provided the copyright notice
91017         and this notice are preserved.