c45f209084a72788f190e8812a5929ce019dba7a
[gnulib.git] / ChangeLog
1 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2
3         quotearg: do not use grave accent for left quote
4         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5         locale_quoting_style.
6         (quotearg_buffer_restyled): Fix example.
7         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8
9 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10
11         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
12         Most programs do not have translation catalogs for English and much
13         less separate catalogs for British and American English.  Drop the
14         suggestion to translators about these two, and provide it
15         automatically for Unicode locales.  Like most programs, even those
16         using American English, we use single quotation marks.  This conflicts
17         with the American typographic convention, but works better when you
18         cite the entire error message within double quotes.  It also tries not
19         to clash with established practice and with what non-gnulib programs
20         will usually do.
21         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
22         using an UTF-8 or GB-18030 locale.  The list of other locales with
23         quotes was provided by Bruno Haible.
24         (quotearg_buffer_restyled): Adjust instructions to translators.
25         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
26         text, since this would be wrong when using Unicode.
27         * modules/quotearg: Depend on c-strcaseeq.
28
29 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
30
31         quotearg: fix Wikipedia link
32         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
33
34 2012-01-07  Simon Josefsson  <simon@josefsson.org>
35
36         Fix for mingw with MSVC9.
37         * m4/ld-version-script.m4: Check that compiler rejects version
38         scripts with syntax errors.  Reported by Bruno Haible
39         <bruno@clisp.org>.
40
41 2012-01-06  Bruno Haible  <bruno@clisp.org>
42
43         Talk about "native Windows API", not "Woe32".
44         * lib/accept4.c: Update comments to mention native Windows.
45         * lib/execute.c: Likewise.
46         * lib/fatal-signal.c: Likewise.
47         * lib/localcharset.c: Likewise.
48         * lib/nanosleep.c: Likewise.
49         * lib/nl_langinfo.c: Likewise.
50         * lib/pclose.c: Likewise.
51         * lib/pipe-filter-gi.c: Likewise.
52         * lib/pipe-filter-ii.c: Likewise.
53         * lib/pipe.c: Likewise.
54         * lib/pipe2.c: Likewise.
55         * lib/popen.c: Likewise.
56         * lib/progreloc.c: Likewise.
57         * lib/relocatable.c: Likewise.
58         * lib/sigaction.c: Likewise.
59         * lib/sigprocmask.c: Likewise.
60         * lib/spawn-pipe.h: Likewise.
61         * lib/spawn-pipe.c: Likewise.
62         * lib/spawni.c: Likewise.
63         * lib/stat-time.h: Likewise.
64         * lib/w32spawn.h: Likewise.
65         * tests/test-isatty.c: Likewise.
66         * lib/config.charset: More comments.
67         * doc/gnulib-intro.texi: Mention native Windows.
68         * doc/posix-functions/_Exit_C99.texi: Likewise.
69         * doc/posix-headers/fcntl.texi: Likewise.
70
71 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
72
73         argp: Avoid crash if translator uses % characters in a translation.
74         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
75         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
76
77 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
78
79         doc: C11 and C++11 are now official
80         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
81         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
82         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
83         * modules/stdalign:
84         Replace references to draft C1X to C11, and to draft C++0X to C++11.
85
86 2012-01-06  Bruno Haible  <bruno@clisp.org>
87
88         uc-is-grapheme-break tests: Tweak.
89         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
90         message.
91
92 2012-01-06  Bruno Haible  <bruno@clisp.org>
93
94         test-init.sh: correct the test for diff -u
95         * tests/test-init.sh: Also redirect stdout to /dev/null.
96
97 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
98
99         Use ', not `, for quoting output.
100         * build-aux/announce-gen (usage, sizes, print_news_deltas)
101         (print_changelog_deltas, get_tool_versions, main program):
102         * build-aux/git-version-gen:
103         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
104         * build-aux/move-if-change (help):
105         * build-aux/useless-if-before-free (usage, main program):
106         * check-module (parse_module_file, usage)
107         (find_included_lib_files, check_module):
108         * lib/argmatch.c (main) [TEST]:
109         * lib/argp-help.c (_help):
110         * lib/getopt1.c (main) [TEST]:
111         * lib/git-merge-changelog.c (usage):
112         * lib/xstrtol-error.c (xstrtol_error):
113         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
114         * m4/argz.m4 (gl_FUNC_ARGZ):
115         * m4/bison.m4 (gl_BISON):
116         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
117         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
118         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
119         * m4/fpending.m4 (gl_PREREQ_FPENDING):
120         * m4/gc-random.m4 (gl_GC_RANDOM):
121         * m4/intl.m4 (gt_CHECK_DECL):
122         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
123         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
124         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
125         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
126         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
127         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
128         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
129         * tests/test-dirname.c (main):
130         * tests/test-getpass.c (main):
131         * tests/test-iconvme.c (main):
132         * tests/test-parse-datetime.c (LOG):
133         * tests/test-xstrtoimax.sh:
134         * tests/test-xstrtol.sh:
135         * tests/test-xstrtoll.sh:
136         * tests/test-xstrtoumax.sh:
137         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
138         * top/GNUmakefile (abort-due-to-no-makefile):
139         Quote 'like this', not `like this', as per the recent change to
140         the GNU coding standards.
141
142 2012-01-05  Bruno Haible  <bruno@clisp.org>
143
144         strtoimax: Don't force a replacement on systems where intmax_t is int.
145         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
146         'intmax_t' is not larger than 'int'.
147         Reported by Pádraig Brady <P@draigBrady.com>.
148
149 2012-01-05  Bruno Haible  <bruno@clisp.org>
150
151         doc: Mention NetBSD bugs.
152         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
153         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
154
155 2012-01-05  Bruno Haible  <bruno@clisp.org>
156
157         strtoumax tests: Enhance tests.
158         * tests/test-strtoumax.c (main): Add tests for large values.
159
160 2012-01-05  Bruno Haible  <bruno@clisp.org>
161
162         strtoimax: Work around AIX 5.1 bug.
163         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
164         definition.
165         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
166         Set HAVE_STRTOIMAX.
167         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
168         REPLACE_STRTOIMAX.
169         * modules/inttypes-incomplete (Makefile.am): Substitute
170         REPLACE_STRTOIMAX.
171         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
172         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
173         (Depends-on): Update conditions.
174         * tests/test-strtoimax.c (main): Add tests for large values.
175         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
176
177 2012-01-05  Bruno Haible  <bruno@clisp.org>
178
179         inttypes: Modernize.
180         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
181         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
182         (Makefile.am): Update inttypes.h rule.
183
184 2012-01-05  Jim Meyering  <meyering@redhat.com>
185
186         init.sh: don't waste a subshell just to redirect stderr
187         * tests/init.sh: In testing for diff -u and diff -c, use a
188         stderr-redirecting exec inside `...` rather than a subshell.
189
190         test-init.sh: avoid failure on HP-UX 11.00
191         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
192         resolves to diff -c or cmp.  Reported by Bruno Haible.
193
194 2012-01-05  Bruno Haible  <bruno@clisp.org>
195
196         Tests for module 'strtoull'.
197         * modules/strtoull-tests: New file.
198         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
199
200 2012-01-05  Bruno Haible  <bruno@clisp.org>
201
202         Tests for module 'strtoll'.
203         * modules/strtoll-tests: New file.
204         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
205
206 2012-01-05  Bruno Haible  <bruno@clisp.org>
207
208         Tests for module 'strtoul'.
209         * modules/strtoul-tests: New file.
210         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
211
212 2012-01-05  Bruno Haible  <bruno@clisp.org>
213
214         Tests for module 'strtol'.
215         * modules/strtol-tests: New file.
216         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
217
218 2012-01-04  Jim Meyering  <meyering@redhat.com>
219
220         test-init.sh: accommodate Solaris 5.10's different diff -u output
221         * tests/test-init.sh: Also exempt @@ lines from the comparison
222         of diff output, since Solaris 5.10 and GNU diff formats differ.
223         Reported by Stefano Lattarini.
224
225 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
226
227         test-posixtm: don't assume signed integer wraparound
228         * tests/test-posixtm.c (main): Don't assume wraparound semantics
229         after signed integer overflow.  Inspired by (though it may not
230         fix) Bruno Haible's bug report in
231         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
232
233         Spell out "Windows 9x" and "Windows XP".
234         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
235         "Windows 9x" and "WinXP" with "Windows XP".
236
237 2012-01-04  Jim Meyering  <meyering@redhat.com>
238
239         test-vc-list-files-cvs.sh: remove obsolete comment
240         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
241         double exit.  Now that's all encapsulated via skip_ and Exit.
242
243 2012-01-04  Bruno Haible  <bruno@clisp.org>
244
245         Talk about "native Windows API", not "Win32".
246         * lib/classpath.c: Update comments to mention native Windows.
247         * lib/csharpexec.c: Likewise.
248         * lib/dup2.c: Likewise.
249         * lib/error.c: Likewise.
250         * lib/fcntl.c: Likewise.
251         * lib/filename.h: Likewise.
252         * lib/findprog.c: Likewise.
253         * lib/get-rusage-as.c: Likewise.
254         * lib/get-rusage-data.c: Likewise.
255         * lib/getpagesize.c: Likewise.
256         * lib/javaexec.c: Likewise.
257         * lib/msvc-inval.c: Likewise.
258         * lib/msvc-nothrow.c: Likewise.
259         * lib/nanosleep.c: Likewise.
260         * lib/nonblocking.c: Likewise.
261         * lib/printf-parse.c: Likewise.
262         * lib/setlocale.c: Likewise.
263         * lib/sigaction.c: Likewise.
264         * lib/strerror_r.c: Likewise.
265         * lib/tmpdir.c: Likewise.
266         * lib/vasnprintf.c: Likewise.
267         * lib/w32spawn.h: Likewise.
268         * lib/waitpid.c: Likewise.
269         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
270         * m4/locale-ar.m4: Likewise.
271         * m4/locale-fr.m4: Likewise.
272         * m4/locale-ja.m4: Likewise.
273         * m4/locale-tr.m4: Likewise.
274         * m4/locale-zh.m4: Likewise.
275         * m4/printf.m4: Likewise.
276         * tests/test-cloexec.c: Likewise.
277         * tests/test-copy-acl.sh: Likewise.
278         * tests/test-copy-file.sh: Likewise.
279         * tests/test-file-has-acl.sh: Likewise.
280         * tests/test-set-mode-acl.sh: Likewise.
281         * tests/test-dup-safer.c: Likewise.
282         * tests/test-dup2.c: Likewise.
283         * tests/test-dup3.c: Likewise.
284         * tests/test-fcntl.c: Likewise.
285         * tests/test-nonblocking-pipe.h: Likewise.
286         * tests/test-nonblocking-socket.h: Likewise.
287         * tests/test-pipe.c: Likewise.
288         * tests/test-pipe2.c: Likewise.
289         * tests/test-spawn-pipe-child.c: Likewise.
290         * doc/acl-resources.txt: Likewise.
291         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
292         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
293         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
294         * lib/localcharset.c: Update comments to mention native Windows.
295         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
296         * lib/localename.c: Likewise.
297         * lib/progreloc.c: Likewise.
298         * lib/relocatable.c: Likewise.
299         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
300         (windows_compute_revents): Renamed from win32_compute_revents.
301         (windows_compute_revents_socket): Renamed from
302         win32_compute_revents_socket.
303         * lib/select.c: Update comments to mention native Windows.
304         (windows_poll_handle): Renamed from win32_poll_handle.
305         * m4/threadlib.m4: Update comments to mention native Windows.
306         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
307         --enable-threads=windows instead of --enable-threads=win32. Set
308         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
309         * lib/glthread/lock.h: Update comments to mention native Windows.
310         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
311         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
312         USE_WIN32_THREADS.
313         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
314         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
315         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
316         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
317         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
318         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
319         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
320         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
321         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
322         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
323         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
324         * tests/test-tls.c: Likewise.
325         Rationale:
326         Microsoft renamed the "Win32 API" to "Windows API", as it is available
327         on both 32-bit and 64-bit Windows systems.
328         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
329         line of distinction is between "native Windows" on one side and Unix/
330         POSIX systems on the other side. More details in
331         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
332         Suggested by Paul Eggert.
333
334 2012-01-03  Bruno Haible  <bruno@clisp.org>
335
336         isatty: Support for MSVC 9.
337         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
338         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
339         (_isatty_nothrow): New function.
340         (isatty): Use it instead of _isatty.
341         (IsConsoleHandle): Add comment, from Paolo Bonzini.
342         * lib/poll.c (IsConsoleHandle): Likewise.
343         * lib/select.c (IsConsoleHandle): Likewise.
344         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
345         (gl_PREREQ_ISATTY): New macro.
346         * modules/isatty (Depends-on): Add msvc-inval.
347         (configure.ac): Invoke gl_PREREQ_ISATTY.
348
349 2012-01-03  Jim Meyering  <meyering@redhat.com>
350
351         maint.mk: remove temporary transition aid from over 1.5 years ago
352         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
353         purpose was to aid in the transition (avoiding silent malfunction)
354         from that old name to the new _sc_search_regexp.  This shim was
355         added by commit 219c504b.
356
357         init.sh: do not try to accommodate compare arguments starting with "-"
358         * tests/init.sh (compare_dev_null_): Do not try to accommodate
359         compare arguments that start with "-".  Besides, we do not worry
360         about this when invoking diff or cmp; why start now with sed?
361         Using "--" to separate options from argument would trigger sed
362         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
363         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
364
365 2012-01-02  Bruno Haible  <bruno@clisp.org>
366
367         Enhance tests for module 'isatty'.
368         * modules/isatty-tests (Depends-on): Add pipe-posix.
369         * tests/test-isatty.c: Include <fcntl.h>.
370         (DEV_NULL): New macro.
371         (main): Test the resut of isatty() also on regular files, pipes, and
372         /dev/null.
373
374         New module 'isatty'.
375         * lib/unistd.in.h (isatty): New declaration.
376         * lib/isatty.c: New file, based on an idea of
377         Bastien Roucariès <roucaries.bastien@gmail.com>.
378         * m4/isatty.m4: New file.
379         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
380         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
381         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
382         REPLACE_ISATTY.
383         * modules/isatty: New file.
384         * doc/posix-functions/isatty.texi: Mention the new module.
385         Suggested by Paolo Bonzini.
386
387 2012-01-02  Bruno Haible  <bruno@clisp.org>
388
389         canonicalize: Tweak 2011-12-29 commit.
390         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
391         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
392
393 2012-01-02  Jim Meyering  <meyering@redhat.com>
394
395         gitlog-to-changelog: describe input syntax in --help output
396         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
397
398         gitlog-to-changelog: fix typo in --help: show backslash before email @
399         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
400         in sources, but not in actual output.
401
402 2011-12-30  Jim Meyering  <meyering@redhat.com>
403
404         gitlog-to-changelog: don't malfunction when name contains %-directive
405         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
406         in a name string cause trouble.  E.g., with a user name of "%s",
407         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
408
409 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
410
411         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
412         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
413         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
414         the "  (tiny change)" notation that is appended to the standard
415         ChangeLog "date  name  email" header line.
416
417 2012-01-01  Jim Meyering  <meyering@redhat.com>
418
419         test-framework-sh: init.sh: fix "make dist" failure
420         When using gnulib-tool's --with-tests option and any module that
421         depends on test-framework-sh, "make dist" would fail due to the
422         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
423         in the gltests directory, and not in the gllib/ directory.
424         One way to work around that is to move the EXTRA_DIST += init.sh
425         from the primary module to the -tests one:
426         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
427         * modules/test-framework-sh (Makefile.am): ...not here.
428         Reported by Tom G. Christensen in
429         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
430
431         version-etc: update copyright year reported by --version
432         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
433
434 2011-12-31  Pádraig Brady  <P@draigBrady.com>
435
436         canonicalize: only stat() if required
437         * lib/canonicalize.c (canonicalize_filename_mode):
438         Avoid calling l?stat() when both CAN_MISSING,
439         and CAN_NOLINKS are set, as we neither need
440         to resolve symlinks or test component existence.
441
442 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
443
444         doc: cover st_ino issues once; add OpenVMS etc.
445         * doc/posix-functions/stat.texi (stat):
446         * doc/posix-functions/lstat.texi (lstat):
447         * doc/posix-functions/fstatat.texi (fstatat):
448         * doc/posix-functions/fstat.texi (fstat):
449         Move general 'struct stat' stuff to sys_stat.texi,
450         leaving behind a pointer.
451         * doc/posix-headers/sys_stat.texi (sys/stat.h):
452         Merge duplicate info about 'struct stat' problems into here.
453         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
454         and suggest partial workarounds.
455
456         same-inode: port to OpenVMS
457         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
458         three st_ino values.
459
460 2011-12-30  Pádraig Brady  <P@draigBrady.com>
461
462         canonicalize: fix references to stat() and lstat()
463         * lib/canonicalize.c (canonicalize_filename_mode):
464         Ensure references always resolve to a replacement
465         function if required (even via a macro).
466
467 2011-12-30  Jim Meyering  <meyering@redhat.com>
468
469         gitlog-to-changelog: remove a little duplication
470         * build-aux/gitlog-to-changelog (main): Grep @lines once,
471         rather than twice.
472
473 2011-12-29  Pádraig Brady  <P@draigBrady.com>
474
475         canonicalize: add support for not resolving symlinks
476         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
477         indicate we don't want to follow symlinks.  Also
478         provide CAN_MODE_MASK to aid setting these existing
479         mutually exclusive values.
480         * lib/canonicalize.c (canonicalize_filename_mode):
481         Extract the flags from can_mode parameter, which
482         are currently just used to select between stat()
483         and lstat().  Also ensure that mutually exclusive
484         values are flagged immediately as invalid.
485         * tests/test-canonicalize.c: Verify symlinks are
486         not followed, and that invalid flag combinations
487         are diagnosed.
488
489 2011-12-25  Jim Meyering  <meyering@redhat.com>
490
491         gitlog-to-changelog: do not clump multi-paragraph entries
492         Identical header lines (date,name,email+coauthors) are suppressed,
493         thus putting all entries with those same characteristics under
494         a single header.  However, when a log entry consists of two or
495         more paragraphs, it may not be clear where it starts and ends.
496         This change makes it so that such an entry is always separated
497         from others by a header line, even when that header would
498         otherwise be suppressed.
499         * build-aux/gitlog-to-changelog: Implement the above.
500         Inspired by a related request from Stefano Lattarini in
501         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
502
503 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
504
505         announce-gen: fix `cmd' typo in diagnostic
506         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
507         diagnostic: a missing '$' meant that the command was not output.
508
509 2011-12-23  Jim Meyering  <meyering@redhat.com>
510
511         test-framework-sh: distribute init.sh
512         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
513         Otherwise, "make -C gnulib-tests check" (at least in grep) would
514         fail due to the lack of init.sh.
515
516         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
517         * modules/atexit-tests: Rather than listing tests/init.sh,
518         now that there's a module for it, simply depend on that new module.
519         * modules/closein-tests: Likewise.
520         * modules/exclude-tests: Likewise.
521         * modules/getcwd-tests: Likewise.
522         * modules/perror-tests: Likewise.
523         * modules/pread-tests: Likewise.
524         * modules/pwrite-tests: Likewise.
525         * modules/vc-list-files-tests: Likewise.
526         * modules/verify-tests: Likewise.
527         * modules/xalloc-die-tests: Likewise.
528         * modules/xstrtoimax-tests: Likewise.
529         * modules/xstrtol-tests: Likewise.
530         * modules/xstrtoll-tests: Likewise.
531         * modules/xstrtoumax-tests: Likewise.
532         * modules/yesno-tests: Likewise.
533
534 2011-12-22  Jim Meyering  <meyering@redhat.com>
535
536         test-framework-sh: add minimal tests of init.sh's compare function
537         * modules/test-framework-sh-tests: New file.
538         * tests/test-init.sh: New file.
539
540         test-framework-sh: new module
541         * modules/test-framework-sh: New file.
542         * MODULES.html.sh (Support for maintaining and releasing projects):
543         List it.
544
545         init.sh: do not emit simulated diff output to stderr
546         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
547
548 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
549
550         .gitignore: ignore gnulib.dvi and regex.info
551         * doc/.gitignore:add gnulib.dvi and regex.info
552
553 2011-12-22  Jim Meyering  <meyering@redhat.com>
554
555         init.sh: correct previous change
556         * tests/init.sh (compare): My previous change was wrong.
557         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
558
559         init.sh: avoid unwarranted test failure when using "set -e"
560         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
561         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
562         a use like "compare exp out" would get evoke an unconditional failure.
563
564 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
565
566         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
567         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
568         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
569         autoreconf that did not.
570         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
571         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
572
573 2011-12-17  Jim Meyering  <meyering@redhat.com>
574
575         bootstrap: remove some now-unneeded code
576         This script arose back when gnulib-tool was young.
577         Since then, it has seen improvements that render much of this
578         script unnecessary.  In particular, it can now make symlinks
579         to the files it uses.  Also, I no longer see as much value in
580         marking files as read-only via comments.
581         If you relied on the symlink-creation feature of the preceding
582         version of this script, you can get most of that functionality
583         by adding the --symlink option to the definition of
584         gnulib_tool_option_extras in your bootstrap.conf file.
585         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
586         Run autopoint and libtoolize *before* gnulib-tool.
587         After it, run an abbreviated autoreconf, rather than a loop around
588         all tools.
589         (slirp, bt_mark_as_generated): Remove functions.
590
591 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
592
593         ftoastr: fix typo
594         * lib/ftoastr.h: Fix misspelling in comment.
595
596 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
597
598         * top/README-release: fix punctuation.
599
600 2011-12-17  Jim Meyering  <meyering@redhat.com>
601
602         bootstrap: correct the recent buildreq change
603         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
604         had no effect.
605         * build-aux/bootstrap (buildreq): Bracket each search term with
606         "*...*", so that the shell "case" statement works as intended.
607         Add comments.
608
609 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
610
611         build: let bootstrap resort to wget when downloading .po files
612         * build-aux/bootstrap (download_po_files): Fallback to wget when
613         downloading the .po files via rsync fails.  This is necessary to
614         bootstrap from behind a strict firewall.
615
616 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
617
618         stdint: don't assume C++11 when compiling with g++
619         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
621         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
622         work also in C++ before C++11, as that improperly inhibits
623         generating a substitute stdint.h for that case.
624
625 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
626
627         alloca: protect comment from gnulib-tool
628         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
629         that gnulib-tool doesn't think it's a license, and munge it to
630         say "GCC version 3".
631
632 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
633
634         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
635         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
636         $(abs_top_builddir) instead of $(top_builddir).
637
638 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
639
640         strftime-tests: also test nanoseconds
641         * tests/test-strftime.c (T): Add a test of %N.
642
643 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
644
645         inttypes, stdint: add C++11 support
646         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
647         when including inttypes.h and stdint.h.  Support this change to
648         the standard.
649         * doc/posix-headers/inttypes.texi (inttypes.h):
650         * doc/posix-headers/stdint.texi (stdint.h): Document this.
651         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
652         Define if not defined already, for the benefit of pre-C++11 hosts.
653         Define the standard format macros (e.g., PRId8) always.
654         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
655         Likewise, if __cpluspus.  Define the standard constant and limit
656         macros (e.g., INT8_C, INT8_MAX) always.
657         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
658         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
659         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
660         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
661         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
662         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
663         Likewise.
664
665 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
666
667         nonblocking tests: Fix test failure on Linux/PPC.
668         Suggested by Prerna Saxena in
669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
670         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
671         Set to 1100000.
672
673 2011-12-12  Jim Meyering  <meyering@redhat.com>
674
675         argmatch: don't hard-code `' when listing valid option arguments
676         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
677         use the quote function to add quotes.  Use fputs rather than
678         fprintf for the format string with no format directive.
679
680 2011-12-07  Eric Blake  <eblake@redhat.com>
681
682         bootstrap: detect tools required by gnulib-tool
683         * build-aux/bootstrap (buildreq): Provide minimum implicit
684         dependencies.
685         * DEPENDENCIES: Mention patch as a prereq.
686
687 2011-12-04  Bruno Haible  <bruno@clisp.org>
688
689         sethostname: Port to Windows platforms.
690         * lib/sethostname.c: Provide an alternate implementation for Windows
691         platforms.
692         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
693         (main): Skip the test if sethostname() fails with EPERM. On Windows
694         platforms, don't check the result of gethostname().
695
696 2011-12-04  Bruno Haible  <bruno@clisp.org>
697             Jim Meyering  <meyering@redhat.com>
698
699         tests: Avoid spurious error message on platforms without mktemp program.
700         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
701
702 2011-12-04  Bruno Haible  <bruno@clisp.org>
703
704         sethostname: Fix documentation.
705         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
706         "not fixed" section.
707
708 2011-12-03  Bruno Haible  <bruno@clisp.org>
709
710         gnulib-tool: Verify that the License field is present and non-empty.
711         * gnulib-tool (func_get_license_raw): New function, extracted from
712         func_get_license.
713         (func_get_license): Use it. Warn if the module is not a test module and
714         has no license.
715         Suggested by Jim Meyering.
716
717 2011-12-03  Bruno Haible  <bruno@clisp.org>
718
719         sethostname tests: Fix link error on mingw.
720         * tests/test-sethostname1.c: New file, extracted from
721         tests/test-sethostname.c.
722         * tests/test-sethostname2.c: New file, extracted from
723         tests/test-sethostname.c.
724         * tests/test-sethostname.c: Remove file.
725         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
726         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
727         (Depends-on): Add gethostname.
728         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
729         Link the latter with $(GETHOSTNAME_LIB).
730
731         sethostname tests: Fix compilation error on mingw.
732         * tests/test-sethostname.c: Don't include <sys/types.h>.
733         (geteuid): Use a dummy value without uid_t.
734         * modules/sethostname-tests (Depends-on): Remove sys_types.
735
736         sethostname tests: Avoid a gcc warning.
737         * tests/test-sethostname.c (main): Remove an unused variable.
738
739         Tweak last commit.
740         * modules/sethostname-tests (Files): Sort by decreasing importance.
741         (configure.ac): Check for geteuid.
742         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
743         the test when there's nothing to test. Drop an unnecessary cast.
744         Improve an error message. Verify that the final sethostname() call
745         succeeds.
746
747 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
748
749         Add a test suite for the sethostname module.
750         * modules/sethostname-tests: New file.  A test program
751         for the sethostname module.
752         * tests/test-sethostname.c: Likewise.
753
754 2011-12-03  Bruno Haible  <bruno@clisp.org>
755
756         Tweak last commit.
757         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
758         Fix preprocessor directives indentation. Fix typos.
759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
760         * modules/unistd (Makefile): Likewise.
761
762 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
763
764         Integrate the sethostname module into unistd.
765         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
766         into the unistd.h header.
767         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
768         preprocessor directives.
769         * modules/unistd: Setup the Makefile substitutions of the
770         SETHOSTNAME preprocessor directives.
771
772 2011-12-03  Bruno Haible  <bruno@clisp.org>
773
774         Tweak last commit.
775         * lib/sethostname.c: Don't include <string.h>.
776         (sethostname): No need to copy the argument string to the stack. Don't
777         call clearerr. Preserve errno when fprintf failed.
778         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
779         Don't invoke AC_REPLACE_FUNCS.
780         * modules/sethostname (Link): Remove empty section.
781         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
782         failure problem.
783
784 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
785
786         New module 'sethostname'.
787         * lib/sethostname.c (sethostname): New file.  Provide sethostname
788         for systems that lack it.
789         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
790         sethostname declaration and function.
791         * modules/sethostname: New file.  Define the sethostname module.
792
793 2011-12-03  Bruno Haible  <bruno@clisp.org>
794
795         Tweak last commit.
796         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
797
798 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
799
800         Split the HOST_NAME_MAX detection into a separate m4 macro.
801         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
802         macro so it can be used by the pending sethostname module.
803
804 2011-12-03  Bruno Haible  <bruno@clisp.org>
805
806         Fix module descriptions syntax.
807         * modules/argv-iter (License): Fix syntax.
808         * modules/di-set (License): Likewise.
809         * modules/ino-map (License): Likewise.
810         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
811
812 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
813
814         stdalign: port to Clang 3.0
815         Problem reported by Simon Josefsson in
816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
817         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
818         which has <stdalign.h> but which does not define alignof.
819         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
820
821 2011-12-01  Eric Blake  <eblake@redhat.com>
822
823         mktempd: silence dd usage
824         * build-aux/mktempd (rand_bytes): Silence dd.
825
826 2011-11-30  Simon Josefsson  <simon@josefsson.org>
827
828         manywarnings: Don't mention gcc version in docstring.
829         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
830         Jim Meyering <meyering@redhat.com>.
831
832 2011-11-30  Jim Meyering  <meyering@redhat.com>
833
834         hash: mark a few floating point constants with "f" suffix
835         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
836         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
837         floating point constants with "f", since they're destined to be
838         saved/used as "float"s.
839
840 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
841
842         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
843         * tests/test-float.c (test_long_double): Correct and re-enable the
844         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
845
846 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
847
848         Avoid subtracting two pointers that don't point into the same block.
849         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
850         only pointers into the same memory block are subtracted. We cannot
851         assume that sizeof (ptrdiff_t) == sizeof (void *).
852
853 2011-11-29  Eric Blake  <eblake@redhat.com>
854
855         maint.mk: add syntax check for use of compare from init.sh
856         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
857         moved here from coreutils.
858
859         manywarnings: drop -Wunsuffixed-float-constants
860         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
861         '1.0D', which is the only way to silence this warning for 'double'.
862
863 2011-11-29  Jim Meyering  <meyering@redhat.com>
864
865         hash: mark compute_bucket_size with the pure attribute
866         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
867
868         quotearg, propername: correct pragma guard expression
869         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
870         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
871
872 2011-11-28  Jim Meyering  <meyering@redhat.com>
873
874         propername: do not mark proper_name with the const attribute
875         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
876         since it examines data pointed to by its parameter.
877         * lib/propername.c (proper_name): Instead, add a pragma to suppress
878         the suggestion from -Wsuggest-attribute=const.
879
880         propername: mark one more function as const
881         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
882
883 2011-11-27  Jim Meyering  <meyering@redhat.com>
884
885         mark functions with const and pure attributes
886
887         Mark functions per suggestions from gcc-4.6 when using these options:
888         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
889         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
890         Follow these guidelines: when possible, apply the attribute to
891         an extern declaration, not to its definition.  Apply it to the
892         definition only when the definition is static.
893         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
894         * lib/argv-iter.h (argv_iter_n_args): Likewise.
895         * lib/base64.h (isbase64): Likewise.
896         * lib/basename-lgpl.c (last_component, base_len): Likewise.
897         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
898         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
899         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
900         (c_tolower, c_toupper): Likewise.
901         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
902         * lib/chdir-long.c (find_non_slash): Likewise.
903         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
904         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
905         * lib/file-type.h (file_type): Likewise.
906         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
907         * lib/filevercmp.c (verrevcmp): Likewise.
908         * lib/freadahead.h (freadahead): Likewise.
909         * lib/fts.c (fts_maxarglen): Likewise.
910         * lib/hash-pjw.h (hash_pjw): Likewise.
911         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
912         * lib/hash.c (is_prime, next_prime): Likewise.
913         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
914         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
915         (hash_table_ok, hash_get_first, hash_string): Likewise.
916         (compute_bucket_size): Likewise.
917         * lib/i-ring.h (i_ring_empty): Likewise.
918         * lib/isnan.c (isnanl): Likewise.
919         * lib/math.h (isnanl, rpl_isnanl): Likewise.
920         * lib/memcasecmp.h (memcasecmp): Likewise.
921         * lib/memchr2.h (memchr2): Likewise.
922         * lib/memcmp2.h (memcmp2): Likewise.
923         * lib/parse-datetime.y (lookup_zone): Likewise.
924         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
925         [!WINDOWS_SOCKETS]: Likewise.
926         * lib/strnlen1.h (strnlen1): Likewise.
927         * lib/uniwidth.in.h (uc_width): Likewise.
928         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
929         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
930         (quoting_options_from_style): Add a comment.
931         * lib/propername.h (proper_name): Add a comment.
932
933 2011-11-27  Bruno Haible  <bruno@clisp.org>
934
935         Remove unused macros from !_LIBC code in glibc-borrowed files.
936         * lib/fnmatch.c (STRCOLL): Remove macro.
937         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
938         * lib/glob.c (__stat, __readdir64): Remove macros.
939         * lib/tempname.c (__open64, __xstat64): Remove macros.
940         Suggested by Paul Eggert.
941
942 2011-11-27  Bruno Haible  <bruno@clisp.org>
943
944         getcwd: Fix link error on MSVC 9.
945         * modules/getcwd (Depends-on): Add readdir, rewinddir.
946
947 2011-11-27  Bruno Haible  <bruno@clisp.org>
948
949         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
950         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
951         HAVE_OPENDIR is 0.
952         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
953         HAVE_CLOSEDIR is 0.
954         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
955         is 0.
956         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
957
958 2011-11-27  Bruno Haible  <bruno@clisp.org>
959
960         getcwd: Fix bug from 2011-08-17.
961         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
962         platforms that need it.
963         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
964         code of 4 to be a failure, not a success. This ensures that
965         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
966
967 2011-11-27  Bruno Haible  <bruno@clisp.org>
968
969         binary-io tests: Avoid test failure on mingw when libtool is used.
970         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
971         Don't verify the size of t-bin-out1.tmp here.
972         * tests/test-binary-io.sh: Verify it here.
973         Reported by Simon Josefsson.
974
975 2011-11-26  Bruno Haible  <bruno@clisp.org>
976
977         Fix conflict between two instantiations of module 'unistd'.
978         * gnulib-tool (func_emit_autoconf_snippet): Substitute
979         ${include_guard_prefix} also in the autoconf snippet.
980         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
982         GNULIB_UNISTD_H_GETOPT.
983         * modules/getopt-posix (configure.ac): Set the
984         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
985         * modules/getopt-gnu (configure.ac): Likewise.
986         * modules/unistd (Makefile.am): Change the substitution value of
987         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
988         Reported by Simon Josefsson.
989
990 2011-11-25  Bruno Haible  <bruno@clisp.org>
991
992         pagealign_alloc: Doc and comments.
993         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
994         module.
995         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
996
997 2011-11-25  Jim Meyering  <meyering@redhat.com>
998
999         test-update-copyright.sh: avoid false-positive failure
1000         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1001         around false positive failure on Cygwin/Windows.  The latter was
1002         matching erroneously-created files with names like
1003         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1004
1005 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1006
1007         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1008         * m4/valgrind-tests.m4: Check that the parameters that will be
1009         used works, not just a subset of them.  Reported by Bruno Haible
1010         <bruno@clisp.org>.
1011
1012 2011-11-24  Jim Meyering  <meyering@redhat.com>
1013
1014         test-stdalign.c: comment out long double tests
1015         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1016         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1017         error: '_Alignas' specifiers cannot reduce alignment of \
1018         'static_longdouble_alignas'.
1019
1020 2011-11-22  Jim Meyering  <meyering@redhat.com>
1021
1022         init.sh: make "compare /dev/null FILE" output more readable
1023         * tests/init.sh (compare_): Document the preferred order of arguments.
1024         (emit_diff_u_header_): New function.
1025         (compare_dev_null_): Emit a simulated diff, rather than just the
1026         contents of the unexpected file.  Suggestion from Bruno Haible.
1027
1028 2011-11-21  Jim Meyering  <meyering@redhat.com>
1029             Eric Blake  <eblake@redhat.com>
1030
1031         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1032         * tests/init.sh: Make our compare function slightly more portable.
1033         Reported by Bruno Haible in
1034         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1035
1036 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1037
1038         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1039         before using it, in code that ends up in config.h.
1040
1041 2011-11-20  Bruno Haible  <bruno@clisp.org>
1042
1043         getcwd: Work around getcwd bug on AIX 5..7.
1044         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1045         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1046         Use a different value for gl_cv_func_getcwd_path_max. Move the
1047         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1048         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1049         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1050         Define HAVE_MINIMALLY_WORKING_GETCWD.
1051         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1052         where it is not even minimally working, that is, on AIX.
1053         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1054         m4/getcwd-path-max.m4.
1055         (main): Update exit code computation.
1056         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1057         getcwd does not handle long file names.
1058
1059 2011-11-20  Bruno Haible  <bruno@clisp.org>
1060
1061         getcwd: Fix bug from 2009-09-10.
1062         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1063         like "no".
1064
1065 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1066
1067         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1068
1069 2011-11-20  Bruno Haible  <bruno@clisp.org>
1070
1071         fma tests: Avoid shadowing local variables.
1072         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1073         expected.
1074
1075 2011-11-20  Bruno Haible  <bruno@clisp.org>
1076
1077         copysignf tests: Fix.
1078         * tests/test-copysignf.c: Fix signature check.
1079
1080 2011-11-20  Bruno Haible  <bruno@clisp.org>
1081
1082         fma: Remove unused code.
1083         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1084         unused macros.
1085
1086 2011-11-20  Bruno Haible  <bruno@clisp.org>
1087
1088         sethostname: Fix doc about AIX.
1089         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1090         sethostname; it has it.
1091
1092         sethostname: Mention more portability problems.
1093         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1094         problem.
1095         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1096
1097 2011-11-19  Bruno Haible  <bruno@clisp.org>
1098
1099         Depend on module fcntl-h when AT_FDCWD is used.
1100         * modules/utimens (Depends-on): Add fcntl-h.
1101         * modules/areadlinkat (Depends-on): Likewise.
1102         * modules/areadlinkat-with-size (Depends-on): Likewise.
1103         * modules/faccessat (Depends-on): Likewise.
1104         * modules/fchmodat (Depends-on): Likewise.
1105         * modules/fchownat (Depends-on): Likewise.
1106         * modules/getcwd (Depends-on): Likewise.
1107         * modules/mkdirat (Depends-on): Likewise.
1108         * modules/mkfifoat (Depends-on): Likewise.
1109         * modules/readlinkat (Depends-on): Likewise.
1110         * modules/symlinkat (Depends-on): Likewise.
1111         * modules/dup2-tests (Depends-on): Likewise.
1112         * modules/fdutimensat-tests (Depends-on): Likewise.
1113         * modules/futimens-tests (Depends-on): Likewise.
1114
1115 2011-11-19  Bruno Haible  <bruno@clisp.org>
1116
1117         euidaccess: Update a comment.
1118         * lib/euidaccess.c: Update comment about platforms with faccessat.
1119
1120 2011-11-19  Bruno Haible  <bruno@clisp.org>
1121
1122         openat: Fix file list.
1123         * modules/openat (Files): Remove lib/at-func.c.
1124
1125 2011-11-19  Bruno Haible  <bruno@clisp.org>
1126
1127         fstatat: Simplify.
1128         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1129         gnulib should define rpl_fstatat, there is a
1130         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1131
1132 2011-11-19  Bruno Haible  <bruno@clisp.org>
1133
1134         Ensure 'inline' can be used in tests/test-utimens-common.h.
1135         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1136         * modules/futimens-tests (configure.ac): Likewise.
1137         * modules/utimens-tests (configure.ac): Likewise.
1138         * modules/utimensat-tests (configure.ac): Likewise.
1139
1140 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1141
1142         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1143         not hash_insert0.
1144         (hash_insert_if_absent): Doc fix.
1145
1146 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1147
1148         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1149
1150 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1151
1152         test-getcwd: disambiguate exit status
1153         * tests/test-getcwd.c (test_long_name): Return 0..7.
1154         (main): Exit with an unambiguous exit status.  The old
1155         code yielded a mysterious mixture of two failure codes.
1156
1157         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1158         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1159         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1160         rpl_fstatat or fstatat.  This should fix the other problem
1161         reported by Kai Habel in
1162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1163         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1165         and I reproduced it on a Solaris 8 host we still have in production.
1166
1167 2011-11-18  Jim Meyering  <meyering@redhat.com>
1168
1169         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1170         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1171         Add a sentence to the comment.
1172         (hash_insert0): New function that simply calls hash_insert_if_absent.
1173         * lib/hash.h (hash_insert_if_absent): Declare it.
1174         (hash_insert0): Add deprecation attribute.
1175         (_GL_ATTRIBUTE_DEPRECATED): Define.
1176         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1177         not hash_insert0.
1178         * NEWS: Mention it, even though it's not really an incompatible change.
1179
1180 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1181
1182         openat: avoid compilation failure due to lack of <errno.h> inclusion
1183         * lib/openat.c: Include <errno.h>.
1184
1185 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1186
1187         * modules/getcwd (Depends-on): Add fdopendir.
1188         This fixes one of the two problems reported by Kai Habel in
1189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1190
1191         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1192         stdalign problem reported by Ian Beckwith in
1193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1194         * modules/crypto/gc-arcfour (Depends-on):
1195         Depend conditionally on crypto/arcfour.
1196         * modules/crypto/gc-arctwo (Depends-on):
1197         Depend conditionally on crypto/arctwo.
1198         * modules/crypto/gc-des (Depends-on):
1199         Depend conditionally on crypto/des.
1200         * modules/crypto/gc-hmac-md5 (Depends-on):
1201         Depend conditionally on crypto/hmac-md5.
1202         * modules/crypto/gc-hmac-sha1 (Depends-on):
1203         Depend conditionally on crypto/hmac-sha1.
1204         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1205         * modules/crypto/gc-md4 (Depends-on):
1206         Depend conditionally on crypto/md4.
1207         * modules/crypto/gc-md5 (Depends-on):
1208         Depend conditionally on crypto/md5.
1209         * modules/crypto/gc-rijndael (Depends-on):
1210         Depend conditionally on crypto/rijndael.
1211         * modules/crypto/gc-sha1 (Depends-on):
1212         Depend conditionally on crypto/sha1.
1213         * modules/crypto/gc-arcfour:
1214         * modules/crypto/gc-arctwo:
1215         * modules/crypto/gc-des:
1216         * modules/crypto/gc-hmac-md5:
1217         * modules/crypto/gc-hmac-sha1:
1218         * modules/crypto/gc-md2:
1219         * modules/crypto/gc-md4:
1220         * modules/crypto/gc-md5:
1221         * modules/crypto/gc-rijndael:
1222         * modules/crypto/gc-sha1:
1223         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1224         now that the conditional dependencies do the work for us.
1225
1226 2011-11-17  Jim Meyering  <meyering@redhat.com>
1227
1228         tests: factor st_ctime-comparison out of two headers
1229         * tests/test-utimens-common.h (ctime_compare): Define.
1230         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1231         * tests/test-lutimens.h (test_lutimens): Likewise.
1232         * tests/test-utimens.h (test_utimens): Likewise.
1233
1234         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1235         Invoke the test program via an init.sh-using wrapper.
1236         * tests/test-getcwd.sh: New file.
1237         * modules/getcwd-tests (Files): Add it.
1238         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1239
1240 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1241
1242         gitlog-to-changelog: support multi-author commits.
1243         The FSF cares about keeping track of all authors of patches to its
1244         projects, but Git doesn't provide obvious support for multi-author
1245         changesets. Consensus seems to be forming around the use of extra
1246         Signed-off-by inspired lines in the log message formatted as
1247         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1248         multi-author commits between version control systems.
1249         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1250         log message and output in standard ChangeLog multi-author format.
1251         Reported by Peter Rosin <peda@lysator.liu.se>
1252
1253 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1254             Bruno Haible  <bruno@clisp.org>
1255
1256         Fix some modules' file list.
1257         * modules/fstatat (Files): Add m4/lstat.m4.
1258         * modules/openat (Files): Likewise.
1259         * modules/unlinkat (Files): Likewise.
1260
1261 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1262
1263         maint.mk: fix tight-scope.mk generation in VPATH builds.
1264         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1265         reference with $(srcdir) so that the file is found correctly even
1266         when running `make syntax-check' in a VPATH build.
1267
1268 2011-11-13  Bruno Haible  <bruno@clisp.org>
1269             Jim Meyering  <meyering@redhat.com>
1270
1271         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1272         * tests/init.sh (compare): Remove "No differences encountered" or
1273         synonymous output from the 'diff' program.
1274
1275 2011-11-13  Bruno Haible  <bruno@clisp.org>
1276
1277         Makefile: Tweak indentation.
1278         * Makefile: Use tab as first character in every line that contains rule
1279         commands.
1280
1281 2011-11-13  Bruno Haible  <bruno@clisp.org>
1282
1283         Syntax check for copyright statements.
1284         * check-copyright: New file.
1285         * Makefile (sc_check_copyright): New rule.
1286
1287 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1288
1289         * build-aux/git-version-gen: Add --prefix to configure the tag
1290         match string.
1291
1292 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1293
1294         * build-aux/git-version-gen: Add --help and --version.
1295
1296 2011-11-12  Jim Meyering  <meyering@redhat.com>
1297
1298         revamp the other test-exclude?.sh scripts to use init.sh, too
1299         * tests/test-exclude1.sh: Use init.sh.
1300         * tests/test-exclude2.sh: Likewise.
1301         * tests/test-exclude3.sh: Likewise.
1302         * tests/test-exclude4.sh: Likewise.
1303         * tests/test-exclude5.sh: Likewise.
1304         * tests/test-exclude6.sh: Likewise.
1305         * tests/test-exclude7.sh: Likewise.
1306         * tests/test-exclude8.sh: Likewise.
1307         * modules/exclude-tests (Files): List init.sh.
1308
1309         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1310         These shell scripts ignored failure of the binary test-exclude,
1311         so making the latter return 77 didn't cause them to be skipped.
1312         * tests/test-exclude5.sh: Exit with test-exclude's error status
1313         when that program fails.  Revamp to use init.sh.
1314         * tests/test-exclude2.sh: Likewise.
1315
1316         test-exclude: fix a typo
1317         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1318
1319 2011-11-11  Bruno Haible  <bruno@clisp.org>
1320
1321         obstack: Fix compilation error on MSVC 9.
1322         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1323
1324 2011-11-11  Jim Meyering  <meyering@redhat.com>
1325
1326         test-exclude: skip tests rather than failing on deficient systems
1327         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1328         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1329         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1330         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1331
1332 2011-11-10  Bruno Haible  <bruno@clisp.org>
1333
1334         ptsname_r test: Avoid gcc warning on glibc systems.
1335         * tests/test-ptsname_r.c (null_ptr): New function.
1336         (test_errors): Use it.
1337
1338 2011-11-10  Bruno Haible  <bruno@clisp.org>
1339
1340         ptsname_r: Avoid compilation error on OSF/1 5.1.
1341         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1343         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1344         function is not declared or incompatibly declared.
1345         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1346         * modules/ptsname_r (Depends-on, configure.ac): Update.
1347         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1348
1349 2011-11-10  Bruno Haible  <bruno@clisp.org>
1350
1351         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1352         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1353         When cross-compiling, guess yes on all platforms except AIX.
1354         Reported by Ludovic Courtès <ludo@gnu.org>.
1355
1356 2011-11-09  Bruno Haible  <bruno@clisp.org>
1357
1358         ptsname_r tests: Fix bugs.
1359         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1360         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1361
1362 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1363
1364         fstatat: work with cross-compilation
1365         Problem reported by Ludovic Courtès in
1366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1367         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1368         "cross-compiling" and assume the bug is present.  Replace
1369         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1370         an inverted sense, to be more conservative about our assumptions.
1371         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1372
1373 2011-11-09  Bruno Haible  <bruno@clisp.org>
1374
1375         Improve MODULES.html output.
1376         * modules/mkfifoat (Description): Use the word "function".
1377         * modules/readlinkat (Description): Likewise.
1378         * modules/symlinkat (Description): Likewise.
1379
1380 2011-11-09  Eric Blake  <eblake@redhat.com>
1381
1382         ptsname_r-tests: new test module
1383         * modules/ptsname_r-tests: New module.
1384         * tests/test-ptsname_r.c: New file.
1385
1386         ptsname_r: new module
1387         * modules/ptsname_r: New module.
1388         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1389         * lib/ptsname.c (__ptsname_r): Split...
1390         * lib/ptsname_r.c: ...into new file.
1391         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1392         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1393         * modules/stdlib (Makefile.am): Substitute witnesses.
1394         * lib/stdlib.in.h (ptsname_r): Declare it.
1395         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1396         * MODULES.html.sh (Misc): Likewise.
1397         * modules/ptsname (Depends-on): Alter dependency.
1398         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1399
1400 2011-11-09  Jim Meyering  <meyering@redhat.com>
1401
1402         announce-gen: be more concise when there's only one URL+tarball
1403         * build-aux/announce-gen (get_tool_versions): When you distribute
1404         only one type of tarball, combine the first two "Here are..."
1405         sections and make the key-checking grammar independent of
1406         how many tarballs there are.
1407
1408 2011-11-09  Eric Blake  <eblake@redhat.com>
1409
1410         openpty: provide a stub on mingw
1411         * lib/pty.in.h (includes): Provide forward declarations.
1412         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1413
1414         raise: fix mingw handling of SIGPIPE
1415         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1416
1417 2011-11-08  Bruno Haible  <bruno@clisp.org>
1418
1419         More conditional dependencies.
1420         * modules/faccessat (Depends-on): Add conditions.
1421         * modules/fchmodat (Depends-on): Likewise.
1422         * modules/fchownat (Depends-on): Likewise.
1423         * modules/fstatat (Depends-on): Likewise.
1424         * modules/mkfifoat (Depends-on): Likewise.
1425         * modules/readlinkat (Depends-on): Likewise.
1426         * modules/symlinkat (Depends-on): Likewise.
1427         * modules/unlinkat (Depends-on): Likewise.
1428         * modules/utimensat (Depends-on): Likewise.
1429         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1430         * modules/linkat (Depends-on): Refine the conditions.
1431         * modules/renameat (Depends-on): Likewise.
1432
1433 2011-11-08  Bruno Haible  <bruno@clisp.org>
1434
1435         faccessat: Move AC_LIBOBJ invocation to module description.
1436         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1437         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1438         invocation from here...
1439         * modules/faccessat (configure.ac): ... to here. Invoke
1440         gl_PREREQ_FACCESSAT.
1441
1442 2011-11-08  Bruno Haible  <bruno@clisp.org>
1443
1444         faccessat: Simplify autoconf macro.
1445         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1446         gl_FUNC_EUIDACCESS.
1447
1448 2011-11-08  Bruno Haible  <bruno@clisp.org>
1449
1450         renameat: Fix dependencies.
1451         * modules/renameat (Depends-on): Add stdbool.
1452
1453 2011-11-08  Bruno Haible  <bruno@clisp.org>
1454
1455         mkfifoat: Fix module description.
1456         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1457         not gl_UNISTD_MODULE_INDICATOR.
1458
1459 2011-11-08  Bruno Haible  <bruno@clisp.org>
1460
1461         fstatat: Remove unused dependency.
1462         * modules/fstatat (Depends-on): Remove fstat.
1463
1464 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1465
1466         GNUmakefile: behave when Makefile is missing.
1467         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1468
1469 2011-11-08  Bruno Haible  <bruno@clisp.org>
1470
1471         openat: Conditionalize dependencies.
1472         * lib/openat.c: Reduce the scope of some #includes.
1473         * modules/openat (Depends-on): Add conditions.
1474
1475 2011-11-07  Jim Meyering  <meyering@redhat.com>
1476
1477         maint.mk: extract GPG key ID without using a temporary file
1478         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1479         without using a temporary file.  Based on a suggestion from Werner Koch
1480         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1481
1482 2011-11-07  Eric Blake  <eblake@redhat.com>
1483
1484         grantpt: fix typo
1485         * lib/stdlib.in.h (grantpt): Check correct function.
1486
1487         maint.mk: silence new syntax check
1488         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1489
1490 2011-11-06  Bruno Haible  <bruno@clisp.org>
1491
1492         Doc about floating-point and math API.
1493         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1494         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1495
1496 2011-11-06  Bruno Haible  <bruno@clisp.org>
1497
1498         stdalign tests: Skip the test when compiled by Sun C.
1499         * tests/test-stdalign.c (main): Skip the test on Sun C.
1500
1501 2011-11-06  Bruno Haible  <bruno@clisp.org>
1502
1503         ansi-c++-opt: Complete the 2011-06-05 change.
1504         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1505         does not support namespaces, set the variable to "no", not to ":".
1506
1507 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1508
1509         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1510
1511 2011-11-06  Bruno Haible  <bruno@clisp.org>
1512
1513         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1514         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1515         (minus_zerol) [HP-UX]: New macro.
1516         (unary_minus) [HP-UX]: New function.
1517         (copysignl) [HP-UX]: Use unary_minus function.
1518
1519 2011-11-06  Bruno Haible  <bruno@clisp.org>
1520
1521         ldexp, ldexpf, ldexpl: Enhance tests.
1522         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1523         and tests/test-ldexpl.c.
1524         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1525         LDEXP, MIN_EXP, MAX_EXP): New macros.
1526         Include test-ldexp.h.
1527         (main): Just call test_function.
1528         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1529         infinity.h, nan.h.
1530         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1531         MAX_EXP): New macros.
1532         Include test-ldexp.h.
1533         (x, y): Remove variables.
1534         (main): Just call test_function.
1535         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1536         infinity.h, nan.h.
1537         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1538         MAX_EXP): New macros.
1539         Include test-ldexp.h.
1540         (x, y): Remove variables.
1541         (main): Just call test_function.
1542         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1543         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1544         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1545         (Depends-on): Add isnand-nolibm, signbit, float.
1546         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1547         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1548         (Depends-on): Add isnanf-nolibm, signbit, float.
1549
1550 2011-11-06  Bruno Haible  <bruno@clisp.org>
1551
1552         math tests: Cosmetics.
1553         * tests/test-math-c++.cc: Reorder declarations.
1554
1555 2011-11-05  Bruno Haible  <bruno@clisp.org>
1556
1557         fma*: Simplify test.
1558         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1559         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1560
1561         Tests for module 'fmal'.
1562         * modules/fmal-tests: New file.
1563         * tests/test-fmal1.c: New file.
1564         * tests/test-fmal2.c: New file.
1565
1566         New module 'fmal'.
1567         * lib/math.in.h (fmal): New declaration.
1568         * lib/fmal.c: New file.
1569         * m4/fmal.m4: New file.
1570         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1571         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1572         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1573         REPLACE_FMAL.
1574         * modules/fmal: New file.
1575         * doc/posix-functions/fmal.texi: Mention the new module and the various
1576         bugs.
1577
1578         Tests for module 'fmaf'.
1579         * modules/fmaf-tests: New file.
1580         * tests/test-fmaf1.c: New file.
1581         * tests/test-fmaf2.c: New file.
1582
1583         New module 'fmaf'.
1584         * lib/math.in.h (fmaf): New declaration.
1585         * lib/fmaf.c: New file.
1586         * m4/fmaf.m4: New file.
1587         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1589         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1590         REPLACE_FMAF.
1591         * modules/fmaf: New file.
1592         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1593         bugs.
1594
1595         Tests for module 'fma'.
1596         * modules/fma-tests: New file.
1597         * tests/test-fma1.c: New file.
1598         * tests/test-fma1.h: New file.
1599         * tests/test-fma2.c: New file.
1600         * tests/test-fma2.h: New file.
1601
1602         New module 'fma'.
1603         * lib/math.in.h (fma): New declaration.
1604         * lib/fma.c: New file.
1605         * m4/fma.m4: New file.
1606         * m4/fegetround.m4: New file.
1607         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1609         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1610         REPLACE_FMA.
1611         * modules/fma: New file.
1612         * doc/posix-functions/fma.texi: Mention the new module and the various
1613         bugs.
1614
1615         Extend gl_MATHFUNC.
1616         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1617         Support 'void' as argument type.
1618         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1619
1620 2011-11-05  Jim Meyering  <meyering@redhat.com>
1621
1622         maint.mk: also prohibit inclusion of dirent.h without use
1623         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1624
1625 2011-11-05  Bruno Haible  <bruno@clisp.org>
1626
1627         ldexpl tests: Avoid test failure on MSVC 9.
1628         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1629         value. Needed in order to enforce the conversion from a value greater
1630         than LDBL_MAX to Infinity.
1631
1632 2011-11-05  Bruno Haible  <bruno@clisp.org>
1633
1634         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1635         * modules/at-internal: New file, extracted from modules/openat.
1636         * modules/openat-h: New file.
1637         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1638         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1639         * modules/openat (Description): Add reference to POSIX function.
1640         (Files): Remove lib/openat.h, lib/openat-proc.c.
1641         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1642         intprops, unistd.
1643         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1644         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1645         gl_FCNTL_MODULE_INDICATOR.
1646         (Include): Remove unistd.h, openat.h.
1647         * modules/areadlinkat (Files): Add lib/at-func.c.
1648         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1649         openat-die, openat-h, save-cwd.
1650         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1651         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1652         openat-die, openat-h, save-cwd, unistd.
1653         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1654         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1655         openat-h, save-cwd. Remove fcntl-h, openat.
1656         * modules/fchmodat (Files): Remove lib/openat.h.
1657         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1658         openat, stdbool, unistd.
1659         * modules/fchownat (Files): Remove lib/openat.h.
1660         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1661         openat, stdbool, sys_stat.
1662         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1663         lib/openat-proc.c.
1664         (Depends-on): Add at-internal.
1665         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1666         * modules/fstatat (Files): Remove lib/openat.h.
1667         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1668         stdbool, unistd.
1669         * modules/fts (Depends-on): Add openat-h.
1670         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1671         openat.
1672         * modules/mkdirat (Files): Remove lib/openat.h.
1673         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1674         openat, stdbool, sys_stat.
1675         * modules/mkfifoat (Files): Add lib/at-func.c.
1676         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1677         openat-h, save-cwd. Remove fcntl-h, openat.
1678         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1679         * modules/readlinkat (Files): Add lib/at-func.c.
1680         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1681         openat-h, save-cwd. Remove fcntl-h, openat.
1682         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1683         openat.
1684         * modules/selinux-at (Files): Add lib/at-func.c.
1685         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1686         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1687         * modules/symlinkat (Files): Add lib/at-func.c.
1688         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1689         openat-h, save-cwd. Remove fcntl-h, openat.
1690         * modules/unlinkat (Files): Remove lib/openat.h.
1691         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1692         stdbool.
1693         * modules/utimensat (Files): Add lib/at-func.c.
1694         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1695         openat-die, openat-h, save-cwd.
1696         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1697         * modules/fdutimensat-tests (Depends-on): Add openat.
1698         * modules/fstatat-tests (Depends-on): Add openat-h.
1699         * modules/readlinkat-tests (Depends-on): Add openat.
1700         * modules/symlinkat-tests (Depends-on): Add openat.
1701
1702 2011-11-05  Bruno Haible  <bruno@clisp.org>
1703
1704         openat: Include <stdbool.h>.
1705         * lib/openat.c: Include <stdbool.h>.
1706
1707 2011-11-04  Bruno Haible  <bruno@clisp.org>
1708
1709         fchownat, renameat, unlinkat: Fix dependencies.
1710         * modules/fchownat (Depends-on): Add fstatat.
1711         * modules/renameat (Depends-on): Likewise.
1712         * modules/unlinkat (Depends-on): Likewise.
1713
1714 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1715
1716         openat: remove direct dependency on dirent
1717         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1718         and hasn't been needed ever since fdopendir was split into its own
1719         module on 2009-08-31.
1720         * modules/openat (Depends-on): Remove dirent.
1721
1722 2011-11-04  Bruno Haible  <bruno@clisp.org>
1723
1724         renameat: Optimize code size.
1725         * modules/renameat (configure.ac): Don't compile at-func2.c if
1726         REPLACE_RENAMEAT is 1.
1727
1728 2011-11-04  Bruno Haible  <bruno@clisp.org>
1729
1730         openat tests: Fix file list.
1731         * modules/openat-tests (Files): Add tests/test-open.h.
1732
1733 2011-11-04  Bruno Haible  <bruno@clisp.org>
1734
1735         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1736         * modules/fchmodat (Depends-on): Add openat-die.
1737         * modules/fchownat (Depends-on): Likewise.
1738         * modules/linkat (Depends-on): Likewise.
1739         * modules/renameat (Depends-on): Likewise.
1740         * modules/openat (Depends-on): Add dirent.
1741
1742 2011-11-04  Jim Meyering  <meyering@redhat.com>
1743
1744         at-func*.c: fix comments
1745         * lib/at-func2.c: Correct/improve first-line comment.
1746         * lib/at-func.c: Correct grammar in first-line comment.
1747
1748 2011-11-04  Bruno Haible  <bruno@clisp.org>
1749
1750         New module 'mkdirat', split off from module 'openat'.
1751         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1752         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1753         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1754         * modules/mkdirat: New file, extracted from modules/openat.
1755         * modules/openat (Files): Remove lib/mkdirat.c.
1756         (Depends-on): Remove mkdir.
1757         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1758         (Include): Remove <sys/stat.h>.
1759         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1760         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1761         tests/test-mkdir.h.
1762         (Depends-on): Remove ignore-value.
1763         (Makefile.am): Remove rules for test-mkdirat.
1764         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1765         of module 'openat'.
1766         * NEWS: Mention the change.
1767
1768 2011-11-04  Bruno Haible  <bruno@clisp.org>
1769
1770         closedir: Avoid warning on mingw.
1771         * lib/closedir.c: Include <unistd.h>.
1772
1773 2011-11-04  Bruno Haible  <bruno@clisp.org>
1774
1775         New module 'fstatat', split off from module 'openat'.
1776         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1777         defined.
1778         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1779         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1780         gl_FUNC_FSTATAT.
1781         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1782         * modules/fstatat: New file, extracted from modules/openat.
1783         * modules/openat (Files): Remove lib/fstatat.c.
1784         (Depends-on): Remove lstat.
1785         (configure.ac): Remove AC_LIBOBJ of fstatat.
1786         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1787         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1788         tests/test-lstat.h, tests/test-stat.h.
1789         (Depends-on): Remove getcwd-lgpl.
1790         (Makefile.am): Remove rules for test-fstatat.
1791         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1792         of module 'openat'.
1793         * NEWS: Mention the change.
1794         * modules/getcwd (Depends-on): Add fstatat.
1795         * modules/linkat (Depends-on): Likewise.
1796         * modules/mkfifoat-tests (Depends-on): Likewise.
1797         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1798
1799 2011-11-03  Bruno Haible  <bruno@clisp.org>
1800
1801         New module 'unlinkat', split off from module 'openat'.
1802         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1803         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1804         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1805         * modules/unlinkat: New file, extracted from modules/openat. Correct
1806         the dependency conditions.
1807         * modules/openat (Files): Remove lib/unlinkat.c.
1808         (Depends-on): Remove rmdir, unlink.
1809         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1810         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1811         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1812         tests/test-rmdir.h, tests/test-unlink.h.
1813         (Depends-on): Remove unlinkdir.
1814         (Makefile.am): Remove rules for test-unlinkat.
1815         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1816         of module 'openat'.
1817         * NEWS: Mention the change.
1818         * modules/linkat-tests (Depends-on): Add unlinkat.
1819         * modules/mkfifoat-tests (Depends-on): Likewise.
1820         * modules/readlinkat-tests (Depends-on): Likewise.
1821
1822 2011-11-02  Bruno Haible  <bruno@clisp.org>
1823
1824         New module 'fchmodat', split off from module 'openat'.
1825         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1826         defined.
1827         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1828         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1829         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1830         * modules/fchmodat: New file, extracted from modules/openat.
1831         * modules/openat (Files): Remove lib/fchmodat.c.
1832         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1833         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1834         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1835         (Makefile.am): Remove rules for test-fchmodat.
1836         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1837         of module 'openat'.
1838         * NEWS: Mention the change.
1839
1840 2011-11-02  Jim Meyering  <meyering@redhat.com>
1841
1842         putenv: indent #definition of "environ" to placate cppi
1843         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1844
1845         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1846         Git logs are often treated as immutable, because editing them
1847         changes the SHA1 checksums of all descendants.  Thus, errors in
1848         git logs tend to stay there forever.  However, when we generate
1849         a ChangeLog file -- typically for distribution -- from that git log,
1850         we can actually make corrections in the generated file.  The key
1851         lies in recording in machine-readable/applicable form the desired
1852         corrections.  See --help for description and an example.
1853         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1854         (usage): Describe it; alphabetize option descriptions.
1855         (main): Honor the new option, carefully.
1856
1857 2011-11-01  Jim Meyering  <meyering@redhat.com>
1858
1859         gitlog-to-changelog: avoid an infloop
1860         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1861         that ends up being empty.
1862
1863 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1864
1865         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1866         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1867         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1868         contains (possibly-quoted) backslashes.  This should avoid
1869         all-too-common shell bugs if COMPLICATED contains backslashes in
1870         the "wrong" places.  Reported by David Evans in
1871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1872         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1873         because we want ASCII ranges.  Is there some reason we don't use
1874         the C locale everywhere in this script?
1875         (func_module, top level): Avoid unwanted pathname expansion when
1876         $repo_url_prefix or $repo_url_suffix_repl contain shell
1877         metacharacters like '?' and '*'.
1878
1879 2011-11-01  Bruno Haible  <bruno@clisp.org>
1880
1881         fchownat: Improve description.
1882         * modules/fchownat (Description): Add link to function.
1883
1884 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1885
1886         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1887         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1889         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1890
1891 2011-11-01  Bruno Haible  <bruno@clisp.org>
1892
1893         alignof: Avoid collision with stdalign module.
1894         * lib/alignof.h (alignof): Remove macro.
1895         * NEWS: Mention the change.
1896         Reported by Paul Eggert.
1897
1898 2011-11-01  Bruno Haible  <bruno@clisp.org>
1899
1900         New module 'fchownat', split off from module 'openat'.
1901         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1902         defined.
1903         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1904         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1905         invoke gl_FUNC_FCHOWNAT.
1906         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1907         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1908         * modules/fchownat: New file, extracted from modules/openat.
1909         * modules/openat (Files): Remove lib/fchownat.c.
1910         (Depends-on): Remove lchown.
1911         (configure.ac): Remove AC_LIBOBJ of fchownat.
1912         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1913         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1914         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1915         (Depends-on): Remove mgetgroups, usleep, stat-time.
1916         (configure.ac): Remove test for getegid.
1917         (Makefile.am): Remove rules for test-fchownat.
1918         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1919         of module 'openat'.
1920         * NEWS: Mention the change.
1921
1922 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1923
1924         stdalign: port better to MSVC and to Sun C 5.11
1925         This fixes some of the problems reported by Bruno Haible in
1926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1927         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1928         shortcomings of MSVC and of Sun C 5.11.
1929         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1930         around __declspec arg.
1931         * modules/stdalign-tests (Files): Add tests/macros.h.
1932         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1933         Include macros.h, for ASSERT.
1934         (DECLARE_ALIGNED): Remove.
1935         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1936         to catch bug), and to 1 if not (simplifies the rest of the code).
1937         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1938         (CHECK_AUTO): Remove.
1939         (CHECK_ALIGNED): Check only the alignment of the static vars,
1940         since auto var alignment isn't supported by Sun C 5.11.
1941         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1942         ASSERT failures are easier to diagnose.
1943
1944 2011-10-31  Bruno Haible  <bruno@clisp.org>
1945
1946         doc about some IRIX 5.3 problems.
1947         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1948         on IRIX 5.3.
1949         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1950         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1951         5.3.
1952         * doc/posix-functions/grantpt.texi: Likewise.
1953         * doc/posix-functions/unlockpt.texi: Likewise.
1954         * doc/posix-functions/lgamma.texi: Likewise.
1955         * doc/posix-functions/nextafter.texi: Likewise.
1956         * doc/posix-functions/remainder.texi: Likewise.
1957         * doc/posix-functions/select.texi: Mention misplaced declaration on
1958         IRIX 5.3.
1959         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1960
1961 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1962
1963         gitlog-to-changelog: fix git-log invocation.
1964         git-log mishandles date strings before 1970-01-01 UTC, and there is
1965         no use to specify --since=1970-01-01 by default anyway.
1966         * build-aux/gitlog-to-changelog: By default, when no --since option
1967         was given, do not specify explicit --since option to git-log.
1968
1969 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1970
1971         gitlog-to-changelog: new option --append-dot.
1972         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1973         first non-blank line of each commit message terminated with a dot.
1974
1975 2011-10-30  Bruno Haible  <bruno@clisp.org>
1976
1977         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1978         * lib/ffsl.h: Include <config.h>.
1979         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1980
1981 2011-10-30  Jim Meyering  <meyering@redhat.com>
1982
1983         GNUmakefile: reenable "make syntax-check" for most projects
1984         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1985         build-aux variable", "syntax-check" would do nothing but succeed with
1986         the "No version control files detected..." diagnostic (unless you
1987         happened to override _build-aux via cfg.mk).
1988         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1989         to precede inclusion of maint.mk.  Otherwise, these variables would
1990         be used undefined in any project that does not override the default.
1991
1992 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1993
1994         gitlog-to-changelog: treat a message with only blank lines as empty.
1995         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1996         trailing blank lines before the code that issues a warning about an
1997         empty commit message.
1998
1999 2011-10-30  Jim Meyering  <meyering@redhat.com>
2000
2001         test-parse-datetime.c: avoid new DST-related false positive test failure
2002         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2003         based on the time/date we'll convert, not the current time.
2004         Otherwise, the moment we cross a DST boundary like today's in
2005         Europe, (CEST to CET), that offset ends up being one hour off.
2006
2007 2011-10-27  Bruno Haible  <bruno@clisp.org>
2008
2009         fstat: Tweak documentation.
2010         * modules/fstat (Description): More precise description.
2011
2012 2011-10-27  Bruno Haible  <bruno@clisp.org>
2013
2014         Update documentation regarding 'largefile' module.
2015         * doc/posix-functions/fstat.texi: Tweak wording.
2016         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2017         problems with huge directories and/or small ino_t types.
2018         * doc/posix-functions/readdir.texi: Likewise.
2019         * doc/posix-functions/rewinddir.texi: Likewise.
2020
2021 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2022
2023         maint.mk: don't maintain a second build-aux variable.
2024         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2025         depends on GNUmakefile, which already maintains a cfg.mk
2026         overridable $(_build-aux) for projects with a non-standard
2027         build-aux directory location, although without the $(srcdir)
2028         prefix.  Use that variable consistently instead of introducing a
2029         second one.  Adjust all call sites.
2030
2031 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2032
2033         Add stdalign module and use it in other modules.
2034         This is based on a previous proposal by Bruno Haible
2035         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2036
2037         stdalign: new module
2038         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2039         * modules/stdalign: New files.
2040         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2041         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2042
2043         stdalign-tests: new module
2044         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2045
2046         argp: use stdalign
2047         * lib/argp-parse.c: Include <stdalign.h>.
2048         (alignof): Remove.
2049         * modules/argp (Depends-on): Add stdalign.
2050
2051         crypto libraries: use stdalign
2052         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2053         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2054         Do not include <stdlib.h> twice, in md4.c.
2055         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2056         because we are accessing a pointer's bit-pattern, not a size.
2057         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2058         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2059         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2060         * modules/crypto/sha512: Likewise.
2061
2062         sys_socket: use stdalign, not alignof
2063         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2064         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2065
2066 2011-10-27  Bruno Haible  <bruno@clisp.org>
2067
2068         raise test: Avoid a test failure on Linux/MIPS.
2069         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2070         because 99 is a valid signal on Linux/MIPS.
2071
2072 2011-10-27  Bruno Haible  <bruno@clisp.org>
2073
2074         nonblocking tests: Fix test failure on Linux/MIPS.
2075         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2076         Set to 270000.
2077
2078 2011-10-27  Bruno Haible  <bruno@clisp.org>
2079
2080         utimensat: Work around problem on Linux/hppa.
2081         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2082         values.
2083         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2084
2085 2011-10-25  Jim Meyering  <meyering@redhat.com>
2086
2087         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2088         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2089         after symbols like NULL, size_t, etc.
2090         Reported by Alfred M. Szmidt.
2091
2092         maint.mk: exempt ENODATA from a syntax-check rule
2093         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2094         from the sc_prohibit_always-defined_macros syntax-check rule.
2095         Add a comment.  See this for more details:
2096         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2097
2098 2011-10-23  Jim Meyering  <meyering@redhat.com>
2099
2100         fts: close parent dir FD before returning from post-traversal fts_read
2101         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2102         unlink A, even though an FD open on A remained.  This is suboptimal
2103         (holding a file descriptor open longer than needed), but otherwise not
2104         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2105         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2106         that represents a real problem: it causes the removal of A to fail
2107         with e.g., "rm: cannot remove `A': Device or resource busy"
2108
2109         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2110         directory file descriptors.  After completing the final, FTS_DP,
2111         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2112         cache, but then proceeded to add a new FD to it via the subsequent
2113         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2114         final file descriptor would be closed only via fts_close's call to
2115         fd_ring_clear.  Now, it is usually closed earlier, via the final
2116         FTS_DP-returning fts_read call.
2117         * lib/fts.c (restore_initial_cwd): New function, converted from
2118         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2119         Update callers.
2120         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2121         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2122
2123 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2124             Bruno Haible  <bruno@clisp.org>
2125             Jim Meyering  <jim@meyering.net>
2126
2127         readme-release: improve safety of release prep instructions.
2128         * README-release: Don't git pull all branches when only master
2129         is needed for the release process.
2130         Run make maintainer-clean before changing trees and merging.
2131         Don't try to run ./configure right after git pull in case files
2132         that influence the bootstrap process have changed, move the
2133         ./configure step to after running ./bootstrap.
2134         Don't bootstrap "one last time"... it's the first time!
2135
2136 2011-10-22  Bruno Haible  <bruno@clisp.org>
2137
2138         errno, strerror-override: Support for MSVC 10.
2139         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2140         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2141         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2142         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2143         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2144         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2145         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2146         Assign values compatible with MSVC 10.
2147         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2148         New macros.
2149         (GNULIB_defined_EWINSOCK): New macro.
2150         * lib/strerror-override.c (strerror_override): Update accordingly.
2151         * lib/strerror-override.h: Likewise.
2152         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2153         longer equal to the corresponding errno value.
2154         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2155
2156 2011-10-22  Bruno Haible  <bruno@clisp.org>
2157
2158         perror: Recognize when test program crashes.
2159         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2160         strerror, set gl_cv_func_perror_works to no.
2161         Reported by Daniel Richard G. <skunk@iskunk.org>.
2162
2163         perror: Fix indentation.
2164         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2165
2166 2011-10-22  Bruno Haible  <bruno@clisp.org>
2167
2168         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2169         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2170         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2171         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2172         functions, not as a macro.
2173         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2174         macros.
2175         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2176         absence of macro.
2177         Suggested by Eric Blake.
2178         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2179
2180 2011-10-21  Bruno Haible  <bruno@clisp.org>
2181
2182         relocatable-prog-wrapper: Don't leave object files behind.
2183         * build-aux/install-reloc: Re-synchronize list of .o files to be
2184         removed with list of compilation units.
2185
2186 2011-10-20  Bruno Haible  <bruno@clisp.org>
2187
2188         openpty, posix_openpt: Remove code duplication.
2189         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2190         * lib/openpty.c: Include <stdlib.h>.
2191         (openpty): Use posix_openpt on all platforms except IRIX.
2192         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2193
2194 2011-10-20  Bruno Haible  <bruno@clisp.org>
2195
2196         unlockpt: Detect invalid argument.
2197         * lib/unlockpt.c: Include <fcntl.h>.
2198         (unlockpt): Check whether fd is valid, using fcntl().
2199         * modules/unlockpt (Depends-on): Add fcntl-h.
2200
2201 2011-10-20  Bruno Haible  <bruno@clisp.org>
2202
2203         openpty: Avoid compilation error on AIX 6.1.
2204         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2205
2206 2011-10-20  Bruno Haible  <bruno@clisp.org>
2207
2208         posix_openpt: Support for OpenBSD.
2209         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2210         (posix_openpt) [OpenBSD]: New code.
2211         * lib/grantpt.c: Include <fcntl.h>.
2212         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2213         * modules/grantpt (Depends-on): Add fcntl-h.
2214
2215 2011-10-20  Bruno Haible  <bruno@clisp.org>
2216
2217         posix_openpt test: Coding style.
2218         * tests/test-posix_openpt.c: Use GNU coding style.
2219
2220 2011-10-20  Bruno Haible  <bruno@clisp.org>
2221
2222         grantpt: Support --avoid=pt_chown.
2223         * modules/grantpt (Files): Add lib/pty-private.h.
2224
2225 2011-10-20  Bruno Haible  <bruno@clisp.org>
2226
2227         posix_openpt: Fix autoconf macro.
2228         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2229         unneeded check for _getpty.
2230
2231 2011-10-20  Bruno Haible  <bruno@clisp.org>
2232
2233         openpty: Update comments.
2234         * lib/openpty.c: Add comments about Minix.
2235
2236 2011-10-19  Eric Blake  <eblake@redhat.com>
2237
2238         openpty: relax license
2239         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2240
2241         pt_chown: use configmake to simplify build
2242         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2243
2244         ptsname and others: relax license
2245         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2246         * modules/unlockpt (License): Likewise.
2247         * modules/pt_chown (License): Likewise.
2248         * modules/ptsname (License): Likewise.
2249         * modules/ttyname_r (License): Likewise.
2250
2251 2011-10-19  Jim Meyering  <meyering@redhat.com>
2252
2253         posix_openpt: remove spurious #endif
2254         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2255
2256 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2257
2258         maint.mk: Respect $(build_aux) in web-manual rule.
2259         * top/maint.mk (web-manual): Find gen-announce script in user's
2260         $(build_aux) directory instead of hard-coding 'build-aux'.
2261
2262 2011-10-19  Bruno Haible  <bruno@clisp.org>
2263
2264         posix_openpt: Fix compilation error.
2265         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2266         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2267         Mention the openpty module as an alternative.
2268
2269 2011-10-19  Bruno Haible  <bruno@clisp.org>
2270
2271         Support for old NeXTstep 3.3 frexp().
2272         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2273         execution time of the test to 5 seconds.
2274         Reported by Daniel Richard G. <skunk@iskunk.org>.
2275
2276 2011-10-19  Bruno Haible  <bruno@clisp.org>
2277
2278         Support for old NeXTstep 3.3 sed.
2279         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2280         part, use /.../, not \|...|. Escape periods in the header file name.
2281         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2282         Reported by Daniel Richard G. <skunk@iskunk.org>.
2283
2284 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2285
2286         Support for old NeXTstep 3.3 gcc.
2287         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2288         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2289         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2290         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2291         * lib/regex.h (_Restrict_arr_): Likewise.
2292         * lib/regex_internal.h (re_token_t): Likewise.
2293         * lib/regexec.c (check_node_accept_bytes): Likewise.
2294         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2295
2296 2011-10-18  Eric Blake  <eblake@redhat.com>
2297
2298         posix_openpt: new module
2299         * modules/posix_openpt: New module.
2300         * m4/posix_openpt.m4: New file.
2301         * lib/posix_openpt.c: Likewise.
2302         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2303         (gl_STDLIB_H_DEFAULTS): Set defaults.
2304         * modules/stdlib (Makefile.am): Substitute macros.
2305         * lib/stdlib.in.h (posix_openpt): Declare.
2306         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2307         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2308         * modules/posix_openpt-tests: New test module.
2309         * tests/test-posix_openpt.c: New test.
2310
2311 2011-10-15  Bruno Haible  <bruno@clisp.org>
2312
2313         xstrtoll: Fix compilation failure.
2314         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2315         from lib/strtol.c.
2316         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2317         some platforms.
2318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2319
2320 2011-10-15  Bruno Haible  <bruno@clisp.org>
2321
2322         vasnprintf: Optimize bit search operation.
2323         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2325         gl_DOUBLE_EXPONENT_LOCATION.
2326         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2327         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2328         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2329         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2330         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2331         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2332         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2333         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2334         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2335
2336 2011-10-15  Bruno Haible  <bruno@clisp.org>
2337
2338         vasnprintf: Fix comments.
2339         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2340
2341 2011-10-14  Bruno Haible  <bruno@clisp.org>
2342
2343         Tests for module 'integer_length_ll'.
2344         * modules/integer_length_ll-tests: New file.
2345         * tests/test-integer_length_ll.c: New file.
2346
2347         New module 'integer_length_ll'.
2348         * lib/integer_length_ll.c: New file.
2349         * modules/integer_length_ll: New file.
2350
2351 2011-10-14  Bruno Haible  <bruno@clisp.org>
2352
2353         Tests for module 'integer_length_l'.
2354         * modules/integer_length_l-tests: New file.
2355         * tests/test-integer_length_l.c: New file.
2356
2357         New module 'integer_length_l'.
2358         * lib/integer_length_l.c: New file.
2359         * modules/integer_length_l: New file.
2360
2361 2011-10-14  Bruno Haible  <bruno@clisp.org>
2362
2363         Tests for module 'integer_length'.
2364         * modules/integer_length-tests: New file.
2365         * tests/test-integer_length.c: New file.
2366
2367         New module 'integer_length'.
2368         * lib/integer_length.h: New file.
2369         * lib/integer_length.c: New file.
2370         * modules/integer_length: New file.
2371
2372 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2373
2374         popen: Fix dependency conditions.
2375         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2376
2377 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2378
2379         perror: Fix autoconf test.
2380         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2381         <stdlib.h> and <string.h>.
2382
2383 2011-10-14  Bruno Haible  <bruno@clisp.org>
2384
2385         ffsl: Optimize on 64-bit platforms.
2386         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2387         unrolling.
2388
2389 2011-10-13  Bruno Haible  <bruno@clisp.org>
2390
2391         ffsl: Optimize on 32-bit platforms.
2392         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2393         use ffs() without a loop.
2394
2395         ffsl, ffsll: Optimize for GCC.
2396         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2397         * lib/ffsl.c (GCC_BUILTIN): New macro.
2398         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2399
2400 2011-10-13  Bruno Haible  <bruno@clisp.org>
2401
2402         ffs, bcopy, memset: Support symbol renaming via config.h.
2403         * lib/ffs.c: Include <config.h>.
2404         * lib/bcopy.c: Likewise.
2405         * lib/memset.c: Likewise.
2406
2407 2011-10-10  Bruno Haible  <bruno@clisp.org>
2408
2409         atanl: Simplify for platforms where 'long double' == 'double'.
2410         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2411         alternative implementation.
2412         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2413         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2414         * modules/atanl (Depends-on): Add atan. Update conditions.
2415
2416 2011-10-10  Bruno Haible  <bruno@clisp.org>
2417
2418         acosl: Simplify for platforms where 'long double' == 'double'.
2419         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2420         alternative implementation.
2421         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2422         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2423         * modules/acosl (Depends-on): Add acos. Update conditions.
2424
2425 2011-10-10  Bruno Haible  <bruno@clisp.org>
2426
2427         asinl: Simplify for platforms where 'long double' == 'double'.
2428         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2429         alternative implementation.
2430         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2431         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2432         * modules/asinl (Depends-on): Add asin. Update conditions.
2433
2434 2011-10-10  Bruno Haible  <bruno@clisp.org>
2435
2436         tanl: Simplify for platforms where 'long double' == 'double'.
2437         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2438         implementation.
2439         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2440         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2441         * modules/tanl (Depends-on): Add tan. Update conditions.
2442         (configure.ac): Don't compile trigl.c if
2443         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2444
2445 2011-10-10  Bruno Haible  <bruno@clisp.org>
2446
2447         cosl: Simplify for platforms where 'long double' == 'double'.
2448         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2449         implementation.
2450         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2451         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2452         * modules/cosl (Depends-on): Add cos. Update conditions.
2453         (configure.ac): Don't compile sincosl.c and trigl.c if
2454         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2455
2456 2011-10-10  Bruno Haible  <bruno@clisp.org>
2457
2458         sinl: Simplify for platforms where 'long double' == 'double'.
2459         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2460         implementation.
2461         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2462         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2463         * modules/sinl (Depends-on): Add sin. Update conditions.
2464         (configure.ac): Don't compile sincosl.c and trigl.c if
2465         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2466
2467 2011-10-10  Bruno Haible  <bruno@clisp.org>
2468
2469         logl: Simplify for platforms where 'long double' == 'double'.
2470         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2471         implementation.
2472         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2473         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2474         * modules/logl (Depends-on): Add log. Update conditions.
2475
2476 2011-10-10  Bruno Haible  <bruno@clisp.org>
2477
2478         expl: Simplify for platforms where 'long double' == 'double'.
2479         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2480         implementation.
2481         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2482         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2483         * modules/expl (Depends-on): Add exp. Update conditions.
2484
2485 2011-10-10  Bruno Haible  <bruno@clisp.org>
2486
2487         sqrtl: Simplify for platforms where 'long double' == 'double'.
2488         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2489         alternative implementation.
2490         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2491         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2492         * modules/sqrtl (Depends-on): Update conditions.
2493
2494 2011-10-10  Bruno Haible  <bruno@clisp.org>
2495
2496         ldexpl: Simplify for platforms where 'long double' == 'double'.
2497         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2498         alternative implementation.
2499         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2500         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2501         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2502
2503 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2504
2505         ffsll: set correct witness
2506         * modules/ffsll (configure.ac): Fix typo.
2507
2508 2011-10-10  Bruno Haible  <bruno@clisp.org>
2509
2510         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2511         * lib/printf-frexpl.c: Include <config.h>.
2512         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2513         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2514         second time.
2515         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2516         gl_LONG_DOUBLE_VS_DOUBLE.
2517         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2518         conditions.
2519
2520 2011-10-10  Bruno Haible  <bruno@clisp.org>
2521
2522         frexpl: Simplify for platforms where 'long double' == 'double'.
2523         * lib/frexpl.c: Include <config.h>.
2524         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2525         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2526         time.
2527         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2528         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2529         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2530         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2531         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2532         conditions.
2533
2534 2011-10-10  Jim Meyering  <meyering@redhat.com>
2535
2536         test-renameat: don't leave behind a temporary file
2537         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2538           ERROR: files left in build directory after distclean:
2539           ./gltests/test-renameat.too
2540           make[1]: *** [distcleancheck] Error 1
2541         Reported by Tom G. Christensen.
2542
2543 2011-10-09  Bruno Haible  <bruno@clisp.org>
2544
2545         rint: Determine RINT_LIBM correctly on AIX 7.
2546         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2547         directly, not only through a function pointer. Also accept an optional
2548         4th argument with extra code.
2549         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2550         rintf() call by gcc when optimizing.
2551
2552         mathfunc.m4: Refactor.
2553         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2554         m4 variable.
2555
2556 2011-10-09  Bruno Haible  <bruno@clisp.org>
2557
2558         rintl: Simplify for platforms where 'long double' == 'double'.
2559         * lib/rintl.c: Include <config.h>.
2560         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2561         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2562         time.
2563         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2564         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2565         * modules/rintl (Depends-on): Add rint. Update conditions.
2566
2567 2011-10-09  Bruno Haible  <bruno@clisp.org>
2568
2569         roundl: Simplify for platforms where 'long double' == 'double'.
2570         * lib/roundl.c: Include <config.h>.
2571         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2572         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2573         time.
2574         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2575         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2576         * modules/roundl (Depends-on): Add round. Update conditions.
2577
2578 2011-10-09  Bruno Haible  <bruno@clisp.org>
2579
2580         truncl: Simplify for platforms where 'long double' == 'double'.
2581         * lib/truncl.c: Include <config.h>.
2582         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2583         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2584         time.
2585         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2586         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2587         * modules/truncl (Depends-on): Add trunc. Update conditions.
2588
2589 2011-10-09  Bruno Haible  <bruno@clisp.org>
2590
2591         ceill: Simplify for platforms where 'long double' == 'double'.
2592         * lib/ceill.c: Include <config.h>.
2593         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2594         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2595         time.
2596         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2597         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2598         * modules/ceill (Depends-on): Add ceil. Update conditions.
2599
2600 2011-10-09  Bruno Haible  <bruno@clisp.org>
2601
2602         floorl: Simplify for platforms where 'long double' == 'double'.
2603         * lib/floorl.c: Include <config.h>.
2604         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2605         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2606         time.
2607         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2608         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2609         * modules/floorl (Depends-on): Add floor. Update conditions.
2610
2611 2011-10-09  Bruno Haible  <bruno@clisp.org>
2612
2613         rint: Fix ordering constraints.
2614         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2615         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2616         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2617
2618 2011-10-09  Bruno Haible  <bruno@clisp.org>
2619
2620         copysignl: Simplify for platforms where 'long double' == 'double'.
2621         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2622         alternative.
2623         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2624         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2625         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2626
2627 2011-10-09  Bruno Haible  <bruno@clisp.org>
2628
2629         Tests for module 'rintl'.
2630         * modules/rintl-tests: New file.
2631         * tests/test-rintl.c: New file.
2632
2633         New module 'rintl'.
2634         * lib/math.in.h (rintl): New declaration.
2635         * lib/rintl.c: New file.
2636         * m4/rintl.m4: New file.
2637         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2639         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2640         * modules/rintl: New file.
2641         * tests/test-math-c++.cc: Check the declaration of rintl.
2642         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2643         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2644         * doc/posix-functions/rintl.texi: Mention the new module.
2645
2646 2011-10-09  Bruno Haible  <bruno@clisp.org>
2647
2648         Tests for module 'rintf'.
2649         * modules/rintf-tests: New file.
2650         * tests/test-rintf.c: New file.
2651
2652         New module 'rintf'.
2653         * lib/math.in.h (rintf): New declaration.
2654         * lib/rintf.c: New file.
2655         * m4/rintf.m4: New file.
2656         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2658         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2659         * modules/rintf: New file.
2660         * tests/test-math-c++.cc: Check the declaration of rintf.
2661         * doc/posix-functions/rintf.texi: Mention the new module.
2662
2663 2011-10-09  Bruno Haible  <bruno@clisp.org>
2664
2665         rint: Support for MSVC.
2666         * lib/math.in.h (rint): New declaration.
2667         * lib/rint.c: New file.
2668         * m4/rint.m4: New file.
2669         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2670         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2671         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2672         * modules/rint (Description): Fix.
2673         (Files): Add lib/rint.c, m4/rint.m4.
2674         (Depends-on): Add math.
2675         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2676         gl_MATH_MODULE_INDICATOR.
2677         * tests/test-math-c++.cc: Check the declaration of rint.
2678         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2679         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2680         * doc/posix-functions/rint.texi: Mention the replacement provided by
2681         the module.
2682
2683         rint tests: More tests.
2684         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2685         minus-zero.h, infinity.h, nan.h.
2686         (main): Skip the test if the current rounding mode is not standard. Add
2687         tests for negative numbers, minus zero, infinity, NaN.
2688         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2689         tests/nan.h.
2690         (Depends-on): Add isnand-nolibm.
2691
2692 2011-10-09  Bruno Haible  <bruno@clisp.org>
2693
2694         Tests for module 'copysignl'.
2695         * modules/copysignl-tests: New file.
2696         * tests/test-copysignl.c: New file.
2697
2698         New module 'copysignl'.
2699         * lib/math.in.h (copysignl): New declaration.
2700         * lib/copysignl.c: New file.
2701         * m4/copysignl.m4: New file.
2702         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2704         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2705         HAVE_COPYSIGNL.
2706         * modules/copysignl: New file.
2707         * tests/test-math-c++.cc: Check the declaration of copysignl.
2708         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2709         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2710         * doc/posix-functions/copysignl.texi: Mention the new module.
2711
2712 2011-10-09  Bruno Haible  <bruno@clisp.org>
2713
2714         Tests for module 'copysignf'.
2715         * modules/copysignf-tests: New file.
2716         * tests/test-copysignf.c: New file.
2717
2718         New module 'copysignf'.
2719         * lib/math.in.h (copysignf): New declaration.
2720         * lib/copysignf.c: New file.
2721         * m4/copysignf.m4: New file.
2722         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2724         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2725         HAVE_COPYSIGNF.
2726         * modules/copysignf: New file.
2727         * tests/test-math-c++.cc: Check the declaration of copysignf.
2728         * doc/posix-functions/copysignf.texi: Mention the new module.
2729
2730 2011-10-09  Bruno Haible  <bruno@clisp.org>
2731
2732         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2733         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2734         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2735         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2736         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2737         gl_SIGNAL_H_DEFAULTS.
2738
2739 2011-10-09  Bruno Haible  <bruno@clisp.org>
2740
2741         poll: Make macro safer.
2742         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2743         ac_cv_header_poll_h is not set.
2744
2745 2011-10-09  Bruno Haible  <bruno@clisp.org>
2746
2747         copysign: Provide replacement.
2748         * lib/math.in.h (copysign): New declaration.
2749         * lib/copysign.c: New file.
2750         * m4/copysign.m4: New file.
2751         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2753         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2754         HAVE_COPYSIGN.
2755         * modules/copysign (Description): Clarify.
2756         (Files): Add lib/copysign.c, m4/copysign.m4.
2757         (Depends-on): Add math, signbit.
2758         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2759         gl_MATH_MODULE_INDICATOR.
2760         * tests/test-math-c++.cc: Check the declaration of copysign.
2761         * doc/posix-functions/copysign.texi: Mention the effects of the module
2762         on Minix and MSVC.
2763
2764 2011-10-09  Bruno Haible  <bruno@clisp.org>
2765
2766         isinf: Ensure macro on AIX 5.1.
2767         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2768         macro.
2769         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2770
2771 2011-10-09  Bruno Haible  <bruno@clisp.org>
2772
2773         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2774         * modules/snprintf-posix-tests (configure.ac): Require
2775         gl_LONG_DOUBLE_VS_DOUBLE.
2776         * modules/sprintf-posix-tests (configure.ac): Likewise.
2777         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2778         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2779         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2780         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2781         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2782         tests on platforms where 'long double' is the same as 'double'.
2783         * tests/test-sprintf-posix.h (test_function): Likewise.
2784         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2785         * tests/test-vasprintf-posix.c (test_function): Likewise.
2786
2787         *printf: Fix for platforms where 'long double' == 'double'.
2788         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2789         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2790         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2791         * modules/fprintf-posix (Files): Likewise.
2792         * modules/obstack-printf-posix (Files): Likewise.
2793         * modules/snprintf-posix (Files): Likewise.
2794         * modules/sprintf-posix (Files): Likewise.
2795         * modules/vasnprintf (Files): Likewise.
2796         * modules/vasnprintf-posix (Files): Likewise.
2797         * modules/vasprintf-posix (Files): Likewise.
2798         * modules/vdprintf-posix (Files): Likewise.
2799         * modules/vfprintf-posix (Files): Likewise.
2800         * modules/vsnprintf-posix (Files): Likewise.
2801         * modules/vsprintf-posix (Files): Likewise.
2802         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2803         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2804         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2805         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2806         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2807         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2808         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2809
2810         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2811         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2812         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2813         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2814         'long double'.
2815         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2816
2817         isinf: Fix for platforms where 'long double' == 'double'.
2818         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2819         Don't blindly assume 80-bit 'long double'.
2820
2821         isfinite: Fix for platforms where 'long double' == 'double'.
2822         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2823         Don't blindly assume 80-bit 'long double'.
2824
2825         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2826         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2827         * modules/isfinite-tests (configure.ac): Require
2828         gl_LONG_DOUBLE_VS_DOUBLE.
2829         * modules/isinf-tests (configure.ac): Likewise.
2830         * modules/isnan-tests (configure.ac): Likewise.
2831         * modules/isnanl-tests (configure.ac): Likewise.
2832         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2833         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2834         tests on platforms where 'long double' is the same as 'double'.
2835         * tests/test-isinf.c (test_isinfl): Likewise.
2836         * tests/test-isnan.c (test_long_double): Likewise.
2837         * tests/test-isnanl.h (main): Likewise.
2838
2839 2011-10-08  Bruno Haible  <bruno@clisp.org>
2840
2841         Tests for module 'tanhf'.
2842         * modules/tanhf-tests: New file.
2843         * tests/test-tanhf.c: New file.
2844
2845         New module 'tanhf'.
2846         * lib/math.in.h (tanhf): New declaration.
2847         * lib/tanhf.c: New file.
2848         * m4/tanhf.m4: New file.
2849         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2851         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2852         * modules/tanhf: New file.
2853         * tests/test-math-c++.cc: Check the declaration of tanhf.
2854         * doc/posix-functions/tanhf.texi: Mention the new module.
2855
2856         tanh: Use a .m4 file.
2857         * m4/tanh.m4: New file.
2858         * modules/tanh (Files): Add it.
2859         (configure.ac): Just invoke gl_FUNC_TANH.
2860
2861 2011-10-08  Bruno Haible  <bruno@clisp.org>
2862
2863         Tests for module 'coshf'.
2864         * modules/coshf-tests: New file.
2865         * tests/test-coshf.c: New file.
2866
2867         New module 'coshf'.
2868         * lib/math.in.h (coshf): New declaration.
2869         * lib/coshf.c: New file.
2870         * m4/coshf.m4: New file.
2871         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2873         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2874         * modules/coshf: New file.
2875         * tests/test-math-c++.cc: Check the declaration of coshf.
2876         * doc/posix-functions/coshf.texi: Mention the new module.
2877
2878         cosh: Use a .m4 file.
2879         * m4/cosh.m4: New file.
2880         * modules/cosh (Files): Add it.
2881         (configure.ac): Just invoke gl_FUNC_COSH.
2882
2883 2011-10-08  Bruno Haible  <bruno@clisp.org>
2884
2885         Tests for module 'sinhf'.
2886         * modules/sinhf-tests: New file.
2887         * tests/test-sinhf.c: New file.
2888
2889         New module 'sinhf'.
2890         * lib/math.in.h (sinhf): New declaration.
2891         * lib/sinhf.c: New file.
2892         * m4/sinhf.m4: New file.
2893         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2895         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2896         * modules/sinhf: New file.
2897         * tests/test-math-c++.cc: Check the declaration of sinhf.
2898         * doc/posix-functions/sinhf.texi: Mention the new module.
2899
2900         sinh: Use a .m4 file.
2901         * m4/sinh.m4: New file.
2902         * modules/sinh (Files): Add it.
2903         (configure.ac): Just invoke gl_FUNC_SINH.
2904
2905 2011-10-08  Bruno Haible  <bruno@clisp.org>
2906
2907         Tests for module 'atan2f'.
2908         * modules/atan2f-tests: New file.
2909         * tests/test-atan2f.c: New file.
2910
2911         New module 'atan2f'.
2912         * lib/math.in.h (atan2f): New declaration.
2913         * lib/atan2f.c: New file.
2914         * m4/atan2f.m4: New file.
2915         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2917         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2918         * modules/atan2f: New file.
2919         * tests/test-math-c++.cc: Check the declaration of atan2f.
2920         * doc/posix-functions/atan2f.texi: Mention the new module.
2921
2922         atan2: Use a .m4 file.
2923         * m4/atan2.m4: New file.
2924         * modules/atan2 (Files): Add it.
2925         (configure.ac): Just invoke gl_FUNC_ATAN2.
2926
2927 2011-10-08  Bruno Haible  <bruno@clisp.org>
2928
2929         Tests for module 'atanf'.
2930         * modules/atanf-tests: New file.
2931         * tests/test-atanf.c: New file.
2932
2933         New module 'atanf'.
2934         * lib/math.in.h (atanf): New declaration.
2935         * lib/atanf.c: New file.
2936         * m4/atanf.m4: New file.
2937         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2939         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2940         * modules/atanf: New file.
2941         * tests/test-math-c++.cc: Check the declaration of atanf.
2942         * doc/posix-functions/atanf.texi: Mention the new module.
2943
2944         atan: Use a .m4 file.
2945         * m4/atan.m4: New file.
2946         * modules/atan (Files): Add it.
2947         (configure.ac): Just invoke gl_FUNC_ATAN.
2948
2949 2011-10-08  Bruno Haible  <bruno@clisp.org>
2950
2951         Tests for module 'acosf'.
2952         * modules/acosf-tests: New file.
2953         * tests/test-acosf.c: New file.
2954
2955         New module 'acosf'.
2956         * lib/math.in.h (acosf): New declaration.
2957         * lib/acosf.c: New file.
2958         * m4/acosf.m4: New file.
2959         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2961         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2962         * modules/acosf: New file.
2963         * tests/test-math-c++.cc: Check the declaration of acosf.
2964         * doc/posix-functions/acosf.texi: Mention the new module.
2965
2966         acos: Use a .m4 file.
2967         * m4/acos.m4: New file.
2968         * modules/acos (Files): Add it.
2969         (configure.ac): Just invoke gl_FUNC_ACOS.
2970
2971 2011-10-08  Bruno Haible  <bruno@clisp.org>
2972
2973         Tests for module 'asinf'.
2974         * modules/asinf-tests: New file.
2975         * tests/test-asinf.c: New file.
2976
2977         New module 'asinf'.
2978         * lib/math.in.h (asinf): New declaration.
2979         * lib/asinf.c: New file.
2980         * m4/asinf.m4: New file.
2981         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2983         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2984         * modules/asinf: New file.
2985         * tests/test-math-c++.cc: Check the declaration of asinf.
2986         * doc/posix-functions/asinf.texi: Mention the new module.
2987
2988         asin: Use a .m4 file.
2989         * m4/asin.m4: New file.
2990         * modules/asin (Files): Add it.
2991         (configure.ac): Just invoke gl_FUNC_ASIN.
2992
2993 2011-10-08  Bruno Haible  <bruno@clisp.org>
2994
2995         Tests for module 'tanf'.
2996         * modules/tanf-tests: New file.
2997         * tests/test-tanf.c: New file.
2998
2999         New module 'tanf'.
3000         * lib/math.in.h (tanf): New declaration.
3001         * lib/tanf.c: New file.
3002         * m4/tanf.m4: New file.
3003         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3005         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3006         * modules/tanf: New file.
3007         * tests/test-math-c++.cc: Check the declaration of tanf.
3008         * doc/posix-functions/tanf.texi: Mention the new module.
3009
3010         tan: Use a .m4 file.
3011         * m4/tan.m4: New file.
3012         * modules/tan (Files): Add it.
3013         (configure.ac): Just invoke gl_FUNC_TAN.
3014
3015 2011-10-08  Bruno Haible  <bruno@clisp.org>
3016
3017         Tests for module 'cosf'.
3018         * modules/cosf-tests: New file.
3019         * tests/test-cosf.c: New file.
3020
3021         New module 'cosf'.
3022         * lib/math.in.h (cosf): New declaration.
3023         * lib/cosf.c: New file.
3024         * m4/cosf.m4: New file.
3025         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3027         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3028         * modules/cosf: New file.
3029         * tests/test-math-c++.cc: Check the declaration of cosf.
3030         * doc/posix-functions/cosf.texi: Mention the new module.
3031
3032         cos: Use a .m4 file.
3033         * m4/cos.m4: New file.
3034         * modules/cos (Files): Add it.
3035         (configure.ac): Just invoke gl_FUNC_COS.
3036
3037 2011-10-08  Bruno Haible  <bruno@clisp.org>
3038
3039         Tests for module 'sinf'.
3040         * modules/sinf-tests: New file.
3041         * tests/test-sinf.c: New file.
3042
3043         New module 'sinf'.
3044         * lib/math.in.h (sinf): New declaration.
3045         * lib/sinf.c: New file.
3046         * m4/sinf.m4: New file.
3047         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3049         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3050         * modules/sinf: New file.
3051         * tests/test-math-c++.cc: Check the declaration of sinf.
3052         * doc/posix-functions/sinf.texi: Mention the new module.
3053
3054         sin: Use a .m4 file.
3055         * m4/sin.m4: New file.
3056         * modules/sin (Files): Add it.
3057         (configure.ac): Just invoke gl_FUNC_SIN.
3058
3059 2011-10-08  Bruno Haible  <bruno@clisp.org>
3060
3061         Tests for module 'powf'.
3062         * modules/powf-tests: New file.
3063         * tests/test-powf.c: New file.
3064
3065         New module 'powf'.
3066         * lib/math.in.h (powf): New declaration.
3067         * lib/powf.c: New file.
3068         * m4/powf.m4: New file.
3069         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3071         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3072         * modules/powf: New file.
3073         * tests/test-math-c++.cc: Check the declaration of powf.
3074         * doc/posix-functions/powf.texi: Mention the new module.
3075
3076         pow: Use a .m4 file.
3077         * m4/pow.m4: New file.
3078         * modules/pow (Files): Add it.
3079         (configure.ac): Just invoke gl_FUNC_POW.
3080
3081 2011-10-08  Bruno Haible  <bruno@clisp.org>
3082
3083         Tests for module 'log10f'.
3084         * modules/log10f-tests: New file.
3085         * tests/test-log10f.c: New file.
3086
3087         New module 'log10f'.
3088         * lib/math.in.h (log10f): New declaration.
3089         * lib/log10f.c: New file.
3090         * m4/log10f.m4: New file.
3091         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3093         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3094         * modules/log10f: New file.
3095         * tests/test-math-c++.cc: Check the declaration of log10f.
3096         * doc/posix-functions/log10f.texi: Mention the new module.
3097
3098         log10: Use a .m4 file.
3099         * m4/log10.m4: New file.
3100         * modules/log10 (Files): Add it.
3101         (configure.ac): Just invoke gl_FUNC_LOG10.
3102
3103 2011-10-08  Bruno Haible  <bruno@clisp.org>
3104
3105         Tests for module 'logf'.
3106         * modules/logf-tests: New file.
3107         * tests/test-logf.c: New file.
3108
3109         New module 'logf'.
3110         * lib/math.in.h (logf): New declaration.
3111         * lib/logf.c: New file.
3112         * m4/logf.m4: New file.
3113         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3115         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3116         * modules/logf: New file.
3117         * tests/test-math-c++.cc: Check the declaration of logf.
3118         * doc/posix-functions/logf.texi: Mention the new module.
3119
3120         log: Use a .m4 file.
3121         * m4/log.m4: New file.
3122         * modules/log (Files): Add it.
3123         (configure.ac): Just invoke gl_FUNC_LOG.
3124
3125 2011-10-08  Bruno Haible  <bruno@clisp.org>
3126
3127         Tests for module 'expf'.
3128         * modules/expf-tests: New file.
3129         * tests/test-expf.c: New file.
3130
3131         New module 'expf'.
3132         * lib/math.in.h (expf): New declaration.
3133         * lib/expf.c: New file.
3134         * m4/expf.m4: New file.
3135         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3137         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3138         * modules/expf: New file.
3139         * tests/test-math-c++.cc: Check the declaration of expf.
3140         * doc/posix-functions/expf.texi: Mention the new module.
3141
3142         exp: Use a .m4 file.
3143         * m4/exp.m4: New file.
3144         * modules/exp (Files): Add it.
3145         (configure.ac): Just invoke gl_FUNC_EXP.
3146
3147 2011-10-08  Bruno Haible  <bruno@clisp.org>
3148
3149         Tests for module 'sqrtf'.
3150         * modules/sqrtf-tests: New file.
3151         * tests/test-sqrtf.c: New file.
3152
3153         New module 'sqrtf'.
3154         * lib/math.in.h (sqrtf): New declaration.
3155         * lib/sqrtf.c: New file.
3156         * m4/sqrtf.m4: New file.
3157         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3159         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3160         * modules/sqrtf: New file.
3161         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3162         * doc/posix-functions/sqrtf.texi: Mention the new module.
3163
3164 2011-10-08  Bruno Haible  <bruno@clisp.org>
3165
3166         Tests: Avoid link failures w.r.t. libintl.
3167         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3168         $(LIBINTL).
3169         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3170         $(LIBINTL).
3171         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3172         against $(LIBINTL).
3173         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3174         $(LIBINTL).
3175         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3176         $(LIBINTL).
3177         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3178
3179 2011-10-08  Bruno Haible  <bruno@clisp.org>
3180
3181         pow tests: Defeat compiler optimizations.
3182         * tests/test-pow.c (main): Assign arguments to x and y before use.
3183
3184 2011-10-08  Bruno Haible  <bruno@clisp.org>
3185
3186         gnulib-tool: Improve last commit.
3187         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3188         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3189         ignore dependencies that are not among the modules list.
3190
3191 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3192
3193         gnulib-tool: don't follow dependencies to avoided modules
3194         This fixes a bug that is related to the previous one.
3195         * gnulib-tool (func_modules_transitive_closure)
3196         (func_emit_autoconf_snippets):
3197         Check whether a dependency is acceptable before using it.
3198         (--extract-dependencies): Report an error if --avoid is also used,
3199         since this combination of options is not yet supported.
3200
3201         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3202         Problem reported by Peter Dyballa in
3203         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3204         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3205         when echoing "$condition".
3206
3207 2011-10-07  Bruno Haible  <bruno@clisp.org>
3208
3209         Fix documentation about math functions on MacOS X.
3210         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3211         MacOS X 10.5.
3212         * doc/posix-functions/fdim.texi: Likewise.
3213         * doc/posix-functions/feclearexcept.texi: Likewise.
3214         * doc/posix-functions/fegetenv.texi: Likewise.
3215         * doc/posix-functions/fegetround.texi: Likewise.
3216         * doc/posix-functions/feholdexcept.texi: Likewise.
3217         * doc/posix-functions/feraiseexcept.texi: Likewise.
3218         * doc/posix-functions/fesetenv.texi: Likewise.
3219         * doc/posix-functions/fesetround.texi: Likewise.
3220         * doc/posix-functions/fetestexcept.texi: Likewise.
3221         * doc/posix-functions/feupdateenv.texi: Likewise.
3222         * doc/posix-functions/fmax.texi: Likewise.
3223         * doc/posix-functions/fmin.texi: Likewise.
3224         * doc/posix-functions/log2.texi: Likewise.
3225         * doc/posix-functions/modff.texi: Likewise.
3226         * doc/posix-functions/nan.texi: Likewise.
3227         * doc/posix-functions/nanf.texi: Likewise.
3228         * doc/posix-functions/nextafterf.texi: Likewise.
3229         * doc/posix-functions/remquo.texi: Likewise.
3230
3231 2011-10-07  Bruno Haible  <bruno@clisp.org>
3232
3233         modff: Drop assumption about library that defines modff.
3234         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3235         AC_CHECK_FUNCS.
3236         * modules/modff (Files): Add m4/mathfunc.m4.
3237
3238 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3239
3240         raise tests: Avoid a GCC warning.
3241         * tests/test-raise.c (handler): Use _Noreturn.
3242
3243 2011-10-07  Bruno Haible  <bruno@clisp.org>
3244
3245         Tests for module 'ldexpf'.
3246         * modules/ldexpf-tests: New file.
3247         * tests/test-ldexpf.c: New file.
3248
3249         New module 'ldexpf'.
3250         * lib/math.in.h (ldexpf): New declaration.
3251         * lib/ldexpf.c: New file.
3252         * m4/ldexpf.m4: New file.
3253         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3255         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3256         * modules/ldexpf: New file.
3257         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3258         * doc/posix-functions/ldexpf.texi: Mention the new module.
3259
3260 2011-10-06  Bruno Haible  <bruno@clisp.org>
3261
3262         frexpf: Work around problems on IRIX and mingw.
3263         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3265         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3266         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3267         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3268         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3269         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3270
3271 2011-10-06  Bruno Haible  <bruno@clisp.org>
3272
3273         fabsf: Drop assumption about library that defines fabsf.
3274         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3275         AC_CHECK_FUNCS.
3276         * modules/fabsf (Files): Add m4/mathfunc.m4.
3277
3278 2011-10-06  Bruno Haible  <bruno@clisp.org>
3279
3280         frexpf: Drop assumption about library that defines frexpf.
3281         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3282         'int *', 'float *', 'long double *', 'float', 'long double'.
3283         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3284         AC_CHECK_FUNCS.
3285         * modules/frexpf (Files): Add m4/mathfunc.m4.
3286
3287         Tests for module 'frexpf'.
3288         * modules/frexpf-tests: New file.
3289         * tests/test-frexpf.c: New file.
3290
3291         New module 'frexpf'.
3292         * lib/math.in.h (frexpf): New declaration.
3293         * lib/frexpf.c: New file.
3294         * m4/frexpf.m4: New file.
3295         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3297         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3298         * modules/frexpf: New file.
3299         * tests/test-math-c++.cc: Check the declaration of frexpf.
3300         * doc/posix-functions/frexpf.texi: Mention the new module.
3301
3302 2011-10-06  Bruno Haible  <bruno@clisp.org>
3303
3304         math: Sort function declarations of math.in.h.
3305         * lib/math.in.h (frexp, logb): Move declarations.
3306
3307 2011-10-05  Bruno Haible  <bruno@clisp.org>
3308
3309         Tests for module 'modff'.
3310         * modules/modff-tests: New file.
3311         * tests/test-modff.c: New file.
3312
3313         New module 'modff'.
3314         * lib/math.in.h (modff): New declaration.
3315         * lib/modff.c: New file.
3316         * m4/modff.m4: New file.
3317         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3318         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3319         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3320         * modules/modff: New file.
3321         * tests/test-math-c++.cc: Check the declaration of modff.
3322         * doc/posix-functions/modff.texi: Mention the new module.
3323
3324         modf tests: Make test sharper.
3325         * tests/test-modf.c (main): Strengthen upper bound.
3326
3327         modf: Use a .m4 file.
3328         * m4/modf.m4: New file.
3329         * modules/modf (Files): Add it.
3330         (configure.ac): Just invoke gl_FUNC_MODF.
3331
3332 2011-10-05  Bruno Haible  <bruno@clisp.org>
3333
3334         Tests for module 'fmodf'.
3335         * modules/fmodf-tests: New file.
3336         * tests/test-fmodf.c: New file.
3337
3338         New module 'fmodf'.
3339         * lib/math.in.h (fmodf): New declaration.
3340         * lib/fmodf.c: New file.
3341         * m4/fmodf.m4: New file.
3342         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3344         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3345         * modules/fmodf: New file.
3346         * tests/test-math-c++.cc: Check the declaration of fmodf.
3347         * doc/posix-functions/fmodf.texi: Mention the new module.
3348
3349         fmod: Use a .m4 file.
3350         * m4/fmod.m4: New file.
3351         * modules/fmod (Files): Add it.
3352         (configure.ac): Just invoke gl_FUNC_FMOD.
3353
3354 2011-10-05  Bruno Haible  <bruno@clisp.org>
3355
3356         Tests for module 'fabsf'.
3357         * modules/fabsf-tests: New file.
3358         * tests/test-fabsf.c: New file.
3359
3360         New module 'fabsf'.
3361         * lib/math.in.h (fabsf): New declaration.
3362         * lib/fabsf.c: New file.
3363         * m4/fabsf.m4: New file.
3364         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3365         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3366         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3367         * modules/fabsf: New file.
3368         * tests/test-math-c++.cc: Check the declaration of fabsf.
3369         * doc/posix-functions/fabsf.texi: Mention the new module.
3370
3371         fabs: Use a .m4 file.
3372         * m4/fabs.m4: New file.
3373         * modules/fabs (Files): Add it.
3374         (configure.ac): Just invoke gl_FUNC_FABS.
3375
3376 2011-10-05  Jim Meyering  <meyering@redhat.com>
3377
3378         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3379         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3380         ls -lL regression introduced in coreutils-8.12, it does so at the
3381         cost of an additional stat call in the common case.  Besides, now
3382         that the kernel change that prompted commit 95f7c57f has been reverted
3383         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3384         we have no use for commit 95f7c57f, "file-has-acl: use
3385         acl_extended_file_nofollow if available".
3386
3387 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3388
3389         file-has-acl: revert unintended change in behavior of ls -L
3390         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3391         derived from...
3392         (file_has_acl): ...code here.  Call it.
3393         This problem was introduced with 2011-07-22 commit 95f7c57f,
3394         "file-has-acl: use acl_extended_file_nofollow if available".
3395         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3396
3397 2011-10-03  Bruno Haible  <bruno@clisp.org>
3398
3399         poll: Avoid link errors on MSVC.
3400         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3401         * modules/poll (Depends-on): Add sockets.
3402         (Link): New section.
3403         * NEWS: Mention the change.
3404         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3405         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3406         $(LIB_POLL) instead of $(LIBSOCKET).
3407
3408 2011-10-03  Bruno Haible  <bruno@clisp.org>
3409
3410         sys_select tests: Fix link error on MSVC 9.
3411         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3412         with $(LIB_SELECT) instead of $(LIBSOCKET).
3413
3414 2011-10-03  Bruno Haible  <bruno@clisp.org>
3415
3416         sys_select: Fix compilation error on mingw.
3417         * lib/sys_select.in.h: On native Windows, include <io.h>.
3418
3419 2011-10-03  Bruno Haible  <bruno@clisp.org>
3420
3421         wmemset: Support for MSVC.
3422         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3423         whether wmemset() exists.
3424
3425 2011-10-03  Bruno Haible  <bruno@clisp.org>
3426
3427         wmemmove: Support for MSVC.
3428         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3429         whether wmemmove() exists.
3430
3431 2011-10-03  Bruno Haible  <bruno@clisp.org>
3432
3433         wmemcpy: Support for MSVC.
3434         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3435         whether wmemcpy() exists.
3436
3437 2011-10-03  Bruno Haible  <bruno@clisp.org>
3438
3439         wmemcmp: Support for MSVC.
3440         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3441         whether wmemcmp() exists.
3442
3443 2011-10-03  Bruno Haible  <bruno@clisp.org>
3444
3445         wmemchr: Support for MSVC.
3446         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3447         whether wmemchr() exists.
3448
3449 2011-10-03  Bruno Haible  <bruno@clisp.org>
3450
3451         glthread/*, strsignal: Support for MSVC.
3452         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3453         including <winsock.h> on MSVC 9.
3454         * lib/glthread/lock.h: Likewise.
3455         * lib/glthread/thread.h: Likewise.
3456         * lib/glthread/tls.h: Likewise.
3457         * lib/glthread/yield.h: Likewise.
3458         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3459         if HAVE_UNISTD_H is false.
3460         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3461
3462 2011-10-03  Bruno Haible  <bruno@clisp.org>
3463
3464         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3465         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3466         Set to 100000.
3467
3468 2011-10-03  Bruno Haible  <bruno@clisp.org>
3469
3470         acl: Fix specification.
3471         * lib/file-has-acl.c (file_has_acl): Fix specification.
3472
3473 2011-10-03  Bruno Haible  <bruno@clisp.org>
3474
3475         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3476         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3477         (compute_curr_prefix, shared_library_fullname,
3478         find_shared_library_fullname, get_shared_library_fullname, relocate):
3479         Use it together with PIC && INSTALLDIR.
3480         Reported by <jojelino@gmail.com>
3481         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3482
3483 2011-10-01  Jim Meyering  <meyering@redhat.com>
3484
3485         maint.mk: adjust a release-related rule not to require use of gzip
3486         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3487         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3488         projects that build only .tar.xz files.  Also fix an erroneous test.
3489
3490         test-linkat: don't leave behind a temporary file
3491         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3492         Otherwise, coreutils' "make distcheck" would fail with this:
3493           Only in /c/cu/tests/torture/coreutils/test/\
3494             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3495           make[2]: *** [my-distcheck] Error 1
3496
3497         float, math: add omitted file
3498         * lib/itold.c: Add file, required for yesterday's float change.
3499
3500 2011-10-01  Bruno Haible  <bruno@clisp.org>
3501
3502         isinf: Fix for OpenBSD/x86.
3503         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3504         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3505         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3506
3507 2011-10-01  Bruno Haible  <bruno@clisp.org>
3508
3509         isfinite: Fix syntax error in configure test.
3510         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3511
3512         isfinite: Fix typo.
3513         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3514         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3515
3516 2011-10-01  Bruno Haible  <bruno@clisp.org>
3517
3518         nonblocking tests: Fix test failure on Linux/IA-64.
3519         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3520         Set to 270000.
3521
3522 2011-10-01  Bruno Haible  <bruno@clisp.org>
3523
3524         mkfifoat tests: Fix a test failure on mingw.
3525         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3526         with error ENOSYS.
3527
3528 2011-09-30  Bruno Haible  <bruno@clisp.org>
3529
3530         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3531         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3532         'long double'. Set REPLACE_ITOLD.
3533         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3534         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3535         * lib/itold.c: New file.
3536         * modules/float (Files): Add lib/itold.c.
3537         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3538         (Makefile.am): Substitute REPLACE_ITOLD.
3539         * modules/math (Depends-on): Add float.
3540         (Makefile.am): Substitute REPLACE_ITOLD.
3541         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3542         * doc/posix-headers/math.texi: Likewise.
3543         * doc/posix-functions/logl.texi: Likewise.
3544
3545 2011-09-30  Bruno Haible  <bruno@clisp.org>
3546
3547         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3548         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3549         Set to 140000.
3550
3551 2011-09-30  Bruno Haible  <bruno@clisp.org>
3552
3553         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3554         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3555         invocation, say "right after AC_PROG_CC_STDC", not "right after
3556         AC_PROG_CC".
3557         Reported by Gary V. Vaughan <gary@gnu.org>.
3558
3559 2011-09-30  Bruno Haible  <bruno@clisp.org>
3560
3561         Centralize C99 requirement.
3562         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3563         * modules/stdarg (configure.ac-early): Invoke it instead of
3564         AC_PROG_CC_STDC.
3565         Reported by Gary V. Vaughan and Paul Eggert.
3566
3567 2011-09-29  Bruno Haible  <bruno@clisp.org>
3568
3569         float: Fix LDBL_MAX value on Linux/PowerPC.
3570         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3571         on Linux/PowerPC.
3572         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3573         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3574         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3575         platform.
3576         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3577
3578 2011-09-29  Bruno Haible  <bruno@clisp.org>
3579
3580         doc: Improve doc about gl_EARLY.
3581         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3582         AC_PROG_CC_STDC invocation.
3583         Reported by Gary V. Vaughan <gary@gnu.org>.
3584
3585 2011-09-28  Bruno Haible  <bruno@clisp.org>
3586
3587         fgetc, fputc, fread, fwrite tests: Fix link error.
3588         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3589         on non-MSVC platforms.
3590         * tests/test-fputc.c (main): Likewise.
3591         * tests/test-fread.c (main): Likewise.
3592         * tests/test-fwrite.c (main): Likewise.
3593         Reported by Jim Meyering.
3594
3595 2011-09-27  Bruno Haible  <bruno@clisp.org>
3596
3597         fputc, fwrite tests: Avoid test failure on MSVC.
3598         * tests/test-fgetc.c: Include msvc-inval.h.
3599         (main): Invoke gl_msvc_inval_ensure_handler.
3600         * tests/test-fputc.c: Include msvc-inval.h.
3601         (main): Invoke gl_msvc_inval_ensure_handler.
3602         * tests/test-fread.c: Include msvc-inval.h.
3603         (main): Invoke gl_msvc_inval_ensure_handler.
3604         * tests/test-fwrite.c: Include msvc-inval.h.
3605         (main): Invoke gl_msvc_inval_ensure_handler.
3606         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3607         * modules/fputc-tests (Depends-on): Likewise.
3608         * modules/fread-tests (Depends-on): Likewise.
3609         * modules/fwrite-tests (Depends-on): Likewise.
3610
3611 2011-09-27  Bruno Haible  <bruno@clisp.org>
3612
3613         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3614         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3615         (raise): Remove older, duplicated declaration.
3616         (_gl_raise_SIGPIPE): New declaration.
3617         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3618         (rpl_raise): Remove function.
3619         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3620         a gnulib-defined SIGPIPE here.
3621         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3622         'sigprocmask' has detected missing signal-blocking and the module
3623         'sigpipe' is enabled.
3624         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3625
3626 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3627
3628         base64-tests: avoid memory leak
3629         * tests/test-base64.c (main): Plug memory leak.
3630
3631         base32: new module
3632         * modules/base32: New module.
3633         * lib/base32.c: New file.
3634         * lib/base32.h: Likewise.
3635         * m4/base32.m4: Likewise.
3636         * modules/base32-tests: New test.
3637         * tests/test-base32.c: Likewise.
3638         * MODULES.html.sh (Misc): Mention it.
3639
3640 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3641
3642         gnulib: use more-standard license notice wording
3643         * gnulib-tool (func_emit_copyright_notice): When emitting a
3644         license notice into a file, use the standard wording as suggested
3645         by the current information for GNU maintainers, except say "file"
3646         rather than "program".  The new wording gives a license version
3647         number, which addresses an issue raised by Glenn Morris in
3648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3649         * m4/onceonly.m4: Use that same wording here, too.
3650
3651         dup2: minor simplification
3652         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3653         as lib/dup2.c no longer uses 'inline'.
3654
3655 2011-09-25  Bruno Haible  <bruno@clisp.org>
3656
3657         strings: Fix compilation error on MSVC.
3658         * lib/strings.in.h: Include <stddef.h> for size_t.
3659
3660 2011-09-25  Bruno Haible  <bruno@clisp.org>
3661
3662         fflush et al.: Document limitation on MSVC.
3663         * doc/posix-functions/fflush.texi: Document possible crash in handling
3664         mode other than DEFAULT_HANDLING.
3665         * doc/posix-functions/fgetc.texi: Likewise.
3666         * doc/posix-functions/fputc.texi: Likewise.
3667         * doc/posix-functions/fread.texi: Likewise.
3668         * doc/posix-functions/fwrite.texi: Likewise.
3669
3670 2011-09-25  Bruno Haible  <bruno@clisp.org>
3671
3672         msvc-inval: Allow three invalid parameter handling modes.
3673         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3674         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3675         macros.
3676         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3677         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3678         SANE_LIBRARY_HANDLING as a no-op.
3679         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3680         <stdlib.h>.
3681         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3682
3683 2011-09-25  Bruno Haible  <bruno@clisp.org>
3684
3685         msvc-inval: Make handler multithread-safe.
3686         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3687         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3688         declarations.
3689         (gl_msvc_inval_current): New declaration.
3690         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3691         Operate on the structure returned by gl_msvc_inval_current().
3692         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3693         Remove varaiables.
3694         (tls_index, tls_initialized): New variables.
3695         (not_per_thread): New variable.
3696         (gl_msvc_inval_current): New function.
3697         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3698         returned by gl_msvc_inval_current().
3699
3700 2011-09-25  Bruno Haible  <bruno@clisp.org>
3701
3702         msvc-inval: Install handler globally.
3703         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3704         !_MSC_VER.
3705         (gl_msvc_invalid_parameter_handler): Remove declaration.
3706         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3707         declarations.
3708         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3709         Install the handler globally, don't uninstall it.
3710         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3711         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3712         currently valid, call RaiseException instead.
3713         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3714         for !_MSC_VER.
3715
3716 2011-09-25  Bruno Haible  <bruno@clisp.org>
3717
3718         strerror_r-posix: Fix for MSVC 9.
3719         * lib/strerror_r.c (local_snprintf): New function.
3720         (snprintf): Define to local_snprintf, not to _snprintf.
3721
3722 2011-09-25  Bruno Haible  <bruno@clisp.org>
3723
3724         ftruncate: Support for MSVC 9.
3725         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3726         (chsize_nothrow): New function.
3727         (chsize): Redefine as a macro.
3728         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3729         * modules/ftruncate (Depends-on): Add msvc-inval.
3730
3731 2011-09-25  Bruno Haible  <bruno@clisp.org>
3732
3733         New module 'fstat'.
3734         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3735         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3736         * lib/fchdir.c (rpl_fstat): Remove function.
3737         * m4/fstat.m4: New file.
3738         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3739         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3740         declared.
3741         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3742         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3743         * modules/fstat: New file.
3744         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3745         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3746         is set.
3747         * doc/posix-functions/fstat.texi: Mention the new module and the
3748         problem on MSVC.
3749         * NEWS: Mention the change.
3750         * modules/acl (Depends-on): Add fstat.
3751         * modules/chdir-safer (Depends-on): Likewise.
3752         * modules/chown (Depends-on): Likewise.
3753         * modules/copy-file (Depends-on): Likewise.
3754         * modules/fchdir (Depends-on): Likewise.
3755         * modules/fdopendir (Depends-on): Likewise.
3756         * modules/fopen (Depends-on): Likewise.
3757         * modules/fts (Depends-on): Likewise.
3758         * modules/getcwd (Depends-on): Likewise.
3759         * modules/isapipe (Depends-on): Likewise.
3760         * modules/linkat (Depends-on): Likewise.
3761         * modules/lseek (Depends-on): Likewise.
3762         * modules/mkdir-p (Depends-on): Likewise.
3763         * modules/open (Depends-on): Likewise.
3764         * modules/openat (Depends-on): Likewise.
3765         * modules/read-file (Depends-on): Likewise.
3766         * modules/renameat (Depends-on): Likewise.
3767         * modules/utimens (Depends-on): Likewise.
3768
3769 2011-09-25  Bruno Haible  <bruno@clisp.org>
3770
3771         linkat: Fix compilation on MSVC 9.
3772         * lib/linkat.c: Don't include <stdint.h>.
3773
3774 2011-09-25  Bruno Haible  <bruno@clisp.org>
3775
3776         fclose: Support for MSVC 9.
3777         * lib/fclose.c: Include msvc-inval.h.
3778         (fclose_nothrow): New function.
3779         (rpl_fclose): Use it.
3780         * modules/fclose (Depends-on): Add msvc-inval.
3781         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3782
3783 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3784
3785         dup2: minor simplifications
3786         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3787         that it's a performance win.
3788         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3789         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3790
3791 2011-09-24  Jim Meyering  <meyering@redhat.com>
3792
3793         test-futimens: avoid a warning from gcc -Wshadow
3794         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3795         to avoid a shadowing warning.
3796
3797 2011-09-24  Bruno Haible  <bruno@clisp.org>
3798
3799         fdopen: Support for MSVC 9.
3800         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3801         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3802         * lib/fdopen.c: Include msvc-inval.h.
3803         (fdopen_nothrow): New function.
3804         (rpl_fdopen): Use it.
3805         * modules/fdopen (Depends-on): Add msvc-inval.
3806         * modules/fclose-tests (Depends-on): Add fdopen.
3807         * modules/fflush-tests (Depends-on): Likewise.
3808         * modules/fgetc-tests (Depends-on): Likewise.
3809         * modules/fputc-tests (Depends-on): Likewise.
3810         * modules/fread-tests (Depends-on): Likewise.
3811         * modules/freopen-tests (Depends-on): Likewise.
3812         * modules/fseeko-tests (Depends-on): Likewise.
3813         * modules/ftello-tests (Depends-on): Likewise.
3814         * modules/fwrite-tests  (Depends-on): Likewise.
3815         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3816
3817 2011-09-24  Bruno Haible  <bruno@clisp.org>
3818
3819         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3820         * modules/fgetc-tests (Depends-on): Add unistd.
3821         * modules/fputc-tests (Depends-on): Likewise.
3822         * modules/fread-tests (Depends-on): Likewise.
3823         * modules/fwrite-tests (Depends-on): Likewise.
3824
3825 2011-09-24  Bruno Haible  <bruno@clisp.org>
3826
3827         dup: Simplify autoconf test.
3828         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3829         on gl_MSVC_INVAL's result.
3830
3831 2011-09-24  Bruno Haible  <bruno@clisp.org>
3832
3833         Tests for function fwrite().
3834         * modules/fwrite-tests: New file.
3835         * tests/test-fwrite.c: New file.
3836         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3837
3838         Tests for function fread().
3839         * modules/fread-tests: New file.
3840         * tests/test-fread.c: New file.
3841         * modules/stdio-tests (Depends-on): Add fread-tests.
3842
3843         Activate fputc tests.
3844         * modules/stdio-tests (Depends-on): Add fputc-tests.
3845
3846         Enhance fgetc, fputc tests.
3847         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3848         * tests/test-fputc.c (main): Likewise.
3849
3850 2011-09-24  Bruno Haible  <bruno@clisp.org>
3851
3852         write: Support for MSVC 9.
3853         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3854         is not 1.
3855         * lib/write.c (write_nothrow): New function.
3856         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3857         not 1. Use write_nothrow.
3858         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3859         invalid parameter handler.
3860         (gl_PREREQ_WRITE): New macro.
3861         * modules/write (Depends-on): Add msvc-inval.
3862         (configure.ac): Invoke gl_PREREQ_WRITE.
3863         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3864
3865 2011-09-24  Bruno Haible  <bruno@clisp.org>
3866
3867         read: Fix last commit.
3868         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3869
3870 2011-09-24  Bruno Haible  <bruno@clisp.org>
3871
3872         dup2: Fix last commit.
3873         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3874         (rpl_dup2): Disable fcntl workaround on native Windows.
3875
3876         sigprocmask: Make code safer.
3877         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3878         section that changes macro definitions for this compilation unit.
3879
3880 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3881
3882         dup2: clarify by coalescing Windows-specific material
3883         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3884         "msvc-nothrow.h"' to the Windows-specific section, so that the
3885         Emacs source need not contain these include files.
3886         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3887         Windows-specific fixes into this function rather than just the
3888         nothrow fix, as this shortens and clarifies the code.  Always
3889         define as a function, as that's a bit cleaner than having it be
3890         sometimes a function and sometimes a macro.
3891         (rpl_dup2): Move the Windows-specific stuff out of here and into
3892         ms_windows_dup2.  Don't protect the Haiku-related fix with
3893         "#if !defined __linux__", as the same code also works around
3894         a Linux kernel bug, and it doesn't add any system calls on any
3895         platform.  Add comment about FreeBSD 6.1.
3896
3897         sigprocmask: move #include directive
3898         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3899         Windows-specific section, so that the Emacs source need not
3900         contain msvc-inval.h.
3901
3902 2011-09-23  Bruno Haible  <bruno@clisp.org>
3903
3904         read: Support for MSVC 9.
3905         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3906         is not 1.
3907         * lib/read.c (read_nothrow): New function.
3908         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3909         read_nothrow.
3910         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3911         invalid parameter handler.
3912         (gl_PREREQ_READ): New macro.
3913         * modules/read (Depends-on): Add msvc-inval.
3914         (configure.ac): Invoke gl_PREREQ_READ.
3915         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3916
3917 2011-09-23  Bruno Haible  <bruno@clisp.org>
3918
3919         close: Support for MSVC 9.
3920         * lib/close.c: Include <errno.h>, msvc-inval.h.
3921         (close_nothrow): New function.
3922         (rpl_close): Use it.
3923         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3924         invalid parameter handler.
3925         * modules/close (Depends-on): Add msvc-inval.
3926         * modules/dup2-tests (Depends-on): Add close.
3927         * modules/dup3-tests (Depends-on): Likewise.
3928         * modules/fcntl-tests (Depends-on): Likewise.
3929         * modules/spawn-pipe-tests (Depends-on): Likewise.
3930         * modules/unistd-safer-tests (Depends-on): Likewise.
3931         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3932
3933 2011-09-23  Bruno Haible  <bruno@clisp.org>
3934
3935         New module 'dup'.
3936         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3937         Allow replacement.
3938         * lib/dup.c: New file.
3939         * lib/fchdir.c (rpl_dup): Remove function.
3940         * m4/dup.m4: New file.
3941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3942         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3943         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3944         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3945         * modules/dup: New file.
3946         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3947         'dup' module is in use.
3948         * modules/fdopendir (Depends-on): Add dup.
3949         * modules/fdutimensat-tests (Depends-on): Likewise.
3950         * modules/fts (Depends-on): Likewise.
3951         * modules/futimens-tests (Depends-on): Likewise.
3952         * modules/posix_spawnp-tests (Depends-on): Likewise.
3953         * modules/unistd-safer-tests (Depends-on): Likewise.
3954         * modules/utimens-tests (Depends-on): Likewise.
3955         * doc/posix-functions/dup.texi: Mention the new module and the problem
3956         on MSVC.
3957
3958 2011-09-23  Bruno Haible  <bruno@clisp.org>
3959
3960         getdtablesize: Support for MSVC 9.
3961         * lib/getdtablesize.c: Include msvc-inval.h.
3962         (_setmaxstdio_nothrow): New function.
3963         (_setmaxstdio): Redefine it.
3964         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3965         * modules/getdtablesize (Depends-on): Add msvc-inval.
3966         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3967
3968 2011-09-23  Bruno Haible  <bruno@clisp.org>
3969
3970         signal-h: Rename from signal.
3971         * modules/signal-h: Renamed from modules/signal.
3972         * modules/pthread_sigmask (Depends-on): Update.
3973         * modules/raise (Depends-on): Likewise.
3974         * modules/sigaction (Depends-on): Likewise.
3975         * modules/sigpipe (Depends-on): Likewise.
3976         * modules/sigprocmask (Depends-on): Likewise.
3977         * modules/sys_select (Depends-on): Likewise.
3978         * modules/signal-h-tests: Renamed from modules/signal-tests.
3979         (Files, Depends-on, Makefile.am): Update.
3980         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3981         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3982         (Files, Makefile.am): Update.
3983         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3984         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3985         * modules/signal: New placeholder file.
3986         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3987         * doc/posix-headers/signal.texi: Update.
3988         * NEWS: Mention the change.
3989
3990 2011-09-23  Bruno Haible  <bruno@clisp.org>
3991
3992         sigprocmask: Avoid crashes through signal() on MSVC 9.
3993         * lib/sigprocmask.c: Include msvc-inval.h.
3994         (signal_nothrow): New function.
3995         (signal): Redefine it.
3996         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3997         * modules/sigprocmask (Depends-on): Add msvc-inval.
3998         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3999
4000 2011-09-23  Bruno Haible  <bruno@clisp.org>
4001
4002         Tests for module 'raise'.
4003         * modules/raise-tests: New file.
4004         * tests/test-raise.c: New file.
4005
4006         raise: Support for MSVC.
4007         * lib/signal.in.h (raise): New declaration.
4008         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4009         for native Windows platforms.
4010         * m4/raise.m4: New file.
4011         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4012         HAVE_RAISE, REPLACE_RAISE.
4013         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4014         REPLACE_RAISE.
4015         * modules/raise (Status, Notice): Remove fields.
4016         (Files): Add m4/raise.m4.
4017         (Depends-on): Add signal, msvc-inval.
4018         (configure.ac): Use the common idioms.
4019         (Maintainer): Add me.
4020         * tests/test-signal-c++.cc: Check the signature of raise.
4021         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4022
4023 2011-09-23  Bruno Haible  <bruno@clisp.org>
4024
4025         pipe2: Fix compilation on pre-C99 compilers.
4026         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4027
4028 2011-09-23  Bruno Haible  <bruno@clisp.org>
4029
4030         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4031         * lib/msvc-nothrow.h: New file.
4032         * lib/msvc-nothrow.c: New file.
4033         * m4/msvc-nothrow.m4: New file.
4034         * modules/msvc-nothrow: New file.
4035         * lib/dup2.c: Include msvc-nothrow.h.
4036         (rpl_dup2): No need to protect _get_osfhandle call here.
4037         * lib/accept4.c: Include msvc-nothrow.h.
4038         * lib/error.c: Likewise.
4039         * lib/fcntl.c: Likewise.
4040         * lib/lseek.c: Likewise.
4041         * lib/nonblocking.c: Likewise.
4042         * lib/poll.c: Likewise.
4043         * lib/read.c: Likewise.
4044         * lib/select.c: Likewise.
4045         * lib/sockets.h: Likewise.
4046         * lib/sockets.c: Likewise.
4047         * lib/stdio-read.c: Likewise.
4048         * lib/stdio-write.c: Likewise.
4049         * lib/write.c: Likewise.
4050         * lib/w32sock.h: Likewise.
4051         * lib/w32spawn.h: Likewise.
4052         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4053         * lib/fsync.c: Likewise.
4054         * lib/isapipe.c: Likewise.
4055         * modules/dup2 (Depends-on): Add msvc-nothrow.
4056         * modules/accept4 (Depends-on): Likewise.
4057         * modules/error (Depends-on): Likewise.
4058         * modules/fcntl (Depends-on): Likewise.
4059         * modules/lseek (Depends-on): Likewise.
4060         * modules/nonblocking (Depends-on): Likewise.
4061         * modules/poll (Depends-on): Likewise.
4062         * modules/read (Depends-on): Likewise.
4063         * modules/select (Depends-on): Likewise.
4064         * modules/sockets (Depends-on): Likewise.
4065         * modules/sigpipe (Depends-on): Likewise.
4066         * modules/write (Depends-on): Likewise.
4067         * modules/accept (Depends-on): Likewise.
4068         * modules/bind (Depends-on): Likewise.
4069         * modules/connect (Depends-on): Likewise.
4070         * modules/gethostname (Depends-on): Likewise.
4071         * modules/getpeername (Depends-on): Likewise.
4072         * modules/getsockname (Depends-on): Likewise.
4073         * modules/getsockopt (Depends-on): Likewise.
4074         * modules/ioctl (Depends-on): Likewise.
4075         * modules/listen (Depends-on): Likewise.
4076         * modules/recv (Depends-on): Likewise.
4077         * modules/recvfrom (Depends-on): Likewise.
4078         * modules/send (Depends-on): Likewise.
4079         * modules/sendto (Depends-on): Likewise.
4080         * modules/setsockopt (Depends-on): Likewise.
4081         * modules/shutdown (Depends-on): Likewise.
4082         * modules/socket (Depends-on): Likewise.
4083         * modules/execute (Depends-on): Likewise.
4084         * modules/spawn-pipe (Depends-on): Likewise.
4085         * modules/flock (Depends-on): Likewise.
4086         * modules/fsync (Depends-on): Likewise.
4087         * modules/isapipe (Depends-on): Likewise.
4088         * tests/test-cloexec.c: Include msvc-nothrow.h.
4089         * tests/test-dup-safer.c: Likewise.
4090         * tests/test-dup2.c: Likewise.
4091         * tests/test-dup3.c: Likewise.
4092         * tests/test-fcntl.c: Likewise.
4093         * tests/test-pipe.c: Likewise.
4094         * tests/test-pipe2.c: Likewise.
4095         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4096         * modules/unistd-safer-tests (Depends-on): Likewise.
4097         * modules/dup2-tests (Depends-on): Likewise.
4098         * modules/dup3-tests (Depends-on): Likewise.
4099         * modules/fcntl-tests (Depends-on): Likewise.
4100         * modules/pipe-posix-tests (Depends-on): Likewise.
4101         * modules/pipe2-tests (Depends-on): Likewise.
4102
4103 2011-09-23  Bruno Haible  <bruno@clisp.org>
4104
4105         dup2: Make code more maintainable.
4106         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4107         (rpl_dup2): Use it.
4108         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4109         * modules/dup2 (configure.ac): Invoke it.
4110         Reported by Paul Eggert.
4111
4112 2011-09-23  Bruno Haible  <bruno@clisp.org>
4113
4114         msvc-inval: Fix compilation error.
4115         * lib/msvc-inval.h: Include <excpt.h>.
4116
4117 2011-09-23  Bruno Haible  <bruno@clisp.org>
4118
4119         mkdir: Tweak for MSVC 9.
4120         * lib/sys_stat.in.h: Update comments.
4121         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4122
4123         Tests for module 'chdir'.
4124         * modules/chdir-tests: New file.
4125         * tests/test-chdir.c: New file.
4126
4127         New module 'chdir'.
4128         * modules/chdir: New file.
4129         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4130         (chdir): New declaration.
4131         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4132         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4133         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4134         * tests/test-unistd-c++.cc: Check signature of chdir.
4135         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4136         * modules/chdir-long (Depends-on): Add chdir.
4137         * modules/fchdir (Depends-on): Likewise.
4138         * modules/rename (Depends-on): Likewise.
4139         * modules/savewd (Depends-on): Likewise.
4140
4141         rmdir: Support for mingw, MSVC 9.
4142         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4143         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4144
4145         getcwd: Tweak for MSVC 9.
4146         * lib/unistd.in.h: Update comments.
4147         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4148
4149 2011-09-22  Bruno Haible  <bruno@clisp.org>
4150
4151         strerror_r-posix: Avoid a link error on MSVC.
4152         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4153         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4154
4155 2011-09-22  Bruno Haible  <bruno@clisp.org>
4156
4157         select: Avoid link errors on MSVC.
4158         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4159         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4160         * modules/pselect (Link): Likewise.
4161         * NEWS: Mention the change.
4162         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4163         test-select-stdin against $(LIB_SELECT).
4164         * modules/pselect-tests (Makefile.am): Link test-pselect against
4165         $(LIB_SELECT).
4166
4167 2011-09-22  Bruno Haible  <bruno@clisp.org>
4168
4169         select: Avoid compilation error on MSVC.
4170         * lib/select.c: Don't include <stdbool.h>.
4171
4172 2011-09-21  Bruno Haible  <bruno@clisp.org>
4173
4174         Consolidate all uses of PATH_MAX in *.m4 files.
4175         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4176         macros.
4177         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4178         and gl_PATHMAX_SNIPPET.
4179         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4180         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4181         * modules/chdir-long (Files): Add m4/pathmax.m4.
4182         * modules/getcwd (Files): Likewise.
4183
4184 2011-09-21  Bruno Haible  <bruno@clisp.org>
4185
4186         ftruncate: Un-deprecate, concentrate on Win32 support.
4187         * modules/ftruncate (Status, Notice): Remove sections.
4188         (Depends-on): Add largefile.
4189         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4190         non-mingw platforms.
4191         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4192         include <io.h>.
4193         * modules/perror-tests (Depends-on): Add ftruncate.
4194         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4195         'ftruncate' module.
4196
4197 2011-09-21  Bruno Haible  <bruno@clisp.org>
4198
4199         Add dependencies to new dirent related modules.
4200         * modules/opendir (Depends-on): Add closedir.
4201         * modules/getcwd (Depends-on): Add opendir, closedir.
4202         * modules/dirent-safer-tests (Depends-on): Likewise.
4203         * modules/fdopendir-tests (Depends-on): Likewise.
4204         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4205         * modules/renameat-tests (Depends-on): Likewise.
4206
4207 2011-09-21  Bruno Haible  <bruno@clisp.org>
4208
4209         opendir: Avoid compilation error on mingw.
4210         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4211         * modules/opendir (Depends-on): Add unistd.
4212
4213 2011-09-21  Bruno Haible  <bruno@clisp.org>
4214
4215         ftruncate tests: Avoid a test failure on mingw.
4216         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4217
4218 2011-09-21  Bruno Haible  <bruno@clisp.org>
4219
4220         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4221         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4222         native Windows.
4223
4224 2011-09-21  Bruno Haible  <bruno@clisp.org>
4225
4226         New module 'fdopen'.
4227         * lib/stdio.in.h (fdopen): New declaration.
4228         * lib/fdopen.c: New file.
4229         * m4/fdopen.m4: New file.
4230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4231         REPLACE_FDOPEN.
4232         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4233         REPLACE_FDOPEN.
4234         * modules/fdopen: New file.
4235         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4236         * tests/test-stdio-c++.cc: Check signature of fdopen.
4237         * doc/posix-functions/fdopen.texi: Mention the new module.
4238
4239 2011-09-21  Bruno Haible  <bruno@clisp.org>
4240
4241         unlockpt tests: Avoid test failure on NetBSD 5.1.
4242         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4243         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4244
4245 2011-09-21  Bruno Haible  <bruno@clisp.org>
4246
4247         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4248         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4249         * tests/test-getlogin_r.c (main): Likewise.
4250
4251 2011-09-20  Bruno Haible  <bruno@clisp.org>
4252
4253         time tests: Don't require pid_t.
4254         * doc/posix-headers/time.texi: Revert last change.
4255         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4256         * tests/test-time.c: Comment out the check for pid_t.
4257
4258 2011-09-20  Bruno Haible  <bruno@clisp.org>
4259
4260         fsync tests: Avoid a test failure on mingw.
4261         * tests/test-fsync.c (main): Allow a failure with EIO.
4262
4263 2011-09-20  Bruno Haible  <bruno@clisp.org>
4264
4265         euidaccess: Update comments.
4266         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4267
4268 2011-09-20  Bruno Haible  <bruno@clisp.org>
4269
4270         Ensure EBADF returns for socket functions on mingw.
4271         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4272         descriptor is invalid.
4273         * lib/bind.c (rpl_bind): Likewise.
4274         * lib/connect.c (rpl_connect): Likewise.
4275         * lib/getpeername.c (rpl_getpeername): Likewise.
4276         * lib/getsockname.c (rpl_getsockname): Likewise.
4277         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4278         * lib/listen.c (rpl_listen): Likewise.
4279         * lib/recv.c (rpl_recv): Likewise.
4280         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4281         * lib/send.c (rpl_send): Likewise.
4282         * lib/sendto.c (rpl_sendto): Likewise.
4283         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4284         * lib/shutdown.c (rpl_shutdown): Likewise.
4285
4286 2011-09-20  Bruno Haible  <bruno@clisp.org>
4287
4288         select tests: EBADF tests.
4289         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4290         test_bad_fd): New functions.
4291         (test_function): Invoke also test_bad_fd.
4292
4293 2011-09-20  Bruno Haible  <bruno@clisp.org>
4294
4295         Tests for module 'posix_spawn_file_actions_addopen.
4296         * modules/posix_spawn_file_actions_addopen-tests: New file.
4297         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4298
4299         Tests for module 'posix_spawn_file_actions_adddup2'.
4300         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4301         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4302
4303         Tests for module 'posix_spawn_file_actions_addclose'.
4304         * modules/posix_spawn_file_actions_addclose-tests: New file.
4305         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4306
4307 2011-09-20  Bruno Haible  <bruno@clisp.org>
4308
4309         Tests for module 'unlockpt'.
4310         * modules/unlockpt-tests: New file.
4311         * tests/test-unlockpt.c: New file.
4312         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4313
4314         Tests for module 'grantpt'.
4315         * modules/grantpt-tests: New file.
4316         * tests/test-grantpt.c: New file.
4317         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4318
4319 2011-09-20  Bruno Haible  <bruno@clisp.org>
4320
4321         freopen tests: EBADF tests.
4322         * tests/test-freopen.c: Include errno.h, unistd.h.
4323         (main): Add tests for EBADF, commented out for the moment.
4324
4325         fclose tests: EBADF tests.
4326         * tests/test-fclose.c (main): Add tests for EBADF.
4327
4328         fflush tests: EBADF tests.
4329         * tests/test-fflush.c: Include errno.h, macros.h.
4330         (main): Add tests for EBADF.
4331
4332         ftello tests: EBADF tests.
4333         * tests/test-ftello4.sh: New file.
4334         * tests/test-ftello4.c: New file.
4335         * modules/ftello-tests (Files): Add them.
4336         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4337
4338         fseeko tests: EBADF tests.
4339         * tests/test-fseeko4.sh: New file.
4340         * tests/test-fseeko4.c: New file.
4341         * modules/fseeko-tests (Files): Add them.
4342         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4343
4344         Tests for function fputc().
4345         * modules/fputc-tests: New file.
4346         * tests/test-fputc.c: New file.
4347         * modules/stdio-tests (Depends-on): Add fputc-tests.
4348
4349         Tests for function fgetc().
4350         * modules/fgetc-tests: New file.
4351         * tests/test-fgetc.c: New file.
4352         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4353
4354         Tests for function fdopen().
4355         * modules/fdopen-tests: New file.
4356         * tests/test-fdopen.c: New file.
4357         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4358
4359         Tests for module 'vdprintf'.
4360         * modules/vdprintf-tests: New file.
4361         * tests/test-vdprintf.c: New file.
4362
4363         Tests for module 'dprintf'.
4364         * modules/dprintf-tests: New file.
4365         * tests/test-dprintf.c: New file.
4366
4367 2011-09-20  Bruno Haible  <bruno@clisp.org>
4368
4369         Tests for module 'ioctl'.
4370         * modules/ioctl-tests: New file.
4371         * tests/test-ioctl.c: New file.
4372
4373 2011-09-20  Bruno Haible  <bruno@clisp.org>
4374
4375         fcntl tests: EBADF tests.
4376         * tests/test-fcntl.c (main): Add more tests for EBADF.
4377
4378 2011-09-20  Bruno Haible  <bruno@clisp.org>
4379
4380         utimensat tests: EBADF tests.
4381         * tests/test-utimensat.c (main): Add tests for EBADF.
4382
4383         renameat tests: EBADF tests.
4384         * tests/test-renameat.c (main): Add tests for EBADF.
4385
4386         mkfifoat tests: EBADF tests.
4387         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4388
4389         readlinkat tests: EBADF tests.
4390         * tests/test-readlinkat.c (main): Add tests for EBADF.
4391
4392         symlinkat tests: EBADF tests.
4393         * tests/test-symlinkat.c (main): Add tests for EBADF.
4394
4395         linkat tests: EBADF tests.
4396         * tests/test-linkat.c (main): Add tests for EBADF.
4397
4398         Tests for module 'faccessat'.
4399         * modules/faccessat-tests: New file.
4400         * tests/test-faccessat.c: New file.
4401
4402         fdopendir tests: EBADF tests.
4403         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4404
4405         openat tests: EBADF tests.
4406         * tests/test-fchownat.c (main): Add tests for EBADF.
4407         * tests/test-fstatat.c (main): Likewise.
4408         * tests/test-mkdirat.c (main): Likewise.
4409         * tests/test-openat.c (main): Likewise.
4410         * tests/test-unlinkat.c (main): Likewise.
4411         * tests/test-fchmodat.c: New file.
4412         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4413         (Makefile.am): Also run 'test-fchmodat'.
4414
4415 2011-09-20  Bruno Haible  <bruno@clisp.org>
4416
4417         utimens, futimens, fdutimensat tests: EBADF tests.
4418         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4419
4420         Tests for function fstat().
4421         * modules/fstat-tests: New file.
4422         * tests/test-fstat.c: New file.
4423         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4424
4425 2011-09-20  Bruno Haible  <bruno@clisp.org>
4426
4427         test-ttyname_r tests: EBADF tests.
4428         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4429
4430         Tests for module 'isatty'.
4431         * modules/isatty-tests: New file.
4432         * tests/test-isatty.c: New file.
4433
4434         Tests for module 'write'.
4435         * modules/write-tests: New file.
4436         * tests/test-write.c: New file.
4437
4438         Tests for module 'read'.
4439         * modules/read-tests: New file.
4440         * tests/test-read.c: New file.
4441
4442         pwrite tests: EBADF tests.
4443         * tests/test-pwrite.c (main): Add tests for EBADF.
4444
4445         pread tests: EBADF tests.
4446         * tests/test-pread.c (main): Add tests for EBADF.
4447
4448         lseek tests: EBADF tests.
4449         * tests/test-lseek.c (main): Add more tests for EBADF.
4450
4451         Tests for module 'ftruncate'.
4452         * modules/ftruncate-tests: New file.
4453         * tests/test-ftruncate.sh: New file.
4454         * tests/test-ftruncate.c: New file.
4455
4456         fsync tests: EBADF tests.
4457         * tests/test-fsync.c (main): Add more tests for EBADF.
4458
4459         fdatasync tests: EBADF tests.
4460         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4461
4462         Tests for module 'fchown'.
4463         * modules/fchown-tests: New file.
4464         * tests/test-fchown.c: New file.
4465
4466         Tests for module 'fchmod'.
4467         * modules/fchmod-tests: New file.
4468         * tests/test-fchmod.c: New file.
4469
4470         fchdir tests: EBADF tests.
4471         * tests/test-fchdir.c (main): Add more tests for EBADF.
4472
4473         dup2 tests: EBADF tests.
4474         * tests/test-dup2.c (main): Add more tests for EBADF.
4475
4476         Tests for module 'dup'.
4477         * modules/dup-tests: New file.
4478         * tests/test-dup.c: New file.
4479
4480         Tests for module 'close'.
4481         * modules/close-tests: New file.
4482         * tests/test-close.c: New file.
4483
4484 2011-09-20  Bruno Haible  <bruno@clisp.org>
4485
4486         Tests for module 'shutdown'.
4487         * modules/shutdown-tests: New file.
4488         * tests/test-shutdown.c: New file.
4489
4490         Tests for module 'setsockopt'.
4491         * modules/setsockopt-tests: New file.
4492         * tests/test-setsockopt.c: New file.
4493
4494         Tests for module 'sendto'.
4495         * modules/sendto-tests: New file.
4496         * tests/test-sendto.c: New file.
4497
4498         Tests for module 'send'.
4499         * modules/send-tests: New file.
4500         * tests/test-send.c: New file.
4501
4502         Tests for module 'recvfrom'.
4503         * modules/recvfrom-tests: New file.
4504         * tests/test-recvfrom.c: New file.
4505
4506         Tests for module 'recv'.
4507         * modules/recv-tests: New file.
4508         * tests/test-recv.c: New file.
4509
4510         Tests for module 'listen'.
4511         * modules/listen-tests: New file.
4512         * tests/test-listen.c: New file.
4513
4514         Tests for module 'getsockopt'.
4515         * modules/getsockopt-tests: New file.
4516         * tests/test-getsockopt.c: New file.
4517
4518         Tests for module 'getsockname'.
4519         * modules/getsockname-tests: New file.
4520         * tests/test-getsockname.c: New file.
4521
4522         Tests for module 'getpeername'.
4523         * modules/getpeername-tests: New file.
4524         * tests/test-getpeername.c: New file.
4525
4526         Tests for module 'connect'.
4527         * modules/connect-tests: New file.
4528         * tests/test-connect.c: New file.
4529
4530         Tests for module 'bind'.
4531         * modules/bind-tests: New file.
4532         * tests/test-bind.c: New file.
4533
4534         accept4 tests: Fix for native Windows.
4535         * tests/test-accept4.c: Include sockets.h.
4536         (main): Invoke gl_sockets_startup.
4537         * modules/accept4-tests (Depends-on): Add sockets.
4538
4539         accept tests: Fix for native Windows.
4540         * tests/test-accept.c: Include sockets.h.
4541         (main): Invoke gl_sockets_startup.
4542         * modules/accept-tests (Depends-on): Add sockets.
4543
4544 2011-09-19  Bruno Haible  <bruno@clisp.org>
4545
4546         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4547         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4548         do...while(0).
4549         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4550         Suggested by Paul Eggert.
4551
4552 2011-09-19  Bruno Haible  <bruno@clisp.org>
4553
4554         sched: Ensure pid_t is defined.
4555         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4556         not define pid_t.
4557         * lib/sched.in.h: Include <sys/types.h>.
4558         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4560
4561 2011-09-19  Bruno Haible  <bruno@clisp.org>
4562
4563         msvc-inval: Ensure the entire expansion is a single statement.
4564         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4565         of braces.
4566
4567 2011-09-19  Jim Meyering  <meyering@redhat.com>
4568
4569         tests: use printf, not echo in init.sh's warn_ function
4570         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4571         misbehave when given strings containing a backslash or starting
4572         with e.g., -n.  James Youngman suggested setting IFS.
4573
4574 2011-09-19  Eric Blake  <eblake@redhat.com>
4575
4576         futimens: enhance test
4577         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4578         closed non-negative fd.
4579
4580         date: accept 'hence' as opposite of 'ago'
4581         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4582         * tests/test-parse-datetime.c (main): Enhance test.
4583         Suggested by Jesse Wilson.
4584
4585 2011-09-19  Jim Meyering  <meyering@redhat.com>
4586
4587         getcwd: don't fail in a deep directory on a system without openat
4588         Before this change, getcwd would fail when called from a directory
4589         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4590         the non-openat implementation used "..", "../..", "../../..", etc.
4591         to access ancestor directories.  With too many, that string would
4592         be longer than PATH_MAX.
4593         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4594         using gnulib's openat replacement.
4595         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4596         we're using the replacement function.
4597
4598 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4599
4600         maint.mk: avoid warnings from perl about missing files
4601         * top/maint.mk (def_sym_regex): Ignore files listed in
4602         $(gl_other_headers_) that do not exist, say because a project
4603         does not use a corresponding module.
4604
4605 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4606
4607         stat: use pathmax.h only if needed
4608         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4609         This is better for Emacs, which does not have a mingw port and
4610         therefore can avoid the pathmax module.
4611
4612         utimens: remove dependency on dup2
4613         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4614         to work around the Linux kernel bug.
4615         * modules/utimens (Depends-on): Remove dup2.
4616
4617 2011-09-18  Bruno Haible  <bruno@clisp.org>
4618
4619         inet_ntop, inet_pton: Look for it also in libresolv.
4620         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4621         libnsl, search for it in libresolv.
4622         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4623         Needed on Solaris 7.
4624
4625 2011-09-18  Bruno Haible  <bruno@clisp.org>
4626
4627         accept, accept4 tests: Avoid link error on Solaris.
4628         * modules/accept-tests (Makefile.am): Link test-accept against
4629         $(LIBSOCKET).
4630         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4631         $(LIBSOCKET).
4632
4633         accept4: Avoid link error on Solaris.
4634         * modules/accept4 (Link): New section.
4635
4636         socket functions: Avoid link errors on Solaris.
4637         * modules/accept (Depends-on): Add socketlib.
4638         (Link): New section.
4639         * modules/bind (Depends-on): Add socketlib.
4640         (Link): New section.
4641         * modules/connect (Depends-on): Add socketlib.
4642         (Link): New section.
4643         * modules/getpeername (Depends-on): Add socketlib.
4644         (Link): New section.
4645         * modules/getsockname (Depends-on): Add socketlib.
4646         (Link): New section.
4647         * modules/getsockopt (Depends-on): Add socketlib.
4648         (Link): New section.
4649         * modules/listen (Depends-on): Add socketlib.
4650         (Link): New section.
4651         * modules/recv (Depends-on): Add socketlib.
4652         (Link): New section.
4653         * modules/recvfrom (Depends-on): Add socketlib.
4654         (Link): New section.
4655         * modules/send (Depends-on): Add socketlib.
4656         (Link): New section.
4657         * modules/sendto (Depends-on): Add socketlib.
4658         (Link): New section.
4659         * modules/setsockopt (Depends-on): Add socketlib.
4660         (Link): New section.
4661         * modules/shutdown (Depends-on): Add socketlib.
4662         (Link): New section.
4663         * modules/socket (Depends-on): Add socketlib.
4664         (Link): New section.
4665
4666 2011-09-18  Bruno Haible  <bruno@clisp.org>
4667
4668         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4669         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4670         than 5 seconds.
4671         * modules/ptsname-tests (configure.ac): Test for alarm.
4672
4673 2011-09-18  Bruno Haible  <bruno@clisp.org>
4674
4675         posix_spawn_file_actions_add*: Fix module dependencies.
4676         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4677         posix_spawn_file_actions_init.
4678         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4679         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4680
4681 2011-09-18  Bruno Haible  <bruno@clisp.org>
4682
4683         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4684         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4685         * tests/test-renameat.c (main): Likewise.
4686
4687 2011-09-18  Bruno Haible  <bruno@clisp.org>
4688
4689         Tests for module 'accept4'.
4690         * modules/accept4-tests: New file.
4691         * tests/test-accept4.c: New file.
4692
4693 2011-09-18  Bruno Haible  <bruno@clisp.org>
4694
4695         Tests for module 'accept'.
4696         * modules/accept-tests: New file.
4697         * tests/test-accept.c: New file.
4698
4699 2011-09-18  Bruno Haible  <bruno@clisp.org>
4700
4701         dup2: Support for MSVC.
4702         * lib/dup2.c: Include msvc-inval.h.
4703         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4704         _get_osfhandle calls.
4705         * modules/dup2 (Depends-on): Add msvc-inval.
4706         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4707
4708         New module 'msvc-inval'.
4709         * lib/msvc-inval.h: New file.
4710         * lib/msvc-inval.c: New file.
4711         * m4/msvc-inval.m4: New file.
4712         * modules/msvc-inval: New file.
4713
4714 2011-09-17  Bruno Haible  <bruno@clisp.org>
4715
4716         Tests for module 'pclose'.
4717         * modules/pclose-tests: New file.
4718
4719         New module 'pclose'.
4720         * lib/stdio.in.h (pclose): New declaration.
4721         * lib/pclose.c: New file.
4722         * m4/pclose.m4: New file.
4723         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4724         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4725         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4726         * modules/pclose: New file.
4727         * modules/popen-tests (Depends-on): Add pclose.
4728         * modules/popen-safer-tests (Depends-on): Likewise.
4729         * doc/posix-functions/pclose.texi: Mention the new module.
4730
4731 2011-09-17  Bruno Haible  <bruno@clisp.org>
4732
4733         popen: Support for MSVC.
4734         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4735         * lib/popen.c (popen): Provide alternate definition for native Windows.
4736         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4738         * modules/popen (Depends-on, configure.ac): Update condition.
4739         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4740         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4741         fixed.
4742
4743 2011-09-17  Bruno Haible  <bruno@clisp.org>
4744
4745         isnanl, isnand, isnanf: Work around MSVC bug.
4746         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4747
4748 2011-09-17  Bruno Haible  <bruno@clisp.org>
4749
4750         sys_socket tests: Fix recent mistake.
4751         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4752
4753 2011-09-17  Bruno Haible  <bruno@clisp.org>
4754
4755         putenv: Support for MSVC.
4756         * modules/putenv (Depends-on): Add environ.
4757         * lib/putenv.c (environ): Disable declaration.
4758         * lib/unistd.in.h: Update comment.
4759
4760 2011-09-17  Bruno Haible  <bruno@clisp.org>
4761
4762         math: Avoid macro redefinition warnings on MSVC.
4763         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4764         Undefine before redefining.
4765
4766 2011-09-17  Bruno Haible  <bruno@clisp.org>
4767
4768         doc: Mention functions which are declared as macros.
4769         * doc/posix-functions/*[fl].texi: Mention that some functions are
4770         defined as macros with arguments only.
4771
4772 2011-09-17  Bruno Haible  <bruno@clisp.org>
4773
4774         Add dependencies to new dirent related modules.
4775         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4776         * modules/fts (Depends-on): Likewise.
4777         * modules/glob (Depends-on): Likewise.
4778         * modules/savedir (Depends-on): Likewise.
4779         * modules/scandir (Depends-on): Likewise.
4780         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4781         * modules/fdopendir (Depends-on): Add opendir.
4782
4783 2011-09-17  Bruno Haible  <bruno@clisp.org>
4784
4785         inet_pton: Support for MSVC on Windows Vista or newer.
4786         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4787         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4788         HAVE_DECL_INET_PTON is defined.
4789         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4790         On platforms with <winsock2.h>, test whether inet_pton is declared in
4791         <ws2tcpip.h>. If so, arrange to replace it.
4792         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4793         REPLACE_INET_PTON.
4794         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4795         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4796         (Depends-on, configure.ac): Update condition.
4797         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4798
4799 2011-09-17  Bruno Haible  <bruno@clisp.org>
4800
4801         inet_ntop: Support for MSVC on Windows Vista or newer.
4802         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4803         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4804         HAVE_DECL_INET_NTOP is defined.
4805         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4806         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4807         <ws2tcpip.h>. If so, arrange to replace it.
4808         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4809         REPLACE_INET_NTOP.
4810         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4811         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4812         (Depends-on, configure.ac): Update condition.
4813         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4814
4815 2011-09-16  Eric Blake  <eblake@redhat.com>
4816
4817         test-fsync: yet another enhancement
4818         * tests/test-fsync.c (main): Also test behavior on read-only text
4819         file.
4820
4821 2011-09-16  Bruno Haible  <bruno@clisp.org>
4822
4823         Enhance fsync, fdatasync tests.
4824         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4825         * tests/test-fdatasync.c (main): Likewise.
4826
4827 2011-09-16  Bruno Haible  <bruno@clisp.org>
4828
4829         Support for MSVC compiler: Ensure mode_t gets defined.
4830         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4831         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4832         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4833         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4834         * tests/test-fcntl-h.c: Check that mode_t is defined.
4835         * tests/test-sys_stat.c: Likewise.
4836         * tests/test-sys_types.c: Likewise.
4837         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4838         * doc/posix-headers/sys_stat.texi: Likewise.
4839         * doc/posix-headers/sys_types.texi: Likewise.
4840
4841 2011-09-16  Bruno Haible  <bruno@clisp.org>
4842
4843         sys_stat: Support for MSVC.
4844         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4845         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4846         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4847         MSVC.
4848
4849 2011-09-16  Bruno Haible  <bruno@clisp.org>
4850
4851         Support for MSVC compiler: Ensure off_t gets defined.
4852         * lib/unistd.in.h: Include <sys/types.h>.
4853         * tests/test-fcntl-h.c: Check that off_t is defined.
4854         * tests/test-sys_stat.c: Likewise.
4855         * tests/test-sys_types.c: Likewise.
4856
4857 2011-09-16  Eric Blake  <eblake@redhat.com>
4858
4859         fdatasync: port to Solaris
4860         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4861         * modules/fdatasync (Link): Document it.
4862         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4863
4864         fdatasync: port to MacOS X 10.7
4865         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4866         declared.
4867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4868         * modules/unistd (Makefile.am): Substitute it.
4869         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4870         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4871
4872         fdatasync: minor improvements
4873         * modules/fdatasync (Depends-on): Add condition for fsync.
4874         * lib/fdatasync.c (fdatasync): Add comment.
4875         * tests/test-unistd-c++.cc: Test fdatasync.
4876
4877         unistd: update refs to newer POSIX
4878         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4879         Suggested by Bruno Haible.
4880
4881         fdatasync: new module
4882         * modules/fsync (Description): Document difference to fdatasync.
4883         * modules/fdatasync: New module.
4884         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4885         * lib/fdatasync.c (fdatasync): Likewise.
4886         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4887         defaults.
4888         * modules/unistd (Makefile.am): Set witnesses.
4889         * lib/unistd.in.h (fdatasync): Declare.
4890         * MODULES.html.sh: Document it.
4891         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4892         * modules/fdatasync-tests: New test.
4893         * tests/test-fdatasync.c: Likewise.
4894
4895 2011-09-16  Eric Blake  <eblake@redhat.com>
4896
4897         test-fsync: enhance tests
4898         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4899         * tests/test-fsync.c (main): Enhance test.
4900
4901 2011-09-15  Bruno Haible  <bruno@clisp.org>
4902
4903         Support for MSVC compiler: Ensure ssize_t gets defined.
4904         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4905         * doc/posix-headers/stdio.texi: Likewise.
4906         * modules/stdio (Depends-on): Add ssize_t.
4907         * modules/sys_socket (Depends-on): Likewise.
4908         * modules/sys_types (Depends-on): Likewise.
4909         * modules/sys_uio (Depends-on): Likewise.
4910         * modules/unistd (Depends-on): Likewise.
4911         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4912         * tests/test-sys_types.c: Check that ssize_t is defined.
4913
4914 2011-09-14  Bruno Haible  <bruno@clisp.org>
4915
4916         Avoid using #, the m4 comment starter character, near brackets.
4917         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4918         delimiter character in sed expressions.
4919         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4920         Suggested by Eric Blake.
4921
4922         Properly quote AC_CHECK_DECLS' 4th argument.
4923         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4924         argument.
4925         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4926         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4927         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4928         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4929         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4930         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4931         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4932         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4933         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4934         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4935         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4936         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4937         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4938         * m4/isinf.m4 (gl_ISINF): Likewise.
4939         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4940         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4941         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4942         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4943         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4944         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4945         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4946         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4947         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4948         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4949         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4950         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4952         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4953         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4954         Reported by Eric Blake.
4955
4956         Properly quote AC_CHECK_DECL's 4th argument.
4957         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4958         argument.
4959         * m4/argp.m4 (gl_ARGP): Likewise.
4960         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4961         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4962         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4963         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4964         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4965         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4966         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4967         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4968         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4969         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4970         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4971         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4972         Reported by Eric Blake.
4973
4974 2011-09-14  Eric Blake  <eblake@redhat.com>
4975
4976         opendir: avoid compile warning
4977         * lib/opendir.c (includes): Always include errno.h.
4978         Reported by Tatsuro MATSUOKA.
4979
4980 2011-09-14  Jim Meyering  <meyering@redhat.com>
4981
4982         maint.mk: sc_tight_scope: propagate failure from sub-make
4983         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4984         Reported by Martin von Gagern.
4985
4986 2011-09-13  Bruno Haible  <bruno@clisp.org>
4987
4988         tempname: Support for MSVC.
4989         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4990         MSVC.
4991         * modules/tempname (Depends-on): Add fcntl-h.
4992
4993 2011-09-13  Bruno Haible  <bruno@clisp.org>
4994
4995         sys_time: Support for MSVC.
4996         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4997         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4998         include <winsock2.h>.
4999         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5000         function declarations that collide with POSIX.
5001         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5002         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5003
5004 2011-09-13  Bruno Haible  <bruno@clisp.org>
5005
5006         stat: Support for MSVC.
5007         * lib/stat.c: Include pathmax.h.
5008         * modules/stat (Depends-on): Add pathmax.
5009
5010         pathmax: Support for native Windows.
5011         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5012
5013 2011-09-12  Bruno Haible  <bruno@clisp.org>
5014
5015         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5016         * lib/dirent.in.h (struct dirent): New type.
5017         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5018         DT_WHT): New macros.
5019         (DIR): New type.
5020         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5021         (readdir, rewinddir): New declarations.
5022         * lib/dirent-private.h: New file.
5023         * lib/opendir.c: New file.
5024         * lib/readdir.c: New file.
5025         * lib/rewinddir.c: New file.
5026         * lib/closedir.c: New file.
5027         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5028         * m4/opendir.m4: New file.
5029         * m4/readdir.m4: New file.
5030         * m4/rewinddir.m4: New file.
5031         * m4/closedir.m4: New file.
5032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5033         REPLACE_CLOSEDIR here.
5034         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5035         readdir, rewinddir are declared.
5036         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5037         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5038         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5039         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5040         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5041         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5042         * modules/opendir: New file.
5043         * modules/readdir: New file.
5044         * modules/rewinddir: New file.
5045         * modules/closedir: New file.
5046         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5047         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5048         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5049         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5050         * NEWS: Mention the 'fchdir' change.
5051
5052 2011-09-11  Bruno Haible  <bruno@clisp.org>
5053
5054         asm-underscore.m4: Support for MSVC.
5055         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5056         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5057
5058 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5059
5060         Doc about crypt functions.
5061         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5062         needing for _GNU_SOURCE to get crypt.
5063         * doc/posix-functions/encrypt.texi: Likewise.
5064         * doc/posix-functions/setkey.texi: Likewise.
5065
5066 2011-09-11  Bruno Haible  <bruno@clisp.org>
5067
5068         doc: Update regarding MSVC 9.
5069         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5070         tested".
5071         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5072         * doc/posix-headers/*.texi: Likewise.
5073         * doc/pastposix-functions/*.texi: Likewise.
5074         * doc/glibc-functions/*.texi: Likewise.
5075         * doc/glibc-headers/*.texi: Likewise.
5076
5077 2011-09-11  Bruno Haible  <bruno@clisp.org>
5078
5079         unistd et al.: Don't assume <unistd.h> exists.
5080         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5081         does not exist.
5082         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5083         exist. But include <stdlib.h>.
5084         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5085         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5086         symlink() does not exist.
5087         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5088         include <io.h> instead.
5089         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5090         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5091         include <direct.h> instead.
5092         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5093         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5094         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5095         <io.h> instead.
5096         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5097         correctly if the system does not have hard links.
5098         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5099         <direct.h> instead.
5100         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5101         it when looking for function declarations.
5102         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5103         <direct.h> and <io.h> instead.
5104         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5105
5106 2011-09-11  Bruno Haible  <bruno@clisp.org>
5107
5108         strcase: Support for MSVC.
5109         * modules/strcase (Status, Notice): Remove obsoletion mark.
5110         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5111         * doc/posix-functions/strncasecmp.texi: Likewise.
5112
5113         strings: Don't assume <strings.h> exists.
5114         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5115         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5116         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5117         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5118
5119 2011-09-11  Bruno Haible  <bruno@clisp.org>
5120
5121         dirent: Don't assume <dirent.h> exists.
5122         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5123         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5124         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5125         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5126
5127 2011-09-11  Bruno Haible  <bruno@clisp.org>
5128
5129         Fix wint_t on MSVC.
5130         * lib/wchar.in.h (wint_t): On MSVC, override it.
5131         * lib/wctype.in.h (wint_t): Likewise.
5132         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5133         MSVC.
5134         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5135         * doc/posix-headers/wctype.texi: Likewise.
5136
5137 2011-09-11  Bruno Haible  <bruno@clisp.org>
5138
5139         sys_types: Fix typo.
5140         * lib/sys_types.in.h: Fix typo in comment.
5141         Reported by Paul Eggert.
5142
5143         Support for MSVC compiler: Ensure size_t gets defined.
5144         * modules/strings (Depends-on): Add 'sys_types'.
5145         * modules/sys_uio (Depends-on): Likewise.
5146         * lib/sys_uio.in.h: Update comment.
5147
5148         C++ tests for module 'sys_types'.
5149         * modules/sys_types-c++-tests: New file.
5150         * tests/test-sys_types-c++.cc: New file.
5151
5152         Tests for module 'sys_types'.
5153         * modules/sys_types-tests: New file.
5154         * tests/test-sys_types.c: New file.
5155
5156         New module 'sys_types'.
5157         * lib/sys_types.in.h: New file.
5158         * m4/sys_types_h.m4: New file.
5159         * modules/sys_types: New file.
5160         * doc/posix-headers/sys_types.texi: Mention the new module and the
5161         size_t problem on MSVC 9.
5162
5163 2011-09-11  Bruno Haible  <bruno@clisp.org>
5164
5165         Support for MSVC compiler: Avoid division by a literal 0.
5166         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5167         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5168         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5169         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5170         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5171         * tests/infinity.h: New file.
5172         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5173         on MSVC.
5174         * tests/test-ceilf1.c: Include infinity.h.
5175         (main): Use Infinityf.
5176         * tests/test-ceil1.c: Include infinity.h.
5177         (main): Use Infinityd.
5178         * tests/test-ceill.c: Include infinity.h.
5179         (main): Use Infinityl.
5180         * tests/test-dprintf-posix.c: Include infinity.h.
5181         (test_function): Use Infinityd.
5182         * tests/test-floorf1.c: Include infinity.h.
5183         (main): Use Infinityf.
5184         * tests/test-floor1.c: Include infinity.h.
5185         (main): Use Infinityd.
5186         * tests/test-floorl.c: Include infinity.h.
5187         (main): Use Infinityl.
5188         * tests/test-fprintf-posix.c: Include infinity.h.
5189         (test_function): Use Infinityd.
5190         * tests/test-frexp.c: Include infinity.h.
5191         (main): Use Infinityd.
5192         * tests/test-frexpl.c: Include infinity.h.
5193         (main): Use Infinityl.
5194         * tests/test-isfinite.c: Include infinity.h.
5195         (test_isfinitef): Use Infinityf.
5196         (test_isfinited): Use Infinityd.
5197         (test_isfinitel): Use Infinityl.
5198         * tests/test-isinf.c: Include infinity.h.
5199         (test_isinff): Use Infinityf.
5200         (test_isinfd): Use Infinityd.
5201         (test_isinfl): Use Infinityl.
5202         * tests/test-isnan.c: Include infinity.h.
5203         (test_float): Use Infinityf.
5204         (test_double): Use Infinityd.
5205         (test_long_double): Use Infinityl.
5206         * tests/test-isnanf.h: Include infinity.h.
5207         (main): Use Infinityf.
5208         * tests/test-isnand.h: Include infinity.h.
5209         (main): Use Infinityd.
5210         * tests/test-isnanl.h: Include infinity.h.
5211         (main): Use Infinityl.
5212         * tests/test-ldexpl.c: Include infinity.h.
5213         (main): Use Infinityl.
5214         * tests/test-printf-posix.h: Include infinity.h.
5215         (test_function): Use Infinityd.
5216         * tests/test-roundf1.c: Include infinity.h.
5217         (main): Use Infinityf.
5218         * tests/test-round1.c: Include infinity.h.
5219         (main): Use Infinityd.
5220         * tests/test-roundl.c: Include infinity.h.
5221         (main): Use Infinityl.
5222         * tests/test-signbit.c: Include infinity.h.
5223         (test_signbitf): Use Infinityf.
5224         (test_signbitd): Use Infinityd.
5225         (test_signbitl): Use Infinityl.
5226         * tests/test-snprintf-posix.h: Include infinity.h.
5227         (test_function): Use Infinityd, Infinityl.
5228         * tests/test-sprintf-posix.h: Include infinity.h.
5229         (test_function): Use Infinityd, Infinityl.
5230         * tests/test-truncf1.c: Include infinity.h.
5231         (main): Use Infinityf.
5232         * tests/test-trunc1.c: Include infinity.h.
5233         (main): Use Infinityd.
5234         * tests/test-truncl.c: Include infinity.h.
5235         (main): Use Infinityl.
5236         * tests/test-vasnprintf-posix.c: Include infinity.h.
5237         (test_function): Use Infinityd, Infinityl.
5238         * tests/test-vasprintf-posix.c: Include infinity.h.
5239         (test_function): Use Infinityd, Infinityl.
5240         * modules/ceilf-tests (Files): Add tests/infinity.h.
5241         * modules/ceil-tests (Files): Likewise.
5242         * modules/ceill-tests (Files): Likewise.
5243         * modules/dprintf-posix-tests (Files): Likewise.
5244         * modules/floorf-tests (Files): Likewise.
5245         * modules/floor-tests (Files): Likewise.
5246         * modules/floorl-tests (Files): Likewise.
5247         * modules/fprintf-posix-tests (Files): Likewise.
5248         * modules/frexp-tests (Files): Likewise.
5249         * modules/frexp-nolibm-tests (Files): Likewise.
5250         * modules/frexpl-tests (Files): Likewise.
5251         * modules/frexpl-nolibm-tests (Files): Likewise.
5252         * modules/isfinite-tests (Files): Likewise.
5253         * modules/isinf-tests (Files): Likewise.
5254         * modules/isnan-tests (Files): Likewise.
5255         * modules/isnanf-tests (Files): Likewise.
5256         * modules/isnanf-nolibm-tests (Files): Likewise.
5257         * modules/isnand-tests (Files): Likewise.
5258         * modules/isnand-nolibm-tests (Files): Likewise.
5259         * modules/isnanl-tests (Files): Likewise.
5260         * modules/isnanl-nolibm-tests (Files): Likewise.
5261         * modules/ldexpl-tests (Files): Likewise.
5262         * modules/printf-posix-tests (Files): Likewise.
5263         * modules/roundf-tests (Files): Likewise.
5264         * modules/round-tests (Files): Likewise.
5265         * modules/roundl-tests (Files): Likewise.
5266         * modules/signbit-tests (Files): Likewise.
5267         * modules/snprintf-posix-tests (Files): Likewise.
5268         * modules/sprintf-posix-tests (Files): Likewise.
5269         * modules/truncf-tests (Files): Likewise.
5270         * modules/trunc-tests (Files): Likewise.
5271         * modules/truncl-tests (Files): Likewise.
5272         * modules/vasnprintf-posix-tests (Files): Likewise.
5273         * modules/vasprintf-posix-tests (Files): Likewise.
5274         * modules/vdprintf-posix-tests (Files): Likewise.
5275         * modules/vfprintf-posix-tests (Files): Likewise.
5276         * modules/vprintf-posix-tests (Files): Likewise.
5277         * modules/vsnprintf-posix-tests (Files): Likewise.
5278         * modules/vsprintf-posix-tests (Files): Likewise.
5279         * modules/xprintf-posix-tests (Files): Likewise.
5280
5281 2011-09-11  Bruno Haible  <bruno@clisp.org>
5282
5283         Ensure pid_t gets defined.
5284         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5285         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5286         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5287         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5288         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5289         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5290         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5291         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5292         * tests/test-fcntl-h.c: Check that pid_t is defined.
5293         * tests/test-sched.c: Likewise.
5294         * tests/test-termios.c: Likewise.
5295         * tests/test-time.c: Likewise.
5296         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5297         * doc/posix-headers/signal.texi: Likewise.
5298         * doc/posix-headers/sys_types.texi: Likewise.
5299         * doc/posix-headers/time.texi: Likewise.
5300
5301 2011-09-11  Bruno Haible  <bruno@clisp.org>
5302
5303         acl: Fix compilation on Solaris 10 (older version).
5304         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5305         of ACE_EVERYONE.
5306         * lib/set-mode-acl.c (qset_acl): Likewise.
5307         Reported by Christian Jullien <eligis@orange.fr>.
5308
5309 2011-09-10  Bruno Haible  <bruno@clisp.org>
5310
5311         iconv, unsetenv: Add support for MSVC compiler.
5312         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5313         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5314
5315 2011-09-10  Bruno Haible  <bruno@clisp.org>
5316
5317         *printf: Add support for MSVC compiler.
5318         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5319         handles the exception caused by the %n directive. When cross-compiling,
5320         guess no on native Windows.
5321         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5322         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5323         emulate it through vsnprintf.
5324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5325         * doc/posix-functions/dprintf.texi: Update documentation regarding
5326         MSVC 9.
5327         * doc/posix-functions/fprintf.texi: Likewise.
5328         * doc/posix-functions/printf.texi: Likewise.
5329         * doc/posix-functions/snprintf.texi: Likewise.
5330         * doc/posix-functions/sprintf.texi: Likewise.
5331         * doc/posix-functions/swprintf.texi: Likewise.
5332         * doc/posix-functions/vdprintf.texi: Likewise.
5333         * doc/posix-functions/vfprintf.texi: Likewise.
5334         * doc/posix-functions/vprintf.texi: Likewise.
5335         * doc/posix-functions/vsnprintf.texi: Likewise.
5336         * doc/posix-functions/vsprintf.texi: Likewise.
5337         * doc/glibc-functions/asprintf.texi: Likewise.
5338         * doc/glibc-functions/obstack_printf.texi: Likewise.
5339         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5340         * doc/glibc-functions/vasprintf.texi: Likewise.
5341
5342 2011-09-10  Bruno Haible  <bruno@clisp.org>
5343
5344         nocrash: Add support for native Windows.
5345         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5346
5347 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5348             Bruno Haible  <bruno@clisp.org>
5349
5350         absolute-header, include-next: Add support for MSVC compiler.
5351         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5352         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5353         directory separator in #line directives.
5354         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5355         recognize also backslash as directory separator in #line directives.
5356
5357 2011-09-08  Jim Meyering  <meyering@redhat.com>
5358
5359         maint.mk: mark the post-release commit log with "maint: " prefix
5360         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5361         one-line commit-log summary.
5362
5363 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5364             Bruno Haible  <bruno@clisp.org>
5365
5366         Doc about crypt functions.
5367         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5368         systems.
5369         * doc/posix-functions/encrypt.texi: Likewise.
5370         * doc/posix-functions/setkey.texi: Likewise.
5371
5372 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5373
5374         * lib/gc.h: Fix copyright header.
5375
5376 2011-09-07  Bruno Haible  <bruno@clisp.org>
5377
5378         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5379         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5380         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5381
5382 2011-09-07  Bruno Haible  <bruno@clisp.org>
5383
5384         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5385         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5386         * lib/freopen.c: Likewise.
5387         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5388         * lib/lstat.c: Likewise.
5389         * lib/stat.c: Likewise.
5390         * lib/open.c: Use different syntax for include of <fcntl.h>.
5391         * lib/openat.c: Include fcntl.h again, explicitly.
5392
5393 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5394
5395         parse-datetime: document the newly accepted format
5396         * doc/parse-datetime.texi (Combined date and time of day items):
5397         New section.
5398
5399 2011-09-06  Bruno Haible  <bruno@clisp.org>
5400
5401         acl: Fix a test failure on newer Solaris 10 with ZFS.
5402         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5403         ENOSYS as no ACL.
5404         Reported by Jim Meyering.
5405
5406 2011-09-06  Bruno Haible  <bruno@clisp.org>
5407
5408         acl: Update for AIX >= 5.3 with NFS.
5409         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5410         ENOSYS as no ACL.
5411
5412         acl: Fix a test failure on AIX >= 5.3 with NFS.
5413         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5414         as no ACL.
5415
5416 2011-09-06  Bruno Haible  <bruno@clisp.org>
5417
5418         acl: Fix a test failure on IRIX 6.5 with NFS.
5419         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5420         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5421         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5422         * lib/copy-acl.c (qcopy_acl): Likewise.
5423
5424 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5425
5426         openat: port to AIX 7.1 with large files
5427         AIX 7.1 does a "#define openat open64at" if large files are in use,
5428         so we can't simply #undef openat.  Use the orig_openat trick (similar
5429         to orig_open in lib/open.c) to work around the problem.  Problem
5430         reported by Kevin Brott for GNU tar, in the thread containing
5431         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5432         * lib/openat.c (__need_system_fcntl_h): Define first.
5433         Include <fcntl.h> and <sys/types.h> before undefining.
5434         (orig_openat) [HAVE_OPENAT]: New inline function.
5435         (openat) [HAVE_OPENAT]: Do not undef.
5436         (rpl_openat): Use orig_openat, not openat.
5437
5438 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5439             Bruno Haible  <bruno@clisp.org>
5440
5441         acl: Avoid errors on NonStop Kernel.
5442         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5443         ENOTSUP errors.
5444
5445 2011-09-05  Bruno Haible  <bruno@clisp.org>
5446
5447         acl: Clean up Solaris code.
5448         * lib/acl-internal.h: Remove no-op #if.
5449         * lib/file-has-acl.c: Likewise.
5450         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5451         * lib/copy-acl.c (qcopy_acl): Likewise.
5452
5453 2011-09-05  Bruno Haible  <bruno@clisp.org>
5454
5455         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5456         binaries built on the original Solaris 10.
5457         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5458         trivial.
5459
5460 2011-09-05  Bruno Haible  <bruno@clisp.org>
5461
5462         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5463         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5464         10.
5465         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5466         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5467         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5468         instead of acl_get, facl_get, acl_set, facl_set.
5469
5470 2011-09-05  Bruno Haible  <bruno@clisp.org>
5471
5472         copy-file: Try unit tests on more file systems.
5473         * tests/test-copy-file-1.sh: New file.
5474         * tests/test-copy-file-2.sh: New file.
5475         * modules/copy-file-tests (Files): Add them.
5476         (Makefile.am): Add them to TESTS.
5477
5478         acl: Try unit tests on more file systems.
5479         * tests/test-file-has-acl-1.sh: New file.
5480         * tests/test-file-has-acl-2.sh: New file.
5481         * tests/test-set-mode-acl-1.sh: New file.
5482         * tests/test-set-mode-acl-2.sh: New file.
5483         * tests/test-copy-acl-1.sh: New file.
5484         * tests/test-copy-acl-2.sh: New file.
5485         * modules/acl-tests (Files): Add them.
5486         (Makefile.am): Add them to TESTS.
5487
5488 2011-09-04  Bruno Haible  <bruno@clisp.org>
5489
5490         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5491         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5492         10.
5493         (OLD_ALLOW, OLD_DENY): New macros.
5494         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5495         ACE_ACCESS_ALLOWED_ACE_TYPE.
5496         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5497         ACE_ACCESS_DENIED_ACE_TYPE.
5498         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5499         (NEW_ACE_EXECUTE): Fix value.
5500         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5501         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5502         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5503         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5504         NEW_ACE_SYNCHRONIZE): New macros.
5505         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5506         instead of acl_fromtext, acl_set, facl_set.
5507         Fixes a coreutils/tests/cp/perm failure.
5508
5509 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5510
5511         openat: test for fstatat (..., 0) bug
5512         Further testing with tar suggests that fstatat (..., 0)
5513         does not work in general, on AIX 7.1; see
5514         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5515         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5516         replacement fstatat (which is what older AIX releases were using
5517         anyway).
5518         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5519         use is now changed to orig_fstatat.  This was probably the right
5520         thing to do anyway.
5521         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5522         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5523         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5524         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5525         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5526         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5527         if the bug is found.
5528
5529         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5530         This tests for another fstatat bug on AIX 7.1:
5531         fstatat (AT_FDCWD, ..., 0) does not work.  See
5532         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5533         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5534         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5535         (rpl_fstatat): Adjust so that it works around either (or both)
5536         bugs if present.
5537         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5538
5539 2011-09-03  Karl Berry  <karl@gnu.org>
5540
5541         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5542         in index entries.
5543
5544 2011-09-02  Bruno Haible  <bruno@clisp.org>
5545
5546         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5547         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5548         values of AR, ARFLAGS, RANLIB.
5549         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5550
5551 2011-09-02  Bruno Haible  <bruno@clisp.org>
5552
5553         Find 'ar' program that fits with --host argument.
5554         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5555
5556 2011-09-02  Bruno Haible  <bruno@clisp.org>
5557
5558         tests: init.sh: Support any non-GNU diff.
5559         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5560         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5561         Solaris 8.
5562
5563 2011-09-02  Bruno Haible  <bruno@clisp.org>
5564
5565         tests: init.sh: work also with any non-GNU diff that supports -u
5566         * tests/init.sh: Relax check for diff -u support.
5567         Rather than checking for GNU diff via --version, simply check
5568         for support for -u itself.  Useful at least on OpenBSD 4.9,
5569         AIX 7.1, IRIX 6.5, and Solaris 10.
5570
5571 2011-09-01  Bruno Haible  <bruno@clisp.org>
5572
5573         strtoimax, strtoumax: Document problem on HP-UX 11.
5574         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5575         * doc/posix-functions/strtoumax.texi: Likewise.
5576
5577 2011-09-01  Bruno Haible  <bruno@clisp.org>
5578
5579         strtoumax: Avoid link error on OSF/1 with DTK cc.
5580         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5581         defined as a function.
5582         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5583         strtoumax is defined, not whether it is declared.
5584
5585 2011-09-01  Bruno Haible  <bruno@clisp.org>
5586
5587         strtoimax: Avoid link error on OSF/1 with DTK cc.
5588         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5589         defined as a function.
5590         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5591         strtoimax is defined, not whether it is declared.
5592
5593 2011-09-01  Bruno Haible  <bruno@clisp.org>
5594
5595         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5596         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5597         as a function.
5598         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5599         whether it is declared.
5600
5601 2011-09-01  Bruno Haible  <bruno@clisp.org>
5602
5603         imaxabs: Avoid link error on OSF/1 with DTK cc.
5604         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5605         as a function.
5606         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5607         whether it is declared.
5608
5609 2011-09-01  Bruno Haible  <bruno@clisp.org>
5610
5611         Tests for module 'strtoumax'.
5612         * modules/strtoumax-tests: New file.
5613         * tests/test-strtoumax.c: New file.
5614
5615         Tests for module 'strtoimax'.
5616         * modules/strtoimax-tests: New file.
5617         * tests/test-strtoimax.c: New file.
5618
5619         Tests for module 'imaxdiv'.
5620         * modules/imaxdiv-tests: New file.
5621         * tests/test-imaxdiv.c: New file.
5622
5623         Tests for module 'imaxabs'.
5624         * modules/imaxabs-tests: New file.
5625         * tests/test-imaxabs.c: New file.
5626
5627 2011-09-01  Bruno Haible  <bruno@clisp.org>
5628
5629         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5630         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5631         pthread_create.
5632
5633 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5634
5635         openat: work around AIX 7.1 fstatat issue
5636         This should fix the problem that was not properly fixed
5637         in the previous change, dated 2011-08-30.
5638         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5639         __need_system_stat_h defined.
5640         (orig_fstatat) [HAVE_FSTATAT]: New function.
5641         (rpl_fstatat): Go back to the old way of doing things,
5642         except call orig_fstatat instead of fstatat.
5643         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5644         Remove unnecessary check whether fstatat fills in st_size etc.
5645
5646 2011-09-01  Bruno Haible  <bruno@clisp.org>
5647
5648         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5649         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5650         just include the system's header.
5651
5652 2011-08-31  Jim Meyering  <meyering@redhat.com>
5653
5654         tests: avoid spurious assertion failure in test-float.c on ppc64
5655         * tests/test-float.c (test_long_double): Comment out an assertion,
5656         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5657         with gcc-4.4.4.
5658
5659         maint: indent with spaces, not TABs
5660         I need to get in the habit of running gnulib's "make check".
5661         Both of these would have been caught.
5662         * m4/largefile.m4: Indent with spaces, not TABs.
5663         * lib/parse-datetime.y (iso_8601_time): Likewise.
5664         Spotted by Pádraig Brady.
5665
5666         test-parse-datetime.c: accommodate a relatively strict gcc warning
5667         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5668         to avoid a warning from gcc's -Werror=missing-declarations.
5669         Insert a few spaces-before-funcall-parenthesis.
5670
5671 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5672
5673         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5674         The parser now accepts ISO 8601 date-time strings with "T" as the
5675         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5676         with a space between the date and time strings.  Now it also parses
5677         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5678         variants like "2004-02-29T16:21:42.333-07:00"
5679         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5680         of day representation using the 'T' separator character.
5681         * doc/parse-datetime.texi (General date syntax): replace use of
5682         deprecated --iso-8601 option with --rfc-3339 in example of date
5683         command output formats that can be parsed.
5684         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5685         lib/parse-datetime.y.
5686         (gmt_offset): New function.
5687         (main): Add additional test cases to validate ISO8601 extended
5688         date and time of day parsing.
5689
5690 2011-08-31  Bruno Haible  <bruno@clisp.org>
5691
5692         freopen: Documentation.
5693         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5694         name.
5695         Reported by Claudio Bley <claudio.bley@gmail.com>.
5696
5697 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5698
5699         freopen: Don't crash if the filename argument is NULL.
5700         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5701         NULL.
5702
5703 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5704
5705         openat: work around AIX 7.1 fstatat bug
5706         Problem reported by Kevin Brott for GNU tar, in the thread containing
5707         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5708         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5709         FSTATAT_ST_SIZE_ETC_BROKEN.
5710         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5711         rpl_fstatat.
5712         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5713         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5714         AC_CHECK_FUNCS_ONCE for fstatat.
5715         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5716         fchmodat, mkdirat, openat and unlinkat.
5717
5718 2011-08-30  Bruno Haible  <bruno@clisp.org>
5719
5720         Avoid endless recursions if config.h includes some header files.
5721         * lib/fopen.c (__need_FILE): Define already before including config.h.
5722         * lib/freopen.c (__need_FILE): Likewise.
5723         * lib/open.c (__need_system_fcntl_h): Likewise.
5724         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5725         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5726         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5727
5728 2011-08-25  Karl Berry  <karl@gnu.org>
5729
5730         * config/srclist.txt (ylwrap): new try.
5731         * build-aux/ylwrap: new file.
5732
5733 2011-08-23  Bruno Haible  <bruno@clisp.org>
5734
5735         tmpdir: Use a good default directory on native Windows.
5736         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5737         (P_tmpdir): Default to _P_tmpdir on native Windows.
5738         (path_search): On native Windows, try the value returned by GetTempPath
5739         before trying P_tmpdir.
5740         * modules/tmpdir (Depends-on): Add pathmax.
5741         Suggested by John Darrington <john@darrington.wattle.id.au>.
5742
5743 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5744
5745         doc: fix typo in README-release
5746         * top/README-release: Capitalize first word of a sentence.
5747
5748 2011-08-19  Jim Meyering  <meyering@redhat.com>
5749
5750         fts: do not exhaust memory when processing million-entry directories
5751         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5752         directory would require about 256*N bytes of memory.  Thus, it was
5753         easy to construct a directory too large to be processed by any of
5754         those tools.  With this change, fts' maximum memory utilization is
5755         now limited to around 30MB.
5756         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5757         (fts_read): When we've processed the final entry (i.e., when
5758         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5759         using the parent entry to read any remaining entries.  Dispatch
5760         depending on what fts_build returns:
5761         - NULL+stop, aka failure: stop
5762         - NULL otherwise: move up in the dir hierarchy
5763         - non-NULL: handle this new entry
5764         (fts_build): Declare and use new local, continue_readdir.
5765         Prepare to be called from fts_read, when the entries
5766         from a partially-read directory have just been exhausted.
5767         In that case, we'll skip the opendir and instead use the parent's
5768         fts_dirp and derive dir_fd from that.
5769         Finally, in the readdir loop, if we read max_entries entries,
5770         exit the loop ensuring *not* to call closedir.  This is required
5771         so that fts_dirp can be reused on a subsequent call.
5772         Prompted by Ben England's report of memory exhaustion in find
5773         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5774
5775         maint: fts: move decl of `dp' down into while loop; split a long line
5776         * lib/fts.c (fts_build): No semantic change.
5777
5778         fts: add/use new struct member, fts_dirp
5779         We are about to use this to manage any directory with
5780         too many entries to read all of them into memory at once.
5781         To do that, we'll need to save the DIR* pointer in each
5782         affected FTSENT struct.
5783         * lib/fts_.h: Include <dirent.h>.
5784         (struct FTSENT) [fts_dirp]: New member.
5785         * lib/fts.c (closedir_and_clear): Define.
5786         Use it in place of closedir so that we are sure to
5787         clear the new fts_dirp member when done with it.
5788         (fts_alloc): Initialize the new member.
5789         (fts_lfree): Free, if needed.
5790
5791         maint: fts: give __opendir2 a new parameter and rename
5792         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5793         than surreptitiously using sole caller's "dir_fd".
5794         (fts_opendir): Rename from __opendir2.
5795
5796         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5797         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5798
5799         maint: fts.c: correct off-by-one indentation
5800         * lib/fts.c (fts_build): Correct indentation, change style
5801         of a couple of block comments, and bracing style.
5802
5803         maint: fts.c: move __opendir2 #define "up" out of function body
5804         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5805
5806         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5807         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5808         out for a long time and besides was useful only on BSD systems.
5809
5810 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5811
5812         regex: port to Stratus OpenVOS
5813         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5814         define to empty, rather than attempting nonportable optimizations.
5815         Problem reported by Paul Green in:
5816         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5817         and fix suggested by Eric Blake in:
5818         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5819
5820 2011-08-17  Eric Blake  <eblake@redhat.com>
5821
5822         getcwd: fix test failures on mingw
5823         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5824         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5825         test if long directory cannot be created, and allow mingw errno.
5826
5827         getcwd-lgpl: fix m4 to match relaxed test for BSD
5828         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5829         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5830         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5831         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5832         signature problem.
5833
5834         getcwd: fix compilation on mingw64
5835         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5836         getcwd.
5837         Reported by Marc-André Lureau.
5838
5839         pipe2: silence compiler warning
5840         * lib/pipe2.c (pipe2): Hide label if it is not used.
5841
5842 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5843
5844         relocatable-prog: fix link error
5845         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5846         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5847         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5848         into modules/relocatable-lib without noticing that
5849         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5850         also needs to build relocatable.c.
5851
5852 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5853
5854         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5856         shell code: it contained a 'break' that was not in a loop.
5857         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5858         via a shell-language loop; this may have been true in old Autoconf
5859         versions, but it's not true in Autoconf 2.68.  I found this bug
5860         when testing coreutils git on Solaris 8, whose shell complains
5861         about the syntax error.
5862
5863 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5864
5865         * lib/base64.c: Fix comment to reference RFC 4648.
5866         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5867         <gvtulder@gmail.com>.
5868
5869 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5870
5871         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5872
5873         po/Makefile.in.in: fix make -q problem
5874         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5875         rule, since there's no file named 'check-macro-version' and its
5876         use as a file breaks make -q.
5877         (all): Don't depend on check-macro-version.
5878         (CHECK_MACRO_VERSION): New macro.
5879         (stamp-po): Use it.
5880
5881         configmake: fix make -q problem
5882         * modules/configmake (configmake.h): Update configmake.h's time stamp
5883         even if the file does not change.  Otherwise, 'make -q' fails.
5884         Problem reported by Simon Josefsson in
5885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5886
5887 2011-08-11  Jim Meyering  <meyering@redhat.com>
5888
5889         git-version-gen: correct the advice in a comment
5890         * build-aux/git-version-gen: Correct comment.
5891         Don't recommend to list .tarball-version in .gitignore.
5892
5893 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5894
5895         base64: fix off-by-one buffer size bug
5896         Problem and (trivial) fix reported by Gijs van Tulder in
5897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5898         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5899         * tests/test-base64.c (main): Catch the bug.
5900
5901 2011-08-10  Eric Blake  <eblake@redhat.com>
5902
5903         closein: correct comments
5904         * lib/closein.c (close_stdin): Improve comments.
5905
5906 2011-08-09  Bruno Haible  <bruno@clisp.org>
5907
5908         More tests for 'fseeko'.
5909         * tests/test-fseeko3.c: New file, from Eric Blake.
5910         * tests/test-fseeko3.sh: New file.
5911         * modules/fseeko-tests (Files): Add them.
5912         (TESTS): Add test-fseeko3.sh.
5913         (check_PROGRAMS): Add test-fseeko3.
5914
5915 2011-08-09  Eric Blake  <eblake@redhat.com>
5916
5917         fseeko: remove unneeded hack
5918         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5919
5920         fseeko: fix bug on glibc
5921         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5922         Reported by John W. Eaton.
5923
5924 2011-08-08  Bruno Haible  <bruno@clisp.org>
5925
5926         unictype/base: Fix interoperability with preinstalled libunistring.
5927         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5928         Reported by Simon Josefsson.
5929
5930 2011-08-08  Bruno Haible  <bruno@clisp.org>
5931
5932         iswblank: Detect declaration correctly.
5933         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5934         AC_CHECK_DECLS invocation.
5935
5936 2011-08-08  Bruno Haible  <bruno@clisp.org>
5937
5938         tcgetsid: Detect declaration correctly.
5939         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5940         AC_CHECK_DECLS invocation.
5941         Reported by Simon Josefsson.
5942
5943 2011-08-08  Eric Blake  <eblake@redhat.com>
5944
5945         largefile: fix typo that regressed large file support
5946         * modules/largefile (configure.ac-early): Fix section name.
5947
5948 2011-08-06  Karl Berry  <karl@gnu.org>
5949
5950         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5951         a separate module.
5952
5953 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5954
5955         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5956         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5957         get prototype for free.
5958
5959 2011-08-04  Bruno Haible  <bruno@clisp.org>
5960
5961         Tests for module 'pathmax'.
5962         * modules/pathmax-tests: New file.
5963         * tests/test-pathmax.c: New file.
5964
5965         canonicalize-lgpl: Support larger filenames on the Hurd.
5966         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5967         Reported by Paul Eggert.
5968
5969         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5970         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5971         * lib/chdir-long.h: Include pathmax.h.
5972         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5973         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5974         (PATH_MAX): Remove code that is done by pathmax.h.
5975         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5976         * lib/tmpfile.c: Add a comment.
5977         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5978         * modules/chdir-long (Depends-on): Add pathmax.
5979         * modules/getcwd (Depends-on): Add pathmax.
5980         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5981         is not defined.
5982         * doc/posix-headers/limits.texi: Mention the pathmax module.
5983         * NEWS: Mention the change.
5984
5985 2011-08-02  Bruno Haible  <bruno@clisp.org>
5986
5987         pthread_sigmask: Actually use results of gl_THREADLIB.
5988         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5989         gl_THREADLIB, not gl_[]THREADLIB.
5990         Reported by Eric Blake.
5991
5992 2011-08-02  Jim Meyering  <meyering@redhat.com>
5993
5994         maint.mk: relax the default _gl_TS_function_match regexp
5995         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5996         space between function name and "(" in an "extern" declaration.
5997         That would fail to match a decl with no space there: extern void foo();
5998
5999 2011-07-31  Iain Nicol  <iain@thenicols.net>
6000
6001         git-version-gen: document that EXTRA_DIST must include .version
6002         * build-aux/git-version-gen: In the how-to-use comment, document
6003         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6004         will fail when run from an unpacked distribution tarball.
6005
6006 2011-08-01  Bruno Haible  <bruno@clisp.org>
6007
6008         wctype-h: Fix last change.
6009         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6010         REPLACE_TOWLOWER to 0.
6011         Reported by Sam Steingold <sds@gnu.org>.
6012
6013 2011-07-31  Bruno Haible  <bruno@clisp.org>
6014
6015         frexpl: Update autoconf test.
6016         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6017         according to changes of 2011-06-20.
6018
6019 2011-07-31  Bruno Haible  <bruno@clisp.org>
6020
6021         sys_utsname: Add support for Minix.
6022         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6023         <sys/utsname.h>.
6024         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6025         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6026
6027 2011-07-31  Bruno Haible  <bruno@clisp.org>
6028
6029         strings: Add support for Minix.
6030         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6031         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6032         * doc/posix-headers/strings.texi: Document the Minix problem.
6033
6034 2011-07-31  Bruno Haible  <bruno@clisp.org>
6035
6036         wctype-h: Add support for Minix.
6037         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6038         REPLACE_TOWLOWER.
6039         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6040         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6041         REPLACE_ISWCNTRL.
6042
6043 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6044
6045         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6046         This is a performance improvement for 64-bit hosts: it causes the
6047         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6048
6049 2011-07-31  Bruno Haible  <bruno@clisp.org>
6050
6051         stdioext: Add support for Minix.
6052         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6053         * lib/fpurge.c (fpurge): Likewise.
6054         * lib/freadahead.c (freadahead): Likewise.
6055         * lib/freadable.c (freadable): Likewise.
6056         * lib/freading.c (freading): Likewise.
6057         * lib/freadptr.c (freadptr): Likewise.
6058         * lib/freadseek.c (freadptrinc): Likewise.
6059         * lib/fseeko.c (rpl_fseeko): Likewise.
6060         * lib/fseterr.c (fseterr): Likewise.
6061         * lib/fwritable.c (fwritable): Likewise.
6062         * lib/fwriting.c (fwriting): Likewise.
6063         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6064         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6065
6066 2011-07-31  Bruno Haible  <bruno@clisp.org>
6067
6068         errno: Port to Minix.
6069         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6070         ECONNABORTED are defined.
6071         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6072         GNULIB_defined_ECONNABORTED): New macros.
6073         * lib/strerror-override.h (strerror_override): Test also
6074         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6075         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6076         ECONNABORTED.
6077         * doc/posix-headers/errno.texi: Mention the Minix problem.
6078
6079 2011-07-31  Bruno Haible  <bruno@clisp.org>
6080
6081         Work around declaration collisions on Minix.
6082         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6083         defined, set REPLACE_MBSINIT.
6084         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6085         defined, set REPLACE_MBRTOWC.
6086         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6087         set REPLACE_MBRLEN.
6088         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6089         defined, set REPLACE_MBSRTOWCS.
6090         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6091         defined, set REPLACE_WCRTOMB.
6092         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6093         defined, set REPLACE_WCSRTOMBS.
6094
6095 2011-07-31  Bruno Haible  <bruno@clisp.org>
6096
6097         Add support for Minix with ACK compiler.
6098         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6099         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6100         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6101
6102 2011-07-31  Bruno Haible  <bruno@clisp.org>
6103
6104         Documentation about Minix.
6105         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6106         * doc/glibc-headers/*.texi: Likewise.
6107         * doc/posix-functions/*.texi: Likewise.
6108         * doc/glibc-functions/*.texi: Likewise.
6109
6110 2011-07-31  Bruno Haible  <bruno@clisp.org>
6111
6112         snippet/warn-on-use: Fix indentation.
6113         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6114
6115 2011-07-25  Jim Meyering  <meyering@redhat.com>
6116
6117         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6118         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6119         commands.
6120
6121 2011-07-27  Jim Meyering  <meyering@redhat.com>
6122
6123         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6124         * top/maint.mk (gl_extract_significant_defines_): Now that
6125         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6126         gnulib/lib/signal.in.h, and now that we recommend to
6127         define-if-undefined those two symbols in application code,
6128         we must filter them out of the "significant" list.
6129         This avoids a "make syntax-check" failure in coreutils.
6130
6131 2011-07-26  Eric Blake  <eblake@redhat.com>
6132
6133         warnings: add comments about previous patch
6134         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6135         * m4/include_next.m4: Likewise.
6136         * m4/warn-on-use.m4: Likewise.
6137         * m4/warnings.m4: Likewise, and simplify use.
6138         Suggested by Stefano Lattarini.
6139
6140         include-next, warnings: support older autoconf
6141         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6142         AS_VAR_PUSHDEF in a way that works with older autoconf.
6143         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6144         Reported by Daniel P. Berrange.
6145
6146 2011-07-25  Bruno Haible  <bruno@clisp.org>
6147
6148         fseek, ftell: Fix doc.
6149         * doc/posix-functions/fseek.texi: Reword statement about
6150         AC_SYS_LARGEFILE.
6151         * doc/posix-functions/ftell.texi: Likewise.
6152
6153 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6154             Bruno Haible  <bruno@clisp.org>
6155
6156         Add dependencies to the 'largefile' module.
6157         * modules/fopen (Depends-on): Add 'largefile'.
6158         * modules/freopen (Depends-on): Likewise.
6159         * modules/fseeko (Depends-on): Likewise.
6160         * modules/ftello (Depends-on): Likewise.
6161         * modules/glob (Depends-on): Likewise.
6162         * modules/lseek (Depends-on): Likewise.
6163         * modules/lstat (Depends-on): Likewise.
6164         * modules/mkostemp (Depends-on): Likewise.
6165         * modules/mkostemps (Depends-on): Likewise.
6166         * modules/mkstemp (Depends-on): Likewise.
6167         * modules/mkstemps (Depends-on): Likewise.
6168         * modules/open (Depends-on): Likewise.
6169         * modules/openat (Depends-on): Likewise.
6170         * modules/pread (Depends-on): Likewise.
6171         * modules/pwrite (Depends-on): Likewise.
6172         * modules/scandir (Depends-on): Likewise.
6173         * modules/stat (Depends-on): Likewise.
6174         * modules/tmpfile (Depends-on): Likewise.
6175         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6176         since the containing module now depends on the largefile module.
6177         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6178         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6179         off_t is fixed by gnulib.
6180         * doc/posix-functions/freopen.texi: Likewise.
6181         * doc/posix-functions/fseeko.texi: Likewise.
6182         * doc/posix-functions/fstatat.texi: Likewise.
6183         * doc/posix-functions/ftello.texi: Likewise.
6184         * doc/posix-functions/glob.texi: Likewise.
6185         * doc/posix-functions/lseek.texi: Likewise.
6186         * doc/posix-functions/lstat.texi: Likewise.
6187         * doc/posix-functions/mkstemp.texi: Likewise.
6188         * doc/posix-functions/open.texi: Likewise.
6189         * doc/posix-functions/openat.texi: Likewise.
6190         * doc/posix-functions/pread.texi: Likewise.
6191         * doc/posix-functions/pwrite.texi: Likewise.
6192         * doc/posix-functions/scandir.texi: Likewise.
6193         * doc/posix-functions/stat.texi: Likewise.
6194         * doc/posix-functions/tmpfile.texi: Likewise.
6195         * doc/glibc-functions/mkostemp.texi: Likewise.
6196         * doc/glibc-functions/mkostemps.texi: Likewise.
6197         * doc/glibc-functions/mkstemps.texi: Likewise.
6198
6199 2011-07-25  Bruno Haible  <bruno@clisp.org>
6200
6201         fcntl: Move AC_LIBOBJ invocation to module description.
6202         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6203         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6204
6205         fcntl: Remove call-in from fchdir.m4.
6206         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6208
6209         dup3: Remove potential call-in from fchdir.m4.
6210         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6211         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6212
6213         dup2: Move AC_LIBOBJ invocation to module description.
6214         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6215         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6216         Don't invoke AC_LIBOBJ.
6217         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6218
6219         dup2: Remove call-in from fchdir.m4.
6220         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6222
6223         fclose: Move AC_LIBOBJ invocation to module description.
6224         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6225         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6226         to 1.
6227         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6228
6229         fclose: Remove call-in from close.m4.
6230         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6231         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6232
6233         close: Move AC_LIBOBJ invocation to module description.
6234         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6235         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6236         1.
6237         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6238
6239         close: Remove call-in from fchdir.m4.
6240         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6242
6243         open: Move AC_LIBOBJ invocation to module description.
6244         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6245         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6246         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6247
6248         open: Remove call-in from fchdir.m4.
6249         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6251
6252         fchdir: Start to remove gl_REPLACE_* idiom.
6253         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6254         (gl_FUNC_FCHDIR): Invoke it.
6255
6256 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6257
6258         * lib/ftell.c (ftell): Comment out cast.
6259
6260         close: use gl_REPLACE_FCLOSE only if defined
6261         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6262         is defined.  The close module doesn't depend on the fclose module
6263         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6265         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6266
6267 2011-07-24  Jim Meyering  <meyering@redhat.com>
6268
6269         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6270         * tests/test-select.h (test_function): Declare as "static".
6271
6272 2011-07-24  Bruno Haible  <bruno@clisp.org>
6273
6274         doc: Mention the effects of AC_SYS_LARGEFILE.
6275         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6276         on this function.
6277         * doc/posix-functions/aio_error.texi: Likewise.
6278         * doc/posix-functions/aio_fsync.texi: Likewise.
6279         * doc/posix-functions/aio_read.texi: Likewise.
6280         * doc/posix-functions/aio_return.texi: Likewise.
6281         * doc/posix-functions/aio_suspend.texi: Likewise.
6282         * doc/posix-functions/aio_write.texi: Likewise.
6283         * doc/posix-functions/fgetpos.texi: Likewise.
6284         * doc/posix-functions/fopen.texi: Likewise.
6285         * doc/posix-functions/freopen.texi: Likewise.
6286         * doc/posix-functions/fsetpos.texi: Likewise.
6287         * doc/posix-functions/fstatvfs.texi: Likewise.
6288         * doc/posix-functions/ftruncate.texi: Likewise.
6289         * doc/posix-functions/ftw.texi: Likewise.
6290         * doc/posix-functions/getrlimit.texi: Likewise.
6291         * doc/posix-functions/glob.texi: Likewise.
6292         * doc/posix-functions/lio_listio.texi: Likewise.
6293         * doc/posix-functions/lockf.texi: Likewise.
6294         * doc/posix-functions/mkstemp.texi: Likewise.
6295         * doc/posix-functions/mmap.texi: Likewise.
6296         * doc/posix-functions/nftw.texi: Likewise.
6297         * doc/posix-functions/openat.texi: Likewise.
6298         * doc/posix-functions/opendir.texi: Likewise.
6299         * doc/posix-functions/posix_fadvise.texi: Likewise.
6300         * doc/posix-functions/posix_fallocate.texi: Likewise.
6301         * doc/posix-functions/pread.texi: Likewise.
6302         * doc/posix-functions/pwrite.texi: Likewise.
6303         * doc/posix-functions/readdir.texi: Likewise.
6304         * doc/posix-functions/readdir_r.texi: Likewise.
6305         * doc/posix-functions/rewinddir.texi: Likewise.
6306         * doc/posix-functions/scandir.texi: Likewise.
6307         * doc/posix-functions/seekdir.texi: Likewise.
6308         * doc/posix-functions/setrlimit.texi: Likewise.
6309         * doc/posix-functions/statvfs.texi: Likewise.
6310         * doc/posix-functions/telldir.texi: Likewise.
6311         * doc/posix-functions/tmpfile.texi: Likewise.
6312         * doc/posix-functions/truncate.texi: Likewise.
6313         * doc/glibc-functions/fallocate.texi: Likewise.
6314         * doc/glibc-functions/fstatfs.texi: Likewise.
6315         * doc/glibc-functions/fts_children.texi: Likewise.
6316         * doc/glibc-functions/fts_read.texi: Likewise.
6317         * doc/glibc-functions/getdirentries.texi: Likewise.
6318         * doc/glibc-functions/mkostemp.texi: Likewise.
6319         * doc/glibc-functions/mkostemps.texi: Likewise.
6320         * doc/glibc-functions/mkstemps.texi: Likewise.
6321         * doc/glibc-functions/preadv.texi: Likewise.
6322         * doc/glibc-functions/pwritev.texi: Likewise.
6323         * doc/glibc-functions/sendfile.texi: Likewise.
6324         * doc/glibc-functions/statfs.texi: Likewise.
6325
6326 2011-07-24  Bruno Haible  <bruno@clisp.org>
6327
6328         doc: Fix typo.
6329         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6330
6331 2011-07-24  Bruno Haible  <bruno@clisp.org>
6332
6333         doc: Mention fsusage.
6334         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6335
6336 2011-07-24  Bruno Haible  <bruno@clisp.org>
6337
6338         doc: Mention new glibc headers and functions.
6339         * doc/glibc-headers/gshadow.texi: New file.
6340         * doc/glibc-functions/endsgent.texi: New file.
6341         * doc/glibc-functions/fgetsgent.texi: New file.
6342         * doc/glibc-functions/fgetsgent_r.texi: New file.
6343         * doc/glibc-functions/getsgent.texi: New file.
6344         * doc/glibc-functions/getsgent_r.texi: New file.
6345         * doc/glibc-functions/getsgnam.texi: New file.
6346         * doc/glibc-functions/getsgnam_r.texi: New file.
6347         * doc/glibc-functions/putsgent.texi: New file.
6348         * doc/glibc-functions/setsgent.texi: New file.
6349         * doc/glibc-functions/sgetsgent.texi: New file.
6350         * doc/glibc-functions/sgetsgent_r.texi: New file.
6351         * doc/glibc-functions/malloc_info.texi: New file.
6352         * doc/glibc-functions/preadv.texi: New file.
6353         * doc/glibc-functions/pwritev.texi: New file.
6354         * doc/glibc-functions/register_printf_modifier.texi: New file.
6355         * doc/glibc-functions/register_printf_specifier.texi: New file.
6356         * doc/glibc-functions/register_printf_type.texi: New file.
6357         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6358         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6359         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6360         * doc/glibc-functions/pthread_getname_np.texi: New file.
6361         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6362         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6363         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6364         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6365         * doc/glibc-functions/pthread_setname_np.texi: New file.
6366         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6367         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6368         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6369         * doc/glibc-functions/qsort_r.texi: New file.
6370         * doc/glibc-functions/quick_exit.texi: New file.
6371         * doc/glibc-functions/syncfs.texi: New file.
6372         * doc/gnulib.texi: Include them.
6373         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6374         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6375         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6376         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6377         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6378         * doc/glibc-functions/execvpe.texi: Likewise.
6379
6380 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6381
6382         ftell: don't include <unistd.h>
6383         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6384         guaranteed to define off_t, and the ftell module depends on the
6385         stdio module.
6386
6387         ftell: do not assume wraparound signed arithmetic
6388         * lib/ftell.c: Include <limits.h>.
6389         (ftell): Don't assume wraparound signed arithmetic.
6390
6391 2011-07-24  Bruno Haible  <bruno@clisp.org>
6392
6393         close: No longer depend on module 'fclose'.
6394         * modules/close (Depends-on): Remove fclose.
6395         * NEWS: Mention the change.
6396         Suggested by Sam Steingold <sds@gnu.org>.
6397
6398 2011-07-24  Bruno Haible  <bruno@clisp.org>
6399
6400         fsusage: Enable large volume support on AIX >= 5.2.
6401         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6402         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6403         instead of STAT_STATVFS.
6404         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6405
6406         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6407         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6408         f_blocks field only on MacOS X.
6409
6410         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6411         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6412         * modules/fsusage (Depends-on): Add largefile.
6413
6414 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6415
6416         * README: Modernize discussion of signed integers.
6417         Assuming overflow wraparound is no longer safe.
6418         Mention ones' complement and signed magnitude.
6419
6420 2011-07-22  Bruno Haible  <bruno@clisp.org>
6421
6422         select tests, pselect tests: Refactor.
6423         * tests/test-select.h: New file, extracted from tests/test-select.c.
6424         (select_fn): New type.
6425         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6426         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6427         test_pipe): Add my_select argument.
6428         (test_function): Renamed from main. Add my_select argument.
6429         * tests/test-select.c: Move most code to tests/test-select.h. Include
6430         test-select.h.
6431         * modules/select-tests (Files): Add tests/test-select.h.
6432         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6433         (my_select, main): New functions.
6434         * modules/pselect-tests (Files): Add tests/test-select.h,
6435         tests/macros.h, tests/signature.h.
6436         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6437         (configure.ac): Check for <sys/wait.h>.
6438
6439 2011-07-22  Bruno Haible  <bruno@clisp.org>
6440
6441         sys_select tests: Check the signature of FD_*.
6442         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6443         signature tests from here...
6444         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6445         here.
6446         * modules/sys_select-tests (Files): Add tests/signature.h.
6447
6448 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6449
6450         largefile: new module, replacing large-inode
6451         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6452         * MODULES.html.sh: Add largefile, remove large-inode.
6453         * modules/largefile, m4/largefile.m4: New files.
6454         * modules/large-inode, m4/large-inode.m4: Remove.
6455
6456         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6457         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6458         implementations that use only 32 bits to count blocks.
6459         On typical hosts with 1024-byte blocks, this fails with file
6460         systems as small as 4 TiB.  Problem reported by Herb Wartens
6461         <http://debbugs.gnu.org/9140> and this should also fix a similar
6462         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6463
6464         large-inode: New module
6465         * MODULES.html.sh: Add it.
6466         * modules/large-inode, m4/large-inode.m4: New files.
6467
6468         extensions: Enable extensions on MacOS X 10.5 and later.
6469         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6470
6471 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6472
6473         file-has-acl: use acl_extended_file_nofollow if available
6474         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6475         (acl_extended_file): New macro.
6476         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6477         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6478
6479 2011-07-21  Bruno Haible  <bruno@clisp.org>
6480
6481         Declare system functions in a way that works with C++.
6482         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6483         declare fdopendir as extern "C".
6484         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6485         declare frexpl as extern "C".
6486         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6487         declare gai_strerror as extern "C".
6488         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6489         programs, declare gai_strerror as extern "C".
6490         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6491         declare getlogin_r as extern "C".
6492         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6493         as extern "C".
6494         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6495         declare ldexpl as extern "C".
6496         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6497         as extern "C".
6498         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6499         program, declare getmntinfo as extern "C".
6500         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6501         stpncpy as extern "C".
6502         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6503         program, declare __xpg_strerror_r as extern "C".
6504         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6505         strndup as extern "C".
6506         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6507         declare memset and bzero as extern "C".
6508         Reported by Sam Steingold <sds@gnu.org>.
6509
6510 2011-07-12  Jim Meyering  <meyering@redhat.com>
6511
6512         maint.mk: prohibit inclusion of "verify.h" without use
6513         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6514
6515 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6516
6517         timer-time: A new module to check for timer_settime()
6518         * m4/timer_time.m4: Check for the posix function.
6519         * modules/timer-time: Add the new module.
6520         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6521         Mention it.
6522
6523 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6524             Bruno Haible  <bruno@clisp.org>
6525
6526         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6527         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6528         not defined, assume POSIX threads and look for pthread_sigmask in
6529         $LIBS, without changing $CPPFLAGS.
6530
6531 2011-07-19  Bruno Haible  <bruno@clisp.org>
6532
6533         strstr: Update cross-compilation guess.
6534         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6535         CPUs, guess no, in view of glibc
6536         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6537         Suggested by Eric Blake. Reported by Reuben Thomas.
6538
6539 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6540
6541         getopt-gnu: suppress core dumps from detection code
6542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6543         to suppress core dumps that may well occur on glibc systems.
6544         * modules/getopt-gnu: Depend on nocrash.
6545
6546 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6547
6548         pthread_sigmask: ensure usleep is declared
6549         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6550         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6551
6552 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6553
6554         doc: Document NonStop portability issues.
6555         * doc/posix-functions/sigaction.texi (sigaction):
6556         * doc/posix-headers/signal.texi (signal.h):
6557         Document NonStop.  See Joachim Schmitz in
6558         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6559
6560 2011-07-15  Bruno Haible  <bruno@clisp.org>
6561
6562         ffsl, ffsll: Avoid unportable behaviour.
6563         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6564
6565 2011-07-15  Bruno Haible  <bruno@clisp.org>
6566
6567         ffs: More tests.
6568         * tests/test-ffs.c (NBITS): New macro.
6569         (main): Add more tests.
6570         * tests/test-ffsl.c (NBITS): New macro.
6571         (main): Add more tests.
6572         * tests/test-ffsll.c (NBITS): New macro.
6573         (main): Add more tests.
6574
6575 2011-07-15  Eric Blake  <eblake@redhat.com>
6576
6577         ffsl, ffsll: new modules
6578         * modules/ffsl: New file.
6579         * modules/ffsll: Likewise.
6580         * m4/ffsl.m4: Likewise.
6581         * m4/ffsll.m4: Likewise.
6582         * lib/ffsl.c: Likewise.
6583         * lib/ffsl.h: Likewise.
6584         * lib/ffsll.c: Likewise.
6585         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6586         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6587         * modules/string (Makefile.am): Substitute witnesses.
6588         * lib/strings.in.h (ffsl, ffsll): Declare.
6589         * modules/ffsl-tests: New test file.
6590         * modules/ffsll-tests: Likewise.
6591         * tests/test-ffsl.c: Likewise.
6592         * tests/test-ffsll.c: Likewise.
6593         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6594         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6595         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6596
6597         ffs: fix m4 prerequisite
6598         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6599
6600         ffs: avoid undefined behavior
6601         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6602         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6603         Reported by Bruno Haible.
6604
6605 2011-07-12  Bruno Haible  <bruno@clisp.org>
6606
6607         pthread_sigmask: Rely on module 'threadlib'.
6608         * modules/pthread_sigmask (Depends-on): Add threadlib.
6609         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6610         is defined.
6611
6612 2011-07-12  Bruno Haible  <bruno@clisp.org>
6613
6614         regex: Depend on module 'strcase'.
6615         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6616
6617 2011-07-12  Jim Meyering  <meyering@redhat.com>
6618
6619         warn-on-use: fix typo in file name
6620         * modules/snippet/warn-on-use (Files): Correct file name:
6621         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6622
6623 2011-07-12  Bruno Haible  <bruno@clisp.org>
6624
6625         strings: Document module.
6626         * doc/posix-headers/strings.texi: Mention module 'strings'.
6627
6628 2011-07-12  Bruno Haible  <bruno@clisp.org>
6629
6630         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6631         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6632         (Files, Makefile.am): Update.
6633         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6634         * modules/stdlib (Depends-on): Update.
6635
6636 2011-07-12  Bruno Haible  <bruno@clisp.org>
6637
6638         * NEWS: Mention the changes.
6639
6640         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6641         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6642         (Files, Makefile.am): Update.
6643         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6644         * modules/arpa_inet (Depends-on): Update.
6645         * modules/ctype (Depends-on): Update.
6646         * modules/dirent (Depends-on): Update.
6647         * modules/fcntl-h (Depends-on): Update.
6648         * modules/glob (Depends-on): Update.
6649         * modules/iconv-h (Depends-on): Update.
6650         * modules/inttypes-incomplete (Depends-on): Update.
6651         * modules/langinfo (Depends-on): Update.
6652         * modules/locale (Depends-on): Update.
6653         * modules/math (Depends-on): Update.
6654         * modules/netdb (Depends-on): Update.
6655         * modules/poll-h (Depends-on): Update.
6656         * modules/pty (Depends-on): Update.
6657         * modules/search (Depends-on): Update.
6658         * modules/signal (Depends-on): Update.
6659         * modules/spawn (Depends-on): Update.
6660         * modules/stdio (Depends-on): Update.
6661         * modules/stdlib (Depends-on): Update.
6662         * modules/string (Depends-on): Update.
6663         * modules/strings (Depends-on): Update.
6664         * modules/sys_file (Depends-on): Update.
6665         * modules/sys_ioctl (Depends-on): Update.
6666         * modules/sys_select (Depends-on): Update.
6667         * modules/sys_socket (Depends-on): Update.
6668         * modules/sys_stat (Depends-on): Update.
6669         * modules/sys_time (Depends-on): Update.
6670         * modules/sys_times (Depends-on): Update.
6671         * modules/sys_utsname (Depends-on): Update.
6672         * modules/sys_wait (Depends-on): Update.
6673         * modules/termios (Depends-on): Update.
6674         * modules/time (Depends-on): Update.
6675         * modules/unistd (Depends-on): Update.
6676         * modules/wchar (Depends-on): Update.
6677         * modules/wctype-h (Depends-on): Update.
6678         * MODULES.html.sh (Support for building libraries and executables):
6679         Update.
6680
6681         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6682         * modules/snippet/unused-parameter: Renamed from
6683         modules/unused-parameter.
6684         (Files, Makefile.am): Update.
6685         * build-aux/snippet/unused-parameter.h: Renamed from
6686         build-aux/unused-parameter.h.
6687         * modules/selinux-h (Depends-on): Update.
6688         * modules/unistr/base (Depends-on): Update.
6689         * MODULES.html.sh (Core language properties): Update.
6690
6691         Rename module 'link-warning' to 'snippet/link-warning'.
6692         * modules/snippet/link-warning: Renamed from modules/link-warning.
6693         (Files, Makefile.am): Update.
6694         * build-aux/snippet/link-warning.h: Renamed from
6695         build-aux/link-warning.h.
6696         * MODULES.html.sh (Support for building libraries and executables):
6697         Update.
6698
6699         Rename module 'c++defs' to 'snippet/c++defs'.
6700         * modules/snippet/c++defs: Renamed from modules/c++defs.
6701         (Files, Makefile.am): Update.
6702         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6703         * modules/arpa_inet (Depends-on): Update.
6704         * modules/ctype (Depends-on): Update.
6705         * modules/dirent (Depends-on): Update.
6706         * modules/fcntl-h (Depends-on): Update.
6707         * modules/glob (Depends-on): Update.
6708         * modules/iconv-h (Depends-on): Update.
6709         * modules/langinfo (Depends-on): Update.
6710         * modules/locale (Depends-on): Update.
6711         * modules/math (Depends-on): Update.
6712         * modules/netdb (Depends-on): Update.
6713         * modules/poll-h (Depends-on): Update.
6714         * modules/pty (Depends-on): Update.
6715         * modules/search (Depends-on): Update.
6716         * modules/signal (Depends-on): Update.
6717         * modules/spawn (Depends-on): Update.
6718         * modules/stdio (Depends-on): Update.
6719         * modules/stdlib (Depends-on): Update.
6720         * modules/string (Depends-on): Update.
6721         * modules/strings (Depends-on): Update.
6722         * modules/sys_ioctl (Depends-on): Update.
6723         * modules/sys_select (Depends-on): Update.
6724         * modules/sys_socket (Depends-on): Update.
6725         * modules/sys_stat (Depends-on): Update.
6726         * modules/sys_time (Depends-on): Update.
6727         * modules/sys_wait (Depends-on): Update.
6728         * modules/termios (Depends-on): Update.
6729         * modules/time (Depends-on): Update.
6730         * modules/unistd (Depends-on): Update.
6731         * modules/wchar (Depends-on): Update.
6732         * modules/wctype-h (Depends-on): Update.
6733
6734         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6735         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6736         (Files, Makefile.am): Update.
6737         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6738         * modules/argv-iter (Depends-on): Update.
6739         * modules/arpa_inet (Depends-on): Update.
6740         * modules/dirent (Depends-on): Update.
6741         * modules/fcntl-h (Depends-on): Update.
6742         * modules/fnmatch (Depends-on): Update.
6743         * modules/getopt-posix (Depends-on): Update.
6744         * modules/glob (Depends-on): Update.
6745         * modules/iconv-h (Depends-on): Update.
6746         * modules/inttypes-incomplete (Depends-on): Update.
6747         * modules/locale (Depends-on): Update.
6748         * modules/math (Depends-on): Update.
6749         * modules/netdb (Depends-on): Update.
6750         * modules/search (Depends-on): Update.
6751         * modules/signal (Depends-on): Update.
6752         * modules/spawn (Depends-on): Update.
6753         * modules/stdio (Depends-on): Update.
6754         * modules/stdlib (Depends-on): Update.
6755         * modules/string (Depends-on): Update.
6756         * modules/strings (Depends-on): Update.
6757         * modules/sys_socket (Depends-on): Update.
6758         * modules/sys_stat (Depends-on): Update.
6759         * modules/sys_time (Depends-on): Update.
6760         * modules/sys_times (Depends-on): Update.
6761         * modules/sys_utsname (Depends-on): Update.
6762         * modules/time (Depends-on): Update.
6763         * modules/unistd (Depends-on): Update.
6764         * modules/wchar (Depends-on): Update.
6765         * MODULES.html.sh (Support for building libraries and executables):
6766         Update.
6767
6768 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6769
6770         Improvements on _Noreturn and related modules.
6771
6772         modules/_Exit-tests: test _Noreturn too
6773         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6774         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6775         (main): Use them.
6776
6777         stdnoreturn, stdnoreturn-tests: remove modules
6778         They're not needed here and a bit premature for use elsewhere.  See
6779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6780         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6781         * tests/test-stdnoreturn.c: Remove files.
6782         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6783         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6784         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6785         and using noreturn.
6786         * modules/openat, modules/sigpipe-die, modules/xalloc:
6787         * modules/xmemdup0, modules/xstrtol:
6788         Remove dependency on stdnoreturn.
6789
6790         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6791         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6792         Reparenthesize to avoid GCC warning.
6793         Support Microsoft's syntax.
6794         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6795
6796         _Noreturn-tests: remove module
6797         * modules/_Noreturn-tests: Remove.
6798         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6799         * tests/test-_Noreturn.c: Remove.
6800         * tests/test-stdnoreturn.c: Merge from the old
6801         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6802
6803 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6804
6805         _Noreturn, stdnoreturn, and related modules.
6806
6807         * top/maint.mk: Adjust to new noreturn support.
6808         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6809         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6810
6811         xalloc: use stdnoreturn.h
6812         * lib/xalloc.h: Include <stdnoreturn.h>.
6813         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6814         * modules/xalloc (Depends-on): Add stdnoreturn.
6815
6816         xstrtol: use stdnoreturn.h
6817         * lib/xstrtol.h: Include <stdnoreturn.h>.
6818         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6819         * modules/xstrtol (Depends-on): Add stdnoreturn.
6820
6821         xmemdup0: use stdnoreturn.h
6822         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6823         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6824         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6825
6826         sigpipe-die: use stdnoreturn.h
6827         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6828         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6829         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6830
6831         openat: use stdnoreturn.h
6832         * lib/openat.h: Include <stdnoreturn.h>.
6833         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6834         * modules/openat (Depends-on): Add stdnoreturn.
6835
6836         * lib/openat-die.c (openat_save_fail): Modernize comment.
6837
6838         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6839
6840         * lib/glthread/thread.h: Modernize comment.
6841
6842         obstack: use _Noreturn
6843         * lib/obstack.c (__attribute__): Remove macro.
6844         (print_and_abort): Use _Noreturn.
6845
6846         c-stack: use _Noreturn
6847         * lib/c-stack.c (die, overflow_handler, segv_handler):
6848         Use _Noreturn rather than __attribute__((noreturn)).
6849
6850         argmatch-tests, exclude_tests: use _Noreturn
6851         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6852         Remove.
6853         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6854
6855         stdlib: use _Noreturn
6856         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6857         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6858         * modules/stdlib (Depends-on): Add _Noreturn.
6859         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6860
6861         stdnoreturn-tests: new module
6862         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6863
6864         stdnoreturn: new module
6865         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6866         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6867
6868         _Noreturn-tests: new module
6869         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6870
6871         _Noreturn: new module
6872         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6873         New section, mentioning it.
6874         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6875
6876         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6877
6878 2011-07-11  Eric Blake  <eblake@redhat.com>
6879
6880         ffs: new module
6881         * modules/ffs: New file.
6882         * m4/ffs.m4: Likewise.
6883         * lib/ffs.c: Likewise.
6884         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6885         * modules/strings (Makefile.am): Substitute witness.
6886         (Depends-on): Add c++defs.
6887         * lib/strings.in.h (ffs): Declare.
6888         * modules/ffs-tests: New test file.
6889         * tests/test-ffs.c: Test new module.
6890         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6891         * doc/posix-functions/ffs.texi (ffs): Likewise.
6892
6893         regex: avoid compiler warning
6894         * lib/regex.c (includes): Include <strings.h>, for use of
6895         strcasecmp in regcomp.c.
6896         Reported by Joachim Schmitz.
6897
6898 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6899
6900         stdint: respect system's intmax_t if INTMAX_MAX
6901         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6902         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6903         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6904         long but int64_t is long long, and where we will clash with the
6905         system intmax_t if we override it.  See
6906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6907         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6908         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6909         similarly for UINTMAX_C.
6910
6911 2011-07-08  Bruno Haible  <bruno@clisp.org>
6912
6913         pthread_sigmask tests: Avoid a compiler warning.
6914         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6915         non-zero.
6916
6917         sigprocmask tests: A better way to avoid a compiler warning.
6918         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6919         (main): Complain if system() returns non-zero.
6920         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6921
6922 2011-07-08  Bruno Haible  <bruno@clisp.org>
6923
6924         pthread_sigmask: Work around IRIX bug.
6925         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6926         bug.
6927         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6928         there may be unblocked pending signals.
6929         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6930
6931 2011-07-08  Bruno Haible  <bruno@clisp.org>
6932
6933         pthread_sigmask: Work around Cygwin bug.
6934         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6935         bug.
6936         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6937         the system's pthread_sigmask function.
6938         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6939
6940 2011-07-08  Bruno Haible  <bruno@clisp.org>
6941
6942         pthread_sigmask: Work around bug in single-threaded implementation.
6943         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6944         FreeBSD, HP-UX, Solaris bug.
6945         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6946         * lib/pthread_sigmask.c: Include <stddef.h>.
6947         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6948         the system's pthread_sigmask function.
6949         * modules/pthread_sigmask (configure.ac): Invoke
6950         gl_PREREQ_PTHREAD_SIGMASK.
6951         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6952         HP-UX, Solaris.
6953
6954 2011-07-08  Eric Blake  <eblake@redhat.com>
6955
6956         test-sigprocmask: avoid compiler warning
6957         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6958         * tests/test-sigprocmask.c (main): Use it to silence warning.
6959         Reported by Jim Meyering.
6960
6961         test-snprintf: avoid compiler warning
6962         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6963         * tests/test-vsnprintf.c (main): Likewise.
6964         Reported by Jim Meyering.
6965
6966 2011-07-08  Bruno Haible  <bruno@clisp.org>
6967
6968         Tests for module 'pthread_sigmask'.
6969         * modules/pthread_sigmask-tests: New file.
6970         * tests/test-pthread_sigmask1.c: New file, based on
6971         tests/test-sigprocmask.c.
6972         * tests/test-pthread_sigmask2.c: New file.
6973
6974 2011-07-08  Jim Meyering  <meyering@redhat.com>
6975
6976         test-getopt.h: avoid warning about an unused variable
6977         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6978
6979 2011-07-07  Jim Meyering  <meyering@redhat.com>
6980
6981         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6982         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6983         now that it no longer contains leading TABs.
6984         Remove unused "url=FIXME" statement.
6985
6986 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6987
6988         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6989         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6990         When gl_THREADLIB is not in use, assume that the POSIX sematics
6991         are desired.  This is better for Emacs, which uses POSIX semantics
6992         on GNUish and/or POSIXish platforms, and does not use threads at
6993         all otherwise.
6994
6995         pthread_sigmask: fix typo when testing for libraries
6996         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6997         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6998
6999 2011-07-08  Eric Blake  <eblake@redhat.com>
7000
7001         fts: introduce FTS_NOATIME
7002         * lib/fts_.h (FTS_NOATIME): New bit flag.
7003         (FTS_OPTIONMASK): Adjust.
7004         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7005         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7006
7007 2011-07-08  Bruno Haible  <bruno@clisp.org>
7008
7009         Tests for module 'thread'.
7010         * modules/thread-tests: New file.
7011         * tests/test-thread_self.c: New file.
7012         * tests/test-thread_create.cc: New file.
7013
7014 2011-07-08  Bruno Haible  <bruno@clisp.org>
7015
7016         thread: Avoid gcc warnings when using gl_thread_self().
7017         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7018         'void *'.
7019         (gl_thread_self_pointer): Update.
7020
7021 2011-07-07  Bruno Haible  <bruno@clisp.org>
7022
7023         signal-c++-tests: Check declaration of pthread_sigmask.
7024         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7025         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7026         $(LIB_PTHREAD_SIGMASK).
7027
7028 2011-07-07  Bruno Haible  <bruno@clisp.org>
7029
7030         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7031         * lib/signal.in.h (pthread_sigmask): Override if
7032         REPLACE_PTHREAD_SIGMASK is 1.
7033         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7034         REPLACE_PTHREAD_SIGMASK.
7035         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7036         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7037         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7038         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7039         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7040
7041 2011-07-07  Bruno Haible  <bruno@clisp.org>
7042
7043         pthread_sigmask: Ensure declaration in <signal.h>.
7044         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7045         include <pthread.h>.
7046         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7047         problem.
7048
7049 2011-07-07  Bruno Haible  <bruno@clisp.org>
7050
7051         pthread_sigmask: Document the module.
7052         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7053
7054 2011-07-07  Bruno Haible  <bruno@clisp.org>
7055
7056         pthread_sigmask: Follow gnulib conventions.
7057         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7058         gl_PTHREAD_SIGMASK.
7059         * modules/pthread_sigmask (configure.ac): Update.
7060
7061 2011-07-07  Bruno Haible  <bruno@clisp.org>
7062
7063         pthread_sigmask: Make declaration C++ safe.
7064         * lib/signal.in.h: In two special conditions, just do an #include_next.
7065         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7066         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7067         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7068         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7069         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7070         not REPLACE_PTHREAD_MASK.
7071         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7072         not REPLACE_PTHREAD_MASK.
7073         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7074
7075 2011-07-07  Bruno Haible  <bruno@clisp.org>
7076
7077         pthread_sigmask: Fix return value.
7078         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7079         * lib/pthread_sigmask.c: New file.
7080         * modules/pthread_sigmask (Files): Add it.
7081         (configure.ac): Invoke AC_LIBOBJ.
7082
7083 2011-07-07  Eric Blake  <eblake@redhat.com>
7084
7085         getopt: more portable argv creation
7086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7087         const, use char arrays rather than strings.
7088         Suggested by Paul Eggert.
7089
7090 2011-07-07  Bruno Haible  <bruno@clisp.org>
7091
7092         Tests for module 'sigprocmask'.
7093         * modules/sigprocmask-tests: New file.
7094         * tests/test-sigprocmask.c: New file.
7095
7096 2011-07-07  Bruno Haible  <bruno@clisp.org>
7097
7098         float tests: Tweak.
7099         * tests/test-float.c (main): Tweak skip message.
7100
7101 2011-07-07  Eric Blake  <eblake@redhat.com>
7102
7103         getopt: avoid compiler warning during configure
7104         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7105         assigning string literals to non-const pointer.
7106
7107         getopt-gnu: avoid crash in glibc getopt
7108         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7109         * tests/test-getopt.h (test_getopt): Enhance test.
7110         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7111         * doc/posix-functions/getopt.texi (getopt): Document it.
7112         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7113         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7114         Likewise.
7115
7116 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7117
7118         getopt: handle W; without long options in getopt [BZ #12922]
7119         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7120         but no long options are defined, just return 'W'.
7121
7122 2011-07-07  Bruno Haible  <bruno@clisp.org>
7123
7124         Avoid literal tabs.
7125         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7126         variable containing a tab instead of a literal tab.
7127         Reported by Jim Meyering.
7128
7129 2011-07-07  Bruno Haible  <bruno@clisp.org>
7130
7131         Comments.
7132         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7133
7134 2011-07-06  Bruno Haible  <bruno@clisp.org>
7135
7136         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7137         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7138         <winsock2.h>.
7139         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7140         lib/sys_socket.in.h.
7141         (close, gethostname): Hide declarations from <winsock2.h>.
7142         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7143         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7144         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7145         (select): Don't override if gnulib's <sys/select.h> was already
7146         included.
7147         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7148         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7149         setsockopt, shutdown, select): Tweak indentation.
7150
7151 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7152
7153         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7154         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7155         in an application that does not use the sys_select module.
7156
7157 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7158
7159         poll: do not return 0 on timeout=-1
7160         * lib/poll.c: Loop with yield if no events occured
7161
7162 2011-07-06  Eric Blake  <eblake@redhat.com>
7163
7164         pthread_sigmask: always replace when not using pthread
7165         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7166         replacement when using some threading other than pthread.  Fix
7167         logic bug.
7168
7169 2011-07-06  Bruno Haible  <bruno@clisp.org>
7170
7171         Comments.
7172         * m4/printf.m4: Update comments about mingw.
7173
7174 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7175
7176         sys_select: define sigset_t more portably
7177         * lib/sys_select.in.h: Always include <sys/types.h>, since
7178         we now need sigset_t and mingw defines it there.
7179         Include <signal.h> before split inclusion guard, to avoid
7180         mishaps on Solaris, whose <signal.h> eventually includes us.
7181         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7182         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7183         which come from ...
7184         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7185         gl_CHECK_TYPE_SIGSET_T.
7186         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7187         does the real work.
7188         * modules/sys_select (Depends-on): Add 'signal'.
7189
7190         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7191         Suggested by Bruno Haible.
7192
7193         pselect: Use pthread_sigmask, not sigprocmask.
7194         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7195         multithreaded apps better than sigprocmask does.
7196         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7197         sigprocmask directly.
7198
7199 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7200
7201         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7202         Don't #undef,  since we don't need any underlying pselect.
7203         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7204         (Depends-on): Add select.
7205         (Link): Add $(LIBSOCKET).
7206         These changes suggested by Bruno Haible.
7207
7208         pselect: document better
7209         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7210         * doc/posix-functions/pselect.texi (pselect): Document new module.
7211
7212         pthread_sigmask: new module
7213         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7214         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7215         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7216         This is done only as a macro; I don't know how well that'll
7217         work for C++.  Move <sys/types.h> include before the include_next,
7218         to avoid mishap on Solaris.
7219         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7220         * modules/signal (Makefile.am): Substitute the check's results.
7221         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7222
7223         test-pselect: new module
7224         * modules/pselect-tests, tests/test-pselect.c: New files.
7225         * tests/test-select.c, tests/test-sys_select-c++.cc:
7226         If TEST_PSELECT is defined, test pselect instead of testing select.
7227
7228         * tests/test-sys_select.c (sigset_t): Test for it, too.
7229         Suggested by Bruno Haible.
7230
7231 2011-07-05  Eric Blake  <eblake@redhat.com>
7232
7233         snprintf: guarantee %1$d, for libintl
7234         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7235         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7236         * doc/posix-functions/snprintf.texi (snprintf): Update.
7237         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7238         * tests/test-snprintf.c (main): Enhance test.
7239         * tests/test-vsnprintf.c (main): Likewise.
7240
7241 2011-07-05  Jim Meyering  <meyering@redhat.com>
7242
7243         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7244         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7245         per Bruno's request, to accommodate this idiom (no space after "#")
7246         even when the function is inside an #if block:
7247         char *
7248         gets (char *s)
7249         #undef gets
7250         {
7251           ...
7252         }
7253
7254 2011-07-04  Jim Meyering  <meyering@redhat.com>
7255
7256         maint: indent with spaces, not TABs, and add a rule to check this
7257         * tests/test-userspec.c: Indent with spaces, not TABs.
7258         * tests/test-argp.c: Likewise.
7259         * tests/test-c-stack2.sh: Likewise.
7260         * tests/test-parse-duration.sh: Likewise
7261         * m4/strtod.m4: Likewise.
7262         * m4/alloca.m4: Likewise.
7263         * m4/pselect.m4: Likewise.
7264         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7265
7266 2011-07-03  Jim Meyering  <meyering@redhat.com>
7267
7268         maint.mk: correct omissions in prohibit_argmatch_without_use check
7269         This rule would mistakenly report that argmatch.h is included without
7270         use even when both the argmatch and invalid_arg macro were used.
7271         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7272         of argmatch and invalid_arg.
7273
7274 2011-07-03  Bruno Haible  <bruno@clisp.org>
7275
7276         Comments about EINTR.
7277         * lib/safe-read.h: Explain the purpose of this module.
7278         * lib/safe-write.h: Likewise.
7279         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7280         module.
7281         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7282         module.
7283         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7284
7285 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7286
7287         xnanosleep: Rewrite to use new dtotimespec module.
7288         It has the conversion code that used to be in xnanosleep.
7289         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7290         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7291         (TIME_T_MAX): Remove.
7292         (xnanosleep): Rewrite in terms of dtotimespec.
7293         * modules/xnanosleep (Depends-on): Add dtotimespec.
7294         Remove intprops, stdbool.
7295
7296         timespec-add, timespec-sub: new modules
7297         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7298         * lib/timespec-add.c, lib/timespec-sub.c:
7299         * modules/timespec-add, modules/timespec-sub: New files.
7300
7301         dtotimespec: new module
7302         * lib/timespec.h (dtotimespec): New decl.
7303         * lib/dtotimespec.c, modules/dtotimespec: New files.
7304
7305         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7306
7307         pselect: new module
7308         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7309         (pselect): New decls.
7310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7311         since the standard pselect decl uses 'restrict'.
7312         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7313         HAVE_PSELECT, REPLACE_PSELECT.
7314         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7315         HAVE_PSELECT, REPLACE_PSELECT.
7316         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7317
7318         sys_select: don't depend on sys_socket
7319         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7321         This fix works on GNU and GNU-like platforms, but has not been tested
7322         on native Windows.
7323         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7324         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7325         gl_HEADER_SYS_SOCKET.
7326         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7327         gl_PREREQ_SYS_H_WINSOCK2.
7328
7329 2011-06-29  Eric Blake  <eblake@redhat.com>
7330
7331         pipe2: fix C89 compile problem
7332         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7333         Reported by Bruno Haible.
7334
7335         pipe, pipe2: don't corrupt fd on error
7336         * lib/pipe.c (pipe): Leave fd unchanged on error.
7337         * lib/pipe2.c (pipe2): Likewise.
7338         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7339         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7340
7341 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7342
7343         mmap-anon: do not use regular expressions inadvertently
7344         * m4/mmap-anon.m4: Remove trailing period from strings sought
7345         in the output.
7346
7347 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7348
7349         nanosleep: fix integer overflow problem
7350         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7351         arithmetic wraps around on overflow.
7352
7353         nanosleep: simplify carrying
7354         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7355         first call to the underyling nanosleep, not for the last one.
7356         This doesn't fix any bugs, but it simplifies the computation of
7357         the remaining delay.  Found while auditing integer overflow issues.
7358
7359         dup2: remove test for existence of fcntl
7360         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7361         "#if HAVE_FCNTL", in the configure-time test program.
7362         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7363         and therefore speeds up "configure" a bit.  Found while
7364         adding the dup2 module to Emacs.
7365
7366 2011-06-24  Eric Blake  <eblake@redhat.com>
7367
7368         maint.mk: enhance useless header checks
7369         * top/maint.mk (_sc_header_without_use): Check both include
7370         styles.
7371         (sc_prohibit_assert_without_use)
7372         (sc_prohibit_close_stream_without_use)
7373         (sc_prohibit_getopt_without_use)
7374         (sc_prohibit_quotearg_without_use)
7375         (sc_prohibit_quote_without_use)
7376         (sc_prohibit_long_options_without_use)
7377         (sc_prohibit_inttostr_without_use)
7378         (sc_prohibit_ignore_value_without_use)
7379         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7380         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7381         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7382         (sc_prohibit_hash_pjw_without_use)
7383         (sc_prohibit_safe_read_without_use)
7384         (sc_prohibit_argmatch_without_use)
7385         (sc_prohibit_canonicalize_without_use)
7386         (sc_prohibit_root_dev_ino_without_use)
7387         (sc_prohibit_openat_without_use)
7388         (sc_prohibit_c_ctype_without_use)
7389         (sc_prohibit_signal_without_use)
7390         (sc_prohibit_stdio--_without_use)
7391         (sc_prohibit_stdio-safer_without_use)
7392         (sc_prohibit_strings_without_use)
7393         (sc_prohibit_intprops_without_use)
7394         (sc_prohibit_stddef_without_use)
7395         (sc_prohibit_xfreopen_without_use): Update clients.
7396
7397 2011-06-24  Jim Meyering  <meyering@redhat.com>
7398
7399         syntax-check: keep one maint.mk rule in sync with its header
7400         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7401         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7402         I prefer to avoid temporary files here, so use <(...), but that
7403         is not supported by /bin/sh, so...
7404         (SHELL): Define to /bin/bash.
7405
7406 2011-06-24  Eric Blake  <eblake@redhat.com>
7407
7408         maint.mk: update sc_prohibit_intprops_without_use
7409         * top/maint.mk (_intprops_names): Match recent changes.
7410
7411 2011-06-24  Bruno Haible  <bruno@clisp.org>
7412
7413         strerror-override: No-op tweak.
7414         * lib/strerror-override.h (strerror_override): Reorder conditions,
7415         for consistency with lib/strerror-override.c.
7416
7417 2011-06-23  Eric Blake  <eblake@redhat.com>
7418
7419         maint.mk: test further PATH_MAX issues
7420         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7421         (sc_prohibit_path_max_allocation): ...and also test alloca.
7422         Suggested by Jim Meyering.
7423
7424 2011-06-22  Eric Blake  <eblake@redhat.com>
7425
7426         maint.mk: add syntax-check to avoid char[PATH_MAX]
7427         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7428
7429         stat: be robust to PATH_MAX definition
7430         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7431         * modules/stat (Depends-on): Add verify.
7432
7433         link: work around IRIX bug
7434         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7435         * lib/link.c (rpl_link): Work around it.
7436         * tests/test-link.h (test_link): Enhance test.
7437         * doc/posix-functions/link.texi (link): Document the bug.
7438
7439         getopt: silence clang warning
7440         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7441         dereference.
7442         Reported by Gustavo Martin Domato.
7443
7444 2011-06-22  Jim Meyering  <meyering@redhat.com>
7445
7446         bootstrap: do not insert a blank line into each .gitignore file
7447         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7448
7449 2011-06-21  Eric Blake  <eblake@redhat.com>
7450
7451         perror: test for output mismatch
7452         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7453         perror on IRIX.
7454
7455         strerror_r: fix OpenBSD behavior on out-of-range
7456         * lib/strerror_r.c (strerror_r): Always use maximal string.
7457         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7458
7459         strerror_r: fix OpenBSD behavior on 0
7460         * lib/strerror-override.c (strerror_override): Also override 0
7461         when needed.
7462         * lib/strerror-override.h (strerror_override): Likewise.
7463         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7464         earlier.
7465         * lib/strerror_r.c (strerror_r): Likewise.
7466         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7467         behavior...
7468         (gl_FUNC_STRERROR_0): ...into new macro.
7469         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7470         is overridden.
7471         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7472         * modules/strerror-override (Files): Add strerror.m4.
7473         (configure.ac): Also provide override for 0 when needed.
7474         * doc/posix-functions/strerror.texi (strerror): Document this.
7475         * doc/posix-functions/perror.texi (perror): Likewise.
7476
7477         perror: adjust array size
7478         * modules/perror (Depends-on): Add strerror-override.
7479         * lib/perror.c (perror): Use it to avoid magic number.
7480
7481         strerror-override: reduce size
7482         * lib/strerror-override.c (strerror_override): Use fewer lines.
7483
7484 2011-06-20  Bruno Haible  <bruno@clisp.org>
7485
7486         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7487         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7488
7489 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7490
7491         alloca: port to compilers that can optimize like GCC 4.6.0
7492         * lib/alloca.c (find_stack_direction): New signature, taken from
7493         Autoconf git.  This works with GCC 4.6.0.  This code should never
7494         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7495         be used with other compilers that optimize as well as GCC 4.6.0 does.
7496         (alloca): Adjust to new signature.
7497         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7498         New macro, which patches Autoconf in a similar way.
7499
7500         c-stack: stop worrying about stack direction
7501         * lib/c-stack.c (find_stack_direction): Remove.
7502         (segv_handler): Don't worry about stack direction growth, as it's
7503         too much of a pain to configure this correctly, given how compilers
7504         are optimizing-away our stack-growth detection code.  Instead, assume
7505         that any access to just before or just after the stack is OK.
7506         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7507         Don't require AC_FUNC_ALLOCA; no longer needed.
7508
7509 2011-06-20  Eric Blake  <eblake@redhat.com>
7510
7511         test-stat: don't allocate PATH_MAX bytes
7512         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7513         PATH_MAX-sized buffer.
7514         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7515         * modules/stat-tests (Depends-on): Likewise.
7516         * tests/test-fstatat.c (includes): Drop pathmax.h.
7517         * tests/test-stat.c (includes): Likewise.
7518         Reported by Bruno Haible.
7519
7520 2011-06-20  Bruno Haible  <bruno@clisp.org>
7521
7522         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7523         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7524         * lib/float.c: New file.
7525         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7526         REPLACE_FLOAT_LDBL.
7527         * modules/float (Files): Add lib/float.c.
7528         (configure.ac): Invoke AC_LIBOBJ.
7529         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7530
7531 2011-06-20  Bruno Haible  <bruno@clisp.org>
7532
7533         Tests for module 'float'.
7534         * modules/float-tests: New file.
7535         * tests/test-float.c: New file.
7536
7537 2011-06-19  Bruno Haible  <bruno@clisp.org>
7538
7539         isinf: Coding style.
7540         * lib/isinf.c: Use GNU coding style.
7541
7542 2011-06-19  Bruno Haible  <bruno@clisp.org>
7543
7544         linkat test: Avoid test failure on AIX 7.1.
7545         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7546         * tests/test-link.h (test_link): Likewise.
7547
7548 2011-06-19  Bruno Haible  <bruno@clisp.org>
7549
7550         pread test: Avoid test failure on OpenBSD 4.9.
7551         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7552
7553 2011-06-19  Bruno Haible  <bruno@clisp.org>
7554
7555         sprintf-posix: Fix test failure on AIX 7.1.
7556         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7557         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7558         on AIX.
7559         * doc/posix-functions/fprintf.texi: Likewise.
7560         * doc/posix-functions/printf.texi: Likewise.
7561         * doc/posix-functions/snprintf.texi: Likewise.
7562         * doc/posix-functions/sprintf.texi: Likewise.
7563         * doc/posix-functions/vdprintf.texi: Likewise.
7564         * doc/posix-functions/vfprintf.texi: Likewise.
7565         * doc/posix-functions/vprintf.texi: Likewise.
7566         * doc/posix-functions/vsnprintf.texi: Likewise.
7567         * doc/posix-functions/vsprintf.texi: Likewise.
7568
7569 2011-06-19  Bruno Haible  <bruno@clisp.org>
7570
7571         roundl-ieee: Fix test failure on AIX 7.1.
7572         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7573         * doc/posix-functions/roundl.texi: Mention problem with negative
7574         arguments.
7575
7576 2011-06-19  Bruno Haible  <bruno@clisp.org>
7577
7578         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7579         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7580         * doc/posix-functions/round.texi: Mention problem with negative
7581         arguments.
7582         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7583
7584 2011-06-19  Bruno Haible  <bruno@clisp.org>
7585
7586         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7587         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7588         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7589         * doc/posix-functions/roundf.texi: Mention problem with negative
7590         arguments.
7591         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7592
7593 2011-06-19  Bruno Haible  <bruno@clisp.org>
7594
7595         ceilf-ieee: Work around bug on MacOS X 10.5.
7596         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7597
7598         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7599         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7600         IEEE compliant, avoid compiler optimizations.
7601         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7602         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7603         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7604         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7605         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7606         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7607         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7608         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7609         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7610         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7611
7612 2011-06-19  Bruno Haible  <bruno@clisp.org>
7613
7614         ceilf-ieee: Work around bug on AIX 7.1.
7615         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7616         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7617
7618 2011-06-19  Bruno Haible  <bruno@clisp.org>
7619
7620         ceil-ieee: Work around bug on AIX 7.1.
7621         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7622         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7623
7624 2011-06-18  Bruno Haible  <bruno@clisp.org>
7625
7626         fsync test: Avoid test failure on MacOS X and AIX.
7627         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7628         EINVAL.
7629
7630 2011-06-18  Bruno Haible  <bruno@clisp.org>
7631
7632         openat, fdopendir tests: Fix link errors.
7633         * modules/openat-tests (Depends-on): Add progname.
7634         * modules/fdopendir-tests (Depends-on): Likewise.
7635         * tests/test-fchownat.c: Include progname.h.
7636         (main): Call set_program_name.
7637         * tests/test-fstatat.c: Include progname.h.
7638         (main): Call set_program_name.
7639         * tests/test-mkdirat.c: Include progname.h.
7640         (main): Call set_program_name.
7641         * tests/test-openat.c: Include progname.h.
7642         (main): Call set_program_name.
7643         * tests/test-unlinkat.c: Include progname.h.
7644         (main): Call set_program_name.
7645         * tests/test-fdopendir.c: Include progname.h.
7646         (main): Call set_program_name.
7647
7648 2011-06-18  Bruno Haible  <bruno@clisp.org>
7649
7650         Doc update.
7651         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7652         HP-UX.
7653         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7654
7655 2011-06-18  Bruno Haible  <bruno@clisp.org>
7656
7657         getcwd tests: Avoid compilation error on HP-UX 11.31.
7658         * modules/getcwd-tests (Depends-on): Add pathmax.
7659         * tests/test-getcwd.c: Include pathmax.h.
7660
7661 2011-06-18  Bruno Haible  <bruno@clisp.org>
7662
7663         isfinite, isinf: Fix link error on AIX 6 and 7.
7664         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7665         needed, also test the macro with a 'float' argument.
7666         * m4/isinf.m4 (gl_ISINF): Likewise.
7667
7668 2011-06-18  Bruno Haible  <bruno@clisp.org>
7669
7670         getloadavg: Don't clobber LIBS. Regression from previous commit.
7671         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7672         AC_CHECK_LIB from here...
7673         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7674         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7675         gl_func_getloadavg_done.
7676         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7677
7678 2011-06-18  Bruno Haible  <bruno@clisp.org>
7679
7680         clean-temp: Improve documentation.
7681         * lib/clean-temp.h: Explain better how to use this module.
7682         Reported by John Darrington <john@darrington.wattle.id.au>.
7683
7684 2011-06-17  Bruno Haible  <bruno@clisp.org>
7685
7686         pread, pwrite: Avoid cc warning on AIX.
7687         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7688         (pwrite): Likewise.
7689
7690 2011-06-17  Bruno Haible  <bruno@clisp.org>
7691
7692         spawn-pipe tests: Fix link error.
7693         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7695
7696 2011-06-17  Bruno Haible  <bruno@clisp.org>
7697
7698         Tests: Remove unnecessary dependency.
7699         * modules/canonicalize-tests (Depends-on): Remove progname.
7700         * modules/chown-tests (Depends-on): Likewise.
7701         * modules/dirname-tests (Depends-on): Likewise.
7702         * modules/fdopendir-tests (Depends-on): Likewise.
7703         * modules/fdutimensat-tests (Depends-on): Likewise.
7704         * modules/hash-tests (Depends-on): Likewise.
7705         * modules/lchown-tests (Depends-on): Likewise.
7706         * modules/linkat-tests (Depends-on): Likewise.
7707         * modules/renameat-tests (Depends-on): Likewise.
7708         * modules/spawn-pipe-tests (Depends-on): Likewise.
7709         * modules/utimensat-tests (Depends-on): Likewise.
7710
7711 2011-06-17  Bruno Haible  <bruno@clisp.org>
7712
7713         spawn-pipe tests: Fix link error.
7714         * tests/test-spawn-pipe-child.c: Undefine fflush.
7715
7716 2011-06-17  Bruno Haible  <bruno@clisp.org>
7717
7718         Fix tests link errors.
7719         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7720         * modules/chown-tests (Makefile.am): Don't link test-chown with
7721         LIBINTL.
7722         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7723         LIBINTL.
7724         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7725         LIBINTL.
7726         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7727         LIBINTL.
7728
7729 2011-06-16  Bruno Haible  <bruno@clisp.org>
7730
7731         crypto/gc-sha1: Fix recent regression.
7732         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7733         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7734
7735         crypto/gc-md5: Fix recent regression.
7736         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7737
7738         crypto/gc-md4: Fix recent regression.
7739         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7740         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7741
7742         crypto/gc-arctwo: Fix recent regression.
7743         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7744         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7745
7746         crypto/gc-rijndael: Fix recent regression.
7747         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7748         (configure.ac): Invoke AC_LIBOBJ here.
7749         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7751
7752         crypto/gc-hmac-sha1: Fix recent regression.
7753         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7754         (configure.ac): Invoke AC_LIBOBJ here.
7755         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7757
7758         crypto/gc-hmac-md5: Fix recent regression.
7759         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7760         (configure.ac): Invoke AC_LIBOBJ here.
7761         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7763
7764         crypto/gc-des: Fix recent regression.
7765         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7766         (configure.ac): Invoke AC_LIBOBJ here.
7767         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7769
7770         crypto/gc-arcfour: Fix recent regression.
7771         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7772         (configure.ac): Invoke AC_LIBOBJ here.
7773         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7775
7776 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7777
7778         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7779         After the 2011-05-21 change, this macro requires
7780         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7781         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7782
7783 2011-06-16  Bruno Haible  <bruno@clisp.org>
7784
7785         fprintftime: Move AC_LIBOBJ invocations to module description.
7786         * m4/fprintftime.m4: Remove file.
7787         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7788         (configure.ac): Remove gl_FPRINTFTIME call.
7789         (Makefile.am): Augment lib_SOURCES.
7790         Reported by Jim Meyering.
7791
7792 2011-06-16  Bruno Haible  <bruno@clisp.org>
7793
7794         tmpfile-safer: Finish 2011-05-23 commit.
7795         * m4/stdio-safer.m4: Really remove file.
7796         Reported by Jim Meyering.
7797
7798 2011-06-16  Bruno Haible  <bruno@clisp.org>
7799
7800         syntax-check: Fix typo.
7801         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7802         printf-posix.m4.
7803         Reported by Jim Meyering.
7804
7805 2011-06-13  Jim Meyering  <meyering@redhat.com>
7806
7807         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7808         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7809
7810 2011-05-23  Bruno Haible  <bruno@clisp.org>
7811
7812         yesno: Move AC_LIBOBJ invocations to module description.
7813         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7814         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7815
7816 2011-05-23  Bruno Haible  <bruno@clisp.org>
7817
7818         xstrtol: Move AC_LIBOBJ invocations to module description.
7819         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7820         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7821
7822 2011-05-23  Bruno Haible  <bruno@clisp.org>
7823
7824         xstrtold: Move AC_LIBOBJ invocations to module description.
7825         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7826         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7827
7828 2011-05-23  Bruno Haible  <bruno@clisp.org>
7829
7830         xstrtod: Move AC_LIBOBJ invocations to module description.
7831         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7832         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7833
7834 2011-05-23  Bruno Haible  <bruno@clisp.org>
7835
7836         xnanosleep: Move AC_LIBOBJ invocations to module description.
7837         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7838         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7839
7840 2011-05-23  Bruno Haible  <bruno@clisp.org>
7841
7842         xgetcwd: Move AC_LIBOBJ invocations to module description.
7843         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7844         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7845
7846 2011-05-23  Bruno Haible  <bruno@clisp.org>
7847
7848         xalloc: Move AC_LIBOBJ invocations to module description.
7849         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7850         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7851
7852 2011-05-23  Bruno Haible  <bruno@clisp.org>
7853
7854         write-any-file: Move AC_LIBOBJ invocations to module description.
7855         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7856         invocation.
7857         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7858
7859 2011-05-23  Bruno Haible  <bruno@clisp.org>
7860
7861         utimens: Move AC_LIBOBJ invocations to module description.
7862         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7863         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7864
7865 2011-05-23  Bruno Haible  <bruno@clisp.org>
7866
7867         utimecmp: Move AC_LIBOBJ invocations to module description.
7868         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7869         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7870
7871 2011-05-23  Bruno Haible  <bruno@clisp.org>
7872
7873         userspec: Move AC_LIBOBJ invocations to module description.
7874         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7875         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7876
7877 2011-05-23  Bruno Haible  <bruno@clisp.org>
7878
7879         unlinkdir: Move AC_LIBOBJ invocations to module description.
7880         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7881         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7882
7883 2011-05-23  Bruno Haible  <bruno@clisp.org>
7884
7885         unistd-safer: Move AC_LIBOBJ invocations to module description.
7886         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7887         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7888
7889 2011-05-23  Bruno Haible  <bruno@clisp.org>
7890
7891         tempname: Move AC_LIBOBJ invocations to module description.
7892         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7893         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7894
7895 2011-05-23  Bruno Haible  <bruno@clisp.org>
7896
7897         strftime: Move AC_LIBOBJ invocations to module description.
7898         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7899         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7900
7901 2011-05-23  Bruno Haible  <bruno@clisp.org>
7902
7903         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7904         * m4/stdlib-safer.m4: Remove file.
7905         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7906         (configure.ac): Remove gl_STDLIB_SAFER call.
7907         (Makefile.am): Augment lib_SOURCES.
7908
7909 2011-05-23  Bruno Haible  <bruno@clisp.org>
7910
7911         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7912         * m4/stdio-safer.m4: Remove file.
7913         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7914         (configure.ac): Remove gl_TMPFILE_SAFER call.
7915         (Makefile.am): Augment lib_SOURCES.
7916
7917 2011-05-23  Bruno Haible  <bruno@clisp.org>
7918
7919         popen-safer: Move AC_LIBOBJ invocations to module description.
7920         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7921         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7922         (configure.ac): Remove gl_POPEN_SAFER call.
7923         (Makefile.am): Augment lib_SOURCES.
7924
7925 2011-05-23  Bruno Haible  <bruno@clisp.org>
7926
7927         freopen-safer: Move AC_LIBOBJ invocations to module description.
7928         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7929         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7930         (configure.ac): Remove gl_FREOPEN_SAFER call.
7931         (Makefile.am): Augment lib_SOURCES.
7932
7933 2011-05-23  Bruno Haible  <bruno@clisp.org>
7934
7935         fopen-safer: Move AC_LIBOBJ invocations to module description.
7936         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7937         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7938         (configure.ac): Remove gl_FOPEN_SAFER call.
7939         (Makefile.am): Augment lib_SOURCES.
7940
7941 2011-05-23  Bruno Haible  <bruno@clisp.org>
7942
7943         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7944         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7945         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7946
7947 2011-05-23  Bruno Haible  <bruno@clisp.org>
7948
7949         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7950         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7951         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7952
7953 2011-05-23  Bruno Haible  <bruno@clisp.org>
7954
7955         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7956         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7957         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7958
7959 2011-05-23  Bruno Haible  <bruno@clisp.org>
7960
7961         settime: Move AC_LIBOBJ invocations to module description.
7962         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7963         * modules/settime (Makefile.am): Augment lib_SOURCES.
7964
7965 2011-05-23  Bruno Haible  <bruno@clisp.org>
7966
7967         savedir: Move AC_LIBOBJ invocations to module description.
7968         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7969         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7970
7971 2011-05-23  Bruno Haible  <bruno@clisp.org>
7972
7973         save-cwd: Move AC_LIBOBJ invocations to module description.
7974         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7975         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7976
7977 2011-05-23  Bruno Haible  <bruno@clisp.org>
7978
7979         same: Move AC_LIBOBJ invocations to module description.
7980         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7981         * modules/same (Makefile.am): Augment lib_SOURCES.
7982
7983 2011-05-23  Bruno Haible  <bruno@clisp.org>
7984
7985         safe-write: Move AC_LIBOBJ invocations to module description.
7986         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7987         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7988         instead of gl_SAFE_WRITE.
7989         (Makefile.am): Augment lib_SOURCES.
7990
7991 2011-05-23  Bruno Haible  <bruno@clisp.org>
7992
7993         safe-read: Move AC_LIBOBJ invocations to module description.
7994         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7995         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7996         of gl_SAFE_READ.
7997         (Makefile.am): Augment lib_SOURCES.
7998
7999 2011-05-23  Bruno Haible  <bruno@clisp.org>
8000
8001         safe-alloc: Move AC_LIBOBJ invocations to module description.
8002         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8003         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8004
8005 2011-05-23  Bruno Haible  <bruno@clisp.org>
8006
8007         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8008         * m4/rijndael.m4: Remove file.
8009         * modules/crypto/rijndael (Files): Remove it.
8010         (configure.ac): Remove gl_RIJNDAEL call.
8011         (Makefile.am): Augment lib_SOURCES.
8012
8013 2011-05-23  Bruno Haible  <bruno@clisp.org>
8014
8015         readtokens: Move AC_LIBOBJ invocations to module description.
8016         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8017         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8018
8019 2011-05-23  Bruno Haible  <bruno@clisp.org>
8020
8021         read-file: Move AC_LIBOBJ invocations to module description.
8022         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8023         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8024         of gl_FUNC_READ_FILE.
8025         (Makefile.am): Augment lib_SOURCES.
8026
8027 2011-05-23  Bruno Haible  <bruno@clisp.org>
8028
8029         quotearg: Move AC_LIBOBJ invocations to module description.
8030         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8031         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8032
8033 2011-05-23  Bruno Haible  <bruno@clisp.org>
8034
8035         quote: Move AC_LIBOBJ invocations to module description.
8036         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8037         * modules/quote (Makefile.am): Augment lib_SOURCES.
8038
8039 2011-05-23  Bruno Haible  <bruno@clisp.org>
8040
8041         posixver: Move AC_LIBOBJ invocations to module description.
8042         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8043         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8044
8045 2011-05-23  Bruno Haible  <bruno@clisp.org>
8046
8047         posixtm: Move AC_LIBOBJ invocations to module description.
8048         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8049         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8050
8051 2011-05-23  Bruno Haible  <bruno@clisp.org>
8052
8053         physmem: Move AC_LIBOBJ invocations to module description.
8054         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8055         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8056
8057 2011-05-23  Bruno Haible  <bruno@clisp.org>
8058
8059         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8060         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8061         invocation.
8062         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8063
8064 2011-05-23  Bruno Haible  <bruno@clisp.org>
8065
8066         mpsort: Move AC_LIBOBJ invocations to module description.
8067         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8068         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8069
8070 2011-05-23  Bruno Haible  <bruno@clisp.org>
8071
8072         modechange: Move AC_LIBOBJ invocations to module description.
8073         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8074         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8075
8076 2011-05-23  Bruno Haible  <bruno@clisp.org>
8077
8078         mkdir-p: Move AC_LIBOBJ invocations to module description.
8079         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8080         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8081
8082 2011-05-23  Bruno Haible  <bruno@clisp.org>
8083
8084         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8085         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8086         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8087
8088 2011-05-23  Bruno Haible  <bruno@clisp.org>
8089
8090         mgetgroups: Move AC_LIBOBJ invocations to module description.
8091         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8092         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8093
8094 2011-05-23  Bruno Haible  <bruno@clisp.org>
8095
8096         memxor: Move AC_LIBOBJ invocations to module description.
8097         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8098         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8099
8100 2011-05-23  Bruno Haible  <bruno@clisp.org>
8101
8102         memcoll: Move AC_LIBOBJ invocations to module description.
8103         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8104         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8105
8106 2011-05-23  Bruno Haible  <bruno@clisp.org>
8107
8108         memcasecmp: Move AC_LIBOBJ invocations to module description.
8109         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8110         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8111
8112 2011-05-23  Bruno Haible  <bruno@clisp.org>
8113
8114         crypto/md5: Move AC_LIBOBJ invocations to module description.
8115         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8116         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8117
8118 2011-05-23  Bruno Haible  <bruno@clisp.org>
8119
8120         crypto/md4: Move AC_LIBOBJ invocations to module description.
8121         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8122         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8123
8124 2011-05-23  Bruno Haible  <bruno@clisp.org>
8125
8126         crypto/md2: Move AC_LIBOBJ invocations to module description.
8127         * m4/md2.m4: Remove file.
8128         * modules/crypto/md2 (Files): Remove it.
8129         (configure.ac): Remove gl_MD2 call.
8130         (Makefile.am): Augment lib_SOURCES.
8131
8132 2011-05-23  Bruno Haible  <bruno@clisp.org>
8133
8134         long-options: Move AC_LIBOBJ invocations to module description.
8135         * m4/long-options.m4: Remove file.
8136         * modules/long-options (Files): Remove it.
8137         (configure.ac): Remove gl_LONG_OPTIONS call.
8138         (Makefile.am): Augment lib_SOURCES.
8139
8140 2011-05-23  Bruno Haible  <bruno@clisp.org>
8141
8142         i-ring: Move AC_LIBOBJ invocations to module description.
8143         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8144         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8145
8146 2011-05-23  Bruno Haible  <bruno@clisp.org>
8147
8148         idcache: Move AC_LIBOBJ invocations to module description.
8149         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8150         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8151
8152 2011-05-23  Bruno Haible  <bruno@clisp.org>
8153
8154         human: Move AC_LIBOBJ invocations to module description.
8155         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8156         * modules/human (Makefile.am): Augment lib_SOURCES.
8157
8158 2011-05-23  Bruno Haible  <bruno@clisp.org>
8159
8160         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8161         * m4/hmac-sha1.m4: Remove file.
8162         * modules/crypto/hmac-sha1 (Files): Remove it.
8163         (configure.ac): Remove gl_HMAC_SHA1 call.
8164         (Makefile.am): Augment lib_SOURCES.
8165
8166 2011-05-23  Bruno Haible  <bruno@clisp.org>
8167
8168         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8169         * m4/hmac-md5.m4: Remove file.
8170         * modules/crypto/hmac-md5 (Files): Remove it.
8171         (configure.ac): Remove gl_HMAC_MD5 call.
8172         (Makefile.am): Augment lib_SOURCES.
8173
8174 2011-05-23  Bruno Haible  <bruno@clisp.org>
8175
8176         hash: Move AC_LIBOBJ invocations to module description.
8177         * m4/hash.m4: Remove file.
8178         * modules/hash (Files): Remove it.
8179         (configure.ac): Remove gl_HASH call.
8180         (Makefile.am): Augment lib_SOURCES.
8181
8182 2011-05-23  Bruno Haible  <bruno@clisp.org>
8183
8184         hard-locale: Move AC_LIBOBJ invocations to module description.
8185         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8186         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8187
8188 2011-05-23  Bruno Haible  <bruno@clisp.org>
8189
8190         getugroups: Move AC_LIBOBJ invocations to module description.
8191         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8192         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8193
8194 2011-05-23  Bruno Haible  <bruno@clisp.org>
8195
8196         gettime: Move AC_LIBOBJ invocations to module description.
8197         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8198         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8199
8200 2011-05-23  Bruno Haible  <bruno@clisp.org>
8201
8202         getndelim2: Move AC_LIBOBJ invocations to module description.
8203         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8204         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8205
8206 2011-05-23  Bruno Haible  <bruno@clisp.org>
8207
8208         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8209         * m4/gc-pbkdf2-sha1.m4: Remove file.
8210         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8211         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8212         (Makefile.am): Augment lib_SOURCES.
8213
8214 2011-05-23  Bruno Haible  <bruno@clisp.org>
8215
8216         fts: Move AC_LIBOBJ invocations to module description.
8217         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8218         * modules/fts (configure.ac): ... to here.
8219
8220 2011-05-23  Bruno Haible  <bruno@clisp.org>
8221
8222         file-type: Move AC_LIBOBJ invocations to module description.
8223         * m4/file-type.m4: Remove file.
8224         * modules/file-type (Files): Remove it.
8225         (configure.ac): Remove gl_FILE_TYPE call.
8226         (Makefile.am): Augment lib_SOURCES.
8227
8228 2011-05-23  Bruno Haible  <bruno@clisp.org>
8229
8230         filenamecat*: Respect rules for use of AC_LIBOBJ.
8231         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8232         Remove AC_LIBOBJ invocation.
8233         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8234         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8235
8236 2011-05-23  Bruno Haible  <bruno@clisp.org>
8237
8238         filemode: Move AC_LIBOBJ invocations to module description.
8239         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8240         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8241
8242 2011-05-23  Bruno Haible  <bruno@clisp.org>
8243
8244         openat-safer: Move AC_LIBOBJ invocations to module description.
8245         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8246         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8247
8248 2011-05-23  Bruno Haible  <bruno@clisp.org>
8249
8250         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8251         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8252         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8253
8254 2011-05-23  Bruno Haible  <bruno@clisp.org>
8255
8256         exclude: Move AC_LIBOBJ invocations to module description.
8257         * m4/exclude.m4: Remove file.
8258         * modules/exclude (Files): Remove it.
8259         (configure.ac): Remove gl_EXCLUDE call.
8260         (Makefile.am): Augment lib_SOURCES.
8261
8262 2011-05-23  Bruno Haible  <bruno@clisp.org>
8263
8264         dirname*: Respect rules for use of AC_LIBOBJ.
8265         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8266         invocations.
8267         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8268         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8269
8270 2011-05-23  Bruno Haible  <bruno@clisp.org>
8271
8272         dirent-safer: Move AC_LIBOBJ invocations to module description.
8273         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8274         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8275
8276 2011-05-23  Bruno Haible  <bruno@clisp.org>
8277
8278         crypto/des: Move AC_LIBOBJ invocations to module description.
8279         * m4/des.m4: Remove file.
8280         * modules/crypto/des (Files): Remove it.
8281         (configure.ac): Remove gl_DES call.
8282         (Makefile.am): Augment lib_SOURCES.
8283
8284 2011-05-23  Bruno Haible  <bruno@clisp.org>
8285
8286         cycle-check: Move AC_LIBOBJ invocations to module description.
8287         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8288         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8289
8290 2011-05-23  Bruno Haible  <bruno@clisp.org>
8291
8292         c-strtold: Move AC_LIBOBJ invocations to module description.
8293         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8294         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8295
8296 2011-05-23  Bruno Haible  <bruno@clisp.org>
8297
8298         c-strtod: Move AC_LIBOBJ invocations to module description.
8299         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8300         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8301
8302 2011-05-23  Bruno Haible  <bruno@clisp.org>
8303
8304         crc: Move AC_LIBOBJ invocations to module description.
8305         * m4/crc.m4: Remove file.
8306         * modules/crc (Files): Remove it.
8307         (configure.ac): Remove gl_CRC call.
8308         (Makefile.am): Augment lib_SOURCES.
8309
8310 2011-05-23  Bruno Haible  <bruno@clisp.org>
8311
8312         close-stream: Move AC_LIBOBJ invocations to module description.
8313         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8314         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8315
8316 2011-05-23  Bruno Haible  <bruno@clisp.org>
8317
8318         closeout: Move AC_LIBOBJ invocations to module description.
8319         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8320         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8321
8322 2011-05-23  Bruno Haible  <bruno@clisp.org>
8323
8324         closein: Move AC_LIBOBJ invocations to module description.
8325         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8326         * modules/closein (Makefile.am): Augment lib_SOURCES.
8327
8328 2011-05-23  Bruno Haible  <bruno@clisp.org>
8329
8330         cloexec: Move AC_LIBOBJ invocations to module description.
8331         * m4/cloexec.m4: Remove file.
8332         * modules/cloexec (Files): Remove it.
8333         (configure.ac): Remove gl_CLOEXEC call.
8334         (Makefile.am): Augment lib_SOURCES.
8335
8336 2011-05-23  Bruno Haible  <bruno@clisp.org>
8337
8338         check-version: Move AC_LIBOBJ invocations to module description.
8339         * m4/check-version.m4: Remove file.
8340         * modules/check-version (Files): Remove it.
8341         (configure.ac): Remove gl_CHECK_VERSION call.
8342         (Makefile.am): Augment lib_SOURCES.
8343
8344 2011-05-23  Bruno Haible  <bruno@clisp.org>
8345
8346         chdir-safer: Move AC_LIBOBJ invocations to module description.
8347         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8348         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8349
8350 2011-05-23  Bruno Haible  <bruno@clisp.org>
8351
8352         canonicalize: Move AC_LIBOBJ invocations to module description.
8353         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8354         AC_LIBOBJ invocation.
8355         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8356
8357 2011-05-23  Bruno Haible  <bruno@clisp.org>
8358
8359         canon-host: Move AC_LIBOBJ invocations to module description.
8360         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8361         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8362         instead of gl_CANON_HOST.
8363         (Makefile.am): Augment lib_SOURCES.
8364
8365 2011-05-23  Bruno Haible  <bruno@clisp.org>
8366
8367         backupfile: Move AC_LIBOBJ invocations to module description.
8368         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8369         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8370
8371 2011-05-23  Bruno Haible  <bruno@clisp.org>
8372
8373         argmatch: Move AC_LIBOBJ invocations to module description.
8374         * m4/argmatch.m4: Remove file.
8375         * modules/argmatch (Files): Remove it.
8376         (configure.ac): Remove gl_ARGMATCH call.
8377         (Makefile.am): Augment lib_SOURCES.
8378
8379 2011-05-23  Bruno Haible  <bruno@clisp.org>
8380
8381         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8382         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8383         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8384
8385 2011-05-23  Bruno Haible  <bruno@clisp.org>
8386
8387         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8388         * m4/arcfour.m4: Remove file.
8389         * modules/crypto/arcfour (Files): Remove it.
8390         (configure.ac): Remove gl_ARCFOUR call.
8391         (Makefile.am): Augment lib_SOURCES.
8392
8393 2011-05-22  Bruno Haible  <bruno@clisp.org>
8394
8395         write: Move AC_LIBOBJ invocations to module description.
8396         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8397         * modules/write (configure.ac): ... to here.
8398
8399 2011-05-22  Bruno Haible  <bruno@clisp.org>
8400
8401         wmemset: Move AC_LIBOBJ invocations to module description.
8402         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8403         here...
8404         * modules/wmemset (configure.ac): ... to here.
8405
8406 2011-05-22  Bruno Haible  <bruno@clisp.org>
8407
8408         wmemmove: Move AC_LIBOBJ invocations to module description.
8409         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8410         here...
8411         * modules/wmemmove (configure.ac): ... to here.
8412
8413 2011-05-22  Bruno Haible  <bruno@clisp.org>
8414
8415         wmemcpy: Move AC_LIBOBJ invocations to module description.
8416         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8417         here...
8418         * modules/wmemcpy (configure.ac): ... to here.
8419
8420 2011-05-22  Bruno Haible  <bruno@clisp.org>
8421
8422         wmemcmp: Move AC_LIBOBJ invocations to module description.
8423         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8424         here...
8425         * modules/wmemcmp (configure.ac): ... to here.
8426
8427 2011-05-22  Bruno Haible  <bruno@clisp.org>
8428
8429         wmemchr: Move AC_LIBOBJ invocations to module description.
8430         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8431         here...
8432         * modules/wmemchr (configure.ac): ... to here.
8433
8434 2011-05-22  Bruno Haible  <bruno@clisp.org>
8435
8436         wcswidth: Move AC_LIBOBJ invocations to module description.
8437         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8438         here...
8439         * modules/wcswidth (configure.ac): ... to here.
8440
8441 2011-05-22  Bruno Haible  <bruno@clisp.org>
8442
8443         wcwidth: Respect rules for use of AC_LIBOBJ.
8444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8445         invocation from here...
8446         * modules/wcwidth (configure.ac): ... to here.
8447         (Depends-on): Update conditions.
8448
8449 2011-05-22  Bruno Haible  <bruno@clisp.org>
8450
8451         wctype: Move AC_LIBOBJ invocations to module description.
8452         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8453         invocation from here...
8454         * modules/wctype (configure.ac): ... to here.
8455         (Depends-on): Update conditions.
8456
8457 2011-05-22  Bruno Haible  <bruno@clisp.org>
8458
8459         wctrans: Move AC_LIBOBJ invocations to module description.
8460         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8461         invocation from here...
8462         * modules/wctrans (configure.ac): ... to here.
8463
8464 2011-05-22  Bruno Haible  <bruno@clisp.org>
8465
8466         wctomb: Move AC_LIBOBJ invocations to module description.
8467         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8468         invocations from here...
8469         * modules/wctomb (configure.ac): ... to here.
8470
8471 2011-05-22  Bruno Haible  <bruno@clisp.org>
8472
8473         wctob: Move AC_LIBOBJ invocations to module description.
8474         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8475         gl_PREREQ_WCTOB invocations from here...
8476         * modules/wctob (configure.ac): ... to here.
8477         (Depends-on): Update conditions.
8478
8479 2011-05-22  Bruno Haible  <bruno@clisp.org>
8480
8481         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8482         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8483         here...
8484         * modules/wcsxfrm (configure.ac): ... to here.
8485
8486 2011-05-22  Bruno Haible  <bruno@clisp.org>
8487
8488         wcstok: Move AC_LIBOBJ invocations to module description.
8489         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8490         * modules/wcstok (configure.ac): ... to here.
8491
8492 2011-05-22  Bruno Haible  <bruno@clisp.org>
8493
8494         wcsstr: Move AC_LIBOBJ invocations to module description.
8495         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8496         * modules/wcsstr (configure.ac): ... to here.
8497
8498 2011-05-22  Bruno Haible  <bruno@clisp.org>
8499
8500         wcsspn: Move AC_LIBOBJ invocations to module description.
8501         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8502         * modules/wcsspn (configure.ac): ... to here.
8503
8504 2011-05-22  Bruno Haible  <bruno@clisp.org>
8505
8506         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8507         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8508         gl_PREREQ_WCSRTOMBS invocations from here...
8509         * modules/wcsrtombs (configure.ac): ... to here.
8510
8511 2011-05-22  Bruno Haible  <bruno@clisp.org>
8512
8513         wcsrchr: Move AC_LIBOBJ invocations to module description.
8514         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8515         here...
8516         * modules/wcsrchr (configure.ac): ... to here.
8517
8518 2011-05-22  Bruno Haible  <bruno@clisp.org>
8519
8520         wcspbrk: Move AC_LIBOBJ invocations to module description.
8521         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8522         here...
8523         * modules/wcspbrk (configure.ac): ... to here.
8524
8525 2011-05-22  Bruno Haible  <bruno@clisp.org>
8526
8527         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8528         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8529         gl_PREREQ_WCSNRTOMBS invocations from here...
8530         * modules/wcsnrtombs (configure.ac): ... to here.
8531
8532 2011-05-22  Bruno Haible  <bruno@clisp.org>
8533
8534         wcsnlen: Move AC_LIBOBJ invocations to module description.
8535         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8536         here...
8537         * modules/wcsnlen (configure.ac): ... to here.
8538
8539 2011-05-22  Bruno Haible  <bruno@clisp.org>
8540
8541         wcsncpy: Move AC_LIBOBJ invocations to module description.
8542         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8543         here...
8544         * modules/wcsncpy (configure.ac): ... to here.
8545
8546 2011-05-22  Bruno Haible  <bruno@clisp.org>
8547
8548         wcsncmp: Move AC_LIBOBJ invocations to module description.
8549         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8550         here...
8551         * modules/wcsncmp (configure.ac): ... to here.
8552
8553 2011-05-22  Bruno Haible  <bruno@clisp.org>
8554
8555         wcsncat: Move AC_LIBOBJ invocations to module description.
8556         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8557         here...
8558         * modules/wcsncat (configure.ac): ... to here.
8559
8560 2011-05-22  Bruno Haible  <bruno@clisp.org>
8561
8562         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8563         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8564         from here...
8565         * modules/wcsncasecmp (configure.ac): ... to here.
8566
8567 2011-05-22  Bruno Haible  <bruno@clisp.org>
8568
8569         wcslen: Move AC_LIBOBJ invocations to module description.
8570         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8571         * modules/wcslen (configure.ac): ... to here.
8572
8573 2011-05-22  Bruno Haible  <bruno@clisp.org>
8574
8575         wcsdup: Move AC_LIBOBJ invocations to module description.
8576         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8577         * modules/wcsdup (configure.ac): ... to here.
8578
8579 2011-05-22  Bruno Haible  <bruno@clisp.org>
8580
8581         wcscspn: Move AC_LIBOBJ invocations to module description.
8582         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8583         here...
8584         * modules/wcscspn (configure.ac): ... to here.
8585
8586 2011-05-22  Bruno Haible  <bruno@clisp.org>
8587
8588         wcscpy: Move AC_LIBOBJ invocations to module description.
8589         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8590         * modules/wcscpy (configure.ac): ... to here.
8591
8592 2011-05-22  Bruno Haible  <bruno@clisp.org>
8593
8594         wcscoll: Move AC_LIBOBJ invocations to module description.
8595         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8596         here...
8597         * modules/wcscoll (configure.ac): ... to here.
8598
8599 2011-05-22  Bruno Haible  <bruno@clisp.org>
8600
8601         wcscmp: Move AC_LIBOBJ invocations to module description.
8602         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8603         * modules/wcscmp (configure.ac): ... to here.
8604
8605 2011-05-22  Bruno Haible  <bruno@clisp.org>
8606
8607         wcschr: Move AC_LIBOBJ invocations to module description.
8608         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8609         * modules/wcschr (configure.ac): ... to here.
8610
8611 2011-05-22  Bruno Haible  <bruno@clisp.org>
8612
8613         wcscat: Move AC_LIBOBJ invocations to module description.
8614         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8615         * modules/wcscat (configure.ac): ... to here.
8616
8617 2011-05-22  Bruno Haible  <bruno@clisp.org>
8618
8619         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8620         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8621         here...
8622         * modules/wcscasecmp (configure.ac): ... to here.
8623
8624 2011-05-22  Bruno Haible  <bruno@clisp.org>
8625
8626         wcrtomb: Move AC_LIBOBJ invocations to module description.
8627         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8628         invocations from here...
8629         * modules/wcrtomb (configure.ac): ... to here.
8630
8631 2011-05-22  Bruno Haible  <bruno@clisp.org>
8632
8633         wcpncpy: Move AC_LIBOBJ invocations to module description.
8634         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8635         here...
8636         * modules/wcpncpy (configure.ac): ... to here.
8637
8638 2011-05-22  Bruno Haible  <bruno@clisp.org>
8639
8640         wcpcpy: Move AC_LIBOBJ invocations to module description.
8641         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8642         * modules/wcpcpy (configure.ac): ... to here.
8643
8644 2011-05-22  Bruno Haible  <bruno@clisp.org>
8645
8646         waitpid: Move AC_LIBOBJ invocations to module description.
8647         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8648         invocation from here...
8649         * modules/waitpid (configure.ac): ... to here.
8650
8651 2011-05-22  Bruno Haible  <bruno@clisp.org>
8652
8653         utimensat: Move AC_LIBOBJ invocations to module description.
8654         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8655         here...
8656         * modules/utimensat (configure.ac): ... to here.
8657
8658 2011-05-22  Bruno Haible  <bruno@clisp.org>
8659
8660         usleep: Move AC_LIBOBJ invocations to module description.
8661         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8662         here...
8663         * modules/usleep (configure.ac): ... to here.
8664
8665 2011-05-22  Bruno Haible  <bruno@clisp.org>
8666
8667         unlockpt: Move AC_LIBOBJ invocations to module description.
8668         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8669         gl_PREREQ_UNLOCKPT invocations from here...
8670         * modules/unlockpt (configure.ac): ... to here.
8671
8672 2011-05-22  Bruno Haible  <bruno@clisp.org>
8673
8674         unlink: Respect rules for use of AC_LIBOBJ.
8675         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8676         * modules/unlink (configure.ac): ... to here.
8677
8678 2011-05-22  Bruno Haible  <bruno@clisp.org>
8679
8680         uname: Move AC_LIBOBJ invocations to module description.
8681         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8682         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8683         here...
8684         * modules/uname (configure.ac): ... to here.
8685
8686 2011-05-22  Bruno Haible  <bruno@clisp.org>
8687
8688         ttyname_r: Move AC_LIBOBJ invocations to module description.
8689         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8690         gl_PREREQ_TTYNAME_R invocations from here...
8691         * modules/ttyname_r (configure.ac): ... to here.
8692
8693 2011-05-22  Bruno Haible  <bruno@clisp.org>
8694
8695         tsearch: Move AC_LIBOBJ invocations to module description.
8696         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8697         invocations from here...
8698         * modules/tsearch (configure.ac): ... to here.
8699
8700 2011-05-22  Bruno Haible  <bruno@clisp.org>
8701
8702         towctrans: Move AC_LIBOBJ invocations to module description.
8703         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8704         AC_LIBOBJ invocation from here...
8705         * modules/towctrans (configure.ac): ... to here.
8706
8707 2011-05-22  Bruno Haible  <bruno@clisp.org>
8708
8709         tmpfile: Move AC_LIBOBJ invocations to module description.
8710         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8711         invocations from here...
8712         * modules/tmpfile (configure.ac): ... to here.
8713
8714 2011-05-22  Bruno Haible  <bruno@clisp.org>
8715
8716         times: Move AC_LIBOBJ invocations to module description.
8717         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8718         * modules/times (configure.ac): ... to here.
8719
8720 2011-05-22  Bruno Haible  <bruno@clisp.org>
8721
8722         time_r: Move AC_LIBOBJ invocations to module description.
8723         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8724         invocations from here...
8725         * modules/time_r (configure.ac): ... to here.
8726
8727 2011-05-22  Bruno Haible  <bruno@clisp.org>
8728
8729         timegm: Move AC_LIBOBJ invocations to module description.
8730         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8731         invocations from here...
8732         * modules/timegm (configure.ac): ... to here.
8733
8734 2011-05-22  Bruno Haible  <bruno@clisp.org>
8735
8736         tcgetsid: Move AC_LIBOBJ invocations to module description.
8737         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8738         and gl_PREREQ_TCGETSID invocations from here...
8739         * modules/tcgetsid (configure.ac): ... to here.
8740         (Depends-on): Update conditions.
8741
8742 2011-05-22  Bruno Haible  <bruno@clisp.org>
8743
8744         symlinkat: Move AC_LIBOBJ invocations to module description.
8745         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8746         here...
8747         * modules/symlinkat (configure.ac): ... to here.
8748
8749 2011-05-22  Bruno Haible  <bruno@clisp.org>
8750
8751         symlink: Move AC_LIBOBJ invocations to module description.
8752         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8753         here...
8754         * modules/symlink (configure.ac): ... to here.
8755
8756 2011-05-22  Bruno Haible  <bruno@clisp.org>
8757
8758         strverscmp: Move AC_LIBOBJ invocations to module description.
8759         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8760         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8761         from here...
8762         * modules/strverscmp (configure.ac): ... to here.
8763
8764 2011-05-22  Bruno Haible  <bruno@clisp.org>
8765
8766         strtok_r: Move AC_LIBOBJ invocations to module description.
8767         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8768         and gl_PREREQ_STRTOK_R invocations from here...
8769         * modules/strtok_r (configure.ac): ... to here.
8770         (Depends-on): Update conditions.
8771
8772 2011-05-22  Bruno Haible  <bruno@clisp.org>
8773
8774         strtoumax: Move AC_LIBOBJ invocations to module description.
8775         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8776         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8777         from here...
8778         * modules/strtoumax (configure.ac): ... to here.
8779
8780 2011-05-22  Bruno Haible  <bruno@clisp.org>
8781
8782         strtoimax: Move AC_LIBOBJ invocations to module description.
8783         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8784         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8785         from here...
8786         * modules/strtoimax (configure.ac): ... to here.
8787
8788 2011-05-22  Bruno Haible  <bruno@clisp.org>
8789
8790         strtoull: Move AC_LIBOBJ invocations to module description.
8791         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8792         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8793         from here...
8794         * modules/strtoull (configure.ac): ... to here.
8795
8796 2011-05-22  Bruno Haible  <bruno@clisp.org>
8797
8798         strtoll: Move AC_LIBOBJ invocations to module description.
8799         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8800         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8801         here...
8802         * modules/strtoll (configure.ac): ... to here.
8803
8804 2011-05-22  Bruno Haible  <bruno@clisp.org>
8805
8806         strtoul: Move AC_LIBOBJ invocations to module description.
8807         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8808         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8809         * modules/strtoul (configure.ac): ... to here.
8810
8811 2011-05-22  Bruno Haible  <bruno@clisp.org>
8812
8813         strtol: Move AC_LIBOBJ invocations to module description.
8814         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8815         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8816         * modules/strtol (configure.ac): ... to here.
8817
8818 2011-05-22  Bruno Haible  <bruno@clisp.org>
8819
8820         strtod: Move AC_LIBOBJ invocations to module description.
8821         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8822         invocations from here...
8823         * modules/strtod (configure.ac): ... to here.
8824
8825 2011-05-22  Bruno Haible  <bruno@clisp.org>
8826
8827         strstr*: Move AC_LIBOBJ invocations to module description.
8828         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8829         invocations from here...
8830         * modules/strstr-simple (configure.ac): ... to here.
8831         * modules/strstr (configure.ac): ... and here.
8832
8833 2011-05-22  Bruno Haible  <bruno@clisp.org>
8834
8835         strsignal: Move AC_LIBOBJ invocations to module description.
8836         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8837         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8838         * modules/strsignal (configure.ac): ... to here.
8839         (Depends-on): Update conditions.
8840
8841 2011-05-22  Bruno Haible  <bruno@clisp.org>
8842
8843         strsep: Move AC_LIBOBJ invocations to module description.
8844         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8845         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8846         here...
8847         * modules/strsep (configure.ac): ... to here.
8848
8849 2011-05-22  Bruno Haible  <bruno@clisp.org>
8850
8851         strptime: Move AC_LIBOBJ invocations to module description.
8852         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8853         gl_PREREQ_STRPTIME invocations from here...
8854         * modules/strptime (configure.ac): ... to here.
8855
8856 2011-05-22  Bruno Haible  <bruno@clisp.org>
8857
8858         strpbrk: Move AC_LIBOBJ invocations to module description.
8859         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8861         here...
8862         * modules/strpbrk (configure.ac): ... to here.
8863
8864 2011-05-22  Bruno Haible  <bruno@clisp.org>
8865
8866         strnlen: Move AC_LIBOBJ invocations to module description.
8867         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8868         invocations from here...
8869         * modules/strnlen (configure.ac): ... to here.
8870
8871 2011-05-22  Bruno Haible  <bruno@clisp.org>
8872
8873         strndup: Move AC_LIBOBJ invocations to module description.
8874         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8875         invocations from here...
8876         * modules/strndup (configure.ac): ... to here.
8877         (Depends-on): Update conditions.
8878
8879 2011-05-22  Bruno Haible  <bruno@clisp.org>
8880
8881         strncat: Move AC_LIBOBJ invocations to module description.
8882         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8883         invocations from here...
8884         * modules/strncat (configure.ac): ... to here.
8885
8886 2011-05-22  Bruno Haible  <bruno@clisp.org>
8887
8888         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8889         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8890         invocations from here...
8891         * modules/strdup (configure.ac): ... to here.
8892         * modules/strdup-posix (configure.ac): ... and here.
8893
8894 2011-05-22  Bruno Haible  <bruno@clisp.org>
8895
8896         strcspn: Move AC_LIBOBJ invocations to module description.
8897         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8898         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8899         here...
8900         * modules/strcspn (configure.ac): ... to here.
8901
8902 2011-05-22  Bruno Haible  <bruno@clisp.org>
8903
8904         strchrnul: Move AC_LIBOBJ invocations to module description.
8905         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8906         gl_PREREQ_STRCHRNUL invocations from here...
8907         * modules/strchrnul (configure.ac): ... to here.
8908
8909 2011-05-22  Bruno Haible  <bruno@clisp.org>
8910
8911         strcasestr*: Move AC_LIBOBJ invocations to module description.
8912         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8913         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8914         * modules/strcasestr-simple (configure.ac): ... to here.
8915         * modules/strcasestr (configure.ac): ... and here.
8916
8917 2011-05-22  Bruno Haible  <bruno@clisp.org>
8918
8919         strcase: Move AC_LIBOBJ invocations to module description.
8920         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8921         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8922         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8923         gl_PREREQ_STRNCASECMP invocations from here...
8924         * modules/strcase (configure.ac): ... to here.
8925
8926 2011-05-22  Bruno Haible  <bruno@clisp.org>
8927
8928         stpncpy: Move AC_LIBOBJ invocations to module description.
8929         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8930         here...
8931         * modules/stpncpy (configure.ac): ... to here.
8932
8933 2011-05-22  Bruno Haible  <bruno@clisp.org>
8934
8935         stpcpy: Move AC_LIBOBJ invocations to module description.
8936         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8937         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8938         here...
8939         * modules/stpcpy (configure.ac): ... to here.
8940
8941 2011-05-21  Bruno Haible  <bruno@clisp.org>
8942
8943         stat: Move AC_LIBOBJ invocations to module description.
8944         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8945         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8946         here...
8947         * modules/stat (configure.ac): ... to here.
8948
8949 2011-05-21  Bruno Haible  <bruno@clisp.org>
8950
8951         sleep: Move AC_LIBOBJ invocations to module description.
8952         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8953         * modules/sleep (configure.ac): ... to here.
8954
8955 2011-05-21  Bruno Haible  <bruno@clisp.org>
8956
8957         signbit: Move AC_LIBOBJ invocations to module description.
8958         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8959         * modules/signbit (configure.ac): ... to here.
8960
8961 2011-05-21  Bruno Haible  <bruno@clisp.org>
8962
8963         sigprocmask: Move AC_LIBOBJ invocations to module description.
8964         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8965         gl_PREREQ_SIGPROMASK invocations from here...
8966         * modules/sigprocmask (configure.ac): ... to here.
8967
8968 2011-05-21  Bruno Haible  <bruno@clisp.org>
8969
8970         sigaction: Move AC_LIBOBJ invocations to module description.
8971         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8972         gl_PREREQ_SIGACTION invocations from here...
8973         * modules/sigaction (configure.ac): ... to here.
8974
8975 2011-05-21  Bruno Haible  <bruno@clisp.org>
8976
8977         sig2str: Move AC_LIBOBJ invocations to module description.
8978         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8979         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8980         here...
8981         * modules/sig2str (configure.ac): ... to here.
8982
8983 2011-05-21  Bruno Haible  <bruno@clisp.org>
8984
8985         setlocale: Move AC_LIBOBJ invocations to module description.
8986         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8987         gl_PREREQ_SETLOCALE invocations from here...
8988         * modules/setlocale (configure.ac): ... to here.
8989
8990 2011-05-21  Bruno Haible  <bruno@clisp.org>
8991
8992         unsetenv: Move AC_LIBOBJ invocations to module description.
8993         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8994         and gl_PREREQ_UNSETENV invocations from here...
8995         * modules/unsetenv (configure.ac): ... to here.
8996         (Depends-on): Update.
8997
8998 2011-05-21  Bruno Haible  <bruno@clisp.org>
8999
9000         setenv: Move AC_LIBOBJ invocations to module description.
9001         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9002         here...
9003         * modules/setenv (configure.ac): ... to here.
9004
9005 2011-05-21  Bruno Haible  <bruno@clisp.org>
9006
9007         selinux-h: Move AC_LIBOBJ invocations to module description.
9008         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9009         AC_LIBOBJ invocation from here...
9010         * modules/selinux-h (configure.ac): ... to here.
9011
9012 2011-05-21  Bruno Haible  <bruno@clisp.org>
9013
9014         select: Respect rules for use of AC_LIBOBJ.
9015         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9016         here...
9017         * modules/select (configure.ac): ... to here.
9018
9019 2011-05-21  Bruno Haible  <bruno@clisp.org>
9020
9021         scandir: Move AC_LIBOBJ invocations to module description.
9022         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9023         invocations from here...
9024         * modules/scandir (configure.ac): ... to here.
9025
9026 2011-05-21  Bruno Haible  <bruno@clisp.org>
9027
9028         rpmatch: Move AC_LIBOBJ invocations to module description.
9029         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9030         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9031         here...
9032         * modules/rpmatch (configure.ac): ... to here.
9033
9034 2011-05-21  Bruno Haible  <bruno@clisp.org>
9035
9036         rmdir: Respect rules for use of AC_LIBOBJ.
9037         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9038         * modules/rmdir (configure.ac): ... to here.
9039
9040 2011-05-21  Bruno Haible  <bruno@clisp.org>
9041
9042         renameat: Move AC_LIBOBJ invocations to module description.
9043         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9044         here...
9045         * modules/renameat (configure.ac): ... to here.
9046
9047 2011-05-21  Bruno Haible  <bruno@clisp.org>
9048
9049         rename: Respect rules for use of AC_LIBOBJ.
9050         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9051         here...
9052         * modules/rename (configure.ac): ... to here.
9053
9054 2011-05-21  Bruno Haible  <bruno@clisp.org>
9055
9056         remove: Move AC_LIBOBJ invocations to module description.
9057         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9058         here...
9059         * modules/remove (configure.ac): ... to here.
9060
9061 2011-05-21  Bruno Haible  <bruno@clisp.org>
9062
9063         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9064         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9065         macro.
9066         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9067         * modules/relocatable-lib (configure.ac): ... to here.
9068         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9069         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9070
9071 2011-05-21  Bruno Haible  <bruno@clisp.org>
9072
9073         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9074         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9075         here...
9076         * modules/relocatable-prog (configure.ac): ... to here.
9077
9078 2011-05-21  Bruno Haible  <bruno@clisp.org>
9079
9080         regex: Move AC_LIBOBJ invocations to module description.
9081         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9082         invocations from here...
9083         * modules/regex (configure.ac): ... to here.
9084
9085 2011-05-21  Bruno Haible  <bruno@clisp.org>
9086
9087         realloc-*: Move AC_LIBOBJ invocations to module description.
9088         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9089         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9090         AC_LIBOBJ invocations from here...
9091         * modules/realloc-gnu (configure.ac): ... to here.
9092         * modules/realloc-posix (configure.ac): ... and here.
9093
9094 2011-05-21  Bruno Haible  <bruno@clisp.org>
9095
9096         readutmp: Move AC_LIBOBJ invocations to module description.
9097         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9098         * modules/readutmp (configure.ac): ... to here.
9099
9100 2011-05-21  Bruno Haible  <bruno@clisp.org>
9101
9102         readlinkat: Move AC_LIBOBJ invocations to module description.
9103         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9104         here...
9105         * modules/readlinkat (configure.ac): ... to here.
9106
9107 2011-05-21  Bruno Haible  <bruno@clisp.org>
9108
9109         readlink: Move AC_LIBOBJ invocations to module description.
9110         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9111         gl_PREREQ_READLINK invocations from here...
9112         * modules/readlink (configure.ac): ... to here.
9113
9114 2011-05-21  Bruno Haible  <bruno@clisp.org>
9115
9116         readline: Move AC_LIBOBJ invocations to module description.
9117         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9118         gl_PREREQ_READLINE invocations from here...
9119         * modules/readline (configure.ac): ... to here.
9120
9121 2011-05-21  Bruno Haible  <bruno@clisp.org>
9122
9123         read: Move AC_LIBOBJ invocations to module description.
9124         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9125         * modules/read (configure.ac): ... to here.
9126
9127 2011-05-21  Bruno Haible  <bruno@clisp.org>
9128
9129         rawmemchr: Move AC_LIBOBJ invocations to module description.
9130         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9131         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9132         from here...
9133         * modules/rawmemchr (configure.ac): ... to here.
9134
9135 2011-05-21  Bruno Haible  <bruno@clisp.org>
9136
9137         random_r: Move AC_LIBOBJ invocations to module description.
9138         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9139         gl_PREREQ_RANDOM_R invocations from here...
9140         * modules/random_r (configure.ac): ... to here.
9141
9142 2011-05-21  Bruno Haible  <bruno@clisp.org>
9143
9144         pwrite: Move AC_LIBOBJ invocations to module description.
9145         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9146         * modules/pwrite (configure.ac): ... to here.
9147
9148 2011-05-21  Bruno Haible  <bruno@clisp.org>
9149
9150         putenv: Move AC_LIBOBJ invocations to module description.
9151         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9152         * modules/putenv (configure.ac): ... to here.
9153
9154 2011-05-21  Bruno Haible  <bruno@clisp.org>
9155
9156         login_tty: Move AC_LIBOBJ invocations to module description.
9157         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9158         * modules/login_tty (configure.ac): ... to here.
9159
9160 2011-05-21  Bruno Haible  <bruno@clisp.org>
9161
9162         openpty: Move AC_LIBOBJ invocations to module description.
9163         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9164         * modules/openpty (configure.ac): ... to here.
9165
9166 2011-05-21  Bruno Haible  <bruno@clisp.org>
9167
9168         forkpty: Move AC_LIBOBJ invocations to module description.
9169         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9170         * modules/forkpty (configure.ac): ... to here.
9171
9172 2011-05-21  Bruno Haible  <bruno@clisp.org>
9173
9174         ptsname: Move AC_LIBOBJ invocations to module description.
9175         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9176         invocations from here...
9177         * modules/ptsname (configure.ac): ... to here.
9178
9179 2011-05-21  Bruno Haible  <bruno@clisp.org>
9180
9181         pread: Move AC_LIBOBJ invocations to module description.
9182         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9183         * modules/pread (configure.ac): ... to here.
9184
9185 2011-05-21  Bruno Haible  <bruno@clisp.org>
9186
9187         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9188         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9189         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9190         * modules/posix_spawn (configure.ac): ... to here.
9191         * modules/posix_spawnp (configure.ac): ... and here.
9192
9193 2011-05-21  Bruno Haible  <bruno@clisp.org>
9194
9195         popen: Move AC_LIBOBJ invocations to module description.
9196         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9197         invocations from here...
9198         * modules/popen (configure.ac): ... to here.
9199
9200 2011-05-21  Bruno Haible  <bruno@clisp.org>
9201
9202         poll: Move AC_LIBOBJ invocations to module description.
9203         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9204         invocations from here...
9205         * modules/poll (configure.ac): ... to here.
9206
9207 2011-05-21  Bruno Haible  <bruno@clisp.org>
9208
9209         pipe-posix: Move AC_LIBOBJ invocations to module description.
9210         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9211         * modules/pipe-posix (configure.ac): ... to here.
9212
9213 2011-05-21  Bruno Haible  <bruno@clisp.org>
9214
9215         openat: Respect rules for use of AC_LIBOBJ.
9216         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9217         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9218         * modules/openat (configure.ac): ... to here.
9219
9220 2011-05-21  Bruno Haible  <bruno@clisp.org>
9221
9222         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9223         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9224         invocation from here...
9225         * modules/obstack-printf (configure.ac): ... to here.
9226         * modules/obstack-printf-posix (configure.ac): ... and here.
9227
9228 2011-05-21  Bruno Haible  <bruno@clisp.org>
9229
9230         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9231         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9232         from here...
9233         * modules/nl_langinfo (configure.ac): ... to here.
9234
9235 2011-05-21  Bruno Haible  <bruno@clisp.org>
9236
9237         nanosleep: Move AC_LIBOBJ invocations to module description.
9238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9239         gl_PREREQ_NANOSLEEP invocations from here...
9240         * modules/nanosleep (configure.ac): ... to here.
9241
9242 2011-05-21  Bruno Haible  <bruno@clisp.org>
9243
9244         mountlist: Move AC_LIBOBJ invocations to module description.
9245         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9246         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9247         * modules/mountlist (configure.ac): ... to here.
9248
9249 2011-05-21  Bruno Haible  <bruno@clisp.org>
9250
9251         mktime: Respect rules for use of AC_LIBOBJ.
9252         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9253         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9254         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9255         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9256         * modules/mktime (configure.ac): ... to here.
9257         * modules/mktime-internal (configure.ac): ... and here.
9258         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9259
9260 2011-05-21  Bruno Haible  <bruno@clisp.org>
9261
9262         mkstemps: Move AC_LIBOBJ invocations to module description.
9263         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9264         here...
9265         * modules/mkstemps (configure.ac): ... to here.
9266
9267 2011-05-21  Bruno Haible  <bruno@clisp.org>
9268
9269         mkstemp: Move AC_LIBOBJ invocations to module description.
9270         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9271         gl_PREREQ_MKSTEMP invocations from here...
9272         * modules/mkstemp (configure.ac): ... to here.
9273
9274 2011-05-21  Bruno Haible  <bruno@clisp.org>
9275
9276         mkostemps: Move AC_LIBOBJ invocations to module description.
9277         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9278         here...
9279         * modules/mkostemps (configure.ac): ... to here.
9280
9281 2011-05-21  Bruno Haible  <bruno@clisp.org>
9282
9283         mkostemp: Move AC_LIBOBJ invocations to module description.
9284         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9285         gl_PREREQ_MKOSTEMP invocations from here...
9286         * modules/mkostemp (configure.ac): ... to here.
9287
9288 2011-05-21  Bruno Haible  <bruno@clisp.org>
9289
9290         mknod: Move AC_LIBOBJ invocations to module description.
9291         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9292         * modules/mknod (configure.ac): ... to here.
9293
9294 2011-05-21  Bruno Haible  <bruno@clisp.org>
9295
9296         mkfifoat: Move AC_LIBOBJ invocations to module description.
9297         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9298         here...
9299         * modules/mkfifoat (configure.ac): ... to here.
9300
9301 2011-05-21  Bruno Haible  <bruno@clisp.org>
9302
9303         mkfifo: Respect rules for use of AC_LIBOBJ.
9304         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9305         here...
9306         * modules/mkfifo (configure.ac): ... to here.
9307
9308 2011-05-21  Bruno Haible  <bruno@clisp.org>
9309
9310         mkdtemp: Move AC_LIBOBJ invocations to module description.
9311         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9312         invocations from here...
9313         * modules/mkdtemp (configure.ac): ... to here.
9314
9315 2011-05-21  Bruno Haible  <bruno@clisp.org>
9316
9317         mkdir: Move AC_LIBOBJ invocations to module description.
9318         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9319         * modules/mkdir (configure.ac): ... to here.
9320
9321 2011-05-21  Bruno Haible  <bruno@clisp.org>
9322
9323         memset: Move AC_LIBOBJ invocations to module description.
9324         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9325         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9326         here...
9327         * modules/memset (configure.ac): ... to here.
9328
9329 2011-05-21  Bruno Haible  <bruno@clisp.org>
9330
9331         memrchr: Move AC_LIBOBJ invocations to module description.
9332         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9333         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9334         here...
9335         * modules/memrchr (configure.ac): ... to here.
9336
9337 2011-05-21  Bruno Haible  <bruno@clisp.org>
9338
9339         mempcpy: Move AC_LIBOBJ invocations to module description.
9340         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9341         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9342         here...
9343         * modules/mempcpy (configure.ac): ... to here.
9344
9345 2011-05-21  Bruno Haible  <bruno@clisp.org>
9346
9347         memmove: Move AC_LIBOBJ invocations to module description.
9348         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9350         here...
9351         * modules/memmove (configure.ac): ... to here.
9352
9353 2011-05-21  Bruno Haible  <bruno@clisp.org>
9354
9355         memmem*: Move AC_LIBOBJ invocations to module description.
9356         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9357         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9358         here...
9359         (gl_FUNC_MEMMEM): ... and here...
9360         * modules/memmem-simple (configure.ac): ... to here.
9361         * modules/memmem (configure.ac): ... and here.
9362
9363 2011-05-21  Bruno Haible  <bruno@clisp.org>
9364
9365         memcpy: Move AC_LIBOBJ invocations to module description.
9366         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9367         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9368         here...
9369         * modules/memcpy (configure.ac): ... to here.
9370
9371 2011-05-21  Bruno Haible  <bruno@clisp.org>
9372
9373         memcmp: Simplify autoconf macro.
9374         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9375         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9376         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9377
9378 2011-05-21  Bruno Haible  <bruno@clisp.org>
9379
9380         memcmp: Move AC_LIBOBJ invocations to module description.
9381         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9382         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9383         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9384         * modules/memcmp (configure.ac): ... to here.
9385         (Depends-on): Update conditions.
9386
9387 2011-05-21  Bruno Haible  <bruno@clisp.org>
9388
9389         memchr: Respect rules for use of AC_LIBOBJ.
9390         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9391         invocations from here...
9392         * modules/memchr (configure.ac): ... to here.
9393
9394 2011-05-21  Bruno Haible  <bruno@clisp.org>
9395
9396         mbtowc: Move AC_LIBOBJ invocations to module description.
9397         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9398         invocations from here...
9399         * modules/mbtowc (configure.ac): ... to here.
9400
9401 2011-05-21  Bruno Haible  <bruno@clisp.org>
9402
9403         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9404         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9405         gl_PREREQ_MBSRTOWCS invocations from here...
9406         * modules/mbsrtowcs (configure.ac): ... to here.
9407
9408 2011-05-21  Bruno Haible  <bruno@clisp.org>
9409
9410         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9411         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9412         gl_PREREQ_MBSNRTOWCS invocations from here...
9413         * modules/mbsnrtowcs (configure.ac): ... to here.
9414
9415 2011-05-21  Bruno Haible  <bruno@clisp.org>
9416
9417         mbsinit: Move AC_LIBOBJ invocations to module description.
9418         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9419         invocations from here...
9420         * modules/mbsinit (configure.ac): ... to here.
9421
9422 2011-05-21  Bruno Haible  <bruno@clisp.org>
9423
9424         mbrlen: Move AC_LIBOBJ invocations to module description.
9425         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9426         invocations from here...
9427         * modules/mbrlen (configure.ac): ... to here.
9428
9429 2011-05-21  Bruno Haible  <bruno@clisp.org>
9430
9431         mbrtowc: Respect rules for use of AC_LIBOBJ.
9432         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9433         invocations from here...
9434         * modules/mbrtowc (configure.ac): ... to here.
9435
9436 2011-05-21  Bruno Haible  <bruno@clisp.org>
9437
9438         malloc-*: Move AC_LIBOBJ invocations to module description.
9439         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9440         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9441         AC_LIBOBJ invocations from here...
9442         * modules/malloc-gnu (configure.ac): ... to here.
9443         * modules/malloc-posix (configure.ac): ... and here.
9444
9445 2011-05-21  Bruno Haible  <bruno@clisp.org>
9446
9447         lstat, openat: Respect rules for use of AC_LIBOBJ.
9448         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9449         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9450         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9451         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9452         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9453         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9454         here.
9455         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9456
9457 2011-05-21  Bruno Haible  <bruno@clisp.org>
9458
9459         lseek: Move AC_LIBOBJ invocations to module description.
9460         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9461         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9462         * modules/lseek (configure.ac): ... to here.
9463
9464 2011-05-21  Bruno Haible  <bruno@clisp.org>
9465
9466         linkat: Move AC_LIBOBJ invocations to module description.
9467         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9468         here...
9469         * modules/linkat (configure.ac): ... to here.
9470
9471 2011-05-21  Bruno Haible  <bruno@clisp.org>
9472
9473         link: Respect rules for use of AC_LIBOBJ.
9474         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9475         * modules/link (configure.ac): ... to here.
9476
9477 2011-05-21  Bruno Haible  <bruno@clisp.org>
9478
9479         lchown: Move AC_LIBOBJ invocations to module description.
9480         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9481         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9482         * modules/lchown (configure.ac): ... to here.
9483
9484 2011-05-21  Bruno Haible  <bruno@clisp.org>
9485
9486         iswctype: Move AC_LIBOBJ invocations to module description.
9487         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9488         here...
9489         * modules/iswctype (configure.ac): ... to here.
9490
9491 2011-05-21  Bruno Haible  <bruno@clisp.org>
9492
9493         iswblank: Move AC_LIBOBJ invocations to module description.
9494         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9495         here...
9496         * modules/iswblank (configure.ac): ... to here.
9497
9498 2011-05-21  Bruno Haible  <bruno@clisp.org>
9499
9500         atanl: Move AC_LIBOBJ invocations to module description.
9501         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9502         * modules/atanl (configure.ac): ... to here.
9503
9504 2011-05-21  Bruno Haible  <bruno@clisp.org>
9505
9506         acosl: Move AC_LIBOBJ invocations to module description.
9507         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9508         * modules/acosl (configure.ac): ... to here.
9509
9510 2011-05-21  Bruno Haible  <bruno@clisp.org>
9511
9512         asinl: Respect rules for use of AC_LIBOBJ.
9513         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9514         * modules/asinl (configure.ac): ... to here.
9515
9516 2011-05-21  Bruno Haible  <bruno@clisp.org>
9517
9518         tanl: Move AC_LIBOBJ invocations to module description.
9519         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9520         * modules/tanl (configure.ac): ... to here.
9521
9522 2011-05-21  Bruno Haible  <bruno@clisp.org>
9523
9524         cosl: Move AC_LIBOBJ invocations to module description.
9525         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9526         * modules/cosl (configure.ac): ... to here.
9527
9528 2011-05-21  Bruno Haible  <bruno@clisp.org>
9529
9530         sinl: Move AC_LIBOBJ invocations to module description.
9531         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9532         * modules/sinl (configure.ac): ... to here.
9533
9534 2011-05-21  Bruno Haible  <bruno@clisp.org>
9535
9536         logl: Move AC_LIBOBJ invocations to module description.
9537         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9538         * modules/logl (configure.ac): ... to here.
9539
9540 2011-05-21  Bruno Haible  <bruno@clisp.org>
9541
9542         expl: Move AC_LIBOBJ invocations to module description.
9543         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9544         * modules/expl (configure.ac): ... to here.
9545
9546 2011-05-21  Bruno Haible  <bruno@clisp.org>
9547
9548         roundl: Move AC_LIBOBJ invocations to module description.
9549         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9550         * modules/roundl (configure.ac): ... to here.
9551
9552 2011-05-21  Bruno Haible  <bruno@clisp.org>
9553
9554         round: Move AC_LIBOBJ invocations to module description.
9555         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9556         * modules/round (configure.ac): ... to here.
9557
9558 2011-05-21  Bruno Haible  <bruno@clisp.org>
9559
9560         roundf: Move AC_LIBOBJ invocations to module description.
9561         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9562         * modules/roundf (configure.ac): ... to here.
9563
9564 2011-05-21  Bruno Haible  <bruno@clisp.org>
9565
9566         truncl: Move AC_LIBOBJ invocations to module description.
9567         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9568         * modules/truncl (configure.ac): ... to here.
9569
9570 2011-05-21  Bruno Haible  <bruno@clisp.org>
9571
9572         trunc: Move AC_LIBOBJ invocations to module description.
9573         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9574         * modules/trunc (configure.ac): ... to here.
9575
9576 2011-05-21  Bruno Haible  <bruno@clisp.org>
9577
9578         truncf: Move AC_LIBOBJ invocations to module description.
9579         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9580         * modules/truncf (configure.ac): ... to here.
9581
9582 2011-05-21  Bruno Haible  <bruno@clisp.org>
9583
9584         ceill: Move AC_LIBOBJ invocations to module description.
9585         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9586         * modules/ceill (configure.ac): ... to here.
9587
9588 2011-05-21  Bruno Haible  <bruno@clisp.org>
9589
9590         ceil: Move AC_LIBOBJ invocations to module description.
9591         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9592         * modules/ceil (configure.ac): ... to here.
9593
9594 2011-05-21  Bruno Haible  <bruno@clisp.org>
9595
9596         ceilf: Move AC_LIBOBJ invocations to module description.
9597         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9598         * modules/ceilf (configure.ac): ... to here.
9599
9600 2011-05-21  Bruno Haible  <bruno@clisp.org>
9601
9602         floorl: Respect rules for use of AC_LIBOBJ.
9603         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9604         * modules/floorl (configure.ac): ... to here.
9605
9606 2011-05-21  Bruno Haible  <bruno@clisp.org>
9607
9608         floor: Respect rules for use of AC_LIBOBJ.
9609         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9610         * modules/floor (configure.ac): ... to here.
9611
9612 2011-05-21  Bruno Haible  <bruno@clisp.org>
9613
9614         floorf: Move AC_LIBOBJ invocations to module description.
9615         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9616         * modules/floorf (configure.ac): ... to here.
9617
9618 2011-05-20  Bruno Haible  <bruno@clisp.org>
9619
9620         sqrtl: Respect rules for use of AC_LIBOBJ.
9621         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9622         * modules/sqrtl (configure.ac): ... to here.
9623
9624 2011-05-20  Bruno Haible  <bruno@clisp.org>
9625
9626         ldexpl: Respect rules for use of AC_LIBOBJ.
9627         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9628         * modules/ldexpl (configure.ac): ... to here.
9629
9630 2011-05-20  Bruno Haible  <bruno@clisp.org>
9631
9632         frexpl*: Respect rules for use of AC_LIBOBJ.
9633         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9634         invocation from here...
9635         * modules/frexpl (configure.ac): ... to here.
9636         * modules/frexpl-nolibm (configure.ac): ... and here.
9637
9638 2011-05-20  Bruno Haible  <bruno@clisp.org>
9639
9640         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9641         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9642         invocation from here...
9643         * modules/frexp (configure.ac): ... to here.
9644         * modules/frexp-nolibm (configure.ac): ... and here.
9645
9646 2011-05-20  Bruno Haible  <bruno@clisp.org>
9647
9648         isnan: Respect rules for use of AC_LIBOBJ.
9649         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9650         invocations here.
9651         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9652         REPLACE_ISNAN.
9653         * modules/isnand (configure.ac): Likewise.
9654         * modules/isnanl (configure.ac): Likewise.
9655
9656 2011-05-20  Bruno Haible  <bruno@clisp.org>
9657
9658         isnanl*: Respect rules for use of AC_LIBOBJ.
9659         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9660         invocation from here...
9661         * modules/isnanl (configure.ac): ... to here.
9662         * modules/isnanl-nolibm (configure.ac): ... and here.
9663
9664 2011-05-20  Bruno Haible  <bruno@clisp.org>
9665
9666         isnand*: Move AC_LIBOBJ invocations to module description.
9667         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9668         invocation from here...
9669         * modules/isnand (configure.ac): ... to here.
9670         * modules/isnand-nolibm (configure.ac): ... and here.
9671
9672 2011-05-20  Bruno Haible  <bruno@clisp.org>
9673
9674         isnanf*: Move AC_LIBOBJ invocations to module description.
9675         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9676         invocation from here...
9677         * modules/isnanf (configure.ac): ... to here.
9678         * modules/isnanf-nolibm (configure.ac): ... and here.
9679
9680 2011-05-20  Bruno Haible  <bruno@clisp.org>
9681
9682         isnan*: Separate the AC_LIBOBJ invocations.
9683         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9684         AC_LIBOBJ invocation.
9685         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9686         here.
9687         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9688         AC_LIBOBJ invocation.
9689         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9690         here.
9691         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9692         AC_LIBOBJ invocation.
9693         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9694         here.
9695         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9696
9697 2011-05-08  Bruno Haible  <bruno@clisp.org>
9698
9699         isinf: Move AC_LIBOBJ invocations to module description.
9700         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9701         * modules/isinf (configure.ac): ... to here.
9702
9703 2011-05-08  Bruno Haible  <bruno@clisp.org>
9704
9705         isfinite: Move AC_LIBOBJ invocations to module description.
9706         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9707         * modules/isfinite (configure.ac): ... to here.
9708
9709 2011-05-08  Bruno Haible  <bruno@clisp.org>
9710
9711         isblank: Move AC_LIBOBJ invocations to module description.
9712         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9713         here...
9714         * modules/isblank (configure.ac): ... to here.
9715
9716 2011-05-08  Bruno Haible  <bruno@clisp.org>
9717
9718         isapipe: Move AC_LIBOBJ invocations to module description.
9719         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9720         gl_PREREQ_ISAPIPE invocations from here...
9721         * modules/isapipe (configure.ac): ... to here.
9722         (Depends-on): Update condition.
9723
9724 2011-05-08  Bruno Haible  <bruno@clisp.org>
9725
9726         ioctl: Move AC_LIBOBJ invocations to module description.
9727         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9728         invocations from here...
9729         * modules/ioctl (configure.ac): ... to here.
9730         (Depends-on): Update condition.
9731
9732 2011-05-08  Bruno Haible  <bruno@clisp.org>
9733
9734         imaxdiv: Move AC_LIBOBJ invocations to module description.
9735         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9736         invocations from here...
9737         * modules/imaxdiv (configure.ac): ... to here.
9738
9739 2011-05-08  Bruno Haible  <bruno@clisp.org>
9740
9741         imaxabs: Move AC_LIBOBJ invocations to module description.
9742         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9743         invocations from here...
9744         * modules/imaxabs (configure.ac): ... to here.
9745
9746 2011-05-08  Bruno Haible  <bruno@clisp.org>
9747
9748         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9749         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9750         AC_LIBOBJ invocations from here...
9751         * modules/getaddrinfo (configure.ac): ... to here.
9752         (Depends-on): Add conditions.
9753
9754 2011-05-08  Bruno Haible  <bruno@clisp.org>
9755
9756         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9757         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9758         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9759         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9760         (gl_PREREQ_INET_PTON): ... from here.
9761         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9762         gl_PREREQ_INET_PTON here.
9763         (Depends-on): Update condition.
9764
9765 2011-05-08  Bruno Haible  <bruno@clisp.org>
9766
9767         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9768         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9769         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9770         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9771         (gl_PREREQ_INET_NTOP): ... from here.
9772         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9773         gl_PREREQ_INET_NTOP here.
9774         (Depends-on): Update condition.
9775
9776 2011-05-08  Bruno Haible  <bruno@clisp.org>
9777
9778         iconv_open: Move AC_LIBOBJ invocations to module description.
9779         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9780         AC_LIBOBJ invocations from here...
9781         * modules/iconv_open (configure.ac): ... to here.
9782
9783 2011-05-08  Bruno Haible  <bruno@clisp.org>
9784
9785         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9786         If module 'iconv_open' is among the main modules and module
9787         'iconv_open-utf' is among the tests dependencies, then
9788         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9789         return the special iconv_t values. Therefore iconv() and iconv_close()
9790         must support these special iconv_t values, already in lib, not only in
9791         tests.
9792         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9793         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9794         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9795         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9796         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9797         (Depends-on): Add the dependencies of iconv_open-utf.
9798         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9799         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9800         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9801
9802 2011-05-08  Bruno Haible  <bruno@clisp.org>
9803
9804         group-member: Move AC_LIBOBJ invocations to module description.
9805         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9806         gl_PREREQ_GROUP_MEMBER invocations from here...
9807         * modules/group-member (configure.ac): ... to here.
9808
9809 2011-05-08  Bruno Haible  <bruno@clisp.org>
9810
9811         grantpt: Move AC_LIBOBJ invocations to module description.
9812         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9813         invocations from here...
9814         * modules/grantpt (configure.ac): ... to here.
9815
9816 2011-05-08  Bruno Haible  <bruno@clisp.org>
9817
9818         glob: Move AC_LIBOBJ invocations to module description.
9819         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9820         from here...
9821         * modules/glob (configure.ac): ... to here.
9822
9823 2011-05-08  Bruno Haible  <bruno@clisp.org>
9824
9825         getusershell: Move AC_LIBOBJ invocations to module description.
9826         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9827         Move AC_LIBOBJ invocation from here...
9828         * modules/getusershell (configure.ac): ... to here.
9829         (Depends-on): Update condition.
9830
9831 2011-05-08  Bruno Haible  <bruno@clisp.org>
9832
9833         gettimeofday: Move AC_LIBOBJ invocations to module description.
9834         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9835         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9836         gl_PREREQ_GETTIMEOFDAY invocations from here...
9837         * modules/gettimeofday (configure.ac): ... to here.
9838
9839 2011-05-08  Bruno Haible  <bruno@clisp.org>
9840
9841         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9842         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9843         just gl_FUNC_TZSET.
9844         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9845         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9846         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9847         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9848
9849 2011-05-08  Bruno Haible  <bruno@clisp.org>
9850
9851         getsubopt: Move AC_LIBOBJ invocations to module description.
9852         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9853         gl_PREREQ_GETSUBOPT invocations from here...
9854         * modules/getsubopt (configure.ac): ... to here.
9855
9856 2011-05-08  Bruno Haible  <bruno@clisp.org>
9857
9858         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9859         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9860         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9861         * modules/getpass-gnu (configure.ac): ... to here.
9862
9863 2011-05-08  Bruno Haible  <bruno@clisp.org>
9864
9865         getpass: Move AC_LIBOBJ invocations to module description.
9866         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9867         gl_PREREQ_GETPASS invocations from here...
9868         * modules/getpass (configure.ac): ... to here.
9869
9870 2011-05-08  Bruno Haible  <bruno@clisp.org>
9871
9872         getpagesize: Move AC_LIBOBJ invocations to module description.
9873         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9874         from here...
9875         * modules/getpagesize (configure.ac): ... to here.
9876
9877 2011-05-08  Bruno Haible  <bruno@clisp.org>
9878
9879         getopt: Move AC_LIBOBJ invocations to module description.
9880         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9881         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9882         invocations from here...
9883         * modules/getopt-gnu (configure.ac): ... to here.
9884         * modules/getopt-posix (configure.ac): ... and here.
9885         (Depends-on): Update condition.
9886
9887 2011-05-08  Bruno Haible  <bruno@clisp.org>
9888
9889         getopt, argp: Respect rules for use of AC_LIBOBJ.
9890         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9891         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9892         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9893         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9894
9895 2011-05-08  Bruno Haible  <bruno@clisp.org>
9896
9897         getlogin_r: Move AC_LIBOBJ invocations to module description.
9898         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9899         gl_PREREQ_GETLOGIN_R invocations from here...
9900         * modules/getlogin_r (configure.ac): ... to here.
9901
9902 2011-05-08  Bruno Haible  <bruno@clisp.org>
9903
9904         getlogin: Move AC_LIBOBJ invocations to module description.
9905         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9906         here...
9907         * modules/getlogin (configure.ac): ... to here.
9908
9909 2011-05-08  Bruno Haible  <bruno@clisp.org>
9910
9911         getloadavg: Move AC_LIBOBJ invocations to module description.
9912         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9913         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9914         * modules/getloadavg (configure.ac): ... to here.
9915
9916 2011-05-08  Bruno Haible  <bruno@clisp.org>
9917
9918         gethrxtime: Move AC_LIBOBJ invocations to module description.
9919         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9920         LIB_GETHRXTIME from here...
9921         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9922         invocations from here...
9923         * modules/gethrxtime (configure.ac): ... to here.
9924
9925 2011-05-08  Bruno Haible  <bruno@clisp.org>
9926
9927         gethostname: Move AC_LIBOBJ invocations to module description.
9928         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9929         gl_PREREQ_GETHOSTNAME invocations from here...
9930         * modules/gethostname (configure.ac): ... to here.
9931
9932 2011-05-08  Bruno Haible  <bruno@clisp.org>
9933
9934         getgroups: Move AC_LIBOBJ invocations to module description.
9935         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9936         here...
9937         * modules/getgroups (configure.ac): ... to here.
9938
9939 2011-05-08  Bruno Haible  <bruno@clisp.org>
9940
9941         getdtablesize: Move AC_LIBOBJ invocations to module description.
9942         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9943         invocation from here...
9944         * modules/getdtablesize (configure.ac): ... to here.
9945
9946 2011-05-08  Bruno Haible  <bruno@clisp.org>
9947
9948         getdomainname: Move AC_LIBOBJ invocations to module description.
9949         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9950         gl_PREREQ_GETDOMAINNAME invocations from here...
9951         * modules/getdomainname (configure.ac): ... to here.
9952
9953 2011-05-08  Bruno Haible  <bruno@clisp.org>
9954
9955         getline: Move AC_LIBOBJ invocations to module description.
9956         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9957         invocations from here...
9958         * modules/getline (configure.ac): ... to here.
9959
9960 2011-05-08  Bruno Haible  <bruno@clisp.org>
9961
9962         getline: Simplify.
9963         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9964         It's already handled through the module dependency.
9965
9966 2011-05-08  Bruno Haible  <bruno@clisp.org>
9967
9968         getdelim: Move AC_LIBOBJ invocations to module description.
9969         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9970         and gl_PREREQ_GETDELIM invocations from here...
9971         * modules/getdelim (configure.ac): ... to here.
9972         (Depends-on): Fix condition.
9973
9974 2011-05-08  Bruno Haible  <bruno@clisp.org>
9975
9976         getcwd: Move AC_LIBOBJ invocations to module description.
9977         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9978         invocations from here...
9979         * modules/getcwd (configure.ac): ... to here.
9980
9981 2011-05-08  Bruno Haible  <bruno@clisp.org>
9982
9983         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9984         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9985         here...
9986         * modules/getcwd-lgpl (configure.ac): ... to here.
9987
9988 2011-05-07  Bruno Haible  <bruno@clisp.org>
9989
9990         crypto/gc: Move AC_LIBOBJ invocations to module description.
9991         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9992         * modules/crypto/gc (configure.ac): ... to here.
9993
9994 2011-05-07  Bruno Haible  <bruno@clisp.org>
9995
9996         fwriting: Move AC_LIBOBJ invocations to module description.
9997         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9998         here...
9999         * modules/fwriting (configure.ac): ... to here.
10000
10001 2011-05-07  Bruno Haible  <bruno@clisp.org>
10002
10003         fwritable: Move AC_LIBOBJ invocations to module description.
10004         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10005         here...
10006         * modules/fwritable (configure.ac): ... to here.
10007
10008 2011-05-07  Bruno Haible  <bruno@clisp.org>
10009
10010         futimens: Move AC_LIBOBJ invocations to module description.
10011         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10012         here...
10013         * modules/futimens (configure.ac): ... to here.
10014
10015 2011-05-07  Bruno Haible  <bruno@clisp.org>
10016
10017         ftruncate: Move AC_LIBOBJ invocations to module description.
10018         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10019         gl_PREREQ_FTRUNCATE invocations from here...
10020         * modules/ftruncate (configure.ac): ... to here.
10021
10022 2011-05-07  Bruno Haible  <bruno@clisp.org>
10023
10024         fsync: Move AC_LIBOBJ invocations to module description.
10025         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10026         invocations from here...
10027         * modules/fsync (configure.ac): ... to here.
10028
10029 2011-05-07  Bruno Haible  <bruno@clisp.org>
10030
10031         fsusage: Move AC_LIBOBJ invocations to module description.
10032         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10033         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10034         * modules/fsusage (configure.ac): ... to here.
10035
10036 2011-05-07  Bruno Haible  <bruno@clisp.org>
10037
10038         freopen: Move AC_LIBOBJ invocations to module description.
10039         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10040         invocations from here...
10041         * modules/freopen (configure.ac): ... to here.
10042
10043 2011-05-07  Bruno Haible  <bruno@clisp.org>
10044
10045         free: Move AC_LIBOBJ invocations to module description.
10046         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10047         invocations from here...
10048         * modules/free (configure.ac): ... to here.
10049
10050 2011-05-07  Bruno Haible  <bruno@clisp.org>
10051
10052         freadable: Move AC_LIBOBJ invocations to module description.
10053         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10054         here...
10055         * modules/freadable (configure.ac): ... to here.
10056
10057 2011-05-07  Bruno Haible  <bruno@clisp.org>
10058
10059         fpurge: Move AC_LIBOBJ invocations to module description.
10060         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10061         invocations from here...
10062         * modules/fpurge (configure.ac): ... to here.
10063
10064 2011-05-07  Bruno Haible  <bruno@clisp.org>
10065
10066         fpending: Move AC_LIBOBJ invocations to module description.
10067         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10068         gl_FUNC_FPENDING.
10069         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10070         invocations from here...
10071         * modules/fpending (configure.ac): ... to here.
10072
10073 2011-05-07  Bruno Haible  <bruno@clisp.org>
10074
10075         fopen: Move AC_LIBOBJ invocations to module description.
10076         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10077         invocations from here...
10078         * modules/fopen (configure.ac): ... to here.
10079
10080 2011-05-07  Bruno Haible  <bruno@clisp.org>
10081
10082         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10083         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10084         gl_FUNC_FNMATCH_POSIX.
10085         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10086         invocations from here...
10087         * modules/fnmatch (configure.ac): ... to here.
10088         * modules/fnmatch-gnu (configure.ac): ... and here.
10089
10090 2011-05-07  Bruno Haible  <bruno@clisp.org>
10091
10092         flock: Move AC_LIBOBJ invocations to module description.
10093         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10094         invocations from here...
10095         * modules/flock (configure.ac): ... to here.
10096
10097 2011-05-07  Bruno Haible  <bruno@clisp.org>
10098
10099         fileblocks: Move AC_LIBOBJ invocations to module description.
10100         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10101         gl_PREREQ_FILEBLOCKS invocations from here...
10102         * modules/fileblocks (configure.ac): ... to here.
10103
10104 2011-05-06  Bruno Haible  <bruno@clisp.org>
10105
10106         fflush: Move AC_LIBOBJ invocations to module description.
10107         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10108         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10109         invocations from here...
10110         * modules/fflush (configure.ac): ... to here.
10111
10112 2011-05-06  Bruno Haible  <bruno@clisp.org>
10113
10114         fdopendir: Move AC_LIBOBJ invocations to module description.
10115         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10116         here...
10117         * modules/fdopendir (configure.ac): ... to here.
10118         (Depends-on): Improve conditions.
10119
10120 2011-05-06  Bruno Haible  <bruno@clisp.org>
10121
10122         _Exit: Move AC_LIBOBJ invocations to module description.
10123         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10124         invocations from here...
10125         * modules/_Exit (configure.ac): ... to here.
10126
10127 2011-05-21  Bruno Haible  <bruno@clisp.org>
10128
10129         euidaccess: Respect rules for use of AC_LIBOBJ.
10130         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10131         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10132         from here...
10133         * modules/euidaccess (configure.ac): ... to here.
10134
10135 2011-05-06  Bruno Haible  <bruno@clisp.org>
10136
10137         error: Move AC_LIBOBJ invocations to module description.
10138         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10139         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10140         invocations from here...
10141         * modules/error (configure.ac): ... to here.
10142
10143 2011-05-06  Bruno Haible  <bruno@clisp.org>
10144
10145         duplocale: Move AC_LIBOBJ invocations to module description.
10146         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10147         gl_PREREQ_DUPLOCALE invocations from here...
10148         * modules/duplocale (configure.ac): ... to here.
10149
10150 2011-05-05  Bruno Haible  <bruno@clisp.org>
10151
10152         dirfd: Move AC_LIBOBJ invocations to module description.
10153         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10154         gl_FUNC_DIRFD.
10155         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10156         here...
10157         * modules/dirfd (configure.ac): ... to here.
10158         (Depends-on): Fix condition.
10159
10160 2011-05-05  Bruno Haible  <bruno@clisp.org>
10161
10162         chown: Respect rules for use of AC_LIBOBJ.
10163         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10164         * modules/chown (configure.ac): ... to here.
10165
10166 2011-05-05  Bruno Haible  <bruno@clisp.org>
10167
10168         chdir-long: Move AC_LIBOBJ invocations to module description.
10169         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10170         gl_PREREQ_CHDIR_LONG invocations from here...
10171         * modules/chdir-long (configure.ac): ... to here.
10172
10173 2011-05-05  Bruno Haible  <bruno@clisp.org>
10174
10175         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10176         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10177         from here...
10178         * modules/canonicalize-lgpl (configure.ac): ... to here.
10179
10180 2011-05-05  Bruno Haible  <bruno@clisp.org>
10181
10182         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10183         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10184         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10185         REPLACE_CALLOC.
10186         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10187         * modules/calloc-gnu (configure.ac): Likewise.
10188
10189 2011-05-05  Bruno Haible  <bruno@clisp.org>
10190
10191         btowc: Move AC_LIBOBJ invocations to module description.
10192         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10193         invocations from here...
10194         * modules/btowc (configure.ac): ... to here.
10195
10196 2011-05-21  Bruno Haible  <bruno@clisp.org>
10197
10198         atexit: Move AC_LIBOBJ invocations to module description.
10199         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10200         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10201         here...
10202         * modules/atexit (configure.ac): ... to here.
10203
10204 2011-05-05  Bruno Haible  <bruno@clisp.org>
10205
10206         atoll: Move AC_LIBOBJ invocations to module description.
10207         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10208         invocations from here...
10209         * modules/atoll (configure.ac): ... to here.
10210
10211 2011-05-05  Bruno Haible  <bruno@clisp.org>
10212
10213         argz: Move AC_LIBOBJ invocations to module description.
10214         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10215         * modules/argz (configure.ac): ... to here.
10216
10217 2011-05-05  Bruno Haible  <bruno@clisp.org>
10218
10219         alphasort: Move AC_LIBOBJ invocations to module description.
10220         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10221         gl_PREREQ_ALPHASORT invocations from here...
10222         * modules/alphasort (configure.ac): ... to here.
10223
10224 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10225
10226         verify: new macro verify_expr; verify_true deprecated
10227         * NEWS: Mention this.
10228         * doc/verify.texi (Compile-time Assertions): Document this.
10229         * lib/verify.h (verify_true): Deprecate.
10230         (verify_expr): New macro.
10231         * tests/test-verify.c (function): Test verify_expr.
10232
10233 2011-06-14  Jim Meyering  <meyering@redhat.com>
10234
10235         init.sh: give more portable redirection-related advice in a comment
10236         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10237         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10238         for lots of discussion.  Stefano Lattarini suggested the solution
10239         of putting "9>&2" after the command.  Reported by Bruno Haible.
10240
10241 2011-06-13  Bruno Haible  <bruno@clisp.org>
10242
10243         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10244         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10245         'none'.
10246
10247 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10248
10249         ftoastr: use strtof only if HAVE_STRTOF
10250         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10252         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10253         * modules/ftoastr (configure.ac): Check for strtof.
10254
10255 2011-06-13  Bruno Haible  <bruno@clisp.org>
10256
10257         gnulib-tool: Addendum to 2011-06-08 commit.
10258         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10259         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10260
10261 2011-06-13  Bruno Haible  <bruno@clisp.org>
10262
10263         fseeko: Provide a non-inline replacement of fseek().
10264         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10265         * modules/fseeko (Depends-on): Add fseek.
10266         * modules/fseek (License): Change to LGPLv2+.
10267
10268 2011-06-13  Bruno Haible  <bruno@clisp.org>
10269
10270         ftello: Provide a non-inline replacement of ftell().
10271         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10272         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10273         not have ftello() (such as on mingw).
10274         * modules/ftello (Depends-on): Add ftell.
10275         * modules/ftell (License): Change to LGPLv2+.
10276
10277 2011-05-07  Bruno Haible  <bruno@clisp.org>
10278
10279         ftell: Move AC_LIBOBJ invocations to module description.
10280         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10281         * modules/ftell (configure.ac): ... to here.
10282
10283 2011-05-07  Bruno Haible  <bruno@clisp.org>
10284
10285         ftello: Respect rules for use of AC_LIBOBJ.
10286         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10287         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10288         here...
10289         * modules/ftello (configure.ac): ... to here.
10290
10291 2011-05-07  Bruno Haible  <bruno@clisp.org>
10292
10293         fseeko: Simplify.
10294         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10295         (gl_FUNC_FSEEKO): Inline it here.
10296
10297 2011-05-07  Bruno Haible  <bruno@clisp.org>
10298
10299         fseek: Move AC_LIBOBJ invocations to module description.
10300         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10301         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10302         * modules/fseek (configure.ac): ... to here.
10303
10304 2011-05-07  Bruno Haible  <bruno@clisp.org>
10305
10306         fseek: Respect rules for use of AC_LIBOBJ.
10307         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10308         here...
10309         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10310
10311 2011-05-07  Bruno Haible  <bruno@clisp.org>
10312
10313         fseeko: Respect rules for use of AC_LIBOBJ.
10314         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10315         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10316         here...
10317         * modules/fseeko (configure.ac): ... to here.
10318
10319 2011-06-13  Bruno Haible  <bruno@clisp.org>
10320
10321         gnulib-tool: Allow comments in the 'Depends-on' section.
10322         * doc/gnulib.texi (Module description): Mention comment syntax in the
10323         Depends-on section.
10324         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10325
10326 2011-06-13  Bruno Haible  <bruno@clisp.org>
10327
10328         file-set.h: guard __attibute__ use, now that it's not always defined
10329         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10330         versions that support it.  This fixes a coreutils build failure with
10331         the vendor cc on HP-UX 11.31.
10332
10333 2011-06-12  Bruno Haible  <bruno@clisp.org>
10334
10335         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10336         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10337         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10338         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10339         (acl, aclsort): New declarations.
10340         (aclv_nontrivial): New declaration.
10341         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10342         (file_has_acl): Read also the second kind of HP-UX ACLs.
10343         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10344         kind of HP-UX ACLs if the first kind fails.
10345         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10346         second kind of HP-UX ACLs.
10347         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10348         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10349         agree.
10350         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10351         hpuxjfs.
10352         Handle hpuxjfs.
10353         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10354         hpuxjfs.
10355         Handle hpuxjfs.
10356         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10357         (func_test_same_acls): Use both lsacl and getacl.
10358         Handle hpuxjfs.
10359         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10360         (func_test_same_acls): Use both lsacl and getacl.
10361         Handle hpuxjfs.
10362
10363 2011-06-12  Bruno Haible  <bruno@clisp.org>
10364
10365         acl: Complete the 2010-08-10 fix.
10366         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10367         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10368         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10369         explicitly.
10370         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10371         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10372
10373 2011-06-12  Bruno Haible  <bruno@clisp.org>
10374
10375         spawn-pipe tests: Comments.
10376         * tests/test-spawn-pipe-child.c (main): Update comment.
10377         Reported by James Youngman <jay@gnu.org>.
10378
10379 2011-06-11  James Youngman  <jay@gnu.org>
10380
10381         New module 'stat-size'.
10382         * modules/stat-size: New module.  Provides macros for accessing
10383         file size information in instances of struct stat.  Depends on the
10384         fileblocks module because it calls st_blocks.
10385         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10386         * doc/gnulib.texi: Include stat-size.texi.
10387         * doc/stat-size.texi: Documentation for this module.
10388         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10389         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10390         AC_STRUCT_ST_BLOCKS.
10391
10392 2011-06-09  Bruno Haible  <bruno@clisp.org>
10393
10394         thread: Support pthreads-win32.
10395         * lib/glthread/thread.h (gl_thread_self): Define differently on
10396         pthreads-win32.
10397         (gl_null_thread): New declaration.
10398         (gl_thread_self_pointer): New macro.
10399         * lib/glthread/thread.c (gl_null_thread): New constant.
10400         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10401         gl_thread_self.
10402         * tests/test-tls.c: Likewise.
10403         Suggested by Paul Eggert. Reported by Eric Blake.
10404
10405 2011-06-09  Bruno Haible  <bruno@clisp.org>
10406
10407         thread: Fix confusion between NULL and 0.
10408         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10409         Reported by Paul Eggert.
10410
10411 2011-06-09  Bruno Haible  <bruno@clisp.org>
10412
10413         spawn-pipe tests: Avoid test failure on HP-UX 11.
10414         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10415         is closed.
10416
10417 2011-06-09  Bruno Haible  <bruno@clisp.org>
10418
10419         acl tests: Fix compilation error on HP-UX 11.
10420         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10421
10422 2011-06-09  Bruno Haible  <bruno@clisp.org>
10423
10424         rmdir: Avoid test failure on HP-UX 10.20.
10425         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10426         EEXIST.
10427
10428 2011-06-08  Eric Blake  <eblake@redhat.com>
10429
10430         perror: fix test on mingw
10431         * modules/perror-tests (Depends-on): Add dup2.
10432
10433         strerror_r-posix: fix on MacOS
10434         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10435         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10436         logic bug.
10437         * lib/strerror_r.c (strerror_r): Fix the bug.
10438         * lib/strerror.c (strerror): Likewise.
10439         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10440         problem.
10441         * doc/posix-functions/strerror.texi (strerror): Likewise.
10442         * doc/posix-functions/perror.texi (perror): Likewise.
10443         * tests/test-strerror.c (main): Enhance test.
10444         * tests/test-strerror_r.c (main): Likewise.
10445
10446 2011-06-08  Bruno Haible  <bruno@clisp.org>
10447
10448         gnulib-tool: Better isolation between different gnulib-tool invocations.
10449         * gnulib-tool: New option --witness-c-macro.
10450         (witness_c_macro): New variable.
10451         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10452         AM_CPPFLAGS define it as a C macro.
10453         (func_emit_tests_Makefile_am): Likewise.
10454         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10455         read it from there.
10456         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10457         m4_define, not AC_DEFUN.
10458         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10459         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10460         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10461         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10462         s|...|...|, to substitute the values of the GNULIB_* module indicator
10463         variables.
10464         * modules/dirent (Makefile.am): Likewise.
10465         * modules/fcntl-h (Makefile.am): Likewise.
10466         * modules/iconv-h (Makefile.am): Likewise.
10467         * modules/langinfo (Makefile.am): Likewise.
10468         * modules/locale (Makefile.am): Likewise.
10469         * modules/math (Makefile.am): Likewise.
10470         * modules/netdb (Makefile.am): Likewise.
10471         * modules/poll-h (Makefile.am): Likewise.
10472         * modules/pty (Makefile.am): Likewise.
10473         * modules/search (Makefile.am): Likewise.
10474         * modules/signal (Makefile.am): Likewise.
10475         * modules/spawn (Makefile.am): Likewise.
10476         * modules/stdio (Makefile.am): Likewise.
10477         * modules/stdlib (Makefile.am): Likewise.
10478         * modules/string (Makefile.am): Likewise.
10479         * modules/sys_ioctl (Makefile.am): Likewise.
10480         * modules/sys_select (Makefile.am): Likewise.
10481         * modules/sys_socket (Makefile.am): Likewise.
10482         * modules/sys_stat (Makefile.am): Likewise.
10483         * modules/sys_times (Makefile.am): Likewise.
10484         * modules/sys_utsname (Makefile.am): Likewise.
10485         * modules/sys_wait (Makefile.am): Likewise.
10486         * modules/termios (Makefile.am): Likewise.
10487         * modules/time (Makefile.am): Likewise.
10488         * modules/unistd (Makefile.am): Likewise.
10489         * modules/wchar (Makefile.am): Likewise.
10490
10491 2011-06-08  Eric Blake  <eblake@redhat.com>
10492
10493         strerror: simplify replacement
10494         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10495         * modules/strerror (configure.ac): No prereqs needed here...
10496         * modules/strerror-override (configure.ac): ...but this needs it.
10497         (Files): Add file for needed prereq macro.
10498
10499 2011-06-08  Bruno Haible  <bruno@clisp.org>
10500
10501         strerror_r-posix: Tweaks.
10502         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10503         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10504         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10505         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10506         (gl_FUNC_STRERROR_R): ... to here.
10507         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10508
10509 2011-06-07  Eric Blake  <eblake@redhat.com>
10510
10511         perror: document fixed bugs
10512         * doc/posix-functions/perror.texi (perror): Document recent
10513         patches.
10514
10515 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10516
10517         stat-time: get_stat_birthtime failure is better-defined
10518         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10519         return a timestamp whose tv_sec and tv_nsec values are both -1.
10520         Previously, the spec said only that the tv_nsec value was negative.
10521         This upward-compatible change simplifies GNU tar a bit.
10522
10523 2011-06-07  Eric Blake  <eblake@redhat.com>
10524
10525         strerror_r-posix: work around cygwin 1.7.9
10526         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10527         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10528         bug without replacing strerror_r.
10529         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10530         strerror_r is buggy, but without requiring strerror_r compilation.
10531         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10532
10533         test-perror: relax test to ignore cygwin bug
10534         * tests/test-perror2.c (main): Relax test on requiring detection
10535         of stream errors, and use unbuffered stream.
10536         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10537         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10538         * doc/posix-functions/fputc.texi (fputc): Likewise.
10539         * doc/posix-functions/fputs.texi (fputs): Likewise.
10540         * doc/posix-functions/fputws.texi (fputws): Likewise.
10541         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10542         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10543         * doc/posix-functions/getopt.texi (getopt): Likewise.
10544         * doc/posix-functions/perror.texi (perror): Likewise.
10545         * doc/posix-functions/printf.texi (printf): Likewise.
10546         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10547         * doc/posix-functions/psignal.texi (psignal): Likewise.
10548         * doc/posix-functions/putc.texi (putc): Likewise.
10549         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10550         Likewise.
10551         * doc/posix-functions/putchar.texi (putchar): Likewise.
10552         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10553         Likewise.
10554         * doc/posix-functions/puts.texi (puts): Likewise.
10555         * doc/posix-functions/putwc.texi (putwc): Likewise.
10556         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10557         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10558         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10559         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10560         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10561         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10562         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10563         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10564
10565 2011-05-22  Bruno Haible  <bruno@clisp.org>
10566
10567         strerror: Move AC_LIBOBJ invocations to module description.
10568         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10569         gl_PREREQ_STRERROR invocations from here...
10570         * modules/strerror (configure.ac): ... to here.
10571
10572 2011-05-21  Bruno Haible  <bruno@clisp.org>
10573
10574         perror: Use common idiom.
10575         * modules/perror (configure.ac): Reorder statements.
10576
10577 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10578
10579         tests: fix usage message in 'mktempd_'
10580         * tests/init.sh (mktempd_): In the usage message, use literal
10581         'mktempd_', not '$ME' (which is even undefined), as the name of
10582         the subroutine.
10583
10584 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10585
10586         tests init: new function 'fatal_', for hard errors
10587         Before this patch, the only way offered by tests/init.sh to
10588         properly signal a hard error was the `framework_failure_'
10589         function.  But the error message issued by that function,
10590         as its name would suggest, refers to a set-up failure in the
10591         testsuite, while hard errors can obviously also be due to
10592         other reasons.  The best way to fix this inconsistency is to
10593         introduce a new function with a more general error message.
10594         * tests/init.sh (fatal_): New function.
10595
10596 2011-06-06  Eric Blake  <eblake@redhat.com>
10597
10598         canonicalize-lgpl: use common idiom
10599         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10600         over newer POSIX -Rf.
10601         Reported by Bruno Haible.
10602
10603         canonicalize-lgpl: work around AIX realpath bug
10604         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10605         * doc/posix-functions/realpath.texi (realpath): Document it.
10606         Reported by Bruno Haible.
10607
10608         strerror: work around FreeBSD bug
10609         * lib/strerror.c (strerror): Special case 0.
10610         Reported by Bruno Haible.
10611
10612         strerror-override: avoid bloating errno module
10613         * modules/errno (Files, configure.ac): Move replacement strings...
10614         * modules/strerror-override: ...to new module.
10615         * modules/strerror (Depends-on): Add strerror-override.
10616         * modules/strerror_r-posix (Depends-on): Likewise.
10617         * MODULES.html.sh: Document new module.
10618         Reported by Bruno Haible.
10619
10620 2011-06-06  Bruno Haible  <bruno@clisp.org>
10621
10622         spawn-pipe tests: Rename program.
10623         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10624         * tests/test-spawn-pipe-child.c: Update comment.
10625         * tests/test-spawn-pipe.sh: Update.
10626         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10627
10628         spawn-pipe tests: Link the child program only against libc.
10629         * tests/test-spawn-pipe-child.c: New file, extracted from
10630         tests/test-spawn-pipe.c.
10631         (main): Expect only one argument.
10632         (is_open): New function, copied from tests/test-pipe.c.
10633         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10634         (child_main): Remove function.
10635         (test_pipe): Pass only one argument to the child program.
10636         (main): Remove child process code. Expect the child program's name as
10637         first argument.
10638         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10639         argument.
10640         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10641         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10642         test-spawn-pipe-child against no libraries.
10643
10644 2011-06-06  Bruno Haible  <bruno@clisp.org>
10645
10646         careadlinkat: Avoid mismatch between ssize_t and int.
10647         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10648         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10649
10650 2011-06-06  Jim Meyering  <meyering@redhat.com>
10651
10652         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10653         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10654         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10655
10656 2011-06-05  Bruno Haible  <bruno@clisp.org>
10657
10658         ansi-c++-opt: Interoperability with libtool.
10659         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10660         set the variable to "no", not to ":".
10661         * NEWS: Mention the change.
10662
10663 2011-06-05  Bruno Haible  <bruno@clisp.org>
10664
10665         acl: Fix test failure on AIX 7.
10666         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10667         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10668
10669 2011-06-05  Bruno Haible  <bruno@clisp.org>
10670
10671         pipe-filter-ii: Fix test failure on AIX and IRIX.
10672         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10673         with EAGAIN, retry with a smaller buffer size.
10674
10675 2011-06-05  Bruno Haible  <bruno@clisp.org>
10676
10677         localename: Fix link dependencies.
10678         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10679         * modules/localename-tests (Makefile.am): Link test-localename with
10680         $(LIBTHREAD).
10681
10682 2011-06-05  Bruno Haible  <bruno@clisp.org>
10683
10684         error: Avoid gcc warning.
10685         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10686
10687 2011-06-05  Bruno Haible  <bruno@clisp.org>
10688
10689         unsetenv: Avoid gcc warning.
10690         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10691
10692 2011-06-05  Bruno Haible  <bruno@clisp.org>
10693
10694         setenv: Avoid gcc warning.
10695         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10696
10697 2011-06-05  Bruno Haible  <bruno@clisp.org>
10698
10699         sys_select: Ensure memset is declared also on AIX 7.
10700         * lib/sys_select.in.h: Include <string.h> also on AIX.
10701         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10702         self-contained also on AIX 7.1.
10703
10704 2011-06-04  Jim Meyering  <meyering@redhat.com>
10705
10706         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10707         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10708         function name, "error".
10709         (_gl_translatable_diag_func_re): New configurable variable.
10710
10711 2011-06-04  Bruno Haible  <bruno@clisp.org>
10712
10713         getopt: Avoid gcc warning.
10714         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10715
10716 2011-06-04  Bruno Haible  <bruno@clisp.org>
10717
10718         strerror_r: Fix comments.
10719         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10720         commit.
10721
10722 2011-06-04  Bruno Haible  <bruno@clisp.org>
10723
10724         perror: Fix compilation error.
10725         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10726         Undefine fprintf, not sprintf.
10727         * modules/perror (Depends-on): Remove intprops, verify.
10728
10729 2011-06-04  Bruno Haible  <bruno@clisp.org>
10730
10731         setlocale: Enable replacement on Cygwin 1.5.
10732         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10733         Cygwin 1.5.x.
10734         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10735         LC_CTYPE category also exists on Cygwin 1.5.x.
10736
10737 2011-06-04  Bruno Haible  <bruno@clisp.org>
10738
10739         strerror-override: Don't disable symbol renamings.
10740         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10741         * lib/strerror-override.c: Include config.h.
10742         (strerror_override): Don't undefine.
10743
10744 2011-06-03  Bruno Haible  <bruno@clisp.org>
10745
10746         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10747         * lib/localename.h: Update copyright header.
10748         * lib/localename.c: Likewise.
10749         * lib/relocatable.h: Likewise.
10750         * lib/relocatable.c: Likewise.
10751
10752 2011-06-02  Bruno Haible  <bruno@clisp.org>
10753
10754         doc: Fix a module name.
10755         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10756
10757 2011-06-02  Bruno Haible  <bruno@clisp.org>
10758
10759         pipe2: Remove dependency on 'nonblocking' module.
10760         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10761         O_NONBLOCK is defined by gnulib.
10762         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10763         is zero.
10764         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10765         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10766         defined by gnulib.
10767         (get_nonblocking_flag): New function.
10768         (main): Test O_NONBLOCK flag only if it is nonzero.
10769         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10770
10771 2011-06-03  Jim Meyering  <meyering@redhat.com>
10772
10773         maint: three new prohibit-header-without-use rules
10774         Prohibit use of cloexec.h, posixver.h, same.h without use.
10775         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10776         (sc_prohibit_posixver_without_use): Likewise.
10777         (sc_prohibit_same_without_use): Likewise.
10778
10779 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10780
10781         allocator: 'die' routine is now given requested size
10782         * lib/allocator.h (struct allocator.die): New size arg.
10783         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10784         If the actual problem is an ssize_t limitation, not a size_t or
10785         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10786
10787 2011-06-01  Eric Blake  <eblake@redhat.com>
10788
10789         strerror: drop strerror_r dependency
10790         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10791         * lib/strerror-override.c (strerror_override): ...to new file.
10792         * lib/strerror-override.h: Add prototype.
10793         * lib/strerror-impl.h: Delete.
10794         * lib/strerror.c (strerror): New implementation.
10795         * modules/errno (Files): Add new files.
10796         (configure.ac): Compile new file as appropriate.
10797         * modules/strerror (Files): Drop unused file.
10798         (Depends-on): Drop strerror_r-posix.
10799         * MODULES.html.sh: Document strerror_r-posix.
10800         Requested by Sam Steingold.
10801
10802         perror: call strerror_r directly
10803         * modules/perror (Files): Drop strerror-impl.h.
10804         * lib/perror.c (perror): Use our own stack buffer, rather than
10805         calling a wrapper that uses static storage.
10806         * doc/posix-functions/perror.texi (perror): Document a limitation
10807         of our replacement.
10808
10809         strerror_r: fix includes for FreeBSD
10810         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10811         since we use abort on some platforms.
10812         Reported by Matthias Bolte.
10813
10814 2011-05-31  Bruno Haible  <bruno@clisp.org>
10815
10816         Fix link errors in tests: openat-die uses gettext-h.
10817         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10818         against $(LIBINTL).
10819         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10820         against $(LIBINTL).
10821         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10822         $(LIBINTL).
10823         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10824         against $(LIBINTL).
10825         * modules/linkat-tests (Makefile.am): Link test-linkat against
10826         $(LIBINTL).
10827         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10828         $(LIBINTL).
10829         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10830         against $(LIBINTL).
10831         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10832         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10833         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10834         $(LIBINTL).
10835         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10836         $(LIBINTL).
10837         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10838         $(LIBINTL).
10839         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10840
10841 2011-05-31  Bruno Haible  <bruno@clisp.org>
10842
10843         Fix link errors in tests: wait-process uses gettext-h.
10844         * modules/nonblocking-pipe-tests (Makefile.am): Set
10845         test_nonblocking_pipe_main_LDADD.
10846         * modules/nonblocking-socket-tests (Makefile.am): Link
10847         test-nonblocking-socket-main against $(LIBINTL).
10848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10849
10850 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10851
10852         assert-h: work around 'verify' incompatibility
10853         * lib/verify.h: Use @...@ directives, not ifdef.
10854         * modules/assert-h (assert.h): Implement the directives.
10855         (assert.h): Substitute the symbol-prefix more consistently.
10856
10857 2011-05-29  Jim Meyering  <meyering@redhat.com>
10858
10859         trim: remove three superfluous assignments
10860         * lib/trim.c (trim2): Remove three superfluous assignments
10861         and correct brace positioning.
10862
10863 2011-05-29  Bruno Haible  <bruno@clisp.org>
10864
10865         wctype-h: Avoid namespace pollution on Solaris 2.6.
10866         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10867         identifiers.
10868         * doc/posix-headers/wctype.texi: Mention the problem.
10869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10870
10871 2011-05-28  Jim Meyering  <meyering@redhat.com>
10872
10873         parse-datetime.y: accommodate -Wstrict-overflow
10874         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10875         placate -Wstrict-overflow.
10876
10877         trim: avoid a warning from -O2 -Wstrict-overflow
10878         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10879
10880 2011-05-29  Bruno Haible  <bruno@clisp.org>
10881
10882         gnulib-tool: Fix bug in yesterday's commit.
10883         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10884         twice.
10885
10886 2011-05-29  Bruno Haible  <bruno@clisp.org>
10887
10888         Allow multiple gnulib generated include files to be combined.
10889         * gnulib-tool (func_compute_include_guard_prefix): New function.
10890         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10891         ${gl_include_guard_prefix} references.
10892         (func_import, func_create_testdir): Invoke
10893         func_compute_include_guard_prefix.
10894         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10895         * lib/ctype.in.h: Likewise.
10896         * lib/dirent.in.h: Likewise.
10897         * lib/errno.in.h: Likewise.
10898         * lib/fcntl.in.h: Likewise.
10899         * lib/float.in.h: Likewise.
10900         * lib/getopt.in.h: Likewise.
10901         * lib/iconv.in.h: Likewise.
10902         * lib/langinfo.in.h: Likewise.
10903         * lib/locale.in.h: Likewise.
10904         * lib/math.in.h: Likewise.
10905         * lib/netdb.in.h: Likewise.
10906         * lib/netinet_in.in.h: Likewise.
10907         * lib/poll.in.h: Likewise.
10908         * lib/pthread.in.h: Likewise.
10909         * lib/pty.in.h: Likewise.
10910         * lib/sched.in.h: Likewise.
10911         * lib/se-selinux.in.h: Likewise.
10912         * lib/search.in.h: Likewise.
10913         * lib/signal.in.h: Likewise.
10914         * lib/spawn.in.h: Likewise.
10915         * lib/stdarg.in.h: Likewise.
10916         * lib/stddef.in.h: Likewise.
10917         * lib/stdint.in.h: Likewise.
10918         * lib/stdio.in.h: Likewise.
10919         * lib/stdlib.in.h: Likewise.
10920         * lib/string.in.h: Likewise.
10921         * lib/strings.in.h: Likewise.
10922         * lib/sys_file.in.h: Likewise.
10923         * lib/sys_ioctl.in.h: Likewise.
10924         * lib/sys_select.in.h: Likewise.
10925         * lib/sys_socket.in.h: Likewise.
10926         * lib/sys_stat.in.h: Likewise.
10927         * lib/sys_time.in.h: Likewise.
10928         * lib/sys_times.in.h: Likewise.
10929         * lib/sys_uio.in.h: Likewise.
10930         * lib/sys_utsname.in.h: Likewise.
10931         * lib/sys_wait.in.h: Likewise.
10932         * lib/sysexits.in.h: Likewise.
10933         * lib/termios.in.h: Likewise.
10934         * lib/time.in.h: Likewise.
10935         * lib/unistd.in.h: Likewise.
10936         * lib/wchar.in.h: Likewise.
10937         * lib/wctype.in.h: Likewise.
10938         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10939         * modules/ctype (Makefile.am): Likewise.
10940         * modules/dirent (Makefile.am): Likewise.
10941         * modules/errno (Makefile.am): Likewise.
10942         * modules/fcntl-h (Makefile.am): Likewise.
10943         * modules/float (Makefile.am): Likewise.
10944         * modules/getopt-posix (Makefile.am): Likewise.
10945         * modules/iconv-h (Makefile.am): Likewise.
10946         * modules/langinfo (Makefile.am): Likewise.
10947         * modules/locale (Makefile.am): Likewise.
10948         * modules/math (Makefile.am): Likewise.
10949         * modules/netdb (Makefile.am): Likewise.
10950         * modules/netinet_in (Makefile.am): Likewise.
10951         * modules/poll-h (Makefile.am): Likewise.
10952         * modules/pthread (Makefile.am): Likewise.
10953         * modules/pty (Makefile.am): Likewise.
10954         * modules/sched (Makefile.am): Likewise.
10955         * modules/search (Makefile.am): Likewise.
10956         * modules/selinux-h (Makefile.am): Likewise.
10957         * modules/signal (Makefile.am): Likewise.
10958         * modules/spawn (Makefile.am): Likewise.
10959         * modules/stdarg (Makefile.am): Likewise.
10960         * modules/stddef (Makefile.am): Likewise.
10961         * modules/stdint (Makefile.am): Likewise.
10962         * modules/stdio (Makefile.am): Likewise.
10963         * modules/stdlib (Makefile.am): Likewise.
10964         * modules/string (Makefile.am): Likewise.
10965         * modules/strings (Makefile.am): Likewise.
10966         * modules/sys_file (Makefile.am): Likewise.
10967         * modules/sys_ioctl (Makefile.am): Likewise.
10968         * modules/sys_select (Makefile.am): Likewise.
10969         * modules/sys_socket (Makefile.am): Likewise.
10970         * modules/sys_stat (Makefile.am): Likewise.
10971         * modules/sys_time (Makefile.am): Likewise.
10972         * modules/sys_times (Makefile.am): Likewise.
10973         * modules/sys_uio (Makefile.am): Likewise.
10974         * modules/sys_utsname (Makefile.am): Likewise.
10975         * modules/sys_wait (Makefile.am): Likewise.
10976         * modules/sysexits (Makefile.am): Likewise.
10977         * modules/termios (Makefile.am): Likewise.
10978         * modules/time (Makefile.am): Likewise.
10979         * modules/unistd (Makefile.am): Likewise.
10980         * modules/wchar (Makefile.am): Likewise.
10981         * modules/wctype-h (Makefile.am): Likewise.
10982         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10983
10984 2011-05-29  Bruno Haible  <bruno@clisp.org>
10985
10986         assert-h: Allow multiple gnulib generated replacements to coexist.
10987         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10988
10989 2011-05-29  Bruno Haible  <bruno@clisp.org>
10990
10991         argp: Allow coexistence with strerror_r-posix module.
10992         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10993         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10994         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10995         not the glibc signature.
10996
10997 2011-05-28  Bruno Haible  <bruno@clisp.org>
10998
10999         gnulib-tool: Alternative structure of testdirs, similar to --import.
11000         * gnulib-tool: New option --single-configure.
11001         (func_usage): Document it.
11002         (single_configure): New variable.
11003         (func_modules_transitive_closure_separately,
11004         func_modules_transitive_closure_separately,
11005         func_determine_use_libtests, func_modules_add_dummy_separately,
11006         func_modules_to_filelist_separately): New functions, extracted from
11007         func_import.
11008         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11009         (func_import): Use the new functions.
11010         (func_create_testdir): Set final_modules. Handle $single_configure =
11011         true case.
11012
11013 2011-05-28  Bruno Haible  <bruno@clisp.org>
11014
11015         getloadavg: Remove an unreliable safety check.
11016         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11017         getloadavg.c is in place.
11018         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11019         Reported by Sam Steingold <sds@gnu.org>.
11020
11021 2011-05-28  Bruno Haible  <bruno@clisp.org>
11022
11023         doc: Cleanup yet another file produced by texinfo.tex.
11024         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11025
11026 2011-05-28  Bruno Haible  <bruno@clisp.org>
11027
11028         Finish the conditional dependencies mechanism.
11029         * gnulib-tool: New option --no-conditional-dependencies.
11030         (func_usage): Document it. Don't mark --conditional-dependencies as
11031         experimental.
11032         (cond_dependencies): The possible values can now be true, false, empty.
11033         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11034         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11035         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11036
11037 2011-05-28  Bruno Haible  <bruno@clisp.org>
11038
11039         doc: Use a recent texinfo.tex.
11040         * doc/Makefile (tex_opts): New variable.
11041         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11042
11043 2011-05-28  Jim Meyering  <meyering@redhat.com>
11044
11045         intprops.h: adjust comment to match code change
11046         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11047         only once, it *may* have side effects.  Also fix an unrelated typo.
11048         (_GL_INT_SIGNED): Likewise.
11049
11050 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11051
11052         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11053
11054 2011-05-26  Bruno Haible  <bruno@clisp.org>
11055
11056         mbsrchr: Avoid collision with system function on Interix.
11057         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11058         Reported by Markus Duft <mduft@gentoo.org>.
11059
11060 2011-05-15  James Youngman  <jay@gnu.org>
11061
11062         getopt: for ambiguous options, enumerate the possibilities.
11063         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11064         the ambiguous options when an ambiguous prefix is given. This was
11065         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11066         glibc change was
11067         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11068
11069 2011-05-25  Eric Blake  <eblake@redhat.com>
11070
11071         getcwd: work around mingw bug
11072         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11073         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11074         Reported by Matthias Bolte.
11075
11076 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11077
11078         test-intprops: disable -Wtype-limits diagnostics
11079         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11080         diagnostics.  Otherwise, the integer overflow macros generate many
11081         diagnostics.  Reported by Jim Meyering in
11082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11083
11084         intprops: shorten, to pacify gcc -Woverlength-strings
11085         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11086         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11087         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11088         likely to run afoul of C compiler limits for string constant lengths.
11089         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11090
11091 2011-05-24  Eric Blake  <eblake@redhat.com>
11092
11093         docs: document recently fixed glibc printf bug
11094         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11095         * doc/posix-functions/printf.texi (printf): Likewise.
11096         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11097         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11098
11099         closein-tests: convert to init.sh
11100         * modules/closein-tests (Files): Add init.sh
11101         * tests/test-closein.sh Use it.
11102
11103         yesno-tests: convert to init.sh
11104         * modules/yesno-tests (Files): Add init.sh.
11105         * tests/test-yesno.sh: Use it.
11106
11107         atexit-tests: ensure reliable exit status
11108         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11109         Reported by Bruno Haible.
11110
11111 2011-05-24  Bruno Haible  <bruno@clisp.org>
11112
11113         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11114         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11115         gl_PREREQ_STRERROR_R invocations from here...
11116         * modules/strerror_r-posix (configure.ac): ... to here.
11117
11118 2011-05-24  Eric Blake  <eblake@redhat.com>
11119
11120         strerror_r: fix missing header
11121         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11122
11123         strerror_r: fix AIX test failures
11124         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11125         ERANGE failure.
11126
11127         strerror_r: fix Solaris test failures
11128         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11129         failures.
11130         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11131
11132         strerror_r: enforce POSIX recommendations
11133         * lib/strerror_r.c (safe_copy): New helper method.
11134         (strerror_r): Guarantee a non-empty string.
11135         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11136         recent POSIX rulings and to match our strerror guarantees.
11137         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11138
11139 2011-05-24  Jim Meyering  <meyering@redhat.com>
11140
11141         test-perror2.c: avoid warning about unused variable
11142         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11143
11144 2011-05-24  Eric Blake  <eblake@redhat.com>
11145
11146         perror: avoid spurious test failure on HP-UX
11147         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11148
11149         tests: fix logic bug in init.sh
11150         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11151         shell.
11152
11153 2011-05-24  Jim Meyering  <meyering@redhat.com>
11154
11155         utimensat: do not reference an out-of-scope buffer
11156         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11157         declared in an inner scope, yet "times" would be dereferenced outside
11158         the scope in which "ts" was valid.
11159         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11160         of ts[2] "out/up", so that the use of aliased "times" (via
11161         "times = ts;") does not end up referencing an out-of-scope "ts"
11162
11163         opendir-safer.c: don't clobber errno; don't close negative FD
11164         * lib/opendir-safer.c (opendir_safer):
11165         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11166         file descriptor, and more importantly, don't clobber the
11167         offending errno value with EINVAL.  Before, upon failure
11168         of dup_safer, we would pass the negative file descriptor to
11169         fdopendir, which would clobber errno.
11170
11171 2011-05-23  Bruno Haible  <bruno@clisp.org>
11172
11173         idcache: Fix module description.
11174         * modules/idcache (Include): Set to "idcache.h".
11175
11176 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11177
11178         gnulib-tool: fix portability problem with MacOS sed
11179         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11180         before the "}".  Problem reported by Leo in
11181         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11182         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11183         sed_extract_condition1, sed_extract_condition2.
11184
11185 2011-05-23  Bruno Haible  <bruno@clisp.org>
11186
11187         hash: Simplify autoconf macro.
11188         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11189
11190 2011-05-23  Bruno Haible  <bruno@clisp.org>
11191
11192         getugroups: Fix module description.
11193         * modules/getugroups (Include): Set to "getugroups.h".
11194
11195 2011-05-23  Bruno Haible  <bruno@clisp.org>
11196
11197         linkat: Simplify autoconf macro.
11198         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11199
11200 2011-05-23  Bruno Haible  <bruno@clisp.org>
11201             Eric Blake  <eblake@redhat.com>
11202
11203         linkat, renameat: Update dependencies.
11204         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11205         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11206         symlinkat.
11207
11208 2011-05-23  Jim Meyering  <meyering@redhat.com>
11209
11210         maint.mk: more tight_scope improvements
11211         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11212         (_gl_TS_headers): Define only in if-0'd block.
11213         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11214         sometimes we must *not* use it.  Adjust uses accordingly.
11215         (sc_tight_scope): Use much simpler grep-based test to determine
11216         whether we skip this rule.
11217
11218         maint.mk: generalize/improve the tight-scope rule
11219         * top/maint.mk: Emit a warning when the test is skipped.
11220         (_gl_TS_dir): Add $(srcdir)/ prefix.
11221         (_gl_TS_function_match): Simplify, rather than trying
11222         to enumerate common types.  Otherwise, it would fail to match an
11223         "extern unsigned char const *" declaration in idutils.
11224         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11225         a way to support use of that type of macro.
11226         (_gl_TS_var_match): Simplify regexp.
11227         (_gl_TS_obj_files): New configurable variable.
11228         (_gl_TS_headers): Likewise.
11229
11230 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11231
11232         verify: fix bug when gnulib <assert.h> is also included
11233         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11234         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11235         Perhaps there's a better way, but this fixes the immediate problem.
11236         Problem reported by Bruno Haible in
11237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11238
11239 2011-05-22  Bruno Haible  <bruno@clisp.org>
11240
11241         xgetcwd: Simplify autoconf macro.
11242         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11243
11244 2011-05-22  Bruno Haible  <bruno@clisp.org>
11245
11246         New module 'mktime-internal'.
11247         * modules/mktime-internal: New file.
11248         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11249         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11250         mktime_internal as a C macro if libc has __mktime_internal.
11251         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11252         conditions.
11253         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11254
11255 2011-05-22  Bruno Haible  <bruno@clisp.org>
11256
11257         timegm: Correct mktime replacement statements.
11258         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11259         defining mktime as a C macro. This completes a 2009-07-28 commit.
11260
11261 2011-05-22  Bruno Haible  <bruno@clisp.org>
11262
11263         timegm: Simplify autoconf macro.
11264         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11265
11266 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11267
11268         clock-time: change to LGPLv2+.
11269         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11270         BSD-like but we have no mark for that; this is good enough for now.
11271
11272 2011-05-21  Bruno Haible  <bruno@clisp.org>
11273
11274         strerror_r: Fix comments.
11275         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11276
11277 2011-05-21  Bruno Haible  <bruno@clisp.org>
11278
11279         relocatable-prog-wrapper: Fix possible link error.
11280         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11281         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11282         (gl_FUNC_SETENV): ... to here.
11283         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11284         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11285
11286 2011-05-21  Bruno Haible  <bruno@clisp.org>
11287
11288         relocatable-prog-wrapper: Assume strerror() exists.
11289         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11290         m4/strerror.m4.
11291         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11292         * lib/relocwrapper.c: Remove mention of strerror module.
11293         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11294         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11295         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11296         C macro.
11297
11298 2011-05-21  Bruno Haible  <bruno@clisp.org>
11299
11300         select: Simplify replacement idiom.
11301         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11302         Win32 platforms.
11303         * lib/sys_select.in.h (select): Simplify accordingly.
11304         * modules/select (Depends-on): Likewise.
11305
11306 2011-05-21  Bruno Haible  <bruno@clisp.org>
11307
11308         mkdir-p: Simplify autoconf macro.
11309         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11310         gl_FUNC_LCHOWN.
11311
11312 2011-05-21  Eric Blake  <eblake@redhat.com>
11313
11314         strerror_r: avoid clobbering strerror on cygwin
11315         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11316         fall back instead to sys_errlist.
11317         * modules/strerror (configure.ac): Add witness.
11318         * tests/test-strerror_r.c (main): Enhance test.
11319         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11320         * tests/test-perror2.c (main): Free memory before exit.
11321
11322 2011-05-21  Bruno Haible  <bruno@clisp.org>
11323
11324         mkdtemp: Use gnulib naming conventions.
11325         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11326         * modules/mkdtemp (configure.ac): Update.
11327
11328 2011-05-20  Eric Blake  <eblake@redhat.com>
11329
11330         strerror_r: avoid corrupting errno on Solaris
11331         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11332         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11333
11334         strerror_r: avoid compiler warning
11335         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11336
11337         strerror_r: simplify AIX code
11338         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11339
11340         test-perror: avoid spurious failure on FreeBSD
11341         * modules/perror-tests (Depends-on): Add strerror, now that
11342         strerror_r no longer pulls it in.
11343
11344 2011-05-20  Bruno Haible  <bruno@clisp.org>
11345
11346         strerror_r-posix: Remove unused dependencies.
11347         * modules/strerror_r-posix (Depends-on): Remove strerror.
11348         Reported by Eric Blake.
11349
11350 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11351
11352         intprops: remove assumption about A|B representation
11353         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11354         is a valid integer if both A and B are.  Although this is true for
11355         all known practical hosts, the C standard doesn't guarantee it,
11356         and the code need not assume it.  Also, this change may work around
11357         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11359
11360 2011-05-20  Eric Blake  <eblake@redhat.com>
11361
11362         perror: work around FreeBSD bug
11363         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11364         is broken.  Move AC_LIBOBJ...
11365         * modules/perror (configure.ac): Here.
11366         * doc/posix-functions/perror.texi (perror): Document this.
11367         * tests/test-perror2.c (main): Enhance test.
11368
11369         test-perror: check for strerror interactions
11370         * tests/macros.h (STREQ): Add macro.
11371         * modules/perror-tests (Files): Add second test.
11372         * tests/test-perror2.c (main): New file.
11373         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11374
11375         test-perror: rewrite to use init script
11376         * modules/perror-tests (Files): Add init.sh.
11377         * tests/test-perror.sh: Use temporary directory.
11378
11379 2011-05-20  Jim Meyering  <meyering@redhat.com>
11380
11381         maint: replace misused "a" with "an"
11382         * doc/intprops.texi: "a integer"
11383         * doc/regex.texi: "a explanation"
11384         * lib/alignof.h: "a object"
11385         * lib/argmatch.h: "a explanation"
11386         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11387         * lib/stdint.in.h: "a integer"
11388         * lib/userspec.c: "a owner"
11389         * doc/gnulib.texi: Fix "a idea", and reword.
11390
11391 2011-05-19  Jim Meyering  <meyering@redhat.com>
11392
11393         maint: correct misuse of "a" and "an"
11394         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11395         * lib/argp-help.c: "an docum...": s/an/a/
11396         * lib/argp-parse.c: "An vector": s/An/A/
11397         * lib/execute.c: "an native": s/an/a/
11398         * lib/spawn-pipe.c: Likewise.
11399         * lib/gc.h: "an Gc_rc": s/an/a/
11400         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11401         * lib/fts.c: "an stat.st_dev": s/an/a/
11402
11403 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11404
11405         intprops-tests: work around HP-UX 11.23 cc bug with constants
11406         * tests/test-intprops.c (VERIFY): New macro.
11407         (main): Use it, instead of verify, to work around the compiler bug; see
11408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11409
11410         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11411         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11412         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11413         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11414         (_GL_REMAINDER_OVERFLOW): Use it.
11415
11416         intprops-tests: revert unsigned part of previous change
11417         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11418         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11419         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11421
11422 2011-05-19  Bruno Haible  <bruno@clisp.org>
11423
11424         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11425         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11426         strerror_r() returned without filling the buffer.
11427         Reported by Eric Blake.
11428
11429 2011-05-19  Eric Blake  <eblake@redhat.com>
11430
11431         strerror_r: guarantee unchanged errno
11432         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11433         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11434         failure.
11435         * tests/test-strerror_r.c (main): Enhance test.
11436
11437 2011-05-19  Bruno Haible  <bruno@clisp.org>
11438
11439         strerror_r: Reorder #if blocks.
11440         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11441         for consistency with the previous commit.
11442
11443 2011-05-19  Bruno Haible  <bruno@clisp.org>
11444
11445         perror: Avoid clobbering the strerror buffer when possible.
11446         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11447         * lib/strerror.c: Include it.
11448         * modules/strerror (Files): Add lib/strerror-impl.h.
11449         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11450         (my_strerror): New function, defined through lib/strerror-impl.h.
11451         (perror): Use it instead of strerror.
11452         * modules/perror (Files): Add lib/strerror-impl.h.
11453         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11454
11455 2011-05-19  Eric Blake  <eblake@redhat.com>
11456
11457         strerror_r: fix on newer cygwin
11458         * lib/strerror_r.c (strerror_r): Cygwin now has
11459         __xpg_strerror_r, use it.
11460
11461 2011-05-19  Bruno Haible  <bruno@clisp.org>
11462
11463         strerror_r: Avoid clobbering the strerror buffer when possible.
11464         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11465         (sys_nerr, sys_errlist): New declarations.
11466         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11467         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11468         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11469
11470 2011-05-19  Bruno Haible  <bruno@clisp.org>
11471
11472         strerror_r: Fix test failure on mingw.
11473         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11474         EXTEND_STRERROR_R.
11475         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11476         macros from errno.in.h instead.
11477
11478 2011-05-19  Eric Blake  <eblake@redhat.com>
11479
11480         strerror: relax test for Solaris
11481         * tests/test-strerror.c (main): Permit Solaris behavior.
11482         * tests/test-strerror_r.c (main): Likewise.
11483
11484         strerror: enforce POSIX ruling on strerror(0)
11485         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11486         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11487         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11488         * doc/posix-functions/strerror.texi (strerror): Document it.
11489         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11490         * tests/test-strerror.c (main): Strengthen test.
11491         * tests/test-strerror_r.c (main): Likewise.
11492
11493 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11494
11495         intprop-tests: port to older and more-pedantic compilers
11496         * modules/intprops-tests (Files): Add tests/macros.h.
11497         * tests/test-intprops.c: Include macros.h.
11498         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11499         it's no longer documented to expand to an integer constant expression.
11500         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11501         argument is floating point, as it's no longer documented to expand
11502         to an integer constant expression in that case.
11503         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11504         compiler bugs reported by Bruno Haible.  See
11505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11506         (U0, U1): New constants, to work around the same bugs.  Also,
11507         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11508
11509         intprops: work around C compiler bugs
11510         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11511         bug in Sun C 5.11 2010/08/13 and other compilers; see
11512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11513
11514         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11515         * doc/intprops.texi (Integer Type Determination): Fix
11516         documentation for TYPE_IS_INTEGER: it returns an constant
11517         expression, not an integer constant expression.  Fix doc for
11518         TYPE_SIGNED: it returns an integer constant expression only if its
11519         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11520         hardly worth documented that way....)
11521
11522 2011-05-18  Bruno Haible  <bruno@clisp.org>
11523
11524         strerror_r: Avoid clobbering the strerror buffer when possible.
11525         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11526         Handle gnulib defined errno values here. When strerror() returns NULL
11527         or an empty string, return EINVAL.
11528         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11529         gnulib defined errno values here.
11530         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11531
11532 2011-05-18  Eric Blake  <eblake@redhat.com>
11533
11534         fnmatch: avoid compiler warning
11535         * lib/fnmatch_loop.c (FCT): Use correct type.
11536         Reported by Matthias Bolte.
11537
11538 2011-05-13  Jim Meyering  <meyering@redhat.com>
11539
11540         maint.mk: three new prohibit_<HDR>_without_use rules
11541         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11542         (sc_prohibit_stdio-safer_without_use): Likewise.
11543         (sc_prohibit_xfreopen_without_use): Likewise.
11544
11545 2011-05-17  Jim Meyering  <meyering@redhat.com>
11546
11547         announce-gen: fail if the NEWS delta is empty
11548         If there's nothing noteworthy in NEWS, then either you forgot
11549         or you shouldn't be releasing.
11550         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11551
11552 2011-05-17  Pádraig Brady <P@draigBrady.com>
11553
11554         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11555         reserved symbols starting with double underscore from the check.
11556
11557 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11558
11559         intprops: add doc
11560         * doc/intprops.texi: New file, documenting intprops.
11561         * doc/gnulib.texi (Particular Modules): Include it.
11562
11563         verify: add doc to gnulib manual and fix example
11564         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11565         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11566         (Compile-time Assertions): Fix example so it can't overflow.
11567
11568 2011-05-17  Jim Meyering  <meyering@redhat.com>
11569
11570         warnings.m4: don't usurp save_CPPFLAGS variable name
11571         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11572
11573         doc: fix typo
11574         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11575
11576 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11577             Bruno Haible  <bruno@clisp.org>
11578
11579         doc: Tweak recent change.
11580         * README (Portability guidelines): Tweak new text.
11581         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11582         Interix 6.1.
11583
11584 2011-05-16  Eric Blake  <eblake@redhat.com>
11585
11586         inttypes: avoid autoconf warning
11587         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11588         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11589
11590 2011-05-16  Sam Steingold <sds@gnu.org>
11591         and Eric Blake  <eblake@redhat.com>
11592
11593         vc-list-files: accept multiple directory operands
11594         * build-aux/vc-list-files: Iterate over all remaining operands.
11595
11596 2011-05-16  Bruno Haible  <bruno@clisp.org>
11597
11598         Fix confusion regarding deprecated modules.
11599         * modules/calloc (Status, Notice): Mark module as deprecated, not
11600         obsolete.
11601         * modules/fnmatch-posix (Status, Notice): Likewise.
11602         * modules/getdate (Status, Notice): Likewise.
11603         * modules/getopt (Status, Notice): Likewise.
11604         * modules/malloc (Status, Notice): Likewise.
11605         * modules/pipe (Status, Notice): Likewise.
11606         * modules/realloc (Status, Notice): Likewise.
11607         * modules/rename-dest-slash (Status, Notice): Likewise.
11608         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11609         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11610         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11611         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11612         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11613
11614 2011-05-16  Bruno Haible  <bruno@clisp.org>
11615
11616         doc: List the target platforms.
11617         * doc/gnulib-intro.texi (Target Platforms): New section.
11618         * doc/gnulib.texi (Introduction): Update menu.
11619         * README (Portability guidelines): Refer to the new section. Update
11620         statement about oldest supported environment. Remove rationale why
11621         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11622         unportable C89 function.
11623         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11624         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11625
11626 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11627
11628         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11629
11630 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11631
11632         intprops-tests: new module
11633         * modules/intprops-tests, tests/test-intprops.c: New files.
11634
11635         intprops: add safe, portable integer overflow checking
11636         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11637         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11638         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11639         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11640         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11641         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11642         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11643         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11644         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11645         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11646         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11647
11648 2011-05-12  James Youngman  <jay@gnu.org>
11649
11650         Add a test for glibc's Bugzilla bug #12378.
11651         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11652         doesn't allow the literal matching of a lone "[" (which is
11653         required by POSIX).
11654         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11655
11656 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11657
11658         Sync glibc change fixing Bugzilla bug #12378.
11659         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11660         beginning and fall back to matching as normal character if the
11661         string ends before the matching ']' is found.  This is what POSIX
11662         requires.
11663
11664 2011-05-13  Eric Blake  <eblake@redhat.com>
11665
11666         getcwd-lgpl: relax test for FreeBSD
11667         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11668         issue.
11669         * tests/test-getcwd-lgpl.c (main): Relax test.
11670         Reported by Matthias Bolte.
11671
11672 2011-05-11  Eric Blake  <eblake@redhat.com>
11673
11674         test-fflush: silence compiler warning
11675         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11676
11677 2011-05-11  Bruno Haible  <bruno@clisp.org>
11678
11679         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11680         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11681         * modules/canonicalize (Depends-on): Add 'nocrash'.
11682         * modules/canonicalize-lgpl (Depends-on): Likewise.
11683         * doc/posix-functions/realpath.texi: Update platforms list.
11684         Reported by Ryan Schmidt <ryandesign@macports.org>.
11685
11686 2011-05-11  Bruno Haible  <bruno@clisp.org>
11687
11688         group-member: Declare function in <unistd.h>.
11689         * lib/unistd.in.h (group_member): New declaration.
11690         * lib/group-member.h: Remove file.
11691         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11692         * tests/test-unistd-c++.cc: Check signature of group_member.
11693         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11694         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11695         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11696         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11697         HAVE_GROUP_MEMBER.
11698         * modules/group-member (Files): Remove lib/group-member.h.
11699         (Depends-on): Add unistd. Specify conditions.
11700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11701         (Include): Change to <unistd.h>.
11702         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11703         HAVE_GROUP_MEMBER.
11704         * NEWS: Mention the change.
11705         * lib/euidaccess.c: Don't include group-member.h.
11706
11707 2011-05-11  Bruno Haible  <bruno@clisp.org>
11708
11709         group-member: Document module.
11710         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11711         module.
11712
11713 2011-05-11  Bruno Haible  <bruno@clisp.org>
11714
11715         fclose: Fix mistake earlier today.
11716         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11717
11718 2011-05-11  Eric Blake  <eblake@redhat.com>
11719
11720         fclose: preserve fflush errors
11721         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11722         Reported by Jim Meyering.
11723
11724         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11725         * build-aux/bootstrap (check_versions): When no specific version
11726         is required, merely check that the app produces an exit status
11727         that indicates its existence.
11728
11729         maint.mk: drop redundant check
11730         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11731         the same but better.
11732
11733 2011-05-11  Bruno Haible  <bruno@clisp.org>
11734
11735         fclose: Fix possible link error.
11736         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11737         unregister_shadow_fd. Improve comments.
11738         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11739         Eric Blake.
11740
11741 2011-05-11  Jim Meyering  <meyering@redhat.com>
11742
11743         maint.mk: improve "can not" detection and generalize rule name
11744         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11745         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11746         Use the same technique as in sc_prohibit_doubled_word, so that
11747         we recognize "can not" also when the words are separated by a newline.
11748         Suggested by Eric Blake.
11749         (perl_filename_lineno_text_): Define.  Factored out of...
11750         (prohibit_doubled_word_): ...here.  Use the new definition.
11751         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11752         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11753         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11754
11755 2011-05-10  Eric Blake  <eblake@redhat.com>
11756
11757         fclose: avoid double close race when possible
11758         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11759         all but WINDOWS_SOCKETS.
11760
11761 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11762
11763         openat: correct new comment
11764         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11765
11766 2011-05-10  Jim Meyering  <meyering@redhat.com>
11767
11768         openat: add comments
11769         * lib/openat-proc.c (openat_proc_name): Add comments,
11770         mostly from Eric Blake.
11771
11772 2011-05-09  Eric Blake  <eblake@redhat.com>
11773
11774         openat: reduce syscalls in first probe of /proc
11775         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11776         be a directory.  Simplify the probe for .. bugs.
11777         * modules/openat (Depends-on): Drop same-inode.
11778         Reported by Bastien ROUCARIES.
11779
11780 2011-05-09  Jim Meyering  <meyering@redhat.com>
11781
11782         maint.mk: change semantics/name of tight_scope variables
11783         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11784         Rename variables to align with semantics that make them more useful.
11785
11786         maint.mk: tweak new rule's name not to impinge
11787         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11788         (sc_tight_scope): Use new rule name rather than $@-0.
11789
11790         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11791         * top/maint.mk (sc_tight_scope): New rule.
11792         (sc_tight_scope-0): New rule, ifdef'd out.
11793         (_gl_TS_dir): Default.
11794         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11795         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11796
11797 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11798
11799         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11800         Haible <bruno@clisp.org>.
11801
11802 2011-05-08  Bruno Haible  <bruno@clisp.org>
11803
11804         Comments.
11805         * m4/isnanf.m4: Add comment.
11806         * m4/isnanl.m4: Likewise.
11807
11808 2011-05-08  Bruno Haible  <bruno@clisp.org>
11809
11810         glob: Remove obsolete macro.
11811         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11812
11813 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11814
11815         intprops: Sun C 5.11 supports __typeof__
11816         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11817         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11818         which is new.
11819         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11820
11821         intprops: switch to usual gnulib indenting and naming
11822         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11823         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11824
11825         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11826
11827 2011-05-08  Jim Meyering  <meyering@redhat.com>
11828
11829         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11830         * top/maint.mk (release-prep): Use make's --no-print-directory
11831         option when generating the announcement.  This eliminates the
11832         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11833         generated announcement template.
11834
11835 2011-05-08  Bruno Haible  <bruno@clisp.org>
11836
11837         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11838         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11839         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11840
11841 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11842
11843         ignore-value, verify: Omit include files from lib_SOURCES.
11844         * modules/ignore-value, modules/verify (Makefile.am):
11845         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11846         that leads Automake to duplicate use of am__objects_... variables
11847         in Makefile.in.  See
11848         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11849
11850 2011-05-07  Bruno Haible  <bruno@clisp.org>
11851
11852         fclose: Simplify autoconf macro.
11853         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11854         defined.
11855
11856 2011-05-07  Bruno Haible  <bruno@clisp.org>
11857
11858         canonicalize-lgpl: Fix autoconf macro ordering bug.
11859         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11860         gl_STDLIB_H_DEFAULTS.
11861
11862 2011-05-06  Eric Blake  <eblake@redhat.com>
11863
11864         maintainer-makefile: make sc_po_check easier to tune
11865         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11866         to probe for strings, such as an alternate location for gnulib.
11867
11868         fclose: guarantee behavior on seekable stdin
11869         * modules/fclose (Depends-on): Add fflush.
11870         * doc/posix-functions/fclose.texi (fclose): Document this.
11871         * tests/test-fclose.c (main): Make test for this unconditional.
11872
11873 2011-05-06  Bruno Haible  <bruno@clisp.org>
11874
11875         fflush, fpurge: Relicense under LGPLv2+.
11876         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11877         * modules/fpurge (License): Likewise.
11878         With permission from Eric Blake and Jim Meyering.
11879         Suggested by Eric Blake.
11880
11881 2011-05-06  Karl Berry  <karl@gnu.org>
11882
11883         * MODULES.html.sh (func_all_modules): remove exit.
11884
11885 2011-05-06  Jim Meyering  <meyering@redhat.com>
11886
11887         maint.mk: use info-gnu@ as the default only for a stable release
11888         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11889         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11890         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11891         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11892
11893 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11894
11895         assert-h: new module, which supports C1X-style static_assert
11896         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11897         * lib/verify.h: Revamp so that this can be copied into assert.h,
11898         while retaining the ability to use it standalone as before.
11899         Rename private identifiers so as not to encroach on the
11900         standard C namespace, since this is now used by assert.h.
11901         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11902         the old verify_true.
11903         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11904         the old verify_true.  Use _GL_VERIFY_TYPE.
11905         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11906         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11907         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11908         defined when this file is copied into the replacement assert.h.
11909         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11910         and _Static_assert is not built in.
11911         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11912         defined, and use the new macros mentioned above.
11913         * doc/posix-headers/assert.texi: Document this.
11914
11915 2011-05-05  Bruno Haible  <bruno@clisp.org>
11916
11917         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11918         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11919         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11920         gl_REPLACE_FCLOSE here.
11921         * modules/fflush (Depends-on): Remove fclose.
11922         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11923         combination with module 'fclose'.
11924
11925 2011-05-05  Bruno Haible  <bruno@clisp.org>
11926
11927         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11928         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11929         gl_FUNC_FFLUSH.
11930         (gl_FUNC_FFLUSH): Use it.
11931         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11933         gl_REPLACE_FSEEKO here.
11934
11935 2011-05-05  Bruno Haible  <bruno@clisp.org>
11936
11937         tzset: Relicense under LGPL.
11938         * modules/tzset (License): Change to LGPL.
11939         No agreement needed; it's a no-op.
11940
11941         strtoimax, strtoumax: Relicense under LGPL.
11942         * modules/strtoimax (License): Change to LGPL.
11943         * modules/strtoumax (License): Likewise.
11944         With permission from Jim Meyering, Paul Eggert:
11945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11947
11948         getgroups: Relicense under LGPL.
11949         * modules/getgroups (License): Change to LGPL.
11950         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11954
11955         nanosleep: Relicense under LGPL.
11956         * modules/nanosleep (License): Change to LGPL.
11957         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11958         Haible:
11959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11963
11964         futimens: Relicense under LGPL.
11965         * modules/futimens (License): Change to LGPL.
11966         With permission from Eric Blake:
11967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11968
11969         fflush: Relicense under LGPL.
11970         * modules/fflush (License): Change to LGPL.
11971         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11975
11976         tmpfile: Relicense under LGPL.
11977         * modules/tmpfile (License): Change to LGPL.
11978         With permission from Ben Pfaff:
11979         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11980
11981         isfinite: Relicense under LGPL.
11982         * modules/isfinite (License): Change to LGPL.
11983         With permission from Ben Pfaff, Bruno Haible:
11984         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11986
11987         acosl..tanl: Relicense under LGPL.
11988         * modules/acosl (License): Change to LGPL.
11989         * modules/asinl (License): Likewise.
11990         * modules/atanl (License): Likewise.
11991         * modules/cosl (License): Likewise.
11992         * modules/expl (License): Likewise.
11993         * modules/logl (License): Likewise.
11994         * modules/sinl (License): Likewise.
11995         * modules/sqrtl (License): Likewise.
11996         * modules/tanl (License): Likewise.
11997         Source code originally from glibc and Paolo Bonzini. Agreements:
11998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12000
12001 2011-05-05  Bruno Haible  <bruno@clisp.org>
12002
12003         signal: Define sighandler_t.
12004         * lib/signal.in.h (sighandler_t): New type.
12005         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12006         whether sighandler_t is defined.
12007         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12008         * modules/signal (Depends-on): Add extensions.
12009         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12010         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12011         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12012
12013 2011-05-05  Eric Blake  <eblake@redhat.com>
12014
12015         maint: remove useless REPLACE_*_H macros
12016         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12017         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12018         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12019         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12020         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12021         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12022         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12023         * m4/btowc.m4: Update callers.
12024         * m4/dirfd.m4: Likewise.
12025         * m4/duplocale.m4: Likewise.
12026         * m4/fchdir.m4: Likewise.
12027         * m4/fdopendir.m4: Likewise.
12028         * m4/inet_ntop.m4: Likewise.
12029         * m4/inet_pton.m4: Likewise.
12030         * m4/ioctl.m4: Likewise.
12031         * m4/mbrlen.m4: Likewise.
12032         * m4/mbrtowc.m4: Likewise.
12033         * m4/mbsinit.m4: Likewise.
12034         * m4/mbsnrtowcs.m4: Likewise.
12035         * m4/mbsrtowcs.m4: Likewise.
12036         * m4/poll.m4: Likewise.
12037         * m4/setlocale.m4: Likewise.
12038         * m4/wcrtomb.m4: Likewise.
12039         * m4/wcsnrtombs.m4: Likewise.
12040         * m4/wcsrtombs.m4: Likewise.
12041         * m4/wctob.m4: Likewise.
12042         * m4/wcwidth.m4: Likewise.
12043         * modules/posix_spawn: Likewise.
12044         * modules/posix_spawn_file_actions_addclose: Likewise.
12045         * modules/posix_spawn_file_actions_adddup2: Likewise.
12046         * modules/posix_spawn_file_actions_addopen: Likewise.
12047         * modules/posix_spawn_file_actions_destroy: Likewise.
12048         * modules/posix_spawn_file_actions_init: Likewise.
12049         * modules/posix_spawnattr_destroy: Likewise.
12050         * modules/posix_spawnattr_getflags: Likewise.
12051         * modules/posix_spawnattr_getpgroup: Likewise.
12052         * modules/posix_spawnattr_getschedparam: Likewise.
12053         * modules/posix_spawnattr_getschedpolicy: Likewise.
12054         * modules/posix_spawnattr_getsigdefault: Likewise.
12055         * modules/posix_spawnattr_getsigmask: Likewise.
12056         * modules/posix_spawnattr_init: Likewise.
12057         * modules/posix_spawnattr_setflags: Likewise.
12058         * modules/posix_spawnattr_setpgroup: Likewise.
12059         * modules/posix_spawnattr_setschedparam: Likewise.
12060         * modules/posix_spawnattr_setschedpolicy: Likewise.
12061         * modules/posix_spawnattr_setsigdefault: Likewise.
12062         * modules/posix_spawnattr_setsigmask: Likewise.
12063         * modules/posix_spawnp: Likewise.
12064
12065 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12066
12067         Add option to do-release-commit-and-tag to specify branch.
12068         * build-aux/do-release-commit-and-tag: Add --branch.
12069
12070 2011-05-03  Bruno Haible  <bruno@clisp.org>
12071
12072         Avoid unnecessary compilation units, through conditional dependencies.
12073         * modules/accept (Depends-on): Add conditions to the dependencies.
12074         * modules/acosl (Depends-on): Likewise.
12075         * modules/argz (Depends-on): Likewise.
12076         * modules/asinl (Depends-on): Likewise.
12077         * modules/atanl (Depends-on): Likewise.
12078         * modules/atoll (Depends-on): Likewise.
12079         * modules/bind (Depends-on): Likewise.
12080         * modules/btowc (Depends-on): Likewise.
12081         * modules/canonicalize-lgpl (Depends-on): Likewise.
12082         * modules/ceil (Depends-on): Likewise.
12083         * modules/ceilf (Depends-on): Likewise.
12084         * modules/ceill (Depends-on): Likewise.
12085         * modules/chdir-long (Depends-on): Likewise.
12086         * modules/chown (Depends-on): Likewise.
12087         * modules/close (Depends-on): Likewise.
12088         * modules/connect (Depends-on): Likewise.
12089         * modules/cosl (Depends-on): Likewise.
12090         * modules/dirfd (Depends-on): Likewise.
12091         * modules/dprintf (Depends-on): Likewise.
12092         * modules/dprintf-posix (Depends-on): Likewise.
12093         * modules/error (Depends-on): Likewise.
12094         * modules/euidaccess (Depends-on): Likewise.
12095         * modules/expl (Depends-on): Likewise.
12096         * modules/faccessat (Depends-on): Likewise.
12097         * modules/fchdir (Depends-on): Likewise.
12098         * modules/fclose (Depends-on): Likewise.
12099         * modules/fcntl (Depends-on): Likewise.
12100         * modules/fdopendir (Depends-on): Likewise.
12101         * modules/fflush (Depends-on): Likewise.
12102         * modules/floor (Depends-on): Likewise.
12103         * modules/floorf (Depends-on): Likewise.
12104         * modules/floorl (Depends-on): Likewise.
12105         * modules/fnmatch (Depends-on): Likewise.
12106         * modules/fopen (Depends-on): Likewise.
12107         * modules/fprintf-posix (Depends-on): Likewise.
12108         * modules/frexp (Depends-on): Likewise.
12109         * modules/frexp-nolibm (Depends-on): Likewise.
12110         * modules/frexpl (Depends-on): Likewise.
12111         * modules/frexpl-nolibm (Depends-on): Likewise.
12112         * modules/fseek (Depends-on): Likewise.
12113         * modules/fsusage (Depends-on): Likewise.
12114         * modules/ftell (Depends-on): Likewise.
12115         * modules/ftello (Depends-on): Likewise.
12116         * modules/futimens (Depends-on): Likewise.
12117         * modules/getcwd (Depends-on): Likewise.
12118         * modules/getcwd-lgpl (Depends-on): Likewise.
12119         * modules/getdelim (Depends-on): Likewise.
12120         * modules/getdomainname (Depends-on): Likewise.
12121         * modules/getgroups (Depends-on): Likewise.
12122         * modules/gethostname (Depends-on): Likewise.
12123         * modules/getline (Depends-on): Likewise.
12124         * modules/getlogin_r (Depends-on): Likewise.
12125         * modules/getopt-posix (Depends-on): Likewise.
12126         * modules/getpeername (Depends-on): Likewise.
12127         * modules/getsockname (Depends-on): Likewise.
12128         * modules/getsockopt (Depends-on): Likewise.
12129         * modules/getsubopt (Depends-on): Likewise.
12130         * modules/getusershell (Depends-on): Likewise.
12131         * modules/glob (Depends-on): Likewise.
12132         * modules/grantpt (Depends-on): Likewise.
12133         * modules/iconv_open (Depends-on): Likewise.
12134         * modules/iconv_open-utf (Depends-on): Likewise.
12135         * modules/inet_ntop (Depends-on): Likewise.
12136         * modules/inet_pton (Depends-on): Likewise.
12137         * modules/ioctl (Depends-on): Likewise.
12138         * modules/isapipe (Depends-on): Likewise.
12139         * modules/isfinite (Depends-on): Likewise.
12140         * modules/isinf (Depends-on): Likewise.
12141         * modules/lchown (Depends-on): Likewise.
12142         * modules/ldexpl (Depends-on): Likewise.
12143         * modules/link (Depends-on): Likewise.
12144         * modules/linkat (Depends-on): Likewise.
12145         * modules/listen (Depends-on): Likewise.
12146         * modules/logl (Depends-on): Likewise.
12147         * modules/lstat (Depends-on): Likewise.
12148         * modules/mbrlen (Depends-on): Likewise.
12149         * modules/mbrtowc (Depends-on): Likewise.
12150         * modules/mbsinit (Depends-on): Likewise.
12151         * modules/mbsnrtowcs (Depends-on): Likewise.
12152         * modules/mbsrtowcs (Depends-on): Likewise.
12153         * modules/mbtowc (Depends-on): Likewise.
12154         * modules/memcmp (Depends-on): Likewise.
12155         * modules/mkdir (Depends-on): Likewise.
12156         * modules/mkdtemp (Depends-on): Likewise.
12157         * modules/mkfifo (Depends-on): Likewise.
12158         * modules/mkfifoat (Depends-on): Likewise.
12159         * modules/mknod (Depends-on): Likewise.
12160         * modules/mkostemp (Depends-on): Likewise.
12161         * modules/mkostemps (Depends-on): Likewise.
12162         * modules/mkstemp (Depends-on): Likewise.
12163         * modules/mkstemps (Depends-on): Likewise.
12164         * modules/mktime (Depends-on): Likewise.
12165         * modules/nanosleep (Depends-on): Likewise.
12166         * modules/open (Depends-on): Likewise.
12167         * modules/openat (Depends-on): Likewise.
12168         * modules/perror (Depends-on): Likewise.
12169         * modules/poll (Depends-on): Likewise.
12170         * modules/popen (Depends-on): Likewise.
12171         * modules/posix_spawn (Depends-on): Likewise.
12172         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12173         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12174         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12175         * modules/posix_spawnp (Depends-on): Likewise.
12176         * modules/pread (Depends-on): Likewise.
12177         * modules/printf-posix (Depends-on): Likewise.
12178         * modules/ptsname (Depends-on): Likewise.
12179         * modules/putenv (Depends-on): Likewise.
12180         * modules/pwrite (Depends-on): Likewise.
12181         * modules/readline (Depends-on): Likewise.
12182         * modules/readlink (Depends-on): Likewise.
12183         * modules/readlinkat (Depends-on): Likewise.
12184         * modules/recv (Depends-on): Likewise.
12185         * modules/recvfrom (Depends-on): Likewise.
12186         * modules/regex (Depends-on): Likewise.
12187         * modules/remove (Depends-on): Likewise.
12188         * modules/rename (Depends-on): Likewise.
12189         * modules/renameat (Depends-on): Likewise.
12190         * modules/rmdir (Depends-on): Likewise.
12191         * modules/round (Depends-on): Likewise.
12192         * modules/roundf (Depends-on): Likewise.
12193         * modules/roundl (Depends-on): Likewise.
12194         * modules/rpmatch (Depends-on): Likewise.
12195         * modules/select (Depends-on): Likewise.
12196         * modules/send (Depends-on): Likewise.
12197         * modules/sendto (Depends-on): Likewise.
12198         * modules/setenv (Depends-on): Likewise.
12199         * modules/setlocale (Depends-on): Likewise.
12200         * modules/setsockopt (Depends-on): Likewise.
12201         * modules/shutdown (Depends-on): Likewise.
12202         * modules/sigaction (Depends-on): Likewise.
12203         * modules/signbit (Depends-on): Likewise.
12204         * modules/sigprocmask (Depends-on): Likewise.
12205         * modules/sinl (Depends-on): Likewise.
12206         * modules/sleep (Depends-on): Likewise.
12207         * modules/snprintf (Depends-on): Likewise.
12208         * modules/snprintf-posix (Depends-on): Likewise.
12209         * modules/socket (Depends-on): Likewise.
12210         * modules/sprintf-posix (Depends-on): Likewise.
12211         * modules/sqrtl (Depends-on): Likewise.
12212         * modules/stat (Depends-on): Likewise.
12213         * modules/strchrnul (Depends-on): Likewise.
12214         * modules/strdup-posix (Depends-on): Likewise.
12215         * modules/strerror (Depends-on): Likewise.
12216         * modules/strerror_r-posix (Depends-on): Likewise.
12217         * modules/strndup (Depends-on): Likewise.
12218         * modules/strnlen (Depends-on): Likewise.
12219         * modules/strptime (Depends-on): Likewise.
12220         * modules/strsep (Depends-on): Likewise.
12221         * modules/strsignal (Depends-on): Likewise.
12222         * modules/strstr-simple (Depends-on): Likewise.
12223         * modules/strtod (Depends-on): Likewise.
12224         * modules/strtoimax (Depends-on): Likewise.
12225         * modules/strtok_r (Depends-on): Likewise.
12226         * modules/strtoumax (Depends-on): Likewise.
12227         * modules/symlink (Depends-on): Likewise.
12228         * modules/symlinkat (Depends-on): Likewise.
12229         * modules/tanl (Depends-on): Likewise.
12230         * modules/tcgetsid (Depends-on): Likewise.
12231         * modules/tmpfile (Depends-on): Likewise.
12232         * modules/trunc (Depends-on): Likewise.
12233         * modules/truncf (Depends-on): Likewise.
12234         * modules/truncl (Depends-on): Likewise.
12235         * modules/uname (Depends-on): Likewise.
12236         * modules/unlink (Depends-on): Likewise.
12237         * modules/unlockpt (Depends-on): Likewise.
12238         * modules/unsetenv (Depends-on): Likewise.
12239         * modules/usleep (Depends-on): Likewise.
12240         * modules/utimensat (Depends-on): Likewise.
12241         * modules/vasprintf (Depends-on): Likewise.
12242         * modules/vdprintf (Depends-on): Likewise.
12243         * modules/vdprintf-posix (Depends-on): Likewise.
12244         * modules/vfprintf-posix (Depends-on): Likewise.
12245         * modules/vprintf-posix (Depends-on): Likewise.
12246         * modules/vsnprintf (Depends-on): Likewise.
12247         * modules/vsnprintf-posix (Depends-on): Likewise.
12248         * modules/vsprintf-posix (Depends-on): Likewise.
12249         * modules/wcrtomb (Depends-on): Likewise.
12250         * modules/wcscasecmp (Depends-on): Likewise.
12251         * modules/wcscspn (Depends-on): Likewise.
12252         * modules/wcsdup (Depends-on): Likewise.
12253         * modules/wcsncasecmp (Depends-on): Likewise.
12254         * modules/wcsnrtombs (Depends-on): Likewise.
12255         * modules/wcspbrk (Depends-on): Likewise.
12256         * modules/wcsrtombs (Depends-on): Likewise.
12257         * modules/wcsspn (Depends-on): Likewise.
12258         * modules/wcsstr (Depends-on): Likewise.
12259         * modules/wcstok (Depends-on): Likewise.
12260         * modules/wcswidth (Depends-on): Likewise.
12261         * modules/wctob (Depends-on): Likewise.
12262         * modules/wctomb (Depends-on): Likewise.
12263         * modules/wctype (Depends-on): Likewise.
12264         * modules/wcwidth (Depends-on): Likewise.
12265         * modules/write (Depends-on): Likewise.
12266
12267 2011-05-03  Bruno Haible  <bruno@clisp.org>
12268
12269         Support for conditional dependencies.
12270         * doc/gnulib.texi (Module description): Document the syntax of
12271         conditional dependencies.
12272         * gnulib-tool: New option --conditional-dependencies.
12273         (func_usage): Document it.
12274         (cond_dependencies): New variable.
12275         (func_get_automake_snippet_conditional,
12276         func_get_automake_snippet_unconditional): New functions, extracted from
12277         func_get_automake_snippet.
12278         (func_get_automake_snippet): Use them.
12279         (sed_first_32_chars): New variable.
12280         (func_module_shellfunc_name): New function.
12281         (func_module_shellvar_name): New function.
12282         (func_module_conditional_name): New function.
12283         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12284         func_cond_module_condition): New functions.
12285         (func_modules_transitive_closure): Add support for conditional
12286         dependencies.
12287         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12288         conditional automake snippet in an automake conditional.
12289         (func_emit_autoconf_snippets): Emit shell functions that contain the
12290         code for conditional modules.
12291         (func_import, func_create_testdir): Update specification.
12292
12293 2011-05-03  Eric Blake  <eblake@redhat.com>
12294
12295         test-getaddrinfo: report error information
12296         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12297
12298 2011-05-03  Jim Meyering  <meyering@redhat.com>
12299
12300         bootstrap: avoid build failure when $GZIP is set
12301         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12302         program name.  If defined at all, it is supposed to list gzip options.
12303         Reported by Alan Curry in http://debbugs.gnu.org/8609
12304
12305 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12306
12307         readme-release: new module with release instructions
12308         * modules/readme-release: New module.
12309         * top/README-release: New file, from coreutils, grep, diffutils.
12310         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12311
12312 2011-05-02  Eric Blake  <eblake@redhat.com>
12313
12314         fflush: also replace fclose when fixing fflush
12315         * modules/fflush (Depends-on): Add fclose.
12316         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12317         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12318         memstreams with no backing fd.
12319         * doc/posix-functions/fclose.texi (fclose): Document the use of
12320         fflush module to fix the bug.
12321         * tests/test-fclose.c (main): Relax test when fclose is used in
12322         isolation.
12323
12324         fclose: add some tests
12325         * modules/fclose-tests: New test module.
12326         * tests/test-fclose.c: New file.
12327         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12328
12329         fclose: reduced dependencies
12330         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12331         simpler lseek.
12332         * lib/fclose.c (rpl_fclose): Likewise.
12333         Reported by Simon Josefsson.
12334
12335         exit: drop remaining clients
12336         * modules/argmatch (Depends-on): Replace exit with stdlib.
12337         * modules/copy-file (Depends-on): Likewise.
12338         * modules/execute (Depends-on): Likewise.
12339         * modules/exitfail (Depends-on): Likewise.
12340         * modules/obstack (Depends-on): Likewise.
12341         * modules/pagealign_alloc (Depends-on): Likewise.
12342         * modules/pipe-filter-gi (Depends-on): Likewise.
12343         * modules/pipe-filter-ii (Depends-on): Likewise.
12344         * modules/savewd (Depends-on): Likewise.
12345         * modules/spawn-pipe (Depends-on): Likewise.
12346         * modules/wait-process (Depends-on): Likewise.
12347         * modules/xsetenv (Depends-on): Likewise.
12348         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12349         * modules/git-merge-changelog (Depends-on): Likewise.
12350         * modules/long-options (Depends-on): Likewise.
12351         * modules/pt_chown (Depends-on): Likewise.
12352         * modules/sysexits (Depends-on): Likewise.
12353
12354         freading: relax license from LGPLv3+ to LGPLv2+
12355         * modules/freading (License): Relax LGPL version.
12356
12357 2011-05-02  Bruno Haible  <bruno@clisp.org>
12358
12359         fchdir: Remove unused dependencies.
12360         * modules/fchdir (Depends-on): Remove include_next.
12361
12362 2011-05-02  Bruno Haible  <bruno@clisp.org>
12363
12364         gnulib-tool: Refactor.
12365         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12366         from func_emit_autoconf_snippets.
12367         (func_emit_autoconf_snippets): Use it.
12368
12369 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12370
12371         * NEWS: Document removal of 'exit'.
12372         * modules/exit: Remove file.
12373
12374 2011-05-01  Bruno Haible  <bruno@clisp.org>
12375
12376         Update DEPENDENCIES.
12377         * DEPENDENCIES (gettext): Recommend the newest release.
12378         Reported by Simon Josefsson.
12379
12380 2011-05-01  Bruno Haible  <bruno@clisp.org>
12381
12382         gnulib-tool: Reduce code duplication.
12383         * gnulib-tool (func_emit_autoconf_snippets): New function.
12384         (func_import, func_create_testdir): Use it.
12385
12386 2011-04-30  Eric Blake  <eblake@redhat.com>
12387
12388         fclose: don't fail on non-seekable input stream
12389         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12390         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12391         since fflush is allowed to fail in that case.
12392
12393 2011-04-30  Bruno Haible  <bruno@clisp.org>
12394
12395         dup3: cleanup
12396         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12397
12398 2011-04-30  Bruno Haible  <bruno@clisp.org>
12399
12400         netdb: Make it work in C++ mode.
12401         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12402         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12403         module.
12404         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12405         gl_MODULE_INDICATOR_FOR_TESTS.
12406         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12407         * modules/netdb-c++-tests: New file.
12408         * tests/test-netdb-c++.cc: New file.
12409
12410 2011-04-30  Bruno Haible  <bruno@clisp.org>
12411
12412         New modules 'vfscanf', 'vscanf'.
12413         * modules/vfscanf: New file.
12414         * modules/vscanf: New file.
12415         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12416         here.
12417         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12418         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12419
12420 2011-04-30  Bruno Haible  <bruno@clisp.org>
12421
12422         passfd: Add comments.
12423         * lib/passfd.c: Add comments about platforms.
12424
12425 2011-04-30  Bruno Haible  <bruno@clisp.org>
12426
12427         sys_uio: Make <sys/uio.h> self-contained.
12428         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12429         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12430
12431 2011-04-30  Bruno Haible  <bruno@clisp.org>
12432
12433         sys_socket: Ensure 'struct iovec' definition.
12434         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12435         <sys/socket.h>.
12436         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12437
12438 2011-04-30  Bruno Haible  <bruno@clisp.org>
12439
12440         sys_uio: Protect definition of 'struct iovec'.
12441         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12442         it as a C struct.
12443
12444 2011-04-30  Bruno Haible  <bruno@clisp.org>
12445
12446         manywarnings: fix indentation
12447         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12448
12449 2011-04-30  Pádraig Brady <P@draigBrady.com>
12450
12451         manywarnings: add -Wno-missing-field-initializers if needed.
12452         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12453         option if it's needed to allow initialization with { 0, }
12454
12455 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12456
12457         announce-gen: cosmetic improvement
12458         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12459
12460 2011-04-29  Jim Meyering  <meyering@redhat.com>
12461
12462         vc-list-files: indent with spaces, not TABs
12463         * build-aux/vc-list-files: Convert leading TABs to spaces,
12464         to match the style of most other files in gnulib.
12465
12466         announce-gen: indent with spaces, not TABs
12467         * build-aux/announce-gen: Convert all TABs to spaces, to match
12468         the style of most other files in gnulib.
12469
12470 2011-04-29  Eric Blake  <eblake@redhat.com>
12471
12472         quotearg: avoid uninitialized variable use
12473         * lib/quotearg.c (quoting_options_from_style): Initialize
12474         remaining fields, and ensure that custom styles are only used via
12475         quoting_options rather than quoting_style.
12476
12477 2011-04-29  Jim Meyering  <meyering@redhat.com>
12478
12479         maint.mk: remove unused VC-tag variable
12480         * top/maint.mk (VC-tag): Remove unused variable.
12481
12482 2011-04-29  Bruno Haible  <bruno@clisp.org>
12483
12484         netdb: fix gai_strerror replacements
12485         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12486         * modules/netdb: Substitute it.
12487
12488 2011-04-29  Jim Meyering  <meyering@redhat.com>
12489
12490         test-getcwd.c: avoid new set-but-not-used warning
12491         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12492         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12493         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12494         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12495
12496         test-hash.c: avoid a new shadowing warning
12497         * tests/test-hash.c (main): Don't shadow "dup".
12498
12499 2011-04-28  Eric Blake  <eblake@redhat.com>
12500
12501         getaddrinfo: fix gai_strerror signature
12502         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12503         and work around mingw with UNICODE defined.
12504         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12505         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12506         * modules/netdb (Makefile.am): Substitute it.
12507         * lib/netdb.in.h (gai_strerror): Declare replacement.
12508         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12509         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12510         the fix.
12511
12512         getsockopt: avoid compiler warning
12513         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12514         Reported by Matthias Bolte.
12515
12516         tests: drop unused link dependency
12517         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12518         * modules/dirent-safer-tests (Makefile.am): Likewise.
12519         * modules/fdopendir-tests (Makefile.am): Likewise.
12520         * modules/mkfifoat-tests (Makefile.am): Likewise.
12521         * modules/openat-safer-tests (Makefile.am): Likewise.
12522         * modules/openat-tests (Makefile.am): Likewise.
12523         * modules/readlinkat-tests (Makefile.am): Likewise.
12524         * modules/symlinkat-tests (Makefile.am): Likewise.
12525         * modules/linkat-tests (Makefile.am): Likewise.
12526         (Depends-on): Switch to filenamecat-lgpl.
12527         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12528         LIBINTL.
12529         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12530         * tests/test-linkat.c (main): Don't require xalloc.
12531
12532         hash, mgetgroups: drop xalloc dependency
12533         * lib/hash.c (includes): Adjust includes.
12534         * lib/mgetgroups.c (includes): Likewise.
12535         (xgetgroups): Move...
12536         * lib/xgetgroups.c: ...to new file.
12537         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12538         * modules/xgetgroups: New file, split from...
12539         * modules/mgetgroups: ...here.
12540         (Depends-on): Add xalloc-oversized.
12541         * modules/hash (Depends-on): Likewise.
12542         * modules/hash-tests (Depends-on): Drop xalloc.
12543         (test_hash_LDADD): Drop unused library.
12544         * tests/test-hash.c (main): Break xalloc dependency.
12545         (includes): Drop unused include.
12546
12547         xalloc-oversized: new module
12548         * modules/xalloc-oversized: New module.
12549         * modules/xalloc (Depends-on): Add it.
12550         * lib/xalloc.h (xalloc_oversized): Move...
12551         * lib/xalloc-oversized.h: ...into new file.
12552
12553         utimecmp: drop dependency on xmalloc
12554         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12555         due to memory pressure.
12556         * modules/utimecmp (Depends-on): Drop xalloc.
12557
12558 2011-04-27  Eric Blake  <eblake@redhat.com>
12559
12560         getcwd: fix mingw bugs
12561         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12562         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12563         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12564
12565 2011-04-27  Bruno Haible  <bruno@clisp.org>
12566
12567         mkstemps: Ensure declaration on MacOS X 10.5.
12568         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12569         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12570         MacOS X.
12571
12572 2011-04-27  Bruno Haible  <bruno@clisp.org>
12573
12574         mkstemp: More documentation.
12575         * doc/posix-functions/mkstemp.texi: Document header file problem on
12576         MacOS X.
12577
12578 2011-04-27  Bruno Haible  <bruno@clisp.org>
12579
12580         mkstemp: Tweak configure message when cross-compiling.
12581         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12582         result as a guess.
12583
12584 2011-04-27  Bruno Haible  <bruno@clisp.org>
12585
12586         clean-temp: Clarify what it does.
12587         * lib/clean-temp.h: Add more comments.
12588         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12589         module.
12590         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12591         * doc/glibc-functions/mkstemps.texi: Likewise.
12592         * doc/glibc-functions/mkostemps.texi: Likewise.
12593
12594 2011-04-27  Eric Blake  <eblake@redhat.com>
12595
12596         fchdir: avoid extra chdir and fix test
12597         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12598         getcwd-lgpl.
12599         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12600         have to be canonical.
12601         (canonicalize_file_name): Drop unused macro.
12602         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12603
12604         filenamecat-lgpl: fix licence
12605         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12606         when it was first created.
12607
12608         linkat, renameat: add missing dependency
12609         * modules/linkat (Depends-on): Require getcwd-lgpl.
12610         * modules/renameat (Depends-on): Likewise.
12611
12612         tests: reduce dependencies
12613         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12614         * tests/test-renameat.c (main): Likewise.
12615         * modules/linkat-tests (Depends-on): Relax dependency.
12616         * modules/renameat-tests (Depends-on): Likewise.
12617         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12618         dependency explicit.
12619
12620         save-cwd: reduce default dependency
12621         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12622         * lib/save-cwd.c: Update comments.
12623         * NEWS: Document the semantic change.
12624
12625         getcwd: enhance tests
12626         * tests/test-getcwd-lgpl.c: New file, taken from...
12627         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12628         repeat long path stress tests from m4 probe.
12629         * modules/getcwd-lgpl-tests: New module.
12630         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12631         * m4/getcwd-abort-bug.m4: Update comment.
12632         * m4/getcwd-path-max.m4: Likewise.
12633
12634         getcwd-lgpl: new module
12635         * modules/getcwd-lgpl: New module.
12636         * lib/getcwd-lgpl.c: New file.
12637         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12638         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12639         * modules/getcwd (configure.ac): Set C witness.
12640         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12641
12642         getcwd: tweak comments
12643         * m4/getcwd-abort-bug.m4: Fix comments.
12644         * m4/getcwd-path-max.m4: Likewise.
12645         * m4/getcwd.m4: Likewise.
12646
12647 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12648         and Eric Blake  <eblake@redhat.com>
12649
12650         mkstemp: replace if system version uses wrong permissions
12651         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12652         read/write mode bits set in file created by mkstemp.
12653         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12654
12655 2011-04-27  Eric Blake  <eblake@redhat.com>
12656
12657         passfd: avoid compiler warning
12658         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12659         Reported by Laine Stump.
12660
12661 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12662
12663         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12664         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12665
12666 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12667         and Eric Blake  <eblake@redhat.com>
12668
12669         mkstemp: mention clean-temp module
12670         * lib/mkstemp.c: Add comment.
12671         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12672
12673 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12674
12675         inttypes: also provide default values for 32-bit tests
12676         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12677         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12678
12679 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12680
12681         strtoumax: remove dependency on strtoimax
12682         This is like the strtoull change of yesterday.
12683         * modules/strtoumax (Files): Add lib/strtoimax.c.
12684         (Depends-on): Remove strtoimax and add verify.
12685
12686         inttypes-incomplete: new module
12687         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12688         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12689         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12690         of gl_INTTYPES_H.
12691         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12692         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12693         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12694         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12695         * modules/strtoumax, modules/xstrtol (Depends-on):
12696         Depend on inttypes-incomplete, not inttypes.
12697         * modules/inttypes-incomplete: New module, containing the contents
12698         of the old modules/inttypes module, except that the Files: section
12699         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12700         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12701         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12702         (Depends-on): Depend only on inttypes-incomplete.
12703         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12704
12705         inttypes: omit now-redundant strtoimax and strtoumax work
12706         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12707         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12708
12709         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12710         This supports apps that need pointers to strtoimax and strtoumax,
12711         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12712         nonexistent functions.  See
12713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12714         et seq.
12715         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12716         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12717         a macro.
12718         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12719
12720 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12721
12722         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12723
12724 2011-04-25  Bruno Haible  <bruno@clisp.org>
12725
12726         strtol, strtoul: Mark modules as obsolete.
12727         * modules/strtol (Status, Notice): New sections.
12728         * modules/strtoul (Status, Notice): New sections.
12729
12730 2011-04-25  Bruno Haible  <bruno@clisp.org>
12731
12732         strtod: Remove check for strtod, unless supporting old platforms.
12733         * modules/strtod-obsolete: New file.
12734         * m4/strtod-obsolete.m4: New file.
12735         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12736         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12737         * modules/strtod (Depends-on): Add strtod-obsolete.
12738         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12739
12740 2011-04-25  Bruno Haible  <bruno@clisp.org>
12741
12742         strcase: Make module obsolete.
12743         * modules/strcase (Status, Notice): New sections.
12744
12745 2011-04-25  Bruno Haible  <bruno@clisp.org>
12746
12747         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12748         * modules/dup2-obsolete: New file.
12749         * m4/dup2-obsolete.m4: New file.
12750         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12751         gl_FUNC_DUP2_OBSOLETE is not also defined.
12752         * modules/dup2 (Depends-on): Add dup2-obsolete.
12753         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12754
12755 2011-04-25  Bruno Haible  <bruno@clisp.org>
12756
12757         strnlen: Avoid memchr related link error on old obsolete platforms.
12758         * modules/memchr-obsolete: New file.
12759         * m4/memchr-obsolete.m4: New file.
12760         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12761         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12762         * modules/memchr (Depends-on): Add memchr-obsolete.
12763         * modules/strnlen (Depends-on): Likewise.
12764         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12765
12766 2011-04-25  Jim Meyering  <meyering@redhat.com>
12767
12768         maint.mk: makefile_at_at_check extend and clean up
12769         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12770         in addition to */Makefile.am.
12771         Exempt legitimate uses of @VAR@ notation, e.g.,
12772         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12773         Remove obsolete coreutils-specific comment.
12774         Prompted by discussion here:
12775         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12776
12777 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12778
12779         strtoul: remove dependency on strtol
12780         This is so that 'configure' need not check for strtol merely because
12781         the application needs strtoul.
12782         * modules/strtoul (Files): Add lib/strtol.c.
12783         (Depends-on): Remove strtol.
12784
12785         strtoull: remove dependency on strtoul
12786         This is like the strtoll change.
12787         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12788         (Depends-on): Remove strtoul.
12789
12790         strtoll: remove dependency on strtol
12791         This is so that 'configure' need not check for strtol merely because
12792         the application needs strtoll.
12793         * modules/strtoll (Files): Add lib/strtol.c.
12794         (Depends-on): Remove strtol.
12795
12796 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12797
12798         inttypes: Move some configure check to module 'imaxdiv'.
12799         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12800         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12801         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12802
12803 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12804
12805         inttypes: Move some configure check to module 'imaxabs'.
12806         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12807         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12808         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12809
12810 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12811
12812         inttypes: Remove configure tests that are not needed since 2009-12-31.
12813         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12814         gl_cv_header_working_inttypes_h.
12815
12816 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12817
12818         * modules/strnlen (Depends-on): Remove memchr.
12819         The strnlen implementation doesn't need the memchr module's fixes; see
12820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12821
12822         strtol: remove dependency on wchar
12823         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12824         * modules/strtol (Depends-on): Remove wchar.
12825
12826 2011-04-21  Eric Blake  <eblake@redhat.com>
12827
12828         passfd: fix test regression on Linux
12829         * modules/passfd-tests (configure.ac): Correct socketpair check.
12830
12831         passfd: speed up configure and drop unused code
12832         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12833         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12834         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12835         Instead of probing at configure for unix_scm_rights_bsd44_way,
12836         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12837         check to a struct member probe.
12838         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12839         (sendfd, recvfd): Update preprocessor checks.
12840         * modules/passfd (Files): Reflect rename, and drop unused file.
12841         (Depends-on): Drop unused dependency.
12842
12843         passfd: allow compilation on mingw
12844         * modules/sys_socket (Depends-on): Add sys_uio.
12845         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12846         iovec and a minimal struct msghdr.
12847         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12848         * tests/test-sys_socket.c (main): Enhance test.
12849         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12850         guaranteed to provide what we need.
12851         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12852         * modules/passfd-tests (Depends-on): Add sys_wait.
12853         * tests/test-passfd.c (main): Skip test on mingw, for now.
12854         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12855         partial 'struct msghdr' implementation.
12856
12857         sys_uio: new module
12858         * modules/sys_uio: New module.
12859         * modules/sys_uio-tests: Likewise.
12860         * lib/sys_uio.in.h: New file.
12861         * m4/sys_uio_h.m4: Likewise.
12862         * tests/test-sys_uio.c: Likewise.
12863         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12864         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12865
12866 2011-04-20  Jim Meyering  <meyering@redhat.com>
12867
12868         useless-if-before-free: avoid false-positive
12869         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12870         disjunct so that it too requires a terminating ";".  Without that,
12871         this script would identify as useless one statement from gcc that
12872         was not:
12873           if (aligned_ptr)
12874             free (((void **) aligned_ptr) [-1]);
12875
12876 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12877
12878         doc: update users.txt.
12879         * users.txt: Add barcode.
12880
12881 2011-04-19  Bruno Haible  <bruno@clisp.org>
12882
12883         ioctl: Remove link dependency on native Windows.
12884         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12885         (gl_close_fn, gl_ioctl_fn): New types.
12886         (struct fd_hook): Renamed from struct close_hook. Change type of
12887         private_close_fn field. Add private_ioctl_fn field.
12888         (close_hook_fn): Add parameter for primary close method.
12889         (execute_close_hooks, execute_all_close_hooks): Likewise.
12890         (ioctl_hook_fn): New type.
12891         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12892         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12893         argument.
12894         (unregister_fd_hook): Renamed from unregister_close_hook.
12895         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12896         Don't include <unistd.h>.
12897         (close): Remove undef.
12898         (anchor): Update.
12899         (execute_close_hooks): Add argument for primary close method.
12900         (execute_all_close_hooks): Likewise.
12901         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12902         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12903         argument. Allow each argument to be NULL.
12904         (unregister_fd_hook): Renamed from unregister_close_hook.
12905         * lib/close.c (rpl_close): Pass 'close' function pointer to
12906         execute_all_close_hooks.
12907         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12908         (primary_ioctl): New function.
12909         (ioctl): Don't call ioctlsocket here. Instead, call
12910         execute_all_ioctl_hooks.
12911         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12912         close method.
12913         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12914         (fd_sockets_hook): Renamed from close_sockets_hook.
12915         (gl_sockets_startup, gl_sockets_cleanup): Update.
12916         * modules/fd-hook: Renamed from modules/close-hook. Update.
12917         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12918         * modules/sockets (Depends-on): Likewise.
12919         * modules/ioctl (Depends-on): Add fd-hook.
12920         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12921         GNULIB_SOCKET.
12922
12923 2011-04-19  Bruno Haible  <bruno@clisp.org>
12924
12925         Move the support of O_NONBLOCK in open() to the 'open' module.
12926         * modules/nonblocking (Depends-on): Remove 'open'.
12927         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12928         gl_cv_have_open_O_NONBLOCK.
12929         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12930         O_NONBLOCK support.
12931         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12932
12933 2011-04-17  Bruno Haible  <bruno@clisp.org>
12934
12935         pipe2: Simplify code.
12936         * lib/pipe2.c (pipe2): Reduce code duplication.
12937
12938 2011-04-17  Bruno Haible  <bruno@clisp.org>
12939
12940         nonblocking: Add comment.
12941         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12942
12943 2011-04-17  Bruno Haible  <bruno@clisp.org>
12944
12945         nonblocking: Add tests for sockets.
12946         * tests/test-nonblocking-socket.sh: New file.
12947         * tests/test-nonblocking-socket-main.c: New file.
12948         * tests/test-nonblocking-socket-child.c: New file.
12949         * tests/test-nonblocking-socket.h: New file.
12950         * tests/socket-server.h: New file.
12951         * tests/socket-client.h: New file.
12952         * modules/nonblocking-socket-tests: New file.
12953         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12954
12955 2011-04-17  Bruno Haible  <bruno@clisp.org>
12956
12957         nonblocking: Add tests for pipes.
12958         * tests/test-nonblocking-pipe.sh: New file.
12959         * tests/test-nonblocking-pipe-main.c: New file.
12960         * tests/test-nonblocking-pipe-child.c: New file.
12961         * tests/test-nonblocking-pipe.h: New file.
12962         * tests/test-nonblocking-writer.h: New file.
12963         * tests/test-nonblocking-reader.h: New file.
12964         * tests/test-nonblocking-misc.h: New file.
12965         * modules/nonblocking-pipe-tests: New file.
12966         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12967
12968 2011-04-16  Bruno Haible  <bruno@clisp.org>
12969
12970         gettext: Clarify the needed programmer actions.
12971         * modules/gettext (Notice): New field.
12972         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12973
12974 2011-04-16  Bruno Haible  <bruno@clisp.org>
12975
12976         strchrnul: Tweak last commit.
12977         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12978         bug.
12979         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12980         as in _GL_FUNCDECL_SYS.
12981         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12982         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12983
12984 2011-04-15  Eric Blake  <eblake@redhat.com>
12985
12986         strchrnul: work around cygwin bug
12987         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12988         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12990         * modules/string (Makefile.am): Substitute it.
12991         * lib/string.in.h (strchrnul): Use it.
12992
12993 2011-04-15  Bruno Haible  <bruno@clisp.org>
12994
12995         Don't require lib/stdio-write.c when only module 'stdio' is used.
12996         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12997         invocation.
12998         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12999
13000 2011-04-14  Bruno Haible  <bruno@clisp.org>
13001
13002         Support non-blocking pipe I/O in read() on native Windows.
13003         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13004         (read): New declaration.
13005         * lib/read.c: New file.
13006         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13007         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13008         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13009         vscanf): New declarations.
13010         * lib/stdio-read.c: New file.
13011         * m4/read.m4: New file.
13012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13013         REPLACE_READ.
13014         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13015         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13016         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13017         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13018         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13019         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13020         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13021         * modules/read: New file.
13022         * modules/nonblocking (Files): Add lib/stdio-read.c.
13023         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13024         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13025         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13026         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13027         * modules/pread (Depends-on): Add read.
13028         * modules/safe-read (Depends-on): Likewise.
13029         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13030         gets, scanf, vfscanf, vscanf): Verify signatures.
13031         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13032         problem with non-blocking pipes.
13033         * doc/posix-functions/fgetc.texi: Likewise.
13034         * doc/posix-functions/fgets.texi: Likewise.
13035         * doc/posix-functions/fread.texi: Likewise.
13036         * doc/posix-functions/fscanf.texi: Likewise.
13037         * doc/posix-functions/getc.texi: Likewise.
13038         * doc/posix-functions/getchar.texi: Likewise.
13039         * doc/posix-functions/gets.texi: Likewise.
13040         * doc/posix-functions/scanf.texi: Likewise.
13041         * doc/posix-functions/vfscanf.texi: Likewise.
13042         * doc/posix-functions/vscanf.texi: Likewise.
13043
13044 2011-04-14  Bruno Haible  <bruno@clisp.org>
13045
13046         Support non-blocking pipe I/O in write() on native Windows.
13047         * lib/write.c (rpl_write): Split a write request that failed merely
13048         because the byte count was larger than the pipe buffer's size.
13049         * doc/posix-functions/write.texi: Mention the problem with large byte
13050         counts.
13051
13052 2011-04-14  Bruno Haible  <bruno@clisp.org>
13053
13054         wchar: Ensure that wchar_t gets defined on uClibc.
13055         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13056         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13057
13058 2011-04-13  Bruno Haible  <bruno@clisp.org>
13059
13060         safe-write, full-read: Avoid unnecessary compilation units.
13061         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13062         (Depends-on): Remove safe-read. Add ssize_t.
13063         * modules/full-read (Files): Add lib/full-write.c.
13064         (Depends-on): Add full-write.
13065
13066 2011-04-13  Bruno Haible  <bruno@clisp.org>
13067
13068         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13069         * modules/pwrite (Depends-on): Add 'write'.
13070
13071 2011-04-13  Bruno Haible  <bruno@clisp.org>
13072
13073         Support non-blocking pipe I/O in write() on native Windows.
13074         * lib/unistd.in.h (write): Enable replacement also if
13075         GNULIB_UNISTD_H_NONBLOCKING is 1.
13076         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13077         (rpl_write): When failing to write on a non-blocking pipe, change
13078         errno from ENOSPC to EAGAIN.
13079         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13080         putchar, puts, vfprintf, vprintf): Enable replacement also if
13081         GNULIB_STDIO_H_NONBLOCKING is 1.
13082         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13083         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13084         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13085         CALL_WITH_SIGPIPE_EMULATION.
13086         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13087         * m4/nonblocking.m4: New file.
13088         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13089         for non-blocking I/O support.
13090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13091         GNULIB_UNISTD_H_NONBLOCKING.
13092         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13093         required for non-blocking I/O support.
13094         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13095         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13096         lib/stdio-write.c, m4/asm-underscore.m4.
13097         (Depends-on): Add stdio, unistd.
13098         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13099         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13100         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13101         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13102         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13103         problem with non-blocking pipes.
13104         * doc/posix-functions/fputc.texi: Likewise.
13105         * doc/posix-functions/fputs.texi: Likewise.
13106         * doc/posix-functions/fwrite.texi: Likewise.
13107         * doc/posix-functions/printf.texi: Likewise.
13108         * doc/posix-functions/putc.texi: Likewise.
13109         * doc/posix-functions/putchar.texi: Likewise.
13110         * doc/posix-functions/puts.texi: Likewise.
13111         * doc/posix-functions/vfprintf.texi: Likewise.
13112         * doc/posix-functions/vprintf.texi: Likewise.
13113         * doc/posix-functions/write.texi: Likewise.
13114
13115 2011-04-10  Jim Meyering  <meyering@redhat.com>
13116
13117         maint.mk: prohibit doubled words
13118         Detect them also when they're separated by a newline.
13119         There are 3 ways to customize it:
13120           - disable the test on a per file basis, as usual with rules using
13121             $(VC_LIST_EXCEPT)
13122           - replace the default doubled-word-selecting regexp (affects all files)
13123           - ignore a particular file-vs-doubled-word match
13124         I nearly used that last one to ignore the "is is" match in
13125         coreutils' NEWS file, since the text was "ls -is is ..."
13126         To do that, I would have added this line to cfg.mk:
13127           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13128         but it would have ignored any "is is" match in NEWS.
13129         Low probability, but still...
13130         Instead, I changed the text, slightly:
13131           -  ls -is is now consistent with ls -lis in ignoring values returned
13132           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13133         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13134         (prohibit_doubled_word_): Define.
13135         (sc_prohibit_doubled_word): New rule.
13136         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13137
13138 2011-04-10  Jim Meyering  <meyering@redhat.com>
13139
13140         maint: fix doubled-word typo in comment
13141         * m4/gethostname.m4: s/is is/it is/
13142         * m4/getdomainname.m4: Likewise.
13143
13144 2011-04-10  Jim Meyering  <meyering@redhat.com>
13145
13146         maint: remove doubled word: s/it it/it/
13147         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13148
13149 2011-04-10  Jim Meyering  <meyering@redhat.com>
13150
13151         maint.mk: remove useless semicolon and backslash
13152         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13153         semicolon and backslash.
13154
13155 2011-04-10  Bruno Haible  <bruno@clisp.org>
13156
13157         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13158         * modules/stdint-tests (Depends-on): Add wchar.
13159
13160 2011-04-10  Jim Meyering  <meyering@redhat.com>
13161
13162         maint: remove doubled words in comments, e.g., s/a a/a/
13163         * lib/strptime.c (day_of_the_week): s/the the/the/
13164         * tests/test-chown.h (test_chown): s/a a/a/
13165
13166         test-chown.h: correct a cast
13167         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13168         when the destination is a stat.st_gid.
13169
13170 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13171
13172         getaddrinfo: Fix test for sa_len member.
13173         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13174         include <sys/types.h> before <sys/socket.h>.
13175
13176 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13177
13178         maint: change "can not" to "cannot"
13179         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13180         boundaries.
13181
13182 2011-04-09  Jim Meyering  <meyering@redhat.com>
13183
13184         maint: change "a a" to "a"
13185         * tests/test-lchown.h (test_lchown): s/a a/a/
13186
13187         maint.mk: prohibit \<the the\>
13188         * top/maint.mk (sc_prohibit_the_the): New rule.
13189
13190         maint: fix "the the" in comment
13191         * lib/count-one-bits.h: s/the the/the/
13192
13193         maint: change "can not" to "cannot"
13194         But do not change the occurrences in maintain.texi or in
13195         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13196         * doc/gnulib-tool.texi: s/can not/cannot/
13197         * doc/posix-functions/accept.texi (accept): Likewise.
13198         * doc/posix-functions/socket.texi (socket): Likewise.
13199         * lib/mbrtowc.c: Likewise.
13200
13201         maint.mk: prohibit use of "can not"
13202         * top/maint.mk (sc_prohibit_can_not): New rule.
13203         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13204
13205 2011-04-09  Bruno Haible  <bruno@clisp.org>
13206
13207         careadlinkat: Guard against misuse of careadlinkatcwd.
13208         * lib/careadlinkat.c: Include <stdlib.h>.
13209         (careadlinkatcwd): Check that the fd argument is as expected.
13210
13211 2011-04-09  Bruno Haible  <bruno@clisp.org>
13212
13213         careadlinkat: Use common coding style.
13214         * lib/careadlinkat.c: Move gnulib includes after system includes.
13215
13216 2011-04-09  Bruno Haible  <bruno@clisp.org>
13217
13218         careadlinkat: Clarify specification.
13219         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13220         (careadlinkatcwd): Add comment.
13221         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13222
13223 2011-04-09  Bruno Haible  <bruno@clisp.org>
13224
13225         areadlinkat: Avoid link error on many platforms.
13226         * modules/areadlinkat (Depends-on): Add areadlink.
13227
13228 2011-04-09  Bruno Haible  <bruno@clisp.org>
13229
13230         allocator, careadlinkat: Fix double-inclusion guard.
13231         * lib/allocator.h: Fix double-inclusion guard.
13232         * lib/careadlinkat.h: Likewise.
13233
13234 2011-04-09  Bruno Haible  <bruno@clisp.org>
13235
13236         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13237         * lib/relocwrapper.c: Update dependencies hierarchy.
13238         * build-aux/install-reloc: Update list of files to be compiled.
13239         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13240         lib/allocator.[hc].
13241
13242 2011-04-08  Eric Blake  <eblake@redhat.com>
13243
13244         strftime: silence gnulib-tool warning
13245         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13246
13247 2011-04-08  Bruno Haible  <bruno@clisp.org>
13248
13249         verify: Fix syntax error with GCC 4.6 in C++ mode.
13250         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13251         (HAVE_STATIC_ASSERT): New macro.
13252         (verify_true, verify): Use 'static_assert' if it is supported and
13253         '_Static_assert' is not supported.
13254
13255 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13256
13257         allocator: New module.
13258         * modules/allocator, lib/allocator.c: New files.
13259         * lib/allocator.h (stdlib_allocator): New decl.
13260         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13261         Remove.  Do not include <stdlib.h>.
13262         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13263         * modules/careadlinkat (Files): Remove lib/allocator.h.
13264         (Depends-on): Add allocator.
13265
13266         stdlib: let modules use system malloc, realloc
13267         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13268         if !_GL_USE_STDLIB_ALLOC.
13269         (malloc, realloc): Limit this change to a smaller scope.
13270
13271         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13272         (malloc, realloc): Don't #undef; no longer needed.
13273         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13274         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13275         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13276         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13277         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13278         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13279         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13280         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13281
13282         careadlinkat: rename members to avoid problem
13283         * lib/allocator.h (struct allocator): Rename members from
13284         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13285         and realloc are #define'd.  Reported by Eric Blake in
13286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13287         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13288
13289 2011-04-08  Eric Blake  <eblake@redhat.com>
13290
13291         nonblocking: reduce dependency
13292         * tests/test-nonblocking.c: Only test sockets when in use.
13293         * modules/nonblocking-tests (Depends-on): Drop socket.
13294         (Makefile.am): Link even if sockets are not present.
13295         * modules/pipe2-tests (Makefile.am): Likewise.
13296         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13297
13298         pipe2: fix O_NONBLOCK support on mingw
13299         * modules/pipe2 (Depends-on): Add nonblocking.
13300         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13301         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13302         * tests/test-nonblocking.c (main): Likewise.
13303         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13304
13305         fcntl-h: fix O_ACCMODE on cygwin
13306         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13307         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13308
13309         pipe-filter: drop O_NONBLOCK workarounds
13310         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13311         * modules/pipe-filter-ii (Depends-on): Likewise.
13312         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13313
13314         nonblocking: provide O_NONBLOCK for mingw
13315         * modules/nonblocking (Depends-on): Add open.
13316         (configure.ac): Set new witness macro.
13317         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13318         * modules/fcntl-h (Makefile.am): Substitute it.
13319         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13320         nonblocking module is in use.
13321         * lib/nonblocking.c: Adjust portability test.
13322         * lib/open.c (open): Don't let native open see gnulib flag.
13323         * tests/test-fcntl-h.c (main): Enhance test.
13324         * tests/test-open.h (test_open): Likewise.
13325         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13326
13327         careadlinkat: fix compilation error on mingw
13328         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13329         within struct allocator.
13330
13331 2011-04-06  Eric Blake  <eblake@redhat.com>
13332
13333         binary-io: relicense under LGPLv2+
13334         * modules/binary-io (License): Relax to LGPLv2+.
13335         Requested for libvirt, and required by pipe2.
13336
13337 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13338
13339         verify: use _Static_assert if available
13340         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13341         (verify_true, verify): Use it if available.  This generates better
13342         diagnostics with GCC 4.6.0 and later.
13343
13344 2011-04-05  Bruno Haible  <bruno@clisp.org>
13345
13346         Remove leftover generated .h files after config.status changed.
13347
13348         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13349         GL_GENERATE_ALLOCA_H.
13350         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13351         GL_GENERATE_ALLOCA_H evaluates to false.
13352
13353         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13354         GL_GENERATE_ARGZ_H.
13355         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13356         evaluates to false.
13357
13358         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13359         GL_GENERATE_BYTESWAP_H.
13360         * modules/byteswap (Makefile.am): Remove byteswap.h if
13361         GL_GENERATE_BYTESWAP_H evaluates to false.
13362
13363         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13364         GL_GENERATE_ERRNO_H.
13365         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13366         evaluates to false.
13367
13368         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13369         GL_GENERATE_FLOAT_H.
13370         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13371         evaluates to false.
13372
13373         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13374         GL_GENERATE_FNMATCH_H.
13375         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13376         GL_GENERATE_FNMATCH_H evaluates to false.
13377
13378         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13379         GL_GENERATE_GLOB_H.
13380         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13381         evaluates to false.
13382
13383         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13384         automake conditional GL_GENERATE_ICONV_H.
13385         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13386         evaluates to false.
13387
13388         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13389         GL_GENERATE_NETINET_IN_H.
13390         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13391         GL_GENERATE_NETINET_IN_H evaluates to false.
13392
13393         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13394         conditional GL_GENERATE_PTHREAD_H.
13395         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13396         * modules/pthread (Makefile.am): Remove pthread.h if
13397         GL_GENERATE_PTHREAD_H evaluates to false.
13398
13399         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13400         GL_GENERATE_SCHED_H.
13401         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13402         evaluates to false.
13403
13404         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13405         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13406         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13407         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13408
13409         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13410         GL_GENERATE_STDARG_H.
13411         * modules/stdarg (Makefile.am): Remove stdarg.h if
13412         GL_GENERATE_STDARG_H evaluates to false.
13413
13414         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13415         GL_GENERATE_STDBOOL_H.
13416         * modules/stdbool (Makefile.am): Remove stdbool.h if
13417         GL_GENERATE_STDBOOL_H evaluates to false.
13418
13419         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13420         conditional GL_GENERATE_STDDEF_H.
13421         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13422         * modules/stddef (Makefile.am): Remove stddef.h if
13423         GL_GENERATE_STDDEF_H evaluates to false.
13424
13425         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13426         GL_GENERATE_STDINT_H.
13427         * modules/stdint (Makefile.am): Remove stdint.h if
13428         GL_GENERATE_STDINT_H evaluates to false.
13429
13430         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13431         GL_GENERATE_SYSEXITS_H.
13432         * modules/sysexits (Makefile.am): Remove sysexits.h if
13433         GL_GENERATE_SYSEXITS_H evaluates to false.
13434
13435         Reported by Karl Berry and Ralf Wildenhues.
13436
13437 2011-04-05  Bruno Haible  <bruno@clisp.org>
13438
13439         Ensure to rebuild generated .h files when config.status has changed.
13440         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13441         config.status.
13442         * modules/ctype (Makefile.am): Likewise.
13443         * modules/dirent (Makefile.am): Likewise.
13444         * modules/errno (Makefile.am): Likewise.
13445         * modules/fcntl-h (Makefile.am): Likewise.
13446         * modules/float (Makefile.am): Likewise.
13447         * modules/getopt-posix (Makefile.am): Likewise.
13448         * modules/glob (Makefile.am): Likewise.
13449         * modules/iconv-h (Makefile.am): Likewise.
13450         * modules/inttypes (Makefile.am): Likewise.
13451         * modules/langinfo (Makefile.am): Likewise.
13452         * modules/locale (Makefile.am): Likewise.
13453         * modules/math (Makefile.am): Likewise.
13454         * modules/netdb (Makefile.am): Likewise.
13455         * modules/netinet_in (Makefile.am): Likewise.
13456         * modules/poll-h (Makefile.am): Likewise.
13457         * modules/pthread (Makefile.am): Likewise.
13458         * modules/pty (Makefile.am): Likewise.
13459         * modules/sched (Makefile.am): Likewise.
13460         * modules/search (Makefile.am): Likewise.
13461         * modules/selinux-h (Makefile.am): Likewise.
13462         * modules/signal (Makefile.am): Likewise.
13463         * modules/spawn (Makefile.am): Likewise.
13464         * modules/stdarg (Makefile.am): Likewise.
13465         * modules/stdbool (Makefile.am): Likewise.
13466         * modules/stddef (Makefile.am): Likewise.
13467         * modules/stdint (Makefile.am): Likewise.
13468         * modules/stdio (Makefile.am): Likewise.
13469         * modules/stdlib (Makefile.am): Likewise.
13470         * modules/string (Makefile.am): Likewise.
13471         * modules/strings (Makefile.am): Likewise.
13472         * modules/sys_file (Makefile.am): Likewise.
13473         * modules/sys_ioctl (Makefile.am): Likewise.
13474         * modules/sys_select (Makefile.am): Likewise.
13475         * modules/sys_socket (Makefile.am): Likewise.
13476         * modules/sys_stat (Makefile.am): Likewise.
13477         * modules/sys_time (Makefile.am): Likewise.
13478         * modules/sys_times (Makefile.am): Likewise.
13479         * modules/sys_utsname (Makefile.am): Likewise.
13480         * modules/sys_wait (Makefile.am): Likewise.
13481         * modules/sysexits (Makefile.am): Likewise.
13482         * modules/termios (Makefile.am): Likewise.
13483         * modules/time (Makefile.am): Likewise.
13484         * modules/unistd (Makefile.am): Likewise.
13485         * modules/wchar (Makefile.am): Likewise.
13486         * modules/wctype-h (Makefile.am): Likewise.
13487         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13488
13489 2011-04-05  Bruno Haible  <bruno@clisp.org>
13490
13491         pipe2: Relicense under LGPLv2+.
13492         * modules/pipe2 (License): Change to LGPLv2+.
13493         Requested by Eric Blake, for libvirt.
13494
13495 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13496
13497         bootstrap: compute gnulib_extra_files after updating build_aux
13498         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13499         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13500
13501 2011-04-05  Eric Blake  <eblake@redhat.com>
13502
13503         bootstrap: preserve git whitelist item sorting
13504         * build-aux/bootstrap (sort_patterns): New function.
13505         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13506
13507 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13508
13509         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13510         sc_space_tab check.
13511
13512 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13513
13514         areadlink, areadlinkat: rewrite in terms of careadlinkat
13515         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13516         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13517         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13518         (malloc, realloc): Remove #undefs.
13519         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13520         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13521         readlink, ssize_t, stdint, unistd.
13522         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13523         areadlink, stdint.
13524
13525         careadlinkat: new module
13526         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13527         * modules/careadlinkat: New files, written by me with
13528         a review and feedback from Ben Pfaff in
13529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13530
13531 2011-04-01  Bruno Haible  <bruno@clisp.org>
13532
13533         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13534         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13535         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13536         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13537         Reported by Bruce Korb <bruce.korb@gmail.com>.
13538
13539 2011-04-01  Bruno Haible  <bruno@clisp.org>
13540
13541         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13542         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13543         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13544         * modules/wcpcpy (Depends-on): Add extensions.
13545         * modules/wcpncpy (Depends-on): Likewise.
13546         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13547         systems.
13548         * doc/posix-functions/wcpncpy.texi: Likewise.
13549         * doc/posix-functions/wcwidth.texi: Likewise.
13550
13551 2011-03-31  Eric Blake  <eblake@redhat.com>
13552
13553         nonblocking: fix mingw test failures
13554         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13555         non-blocking flag on regular file.
13556         (get_nonblocking_flag): Set errno on invalid fd.
13557         * tests/test-nonblocking.c (main): Avoid test failure on
13558         directories if fchdir is not active.
13559         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13560
13561 2011-03-31  Bruno Haible  <bruno@clisp.org>
13562
13563         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13564         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13565         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13566         Reported by Simon Josefsson <simon@josefsson.org>.
13567
13568 2011-03-31  Bruno Haible  <bruno@clisp.org>
13569         and Eric Blake  <eblake@redhat.com>
13570
13571         nonblocking: new module
13572         * modules/nonblocking: New module.
13573         * modules/nonblocking-tests: Likewise.
13574         * lib/nonblocking.h: New file.
13575         * lib/nonblocking.c: Likewise.
13576         * tests/test-nonblocking.c: New test.
13577         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13578
13579 2011-03-30  Bruno Haible  <bruno@clisp.org>
13580
13581         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13582         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13583         instead of 'printf' format for GCC >= 4.4.
13584         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13585         (fprintf, printf, vfprintf, vprintf): Declare with
13586         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13587         the system's vfprintf() function.
13588         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13589
13590 2011-03-30  Eric Blake  <eblake@redhat.com>
13591
13592         passfd: fix scoping bug
13593         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13594         before sendmsg/recvmsg.
13595
13596         passfd: standardize coding conventions
13597         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13598         can be learned at compile time.
13599         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13600         ifdefs.
13601         (sendfd, recvfd): Follow gnulib code conventions.
13602
13603         passfd: fix incorrect sendmsg arguments
13604         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13605         incorrect msg_controllen value.
13606         * modules/passfd-tests (Depends-on): Check for alarm.
13607         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13608         Reported by Bastien ROUCARIES.
13609
13610 2011-03-30  Bruno Haible  <bruno@clisp.org>
13611
13612         c-strcasestr: Relicense under LGPLv2+.
13613         * modules/c-strcasestr (License): Change to LGPLv2+.
13614         Requested by Eric Blake, for libvirt.
13615
13616 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13617
13618         * users.txt: Add libidn2.  Fix libtasn1 link.
13619
13620 2011-03-30  Jim Meyering  <meyering@redhat.com>
13621
13622         tests: readlink* ("",... fails with EINVAL on newer kernels
13623         readlink and readlinkat have typically failed with ENOENT for
13624         the invalid, empty file name,  "".  However, with the advent
13625         of linux-2.6.39, they fail with EINVAL.
13626         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13627         when operating on the empty file name.
13628         * tests/test-readlink.h (test_readlink): Likewise.
13629
13630 2011-03-29  Bruno Haible  <bruno@clisp.org>
13631
13632         Relicense some modules under LGPLv2+, for libidn2.
13633         * modules/array-mergesort (License): Change to LGPLv2+.
13634         * modules/c-strcaseeq (License): Likewise.
13635         * modules/striconveh (License): Likewise.
13636         * modules/striconveha (License): Likewise.
13637         * modules/uniconv/base (License): Likewise.
13638         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13639         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13640         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13641         * modules/unictype/base (License): Likewise.
13642         * modules/unictype/bidiclass-of (License): Likewise.
13643         * modules/unictype/category-M (License): Likewise.
13644         * modules/unictype/category-none (License): Likewise.
13645         * modules/unictype/category-of (License): Likewise.
13646         * modules/unictype/category-test (License): Likewise.
13647         * modules/unictype/category-test-withtable (License): Likewise.
13648         * modules/unictype/combining-class (License): Likewise.
13649         * modules/unictype/joiningtype-of (License): Likewise.
13650         * modules/unictype/scripts (License): Likewise.
13651         * modules/uninorm/base (License): Likewise.
13652         * modules/uninorm/canonical-decomposition (License): Likewise.
13653         * modules/uninorm/composition (License): Likewise.
13654         * modules/uninorm/decompose-internal (License): Likewise.
13655         * modules/uninorm/decomposition-table (License): Likewise.
13656         * modules/uninorm/nfc (License): Likewise.
13657         * modules/uninorm/nfd (License): Likewise.
13658         * modules/uninorm/u32-normalize (License): Likewise.
13659         * modules/unistr/base (License): Likewise.
13660         * modules/unistr/u32-cpy (License): Likewise.
13661         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13662         * modules/unistr/u32-to-u8 (License): Likewise.
13663         * modules/unistr/u32-uctomb (License): Likewise.
13664         * modules/unistr/u8-check (License): Likewise.
13665         * modules/unistr/u8-mblen (License): Likewise.
13666         * modules/unistr/u8-mbtouc (License): Likewise.
13667         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13668         * modules/unistr/u8-mbtoucr (License): Likewise.
13669         * modules/unistr/u8-prev (License): Likewise.
13670         * modules/unistr/u8-strlen (License): Likewise.
13671         * modules/unistr/u8-to-u32 (License): Likewise.
13672         * modules/unistr/u8-uctomb (License): Likewise.
13673         * modules/unitypes (License): Likewise.
13674         Requested by Simon Josefsson.
13675
13676 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13677
13678         lib-symbol-visibility: Add a notice.
13679         * modules/lib-symbol-visibility (Notice): New field.
13680
13681 2011-03-29  Bruno Haible  <bruno@clisp.org>
13682
13683         getaddrinfo: Doc fix.
13684         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13685         section "fixed in Gnulib".
13686
13687 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13688
13689         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13690         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13691
13692 2011-03-26  Bruno Haible  <bruno@clisp.org>
13693
13694         unictype/property-byname: Reduce the number of load-time relocations.
13695         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13696         (UC_PROPERTY_INDEX_*): New enumeration values.
13697         (uc_property_byname): Convert an index from the lookup table to an
13698         uc_property_t.
13699         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13700         values.
13701
13702 2011-03-26  Bruno Haible  <bruno@clisp.org>
13703
13704         unictype/property-byname: Allow omitted word separators and aliases.
13705         * lib/unictype/pr_byname.gperf: Add property names without word
13706         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13707         for 'space'.
13708
13709 2011-03-26  Bruno Haible  <bruno@clisp.org>
13710
13711         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13712         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13713         also hyphens to space.
13714         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13715         without spaces.
13716         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13717
13718 2011-03-26  Bruno Haible  <bruno@clisp.org>
13719
13720         unictype/joiningtype-byname: Recognize long names as well.
13721         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13722         a long name.
13723         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13724         unictype/joiningtype_byname.h.
13725         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13726         * lib/unictype/joiningtype_byname.gperf: New file.
13727         * modules/unictype/joiningtype-byname (Files): Add
13728         lib/unictype/joiningtype_byname.gperf.
13729         (Depends-on): Add gperf.
13730         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13731         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13732         long names.
13733
13734         Tests for module 'unictype/joiningtype-longname'.
13735         * modules/unictype/joiningtype-longname-tests: New file.
13736         * tests/unictype/test-joiningtype_longname.c: New file.
13737
13738         New module 'unictype/joiningtype-longname'.
13739         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13740         * lib/unictype/joiningtype_longname.c: New file.
13741         * modules/unictype/joiningtype-longname: New file.
13742         * modules/unictype/joiningtype-all (Depends-on): Add
13743         unictype/joiningtype-longname.
13744
13745 2011-03-26  Bruno Haible  <bruno@clisp.org>
13746
13747         unictype/bidiclass-byname: Recognize long names as well.
13748         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13749         name.
13750         * lib/unictype/bidi_byname.c: Include <string.h>,
13751         unictype/bidi_byname.h.
13752         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13753         * lib/unictype/bidi_byname.gperf: New file.
13754         * modules/unictype/bidiclass-byname (Files): Add
13755         lib/unictype/bidi_byname.gperf.
13756         (Depends-on): Add gperf.
13757         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13758         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13759         long names.
13760
13761         Tests for module 'unictype/bidiclass-longname'.
13762         * modules/unictype/bidiclass-longname-tests: New file.
13763         * tests/unictype/test-bidi_longname.c: New file.
13764
13765         New module 'unictype/bidiclass-longname'.
13766         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13767         * lib/unictype/bidi_longname.c: New file.
13768         * modules/unictype/bidiclass-longname: New file.
13769         * modules/unictype/bidiclass-all (Depends-on): Add
13770         unictype/bidiclass-longname.
13771
13772 2011-03-26  Bruno Haible  <bruno@clisp.org>
13773
13774         unictype/bidi*: Rename modules.
13775         * modules/unictype/bidiclass-all: Renamed from
13776         modules/unictype/bidicategory-all.
13777         * modules/unictype/bidiclass-name: Renamed from
13778         modules/unictype/bidiclass-name.
13779         (Description): Update.
13780         * modules/unictype/bidiclass-name-tests: Renamed from
13781         modules/unictype/bidicategory-name-tests.
13782         * modules/unictype/bidiclass-byname: Renamed from
13783         modules/unictype/bidicategory-byname.
13784         (Description): Update.
13785         * modules/unictype/bidiclass-byname-tests: Renamed from
13786         modules/unictype/bidicategory-byname-tests.
13787         * modules/unictype/bidiclass-of: Renamed from
13788         modules/unictype/bidicategory-of.
13789         (Description): Update.
13790         * modules/unictype/bidiclass-of-tests: Renamed from
13791         modules/unictype/bidicategory-of-tests.
13792         * modules/unictype/bidiclass-test: Renamed from
13793         modules/unictype/bidicategory-test.
13794         (Description): Update.
13795         * modules/unictype/bidiclass-test-tests: Renamed from
13796         modules/unictype/bidicategory-test-tests.
13797         * modules/unictype/bidicategory-all: New file, a simple redirection.
13798         * modules/unictype/bidicategory-name: Likewise.
13799         * modules/unictype/bidicategory-byname: Likewise.
13800         * modules/unictype/bidicategory-of: Likewise.
13801         * modules/unictype/bidicategory-test: Likewise.
13802         * modules/unictype/property-bidi-* (Dependencies): Update.
13803         * lib/unictype/bidi_*.c: Update comment.
13804
13805 2011-03-26  Bruno Haible  <bruno@clisp.org>
13806
13807         unictype/bidi*: Rename functions, part 2.
13808         * modules/unictype/bidicategory-name (configure.ac): Update required
13809         libunistring version.
13810         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13811
13812 2011-03-25  Bruno Haible  <bruno@clisp.org>
13813
13814         New module 'unictype/combining-class-all'.
13815         * modules/unictype/combining-class-all: New file.
13816
13817         Tests for module 'unictype/combining-class-byname'.
13818         * modules/unictype/combining-class-byname-tests: New file.
13819         * tests/unictype/test-combiningclass_byname.c: New file.
13820
13821         New module 'unictype/combining-class-byname'.
13822         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13823         * lib/unictype/combiningclass_byname.c: New file.
13824         * lib/unictype/combiningclass_byname.gperf: New file.
13825         * modules/unictype/combining-class-byname: New file.
13826
13827         Tests for module 'unictype/combining-class-longname'.
13828         * modules/unictype/combining-class-longname-tests: New file.
13829         * tests/unictype/test-combiningclass_longname.c: New file.
13830
13831         New module 'unictype/combining-class-longname'.
13832         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13833         * lib/unictype/combiningclass_longname.c: New file.
13834         * modules/unictype/combining-class-longname: New file.
13835
13836         Tests for module 'unictype/combining-class-name'.
13837         * modules/unictype/combining-class-name-tests: New file.
13838         * tests/unictype/test-combiningclass_name.c: New file.
13839
13840         New module 'unictype/combining-class-name'.
13841         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13842         * lib/unictype/combiningclass_name.c: New file.
13843         * modules/unictype/combining-class-name: New file.
13844
13845 2011-03-25  Bruno Haible  <bruno@clisp.org>
13846
13847         unictype/combining-class: Rename source files.
13848         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13849         of unictype/combining.h.
13850         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13851         Update.
13852         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13853         * modules/unictype/combining-class (Description): Fix.
13854         (Files, Makefile.am): Update.
13855         * tests/unictype/test-combiningclass.c: Renamed from
13856         tests/unictype/test-combining.c.
13857         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13858
13859 2011-03-25  Bruno Haible  <bruno@clisp.org>
13860
13861         unictype: Update list of canonical combining classes.
13862         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13863
13864 2011-03-25  Bruno Haible  <bruno@clisp.org>
13865
13866         unictype/category-byname: Recognize long names as well.
13867         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13868         a long name.
13869         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13870         unictype/categ_byname.h.
13871         (UC_CATEGORY_INDEX_*): New enumeration values.
13872         (uc_general_category_byname): Use uc_general_category_lookup and
13873         convert from index to value.
13874         * lib/unictype/categ_byname.gperf: New file.
13875         * modules/unictype/category-byname (Files): Add
13876         lib/unictype/categ_byname.gperf.
13877         (Depends-on): Add gperf.
13878         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13879         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13880         long names.
13881
13882         Tests for module 'unictype/category-longname'.
13883         * modules/unictype/category-longname-tests: New file.
13884         * tests/unictype/test-categ_longname.c: New file.
13885
13886         New module 'unictype/category-longname'.
13887         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13888         * lib/unictype/categ_longname.c: New file.
13889         * modules/unictype/category-longname: New file.
13890         * modules/unictype/category-all (Depends-on): Add it.
13891
13892 2011-03-25  Bruno Haible  <bruno@clisp.org>
13893
13894         Tests for module 'unictype/category-LC'.
13895         * modules/unictype/category-LC-tests: New file.
13896         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13897
13898         New module 'unictype/category-LC'.
13899         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13900         (UC_CATEGORY_LC): New declaration.
13901         (UC_CASED_LETTER): New macro.
13902         * lib/gen-uni-tables.c (is_category_LC): New function.
13903         (output_categories): Also handle category LC.
13904         (UC_CATEGORY_MASK_LC): New enumeration value.
13905         (general_category_byname): Also handle category LC.
13906         * lib/unictype/categ_LC.c: New file.
13907         * lib/unictype/categ_LC.h: New file, automatically generated.
13908         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13909         category LC.
13910         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13911         * modules/unictype/category-LC: New file.
13912         * modules/unictype/category-byname (Depends-on): Add
13913         unictype/category-LC.
13914         * modules/unictype/category-all (Depends-on): Likewise.
13915
13916 2011-03-25  Eric Blake  <eblake@redhat.com>
13917
13918         xmalloc: revert yesterday's regression
13919         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13920         realloc's underlying behavior (allowing allocation of zero-size
13921         objects, especially if malloc-gnu is also in use).
13922
13923 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13924
13925         maint.mk: add missing version to VC-tag
13926         * top/maint.mk: git tag was missing actual tag name; add it.
13927
13928         valgrind: do leak checking, and exit with code 1 on error (not 0)
13929         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13930         to VALGRIND.
13931
13932 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13933
13934         posix-modules: say what it does.
13935         * posix-modules: Add a line to the --help output saying what it does.
13936
13937 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13938
13939         xmalloc: Do not leak if underlying realloc is C99 compatible.
13940         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13941         This avoids a leak on C99-based systems.  See
13942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13943
13944 2011-03-24  Eric Blake  <eblake@redhat.com>
13945
13946         realloc: document portability problem
13947         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13948         passing 0 size to realloc.
13949
13950 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13951
13952         doc: update users.txt
13953         * users.txt: Add cvsps, tmpwatch
13954
13955 2011-03-23  Matt Rice  <ratmice@gmail.com>
13956
13957         doc: update users.txt
13958         * users.txt: Add gdb.
13959
13960 2011-03-23  Jim Meyering  <meyering@redhat.com>
13961
13962         doc: update users.txt
13963         Looking through matches up to the following URL (there are still
13964         several more pages), I found several projects that use gnulib:
13965         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13966         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13967         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13968
13969 2011-03-22  Bruno Haible  <bruno@clisp.org>
13970
13971         unictype/bidi*: Rename functions.
13972         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13973         uc_bidi_class, uc_is_bidi_class): New declarations.
13974         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13975         uc_bidi_category_byname.
13976         (uc_bidi_category_byname): New function.
13977         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13978         u_bidi_category_name.
13979         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13980         (uc_bidi_category_name): New function.
13981         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13982         uc_bidi_category.
13983         (uc_bidi_category): New function.
13984         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13985         uc_is_bidi_category. Invoke uc_bidi_class.
13986         (uc_is_bidi_category): New function.
13987         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13988         instead of uc_bidi_category_byname.
13989         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13990         instead of uc_bidi_category_name.
13991         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13992         uc_bidi_category.
13993         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13994         instead of uc_is_bidi_category.
13995
13996 2011-03-21  Bruno Haible  <bruno@clisp.org>
13997
13998         New module 'unictype/joininggroup-all'.
13999         * modules/unictype/joininggroup-all: New file.
14000
14001         Tests for module 'unictype/joininggroup-of'.
14002         * modules/unictype/joininggroup-of-tests: New file.
14003         * tests/unictype/test-joininggroup_of.c: New file.
14004         * tests/unictype/test-joininggroup_of.h: New file, automatically
14005         generated by gen-uni-tables.
14006
14007         New module 'unictype/joininggroup-of'.
14008         * modules/unictype/joininggroup-of: New file.
14009         * lib/unictype/joininggroup_of.c: New file.
14010         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14011         gen-uni-tables.
14012
14013         Tests for module 'unictype/joininggroup-byname'.
14014         * modules/unictype/joininggroup-byname-tests: New file.
14015         * tests/unictype/test-joininggroup_byname.c: New file.
14016
14017         New module 'unictype/joininggroup-byname'.
14018         * modules/unictype/joininggroup-byname: New file.
14019         * lib/unictype/joininggroup_byname.c: New file.
14020         * lib/unictype/joininggroup_byname.gperf: New file.
14021
14022         Tests for module 'unictype/joininggroup-name'.
14023         * modules/unictype/joininggroup-name-tests: New file.
14024         * tests/unictype/test-joininggroup_name.c: New file.
14025
14026         New module 'unictype/joininggroup-name'.
14027         * modules/unictype/joininggroup-name: New file.
14028         * lib/unictype/joininggroup_name.c: New file.
14029         * lib/unictype/joininggroup_name.h: New file.
14030
14031         New module 'unictype/joiningtype-all'.
14032         * modules/unictype/joiningtype-all: New file.
14033
14034         Tests for module 'unictype/joiningtype-of'.
14035         * modules/unictype/joiningtype-of-tests: New file.
14036         * tests/unictype/test-joiningtype_of.c: New file.
14037         * tests/unictype/test-joiningtype_of.h: New file, automatically
14038         generated by gen-uni-tables.
14039
14040         New module 'unictype/joiningtype-of'.
14041         * modules/unictype/joiningtype-of: New file.
14042         * lib/unictype/joiningtype_of.c: New file.
14043         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14044         gen-uni-tables.
14045
14046         Tests for module 'unictype/joiningtype-byname'.
14047         * modules/unictype/joiningtype-byname-tests: New file.
14048         * tests/unictype/test-joiningtype_byname.c: New file.
14049
14050         New module 'unictype/joiningtype-byname'.
14051         * modules/unictype/joiningtype-byname: New file.
14052         * lib/unictype/joiningtype_byname.c: New file.
14053
14054         Tests for module 'unictype/joiningtype-name'.
14055         * modules/unictype/joiningtype-name-tests: New file.
14056         * tests/unictype/test-joiningtype_name.c: New file.
14057
14058         New module 'unictype/joiningtype-name'.
14059         * modules/unictype/joiningtype-name: New file.
14060         * lib/unictype/joiningtype_name.c: New file.
14061
14062         unictype: Add support for Arabic shaping properties.
14063         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14064         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14065         declarations.
14066         (UC_JOINING_GROUP_*): New enumeration values.
14067         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14068         declarations.
14069         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14070         (unicode_joining_type): New variable.
14071         (UC_JOINING_GROUP_*): New enumeration values.
14072         (unicode_joining_group): New variable.
14073         (fill_arabicshaping, joining_type_as_c_identifier,
14074         output_joining_type_test, output_joining_type,
14075         joining_group_as_c_identifier, output_joining_group_test,
14076         output_joining_group): New functions.
14077         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14078         fill_arabicshaping and output_joining_type_test, output_joining_type,
14079         output_joining_group_test, output_joining_group.
14080         Reported by Simon Josefsson.
14081
14082 2011-03-21  Jim Meyering  <meyering@redhat.com>
14083
14084         strftime: fix a bug in yesterday's change
14085         * lib/strftime.c (add): Accommodate width's initial value of -1.
14086         Otherwise, nstrftime would copy uninitialized data into
14087         the result buffer.
14088
14089 2011-03-21  Jim Meyering  <meyering@redhat.com>
14090
14091         tests: add strftime-tests module
14092         * tests/test-strftime.c: New file.
14093         * modules/strftime-tests: New module.
14094
14095 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14096
14097         strftime: don't assume a byte count fits in 'int'
14098         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14099         found this problem by static analysis, using gcc -Wstrict-overflow
14100         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14101         on an integer overflow having undefined behavior, but it turns out
14102         that the argument is a size, which might not fit in 'int' anyway,
14103
14104 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14105
14106         stdio: don't require ignore_value around fwrite
14107
14108         This patch works around libc bug 11959
14109         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14110         Without this patch, applications must often write
14111         ignore_value (fwrite (...)) even though the ignore_value is
14112         not helpful here.  It's common to write many objects, using
14113         fwrite/printf/etc., and then use ferror to detect output error.
14114
14115         I considered making this patch optional, but decided against it,
14116         because libc is obviously being inconsistent here: there is no
14117         reason libc should insist that user code must inspect fwrite
14118         return's value without also insisting that it inspect printf's,
14119         putchar's, etc.  If user code wants to have a strict style where
14120         all these functions' values are checked (so that ferror need not
14121         be checked), we could add support for that style in a new gnulib
14122         module, but in the meantime it's better to be consistent and to
14123         support common usage.
14124
14125         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14126         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14127         that we are compiling in checking mode, and if not C++, and
14128         if not already wrapping fwrite for some other reason.
14129         (fwrite): #define to rpl_fwrite if the latter is defined.
14130
14131 2011-03-20  Bruno Haible  <bruno@clisp.org>
14132
14133         verror: Fix compilation error introduced on 2011-02-13.
14134         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14135         instead of __attribute__.
14136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14137
14138 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14139             Bruno Haible  <bruno@clisp.org>
14140
14141         socklen: do not depend on sys_socket
14142         While trying to modify Emacs to use gnulib's socklen module,
14143         I discovered a circular dependency: socklen depends on sys_socket
14144         and vice versa.  Emacs can use socklen, but it does not need
14145         sys_socket because it has its own substitute for sys/socket.h.
14146         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14147         gl_TYPE_SOCKLEN_T.
14148         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14149         gl_PREREQ_SYS_H_SOCKET.
14150         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14151         gl_PREREQ_SYS_H_SOCKET.
14152         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14153         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14154         * modules/socklen (Depends-on): Do not depend on sys_socket.
14155         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14156
14157 2011-03-20  Jim Meyering  <meyering@redhat.com>
14158
14159         maint.mk: sort file names *after* new transformation
14160         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14161         prefix would have led to an unwarranted failure in GNU parted.
14162         Sort after that transformation.
14163
14164 2011-03-19  Jim Meyering  <meyering@redhat.com>
14165
14166         maint.mk: fix po-file syntax-check rule
14167         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14168         Patch by Bruno Haible.
14169
14170 2011-03-19  Bruno Haible  <bruno@clisp.org>
14171
14172         socklen: Update comment.
14173         * m4/socklen.m4: Update comment about platforms.
14174
14175 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14176             Bruno Haible  <bruno@clisp.org>
14177
14178         inet_ntop, inet_pton: Simplify.
14179         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14180         documented to provide socklen_t and we already depend on sys_socket.
14181         * modules/inet_pton (Depends-on): Likewise.
14182         * lib/arpa_inet.in.h: Adjust comment.
14183
14184 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14185             Bruno Haible  <bruno@clisp.org>
14186
14187         netdb: Simplify.
14188         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14189         documented to provide socklen_t and we already depend on sys_socket.
14190         * lib/netdb.in.h: Adjust comment.
14191
14192 2011-03-19  Bruno Haible  <bruno@clisp.org>
14193
14194         sys_socket, netdb: Document problem with socklen_t.
14195         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14196         platforms.
14197         * doc/posix-headers/netdb.texi: Likewise.
14198
14199 2011-03-18  Eric Blake  <eblake@redhat.com>
14200
14201         maint.mk: let po check work in VPATH build
14202         * top/maint.mk (po_file): Allow cfg.mk override.
14203         (sc_po_check): Allow VPATH use.
14204         Reported by Jiri Denemark.
14205
14206 2011-03-16  Jim Meyering  <meyering@redhat.com>
14207
14208         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14209         Before, you would have had to create one .x-sc_ file per rule in order
14210         to exempt offending files.  Now, you may instead use a Make variable --
14211         usually defined in cfg.mk -- whose name identifies the affected rule.
14212         * top/maint.mk (_sc_excl): Define.
14213         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14214         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14215
14216 2011-03-13  Bruno Haible  <bruno@clisp.org>
14217
14218         ignore-value tests: Avoid warnings.
14219         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14220         empty for gcc < 3.4.
14221
14222 2011-03-13  Bruno Haible  <bruno@clisp.org>
14223
14224         passfd: Fix link error on Solaris.
14225         * modules/passfd (Description): Correct.
14226         (Depends-on): Add socketlib.
14227         (Link): New section.
14228         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14229
14230 2011-03-13  Bruno Haible  <bruno@clisp.org>
14231
14232         passfd: Fix link error on AIX 5.2.
14233         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14234
14235 2011-03-13  Bruno Haible  <bruno@clisp.org>
14236
14237         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14238         * lib/sys_socket.in.h: Include <stddef.h>.
14239         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14240         CMSG_FIRSTHDR. Remove unused variable.
14241
14242 2011-03-13  Bruno Haible  <bruno@clisp.org>
14243
14244         passfd: Fix compilation error on OpenBSD.
14245         * lib/passfd.c: Include <sys/uio.h>.
14246
14247 2011-03-13  Bruno Haible  <bruno@clisp.org>
14248
14249         passfd test: Fix warnings.
14250         * tests/test-passfd.c: Include <sys/wait.h>.
14251         (main): Fix typo.
14252
14253 2011-03-13  Bruno Haible  <bruno@clisp.org>
14254
14255         passfd module, part 4, tweaks.
14256         * tests/test-passfd.c: Reorder includes.
14257         (main): Fix perror and printf calls.
14258
14259 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14260
14261         passfd module, part 4.
14262         * modules/passfd-tests: New file.
14263         * tests/test-passfd.c: New file.
14264
14265 2011-03-13  Jim Meyering  <meyering@redhat.com>
14266
14267         Makefile: rely on GNU make; derive syntax-check rule names
14268         Rather than requiring that each sc_ rule be listed as a dependent
14269         of "check", use features of GNU make to derive the list.
14270         * Makefile (syntax-check-rules): Define.
14271         (check): Depend on the new variable, not the hard-coded list.
14272
14273 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14274             Bruno Haible  <bruno@clisp.org>
14275
14276         passfd module, part 3.
14277         * lib/passfd.h (recvfd): Add a flags argument.
14278         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14279         (recvfd): Add a flags argument.
14280         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14281         exists.
14282         * modules/passfd (Depends-on): Add cloexec.
14283         Suggested by Eric Blake.
14284
14285 2011-03-13  Bruno Haible  <bruno@clisp.org>
14286
14287         passfd module, part 2, tweaks.
14288         * modules/passfd (Files): Reorder.
14289         (Depends-on): Remove errno.
14290         (Include): Remove <sys/socket.h>, <sys/un.h>.
14291         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14292         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14293         specification header. Include <sys/socket.h> always. Don't include
14294         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14295         (sendfd): Clarify that it sets errno when it fails.
14296         (recvfd): Fix specification.
14297
14298 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14299
14300         passfd module, part 2.
14301         * modules/passfd: New file.
14302         * lib/passfd.h: New file.
14303         * lib/passfd.c: New file.
14304
14305 2011-03-12  Bruno Haible  <bruno@clisp.org>
14306
14307         wcswidth, mbswidth: Avoid integer overflow.
14308         * lib/wcswidth.c: Include <limits.h>.
14309         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14310         * lib/mbswidth.c: Include <limits.h>.
14311         (mbsnwidth): Avoid 'int' overflow.
14312         Reported by Jim Meyering.
14313
14314 2011-03-12  Bruno Haible  <bruno@clisp.org>
14315
14316         futimens, utimensat: Avoid endless recursion on Solaris 10.
14317         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14318         Solaris.
14319         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14320         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14321
14322 2011-03-11  Jim Meyering  <meyering@redhat.com>
14323
14324         maint.mk: relax a regexp to accommodate other formatting styles
14325         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14326         between "ngettext" and the following "(".
14327
14328 2011-03-11  Pádraig Brady <P@draigBrady.com>
14329
14330         maint.mk: suppress a false positive warning
14331         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14332         diagnostics are marked with ngettext.
14333
14334 2011-03-10  Eric Blake  <eblake@redhat.com>
14335
14336         wchar: add explicit dependencies, for Tru64
14337         * modules/mbmemcasecoll (Depends-on): Add wchar.
14338         * modules/mbtowc (Depends-on): Likewise.
14339         * modules/vasnprintf (Depends-on): Likewise.
14340         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14341         * modules/wctomb (Depends-on): Likewise.
14342         Reported by Peter O'Gorman.
14343
14344 2011-03-08  Bruno Haible  <bruno@clisp.org>
14345
14346         passfd module, part 1, tweaks.
14347         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14348         Improve indentation. Improve AC_MSG_CHECKING messages.
14349         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14350         gl_SOCKET_FAMILIES.
14351
14352 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14353
14354         passfd module, part 1.
14355         * m4/afunix.m4: New file.
14356         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14357         sockets.
14358
14359 2011-03-08  Bruno Haible  <bruno@clisp.org>
14360
14361         regex-quote: New API.
14362         * lib/regex-quote.h: Include <stdbool.h>.
14363         (struct regex_quote_spec): New type.
14364         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14365         New declarations.
14366         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14367         'const struct regex_quote_spec *' argument.
14368         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14369         (pcre_special): New constant.
14370         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14371         New functions.
14372         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14373         'const struct regex_quote_spec *' argument.
14374         * modules/regex-quote (Depends-on): Add stdbool.
14375         * tests/test-regex-quote.c (check): Update for new API. Add test for
14376         anchored results.
14377         * NEWS: Mention the API change.
14378         Reported by Reuben Thomas and Eric Blake.
14379
14380 2011-03-06  Bruno Haible  <bruno@clisp.org>
14381
14382         regex-quote: Fix creation of POSIX extended regular expressions.
14383         * lib/regex-quote.c (ere_special): Add grouping and alternation
14384         operators.
14385
14386 2011-03-05  Bruno Haible  <bruno@clisp.org>
14387
14388         doc: Improve doc regarding autopoint vs. gnulib.
14389         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14390         disable autopoint while running autoreconf.
14391         Suggested by Ralf Wildenhues.
14392
14393 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14394
14395         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14396         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14397
14398 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14399
14400         parse-duration: remove xalloc.h dependency
14401         * lib/parse-duration.c (parse_period): handle NULL return from
14402         strdup instead of calling xstrdup().
14403         * modules/parse-duration: remove "xalloc" dependency
14404
14405 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14406
14407         bootstrap: honor m4_base when running aclocal
14408         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14409
14410 2011-03-02  Jim Meyering  <meyering@redhat.com>
14411
14412         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14413         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14414         on request from Matt Booth.
14415
14416 2011-03-01  Eric Blake  <eblake@redhat.com>
14417
14418         test-link: work on Hurd
14419         * tests/test-link.h (test_link): Hurd rejects linking directories
14420         with EISDIR instead of the POSIX-mandated EPERM.
14421
14422 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14423
14424         stdio: simplify by moving files to printf-posix, sigpipe
14425         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14426         since this symbol is needed only if printf is replaced.
14427         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14428         Require gl_ASM_SYMBOL_PREFIX.
14429         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14430         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14431         (Depends-on): Add 'raise'.
14432         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14433         * modules/stdio (Files): Remove lib/stdio-write.c,
14434         m4/asm-underscore.m4.
14435         (Depends-on): Remove 'raise'.
14436
14437         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14438         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14439         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14440         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14441
14442 2011-02-28  Bruno Haible  <bruno@clisp.org>
14443
14444         localcharset: Assume ANSI C behaviour of free().
14445         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14446         calling free().
14447         Suggested by Simon Josefsson <simon@josefsson.org>.
14448
14449 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14450             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14451             Bruno Haible  <bruno@clisp.org>  (tiny change)
14452
14453         On Cygwin, use /proc file system instead of win32 API.
14454         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14455         Win32 file names.
14456         (DllMain): Simplify by removing Cygwin specific code.
14457         (find_shared_library_fullname): Use Linux specific implementation also
14458         for Cygwin.
14459         (get_shared_library_fullname): Update accordingly.
14460         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14461         Win32 file names.
14462         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14463         Cygwin specific code.
14464
14465 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14466             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14467
14468         Fix OpenMP flag detection for various Fortran compilers.
14469         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14470         OpenMP-conditional compilation construct, to force compile
14471         failure with missing OpenMP flag.
14472         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14473
14474 2011-02-25  Eric Blake  <eblake@redhat.com>
14475
14476         strstr: expand test coverage
14477         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14478         compilation.
14479         * tests/test-memmem.c (main): Duplicate tests.
14480         * tests/test-strcasestr.c (main): Likewise.
14481         * tests/test-c-strcasestr.c (main): Likewise.
14482
14483 2011-02-25  Jim Meyering  <meyering@redhat.com>
14484
14485         maint.mk: detect missing-NL-at-EOF, too
14486         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14487         it also detects when a file lacks a newline at EOF.
14488         (require_exactly_one_NL_at_EOF_): Renamed from
14489         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14490         since people may well have .x-sc_... file names tied to the
14491         existing name.  Suggested by Eric Blake.
14492
14493 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14494
14495         dirname: move m4/dos.m4 functionality into lib/dosname.h
14496
14497         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14498         extracts symbols from it, puts them into config.h; but it's much
14499         easier to use the symbols directly.  filename.h already does this,
14500         but it disagrees with dos.m4 in some respects.  This patch
14501         introduces a different include file dosname.h that packages up
14502         dos.m4, and then later we can work on merging filename.h and
14503         dosname.h.  Applications that need only the easy-to-configure
14504         symbols should consider including dosname.h rather than dirname.h.
14505         * NEWS: Mention incompatible changes.
14506         * m4/dos.m4: Remove.
14507         * lib/dosname.h, modules/dosname: New files.
14508         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14509         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14510         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14511         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14512         Include dosname.h, not dirname.h.
14513         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14514         Include dosname.h, for definitions of symbols like ISSLASH
14515         that used to be in config.h.
14516         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14517         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14518         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14519         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14520         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14521         * modules/rmdir (Files): Likewise.
14522         * modules/stat (Files): Likewise.
14523         * modules/unlink (Files): Likewise.
14524         * modules/dirname-lgpl (Depends-on): Add dosname.
14525         * modules/lstat (Depends-on): Likewise.
14526         * modules/openat (Depends-on): Likewise.
14527         * modules/rmdir (Depends-on): Likewise.
14528         * modules/savewd (Depends-on): Likewise.
14529         * modules/stat (Depends-on): Likewise.
14530         * modules/unlink (Depends-on): Likewise.
14531         * modules/openat (Depends-on): Remove dirname-lgpl.
14532         * modules/savewd (Depends-on): Likewise.
14533         * tests/test-dirname.c: Do not use removed symbols like
14534         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14535         the remaining symbols, e.g., ISSLASH ('\\').
14536
14537 2011-02-25  Eric Blake  <eblake@redhat.com>
14538
14539         strstr: revert patches that introduced bug and pessimization
14540         * lib/str-two-way.h: Add another reference.
14541         (two_way_short_needle, two_way_long_needle): Revert changes from
14542         2011-02-24; they pessimize search speed.
14543         (critical_factorization): Partially revert changes from
14544         2010-06-22; they violate the requirement that the left half of the
14545         needle be smaller than the period of the needle.
14546
14547 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14548
14549         filenamecat: remove unnecessary dependency on dirname-lgpl
14550         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14551         is no direct dependency, just an indirect one via filenamecat-lgpl.
14552
14553         remove: remove unnecessary use of m4/dos.m4
14554         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14555         * modules/remove (FILES): Remove m4/dos.m4.
14556
14557         * lib/openat-proc.c: Don't include dirname.h; not needed.
14558
14559         backupfile: remove unnecessary use of m4/dos.m4
14560         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14561         of its symbols are used by the backupfile code.  backupfile.c does
14562         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14563         for the rare case of programs that want all their backup file
14564         names to live within 8+3 limits, and dos.m4 doesn't address that.
14565         * modules/backupfile (Files): Remove m4/dos.m4.
14566
14567 2011-02-24  Jim Meyering  <meyering@redhat.com>
14568
14569         strstr: fix a bug whereby strstr would mistakenly return NULL
14570         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14571         in period calculation.
14572         (two_way_long_needle): Likewise.
14573         The original problem was reported by Mike Stump in
14574         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14575         Ralf Wildenhues provided the short needle and haystack.
14576         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14577         Add a more involved test to trigger the bug in two_way_long_needle.
14578
14579 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14580
14581         gnulib-tool: remove use of bold display in help screen
14582         * gnulib-tool (func_usage): Do not use bold display anymore in the
14583         help screen.  That was just meant to be a temporary emphasis for a
14584         backward-incompatible change.
14585
14586 2011-02-23  Bruno Haible  <bruno@clisp.org>
14587
14588         Fix misindentation of preprocessor directives.
14589         * lib/argp-namefrob.h: Reindent preprocessor directives.
14590         * lib/getopt_int.h (struct _getopt_data): Likewise.
14591         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14592         * lib/vasnprintf.c (decode_long_double): Likewise.
14593         * tests/test-argmatch.c: Insert blank lines, for clarity.
14594         * tests/test-exclude.c: Likewise.
14595
14596 2011-02-22  Bruno Haible  <bruno@clisp.org>
14597
14598         ioctl: Fix for MacOS X in 64-bit mode.
14599         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14600         value.
14601         Suggested by Eric Blake.
14602         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14603
14604 2011-02-22  Jim Meyering  <meyering@redhat.com>
14605
14606         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14607         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14608         in lib/.
14609
14610 2011-02-22  Eric Blake  <eblake@redhat.com>
14611
14612         maint: avoid any CDPATH issue
14613         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14614
14615         maint: adjust cpp indentation for my modules, as well
14616         * Makefile (sc_cpp_indent_check): Add my name.
14617         * lib/fbufmode.c: Filter through cppi.
14618         * lib/fpurge.c: Likewise.
14619         * lib/freadable.c: Likewise.
14620         * lib/freading.c: Likewise.
14621         * lib/fwritable.c: Likewise.
14622         * lib/fwriting.c: Likewise.
14623         * lib/sigaction.c: Likewise.
14624
14625 2011-02-22  Jim Meyering  <meyering@redhat.com>
14626
14627         maint: adjust cpp indentation to reflect nesting depth
14628         I.e., in a block of code that begins with an unnested "#if",
14629         put one space between the "#" in column 1 and following token.
14630         For example,
14631         -#include <sys/vfs.h>
14632         +# include <sys/vfs.h>
14633         Do this only in .c files that are part of a module I maintain.
14634         * lib/linkat.c: Filter through cppi.
14635         * lib/nanosleep.c: Likewise.
14636         * lib/openat.c: Likewise.
14637         * lib/openat-die.c: Likewise.
14638         * lib/dup3.c: Likewise.
14639         * lib/fchownat.c: Likewise.
14640         * lib/flock.c: Likewise.
14641         * lib/fsync.c: Likewise.
14642         * lib/fts.c: Likewise.
14643         * lib/getpass.c: Likewise.
14644         * lib/gettimeofday.c: Likewise.
14645         * lib/userspec.c: Likewise.
14646         * Makefile (sc_cpp_indent_check): New rule, to check this.
14647
14648 2011-02-22  Bruno Haible  <bruno@clisp.org>
14649
14650         New module 'wctomb'.
14651         * lib/stdlib.in.h (wctomb): New declaration.
14652         * lib/wctomb.c: New file.
14653         * lib/wctomb-impl.h: New file.
14654         * m4/wctomb.m4: New file.
14655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14656         REPLACE_WCTOMB.
14657         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14658         REPLACE_WCTOMB.
14659         * modules/wctomb: New file.
14660         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14661         * doc/posix-functions/wctomb.texi: Mention the new module.
14662         * modules/wctob (Depends-on): Add wctomb.
14663
14664 2011-02-22  Bruno Haible  <bruno@clisp.org>
14665
14666         New module 'mbtowc'.
14667         * lib/stdlib.in.h (mbtowc): New declaration.
14668         * lib/mbtowc.c: New file.
14669         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14670         * m4/mbtowc.m4: New file.
14671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14672         REPLACE_MBTOWC.
14673         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14674         REPLACE_MBTOWC.
14675         * modules/mbtowc: New file.
14676         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14677         * doc/posix-functions/mbtowc.texi: Mention the new module.
14678         * modules/btowc (Depends-on): Add mbtowc.
14679
14680 2011-02-22  Bruno Haible  <bruno@clisp.org>
14681
14682         wcrtomb: Add more tests for native Windows platforms.
14683         * tests/test-wcrtomb-w32-1.sh: New file.
14684         * tests/test-wcrtomb-w32-2.sh: New file.
14685         * tests/test-wcrtomb-w32-3.sh: New file.
14686         * tests/test-wcrtomb-w32-4.sh: New file.
14687         * tests/test-wcrtomb-w32-5.sh: New file.
14688         * tests/test-wcrtomb-w32.c: New file.
14689         * modules/wcrtomb-tests (Files): Add them.
14690         (Makefile.am): Arrange to run these tests.
14691         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14692         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14693
14694 2011-02-20  Bruno Haible  <bruno@clisp.org>
14695
14696         wcrtomb: Enhance test.
14697         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14698
14699 2011-02-20  Bruno Haible  <bruno@clisp.org>
14700
14701         mbrtowc: Tiny optimization.
14702         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14703
14704 2011-02-20  Jim Meyering  <meyering@redhat.com>
14705
14706         test-exclude.c: remove unmatched #endif
14707         * tests/test-exclude.c: Remove stray #endif, left over from
14708         the change of a week ago.
14709
14710 2011-02-19  Jim Meyering  <meyering@redhat.com>
14711
14712         git-version-gen: skip "-dirty" check when appropriate
14713         * build-aux/git-version-gen: Don't run any git commands when the
14714         version string comes from .tarball-version.  Prior to this, we
14715         would run git update-index --refresh even from a just-unpacked
14716         tarball directory, and that could affect a .git/ directory in a
14717         parent of the build directory.  Reported by Mike Frysinger.
14718
14719 2011-02-19  Bruno Haible  <bruno@clisp.org>
14720
14721         unictype/property-byname: Reduce the size of the 'data' segment.
14722         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14723
14724 2011-02-19  Bruno Haible  <bruno@clisp.org>
14725
14726         unictype/scripts: Reduce the size of the 'data' segment.
14727         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14728         '%pic'.
14729         * lib/unictype/scripts_byname.gperf: Regenerated.
14730
14731 2011-02-19  Bruno Haible  <bruno@clisp.org>
14732
14733         stdint: Update documentation.
14734         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14735
14736 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14737
14738         stdint: omit redundant check for wchar.h
14739         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14740         always tests whether wchar.h exists, so remove the now-redundant test.
14741
14742 2011-02-18  Bruno Haible  <bruno@clisp.org>
14743
14744         stdint: Cut dependency to module 'wchar'.
14745         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14746         include the necessary prerequisites.
14747         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14748         * modules/stdint (Depends-on): Remove wchar.
14749         (Makefile.am): Substitute HAVE_WCHAR_H.
14750         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14751
14752 2011-02-18  Eric Blake  <eblake@redhat.com>
14753
14754         longlong: skip, rather than fail, on cross-compilation
14755         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14756         when cross-compiling; regression from 2011-02-16.
14757
14758 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14759
14760         * NEWS: Mention 2011-02-08 change to stdlib.
14761
14762 2011-02-17  Bruno Haible  <bruno@clisp.org>
14763
14764         getloadavg: Add comments about platforms.
14765         * m4/getloadavg.m4: Add comment.
14766         * lib/getloadavg.c: Likewise.
14767
14768 2011-02-17  Bruno Haible  <bruno@clisp.org>
14769
14770         getloadavg: Fix link error on Solaris 2.6.
14771         * modules/getloadavg (Link): New section.
14772         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14773         linking test-getloadavg.
14774         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14775         getloadavg.
14776
14777 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14778
14779         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14780         It was 'int', but this doesn't match the IRIX 6.5 manual.
14781         Suggested by Bruno Haible in
14782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14783
14784 2011-02-17  Bruno Haible  <bruno@clisp.org>
14785
14786         havelib: Fix comments.
14787         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14788         change.
14789
14790 2011-02-17  Bruno Haible  <bruno@clisp.org>
14791
14792         havelib: Update config.rpath.
14793         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14794
14795 2011-02-17  Bruno Haible  <bruno@clisp.org>
14796
14797         getloadavg test: Add some plausibility checks.
14798         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14799         is improbable.
14800
14801 2011-02-16  Eric Blake  <eblake@redhat.com>
14802
14803         maintainer-makefile: make syntax-check a no-op from tarballs
14804         * top/maint.mk (no-vc-detected): New rule.
14805         (local-checks-available): Use it to avoid hanging if someone tries
14806         'make syntax-check' from a tarball.  Also append to any non-syntax
14807         checks already defined in cfg.mk.
14808
14809 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14810
14811         longlong: tune, particularly for common case of c99
14812
14813         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14814         or running anything if c99, or if unsigned long long int does not
14815         work.  In either case, we know the answer without further tests.
14816         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14817         it at most once, and use its results for both long long int and
14818         unsigned long long int.  This is more likely to be efficient in
14819         the common case where the program wants to check for both long
14820         long int and unsigned long long int.
14821         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14822         since the answer is already known.
14823
14824 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14825
14826         getloadavg: set errno
14827         * lib/getloadavg.c: Set errno when returning -1.  If no other
14828         error number looks appropriate, set it to ENOSYS if the getloadavg
14829         looks like it can't possibly ever work, ENOTSUP otherwise.
14830         Suggested by Bruno Haible in
14831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14832
14833         getloadavg: trim unused parts and speed up 'configure'
14834         * NEWS: Document this.
14835         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14836         always compiled if getloadavg is absent.
14837         Move test code to ...
14838         * tests/test-getloadavg.c: New file, containing previous
14839         contents of test from lib/getloadavg.c.  It also contains
14840         suggestions by Bruno Haible in
14841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14842         * modules/getloadavg-tests: New file.
14843         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14844         Do tests in the same order as they're needed for getloadavg.c.
14845         Omit setgid-related tests that generate symbols KMEM_GROUP,
14846         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14847         Do only the tests that are needed to see whether the system has
14848         getloadavg, moving the other tests into ...
14849         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14850         NLIST_NAME_UNION; nobody should be using it.  Do not define
14851         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14852         relevant, as the user of this module shouldn't care how getloadavg
14853         is implemented.
14854
14855         getloadavg: omit unused var
14856         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14857
14858 2011-02-15  Jim Meyering  <meyering@redhat.com>
14859
14860         doc: update users.txt
14861         * users.txt: Update iwhd's URL.
14862
14863 2011-02-13  Bruno Haible  <bruno@clisp.org>
14864
14865         Consistent macro naming for macros that use GCC __attribute__.
14866         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14867         _ATTRIBUTE_NONNULL_.
14868         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14869         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14870         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14871         ATTRIBUTE_DEPRECATED.
14872         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14873         ATTRIBUTE_NORETURN.
14874         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14875         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14876         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14877         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14878         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14879         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14880         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14881         ATTRIBUTE_SENTINEL.
14882         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14883         ATTRIBUTE_RETURN_CHECK.
14884         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14885         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14886         ATTRIBUTE_NORETURN.
14887         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14888         Reported by Paul Eggert.
14889
14890 2011-02-13  Bruno Haible  <bruno@clisp.org>
14891
14892         Don't interfere with a program's definition of __attribute__.
14893         * lib/argp.h (__attribute__): Remove definition.
14894         (_GL_ATTRIBUTE_FORMAT): New macro.
14895         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14896         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14897         (_GL_ATTRIBUTE_FORMAT): New macro.
14898         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14899         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14900         GCC 3 or newer.
14901         * lib/error.h (__attribute__): Remove definition.
14902         (_GL_ATTRIBUTE_FORMAT): New macro.
14903         (error, error_at_line): Use it.
14904         * lib/hash.h (__attribute__): Remove definition.
14905         (ATTRIBUTE_WUR): Update definition. Define always.
14906         * lib/openat.h (__attribute__): Remove definition.
14907         (ATTRIBUTE_NORETURN): Update definition. Define always.
14908         * lib/sigpipe-die.h (__attribute__): Remove definition.
14909         (ATTRIBUTE_NORETURN): Update definition. Define always.
14910         * lib/vasnprintf.h (__attribute__): Remove definition.
14911         (_GL_ATTRIBUTE_FORMAT): New macro.
14912         (asnprintf, vasnprintf): Use it.
14913         * lib/xalloc.h (__attribute__): Remove definition.
14914         (ATTRIBUTE_NORETURN): Update definition. Define always.
14915         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14916         * lib/xmemdup0.h (__attribute__): Remove definition.
14917         (ATTRIBUTE_NORETURN): Update definition. Define always.
14918         * lib/xprintf.h (__attribute__): Remove definition.
14919         (_GL_ATTRIBUTE_FORMAT): New macro.
14920         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14921         * lib/xstrtol.h (__attribute__): Remove definition.
14922         (ATTRIBUTE_NORETURN): Update definition. Define always.
14923         * lib/xvasprintf.h (__attribute__): Remove definition.
14924         (_GL_ATTRIBUTE_FORMAT): New macro.
14925         (xasprintf, xvasprintf): Use it.
14926         * tests/test-argmatch.c (__attribute__): Remove definition.
14927         (ATTRIBUTE_NORETURN): Update definition. Define always.
14928         * tests/test-exclude.c (__attribute__): Remove definition.
14929         (ATTRIBUTE_NORETURN): Update definition. Define always.
14930         Reported by Paul Eggert.
14931
14932 2011-02-13  Bruno Haible  <bruno@clisp.org>
14933
14934         mbrtowc: Add more tests for native Windows platforms.
14935         * tests/test-mbrtowc-w32-1.sh: New file.
14936         * tests/test-mbrtowc-w32-2.sh: New file.
14937         * tests/test-mbrtowc-w32-3.sh: New file.
14938         * tests/test-mbrtowc-w32-4.sh: New file.
14939         * tests/test-mbrtowc-w32-5.sh: New file.
14940         * tests/test-mbrtowc-w32.c: New file.
14941         * modules/mbrtowc-tests (Files): Add them.
14942         (Makefile.am): Arrange to run these tests.
14943         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14944         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14945
14946 2011-02-13  Bruno Haible  <bruno@clisp.org>
14947
14948         mbrtowc: Work around native Windows bug.
14949         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14950         guess when no suitable locale for testing was found.
14951         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14952
14953 2011-02-13  Bruno Haible  <bruno@clisp.org>
14954
14955         mbsinit: Work around mingw bug.
14956         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14957         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14958         Windows.
14959         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14960
14961 2011-02-13  Bruno Haible  <bruno@clisp.org>
14962
14963         mbsinit: Don't crash for a NULL argument.
14964         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14965         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14966
14967 2011-02-13  Bruno Haible  <bruno@clisp.org>
14968
14969         Don't interfere with a program's definition of __attribute__.
14970         * lib/stdio.in.h (__attribute__): Remove definition.
14971         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14972         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14973         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14974         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14975         * lib/string.in.h (__attribute__): Remove definition.
14976         Reported by Paul Eggert.
14977
14978 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14979
14980         stdlib: don't get in the way of non-GCC __attribute__
14981         See thread starting at
14982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14983         Revert previous stdlib change, installing the following instead:
14984         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14985         to get in the way of a non-GCC compiler that supports __attribute__.
14986         (_GL_ATTRIBUTE_RETURN): New macro.
14987         (_Exit): Use it instead of __attribute__.
14988
14989 2011-02-12  Bruno Haible  <bruno@clisp.org>
14990
14991         quotearg test: Avoid test failure on mingw.
14992         * tests/test-quotearg.sh: Convert the locale identifier from native
14993         Windows syntax to Unix syntax.
14994
14995 2011-02-12  Bruno Haible  <bruno@clisp.org>
14996
14997         setlocale: Prefer gnulib's override over libintl's override.
14998         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14999         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15000         GNULIB_defined_setlocale is set.
15001
15002 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15003
15004         stdlib: support non-GCC __attribute__
15005
15006         Fix a serious and tricky problem encountered when attempting to
15007         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15008         5.5, but it crashed due to memory corruption on Solaris 10 with
15009         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15010         bits that are otherwise zero.  This tagging is optional inside
15011         Emacs but is preferred and is used when __attribute__ ((__aligned
15012         (8))) works, as it does with both recent-enough GCC and with Sun C
15013         5.11.  However, Sun C 5.11 is not GCC and does not #define
15014         __GNUC__ and __GNUC_MINOR__.
15015
15016         When I added the getloadavg module to Emacs, it brought in
15017         stdlib.in.h, which contained this fragment:
15018
15019            #ifndef __attribute__
15020            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15021            #  define __attribute__(Spec)   /* empty */
15022            # endif
15023            #endif
15024
15025         When files that include <stdlib.h> were compiled with Sun C 5.11,
15026         the above code disabled __attribute__ ((__aligned (8))), which
15027         caused variables to not be properly aligned, which eventually led
15028         to the pointer corruption mentioned above.  (This was a bit hard
15029         to diagnose, unfortunately.)
15030
15031         Several "#define __attribute__(X) /* empty */" code snippets need
15032         to be eradicated from Gnulib to work with non-GCC compilers that
15033         support __attribute__.  The Autoconf way to do this is to test for
15034         each kind of attribute that we want support for, and selectively
15035         enable that in source code.
15036
15037         Fix this problem just for stdlib.h, by adding a test for the
15038         __noreturn__ attribute, and change stdlib.in.h to use that test
15039         when needed.  This technique can be easily generalized to the
15040         other *.in.h files and attributes, and a similar technique can be
15041         used for *.h and *.c files.  This patch is enough to solve the
15042         problem for Emacs + getloadavg, and I thought I'd publish it for
15043         feedback before undertaking further, similar fixes in other
15044         modules.
15045
15046         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15047         because it's not needed for stdlib.h.  It merely substitutes the
15048         value directly into stdlib.h.  We may well need to #define it, or
15049         similar symbols, for other modules, but it's nice to also have an
15050         option to not #define it for applications like Emacs that do not
15051         need it.
15052
15053         * lib/stdlib.in.h (__attribute__): Do not #define.
15054         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15055         be defined only if the _Exit module is also used.
15056         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15058         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15059         platforms.
15060         * modules/_Exit (Files): Add m4/attribute.m4.
15061         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15062         * m4/attribute.m4: New file.
15063
15064 2011-02-12  Bruno Haible  <bruno@clisp.org>
15065
15066         wcsrtombs: Work around bug on native Windows.
15067         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15068         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15069         instead of len.
15070         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15071
15072 2011-02-12  Bruno Haible  <bruno@clisp.org>
15073
15074         mbsrtowcs: Work around bug on native Windows.
15075         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15076         against mingw bug.
15077         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15078
15079 2011-02-12  Bruno Haible  <bruno@clisp.org>
15080
15081         Avoid setlocale bugs in tests.
15082         * modules/btowc (Dependencies): Add setlocale.
15083         * modules/c-strcase (Dependencies): Likewise.
15084         * modules/mbmemcasecmp (Dependencies): Likewise.
15085         * modules/mbmemcasecoll (Dependencies): Likewise.
15086         * modules/mbrtowc (Dependencies): Likewise.
15087         * modules/mbscasecmp (Dependencies): Likewise.
15088         * modules/mbscasestr (Dependencies): Likewise.
15089         * modules/mbschr (Dependencies): Likewise.
15090         * modules/mbscspn (Dependencies): Likewise.
15091         * modules/mbsinit (Dependencies): Likewise.
15092         * modules/mbsncasecmp (Dependencies): Likewise.
15093         * modules/mbsnrtowcs (Dependencies): Likewise.
15094         * modules/mbspbrk (Dependencies): Likewise.
15095         * modules/mbspcasecmp (Dependencies): Likewise.
15096         * modules/mbsrchr (Dependencies): Likewise.
15097         * modules/mbsrtowcs (Dependencies): Likewise.
15098         * modules/mbsspn (Dependencies): Likewise.
15099         * modules/mbsstr (Dependencies): Likewise.
15100         * modules/nl_langinfo (Dependencies): Likewise.
15101         * modules/quotearg (Dependencies): Likewise.
15102         * modules/unicase/locale-language (Dependencies): Likewise.
15103         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15104         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15105         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15106         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15107         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15108         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15109         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15110         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15111         * modules/vasnprintf-posix (Dependencies): Likewise.
15112         * modules/wcrtomb (Dependencies): Likewise.
15113         * modules/wcsnrtombs (Dependencies): Likewise.
15114         * modules/wcsrtombs (Dependencies): Likewise.
15115
15116 2011-02-12  Bruno Haible  <bruno@clisp.org>
15117
15118         setlocale: Workaround native Windows bug.
15119         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15120         succeeds but sets LC_CTYPE to "C", report a failure.
15121         * tests/test-setlocale2.sh: New file.
15122         * tests/test-setlocale2.c: New file.
15123         * modules/setlocale-tests (Files): Add the new files.
15124         (Makefile.am): Enable test-setlocale2.sh test.
15125         * doc/posix-functions/setlocale.texi: Mention workaround.
15126
15127 2011-02-11  Bruno Haible  <bruno@clisp.org>
15128
15129         Tests for module 'setlocale'.
15130         * modules/setlocale-tests: New file.
15131         * tests/test-setlocale1.sh: New file.
15132         * tests/test-setlocale1.c: New file.
15133
15134         New module 'setlocale'.
15135         * lib/locale.in.h (setlocale): New declaration.
15136         * lib/setlocale.c: New file, based on
15137         gettext/gettext-runtime/intl/setlocale.c.
15138         * m4/setlocale.m4: New file.
15139         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15140         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15141         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15142         REPLACE_SETLOCALE.
15143         * modules/setlocale: New file.
15144         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15145         * doc/posix-functions/setlocale.texi: Mention the new module.
15146
15147 2011-02-11  Bruno Haible  <bruno@clisp.org>
15148
15149         Prepare for locale dependent tests on mingw.
15150         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15151         because it has the wrong locale encoding.
15152         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15153         French_France.1252 instead of "fr".
15154         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15155         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15156         because it has the wrong locale encoding.
15157         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15158         native Windows, try Turkish_Turkey.65001.
15159         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15160         Chinese_China.54936.
15161
15162         Prepare for locale dependent tests on mingw.
15163         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15164         differently.
15165         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15166         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15167         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15168         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15169
15170 2011-02-11  Eric Blake  <eblake@redhat.com>
15171
15172         strptime: avoid compiler warnings
15173         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15174         compiler warnings about dead code.
15175         Reported by Daniel P. Berrange.
15176
15177 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15178
15179         doc: update users.txt
15180         * users.txt: Add rcs.
15181
15182 2011-02-10  John W. Eaton  <jwe@gnu.org>
15183
15184         doc: update users.txt
15185         * users.txt: Add octave.
15186
15187 2011-02-10  Jim Meyering  <meyering@redhat.com>
15188
15189         doc: update users.txt
15190         * users.txt: Add iwhd.
15191
15192 2011-02-09  Bruno Haible  <bruno@clisp.org>
15193
15194         gnulib-tool: Make copyright notice adjustment more robust.
15195         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15196         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15197         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15198         License".
15199         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15200
15201 2011-02-06  Bruno Haible  <bruno@clisp.org>
15202
15203         New module 'towctrans'.
15204         * modules/towctrans: New file.
15205         * lib/wctype.in.h (towctrans): New declaration.
15206         * lib/towctrans.c: New file.
15207         * lib/towctrans-impl.h: New file.
15208         * m4/towctrans.m4: New file.
15209         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15210         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15211         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15212         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15213         * doc/posix-functions/towctrans.texi: Mention the new module.
15214
15215 2011-02-06  Bruno Haible  <bruno@clisp.org>
15216
15217         New module 'wctrans'.
15218         * modules/wctrans: New file.
15219         * lib/wctype.in.h (wctrans): New declaration.
15220         * lib/wctrans.c: New file.
15221         * lib/wctrans-impl.h: New file.
15222         * m4/wctrans.m4: New file.
15223         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15224         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15225         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15226         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15227         * doc/posix-functions/wctrans.texi: Mention the new module.
15228
15229 2011-02-06  Bruno Haible  <bruno@clisp.org>
15230
15231         New module 'iswctype'.
15232         * modules/iswctype: New file.
15233         * lib/wctype.in.h (iswctype): New declaration.
15234         * lib/iswctype.c: New file.
15235         * lib/iswctype-impl.h: New file.
15236         * m4/iswctype.m4: New file.
15237         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15238         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15239         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15240         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15241         * doc/posix-functions/iswctype.texi: Mention the new module and the
15242         HP-UX 11.00 problem.
15243
15244 2011-02-06  Bruno Haible  <bruno@clisp.org>
15245
15246         New module 'wctype'.
15247         * modules/wctype: Change to represent the wctype() substitute.
15248         * lib/wctype.in.h (wctype): New declaration.
15249         * lib/wctype.c: New file.
15250         * lib/wctype-impl.h: New file.
15251         * m4/wctype.m4: New file.
15252         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15253         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15254         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15255         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15256         * doc/posix-functions/wctype.texi: Mention the new module and the
15257         HP-UX 11.00 problem.
15258
15259 2011-02-06  Bruno Haible  <bruno@clisp.org>
15260
15261         wctype-h: Ensure wctype_t and wctrans_t are defined.
15262         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15263         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15264         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15265         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15266         HAVE_WCTRANS_T.
15267         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15268
15269 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15270
15271         flock: fix license typo
15272
15273         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15274         omitted.
15275
15276 2011-02-08  Bruno Haible  <bruno@clisp.org>
15277
15278         Split large sed scripts, for HP-UX sed.
15279         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15280         to avoid HP-UX limit of 99 commands, in the near future.
15281         * modules/stdlib (Makefile.am): Likewise.
15282         * modules/unistd (Makefile.am): Likewise.
15283         * modules/wchar (Makefile.am): Likewise.
15284         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15285         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15286         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15287
15288 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15289             Bruno Haible  <bruno@clisp.org>
15290
15291         stdlib: improve random_r modularization
15292         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15293         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15294         you also need the random_r module to get this material right.
15295         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15296         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15297         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15298
15299 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15300
15301         stdlib: don't depend on stdint
15302         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15303         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15304         be independent of whether stdint.h is needed.
15305         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15306         here, instead of ...
15307         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15308         struct random_data should be using the random_r module, not just
15309         the stdlib module (which wouldn't make sense: what package needs
15310         just struct random_data without also needing random_r?).
15311         * modules/stdlib (Depends-on): Remove stdint.
15312
15313         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15314         See the thread rooted at
15315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15316         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15317         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15318         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15319         __VMS)); previously it was always included (via fcntl--.h).
15320         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15321         hand; this is good enough for load averages.  Also, do not use
15322         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15323         flags directly if available and don't bother otherwise.  (Packages
15324         that need the extra reliability should use the modules that define
15325         these flags on older platforms that lack them.)
15326         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15327         fcntl-safer.
15328
15329 2011-02-08  Jim Meyering  <meyering@redhat.com>
15330
15331         di-set.h, ino-map.h: add multiple-inclusion guard
15332         Technically, the guard is required only for ino-map.h, due to its
15333         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15334         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15335         * lib/ino-map.h: Likewise.
15336
15337 2011-02-06  Bruno Haible  <bruno@clisp.org>
15338
15339         iswblank: Ensure declaration on glibc systems.
15340         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15341         * modules/iswblank (Dependencies): Add 'extensions'.
15342         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15343
15344 2011-02-06  Bruno Haible  <bruno@clisp.org>
15345
15346         New module 'iswblank'.
15347         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15348         * modules/iswblank: New file.
15349         * modules/wctype-h (Files): Remove lib/iswblank.c.
15350         (Makefile.am): Substitute GNULIB_ISWBLANK.
15351         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15352         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15353         (gl_WCTYPE_H_DEFAULTS): New macro.
15354         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15355         * modules/iswblank-tests: New file.
15356         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15357         * tests/test-wctype-h.c (main): Remove iswblank tests.
15358         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15359         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15360         of 'wctype-h'.
15361         * NEWS: Mention the change.
15362         * modules/mbchar (Depends-on): Add iswblank.
15363
15364 2011-02-08  Bruno Haible  <bruno@clisp.org>
15365
15366         di-set tests: Refactor.
15367         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15368         unnecessary includes.
15369         (ASSERT): Remove macro.
15370         (main): Make C90 compliant by avoiding variable declaration after
15371         statement.
15372         * modules/di-set-tests (Files): Add tests/macros.h.
15373
15374 2011-02-08  Bruno Haible  <bruno@clisp.org>
15375
15376         ino-map tests: Refactor.
15377         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15378         unnecessary includes.
15379         (ASSERT): Remove macro.
15380         (main): Make C90 compliant by avoiding variable declaration after
15381         statement.
15382         * modules/ino-map-tests (Files): Add tests/macros.h.
15383
15384 2011-02-08  Jim Meyering  <meyering@redhat.com>
15385
15386         di-set: add "const" to a cast
15387         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15388         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15389
15390 2011-02-06  Bruno Haible  <bruno@clisp.org>
15391
15392         Rename module 'wctype' to 'wctype-h'.
15393         * modules/wctype-h: Renamed from modules/wctype.
15394         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15395         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15396         (Files, Depends-on, Makefile.am): Update.
15397         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15398         (Files, Makefile.am): Update.
15399         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15400         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15401         * doc/posix-headers/wctype.texi: Update.
15402         * doc/posix-functions/iswalnum.texi: Update.
15403         * doc/posix-functions/iswalpha.texi: Update.
15404         * doc/posix-functions/iswblank.texi: Update.
15405         * doc/posix-functions/iswcntrl.texi: Update.
15406         * doc/posix-functions/iswdigit.texi: Update.
15407         * doc/posix-functions/iswgraph.texi: Update.
15408         * doc/posix-functions/iswlower.texi: Update.
15409         * doc/posix-functions/iswprint.texi: Update.
15410         * doc/posix-functions/iswpunct.texi: Update.
15411         * doc/posix-functions/iswspace.texi: Update.
15412         * doc/posix-functions/iswupper.texi: Update.
15413         * doc/posix-functions/iswxdigit.texi: Update.
15414         * doc/posix-functions/towlower.texi: Update.
15415         * doc/posix-functions/towupper.texi: Update.
15416         * NEWS: Mention the change.
15417         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15418         * modules/mbchar (Dependencies): Likewise.
15419         * modules/mbswidth (Dependencies): Likewise.
15420         * modules/quotearg (Dependencies): Likewise.
15421         * modules/regex (Dependencies): Likewise.
15422         * modules/wcscasecmp (Dependencies): Likewise.
15423         * modules/wcsncasecmp (Dependencies): Likewise.
15424         * modules/wcwidth (Dependencies): Likewise.
15425
15426 2011-02-06  Bruno Haible  <bruno@clisp.org>
15427
15428         New module 'wcswidth'.
15429         * modules/wcswidth: New file.
15430         * lib/wchar.in.h (wcswidth): New declaration.
15431         * lib/wcswidth.c: New file.
15432         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15433         * m4/wcswidth.m4: New file.
15434         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15435         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15436         REPLACE_WCSWIDTH.
15437         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15438         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15439         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15440         * doc/posix-functions/wcswidth.texi: Mention the new module.
15441
15442 2011-02-06  Bruno Haible  <bruno@clisp.org>
15443
15444         New module 'wcstok'.
15445         * modules/wcstok: New file.
15446         * lib/wchar.in.h (wcstok): New declaration.
15447         * lib/wcstok.c: New file.
15448         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15449         * m4/wcstok.m4: New file.
15450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15453         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15454         * doc/posix-functions/wcstok.texi: Mention the new module.
15455
15456 2011-02-06  Bruno Haible  <bruno@clisp.org>
15457
15458         New module 'wcsstr'.
15459         * modules/wcsstr: New file.
15460         * lib/wchar.in.h (wcsstr): New declaration.
15461         * lib/wcsstr.c: New file.
15462         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15463         * m4/wcsstr.m4: New file.
15464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15467         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15468         * doc/posix-functions/wcsstr.texi: Mention the new module.
15469
15470 2011-02-06  Bruno Haible  <bruno@clisp.org>
15471
15472         New module 'wcspbrk'.
15473         * modules/wcspbrk: New file.
15474         * lib/wchar.in.h (wcspbrk): New declaration.
15475         * lib/wcspbrk.c: New file.
15476         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15477         * m4/wcspbrk.m4: New file.
15478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15481         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15482         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15483
15484 2011-02-06  Bruno Haible  <bruno@clisp.org>
15485
15486         New module 'wcsspn'.
15487         * modules/wcsspn: New file.
15488         * lib/wchar.in.h (wcsspn): New declaration.
15489         * lib/wcsspn.c: New file.
15490         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15491         * m4/wcsspn.m4: New file.
15492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15495         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15496         * doc/posix-functions/wcsspn.texi: Mention the new module.
15497
15498 2011-02-06  Bruno Haible  <bruno@clisp.org>
15499
15500         New module 'wcscspn'.
15501         * modules/wcscspn: New file.
15502         * lib/wchar.in.h (wcscspn): New declaration.
15503         * lib/wcscspn.c: New file.
15504         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15505         * m4/wcscspn.m4: New file.
15506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15509         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15510         * doc/posix-functions/wcscspn.texi: Mention the new module.
15511
15512 2011-02-06  Bruno Haible  <bruno@clisp.org>
15513
15514         New module 'wcsrchr'.
15515         * modules/wcsrchr: New file.
15516         * lib/wchar.in.h (wcsrchr): New declaration.
15517         * lib/wcsrchr.c: New file.
15518         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15519         * m4/wcsrchr.m4: New file.
15520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15523         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15524         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15525
15526 2011-02-06  Bruno Haible  <bruno@clisp.org>
15527
15528         New module 'wcschr'.
15529         * modules/wcschr: New file.
15530         * lib/wchar.in.h (wcschr): New declaration.
15531         * lib/wcschr.c: New file.
15532         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15533         * m4/wcschr.m4: New file.
15534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15537         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15538         * doc/posix-functions/wcschr.texi: Mention the new module.
15539
15540 2011-02-06  Bruno Haible  <bruno@clisp.org>
15541
15542         New module 'wcsdup'.
15543         * modules/wcsdup: New file.
15544         * lib/wchar.in.h (wcsdup): New declaration.
15545         * lib/wcsdup.c: New file.
15546         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15547         * m4/wcsdup.m4: New file.
15548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15551         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15552         * doc/posix-functions/wcsdup.texi: Mention the new module.
15553
15554 2011-02-06  Bruno Haible  <bruno@clisp.org>
15555
15556         New module 'wcsxfrm'.
15557         * modules/wcsxfrm: New file.
15558         * lib/wchar.in.h (wcsxfrm): New declaration.
15559         * lib/wcsxfrm.c: New file.
15560         * lib/wcsxfrm-impl.h: New file.
15561         * m4/wcsxfrm.m4: New file.
15562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15565         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15566         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15567
15568 2011-02-06  Bruno Haible  <bruno@clisp.org>
15569
15570         New module 'wcscoll'.
15571         * modules/wcscoll: New file.
15572         * lib/wchar.in.h (wcscoll): New declaration.
15573         * lib/wcscoll.c: New file.
15574         * lib/wcscoll-impl.h: New file.
15575         * m4/wcscoll.m4: New file.
15576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15579         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15580         * doc/posix-functions/wcscoll.texi: Mention the new module.
15581
15582 2011-02-06  Bruno Haible  <bruno@clisp.org>
15583
15584         New module 'wcsncasecmp'.
15585         * modules/wcsncasecmp: New file.
15586         * lib/wchar.in.h (wcsncasecmp): New declaration.
15587         * lib/wcsncasecmp.c: New file.
15588         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15589         * m4/wcsncasecmp.m4: New file.
15590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15592         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15593         HAVE_WCSNCASECMP.
15594         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15595         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15596
15597 2011-02-06  Bruno Haible  <bruno@clisp.org>
15598
15599         New module 'wcscasecmp'.
15600         * modules/wcscasecmp: New file.
15601         * lib/wchar.in.h (wcscasecmp): New declaration.
15602         * lib/wcscasecmp.c: New file.
15603         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15604         * m4/wcscasecmp.m4: New file.
15605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15607         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15608         HAVE_WCSCASECMP.
15609         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15610         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15611
15612 2011-02-05  Bruno Haible  <bruno@clisp.org>
15613
15614         New module 'wcsncmp'.
15615         * modules/wcsncmp: New file.
15616         * lib/wchar.in.h (wcsncmp): New declaration.
15617         * lib/wcsncmp.c: New file.
15618         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15619         * m4/wcsncmp.m4: New file.
15620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15623         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15624         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15625
15626 2011-02-05  Bruno Haible  <bruno@clisp.org>
15627
15628         New module 'wcscmp'.
15629         * modules/wcscmp: New file.
15630         * lib/wchar.in.h (wcscmp): New declaration.
15631         * lib/wcscmp.c: New file.
15632         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15633         * m4/wcscmp.m4: New file.
15634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15637         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15638         * doc/posix-functions/wcscmp.texi: Mention the new module.
15639
15640 2011-02-05  Bruno Haible  <bruno@clisp.org>
15641
15642         New module 'wcsncat'.
15643         * modules/wcsncat: New file.
15644         * lib/wchar.in.h (wcsncat): New declaration.
15645         * lib/wcsncat.c: New file.
15646         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15647         * m4/wcsncat.m4: New file.
15648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15651         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15652         * doc/posix-functions/wcsncat.texi: Mention the new module.
15653
15654 2011-02-05  Bruno Haible  <bruno@clisp.org>
15655
15656         New module 'wcscat'.
15657         * modules/wcscat: New file.
15658         * lib/wchar.in.h (wcscat): New declaration.
15659         * lib/wcscat.c: New file.
15660         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15661         * m4/wcscat.m4: New file.
15662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15665         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15666         * doc/posix-functions/wcscat.texi: Mention the new module.
15667
15668 2011-02-05  Bruno Haible  <bruno@clisp.org>
15669
15670         New module 'wcpncpy'.
15671         * modules/wcpncpy: New file.
15672         * lib/wchar.in.h (wcpncpy): New declaration.
15673         * lib/wcpncpy.c: New file.
15674         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15675         * m4/wcpncpy.m4: New file.
15676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15678         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15679         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15680         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15681
15682 2011-02-05  Bruno Haible  <bruno@clisp.org>
15683
15684         New module 'wcsncpy'.
15685         * modules/wcsncpy: New file.
15686         * lib/wchar.in.h (wcsncpy): New declaration.
15687         * lib/wcsncpy.c: New file.
15688         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15689         * m4/wcsncpy.m4: New file.
15690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15693         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15694         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15695
15696 2011-02-05  Bruno Haible  <bruno@clisp.org>
15697
15698         New module 'wcpcpy'.
15699         * modules/wcpcpy: New file.
15700         * lib/wchar.in.h (wcpcpy): New declaration.
15701         * lib/wcpcpy.c: New file.
15702         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15703         * m4/wcpcpy.m4: New file.
15704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15706         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15707         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15708         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15709
15710 2011-02-05  Bruno Haible  <bruno@clisp.org>
15711
15712         New module 'wcscpy'.
15713         * modules/wcscpy: New file.
15714         * lib/wchar.in.h (wcscpy): New declaration.
15715         * lib/wcscpy.c: New file.
15716         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15717         * m4/wcscpy.m4: New file.
15718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15721         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15722         * doc/posix-functions/wcscpy.texi: Mention the new module.
15723
15724 2011-02-05  Bruno Haible  <bruno@clisp.org>
15725
15726         New module 'wcsnlen'.
15727         * modules/wcsnlen: New file.
15728         * lib/wchar.in.h (wcsnlen): New declaration.
15729         * lib/wcsnlen.c: New file.
15730         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15731         * m4/wcsnlen.m4: New file.
15732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15735         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15736         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15737
15738 2011-02-05  Bruno Haible  <bruno@clisp.org>
15739
15740         New module 'wcslen'.
15741         * modules/wcslen: New file.
15742         * lib/wchar.in.h (wcslen): New declaration.
15743         * lib/wcslen.c: New file.
15744         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15745         * m4/wcslen.m4: New file.
15746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15749         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15750         * doc/posix-functions/wcslen.texi: Mention the new module.
15751
15752 2011-02-05  Bruno Haible  <bruno@clisp.org>
15753
15754         New module 'wmemset'.
15755         * modules/wmemset: New file.
15756         * lib/wchar.in.h (wmemset): New declaration.
15757         * lib/wmemset.c: New file.
15758         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15759         * m4/wmemset.m4: New file.
15760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15762         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15763         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15764         * doc/posix-functions/wmemset.texi: Mention the new module.
15765
15766 2011-02-05  Bruno Haible  <bruno@clisp.org>
15767
15768         New module 'wmemmove'.
15769         * modules/wmemmove: New file.
15770         * lib/wchar.in.h (wmemmove): New declaration.
15771         * lib/wmemmove.c: New file.
15772         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15773         * m4/wmemmove.m4: New file.
15774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15776         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15777         HAVE_WMEMMOVE.
15778         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15779         * doc/posix-functions/wmemmove.texi: Mention the new module.
15780
15781 2011-02-05  Bruno Haible  <bruno@clisp.org>
15782
15783         New module 'wmemcpy'.
15784         * modules/wmemcpy: New file.
15785         * lib/wchar.in.h (wmemcpy): New declaration.
15786         * lib/wmemcpy.c: New file.
15787         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15788         * m4/wmemcpy.m4: New file.
15789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15791         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15792         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15793         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15794
15795 2011-02-05  Bruno Haible  <bruno@clisp.org>
15796
15797         New module 'wmemcmp'.
15798         * modules/wmemcmp: New file.
15799         * lib/wchar.in.h (wmemcmp): New declaration.
15800         * lib/wmemcmp.c: New file.
15801         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15802         * m4/wmemcmp.m4: New file.
15803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15805         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15806         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15807         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15808
15809 2011-02-07  Jim Meyering  <meyering@redhat.com>
15810
15811         di-set, ino-map: new modules, from coreutils
15812         * lib/di-set.c: New file.
15813         * lib/di-set.h: Likewise.
15814         * lib/ino-map.c: Likewise.
15815         * lib/ino-map.h: Likewise.
15816         * modules/di-set: Likewise.
15817         * modules/di-set-tests: Likewise.
15818         * modules/ino-map: Likewise.
15819         * modules/ino-map-tests: Likewise.
15820         * tests/test-di-set.c: Likewise.
15821         * tests/test-ino-map.c: Likewise.
15822
15823 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15824
15825         getloadavg: merge minor changes from Emacs
15826
15827         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15828         (getloadavg): Use memset, not bzero.
15829
15830         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15831         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15832         clash (bug#86).
15833
15834 2010-11-14  Bruno Haible  <bruno@clisp.org>
15835
15836         Allow multiple gnulib generated replacements to coexist.
15837         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15838         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15839         * lib/langinfo.in.h (nl_item): Likewise.
15840         * lib/math.in.h (_NaN, NAN): Likewise.
15841         * lib/netdb.in.h (struct addrinfo): Likewise.
15842         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15843         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15844         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15845         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15846         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15847         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15848         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15849         pthread_mutexattr_init, pthread_mutexattr_settype,
15850         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15851         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15852         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15853         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15854         * lib/sched.in.h (struct sched_param): Likewise.
15855         * lib/se-selinux.in.h (security_class_t, security_context_t,
15856         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15857         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15858         lsetfilecon, fsetfilecon, security_check_context,
15859         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15860         Likewise.
15861         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15862         Likewise.
15863         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15864         _gl_function_taking_int_returning_void_t, union sigval,
15865         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15866         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15867         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15868         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15869         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15870         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15871         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15872         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15873         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15874         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15875         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15876         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15877         socklen_t, rpl_fd_isset): Likewise.
15878         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15879         * lib/sys_time.in.h (struct timeval): Likewise.
15880         * lib/sys_times.in.h (struct tms): Likewise.
15881         * lib/sys_utsname.in.h (struct utsname):
15882         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15883         * lib/unistd.in.h (getpagesize): Likewise.
15884         * lib/wchar.in.h (mbstate_t): Likewise.
15885         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15886         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15887         towlower, towupper): Likewise.
15888         Reported by Sam Steingold <sds@gnu.org>.
15889
15890 2011-02-05  Eric Blake  <eblake@redhat.com>
15891
15892         unsetenv: work around Haiku issues
15893         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15894         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15895
15896 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15897
15898         libposix: avoid calling error() within libposix
15899         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15900         is defined.
15901
15902 2011-02-05  Eric Blake  <eblake@redhat.com>
15903
15904         strerror_r-posix: port to cygwin
15905         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15906         implementation.
15907         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15908         * tests/test-strerror_r.c (main): Fix test.
15909         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15910         issue.
15911
15912 2011-02-05  Bruno Haible  <bruno@clisp.org>
15913
15914         New module 'wmemchr'.
15915         * modules/wmemchr: New file.
15916         * lib/wchar.in.h (wmemchr): New declaration.
15917         * lib/wmemchr.c: New file.
15918         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15919         * m4/wmemchr.m4: New file.
15920         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15921         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15922         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15923         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15924         * doc/posix-functions/wmemchr.texi: Mention the new module.
15925
15926 2011-02-04  Eric Blake  <eblake@redhat.com>
15927
15928         fdopendir: detect FreeBSD bug
15929         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15930         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15931
15932 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15933
15934         stdbool: do not define HAVE_STDBOOL_H
15935         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15936         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15937         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15938         imported from the latest Autoconf git.  It was motivated by Emacs,
15939         which uses gnulib but does not need HAVE_STDBOOL_H.
15940
15941 2011-02-04  Bruno Haible  <bruno@clisp.org>
15942
15943         wcsnrtombs: Prepare for new module wwcsnrtombs.
15944         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15945         * lib/wcsnrtombs.c: Include it.
15946         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15947
15948         wcsrtombs: Prepare for new module wwcsrtombs.
15949         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15950         * lib/wcsrtombs.c: Include it.
15951         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15952
15953         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15954         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15955         * lib/mbsnrtowcs.c: Include it.
15956         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15957
15958         mbsrtowcs: Prepare for new module mbsrtowwcs.
15959         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15960         * lib/mbsrtowcs.c: Include it.
15961         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15962
15963 2011-02-04  Bruno Haible  <bruno@clisp.org>
15964
15965         vasnprintf: Reduce use of malloc for small format strings.
15966         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15967         (arguments): Add room for the first 7 arguments.
15968         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15969         (char_directives, u8_directives, u16_directives, u32_directives): Add
15970         room for the first 7 directives.
15971         * lib/printf-parse.c: Include <string.h>.
15972         (PRINTF_PARSE): Change memory handling code so that it uses the first
15973         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15974         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15975         Reported by Pádraig Brady <P@draigbrady.com>.
15976
15977 2011-01-31  Eric Blake  <eblake@redhat.com>
15978
15979         dup2: work around Haiku bug
15980         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15981         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15982         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15983         * tests/test-dup2.c (main): Enhance test.
15984
15985 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15986
15987         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15988         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15989         declared by eglibc 2.11.2.
15990         * lib/stdio.in.h: Likewise.
15991
15992 2011-01-31  Eric Blake  <eblake@redhat.com>
15993
15994         ignore-value: add missing test dependency
15995         * tests/test-ignore-value.c: Revert previous change; stdio.h
15996         provides off_t.
15997         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15998
15999 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16000
16001         mktime: clarify long_int width checking
16002         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16003         the top level, to make it clearer that the assumption about
16004         long_int width is being checked.  See
16005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16006
16007 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16008
16009         ignore-value: Fix self-test.
16010         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16011
16012 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16013
16014         TYPE_MAXIMUM: avoid theoretically undefined behavior
16015         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16016         negative number, which the C Standard says has undefined behavior.
16017         In practice this is not a problem, but might as well do it by the book.
16018         Reported by Rich Felker and Eric Blake; see
16019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16020         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16021         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16023         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16024         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16025         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16026
16027         mktime: #undef mktime before #defining it
16028         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16029
16030         mktime: systematically normalize tm_isdst comparisons
16031         * lib/mktime.c (isdst_differ): New function.
16032         (__mktime_internal): Use it systematically for all isdst comparisons.
16033         This completes the fix for libc BZ #6723, and removes the need for
16034         normalizing tm_isdst.  See
16035         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16036         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16037
16038         mktime: fix some integer overflow issues and sidestep the rest
16039
16040         This was prompted by a bug report by Benjamin Lindner for MinGW
16041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16042         His bug is due to signed integer overflow (0 - INT_MIN), and I
16043         I scanned through mktime.c looking for other integer overflow
16044         problems, fixing all the bugs I found.
16045
16046         Although the C Standard says the resulting code is still not safe
16047         in the presence of integer overflow, in practice it should be good
16048         enough for all real-world two's-complement implementations, except
16049         for debugging environments that deliberately trap on integer
16050         overflow (e.g., gcc -ftrapv).
16051
16052         * lib/mktime.c (WRAPV): New macro.
16053         (SHR): Also check that long_int and time_t shift right in the
16054         usual way, before using the fast-but-unportable method.
16055         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16056         used.  The code already assumed two's complement, so there's
16057         no need to test for alternatives.  All uses removed.
16058         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16059         the C standard.  Problem reported by Rich Felker in
16060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16061         (twos_complement_arithmetic): Also check long_int and time_t.
16062         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16063         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16064         (__mktime_internal): Avoid integer overflow with unary subtraction
16065         in two instances where -1 - X is an adequate replacement for -X,
16066         since the calculations are approximate.
16067
16068 2011-01-29  Eric Blake  <eblake@redhat.com>
16069
16070         mktime: avoid infinite loop
16071         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16072         type; behavior is still undefined but portable to all known targets.
16073         Reported by Rich Felker.
16074
16075 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16076
16077         rename, unlink, same-inode: Relicense.
16078         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16079         * modules/unlink (License): Likewise.
16080         * modules/same-inode (License): Likewise.
16081
16082 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16083
16084         mktime: avoid problems on NetBSD 5 / i386
16085         * lib/mktime.c (long_int): New type.  This works around a problem
16086         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16087         but time_t is 64 bits, and where I expect the existing code is
16088         wrong in some cases.
16089         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16090         (ydhms_diff): Bring back the compile-time check for wide-enough
16091         year and yday.
16092
16093         mktime: fix misspelling in comment
16094         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16095         This merges all recent glibc changes of importance.
16096
16097 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16098
16099         move-if-change: cope with concurrent mv of identical file.
16100         * build-aux/move-if-change (CMPPROG): Accept environment
16101         variable as an override for `cmp'.
16102         (usage): Document CMPPROG.
16103         Adjust comparison to drop stdout.  Cope with failure of mv if
16104         the target file exists and is identical to the source, for
16105         parallel builds.
16106         Report from H.J. Lu against binutils in PR binutils/12283.
16107
16108 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16109
16110         * users.txt: Mention sharutils.
16111
16112 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16113
16114         * users.txt: Mention OATH Toolkit.
16115
16116 2011-01-27  Bruno Haible  <bruno@clisp.org>
16117
16118         Prepare for supporting FreeBSD 10.
16119         * build-aux/config.libpath: Remove handling of freebsd1*.
16120
16121 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16122
16123         Prepare for supporting FreeBSD 10.
16124         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16125         match FreeBSD 10.0.
16126
16127 2011-01-27  Bruno Haible  <bruno@clisp.org>
16128
16129         vma-iter, get-rusage-as: Add OpenBSD support.
16130         * modules/vma-iter (configure.ac): Test for mquery.
16131         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16132         * lib/vma-iter.c: Include <sys/mman.h>.
16133         (vma_iterate): Add an implementation based on mquery().
16134         * lib/resource-ext.h (get_rusage_as): Update comments.
16135         * lib/get-rusage-as.c: Likewise.
16136         * lib/get-rusage-data.c: Likewise.
16137
16138 2011-01-26  Karl Berry  <karl@gnu.org>
16139
16140         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16141         variables to make it easier to override the makeinfo program used.
16142
16143 2011-01-26  Eric Blake  <eblake@redhat.com>
16144
16145         fcntl: work around Haiku F_DUPFD bugs
16146         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16147         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16148         cloexec bit on duplication.
16149         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16150
16151 2011-01-26  Bruno Haible  <bruno@clisp.org>
16152
16153         Enable memory leak tests on AIX.
16154         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16155         * tests/test-fprintf-posix3.c (main): Likewise.
16156
16157 2011-01-26  Bruno Haible  <bruno@clisp.org>
16158
16159         Tests for module 'get-rusage-data'.
16160         * modules/get-rusage-data-tests: New file.
16161         * tests/test-get-rusage-data.c: New file.
16162
16163         New module 'get-rusage-data'.
16164         * lib/resource-ext.h (get_rusage_data): New declaration.
16165         * lib/get-rusage-data.c: New file.
16166         * modules/get-rusage-data: New file.
16167
16168 2011-01-25  Bruno Haible  <bruno@clisp.org>
16169
16170         get-rusage-as: Allow for easier testing.
16171         * lib/resource-ext.h (get_rusage_as): Add comment.
16172         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16173         (main): New function for interactive testing.
16174
16175 2011-01-25  Bruno Haible  <bruno@clisp.org>
16176
16177         vma-iter: Treat Haiku like BeOS.
16178         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16179         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16180
16181 2011-01-25  Eric Blake  <eblake@redhat.com>
16182
16183         c-stack: fix regression on cygwin when libsigsegv is present
16184         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16185
16186 2011-01-24  Bruno Haible  <bruno@clisp.org>
16187
16188         vma-iter: Avoid empty intervals.
16189         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16190         on an empty interval.
16191
16192 2011-01-24  Jim Meyering  <meyering@redhat.com>
16193
16194         u64: remove unnecessary #include
16195         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16196
16197 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16198
16199         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16200         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16201
16202 2011-01-23  Bruno Haible  <bruno@clisp.org>
16203
16204         New module 'vma-iter'.
16205         * lib/vma-iter.h: New file.
16206         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16207         * modules/vma-iter: New file.
16208         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16209         for get_rusage_as_via_iterator.
16210         (vma_iterate_callback): New function.
16211         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16212         * modules/get-rusage-as (Depends-on): Add vma-iter.
16213
16214 2011-01-23  Bruno Haible  <bruno@clisp.org>
16215
16216         uninorm: Tweak includes.
16217         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16218         Reported by Jim Meyering.
16219
16220 2011-01-23  Bruno Haible  <bruno@clisp.org>
16221
16222         get-rusage-as: Improve on NetBSD.
16223         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16224         /proc, like on FreeBSD.
16225
16226 2011-01-23  Jim Meyering  <meyering@redhat.com>
16227
16228         xreadlink.h: remove unnecessary #include
16229         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16230
16231         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16232         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16233
16234 2011-01-23  Bruno Haible  <bruno@clisp.org>
16235
16236         get-rusage-as: Fix bug.
16237         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16238         original limit when aborting the first loop.
16239
16240 2011-01-23  Bruno Haible  <bruno@clisp.org>
16241
16242         wctype: Ensure valid C syntax.
16243         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16244         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16245
16246 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16247
16248         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16250         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16251         as they are needed only for configure's test case.
16252         This removes two unnecessary symbols from config.h.
16253
16254         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16255         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16257         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16258         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16259         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16260         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16261         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16262         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16263         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16264         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16265         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16266         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16267         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16268         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16269         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16270         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16271         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16272
16273 2011-01-21  Eric Blake  <eblake@redhat.com>
16274
16275         maintainer-makefile: work with older git for submodule check
16276         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16277         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16278         Reported by Matthias Bolte.
16279
16280         bootstrap: minor portability fixes
16281         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16282         (usage): Omit leading capital and trailing . on help phrases, per
16283         GNU Coding Standards.
16284         (check_versions, top level): Prefix messages with script name.
16285
16286 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16287
16288         bootstrap: support --no-git option
16289         * build-aux/bootstrap: Add --no-git option, to be used when
16290         --gnulib-srcdir points to the exact desired checkout.
16291
16292 2011-01-21  Eric Blake  <eblake@redhat.com>
16293
16294         strerror_r-posix: work with glibc 2.13
16295         * lib/strerror_r.c (strerror_r): Fix return type.
16296
16297 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16298             Bruno Haible  <bruno@clisp.org>
16299
16300         uN_strstr: New unit tests.
16301         * modules/unistr/u8-strstr-tests: New file.
16302         * modules/unistr/u16-strstr-tests: New file.
16303         * modules/unistr/u32-strstr-tests: New file.
16304         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16305         * tests/unistr/test-u8-strstr.c: New file.
16306         * tests/unistr/test-u16-strstr.c: New file.
16307         * tests/unistr/test-u32-strstr.c: New file.
16308
16309 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16310             Bruno Haible  <bruno@clisp.org>
16311
16312         Make uN_strstr functions O(n) worst-case.
16313         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16314         16-bit and 32-bit unit cases, use the unibyte algorithm from
16315         lib/mbsstr.c.
16316         * lib/unistr/u8-strstr.c: Include <string.h>.
16317         (UNIT_IS_UINT8_T): New macro.
16318         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16319         (U_STRLEN, U_STRNLEN): New macros.
16320         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16321         (U_STRLEN, U_STRNLEN): New macros.
16322         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16323         (configure.ac): Update required libunistring version.
16324         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16325         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16326         malloca.
16327         (configure.ac): Update required libunistring version.
16328         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16329         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16330         malloca.
16331         (configure.ac): Update required libunistring version.
16332
16333 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16334             Bruno Haible  <bruno@clisp.org>
16335
16336         Prepare for faster uN_strstr functions.
16337         * lib/str-kmp.h: Support definable UNITs.
16338         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16339         needle_len argument.
16340         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16341         * lib/mbscasestr.c (mbscasestr): Likewise.
16342
16343 2011-01-21  Pádraig Brady <P@draigBrady.com>
16344
16345         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16346         * tests/test-malloca.c (main): Unset the environment variable
16347         to greatly speed up the test.
16348         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16349         * modules/malloca-tests: Depend on unsetenv.
16350
16351 2011-01-21  Pádraig Brady <P@draigBrady.com>
16352
16353         ignore-value: remove stdint dependency
16354         * lib/ignore-value.h: Remove <stdint.h>
16355         * modules/ignore-value: Remove stdint dependency.
16356
16357 2011-01-21  Jim Meyering  <meyering@redhat.com>
16358
16359         maint.mk: adjust variable name to be consistent with other gl_ vars
16360         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16361         to be lower case.
16362
16363 2011-01-20  Jim Meyering  <meyering@redhat.com>
16364
16365         maint.mk: make "check" depend on public-submodule-commit by default
16366         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16367
16368 2011-01-20  Bruno Haible  <bruno@clisp.org>
16369
16370         mbfile, mbiter: Complete change from 2008-12-21.
16371         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16372         * m4/mbiter.m4 (gl_MBITER): Likewise.
16373
16374 2011-01-20  Jim Meyering  <meyering@redhat.com>
16375
16376         init.sh: insert space between each function name and "()"
16377         * tests/init.sh: Make it a little easier to see that a function's
16378         name is "warn_", and not "warn" when looking at the first part of
16379         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16380
16381 2011-01-20  Jim Meyering  <meyering@redhat.com>
16382
16383         mountlist: clean up code formatting
16384         * lib/mountlist.c (read_file_system_list): Split a long line,
16385         correct bracing style, use NULL in place of "(struct statfs *)0",
16386         don't parenthesize return value, add spaces around "=" and after
16387         ";-in-for-stmt".
16388
16389 2011-01-14  Markus Duft <mduft@gentoo.org>
16390
16391         mountlist: add support for Interix
16392         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16393         Apply statvfs to all entries of /dev/fs.
16394         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16395         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16396
16397 2011-01-20  Jim Meyering  <meyering@redhat.com>
16398
16399         maint.mk: improve the public-submodule-commit rule
16400         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16401         to suppress printing of its commands... unless V=1.
16402         Add git submodule's --quiet option to suppress printing of e.g.,
16403         "Entering gnulib" output.
16404         "cd" into $(srcdir) before running git submodule.
16405
16406 2011-01-20  Bruno Haible  <bruno@clisp.org>
16407
16408         include_next: Fix bug introduced on 2011-01-18.
16409         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16410         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16411         ac_cv_header_... variable if the second argument is not 'check'.
16412         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16413         gl_NEXT_HEADERS_INTERNAL.
16414
16415 2011-01-20  Bruno Haible  <bruno@clisp.org>
16416
16417         Allow the user to avoid the GNULIB_TEST_* macros.
16418         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16419         Suggested by Paul Eggert.
16420
16421 2011-01-14  Jim Meyering  <meyering@redhat.com>
16422
16423         bootstrap: avoid failure when there is no .gitmodules file
16424         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16425         has been assigned to, even when its value is the empty string.
16426         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16427         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16428         Reported by John W. Eaton <jwe@gnu.org>.
16429
16430 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16431
16432         assume <ctype.h>, ..., <time.h> exist
16433         For years gnulib has been assuming the existence of the headers
16434         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16435         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16436         them, since they don't appear to be needed.
16437         * README (Portability guidelines): Document this.
16438         * lib/flock.c: Assume <fcntl.h> exists.
16439         * lib/regex_internal.h: Assume <locale.h> exists.
16440         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16441         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16442         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16443         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16444         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16445         * m4/regex.m4 (gl_REGEX): Likewise.
16446         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16447         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16448         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16449         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16450         * tests/test-argp.c: Likewise.
16451         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16452
16453         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16454         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16455         AA_APPLE_UNIVERSAL_BUILD.  See
16456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16457         * NEWS: Document this.
16458
16459 2011-01-19  Eric Blake  <eblake@redhat.com>
16460
16461         c-stack: assume stack overflow if SA_SIGINFO unsupported
16462         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16463         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16464         sigaction will work.
16465         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16466         behavior match Linux.
16467         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16468
16469         stdbool-tests: accomodate Haiku
16470         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16471
16472         binary-io: fix O_TEXT on Haiku
16473         * modules/binary-io (Depends-on): Add fcntl-h.
16474         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16475         than blindly undefining O_TEXT.
16476         Reported by Scott McCreary.
16477
16478 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16479
16480         include_next: do not check for standard headers like stddef.h
16481
16482         I found this problem when modifying Emacs to use gnulib.
16483         I noticed that it added HAVE_STDDEF_H to config.h, even though
16484         gnulib always assumes <stddef.h> exists as per README and this
16485         symbol is unnecessary.
16486         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16487         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16488         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16489         faster for headers like stddef.h that are known to exist.
16490         (gl_CHECK_NEXT_HEADERS): Use it.
16491         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16492         rather than gl_CHECK_NEXT_HEADERS.
16493         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16494         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16495
16496 2011-01-18  Eric Blake  <eblake@redhat.com>
16497
16498         ansi-c++-opt: skip C++ dependency style if C++ is unused
16499         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16500         tests when we know C++ compilation is not desired.
16501         Reported by Scott McCreary.
16502
16503 2011-01-18  Bruno Haible  <bruno@clisp.org>
16504
16505         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16506         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16507         (main): Perform test also when getrlimit and setrlimit don't exist or
16508         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16509         limiting the address space size using setrlimit, compare the address
16510         space size before and after the the test.
16511         * tests/test-dprintf-posix2.c: Likewise.
16512         * tests/test-fprintf-posix3.sh: Update skip messages.
16513         * tests/test-dprintf-posix2.sh: Likewise.
16514         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16515         * modules/dprintf-posix-tests (Depends-on): Likewise.
16516         Reported by Bruce Korb <bkorb@gnu.org> and
16517         Gary V. Vaughan <gary@gnu.org>.
16518
16519 2011-01-18  Bruno Haible  <bruno@clisp.org>
16520
16521         get-rusage-as: Improvement for Cygwin.
16522         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16523         areas that are merely reserved.
16524
16525 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16526
16527         strftime: remove dependencies on multibyte modules
16528
16529         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16530         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16531         only if __osf__ is defined, and I suspect OSF doesn't need these
16532         other modules.  If my guess is wrong, we'll need to come up with a
16533         variant of strftime that doesn't need the multibyte modules.
16534
16535         I discovered this problem when attempting modify Emacs to use the
16536         strftime module.  With the previous gnulib, this caused Emacs to
16537         need 31 new files, ranging from lib/config.charset to
16538         m4/wint_t.m4.  This was overkill and I expect would be offputting
16539         to the Emacs maintainers.  After this change, only 6 new files are
16540         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16541         stdbool.m4, and tm_gmtoff.m4.
16542
16543         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16544         Suggested by Bruno Haible in
16545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16546         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16547         and do not check for wchar.h.
16548         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16549         (Depends-on): Remove mbrlen, mbsinit, wchar.
16550
16551 2011-01-18  Bruno Haible  <bruno@clisp.org>
16552
16553         Tests for module 'get-rusage-as'.
16554         * modules/get-rusage-as-tests: New file.
16555         * tests/test-get-rusage-as.c: New file.
16556
16557         New module 'get-rusage-as'.
16558         * modules/get-rusage-as: New file.
16559         * lib/resource-ext.h: New file.
16560         * lib/get-rusage-as.c: New file.
16561
16562 2011-01-17  Eric Blake  <eblake@redhat.com>
16563
16564         sigaction: relax license from LGPLv3+ to LGPLv2+
16565         * modules/sigaction (License): Relax to LGPLv2+.
16566
16567 2011-01-14  Bruno Haible  <bruno@clisp.org>
16568
16569         filemode: Make function declarations usable in C++ mode.
16570         * lib/filemode.h: Enclose function declarations in extern "C" block.
16571         Reported by John W. Eaton <jwe@gnu.org>.
16572
16573 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16574
16575         save-cwd: no longer include "xgetcwd.h"
16576         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16577         This avoids a compilation failure in projects that use save-cwd
16578         without also using the xgetcwd module.
16579
16580 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16581
16582         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16583         This is so that a program like Emacs, which needs only dtoastr,
16584         does not have to bother with distributing and compiling ftoastr
16585         and ldtoastr.
16586         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16587         * modules/dtoastr, modules/ldtoastr: New files.
16588         * modules/ftoastr: Now works just for 'float'.
16589         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16590         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16591         dtoastr.c, ldtoastr.c.
16592
16593 2011-01-11  Jim Meyering  <meyering@redhat.com>
16594
16595         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16596         There is no need to work around the lack of the fchdir function,
16597         since gnulib can now provide a replacement when required.
16598         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16599         * modules/save-cwd (Depends-on): Add fchdir.
16600
16601 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16602
16603         openat, save-cwd: avoid xmalloc
16604
16605         This removes a direct (but undocumented) dependency of openat on
16606         xalloc, along with an indirect dependency via save-cwd.  It also
16607         removes a dependency of save-cwd on xgetcwd, and thereby
16608         indirectly on xalloc.  This change causes the openat substitute
16609         to fall back on save_cwd when memory is tight, and for save_cwd to
16610         fail instead of dying when memory is tight, but that's good enough.
16611         Problem and initial idea for fix reported by Bastien Roucaries in
16612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16613
16614         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16615         xalloc.h (for xmalloc).
16616         (openat_proc_name): Use malloc, not xmalloc.
16617         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16618         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16619
16620         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16621         This avoids heap allocation for file names whose lengths are in
16622         the range 512..1023, with the upper bound increasing to at most
16623         4031 depending on the platform's PATH_MAX.  (We do not want
16624         pathmax.h here as it might supply a non-constant PATH_MAX.)
16625         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16626         Perhaps they should be moved to malloca.h?
16627         (OPENAT_BUFFER_SIZE): Use them.
16628
16629 2011-01-10  Bruno Haible  <bruno@clisp.org>
16630
16631         doc: Update users.txt.
16632         * users.txt: Add recutils.
16633
16634 2011-01-09  Karl Berry  <karl@gnu.org>
16635
16636         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16637
16638         * doc/configmake.texi: New file.
16639         * doc/gnulib.texi: Include it.
16640         * modules/configmake: Move documentation from here.
16641
16642 2011-01-09  Bruno Haible  <bruno@clisp.org>
16643
16644         Update to Unicode 6.0.0.
16645         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16646         (get_lbp): Update for Unicode 6.0.0.
16647         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16648         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16649         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16650         U+11001, U+11038..U+11046. Remove U+06DE.
16651         (uc_width): Fix bounds of planes.
16652         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16653         lib/uniwidth/width.c.
16654         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16655         trailing whitespace removed.
16656         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16657         without comments, but with the original copyright notice.
16658         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16659         * lib/unicase/ignorable.h: Likewise.
16660         * lib/unicase/tocasefold.h: Likewise.
16661         * lib/unicase/tolower.h: Likewise.
16662         * lib/unicase/totitle.h: Likewise.
16663         * lib/unicase/toupper.h: Likewise.
16664         * lib/unictype/bidi_of.h: Likewise.
16665         * lib/unictype/blocks.h: Likewise.
16666         * lib/unictype/categ_C.h: Likewise.
16667         * lib/unictype/categ_Cn.h: Likewise.
16668         * lib/unictype/categ_L.h: Likewise.
16669         * lib/unictype/categ_Ll.h: Likewise.
16670         * lib/unictype/categ_Lm.h: Likewise.
16671         * lib/unictype/categ_Lo.h: Likewise.
16672         * lib/unictype/categ_Lu.h: Likewise.
16673         * lib/unictype/categ_M.h: Likewise.
16674         * lib/unictype/categ_Mc.h: Likewise.
16675         * lib/unictype/categ_Me.h: Likewise.
16676         * lib/unictype/categ_Mn.h: Likewise.
16677         * lib/unictype/categ_N.h: Likewise.
16678         * lib/unictype/categ_Nd.h: Likewise.
16679         * lib/unictype/categ_No.h: Likewise.
16680         * lib/unictype/categ_P.h: Likewise.
16681         * lib/unictype/categ_Po.h: Likewise.
16682         * lib/unictype/categ_S.h: Likewise.
16683         * lib/unictype/categ_Sc.h: Likewise.
16684         * lib/unictype/categ_Sk.h: Likewise.
16685         * lib/unictype/categ_Sm.h: Likewise.
16686         * lib/unictype/categ_So.h: Likewise.
16687         * lib/unictype/categ_of.h: Likewise.
16688         * lib/unictype/combining.h: Likewise.
16689         * lib/unictype/ctype_alnum.h: Likewise.
16690         * lib/unictype/ctype_alpha.h: Likewise.
16691         * lib/unictype/ctype_graph.h: Likewise.
16692         * lib/unictype/ctype_lower.h: Likewise.
16693         * lib/unictype/ctype_print.h: Likewise.
16694         * lib/unictype/ctype_punct.h: Likewise.
16695         * lib/unictype/ctype_upper.h: Likewise.
16696         * lib/unictype/decdigit.h: Likewise.
16697         * lib/unictype/digit.h: Likewise.
16698         * lib/unictype/numeric.h: Likewise.
16699         * lib/unictype/pr_alphabetic.h: Likewise.
16700         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16701         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16702         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16703         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16704         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16705         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16706         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16707         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16708         * lib/unictype/pr_case_ignorable.h: Likewise.
16709         * lib/unictype/pr_cased.h: Likewise.
16710         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16711         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16712         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16713         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16714         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16715         * lib/unictype/pr_combining.h: Likewise.
16716         * lib/unictype/pr_composite.h: Likewise.
16717         * lib/unictype/pr_currency_symbol.h: Likewise.
16718         * lib/unictype/pr_decimal_digit.h: Likewise.
16719         * lib/unictype/pr_deprecated.h: Likewise.
16720         * lib/unictype/pr_format_control.h: Likewise.
16721         * lib/unictype/pr_grapheme_base.h: Likewise.
16722         * lib/unictype/pr_grapheme_extend.h: Likewise.
16723         * lib/unictype/pr_grapheme_link.h: Likewise.
16724         * lib/unictype/pr_id_continue.h: Likewise.
16725         * lib/unictype/pr_id_start.h: Likewise.
16726         * lib/unictype/pr_ideographic.h: Likewise.
16727         * lib/unictype/pr_lowercase.h: Likewise.
16728         * lib/unictype/pr_math.h: Likewise.
16729         * lib/unictype/pr_numeric.h: Likewise.
16730         * lib/unictype/pr_other_alphabetic.h: Likewise.
16731         * lib/unictype/pr_other_id_continue.h: Likewise.
16732         * lib/unictype/pr_other_math.h: Likewise.
16733         * lib/unictype/pr_punctuation.h: Likewise.
16734         * lib/unictype/pr_sentence_terminal.h: Likewise.
16735         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16736         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16737         * lib/unictype/pr_unified_ideograph.h: Likewise.
16738         * lib/unictype/pr_uppercase.h: Likewise.
16739         * lib/unictype/pr_xid_continue.h: Likewise.
16740         * lib/unictype/pr_xid_start.h: Likewise.
16741         * lib/unictype/scripts.h: Likewise.
16742         * lib/unictype/scripts_byname.gperf: Likewise.
16743         * lib/unictype/sy_java_ident.h: Likewise.
16744         * lib/unigbrk/gbrkprop.h: Likewise.
16745         * lib/unilbrk/lbrkprop1.h: Likewise.
16746         * lib/unilbrk/lbrkprop2.h: Likewise.
16747         * lib/uninorm/decomposition-table2.h: Likewise.
16748         * lib/uniwbrk/wbrkprop.h: Likewise.
16749         * tests/unicase/test-cased.c: Likewise.
16750         * tests/unicase/test-ignorable.c: Likewise.
16751         * tests/unicase/test-uc_tolower.c: Likewise.
16752         * tests/unicase/test-uc_totitle.c: Likewise.
16753         * tests/unicase/test-uc_toupper.c: Likewise.
16754         * tests/unictype/test-categ_C.c: Likewise.
16755         * tests/unictype/test-categ_Cn.c: Likewise.
16756         * tests/unictype/test-categ_L.c: Likewise.
16757         * tests/unictype/test-categ_Ll.c: Likewise.
16758         * tests/unictype/test-categ_Lm.c: Likewise.
16759         * tests/unictype/test-categ_Lo.c: Likewise.
16760         * tests/unictype/test-categ_Lu.c: Likewise.
16761         * tests/unictype/test-categ_M.c: Likewise.
16762         * tests/unictype/test-categ_Mc.c: Likewise.
16763         * tests/unictype/test-categ_Me.c: Likewise.
16764         * tests/unictype/test-categ_Mn.c: Likewise.
16765         * tests/unictype/test-categ_N.c: Likewise.
16766         * tests/unictype/test-categ_Nd.c: Likewise.
16767         * tests/unictype/test-categ_No.c: Likewise.
16768         * tests/unictype/test-categ_P.c: Likewise.
16769         * tests/unictype/test-categ_Po.c: Likewise.
16770         * tests/unictype/test-categ_S.c: Likewise.
16771         * tests/unictype/test-categ_Sc.c: Likewise.
16772         * tests/unictype/test-categ_Sk.c: Likewise.
16773         * tests/unictype/test-categ_Sm.c: Likewise.
16774         * tests/unictype/test-categ_So.c: Likewise.
16775         * tests/unictype/test-ctype_alnum.c: Likewise.
16776         * tests/unictype/test-ctype_alpha.c: Likewise.
16777         * tests/unictype/test-ctype_graph.c: Likewise.
16778         * tests/unictype/test-ctype_lower.c: Likewise.
16779         * tests/unictype/test-ctype_print.c: Likewise.
16780         * tests/unictype/test-ctype_punct.c: Likewise.
16781         * tests/unictype/test-ctype_upper.c: Likewise.
16782         * tests/unictype/test-decdigit.h: Likewise.
16783         * tests/unictype/test-digit.h: Likewise.
16784         * tests/unictype/test-numeric.h: Likewise.
16785         * tests/unictype/test-pr_alphabetic.c: Likewise.
16786         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16787         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16788         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16789         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16790         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16791         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16792         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16793         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16794         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16795         * tests/unictype/test-pr_cased.c: Likewise.
16796         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16797         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16798         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16799         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16800         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16801         * tests/unictype/test-pr_combining.c: Likewise.
16802         * tests/unictype/test-pr_composite.c: Likewise.
16803         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16804         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16805         * tests/unictype/test-pr_deprecated.c: Likewise.
16806         * tests/unictype/test-pr_format_control.c: Likewise.
16807         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16808         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16809         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16810         * tests/unictype/test-pr_id_continue.c: Likewise.
16811         * tests/unictype/test-pr_id_start.c: Likewise.
16812         * tests/unictype/test-pr_ideographic.c: Likewise.
16813         * tests/unictype/test-pr_lowercase.c: Likewise.
16814         * tests/unictype/test-pr_math.c: Likewise.
16815         * tests/unictype/test-pr_numeric.c: Likewise.
16816         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16817         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16818         * tests/unictype/test-pr_other_math.c: Likewise.
16819         * tests/unictype/test-pr_punctuation.c: Likewise.
16820         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16821         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16822         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16823         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16824         * tests/unictype/test-pr_uppercase.c: Likewise.
16825         * tests/unictype/test-pr_xid_continue.c: Likewise.
16826         * tests/unictype/test-pr_xid_start.c: Likewise.
16827         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16828         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16829         changes.
16830         * lib/unictype/categ_Cc.h: Likewise.
16831         * lib/unictype/categ_Cf.h: Likewise.
16832         * lib/unictype/categ_Co.h: Likewise.
16833         * lib/unictype/categ_Cs.h: Likewise.
16834         * lib/unictype/categ_Lt.h: Likewise.
16835         * lib/unictype/categ_Nl.h: Likewise.
16836         * lib/unictype/categ_Pc.h: Likewise.
16837         * lib/unictype/categ_Pd.h: Likewise.
16838         * lib/unictype/categ_Pe.h: Likewise.
16839         * lib/unictype/categ_Pf.h: Likewise.
16840         * lib/unictype/categ_Pi.h: Likewise.
16841         * lib/unictype/categ_Ps.h: Likewise.
16842         * lib/unictype/categ_Z.h: Likewise.
16843         * lib/unictype/categ_Zl.h: Likewise.
16844         * lib/unictype/categ_Zp.h: Likewise.
16845         * lib/unictype/categ_Zs.h: Likewise.
16846         * lib/unictype/ctype_blank.h: Likewise.
16847         * lib/unictype/ctype_cntrl.h: Likewise.
16848         * lib/unictype/ctype_digit.h: Likewise.
16849         * lib/unictype/ctype_space.h: Likewise.
16850         * lib/unictype/ctype_xdigit.h: Likewise.
16851         * lib/unictype/mirror.h: Likewise.
16852         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16853         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16854         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16855         * lib/unictype/pr_bidi_control.h: Likewise.
16856         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16857         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16858         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16859         * lib/unictype/pr_bidi_pdf.h: Likewise.
16860         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16861         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16862         * lib/unictype/pr_dash.h: Likewise.
16863         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16864         * lib/unictype/pr_diacritic.h: Likewise.
16865         * lib/unictype/pr_extender.h: Likewise.
16866         * lib/unictype/pr_hex_digit.h: Likewise.
16867         * lib/unictype/pr_hyphen.h: Likewise.
16868         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16869         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16870         * lib/unictype/pr_ignorable_control.h: Likewise.
16871         * lib/unictype/pr_iso_control.h: Likewise.
16872         * lib/unictype/pr_join_control.h: Likewise.
16873         * lib/unictype/pr_left_of_pair.h: Likewise.
16874         * lib/unictype/pr_line_separator.h: Likewise.
16875         * lib/unictype/pr_logical_order_exception.h: Likewise.
16876         * lib/unictype/pr_non_break.h: Likewise.
16877         * lib/unictype/pr_not_a_character.h: Likewise.
16878         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16879         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16880         * lib/unictype/pr_other_id_start.h: Likewise.
16881         * lib/unictype/pr_other_lowercase.h: Likewise.
16882         * lib/unictype/pr_other_uppercase.h: Likewise.
16883         * lib/unictype/pr_paired_punctuation.h: Likewise.
16884         * lib/unictype/pr_paragraph_separator.h: Likewise.
16885         * lib/unictype/pr_pattern_syntax.h: Likewise.
16886         * lib/unictype/pr_pattern_white_space.h: Likewise.
16887         * lib/unictype/pr_private_use.h: Likewise.
16888         * lib/unictype/pr_quotation_mark.h: Likewise.
16889         * lib/unictype/pr_radical.h: Likewise.
16890         * lib/unictype/pr_soft_dotted.h: Likewise.
16891         * lib/unictype/pr_space.h: Likewise.
16892         * lib/unictype/pr_titlecase.h: Likewise.
16893         * lib/unictype/pr_variation_selector.h: Likewise.
16894         * lib/unictype/pr_white_space.h: Likewise.
16895         * lib/unictype/pr_zero_width.h: Likewise.
16896         * lib/unictype/sy_c_ident.h: Likewise.
16897         * lib/unictype/sy_c_whitespace.h: Likewise.
16898         * lib/unictype/sy_java_whitespace.h: Likewise.
16899         * lib/uninorm/composition-table.gperf: Likewise.
16900         * lib/uninorm/decomposition-table1.h: Likewise.
16901         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16902         LB8.
16903         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16904         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16905         * modules/unictype/*: Bump version number of expected libunistring
16906         version.
16907
16908 2011-01-09  Bruno Haible  <bruno@clisp.org>
16909
16910         Update to Unicode 5.2.0.
16911         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16912         trailing whitespace removed.
16913
16914 2011-01-09  Bruno Haible  <bruno@clisp.org>
16915
16916         New Unicode character properties, from Unicode 5.2.0.
16917         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16918         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16919         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16920         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16921         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16922         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16923         uc_is_property_cased, uc_is_property_case_ignorable,
16924         uc_is_property_changes_when_lowercased,
16925         uc_is_property_changes_when_uppercased,
16926         uc_is_property_changes_when_titlecased,
16927         uc_is_property_changes_when_casefolded,
16928         uc_is_property_changes_when_casemapped): New declarations.
16929         * lib/unictype/pr_byname.gperf: Add the new properties.
16930         * modules/unictype/property-byname (Depends-on): Depend on the new
16931         properties modules.
16932         * modules/unictype/property-all (Depends-on): Likewise.
16933         * MODULES.html.sh (Unicode string functions): Add
16934         unictype/property-case-ignorable, unictype/property-cased,
16935         unictype/property-changes-when-casefolded,
16936         unictype/property-changes-when-casemapped,
16937         unictype/property-changes-when-lowercased,
16938         unictype/property-changes-when-titlecased,
16939         unictype/property-changes-when-uppercased.
16940
16941         New module 'unictype/property-changes-when-casemapped'.
16942         * modules/unictype/property-changes-when-casemapped: New file.
16943         * lib/unictype/pr_changes_when_casemapped.c: New file.
16944         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16945         generated by gen-uni-tables.
16946         * modules/unictype/property-changes-when-casemapped-tests: New file.
16947         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16948         automatically generated by gen-uni-tables.
16949
16950         New module 'unictype/property-changes-when-casefolded'.
16951         * modules/unictype/property-changes-when-casefolded: New file.
16952         * lib/unictype/pr_changes_when_casefolded.c: New file.
16953         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16954         generated by gen-uni-tables.
16955         * modules/unictype/property-changes-when-casefolded-tests: New file.
16956         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16957         automatically generated by gen-uni-tables.
16958
16959         New module 'unictype/property-changes-when-titlecased'.
16960         * modules/unictype/property-changes-when-titlecased: New file.
16961         * lib/unictype/pr_changes_when_titlecased.c: New file.
16962         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16963         generated by gen-uni-tables.
16964         * modules/unictype/property-changes-when-titlecased-tests: New file.
16965         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16966         automatically generated by gen-uni-tables.
16967
16968         New module 'unictype/property-changes-when-uppercased'.
16969         * modules/unictype/property-changes-when-uppercased: New file.
16970         * lib/unictype/pr_changes_when_uppercased.c: New file.
16971         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16972         generated by gen-uni-tables.
16973         * modules/unictype/property-changes-when-uppercased-tests: New file.
16974         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16975         automatically generated by gen-uni-tables.
16976
16977         New module 'unictype/property-changes-when-lowercased'.
16978         * modules/unictype/property-changes-when-lowercased: New file.
16979         * lib/unictype/pr_changes_when_lowercased.c: New file.
16980         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16981         generated by gen-uni-tables.
16982         * modules/unictype/property-changes-when-lowercased-tests: New file.
16983         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16984         automatically generated by gen-uni-tables.
16985
16986         New module 'unictype/property-case-ignorable'.
16987         * modules/unictype/property-case-ignorable: New file.
16988         * lib/unictype/pr_case_ignorable.c: New file.
16989         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16990         by gen-uni-tables.
16991         * modules/unictype/property-case-ignorable-tests: New file.
16992         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16993         generated by gen-uni-tables.
16994
16995         New module 'unictype/property-cased'.
16996         * modules/unictype/property-cased: New file.
16997         * lib/unictype/pr_cased.c: New file.
16998         * lib/unictype/pr_cased.h: New file, automatically generated by
16999         gen-uni-tables.
17000         * modules/unictype/property-cased-tests: New file.
17001         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17002         gen-uni-tables.
17003
17004 2011-01-09  Bruno Haible  <bruno@clisp.org>
17005
17006         Update to Unicode 5.2.0.
17007         * lib/gen-uni-tables.c (output_predicate, output_category,
17008         output_combclass, output_bidi_category, output_decimal_digit_test,
17009         output_decimal_digit, output_digit_test, output_digit,
17010         output_numeric_test, output_numeric, output_mirror, output_scripts,
17011         output_scripts_byname, output_blocks, output_ident_category): Fix
17012         comment header.
17013         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17014         get_wbp.
17015         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17016         items.
17017         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17018         Changes_When_Lowercased, Changes_When_Uppercased,
17019         Changes_When_Titlecased, Changes_When_Casefolded,
17020         Changes_When_Casemapped.
17021         (is_property_alphabetic, is_property_default_ignorable_code_point):
17022         Update for Unicode 5.2.0.
17023         (is_property_cased, is_property_case_ignorable,
17024         is_property_changes_when_lowercased,
17025         is_property_changes_when_uppercased,
17026         is_property_changes_when_titlecased,
17027         is_property_changes_when_casefolded,
17028         is_property_changes_when_casemapped): New functions.
17029         (output_properties): Output also the properties cased, case_ignorable,
17030         changes_when_lowercased, changes_when_uppercased,
17031         changes_when_titlecased, changes_when_casefolded,
17032         changes_when_casemapped.
17033         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17034         Unicode TR#11 revision 17 -> 19.
17035         (LBP_CP): New enumeration value.
17036         (LBP_*): Adjust values accordingly.
17037         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17038         TR#14 revision 22 -> 24.
17039         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17040         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17041         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17042         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17043         is_WBP_MIDLETTER.
17044         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17045         the code1 and code2 of each composition rule.
17046         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17047         * lib/unicase/ignorable.h: Likewise.
17048         * lib/unicase/tocasefold.h: Likewise.
17049         * lib/unicase/tolower.h: Likewise.
17050         * lib/unicase/totitle.h: Likewise.
17051         * lib/unicase/toupper.h: Likewise.
17052         * lib/unictype/bidi_of.h: Likewise.
17053         * lib/unictype/blocks.h: Likewise.
17054         * lib/unictype/categ_C.h: Likewise.
17055         * lib/unictype/categ_Cf.h: Likewise.
17056         * lib/unictype/categ_Cn.h: Likewise.
17057         * lib/unictype/categ_L.h: Likewise.
17058         * lib/unictype/categ_Ll.h: Likewise.
17059         * lib/unictype/categ_Lm.h: Likewise.
17060         * lib/unictype/categ_Lo.h: Likewise.
17061         * lib/unictype/categ_Lu.h: Likewise.
17062         * lib/unictype/categ_M.h: Likewise.
17063         * lib/unictype/categ_Mc.h: Likewise.
17064         * lib/unictype/categ_Mn.h: Likewise.
17065         * lib/unictype/categ_N.h: Likewise.
17066         * lib/unictype/categ_Nd.h: Likewise.
17067         * lib/unictype/categ_Nl.h: Likewise.
17068         * lib/unictype/categ_No.h: Likewise.
17069         * lib/unictype/categ_P.h: Likewise.
17070         * lib/unictype/categ_Pd.h: Likewise.
17071         * lib/unictype/categ_Po.h: Likewise.
17072         * lib/unictype/categ_S.h: Likewise.
17073         * lib/unictype/categ_Sc.h: Likewise.
17074         * lib/unictype/categ_So.h: Likewise.
17075         * lib/unictype/categ_of.h: Likewise.
17076         * lib/unictype/combining.h: Likewise.
17077         * lib/unictype/ctype_alnum.h: Likewise.
17078         * lib/unictype/ctype_alpha.h: Likewise.
17079         * lib/unictype/ctype_graph.h: Likewise.
17080         * lib/unictype/ctype_lower.h: Likewise.
17081         * lib/unictype/ctype_print.h: Likewise.
17082         * lib/unictype/ctype_punct.h: Likewise.
17083         * lib/unictype/ctype_upper.h: Likewise.
17084         * lib/unictype/decdigit.h: Likewise.
17085         * lib/unictype/digit.h: Likewise.
17086         * lib/unictype/numeric.h: Likewise.
17087         * lib/unictype/pr_alphabetic.h: Likewise.
17088         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17089         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17090         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17091         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17092         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17093         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17094         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17095         * lib/unictype/pr_combining.h: Likewise.
17096         * lib/unictype/pr_composite.h: Likewise.
17097         * lib/unictype/pr_currency_symbol.h: Likewise.
17098         * lib/unictype/pr_dash.h: Likewise.
17099         * lib/unictype/pr_decimal_digit.h: Likewise.
17100         * lib/unictype/pr_deprecated.h: Likewise.
17101         * lib/unictype/pr_diacritic.h: Likewise.
17102         * lib/unictype/pr_extender.h: Likewise.
17103         * lib/unictype/pr_grapheme_base.h: Likewise.
17104         * lib/unictype/pr_grapheme_extend.h: Likewise.
17105         * lib/unictype/pr_grapheme_link.h: Likewise.
17106         * lib/unictype/pr_id_continue.h: Likewise.
17107         * lib/unictype/pr_id_start.h: Likewise.
17108         * lib/unictype/pr_ideographic.h: Likewise.
17109         * lib/unictype/pr_ignorable_control.h: Likewise.
17110         * lib/unictype/pr_logical_order_exception.h: Likewise.
17111         * lib/unictype/pr_lowercase.h: Likewise.
17112         * lib/unictype/pr_numeric.h: Likewise.
17113         * lib/unictype/pr_other_alphabetic.h: Likewise.
17114         * lib/unictype/pr_punctuation.h: Likewise.
17115         * lib/unictype/pr_sentence_terminal.h: Likewise.
17116         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17117         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17118         * lib/unictype/pr_unified_ideograph.h: Likewise.
17119         * lib/unictype/pr_uppercase.h: Likewise.
17120         * lib/unictype/pr_xid_continue.h: Likewise.
17121         * lib/unictype/pr_xid_start.h: Likewise.
17122         * lib/unictype/pr_zero_width.h: Likewise.
17123         * lib/unictype/scripts.h: Likewise.
17124         * lib/unictype/scripts_byname.gperf: Likewise.
17125         * lib/unictype/sy_java_ident.h: Likewise.
17126         * lib/unigbrk/gbrkprop.h: Likewise.
17127         * lib/unilbrk/lbrkprop1.h: Likewise.
17128         * lib/unilbrk/lbrkprop2.h: Likewise.
17129         * lib/unilbrk/lbrktables.h: Likewise.
17130         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17131         LBP_CP. Implement rule LB30.
17132         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17133         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17134         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17135         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17136         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17137         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17138         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17139         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17140         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17141         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17142         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17143         bits instead of 16 bits in the code1 and code2 of each composition
17144         rule.
17145         (uc_composition): Update for Unicode 5.2.0.
17146         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17147         * lib/uninorm/decomposition-table2.h: Likewise.
17148         * lib/uniwbrk/wbrkprop.h: Likewise.
17149         * tests/unicase/test-cased.c: Likewise.
17150         * tests/unicase/test-ignorable.c: Likewise.
17151         * tests/unicase/test-uc_tolower.c: Likewise.
17152         * tests/unicase/test-uc_totitle.c: Likewise.
17153         * tests/unicase/test-uc_toupper.c: Likewise.
17154         * tests/unictype/test-categ_C.c: Likewise.
17155         * tests/unictype/test-categ_Cf.c: Likewise.
17156         * tests/unictype/test-categ_Cn.c: Likewise.
17157         * tests/unictype/test-categ_L.c: Likewise.
17158         * tests/unictype/test-categ_Ll.c: Likewise.
17159         * tests/unictype/test-categ_Lm.c: Likewise.
17160         * tests/unictype/test-categ_Lo.c: Likewise.
17161         * tests/unictype/test-categ_Lu.c: Likewise.
17162         * tests/unictype/test-categ_M.c: Likewise.
17163         * tests/unictype/test-categ_Mc.c: Likewise.
17164         * tests/unictype/test-categ_Mn.c: Likewise.
17165         * tests/unictype/test-categ_N.c: Likewise.
17166         * tests/unictype/test-categ_Nd.c: Likewise.
17167         * tests/unictype/test-categ_Nl.c: Likewise.
17168         * tests/unictype/test-categ_No.c: Likewise.
17169         * tests/unictype/test-categ_P.c: Likewise.
17170         * tests/unictype/test-categ_Pd.c: Likewise.
17171         * tests/unictype/test-categ_Po.c: Likewise.
17172         * tests/unictype/test-categ_S.c: Likewise.
17173         * tests/unictype/test-categ_Sc.c: Likewise.
17174         * tests/unictype/test-categ_So.c: Likewise.
17175         * tests/unictype/test-ctype_alnum.c: Likewise.
17176         * tests/unictype/test-ctype_alpha.c: Likewise.
17177         * tests/unictype/test-ctype_graph.c: Likewise.
17178         * tests/unictype/test-ctype_lower.c: Likewise.
17179         * tests/unictype/test-ctype_print.c: Likewise.
17180         * tests/unictype/test-ctype_punct.c: Likewise.
17181         * tests/unictype/test-ctype_upper.c: Likewise.
17182         * tests/unictype/test-decdigit.h: Likewise.
17183         * tests/unictype/test-digit.h: Likewise.
17184         * tests/unictype/test-numeric.h: Likewise.
17185         * tests/unictype/test-pr_alphabetic.c: Likewise.
17186         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17187         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17188         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17189         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17190         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17191         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17192         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17193         * tests/unictype/test-pr_combining.c: Likewise.
17194         * tests/unictype/test-pr_composite.c: Likewise.
17195         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17196         * tests/unictype/test-pr_dash.c: Likewise.
17197         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17198         * tests/unictype/test-pr_deprecated.c: Likewise.
17199         * tests/unictype/test-pr_diacritic.c: Likewise.
17200         * tests/unictype/test-pr_extender.c: Likewise.
17201         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17202         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17203         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17204         * tests/unictype/test-pr_id_continue.c: Likewise.
17205         * tests/unictype/test-pr_id_start.c: Likewise.
17206         * tests/unictype/test-pr_ideographic.c: Likewise.
17207         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17208         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17209         * tests/unictype/test-pr_lowercase.c: Likewise.
17210         * tests/unictype/test-pr_numeric.c: Likewise.
17211         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17212         * tests/unictype/test-pr_punctuation.c: Likewise.
17213         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17214         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17215         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17216         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17217         * tests/unictype/test-pr_uppercase.c: Likewise.
17218         * tests/unictype/test-pr_xid_continue.c: Likewise.
17219         * tests/unictype/test-pr_xid_start.c: Likewise.
17220         * tests/unictype/test-pr_zero_width.c: Likewise.
17221         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17222         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17223         changed behaviour: line breaking is now disallowed between a letter
17224         or '=' and '('.
17225         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17226         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17227         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17228         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17229         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17230         lib/uniwidth/width.c.
17231         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17232         without comments, but with the original copyright notice.
17233         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17234         changes.
17235         * lib/unictype/categ_Cc.h: Likewise.
17236         * lib/unictype/categ_Co.h: Likewise.
17237         * lib/unictype/categ_Cs.h: Likewise.
17238         * lib/unictype/categ_Lt.h: Likewise.
17239         * lib/unictype/categ_Me.h: Likewise.
17240         * lib/unictype/categ_Pc.h: Likewise.
17241         * lib/unictype/categ_Pe.h: Likewise.
17242         * lib/unictype/categ_Pf.h: Likewise.
17243         * lib/unictype/categ_Pi.h: Likewise.
17244         * lib/unictype/categ_Ps.h: Likewise.
17245         * lib/unictype/categ_Sk.h: Likewise.
17246         * lib/unictype/categ_Sm.h: Likewise.
17247         * lib/unictype/categ_Z.h: Likewise.
17248         * lib/unictype/categ_Zl.h: Likewise.
17249         * lib/unictype/categ_Zp.h: Likewise.
17250         * lib/unictype/categ_Zs.h: Likewise.
17251         * lib/unictype/ctype_blank.h: Likewise.
17252         * lib/unictype/ctype_cntrl.h: Likewise.
17253         * lib/unictype/ctype_digit.h: Likewise.
17254         * lib/unictype/ctype_space.h: Likewise.
17255         * lib/unictype/ctype_xdigit.h: Likewise.
17256         * lib/unictype/mirror.h: Likewise.
17257         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17258         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17259         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17260         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17261         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17262         * lib/unictype/pr_bidi_control.h: Likewise.
17263         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17264         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17265         * lib/unictype/pr_bidi_pdf.h: Likewise.
17266         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17267         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17268         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17269         * lib/unictype/pr_format_control.h: Likewise.
17270         * lib/unictype/pr_hex_digit.h: Likewise.
17271         * lib/unictype/pr_hyphen.h: Likewise.
17272         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17273         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17274         * lib/unictype/pr_iso_control.h: Likewise.
17275         * lib/unictype/pr_join_control.h: Likewise.
17276         * lib/unictype/pr_left_of_pair.h: Likewise.
17277         * lib/unictype/pr_line_separator.h: Likewise.
17278         * lib/unictype/pr_math.h: Likewise.
17279         * lib/unictype/pr_non_break.h: Likewise.
17280         * lib/unictype/pr_not_a_character.h: Likewise.
17281         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17282         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17283         * lib/unictype/pr_other_id_continue.h: Likewise.
17284         * lib/unictype/pr_other_id_start.h: Likewise.
17285         * lib/unictype/pr_other_lowercase.h: Likewise.
17286         * lib/unictype/pr_other_math.h: Likewise.
17287         * lib/unictype/pr_other_uppercase.h: Likewise.
17288         * lib/unictype/pr_paired_punctuation.h: Likewise.
17289         * lib/unictype/pr_paragraph_separator.h: Likewise.
17290         * lib/unictype/pr_pattern_syntax.h: Likewise.
17291         * lib/unictype/pr_pattern_white_space.h: Likewise.
17292         * lib/unictype/pr_private_use.h: Likewise.
17293         * lib/unictype/pr_quotation_mark.h: Likewise.
17294         * lib/unictype/pr_radical.h: Likewise.
17295         * lib/unictype/pr_soft_dotted.h: Likewise.
17296         * lib/unictype/pr_space.h: Likewise.
17297         * lib/unictype/pr_titlecase.h: Likewise.
17298         * lib/unictype/pr_variation_selector.h: Likewise.
17299         * lib/unictype/pr_white_space.h: Likewise.
17300         * lib/unictype/sy_c_ident.h: Likewise.
17301         * lib/unictype/sy_c_whitespace.h: Likewise.
17302         * lib/unictype/sy_java_whitespace.h: Likewise.
17303         * modules/uni*/*: Bump version number of expected libunistring version.
17304         Reported by Simon Josefsson.
17305
17306 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17307
17308         useless-if-before-free: fix typo in --help and make the internal,
17309         automatic version date update process work once again.
17310         --help output contained a NUL character instead of the
17311         backslash-zero that was intended.  Also, the "must lie within
17312         the first 8 lines" line is on line 9, and hence not getting
17313         automatically updated.
17314         * build-aux/useless-if-before-free: Fix the former by adding a
17315         backslash, and the latter by condensing the three lines of what-it-does
17316         to a single line, leaving one line of slack for the future.
17317
17318 2011-01-09  Bruno Haible  <bruno@clisp.org>
17319
17320         uniwidth/width: Fix width of U+1D173..U+1D17A.
17321         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17322         symbolic_width, output_width_property_test): New functions.
17323         (main): Invoke output_nonspacing_property, output_width_property_test.
17324         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17325         U+1D173..U+1D17A.
17326         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17327         1.
17328         * modules/uniwidth/*: Bump version number of expected libunistring
17329         version.
17330         * modules/unilbrk/*: Likewise.
17331
17332 2011-01-08  Bruno Haible  <bruno@clisp.org>
17333
17334         uninorm tests: Preserve copyright of Unicode data file.
17335         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17336         Mention modifications.
17337
17338 2011-01-08  Bruno Haible  <bruno@clisp.org>
17339
17340         gen-uni-tables: Prepare for Unicode 5.2.0.
17341         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17342         (debug_output_lbp, output_lbp): Update.
17343
17344 2011-01-08  Bruno Haible  <bruno@clisp.org>
17345
17346         unilbrk: Clarify gen-uni-tables.c code.
17347         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17348         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17349         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17350
17351 2011-01-07  Bruno Haible  <bruno@clisp.org>
17352
17353         strtod: Restore errno when successfully parsing Infinity or NaN.
17354         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17355         restore the original errno.
17356
17357 2011-01-07  Bruno Haible  <bruno@clisp.org>
17358
17359         remove test: Avoid failure on HP-UX 11.
17360         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17361
17362 2011-01-07  Bruno Haible  <bruno@clisp.org>
17363
17364         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17365         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17366         error code.
17367
17368 2011-01-07  Pádraig Brady <P@draigBrady.com>
17369
17370         ignore-value: fixup comments, and add Eric Blake
17371         as an author since he rewrote the macros.
17372         * lib/ignore-value.h (ignore_value):  State that
17373         we now support aggregates.  Also specify exactly
17374         when the GCC warn_unused_result feature was added.
17375
17376 2011-01-06  Eric Blake  <eblake@redhat.com>
17377
17378         ignore-value: support aggregate types
17379         * lib/ignore-value.h (ignore_value): Provide separate gcc
17380         definition.
17381         * modules/ignore-value-tests: New test module.
17382         * tests/test-ignore-value.c: New test.
17383
17384         maint.mk: improve sc_prohibit_strcmp regex
17385         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17386         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17387         definition of STRNEQ.
17388
17389         signal: work around Haiku issue with SIGBUS
17390         * lib/siglist.h: Add comment.
17391         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17392         strsignal's favoring of SIGSEGV.
17393         * tests/test-signal.c (main): Avoid test failure.
17394         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17395         Reported by Scott McCreary.
17396
17397         maint.mk: add pre-release check to ensure submodule commits are public
17398         * top/maint.mk (public-submodule-commit): New rule.
17399         (submodule-checks): New variable.
17400         (alpha beta stable): Depend on the variable.
17401
17402 2011-01-05  Pádraig Brady <P@draigBrady.com>
17403         and Jim Meyering  <meyering@redhat.com>
17404
17405         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17406         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17407         (ATTRIBUTE_DEPRECATED): Define.
17408         (_ignore_case): New function.
17409         (ignore_value): New macro, to replace the old function.
17410         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17411         * modules/ignore-value (Depends-on): Add stdint.
17412
17413 2011-01-04  Eric Blake  <eblake@redhat.com>
17414
17415         doc: regenerate INSTALL
17416         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17417         @firstparagraphindent support, now that autoconf dropped it.
17418         (INSTALL_PRELUDE): Reinstate old macro.
17419         * doc/install.texi: Resync from autoconf.
17420         * doc/INSTALL: Reflect recent autoconf update.
17421         * doc/INSTALL.ISO: Likewise.
17422         * doc/INSTALL.UTF-8: Likewise.
17423         Reported by Karl Berry.
17424
17425 2011-01-04  Bruce Korb  <address@hidden>
17426
17427         git-version-gen: avoid a sub-shell
17428         * build-aux/git-version-gen: Redirect stderr in `...` via
17429         "exec 2>...", rather than via an added sub-shell.
17430
17431 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17432
17433         git-version-gen: use (...) rather than sh -c '...'
17434         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17435         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17436
17437 2011-01-03  Jim Meyering  <meyering@redhat.com>
17438
17439         git-version-gen: convert leading TABs to spaces
17440         * build-aux/git-version-gen: Expand leading TABs.
17441
17442         git-version-gen: handle failed "git rev-list"
17443         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17444         from git and proceeding as if it had succeeded but printed no SHA1
17445         checksums, suppress the diagnostic and handle the failure.
17446         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17447
17448         git-version-gen: include command name in one more diagnostic
17449         * build-aux/git-version-gen: When the required .tarball-version file
17450         was missing or unreadable, you might see the diagnostic from "cat",
17451         but no trace of the name of the invoking script.  Now, you still see
17452         the diagnostic from cat, but also get one from "git-version-gen: ".
17453         Inspired by a patch from Bruce Korb.
17454
17455         update-copyright: adjust test to match changed code
17456         * tests/test-update-copyright.sh: Change test's expected output
17457         to match new actual output.
17458
17459 2011-01-02  Bruno Haible  <bruno@clisp.org>
17460
17461         getlogin_r: Avoid test failure on HP-UX 11.
17462         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17463         ERANGE when the second argument is zero.
17464         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17465         portability problem.
17466
17467 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17468
17469         * build-aux/update-copyright: doc Simon's changes
17470
17471 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17472
17473         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17474         environment variable.
17475
17476 2011-01-02  Bruno Haible  <bruno@clisp.org>
17477
17478         unigbrk: Avoid gcc warnings.
17479         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17480         unused variable.
17481         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17482         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17483         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17484         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17485         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17486         Change type of first argument to 'const char *'.
17487         (main): Remove unused variable.
17488         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17489         type of first argument to 'const char *'.
17490         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17491         Likewise.
17492         (main): Change type of variable 's'.
17493         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17494         to 'int'.
17495
17496 2011-01-02  Bruno Haible  <bruno@clisp.org>
17497
17498         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17499         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17500         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17501         bug.
17502         * lib/pwrite.c: Undo 2010-12-31 patch.
17503         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17504
17505 2011-01-02  Bruno Haible  <bruno@clisp.org>
17506
17507         pread: Fix test whether it works.
17508         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17509
17510 2011-01-02  Bruno Haible  <bruno@clisp.org>
17511
17512         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17513         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17514         ends in "6". Don't require a specific month name. Try also the locale
17515         names found on HP-UX 11 and Solaris 7.
17516
17517 2011-01-02  Bruno Haible  <bruno@clisp.org>
17518
17519         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17520         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17521         C linkage.
17522         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17523
17524 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17525
17526         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17527         for consistency, since the "cluster" term is not used elsewhere.
17528         * lib/unigbrk.in.h: Update name.
17529         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17530         * lib/unigbrk/u16-grapheme-next.c: Update name.
17531         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17532         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17533         * lib/unigbrk/u32-grapheme-next.c: Update name.
17534         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17535         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17536         * lib/unigbrk/u8-grapheme-next.c: Update name.
17537         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17538         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17539         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17540         Suggested by Bruno Haible.
17541
17542 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17543
17544         Remove module 'u8-grapheme-len' as too redundant with
17545         'u8-grapheme-next'.
17546         * modules/unigbrk/u8-grapheme-len: Delete file.
17547         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17548         * lib/unigbrk.in.h: Remove prototype for deleted function.
17549         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17550         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17551
17552         Remove module 'u16-grapheme-len' as too redundant with
17553         'u16-grapheme-next'.
17554         * modules/unigbrk/u16-grapheme-len: Delete file.
17555         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17556         * lib/unigbrk.in.h: Remove prototype for deleted function.
17557         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17558         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17559
17560         Remove module 'u32-grapheme-len' as too redundant with
17561         'u32-grapheme-next'.
17562         * modules/unigbrk/u32-grapheme-len: Delete file.
17563         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17564         * lib/unigbrk.in.h: Remove prototype for deleted function.
17565         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17566         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17567
17568         Suggested by Bruno Haible.
17569
17570 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17571
17572         * unigbrk.in.h: Fix typo: "ben" => "been".
17573         Reported by Bruno Haible.
17574
17575 2011-01-01  Jim Meyering  <meyering@redhat.com>
17576
17577         maint: update almost all copyright ranges to include 2011
17578         Run the new "make update-copyright" rule.
17579
17580 2011-01-01  Jim Meyering  <meyering@redhat.com>
17581
17582         maint: update-copyright: exempt doc/INSTALL*
17583         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17584         since they are generated.  Suggested by Bruno Haible.
17585
17586 2011-01-01  Jim Meyering  <meyering@redhat.com>
17587
17588         maint: refine the update-copyright rule
17589         * Makefile (update-copyright): Also exclude any file that includes
17590         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17591         code that merely generates the comment.
17592
17593 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17594
17595         New module 'u8-grapheme-len'.
17596         * modules/unigbrk/u8-grapheme-len: New file.
17597         * modules/unigbrk/u8-grapheme-len-tests: New file.
17598         * lib/unigbrk.in.h: Add prototype for new function.
17599         * lib/unigbrk/u8-grapheme-len.c: New file.
17600         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17601
17602         New module 'u16-grapheme-len'.
17603         * modules/unigbrk/u16-grapheme-len: New file.
17604         * modules/unigbrk/u16-grapheme-len-tests: New file.
17605         * lib/unigbrk.in.h: Add prototype for new function.
17606         * lib/unigbrk/u16-grapheme-len.c: New file.
17607         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17608
17609         New module 'u32-grapheme-len'.
17610         * modules/unigbrk/u32-grapheme-len: New file.
17611         * modules/unigbrk/u32-grapheme-len-tests: New file.
17612         * lib/unigbrk.in.h: Add prototype for new function.
17613         * lib/unigbrk/u32-grapheme-len.c: New file.
17614         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17615
17616         New module 'u8-grapheme-next'.
17617         * modules/unigbrk/u8-grapheme-next: New file.
17618         * modules/unigbrk/u8-grapheme-next-tests: New file.
17619         * lib/unigbrk.in.h: Add prototype for new function.
17620         * lib/unigbrk/u8-grapheme-next.c: New file.
17621         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17622
17623         New module 'u16-grapheme-next'.
17624         * modules/unigbrk/u16-grapheme-next: New file.
17625         * modules/unigbrk/u16-grapheme-next-tests: New file.
17626         * lib/unigbrk.in.h: Add prototype for new function.
17627         * lib/unigbrk/u16-grapheme-next.c: New file.
17628         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17629
17630         New module 'u32-grapheme-next'.
17631         * modules/unigbrk/u32-grapheme-next: New file.
17632         * modules/unigbrk/u32-grapheme-next-tests: New file.
17633         * lib/unigbrk.in.h: Add prototype for new function.
17634         * lib/unigbrk/u32-grapheme-next.c: New file.
17635         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17636
17637         New module 'u8-grapheme-prev'.
17638         * modules/unigbrk/u8-grapheme-prev: New file.
17639         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17640         * lib/unigbrk.in.h: Add prototype for new function.
17641         * lib/unigbrk/u8-grapheme-prev.c: New file.
17642         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17643
17644         New module 'u16-grapheme-prev'.
17645         * modules/unigbrk/u16-grapheme-prev: New file.
17646         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17647         * lib/unigbrk.in.h: Add prototype for new function.
17648         * lib/unigbrk/u16-grapheme-prev.c: New file.
17649         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17650
17651         New module 'u32-grapheme-prev'.
17652         * modules/unigbrk/u32-grapheme-prev: New file.
17653         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17654         * lib/unigbrk.in.h: Add prototype for new function.
17655         * lib/unigbrk/u32-grapheme-prev.c: New file.
17656         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17657
17658         New module 'u8-grapheme-breaks'.
17659         * modules/unigbrk/u8-grapheme-breaks: New file.
17660         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17661         * lib/unigbrk.in.h: Add prototype for new function.
17662         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17663         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17664
17665         New module 'u16-grapheme-breaks'.
17666         * modules/unigbrk/u16-grapheme-breaks: New file.
17667         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17668         * lib/unigbrk.in.h: Add prototype for new function.
17669         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17670         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17671
17672         New module 'u32-grapheme-breaks'.
17673         * modules/unigbrk/u32-grapheme-breaks: New file.
17674         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17675         * lib/unigbrk.in.h: Add prototype for new function.
17676         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17677         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17678
17679         New module 'ulc-grapheme-breaks'.
17680         * modules/unigbrk/ulc-grapheme-breaks: New file.
17681         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17682         * m4/locale-ar.m4: New file.
17683         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17684         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17685         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17686
17687 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17688
17689         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17690         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17691         modified how this file was generated before I initially submitted
17692         the module, but failed to regenerate it.  This meant that several
17693         of the level2 entries were wrong.
17694         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17695         Remove the division-by-2 that is folded into the table now that
17696         gbrkprop.h has been regenerated properly.  Now -1 entries are
17697         handled correctly.
17698
17699         New module 'unigbrk/uc-gbrk-prop-tests'.
17700         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17701         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17702         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17703         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17704
17705 2011-01-01  Bruno Haible  <bruno@clisp.org>
17706
17707         Avoid use of hexadecimal escapes.
17708         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17709         instead of hexadecimal escapes.
17710
17711 2011-01-01  Jim Meyering  <meyering@redhat.com>
17712
17713         maint: new rule to update copyright year ranges
17714         * Makefile (update-copyright): New rule.
17715
17716         maint: indent with TABs in Makefile
17717         * Makefile: Expand leading sequences of spaces to TABs
17718
17719         version-etc: update the copyright year it reports
17720         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17721
17722 2010-12-31  Bruno Haible  <bruno@clisp.org>
17723
17724         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17725         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17726         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17727         zero.
17728
17729 2010-12-31  Bruno Haible  <bruno@clisp.org>
17730
17731         pwrite: Work around HP-UX 11.11 bug.
17732         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17733         works and set REPLACE_PWRITE if not.
17734         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17735         function.
17736         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17737
17738 2010-12-31  Bruno Haible  <bruno@clisp.org>
17739
17740         pread: Work around HP-UX 11 bugs.
17741         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17742         and set REPLACE_PREAD if not.
17743         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17744
17745 2010-12-31  Eric Blake  <eblake@redhat.com>
17746
17747         nl_langinfo: fix YESEXPR on Irix 6.5
17748         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17749         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17750         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17751         it.
17752
17753 2010-12-31  Bruno Haible  <bruno@clisp.org>
17754
17755         iconv: Document HP-UX 11 bug.
17756         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17757
17758 2010-12-31  Bruno Haible  <bruno@clisp.org>
17759
17760         ldexpl: Fix link error on HP-UX 11.
17761         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17762         LDEXPL_LIBM, using $ISNANL_LIBM.
17763
17764 2010-12-31  Eric Blake  <eblake@redhat.com>
17765
17766         ftello: avoid compilation failure with SunStudio c89
17767         * lib/ftello.c (ftello): Use lseek, not llseek.
17768
17769         tests: avoid failing coreutils tests on cygwin
17770         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17771         (create_exe_shims_): Return 0 when skipping.
17772
17773 2010-12-31  Bruno Haible  <bruno@clisp.org>
17774
17775         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17776         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17777
17778 2010-12-31  Bruno Haible  <bruno@clisp.org>
17779
17780         waitpid: Fix link error in C++ mode.
17781         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17782
17783 2010-12-31  Bruno Haible  <bruno@clisp.org>
17784
17785         isnan: Use GCC built-ins when possible.
17786         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17787         __builtin_isnan.
17788         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17789         (isnan): Define using GCC built-ins for GCC >= 4.0.
17790
17791 2010-12-31  Bruno Haible  <bruno@clisp.org>
17792
17793         isnand: Fix mistake.
17794         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17795         __builtin_isnand.
17796
17797 2010-12-31  Bruno Haible  <bruno@clisp.org>
17798
17799         open: Avoid C++ error on HP-UX 11.
17800         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17801
17802 2010-12-31  Bruno Haible  <bruno@clisp.org>
17803
17804         time_r: Add missing declarations on HP-UX 11.
17805         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17806         instead of HAVE_LOCALTIME_R.
17807         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17808         HAVE_LOCALTIME_R always.
17809         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17810         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17811         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17812         HAVE_LOCALTIME_R.
17813         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17814         * doc/posix-functions/localtime_r.texi: Likewise.
17815
17816 2010-12-29  Eric Blake  <eblake@redhat.com>
17817
17818         mountlist: tweak previous commit
17819         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17820         Reported by Paul Eggert.
17821
17822         mountlist: fix local drive detection on cygwin
17823         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17824         that works for cygwin.
17825
17826 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17827
17828         ftoastr, snprintf: ftoastr + snprintf module
17829         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17830         since the snprintf module now should be good enough here.
17831         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17832         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17833         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17834         GNULIB_SNPRINTF only for the test directory, and the latter
17835         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17836         seems to suffice by itself.
17837
17838 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17839
17840         alloca: one step towards thread-safety
17841         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17842         need for a static variable.  All callers changed.  This does not
17843         make the alloca replacement thread-safe, but it's one step.
17844
17845         tests: minor indenting change
17846         * tests/init.sh: Sync from coreutils housekeeping patch
17847         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17848         to keep lines within 80 columns.
17849
17850 2010-12-28  Jim Meyering  <meyering@redhat.com>
17851
17852         regex: don't infloop on persistent failing calloc
17853         * lib/regexec.c (build_trtable): Return failure indication upon
17854         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17855         In glibc, this was fixed for version 2.13:
17856         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17857
17858 2010-12-28  Bruno Haible  <bruno@clisp.org>
17859             Paul Eggert <eggert@cs.ucla.edu>
17860
17861         linkat: Make implementation robust against system behaviour variations.
17862         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17863         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17864         way, and to -2 if it needs a generic runtime test.
17865         * lib/linkat.c (solaris_optimized_link_immediate,
17866         solaris_optimized_link_follow): New functions.
17867         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17868         (check_same_link): Use it.
17869
17870 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17871
17872         New module 'unigbrk/base'.
17873         * modules/unigbrk/base: New file.
17874         * lib/unigbrk.in.h: New file.
17875
17876         New module 'unigbrk/uc-gbrk-prop'.
17877         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17878         * modules/unigbrk/uc-gbrk-prop: New file.
17879         * lib/unigbrk/gbrkprop.h: New file.
17880         * lib/unigbrk/uc-gbrk-prop.c: New file.
17881
17882         New module 'unigbrk/uc-is-grapheme-break'.
17883         * modules/unigbrk/uc-is-grapheme-break: New file.
17884         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17885         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17886         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17887         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17888         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17889
17890         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17891
17892 2010-12-27  Bruno Haible  <bruno@clisp.org>
17893
17894         linkat test: Avoid failure on Solaris 11 2010-11.
17895         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17896
17897 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17898
17899         utimens: work around glibc rounding bug on more platforms
17900         * lib/utimens.c (fdutimens): Work around rounding bug even if
17901         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17902         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17903
17904 2010-12-27  Bruno Haible  <bruno@clisp.org>
17905
17906         select tests: Improve comments.
17907         * tests/test-select.c (do_select): Add comments.
17908
17909 2010-12-27  Bruno Haible  <bruno@clisp.org>
17910
17911         select tests: Safer way of handling timeout.
17912         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17913         at every invocation.
17914
17915 2010-12-27  Bruno Haible  <bruno@clisp.org>
17916
17917         select tests: Use 'bool' where appropriate.
17918         * tests/test-select.c (connect_to_socket): Change argument type to
17919         'bool'.
17920
17921 2010-12-27  Bruno Haible  <bruno@clisp.org>
17922
17923         select tests: Use existing modules.
17924         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17925         (configure.ac): Don't test for unistd.h.
17926         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17927         declared in <unistd.h>.
17928
17929 2010-12-27  Bruno Haible  <bruno@clisp.org>
17930
17931         mbrtowc: Work around a Solaris 7 bug.
17932         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17933         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17934         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17935         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17936         MBRTOWC_NULL_ARG1_BUG.
17937         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17938         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17939         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17940         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17941
17942 2010-12-27  Jim Meyering  <meyering@redhat.com>
17943
17944         read-file.c: tweak syntax
17945         * lib/read-file.c (fread_file): Remove space after "*" in function
17946         definitions.
17947
17948 2010-12-27  Bruno Haible  <bruno@clisp.org>
17949
17950         times test: Avoid gcc warnings on OSF/1.
17951         * tests/test-times.c (main): Cast printf arguments from clock_t to
17952         'long int'.
17953
17954 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17955
17956         utimens: work around glibc rounding bug on older Linux kernels
17957         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17958         on Linux with a glibc whose utimes might not work, then work
17959         around a longstanding glibc bug involving rounding rather than
17960         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17961         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17962
17963 2010-12-26  Bruno Haible  <bruno@clisp.org>
17964
17965         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17966         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17967         _GL_CXXALIAS_SYS.
17968         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17969
17970 2010-12-26  Bruno Haible  <bruno@clisp.org>
17971
17972         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17973         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17974         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17975         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17976         looking for the declaration.
17977         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17978         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17979         problem.
17980         * doc/posix-functions/inet_pton.texi: Likewise.
17981
17982 2010-12-26  Bruno Haible  <bruno@clisp.org>
17983
17984         arpa_inet: Use the common idioms with C++ support.
17985         * lib/arpa_inet.in.h: Include c++defs.h.
17986         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17987         support.
17988         * modules/arpa_inet (Depends-on): Add c++defs.
17989         (Makefile.am): Substitute the contents of c++defs.h.
17990         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17991         * modules/arpa_inet-c++-tests: New file.
17992         * tests/test-arpa_inet-c++.cc: New file.
17993
17994 2010-12-25  Bruno Haible  <bruno@clisp.org>
17995
17996         Fix more C++ link errors on Solaris 8.
17997         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17998         $(LIB_EACCESS).
17999         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18000         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18001         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18002         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18003         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18004
18005 2010-12-25  Bruno Haible  <bruno@clisp.org>
18006
18007         printf-posix: Fix link error when a non-GCC compiler is used.
18008         * lib/stdio.in.h (printf): When not using GCC, override printf
18009         correctly.
18010         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18011
18012 2010-12-25  Bruno Haible  <bruno@clisp.org>
18013
18014         strerror_r-posix: Update doc.
18015         * doc/posix-functions/strerror_r.texi: Update doc about the return
18016         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18017
18018 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18019
18020         utimens: simplify the logic of the previous change
18021         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18022         This should not affect whether the test succeeds or fails.
18023
18024         utimens: configure better on hosts with NFS clock skew
18025         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18026         uses the clock of the local host.  It might use the clock of the
18027         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18029
18030 2010-12-25  Bruno Haible  <bruno@clisp.org>
18031
18032         ptsname test: Avoid failure on Solaris.
18033         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18034         open a pseudo-terminal; don't use BSD-style ptys.
18035         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18036
18037 2010-12-25  Bruno Haible  <bruno@clisp.org>
18038
18039         ptsname: Avoid ERANGE failure on some systems.
18040         * lib/ptsname.c (buffer): Increase size.
18041
18042 2010-12-25  Bruno Haible  <bruno@clisp.org>
18043
18044         rename, renameat: Avoid test failures at NFS mounted locations.
18045         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18046         so that subsequent mkdir calls succeed.
18047
18048 2010-12-25  Bruno Haible  <bruno@clisp.org>
18049
18050         iswblank: Fix C++ link error on Solaris 8.
18051         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18052         _GL_FUNCDECL_SYS.
18053
18054 2010-12-25  Bruno Haible  <bruno@clisp.org>
18055
18056         unistd: Fix C++ link error on Solaris 8.
18057         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18058
18059 2010-12-25  Bruno Haible  <bruno@clisp.org>
18060
18061         readlink doc: Mention an old glibc bug.
18062         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18063
18064 2010-12-25  Bruno Haible  <bruno@clisp.org>
18065
18066         fcntl-h: Fix for use of C++ on glibc systems.
18067         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18068         also on glibc systems in C++ mode.
18069         Reported by Gary V. Vaughan <gary@gnu.org>.
18070
18071 2010-12-25  Bruno Haible  <bruno@clisp.org>
18072
18073         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18074         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18075
18076 2010-12-25  Bruno Haible  <bruno@clisp.org>
18077
18078         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18079         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18080         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18081         test whether truncl works according to ISO C 99 with IEC 60559.
18082         * m4/truncl-ieee.m4: New file.
18083         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18084         m4/signbit.m4.
18085         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18086
18087 2010-12-25  Bruno Haible  <bruno@clisp.org>
18088
18089         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18090         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18091         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18092         test whether ceill works according to ISO C 99 with IEC 60559.
18093         * m4/ceill-ieee.m4: New file.
18094         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18095         m4/signbit.m4.
18096         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18097
18098 2010-12-25  Bruno Haible  <bruno@clisp.org>
18099
18100         Ensure all prerequisites of <wchar.h> are included.
18101         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18102         before <wchar.h>.
18103         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18104         gl_MBRLEN_NUL_RETVAL): Likewise.
18105         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18106         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18107         AC_FUNC_MBRTOWC): Likewise.
18108         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18109         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18110         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18111         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18112         Likewise.
18113         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18114         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18115         (gl_WCHAR_H): Improve comments.
18116         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18117
18118 2010-12-25  Bruno Haible  <bruno@clisp.org>
18119
18120         strtok_r: Fix C syntax error in autoconf macro.
18121         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18122         characters in test program.
18123
18124 2010-12-24  Bruno Haible  <bruno@clisp.org>
18125
18126         ceil, trunc, round: Fix gcc warnings.
18127         * lib/ceil.c (MIN): Undefine before redefining.
18128         * lib/trunc.c (MIN): Likewise.
18129         * lib/round.c (MIN): Likewise.
18130         Include <math.h> first.
18131
18132 2010-12-24  Bruno Haible  <bruno@clisp.org>
18133
18134         select tests: Avoid failures on OSF/1 5.1.
18135         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18136         failure of closing the last socket; it may fail with ECONNRESET.
18137
18138 2010-12-24  Eric Blake  <eblake@redhat.com>
18139
18140         stdint: avoid HP-UX 10.20 preprocessor bug
18141         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18142         than #if.
18143         * tests/test-floor2.c (main): Likewise.
18144         Reported by Peter O'Gorman.
18145
18146         pipe: make obsoletion transition easier
18147         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18148         * modules/pipe (Files): Include revived file.
18149         (Include): Drop reference, to mirror getdate's behavior.
18150
18151 2010-12-24  Bruno Haible  <bruno@clisp.org>
18152
18153         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18154         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18155         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18156         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18157
18158 2010-12-24  Bruno Haible  <bruno@clisp.org>
18159
18160         gethostname: Ensure declaration on NonStop Kernel.
18161         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18162         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18163
18164 2010-12-24  Bruno Haible  <bruno@clisp.org>
18165
18166         sys_select: Ensure all necessary types on NonStop Kernel.
18167         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18168         include <sys/time.h>.
18169         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18170         NonStop Kernel.
18171         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18172
18173 2010-12-24  Bruno Haible  <bruno@clisp.org>
18174
18175         sys_select: Remove unneeded include.
18176         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18177         have <sys/select.h>.
18178
18179 2010-12-24  Bruno Haible  <bruno@clisp.org>
18180
18181         gethostname: Provide a fallback for HOST_NAME_MAX.
18182         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18183         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18184         instead.
18185         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18186
18187 2010-12-24  Bruno Haible  <bruno@clisp.org>
18188
18189         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18190         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18191         (SA_RESTART): Likewise.
18192         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18193
18194 2010-12-24  Bruno Haible  <bruno@clisp.org>
18195
18196         signal: Define NSIG.
18197         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18198         * tests/test-signal.c (nsig): New variable.
18199         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18200
18201 2010-12-24  Bruno Haible  <bruno@clisp.org>
18202
18203         rename, renameat: Avoid test failures on OSF/1 5.1.
18204         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18205         alternative error codes.
18206         * tests/test-renameat.c (main): Likewise.
18207
18208 2010-12-24  Bruno Haible  <bruno@clisp.org>
18209
18210         *printf: Detect large precisions bug on Solaris 10/SPARC.
18211         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18212         by Paul Eggert.
18213         * tests/test-snprintf-posix.h (test_function): Add this test code here
18214         too.
18215         * tests/test-sprintf-posix.h (test_function): Likewise.
18216         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18217         * tests/test-vasprintf-posix.c (test_function): Likewise.
18218         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18219         around by gnulib.
18220         * doc/posix-functions/printf.texi: Likewise.
18221         * doc/posix-functions/snprintf.texi: Likewise.
18222         * doc/posix-functions/sprintf.texi: Likewise.
18223         * doc/posix-functions/vfprintf.texi: Likewise.
18224         * doc/posix-functions/vprintf.texi: Likewise.
18225         * doc/posix-functions/vsnprintf.texi: Likewise.
18226         * doc/posix-functions/vsprintf.texi: Likewise.
18227         * doc/posix-functions/dprintf.texi: Undo last commit.
18228         * doc/posix-functions/vdprintf.texi: Likewise.
18229
18230 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18231
18232         tests: port test-fdutimensat.c to Solaris 8
18233         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18234         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18235         On Solaris 8, it fails with errno == ENOSYS, because there is no
18236         futimens (so it can't use the fd), and there is no lutimens (so it
18237         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18238
18239         vsnprintf: make more consistent with snprintf; doc fixes
18240
18241         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18242         the byte count return problem was promoted from the snprintf-posix
18243         to the snprintf module.
18244         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18245         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18246         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18247         * tests/test-snprintf.c (main): Check the byte count returned.
18248         * tests/test-vsnprintf.c (main): Likewise.
18249
18250 2010-12-23  Eric Blake  <eblake@redhat.com>
18251
18252         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18253         * modules/sigpipe (License): Relax license.
18254
18255 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18256
18257         doc: document Solaris printf bug with large float precisions
18258         * doc/posix-functions/dprintf.texi (dprintf):
18259         * doc/posix-functions/fprintf.texi (fprintf):
18260         * doc/posix-functions/printf.texi (printf):
18261         * doc/posix-functions/snprintf.texi (snprintf):
18262         * doc/posix-functions/sprintf.texi (sprintf):
18263         * doc/posix-functions/vdprintf.texi (vdprintf):
18264         * doc/posix-functions/vfprintf.texi (vfprintf):
18265         * doc/posix-functions/vprintf.texi (vprintf):
18266         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18267         * doc/posix-functions/vsprintf.texi (vsprintf):
18268         Mention that these functions mishandle large floating point
18269         precisions on Solaris 10.  The same bug is also present in Solaris
18270         8, and I assume earlier.  This causes "cd gnulib-tests; make
18271         check" to fail on Solaris 8 (and I assume, later) when building
18272         the latest coreutils, in test-vasprintf-posix's call to
18273         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18274         the wide flavors (e.g., wprintf) so this patch just updates the
18275         documentation for the narrow ones.
18276
18277         test-posixtm.c: add two tests
18278         * tests/test-posixtm.c: Add two tests, to highlight the
18279         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18280         around this bug; this is merely to document it.
18281
18282 2010-12-22  Bruno Haible  <bruno@clisp.org>
18283
18284         getlogin_r: Work around portability problem on OSF/1.
18285         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18286         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18287         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18288         test for a truncated result.
18289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18290         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18291         * modules/getlogin_r (Depends-on): Add memchr.
18292         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18293
18294 2010-12-22  Bruno Haible  <bruno@clisp.org>
18295
18296         ptsname: Avoid test failure on OSF/1 5.1.
18297         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18298         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18299         (same_slave): New function.
18300         (main): Use it to compare ptsname's result with the expected file name.
18301
18302 2010-12-22  Bruno Haible  <bruno@clisp.org>
18303
18304         Port extended stdio modules to HP NonStop Kernel.
18305         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18306         macros.
18307         * lib/fbufmode.c: Update comments.
18308         * lib/fflush.c: Likewise.
18309         * lib/fpurge.c: Likewise.
18310         * lib/freadable.c: Likewise.
18311         * lib/freadahead.c: Likewise.
18312         * lib/freading.c: Likewise.
18313         * lib/freadptr.c: Likewise.
18314         * lib/freadseek.c: Likewise.
18315         * lib/fseeko.c: Likewise.
18316         * lib/fseterr.c: Likewise.
18317         * lib/fwritable.c: Likewise.
18318         * lib/fwriting.c: Likewise.
18319         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18320
18321 2010-12-22  Bruno Haible  <bruno@clisp.org>
18322
18323         ttyname_r: Work around bug on OSF/1 5.1.
18324         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18325         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18326         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18327         present.
18328         * lib/ttyname_r.c (ttyname_r): Update comments.
18329
18330 2010-12-22  Bruno Haible  <bruno@clisp.org>
18331
18332         round: Implement result sign according to IEEE 754.
18333         * lib/round.c (MIN, MINUS_ZERO): New macros.
18334         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18335         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18336         * tests/test-round-ieee.c (main): Likewise.
18337         * tests/test-roundl-ieee.c (main): Likewise.
18338
18339         trunc: Implement result sign according to IEEE 754.
18340         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18341         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18342         * tests/test-trunc2.c: Include minus-zero.h.
18343         (MINUS_ZERO): New macro.
18344         (trunc_reference): Keep in sync with lib/trunc.c.
18345         * tests/test-truncf2.c: Include minus-zero.h.
18346         (MINUS_ZERO): New macro.
18347         (truncf_reference): Keep in sync with lib/trunc.c.
18348         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18349         * tests/test-trunc-ieee.c (main): Likewise.
18350         * tests/test-truncl-ieee.c (main): Likewise.
18351
18352         ceil: Implement result sign according to IEEE 754.
18353         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18354         (FUNC): Return -0.0 for -1 < x < 0.
18355         * tests/test-ceil2.c: Include minus-zero.h.
18356         (MINUS_ZERO): New macro.
18357         (ceil_reference): Keep in sync with lib/ceil.c.
18358         * tests/test-ceilf2.c: Include minus-zero.h.
18359         (MINUS_ZERO): New macro.
18360         (ceilf_reference): Keep in sync with lib/ceil.c.
18361         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18362         * tests/test-ceil-ieee.c (main): Likewise.
18363         * tests/test-ceill-ieee.c (main): Likewise.
18364
18365         floor: Implement result sign according to IEEE 754.
18366         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18367         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18368         * tests/test-floorf2.c (floorf_reference): Likewise.
18369         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18370         * tests/test-floor-ieee.c (main): Likewise.
18371         * tests/test-floorl-ieee.c (main): Likewise.
18372
18373 2010-12-22  Bruno Haible  <bruno@clisp.org>
18374
18375         getaddrinfo: Update doc.
18376         * doc/posix-functions/gai_strerror.texi: Return type is also different
18377         on AIX and HP-UX.
18378
18379 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18380
18381         getaddrinfo, inet_ntop: Update doc for Solaris.
18382         * doc/posix-functions/gai_strerror.texi: Return type is also an
18383         issue on Solaris 9 and earlier.
18384         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18385         on Solaris 10 and earlier.
18386
18387 2010-12-21  Bruno Haible  <bruno@clisp.org>
18388
18389         New module 'roundl-ieee'.
18390         * modules/roundl-ieee: New file.
18391         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18392         test whether roundl works according to ISO C 99 with IEC 60559.
18393         * m4/roundl-ieee.m4: New file.
18394         * modules/roundl-ieee-tests: New file.
18395         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18396         * tests/test-roundl.c (main): Remove signbit tests.
18397         * modules/roundl-tests (Depends-on): Remove signbit.
18398         * doc/posix-functions/roundl.texi: Mention the new module.
18399
18400 2010-12-21  Bruno Haible  <bruno@clisp.org>
18401
18402         New module 'truncl-ieee'.
18403         * modules/truncl-ieee: New file.
18404         * modules/truncl-ieee-tests: New file.
18405         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18406         * tests/test-truncl.c (main): Remove signbit tests.
18407         * modules/truncl-tests (Depends-on): Remove signbit.
18408         * doc/posix-functions/truncl.texi: Mention the new module.
18409
18410 2010-12-21  Bruno Haible  <bruno@clisp.org>
18411
18412         New module 'ceill-ieee'.
18413         * modules/ceill-ieee: New file.
18414         * modules/ceill-ieee-tests: New file.
18415         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18416         * tests/test-ceill.c (main): Remove signbit tests.
18417         * modules/ceill-tests (Depends-on): Remove signbit.
18418         * doc/posix-functions/ceill.texi: Mention the new module.
18419
18420 2010-12-21  Bruno Haible  <bruno@clisp.org>
18421
18422         New module 'floorl-ieee'.
18423         * modules/floorl-ieee: New file.
18424         * modules/floorl-ieee-tests: New file.
18425         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18426         * tests/test-floorl.c (main): Remove signbit tests.
18427         * modules/floorl-tests (Depends-on): Remove signbit.
18428         * doc/posix-functions/floorl.texi: Mention the new module.
18429
18430 2010-12-21  Bruno Haible  <bruno@clisp.org>
18431
18432         New module 'round-ieee'.
18433         * modules/round-ieee: New file.
18434         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18435         whether round works according to ISO C 99 with IEC 60559.
18436         * m4/round-ieee.m4: New file.
18437         * modules/round-ieee-tests: New file.
18438         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18439         * tests/test-round1.c (main): Remove signbit tests.
18440         * modules/round-tests (Depends-on): Remove 'signbit'.
18441         * doc/posix-functions/round.texi: Mention the new module.
18442
18443 2010-12-21  Bruno Haible  <bruno@clisp.org>
18444
18445         New module 'trunc-ieee'.
18446         * modules/trunc-ieee: New file.
18447         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18448         whether trunc works according to ISO C 99 with IEC 60559.
18449         * m4/trunc-ieee.m4: New file.
18450         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18452         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18453         * modules/trunc-ieee-tests: New file.
18454         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18455         * tests/test-trunc1.c (main): Remove signbit tests.
18456         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18457         * doc/posix-functions/trunc.texi: Mention the new module.
18458
18459 2010-12-21  Bruno Haible  <bruno@clisp.org>
18460
18461         New module 'ceil-ieee'.
18462         * modules/ceil-ieee: New file.
18463         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18464         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18465         ISO C 99 with IEC 60559.
18466         * m4/ceil-ieee.m4: New file.
18467         * modules/ceil (Files): Add lib/ceil.c.
18468         (Depends-on): Add 'float'.
18469         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18470         * lib/math.in.h (ceil): New declaration.
18471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18472         REPLACE_CEIL.
18473         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18474         * modules/ceil-ieee-tests: New file.
18475         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18476         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18477         * doc/posix-functions/ceil.texi: Mention the new module.
18478
18479 2010-12-21  Bruno Haible  <bruno@clisp.org>
18480
18481         New module 'floor-ieee'.
18482         * modules/floor-ieee: New file.
18483         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18484         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18485         ISO C 99 with IEC 60559.
18486         * m4/floor-ieee.m4: New file.
18487         * modules/floor (Files): Add lib/floor.c.
18488         (Depends-on): Add 'float'.
18489         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18490         * lib/math.in.h (floor): New declaration.
18491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18492         REPLACE_FLOOR.
18493         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18494         * modules/floor-ieee-tests: New file.
18495         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18496         * tests/test-math-c++.cc: Check the signature of 'floor'.
18497         * doc/posix-functions/floor.texi: Mention the new module.
18498
18499 2010-12-21  Bruno Haible  <bruno@clisp.org>
18500
18501         New module 'roundf-ieee'.
18502         * modules/roundf-ieee: New file.
18503         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18504         test whether roundf works according to ISO C 99 with IEC 60559.
18505         * m4/roundf-ieee.m4: New file.
18506         * modules/roundf-ieee-tests: New file.
18507         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18508         * tests/test-roundf1.c (main): Remove signbit tests.
18509         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18510         * doc/posix-functions/roundf.texi: Mention the new module.
18511
18512 2010-12-21  Bruno Haible  <bruno@clisp.org>
18513
18514         New module 'truncf-ieee'.
18515         * modules/truncf-ieee: New file.
18516         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18517         test whether truncf works according to ISO C 99 with IEC 60559.
18518         * m4/truncf-ieee.m4: New file.
18519         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18521         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18522         * modules/truncf-ieee-tests: New file.
18523         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18524         * tests/test-truncf1.c (main): Remove signbit tests.
18525         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18526         * doc/posix-functions/truncf.texi: Mention the new module.
18527
18528 2010-12-21  Bruno Haible  <bruno@clisp.org>
18529
18530         New module 'ceilf-ieee'.
18531         * modules/ceilf-ieee: New file.
18532         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18533         test whether ceilf works according to ISO C 99 with IEC 60559.
18534         * m4/ceilf-ieee.m4: New file.
18535         * modules/ceilf-ieee-tests: New file.
18536         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18537         * tests/test-ceilf1.c (main): Remove signbit tests.
18538         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18539         * doc/posix-functions/ceilf.texi: Mention the new module.
18540
18541 2010-12-21  Bruno Haible  <bruno@clisp.org>
18542
18543         New module 'floorf-ieee'.
18544         * modules/floorf-ieee: New file.
18545         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18546         test whether floorf works according to ISO C 99 with IEC 60559.
18547         * m4/floorf-ieee.m4: New file.
18548         * modules/floorf-ieee-tests: New file.
18549         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18550         * tests/test-floorf1.c (main): Remove signbit tests.
18551         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18552         * doc/posix-functions/floorf.texi: Mention the new module.
18553
18554 2010-12-21  Bruno Haible  <bruno@clisp.org>
18555
18556         Support for minus zero in autoconf macros.
18557         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18558         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18559         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18560         * tests/minus-zero.h: Update comments.
18561
18562 2010-12-21  Bruno Haible  <bruno@clisp.org>
18563
18564         Tests for module 'ceil'.
18565         * modules/ceil-tests: New file.
18566         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18567         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18568
18569 2010-12-21  Bruno Haible  <bruno@clisp.org>
18570
18571         Tests for module 'floor'.
18572         * modules/floor-tests: New file.
18573         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18574         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18575
18576 2010-12-21  Bruno Haible  <bruno@clisp.org>
18577
18578         math: Fix indentation.
18579         * lib/math.in.h (floorf): Fix indentation.
18580
18581 2010-12-21  Bruno Haible  <bruno@clisp.org>
18582
18583         Fix cross-compilation guesses on Solaris.
18584         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18585         not match "solaris2.10".
18586         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18587         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18588         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18589
18590 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18591
18592         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18593         This fixes a problem observed with the latest coreutils snapshot
18594         that caused a test to fail on Solaris 8.  src/csplit.c's call
18595         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18596         earlier, instead of returning the number of bytes that would have
18597         been generated; this causes csplit to incorrectly report memory
18598         exhaustion.
18599         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18600         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18601         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18602         comments to match.
18603         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18604         Fix typo in matching older versions of Solaris: "solaris2.10"
18605         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18606         only for guessing while cross-compiling.
18607         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18608
18609 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18610
18611         ftoastr: fix comment again
18612         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18613         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18614         Also, simplify example a bit by using flags = 0.
18615
18616 2010-12-20  Bruno Haible  <bruno@clisp.org>
18617
18618         round*, trunc*: Update documentation regarding glibc.
18619         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18620         * doc/posix-functions/round.texi: Likewise.
18621         * doc/posix-functions/roundl.texi: Likewise.
18622         * doc/posix-functions/truncf.texi: Likewise.
18623         * doc/posix-functions/trunc.texi: Likewise.
18624         * doc/posix-functions/truncl.texi: Likewise.
18625
18626 2010-12-20  Bruno Haible  <bruno@clisp.org>
18627
18628         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18629         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18630         * doc/posix-functions/round.texi: Likewise.
18631         * doc/posix-functions/roundl.texi: Likewise.
18632
18633 2010-12-20  Bruno Haible  <bruno@clisp.org>
18634
18635         ttyname_r: Add missing declaration on HP-UX 11.
18636         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18637         HAVE_TTYNAME_R.
18638         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18639         declared. Set HAVE_TTYNAME_R always.
18640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18641         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18642         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18643         HAVE_TTYNAME_R.
18644         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18645
18646 2010-12-20  Bruno Haible  <bruno@clisp.org>
18647
18648         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18649         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18650         * doc/posix-functions/getlogin_r.texi: Likewise.
18651         * tests/test-getlogin.c: Include <errno.h>.
18652         (main): Avoid test failure on HP-UX 11.11.
18653         * tests/test-getlogin_r.c (main): Likewise.
18654
18655 2010-12-20  Bruno Haible  <bruno@clisp.org>
18656
18657         getlogin_r: Add missing declaration on HP-UX 11.
18658         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18659         declared also when it exists as a function.
18660         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18661
18662 2010-12-20  Bruno Haible  <bruno@clisp.org>
18663
18664         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18665         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18666         through wcrtomb.
18667
18668 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18669
18670         ftoastr: fix comment
18671         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18672         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18673
18674 2010-12-19  Bruno Haible  <bruno@clisp.org>
18675
18676         isnan: Ensure it is a macro.
18677         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18678         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18679         Solaris.
18680
18681 2010-12-19  Bruno Haible  <bruno@clisp.org>
18682
18683         ldexpl test: Fix link error on OSF/1 5.1.
18684         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18685
18686 2010-12-19  Bruno Haible  <bruno@clisp.org>
18687
18688         wctype: Make it work in C++ mode on OSF/1 5.1.
18689         * lib/wctype.in.h (iswblank): Declare but not define here.
18690         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18691         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18692         * modules/wctype (Files): Add lib/iswblank.c.
18693
18694 2010-12-19  Bruno Haible  <bruno@clisp.org>
18695
18696         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18697         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18698         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18699
18700 2010-12-19  Bruno Haible  <bruno@clisp.org>
18701
18702         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18703         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18704         _POSIX_PII_SOCKET.
18705         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18706         * doc/posix-functions/recvfrom.texi: Likewise.
18707         * doc/posix-functions/send.texi: Likewise.
18708         * doc/posix-functions/sendto.texi: Likewise.
18709
18710 2010-12-19  Bruno Haible  <bruno@clisp.org>
18711
18712         tcgetsid: Add missing declaration on OSF/1 5.1.
18713         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18714         HAVE_TCGETSID.
18715         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18716         Don't set HAVE_TCGETSID.
18717         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18718         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18719         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18720         HAVE_TCGETSID.
18721         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18722
18723 2010-12-19  Bruno Haible  <bruno@clisp.org>
18724
18725         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18726         * lib/stdio.in.h: During the include_next statement, let recursive
18727         includes of this file include only the system header file.
18728
18729 2010-12-19  Bruno Haible  <bruno@clisp.org>
18730
18731         iconv_open: Fix regression from 2010-12-04.
18732         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18733         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18734
18735 2010-12-19  Bruno Haible  <bruno@clisp.org>
18736
18737         stdbool test: Avoid a gcc warning.
18738         * tests/test-stdbool.c (main): Fail if e1 is false.
18739         Reported by Jim Meyering.
18740
18741 2010-12-19  Jim Meyering  <meyering@redhat.com>
18742
18743         setenv: restore to working order
18744         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18745         mistakenly removed.
18746         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18747         HAVE_SETENV.
18748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18749         HAVE_SETENV.
18750
18751 2010-12-19  Bruno Haible  <bruno@clisp.org>
18752
18753         Document some different function declarations on OSF/1 5.1.
18754         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18755         * doc/posix-functions/inet_ntop.texi: Likewise.
18756         * doc/posix-functions/gethostname.texi: Likewise.
18757         * lib/unistd.in.h (gethostname): Update comment.
18758
18759 2010-12-19  Bruno Haible  <bruno@clisp.org>
18760
18761         doc: Mention vasprintf-posix module.
18762         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18763         the 'vasprintf-posix' module.
18764         * doc/glibc-functions/vasprintf.texi: Likewise.
18765
18766 2010-12-19  Bruno Haible  <bruno@clisp.org>
18767
18768         unsetenv: Add missing declaration on OSF/1 5.1.
18769         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18770         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18771         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18773         not HAVE_UNSETENV.
18774         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18775         HAVE_UNSETENV.
18776         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18777
18778 2010-12-19  Bruno Haible  <bruno@clisp.org>
18779
18780         setenv: Add missing declaration on OSF/1 5.1.
18781         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18782         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18783         declared. Don't set HAVE_SETENV.
18784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18785         not HAVE_SETENV.
18786         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18787         HAVE_SETENV.
18788         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18789
18790 2010-12-19  Bruno Haible  <bruno@clisp.org>
18791
18792         nl_langinfo tests: Avoid gcc warning.
18793         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18794
18795 2010-12-19  Bruno Haible  <bruno@clisp.org>
18796
18797         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18798         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18799         _GL_CXXALIAS_SYS.
18800
18801 2010-12-19  Bruno Haible  <bruno@clisp.org>
18802
18803         stdbool: Relax test.
18804         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18805         address to 'bool' work in static initializer, for compilers other than
18806         GCC.
18807
18808 2010-12-19  Bruno Haible  <bruno@clisp.org>
18809
18810         ftello: Add missing declaration on OSF/1 5.1.
18811         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18812         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18814         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18815         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18816
18817 2010-12-19  Bruno Haible  <bruno@clisp.org>
18818
18819         fseeko: Add missing declaration on OSF/1 5.1.
18820         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18821         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18823         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18824         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18825
18826 2010-12-19  Bruno Haible  <bruno@clisp.org>
18827
18828         fchdir: Add missing declaration on OSF/1 5.1.
18829         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18832         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18833         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18834
18835 2010-12-19  Bruno Haible  <bruno@clisp.org>
18836
18837         relocatable-prog-wrapper: Separate from relocatable-prog.
18838         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18839         uninstall-relocwrapper rule here.
18840         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18841         Reported by Ian Beckwith <ianb@erislabs.net>.
18842
18843 2010-12-19  Bruno Haible  <bruno@clisp.org>
18844
18845         unistr/u8-mbsnlen: Add missing dependency.
18846         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18847         Reported by Ian Beckwith <ianb@erislabs.net>.
18848
18849 2010-12-19  Bruno Haible  <bruno@clisp.org>
18850
18851         iconv: Make it possible again to use this module without 'iconv-h'.
18852         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18853         if it is not defined.
18854         Reported by Ian Beckwith <ianb@erislabs.net>.
18855
18856 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18857
18858         acl: port to Solaris 8 when copying from tmpfs to ufs
18859         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18860         error number.  Problem observed on Solaris 8 with latest
18861         coreutils, with "mv A B", where A is on a tmpfs file system and B
18862         is on a ufs file system.  This caused coreutils' mv/part-symlink
18863         test to fail.
18864
18865         tests: set fail=0 at start
18866         * tests/init.sh (setup_): Move fail=0 initialization here ...
18867         (mktempd_): ... from here, so that tests can rely on fail being
18868         set to 0 initially.  This fixes a problem in coreutils; see:
18869         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18870
18871 2010-12-18  Bruno Haible  <bruno@clisp.org>
18872
18873         memmem-simple: Stylistic changes.
18874         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18875         Fix preprocessor directive indentation.
18876
18877 2010-12-15  Pádraig Brady <P@draigBrady.com>
18878
18879         memmem, memmem-simple: reorganize and expand empty needle check
18880         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18881         functional checks to memmem-simple so that one has a fully functional
18882         memmem by using just this module.
18883         Restrict the performance only check to the memmem module.
18884         Also expand the empty needle check to ensure the correct
18885         pointer is returned, not just a non NULL pointer.
18886         * doc/glibc-functions/memmem.texi: Rearrange the portability
18887         documentation to correlate with the rearranged checks.
18888         Clarify exactly how the memmem and memmem-simple modules
18889         relate to each other.
18890
18891 2010-12-15  Pádraig Brady <P@draigBrady.com>
18892             Bruno Haible  <bruno@clisp.org>
18893
18894         Improve cross-compilation guesses for uClibc.
18895         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18896         that uClibc does not have the glibc bug.
18897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18898         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18899
18900 2010-12-14  Eric Blake  <eblake@redhat.com>
18901
18902         configmake: provide fallbacks for oldest supported autotools
18903         * m4/configmake.m4: New file.
18904         * modules/configmake (Files): Ship it.
18905         (configure.ac): Use it to guarantee fallbacks.
18906
18907 2010-12-13  Pádraig Brady <P@draigBrady.com>
18908
18909         read-file: Improve handling of large files
18910         * lib/read-file.c (fread_file): Minimize realloc()s
18911         for regular files, and better manage sizes around SIZE_MAX.
18912
18913 2010-12-13  Eric Blake  <eblake@redhat.com>
18914
18915         cloexec, fcntl: relax license
18916         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18917         consent from all contributors.
18918         * modules/fcntl (License): Likewise.
18919
18920 2010-12-10  Bruno Haible  <bruno@clisp.org>
18921
18922         Tests for module 'pipe-posix'.
18923         * modules/pipe-posix-tests: New file.
18924         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18925
18926 2010-12-10  Bruno Haible  <bruno@clisp.org>
18927
18928         pipe-posix: Make it work in C++ mode.
18929         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18930         (pipe): Use common idiom, not a macro definition.
18931         * lib/pipe.c: New file.
18932         * m4/pipe.m4: New file.
18933         * modules/pipe-posix (Description): Enhance.
18934         (Files): Add lib/pipe.c, m4/pipe.m4.
18935         (configure.ac): Invoke gl_FUNC_PIPE.
18936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18937         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18938         * tests/test-unistd-c++.cc: Check the signature of pipe.
18939
18940 2010-12-10  Bruno Haible  <bruno@clisp.org>
18941
18942         Rename module 'pipe' to 'spawn-pipe'.
18943         * modules/spawn-pipe: New file, renamed from modules/pipe.
18944         (Files, configure.ac, Makefile.am): Update.
18945         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18946         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18947         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18948         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18949         "spawn-pipe.h" instead of "pipe.h".
18950         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18951         to gl_SPAWN_PIPE.
18952         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18953         (Files, Makefile.am): Update.
18954         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18955         Update.
18956         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18957         Include "spawn-pipe.h" instead of "pipe.h".
18958         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18959         * lib/javacomp.c: Likewise.
18960         * lib/javaversion.c: Likewise.
18961         * lib/pipe-filter-gi.c: Likewise.
18962         * lib/pipe-filter-ii.c: Likewise.
18963         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18964         * modules/javacomp (Depends-on): Likewise.
18965         * modules/javaversion (Depends-on): Likewise.
18966         * modules/pipe-filter-gi (Depends-on): Likewise.
18967         * modules/pipe-filter-ii (Depends-on): Likewise.
18968         * MODULES.html.sh (Executing programs): Update.
18969         * NEWS: Mention the change.
18970
18971 2010-12-10  Eric Blake  <eblake@redhat.com>
18972
18973         pipe-posix: new module
18974         * modules/pipe-posix: New file.
18975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18976         (gl_UNISTD_H): Check for declaration.
18977         * modules/unistd (Makefile.am): Substitute it.
18978         * lib/unistd.in.h (pipe): Provide it for mingw.
18979         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18980         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18981
18982 2010-12-07  Bruno Haible  <bruno@clisp.org>
18983
18984         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18985         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18986         u8_strcmp_gnu.
18987         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18988
18989 2010-12-06  Bruno Haible  <bruno@clisp.org>
18990
18991         Update internal documentation.
18992         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18993
18994 2010-12-04  Bruno Haible  <bruno@clisp.org>
18995
18996         Put more information about failed tests into the test return codes.
18997         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18998         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18999         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19000         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19001         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19002         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19003         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19004         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19005         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19007         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19008         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19009         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19010         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19011         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19012         returns a bit mask.
19013         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19014         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19015         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19016         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19017         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19018         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19021         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19022         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19023         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19024         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19025         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19026         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19027         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19028         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19029         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19030         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19031         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19032         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19033         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19034         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19035         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19036         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19037         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19038         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19039         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19040         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19041         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19042         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19043         gl_PRINTF_PRECISION): Likewise.
19044         * m4/regex.m4 (gl_REGEX): Likewise.
19045         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19046         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19047         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19048         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19049         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19050         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19051         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19052         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19053         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19054         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19055         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19056         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19057         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19058         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19059         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19060         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19061         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19062         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19064         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19065         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19066         enumerated value.
19067         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19068
19069 2010-12-04  Bruno Haible  <bruno@clisp.org>
19070
19071         Update for Solaris 11 2010-11.
19072         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19073         Express, released in November 2010.
19074
19075 2010-12-04  Bruno Haible  <bruno@clisp.org>
19076
19077         nproc: Relax license.
19078         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19079         and Paul Eggert.
19080         Requested by Ludovic Courtès <ludo@gnu.org>.
19081
19082 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19083
19084         utimecmp: fine-grained src to nearby coarse-grained dest
19085
19086         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19087         and the source is on a file system with higher-resolution time
19088         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19089         not work, and the time stamps are close together, the algorithm to
19090         determine the exact resolution from the read-back mtime was buggy:
19091         it had a "!=" where it should have had an "==".  This bug has been
19092         in the code ever since it was introduced to gnulib.
19093         Problem reported by Dan Jacobson in
19094         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19095
19096 2010-11-30  Bruno Haible  <bruno@clisp.org>
19097
19098         strerror_r-posix: Fix autoconf test.
19099         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19100
19101 2010-11-28  Bruno Haible  <bruno@clisp.org>
19102             Paul Eggert  <eggert@cs.ucla.edu>
19103
19104         Tests for module 'getdomainname'.
19105         * modules/getdomainname-tests: New file.
19106         * tests/test-getdomainname.c: New file, based on
19107         tests/test-gethostname.c.
19108
19109 2010-11-28  Bruno Haible  <bruno@clisp.org>
19110             Paul Eggert  <eggert@cs.ucla.edu>
19111
19112         getdomainname: Use the system function when possible.
19113         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19114         (getdomainname): Replace if needed. Provide the declaration if it is
19115         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19116         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19117         (getdomainname): When the system has getdomainname, call the system
19118         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19119         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19120         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19121         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19122         the function if its second argument is of type 'int' or if it is found
19123         in libnsl.
19124         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19125         <sys/systeminfo.h> and sysinfo().
19126         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19128         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19129         HAVE_GETDOMAINNAME.
19130         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19131         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19132         * doc/glibc-functions/getdomainname.texi: Document the problems with
19133         the getdomainname declaration.
19134
19135 2010-11-28  Bruno Haible  <bruno@clisp.org>
19136
19137         sys_socket: Ensure ss_family field on AIX.
19138         * lib/sys_socket.in.h (ss_family): New macro definition.
19139         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19140         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19141         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19142         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19143         * modules/sys_socket (Makefile.am): Substitute
19144         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19145         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19146
19147 2010-11-27  Bruno Haible  <bruno@clisp.org>
19148
19149         readline: Improve configure output.
19150         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19151         "checking for readline..." result understandable.
19152
19153 2010-11-27  Bruno Haible  <bruno@clisp.org>
19154
19155         *printf-posix: Detect a bug on Solaris 10/x86.
19156         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19157         for floating-point output.
19158         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19159         directive.
19160         * tests/test-snprintf-posix.h (test_function): Likewise.
19161         * tests/test-sprintf-posix.h (test_function): Likewise.
19162         * tests/test-vasprintf-posix.c (test_function): Likewise.
19163         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19164         * doc/posix-functions/printf.texi: Likewise.
19165         * doc/posix-functions/snprintf.texi: Likewise.
19166         * doc/posix-functions/sprintf.texi: Likewise.
19167         * doc/posix-functions/vfprintf.texi: Likewise.
19168         * doc/posix-functions/vprintf.texi: Likewise.
19169         * doc/posix-functions/vsnprintf.texi: Likewise.
19170         * doc/posix-functions/vsprintf.texi: Likewise.
19171         * doc/glibc-functions/obstack_printf.texi: Likewise.
19172         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19173
19174 2010-11-27  Bruno Haible  <bruno@clisp.org>
19175
19176         Fix link error when module libunistring-optional is in use.
19177         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19178         * modules/striconveha-tests (Makefile.am): Likewise.
19179
19180 2010-11-27  Bruno Haible  <bruno@clisp.org>
19181
19182         regex: Mention link dependencies.
19183         * modules/regex (Link): New section.
19184         * modules/rpmatch (Link): Likewise.
19185         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19186
19187 2010-11-27  Bruno Haible  <bruno@clisp.org>
19188
19189         ftoastr: Fix compilation error on Solaris.
19190         * lib/ftoastr.c: Include <config.h>.
19191
19192 2010-11-27  Bruno Haible  <bruno@clisp.org>
19193
19194         getloadavg: Update documentation.
19195         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19196
19197 2010-11-27  Bruno Haible  <bruno@clisp.org>
19198
19199         sys_socket: Fix test whether the functions are declared.
19200         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19201         not <sys/select.h>.
19202
19203 2010-11-27  Bruno Haible  <bruno@clisp.org>
19204
19205         getpass: Make sure to get system declaration on some platforms.
19206         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19207         gl_USE_SYSTEM_EXTENSIONS.
19208         * modules/getpass (Depends-on): Add extensions.
19209
19210 2010-11-26  Bruno Haible  <bruno@clisp.org>
19211
19212         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19213         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19214         'iconv' module is present.
19215         (ICONV_CONST): New macro.
19216         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19217         ICONV_CONST.
19218         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19219         set ICONV_CONST.
19220         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19221         here.
19222         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19223         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19224         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19225         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19226         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19227         present.
19228
19229 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19230
19231         ftoastr: comment fix
19232         * lib/ftoastr.c: "little" -> "little or no" in comment
19233
19234 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19235
19236         stdint: port to GCC 4.3 + OSX + Octave
19237         On this platform, stdint.h is buggy and defines int64_t to long
19238         long int.  The replacement defined it to long int, causing
19239         problems with C++ style name mangling.  Instead, trust the system
19240         definition if INT64_MAX is defined, and likewise for the unsigned
19241         variant.   Problem reported by Jarno Rajahalme in
19242         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19243         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19244         and don't mess with int64_t and INT64_MAX in this case.
19245         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19246
19247 2010-11-24  Bruno Haible  <bruno@clisp.org>
19248
19249         doc: Corrections regarding MacOS X 10.4 and 10.5.
19250         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19251         MacOS X.
19252         Reported by Simon Josefsson.
19253
19254 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19255
19256         Uninstall ".bin" files installed by relocwrapper.
19257         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19258         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19259         unless it is already there.
19260
19261 2010-11-21  Bruno Haible  <bruno@clisp.org>
19262
19263         Update for NetBSD 5.0.
19264         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19265         NetBSD; the test fails on NetBSD 5.0.
19266         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19267         about NetBSD.
19268
19269 2010-11-21  Bruno Haible  <bruno@clisp.org>
19270
19271         Update for HP-UX 11.23 and HP-UX 11.31.
19272         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19273         HP-UX.
19274
19275 2010-11-21  Bruno Haible  <bruno@clisp.org>
19276
19277         Update for MacOS X 10.5.
19278         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19279         MacOS X; the test fails on MacOS X 10.5.8.
19280         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19281         about MacOS X.
19282
19283 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19284
19285         bootstrap: add bootstrap_sync option.
19286         See discussion at
19287         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19288         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19289         * build-aux/bootstrap: Accept --bootstrap-sync to update
19290         bootstrap if it is not identical to the local gnulib's
19291         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19292         enable this by default.  Accept --no-bootstrap-sync to disable
19293         it.
19294
19295 2010-11-20  Bruno Haible  <bruno@clisp.org>
19296
19297         Ensure that <features.h> is included before __GLIBC__ is tested.
19298         * lib/printf-parse.h: Include <features.h>.
19299         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19300         Reported by Mike Frysinger <vapier@gentoo.org>.
19301
19302         Ensure that <features.h> is included before __GLIBC__ is tested.
19303         * lib/wchar.in.h: Include <features.h>.
19304         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19305         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19306         Reported by Mike Frysinger <vapier@gentoo.org>.
19307
19308         Ensure that <features.h> is included before __GLIBC__ is tested.
19309         * lib/arpa_inet.in.h: Include <features.h>.
19310         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19311         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19312         Reported by Mike Frysinger <vapier@gentoo.org>.
19313
19314         Ensure that <features.h> is included before __GLIBC__ is tested.
19315         * build-aux/link-warning.h: Include <features.h>.
19316         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19317         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19318         Reported by Mike Frysinger <vapier@gentoo.org>.
19319
19320         Ensure that <features.h> is included before __GLIBC__ is tested.
19321         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19322         Reported by Mike Frysinger <vapier@gentoo.org>.
19323
19324 2010-11-20  Bruno Haible  <bruno@clisp.org>
19325
19326         memmem: Fix autoconf test.
19327         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19328
19329 2010-11-20  Bruno Haible  <bruno@clisp.org>
19330
19331         Port to uClibc.
19332         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19333         * lib/fcntl.in.h: Likewise.
19334         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19335         * lib/mbrtowc.c (mbrtowc): Likewise.
19336         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19337         * lib/strerror_r.c: Likewise.
19338         * lib/unistr/u8-strnlen.c: Likewise.
19339         * lib/vasnprintf.c (decimal_point_char): Likewise.
19340         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19341         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19343         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19344         * tests/test-sigaction.c (handler, main): Likewise.
19345         * lib/freading.h: Treat uClibc like a non-glibc platform.
19346         * lib/freading.c: Likewise.
19347         * lib/gettext.h: Likewise.
19348         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19349         Likewise.
19350         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19351         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19352         * lib/propername.c (proper_name_utf8): Likewise.
19353         * lib/spawn.in.h: Likewise.
19354         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19355         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19356         mem_cd_iconveh_internal): Likewise.
19357         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19358         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19359         strstr, strcasestr): Likewise.
19360         * lib/unicodeio.c (unicode_to_mb): Likewise.
19361         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19362         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19363         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19364         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19365         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19366         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19367         * lib/unistr/u8-stpncpy.c: Likewise.
19368         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19369         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19370         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19371         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19372         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19373         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19374         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19375         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19377         Likewise.
19378         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19379         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19381         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19382         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19383         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19384         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19385         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19386         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19387         * tests/test-striconveha.c (main): Likewise.
19388         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19389         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19390         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19391         * doc/posix-functions/getline.texi: Likewise.
19392         Reported by Mike Frysinger <vapier@gentoo.org>.
19393
19394 2010-11-20  Bruno Haible  <bruno@clisp.org>
19395
19396         nproc: Fix condition.
19397         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19398         HAVE_PTHREAD_AFFINITY_NP.
19399
19400 2010-11-20  Bruno Haible  <bruno@clisp.org>
19401
19402         Fix a comment.
19403         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19404
19405 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19406
19407         ftoastr: don't assume snprintf
19408         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19409         Implement a subset of snprintf here, by using sprintf safely.
19410         * modules/ftoastr (Depends-on): Remove snprintf.
19411
19412 2010-11-19  Jim Meyering  <meyering@redhat.com>
19413
19414         test-rename.h: fix compilation failure
19415         * tests/test-rename.h (test_rename): Add omitted "}".
19416
19417 2010-11-17  Jim Meyering  <meyering@redhat.com>
19418
19419         maint.mk: add a URL discussing the no-@acronym policy
19420         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19421
19422 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19423
19424         ftoastr: depend on snprintf, improve comments
19425         * lib/ftoastr.c: Also mention Loitsch's draft.
19426         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19427         needed in the current implementation, but it might simplify
19428         speeding up the code later.
19429         * modules/ftoastr: Depend on snprintf; this improves portability.
19430         Suggested by Bruno Haible in the same email.
19431
19432         ftoastr: port to hosts lacking strtof and strtold
19433         Problem reported by Bruno Haible in
19434         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19435         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19436         environment and strtold (and presumably strtof) are not available.
19437         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19438         (configure.ac): Require gl_C99_STRTOLD.
19439
19440 2010-11-18  Bruno Haible  <bruno@clisp.org>
19441
19442         c-strtold: Avoid link error on AIX 7.
19443         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19444         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19445         (gl_C_STRTOLD): Test whether strtold_l exists.
19446         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19447
19448 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19449
19450         intprops: new macro INT_BITS_STRLEN_BOUND
19451         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19452         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19453         not exposed.  Also, it uses a slightly tighter bound than before;
19454         though this makes no practical difference, we might as well be as
19455         tight as we easily can.
19456
19457         ftoastr: new module, for lossless conversion of floats to short strings
19458         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19459         * modules/ftoastr: New files.
19460
19461 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19462
19463         bootstrap: port to Solaris sed
19464         * build-aux/bootstrap (get_version): Port to Solaris sed.
19465         See Ralf Wildenhues's note in
19466         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19467
19468 2010-11-14  Jim Meyering  <meyering@redhat.com>
19469
19470         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19471         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19472         and move definition closer to sole use.
19473
19474 2010-11-13  Jim Meyering  <meyering@redhat.com>
19475
19476         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19477         Now we require at least autoconf-2.59, which means the work-around
19478         is no longer needed.
19479         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19480         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19481         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19482         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19483         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19484
19485 2010-11-13  Bruno Haible  <bruno@clisp.org>
19486
19487         rename, renameat: Avoid test failures at NFS mounted locations.
19488         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19489         functions.
19490         (test_rename): Use assert_nonexistent.
19491         * tests/test-rename.c: Include <dirent.h>.
19492         * tests/test-renameat.c: Likewise.
19493         Reported by Gary V. Vaughan <gary@gnu.org>.
19494
19495         rename, renameat: Document Linux bug with NFS
19496         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19497         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19498         * doc/posix-functions/renameat.texi: Likewise.
19499         Suggested by Eric Blake.
19500
19501 2010-11-13  Bruno Haible  <bruno@clisp.org>
19502
19503         rename test: Add comments.
19504         * tests/test-rename.h (test_rename): Add structure and comments.
19505
19506 2010-11-13  Eric Blake  <eblake@redhat.com>
19507
19508         maintainer-makefile: cover a few more files
19509         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19510         scripts generated within C files, for libvirt.
19511
19512 2010-11-13  Bruno Haible  <bruno@clisp.org>
19513
19514         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19515         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19516         character, return the number of bytes that belong together, not always
19517         1.
19518         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19519         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19520         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19521         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19522         number of bytes of an invalid character.
19523         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19524         (main): Invoke it.
19525         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19526         results.
19527         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19528         malformed byte sequences.
19529         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19530         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19531         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19532         Reported by Ben Pfaff and Paolo Bonzini.
19533
19534 2010-11-13  Bruno Haible  <bruno@clisp.org>
19535
19536         openat: Work around glibc bug with fchownat() and empty file names.
19537         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19538         (gl_FUNC_FCHOWNAT): Invoke it.
19539         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19540         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19541         Reported by Gary V. Vaughan <gary@gnu.org>.
19542
19543 2010-11-13  Bruno Haible  <bruno@clisp.org>
19544
19545         openat: Ensure autoconf macro ordering.
19546         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19547         gl_USE_SYSTEM_EXTENSIONS.
19548         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19549
19550 2010-11-13  Bruno Haible  <bruno@clisp.org>
19551
19552         Update comments.
19553         * lib/unistr/u8-check.c: Update file name in comments.
19554         * lib/unistr/u8-mblen.c: Likewise.
19555         * lib/unistr/u8-prev.c: Likewise.
19556         * lib/unistr/u8-strmblen.c: Likewise.
19557         * lib/unistr/u8-strmbtouc.c: Likewise.
19558
19559 2010-11-13  Jim Meyering  <meyering@redhat.com>
19560
19561         tests: avoid test failure on Solaris 10 due to lack of PATH export
19562         * tests/test-update-copyright.sh: Don't forget to export PATH.
19563
19564         init.sh: ensure that IFS is defined, just in case...
19565         * tests/init.sh (setup_): Ensure that IFS is defined,
19566         so that saving and restoring it works as expected.  This
19567         appears to be useful at least for an old version of dash
19568         from a long time ago (RH 6).  See here for details:
19569         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19570
19571         maint.mk: tighten "test a == b" check
19572         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19573         test to files that contain something like #!/bin/sh.
19574         Without this, coreutils would get two false positives in
19575         the comments of C source files.
19576
19577 2010-11-12  Eric Blake  <eblake@redhat.com>
19578
19579         bootstrap: fix typo in previous attempt
19580         * build-aux/bootstrap (buildreq): Correct the grouping.
19581         Reported by Paul Eggert.
19582
19583         maintainer-makefile: prohibit test x == x
19584         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19585         Based on a report by Matthias Bolte.
19586
19587         bootstrap: allow FreeBSD gzip
19588         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19589         which has no '.' and goes to stderr.
19590         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19591         Reported by Matthias Bolte.
19592
19593         maintainer-makefile: check for i18n setup
19594         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19595         will likely work.
19596
19597 2010-11-12  Bruno Haible  <bruno@clisp.org>
19598
19599         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19600         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19601         * lib/nanosleep.c (nanosleep): Likewise.
19602
19603 2010-11-11  Bruno Haible  <bruno@clisp.org>
19604
19605         fcntl-h: Fix for use of C++ on glibc systems.
19606         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19607         also on glibc systems in C++ mode.
19608         Reported by Gary V. Vaughan <gary@gnu.org>.
19609
19610 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19611
19612         mknod: avoid false failure with dash
19613         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19614
19615 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19616
19617         unlink: Fix "is it should" typo in diagnostic.
19618         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19619         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19620
19621 2010-11-11  Bruno Haible  <bruno@clisp.org>
19622
19623         Tests for module 'strerror_r-posix'.
19624         * modules/strerror_r-posix-tests: New file.
19625         * tests/test-strerror_r.c: New file.
19626         * tests/test-string-c++.cc: Check the signature of strerror_r.
19627
19628         New module 'strerror_r-posix'.
19629         * lib/string.in.h (strerror_r): New declaration.
19630         * lib/strerror_r.c: New file.
19631         * m4/strerror_r.m4: New file.
19632         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19633         of strerror_r.
19634         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19635         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19636         * modules/strerror_r-posix: New file.
19637         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19638         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19639         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19640         portability problems.
19641
19642 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19643
19644         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19645         line is also considered for output. Quoted function name in shell
19646         command, so temporary files for functions like MyClass::operator()
19647         are removed correctly without errors.
19648
19649 2010-11-09  Bruno Haible  <bruno@clisp.org>
19650
19651         * doc/posix-functions/strerror.texi: List more failing platforms.
19652
19653         * doc/posix-functions/strerror.texi: Add a comment.
19654
19655 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19656
19657         fdopendir: fix bug on MacOS X when low on file descriptors
19658
19659         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19660         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19661         All callers changed.
19662         (fdopendir): Invoke save_cwd at the top level, not after using
19663         multiple dup() calls to use up file descriptors.  Then retry
19664         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19665         less than the maximum number of open file descriptors, because
19666         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19667         on Mac OS X 10.6.4 for tar 1.24
19668         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19669         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19670         and for tar 1.25
19671         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19672
19673 2010-11-07  Bruno Haible  <bruno@clisp.org>
19674
19675         vasnprintf: Support I flag on glibc systems.
19676         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19677         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19678         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19679         snprintf function.
19680         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19681         glibc systems.
19682         * tests/test-vasnprintf-posix3.c: New file.
19683         * modules/vasnprintf-posix-tests (Files): Add it.
19684         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19685
19686 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19687
19688         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19689         * MODULES.html.sh: For compiler warnings, use name
19690         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19691
19692 2010-11-05  Eric Blake  <eblake@redhat.com>
19693
19694         ceil, floor: avoid spurious failure with icc
19695         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19696         [denormals-as-zero] when optimizing without -mieee-fp option.
19697         * tests/test-floorf2.c (floorf_reference): Likewise.
19698         * tests/test-ceilf1.c (dummy): New function.
19699         (main): Use it to outsmart icc's optimization.
19700         * tests/test-floorf1.c (dummy, main): Likewise.
19701
19702         tests: require working signbit
19703         * modules/ceilf-tests (Depends-on): Add signbit.
19704         * modules/ceill-tests (Depends-on): Likewise.
19705         * modules/floorf-tests (Depends-on): Likewise.
19706         * modules/floorl-tests (Depends-on): Likewise.
19707         * modules/round-tests (Depends-on): Likewise.
19708         * modules/roundf-tests (Depends-on): Likewise.
19709         * modules/roundl-tests (Depends-on): Likewise.
19710         * modules/trunc-tests (Depends-on): Likewise.
19711         * modules/truncf-tests (Depends-on): Likewise.
19712         * modules/truncl-tests (Depends-on): Likewise.
19713
19714         strtod: work around icc bug
19715         * lib/strtod.c (minus_zero): Define to working value.
19716         (strtod): Use it to avoid icc bug.
19717
19718         copysign: enhance tests
19719         * modules/copysign-tests (Files): Add minus-zero.h.
19720         * tests/test-copysign.c (main): Also test zeros.
19721
19722 2010-11-04  Eric Blake  <eblake@redhat.com>
19723
19724         ceil, floor, round, trunc: enhance tests of -0
19725         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19726         * tests/test-ceill.c (main): Likewise.
19727         * tests/test-floorf1.c (main): Likewise.
19728         * tests/test-floorl.c (main): Likewise.
19729         * tests/test-round1.c (main): Likewise.
19730         * tests/test-roundf1.c (main): Likewise.
19731         * tests/test-roundl.c (main): Likewise.
19732         * tests/test-trunc1.c (main): Likewise.
19733         * tests/test-truncf1.c (main): Likewise.
19734         * tests/test-truncl.c (main): Likewise.
19735
19736 2010-11-04  Eric Blake  <eblake@redhat.com>
19737
19738         frexp, tests: work around ICC bug with -zero
19739         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19740         works with more compilers.
19741         * tests/minus-zero.h: New file.
19742         * modules/ceilf-tests (Files): Include it.
19743         * modules/ceill-tests (Files): Likewise.
19744         * modules/floorf-tests (Files): Likewise.
19745         * modules/floorl-tests (Files): Likewise.
19746         * modules/frexp-nolibm-tests (Files): Likewise.
19747         * modules/frexp-tests (Files): Likewise.
19748         * modules/frexpl-nolibm-tests (Files): Likewise.
19749         * modules/frexpl-tests (Files): Likewise.
19750         * modules/isnan-tests (Files): Likewise.
19751         * modules/isnand-nolibm-tests (Files): Likewise.
19752         * modules/isnand-tests (Files): Likewise.
19753         * modules/isnanf-nolibm-tests (Files): Likewise.
19754         * modules/isnanf-tests (Files): Likewise.
19755         * modules/isnanl-nolibm-tests (Files): Likewise.
19756         * modules/isnanl-tests (Files): Likewise.
19757         * modules/round-tests (Files): Likewise.
19758         * modules/roundf-tests (Files): Likewise.
19759         * modules/roundl-tests (Files): Likewise.
19760         * modules/ldexpl-tests (Files): Likewise.
19761         * modules/signbit-tests (Files): Likewise.
19762         * modules/snprintf-posix-tests (Files): Likewise.
19763         * modules/sprintf-posix-tests (Files): Likewise.
19764         * modules/strtod-tests (Files): Likewise.
19765         * modules/trunc-tests (Files): Likewise.
19766         * modules/truncf-tests (Files): Likewise.
19767         * modules/truncl-tests (Files): Likewise.
19768         * modules/vsnprintf-posix-tests (Files): Likewise.
19769         * modules/vsprintf-posix-tests (Files): Likewise.
19770         * modules/vasnprintf-posix-tests (Files): Likewise.
19771         * modules/vasprintf-posix-tests (Files): Likewise.
19772         * tests/test-ceilf1.c (main): Use it.
19773         * tests/test-ceill.c (main): Likewise.
19774         * tests/test-floorf1.c (main): Likewise.
19775         * tests/test-floorl.c (main): Likewise.
19776         * tests/test-frexp.c (main): Likewise.
19777         * tests/test-frexpl.c (main): Likewise.
19778         * tests/test-isnan.c (main): Likewise.
19779         * tests/test-isnand.h (main): Likewise.
19780         * tests/test-isnanf.h (main): Likewise.
19781         * tests/test-isnanl.h (main): Likewise.
19782         * tests/test-ldexpl.c (main): Likewise.
19783         * tests/test-round.c (main): Likewise.
19784         * tests/test-roundf.c (main): Likewise.
19785         * tests/test-roundl.c (main): Likewise.
19786         * tests/test-signbit.c (test_signbitf, test_signbitd)
19787         (test_signbitl): Likewise.
19788         * tests/test-snprintf-posix.h (test_function): Likewise.
19789         * tests/test-sprintf-posix.h (test_function): Likewise.
19790         * tests/test-strtod.c (main): Likewise.
19791         * tests/test-trunc1.c (main): Likewise.
19792         * tests/test-truncf1.c (main): Likewise.
19793         * tests/test-truncl.c (main): Likewise.
19794
19795         isnanl: work around icc bug
19796         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19797
19798 2010-11-03  Eric Blake  <eblake@redhat.com>
19799
19800         tests: fix compiler warnings
19801         * tests/test-getopt.h (test_getopt): Fix condition.
19802         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19803         * tests/test-pipe2.c (main): Likewise.
19804         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19805
19806         utimens: fix broken m4 test
19807         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19808
19809 2010-10-28  Bruno Haible  <bruno@clisp.org>
19810
19811         posix_spawn*, getdtablesize: Relax license.
19812         * modules/posix_spawn (License): Change to LGPLv2+.
19813         * modules/posix_spawnp (License): Likewise.
19814         * modules/posix_spawn-internal (License): Likewise.
19815         * modules/posix_spawnattr_init (License): Likewise.
19816         * modules/posix_spawnattr_getflags (License): Likewise.
19817         * modules/posix_spawnattr_setflags (License): Likewise.
19818         * modules/posix_spawnattr_getpgroup (License): Likewise.
19819         * modules/posix_spawnattr_setpgroup (License): Likewise.
19820         * modules/posix_spawnattr_getschedparam (License): Likewise.
19821         * modules/posix_spawnattr_setschedparam (License): Likewise.
19822         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19823         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19824         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19825         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19826         * modules/posix_spawnattr_getsigmask (License): Likewise.
19827         * modules/posix_spawnattr_setsigmask (License): Likewise.
19828         * modules/posix_spawnattr_destroy (License): Likewise.
19829         * modules/posix_spawn_file_actions_init (License): Likewise.
19830         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19831         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19832         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19833         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19834         * modules/getdtablesize (License): Likewise.
19835         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19836
19837 2010-10-26  Bruno Haible  <bruno@clisp.org>
19838
19839         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19840         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19841         Cygwin and mingw.
19842         Suggested by Eric Blake.
19843
19844 2010-10-26  Bruno Haible  <bruno@clisp.org>
19845
19846         stdio: Work around compilation error due to renameat() on Solaris 10.
19847         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19848         * lib/renameat.c: Don't include <unistd.h> here.
19849         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19850         Reported by Paul Eggert and Eric Blake.
19851
19852 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19853
19854         renameat: port to Solaris 10, which declares renameat in unistd.h
19855
19856         * lib/renameat.c: Include unistd.h before stdio.h, because
19857         Solaris 10 declares renameat in unistd.h.  Problem encountered
19858         when building GNU tar 1.24 on Solaris 10.
19859
19860 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19861
19862         fdopendir: fix C89 compilation
19863         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19864         compilers.
19865
19866 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19867
19868         inttostr: simplify by removing unnecessary redundancy
19869         * lib/anytostr.c: Don't include verify.h.
19870         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19871         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19872         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19873         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19874         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19875         Likewise.
19876         * modules/inttostr (Depends-on): Remove 'verify'.
19877
19878 2010-10-23  Bruno Haible  <bruno@clisp.org>
19879
19880         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19881         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19882         Reported by Eric Blake.
19883
19884 2010-10-23  Bruno Haible  <bruno@clisp.org>
19885
19886         Tests: Fix LOCALE_JA on MirBSD 10.
19887         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19888         to an UTF-8 locale.
19889         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19890         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19891         Reported by Eric Blake.
19892
19893 2010-10-21  Bruno Haible  <bruno@clisp.org>
19894
19895         nl_langinfo test: Avoid test failure on NetBSD 5.
19896         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19897         Reported by Eric Blake.
19898
19899 2010-10-21  Eric Blake  <eblake@redhat.com>
19900
19901         c-stack: work around libsigsegv 2.8 bug
19902         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19903         overflow on at least PowerPC64.
19904
19905 2010-10-17  Bruno Haible  <bruno@clisp.org>
19906
19907         userspec: Drop redundant file.
19908         * modules/userspec (Files): Remove lib/inttostr.h.
19909
19910 2010-10-17  Bruno Haible  <bruno@clisp.org>
19911
19912         nl_langinfo tests: Silence some warnings.
19913         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19914         Reported by Jim Meyering.
19915
19916 2010-10-17  Bruno Haible  <bruno@clisp.org>
19917
19918         Make use of GCC's attribute __alloc_size__.
19919         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19920         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19921         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19922         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19923         __alloc_size__.
19924         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19925         Suggested by Jim Meyering.
19926
19927 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19928
19929         bootstrap: anchor .gitignore entries.
19930         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19931         with...
19932         (insert_vc_ignore): ... this new function, which prepends `/' to
19933         all .gitignore entries before passing them to
19934         insert_sorted_if_absent.
19935
19936 2010-10-16  Bruno Haible  <bruno@clisp.org>
19937
19938         nextafter: Fix configure check.
19939         * modules/nextafter (configure.ac): Correct expected prototype.
19940
19941 2010-10-16  Bruno Haible  <bruno@clisp.org>
19942
19943         termios: Update documentation.
19944         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19945
19946 2010-10-16  Bruno Haible  <bruno@clisp.org>
19947
19948         tests: Make them compile with TinyCC.
19949         * tests/test-strstr.c (main): Remove parentheses around array
19950         initializer.
19951
19952 2010-10-15  Eric Blake  <eblake@redhat.com>
19953
19954         ignore-value: make header idempotent
19955         * lib/ignore-value.h: Add double-inclusion guards.
19956         Reported by Stefan Berger.
19957
19958 2010-10-15  Jim Meyering  <meyering@redhat.com>
19959
19960         GNUmakefile: handle "stable" target, not "major"
19961         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19962         lists in maint.mk and announce-gen.  Without this, "make stable"
19963         would fail to ensure that $(VERSION) is up to date.
19964
19965 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19966
19967         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19968         & co.
19969
19970 2010-10-14  Bruno Haible  <bruno@clisp.org>
19971
19972         vasnprintf: Don't set errno to 0.
19973         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19974         block that sets it to 0.
19975         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19976
19977 2010-10-14  Bruno Haible  <bruno@clisp.org>
19978
19979         socketlib: Fix.
19980         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19981         gl_PREREQ_SYS_H_WINSOCK2.
19982         Reported by Ian Beckwith <ianb@erislabs.net>.
19983
19984 2010-10-13  Jim Meyering  <meyering@redhat.com>
19985
19986         test-select-stdin.c: avoid warn_unused_result warnings
19987         * tests/test-select-stdin.c: Include "macros.h".
19988         ASSERT that read and fflush succeed.
19989
19990 2010-10-13  Jim Meyering  <meyering@redhat.com>
19991
19992         git-version-gen: do require git-VC'd files in cwd
19993         * build-aux/git-version-gen: Reject a git version string
19994         if there are no commits associated with the current directory.
19995         This avoids an unlikely false-positive (unrelated dir whose parent
19996         repository also contains a tag matching v*), as pointed out
19997         by Giuseppe Scrivano in
19998         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19999
20000 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20001
20002         argv-iter: omit nonconforming declaration
20003         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20004         enum arg_iter_err declaration, which doesn't conform to C99.
20005         Solaris 10 cc warns about this.
20006
20007 2010-10-13  Eric Blake  <eblake@redhat.com>
20008
20009         termios: fix compilation on mingw
20010         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20011         (gl_TERMIOS_H): Adjust it on mingw.
20012         * modules/termios (Makefile.am): Substitute new key.
20013         * lib/termios.in.h (includes): Make include_next conditional.
20014         * doc/posix-headers/termios.texi (termios.h): Update
20015         documentation.
20016         Reported by Daniel P. Berrange.
20017
20018 2010-10-13  Jim Meyering  <meyering@redhat.com>
20019
20020         git-version-gen: don't require that .git/ be in the current dir
20021         * build-aux/git-version-gen: Adjust this script so that it works
20022         when run from any working directory beneath the top-level .git/-
20023         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20024         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20025
20026         test-select: avoid warn_unused_result warnings
20027         * tests/test-select.c: Include "macros.h".
20028         ASSERT that each call to read, write, and pipe succeeds.
20029         While not technically required, also check each "close".
20030         * modules/select-tests (Files): Add tests/macros.h.
20031
20032         test-symlinkat: remove declaration of unused local
20033         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20034
20035         test-inttostr: avoid shadowing warnings
20036         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20037         and use malloc rather than the stack for the same reason as
20038         mentioned in the comment justifying the other allocation.
20039
20040 2010-10-11  Bruno Haible  <bruno@clisp.org>
20041
20042         stdlib: Allow multiple gnulib generated replacements to coexist.
20043         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20044         Reported by Sam Steingold <sds@gnu.org>.
20045
20046 2010-10-11  Jim Meyering  <meyering@redhat.com>
20047
20048         fix a documentation typo
20049         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20050
20051 2010-10-11  Eric Blake  <eblake@redhat.com>
20052
20053         futimens: work around Solaris 11 bug
20054         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20055         * tests/test-futimens.h (test_futimens): Enhance, rather than
20056         weaken test.
20057         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20058
20059 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20060
20061         Indentation.
20062         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20063         higher-level operators more to the left.
20064
20065 2010-10-11  Jim Meyering  <meyering@redhat.com>
20066
20067         test-futimens: avoid unwarranted test failure on Solaris 5.11
20068         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20069         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20070         because it tries to dereference the NULL name argument.
20071
20072 2010-10-11  Bruno Haible  <bruno@clisp.org>
20073
20074         Indentation.
20075         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20076         indentation.
20077
20078 2010-10-11  Jim Meyering  <meyering@redhat.com>
20079
20080         spawn.in.h: make indentation consistent with parentheses
20081         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20082         Make indentation consistent with parentheses.
20083
20084 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20085
20086         Fix mismatched parens in previous commit
20087         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20088         parens.
20089
20090 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20091
20092         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20093
20094         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20095         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20096         * lib/malloca.c: Include "verify.h".
20097         (verify1): Remove, replacing with a verify call.
20098         * lib/relocwrapper.c (verify1): Likewise.
20099         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20100         Likewise.
20101         * modules/malloca (Depends-on): Add 'verify'.
20102         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20103         * modules/vasnprintf (Depends-on): Add 'verify'.
20104         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20105         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20106         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20107         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20108         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20109         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20110         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20111
20112         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20113
20114         Formerly the style was sometimes 2*X - 1, because the C standard
20115         was wrongly thought to disallow ?: in integral constant expressions.
20116         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20117         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20118         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20119         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20120         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20121         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20122         verify that time_t cannot be floating.
20123
20124 2010-10-08  Eric Blake  <eblake@redhat.com>
20125
20126         time: enforce recent POSIX ruling that time_t is integral
20127         * lib/time.in.h (__time_t_must_be_integral): Detect any
20128         problematic systems, allowing the rest of gnulib to assume POSIX.
20129
20130 2010-10-08  Jim Meyering  <meyering@redhat.com>
20131
20132         fdopendir: fix a bug on systems lacking openat and /proc support
20133         OpenBSD 4.7 is one such system.  The most noticeable effect was
20134         failure of any application making nontrivial use of fts: rm, du,
20135         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20136           ./rm: traversal failed: `a': Bad file descriptor
20137         Debugging that, you see that even though FD 6 was closed just
20138         prior to the opendir call in fd_clone_opendir, its resulting
20139         dir->dd_fd was 8, rather than the expected value of 6:
20140
20141         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20142         93                close (fd);
20143         (gdb) n
20144         94                dir = fd_clone_opendir (dupfd);
20145         (gdb) n
20146         95                saved_errno = errno;
20147         (gdb) p dir->dd_fd
20148         $11 = 8
20149
20150         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20151         The problem is that on OpenBSD, fd_clone_opendir has to resort
20152         to using the old-style save/restore CWD mechanism, due to its
20153         lack of openat/proc support, and *that* would steal the FD (6)
20154         that opendir was supposed to use.
20155
20156         The fix is to squirrel away the desired FD so that save_cwd uses a
20157         different one, and then free the dest FD right before calling opendir.
20158         That guarantees opendir will use the required file descriptor.
20159
20160         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20161
20162 2010-10-08  Bruno Haible  <bruno@clisp.org>
20163
20164         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20165         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20166
20167 2010-10-08  Bruno Haible  <bruno@clisp.org>
20168
20169         nanosleep: Make replacement POSIX compliant.
20170         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20171         is out of range.
20172         Reported by Jim Meyering.
20173
20174 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20175
20176         bootstrap: add hook for altering gnulib.mk, for Bison
20177         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20178         the Bison bootstrapping process can rewrite file names and variables
20179         in this file before later parts of 'bootstrap' use the file.
20180         Bison wants to include lib/gnulib.mk from the top-level makefile,
20181         so it needs the file names in this file to be relative to the top
20182         level, not relative to lib; plus it needs variable names to be
20183         rewritten.
20184         (slurp): Use the new function.
20185
20186         bootstrap: reformat for readability
20187         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20188
20189 2010-10-08  Eric Blake  <eblake@redhat.com>
20190
20191         docs: update cygwin progress
20192         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20193         1.7.7.
20194         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20195         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20196         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20197         * doc/posix-functions/carg.texi (carg): Likewise.
20198         * doc/posix-functions/cargf.texi (cargf): Likewise.
20199         * doc/posix-functions/casin.texi (casin): Likewise.
20200         * doc/posix-functions/casinf.texi (casinf): Likewise.
20201         * doc/posix-functions/casinh.texi (casinh): Likewise.
20202         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20203         * doc/posix-functions/catan.texi (catan): Likewise.
20204         * doc/posix-functions/catanf.texi (catanf): Likewise.
20205         * doc/posix-functions/catanh.texi (catanh): Likewise.
20206         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20207         * doc/posix-functions/ccos.texi (ccos): Likewise.
20208         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20209         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20210         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20211         * doc/posix-functions/cexp.texi (cexp): Likewise.
20212         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20213         * doc/posix-functions/cimag.texi (cimag): Likewise.
20214         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20215         * doc/posix-functions/clog.texi (clog): Likewise.
20216         * doc/posix-functions/clogf.texi (clogf): Likewise.
20217         * doc/posix-functions/conj.texi (conj): Likewise.
20218         * doc/posix-functions/conjf.texi (conjf): Likewise.
20219         * doc/posix-functions/cpow.texi (cpow): Likewise.
20220         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20221         * doc/posix-functions/cproj.texi (cproj): Likewise.
20222         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20223         * doc/posix-functions/creal.texi (creal): Likewise.
20224         * doc/posix-functions/crealf.texi (crealf): Likewise.
20225         * doc/posix-functions/csin.texi (csin): Likewise.
20226         * doc/posix-functions/csinf.texi (csinf): Likewise.
20227         * doc/posix-functions/csinh.texi (csinh): Likewise.
20228         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20229         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20230         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20231         * doc/posix-functions/ctan.texi (ctan): Likewise.
20232         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20233         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20234         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20235         * doc/posix-headers/complex.texi (complex.h): Likewise.
20236
20237 2010-10-07  Jim Meyering  <meyering@redhat.com>
20238
20239         parse-datetime: avoid compilation failure on OpenBSD 4.7
20240         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20241         This works around a compilation failure on OpenBSD 4.7:
20242         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20243
20244 2010-10-07  Eric Blake  <eblake@redhat.com>
20245
20246         docs: update cygwin progress
20247         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20248         1.7.6.
20249         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20250         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20251         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20252         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20253         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20254         Likewise.
20255         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20256         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20257         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20258         Likewise.
20259         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20260         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20261         Likewise.
20262         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20263         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20264         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20265         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20266         Likewise.
20267         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20268         Likewise.
20269         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20270
20271         docs: update parse-datetime history
20272         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20273         documentation of this function's history and alternatives.
20274
20275         cygwin: use more robust version check
20276         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20277         exclude an eventual cygwin 1.9.1.
20278         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20280         (gl_FUNC_STRCASESTR): Likewise.
20281         Reported by Bruno Haible.
20282
20283 2010-10-06  Bruno Haible  <bruno@clisp.org>
20284
20285         string, sys_select: Avoid #including large headers unless necessary.
20286         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20287         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20288         OSF/1, BeOS, Haiku.
20289         Reported by Jim Meyering.
20290
20291 2010-10-05  Eric Blake  <eblake@redhat.com>
20292
20293         memmem, strstr, strcasestr: fix bug with long periodic needle
20294         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20295         periodic needle having false positive.
20296         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20297         and cygwin 1.7.7.
20298         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20299         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20300         (gl_FUNC_STRCASESTR): Likewise.
20301         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20302         * tests/test-memmem.c (main): Expose the bug.
20303         * tests/test-strcasestr.c (main): Likewise.
20304         * tests/test-strstr.c (main): Likewise.
20305         * tests/test-c-strcasestr.c (main): Likewise.
20306         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20307         * doc/posix-functions/strstr.texi (strstr): Likewise.
20308         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20309         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20310
20311 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20312
20313         parse-datetime: do some more renaming
20314         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20315         parse_datetime, not get_date.  Mention the renaming.
20316         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20317         in comments.
20318         * m4/bison.m4: Likewise.
20319
20320 2010-10-05  Eric Blake  <eblake@redhat.com>
20321
20322         parse-datetime: better name than get_date
20323         * NEWS: Reword the deprecation notice.
20324         * modules/get_date: Rename to modules/parse-datetime.
20325         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20326         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20327         * lib/get_date.y: Rename to lib/parse-datetime.y.
20328         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20329         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20330         * doc/getdate.texi: Provide fallback wrapper.
20331         * lib/getdate.h: Move guts, and wrap...
20332         * lib/parse-datetime.h: ...new file.
20333         * lib/parse-datetime.y (get_date): Rename...
20334         (parse_datetime): ...to this.
20335         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20336         (gl_PARSE_DATETIME): ...to this.
20337         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20338         documentation.
20339         * modules/getdate (Files): Provide fallback docs and header.
20340         (Notice, Depends-on): Update references.
20341         * tests/test-parse-datetime.c: Likewise.
20342         * DEPENDENCIES: Likewise.
20343         * MODULES.html.sh (Date and time <time.h>): Likewise.
20344         * doc/parse-datetime.texi (Date input formats)
20345         (Authors of parse_datetime): Likewise.
20346         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20347         (Include): Likewise.
20348         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20349         * gnulib-tool: Likewise.
20350         * m4/bison.m4 (gl_BISON): Likewise.
20351         Suggested by Bruno Haible.
20352
20353 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20354
20355         more ports to Solaris tr, which needs [] around ranges
20356         * gnulib-tool: Solaris tr needs [] around ranges.
20357         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20358         * tests/test-pipe-filter-gi1.c (main): Likewise.
20359         * tests/test-pipe-filter-ii1.c (main): Likewise.
20360
20361 2010-10-05  Eric Blake  <eblake@redhat.com>
20362
20363         bootstrap: fix Solaris regression
20364         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20365         around ranges.
20366         Reported by Pádraig Brady.
20367
20368         bootstrap: work with pkg-config
20369         * build-aux/bootstrap (check_versions): Also transliterate - in
20370         prerequisite name.
20371         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20372         prerequisites that were already found, to avoid confusion.
20373         Reported by Justin Clift.
20374
20375         faccessat: remove unused wrappers
20376         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20377         presence of these wrappers dragged in -lgen on Solaris.
20378         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20379
20380 2010-10-05  Jim Meyering  <meyering@redhat.com>
20381
20382         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20383         * Makefile (sc_pragma_columns): New syntax-check rule.
20384
20385 2010-10-04  Bruno Haible  <bruno@clisp.org>
20386
20387         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20388         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20389         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20390         Reported by Bruce Korb and Eric Blake.
20391
20392 2010-10-04  Bruno Haible  <bruno@clisp.org>
20393
20394         threadlib: Make option --with-libpth-prefix work.
20395         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20396         use $LIBPTH, not just -lpth.
20397
20398 2010-10-04  Bruno Haible  <bruno@clisp.org>
20399
20400         Avoid line length limitation from HP NonStop system header files.
20401         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20402         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20403         * lib/ctype.in.h: Likewise.
20404         * lib/dirent.in.h: Likewise.
20405         * lib/errno.in.h: Likewise.
20406         * lib/fcntl.in.h: Likewise.
20407         * lib/float.in.h: Likewise.
20408         * lib/getopt.in.h: Likewise.
20409         * lib/iconv.in.h: Likewise.
20410         * lib/inttypes.in.h: Likewise.
20411         * lib/langinfo.in.h: Likewise.
20412         * lib/locale.in.h: Likewise.
20413         * lib/math.in.h: Likewise.
20414         * lib/netdb.in.h: Likewise.
20415         * lib/netinet_in.in.h: Likewise.
20416         * lib/poll.in.h: Likewise.
20417         * lib/pthread.in.h: Likewise.
20418         * lib/pty.in.h: Likewise.
20419         * lib/sched.in.h: Likewise.
20420         * lib/se-selinux.in.h: Likewise.
20421         * lib/search.in.h: Likewise.
20422         * lib/signal.in.h: Likewise.
20423         * lib/spawn.in.h: Likewise.
20424         * lib/stdarg.in.h: Likewise.
20425         * lib/stddef.in.h: Likewise.
20426         * lib/stdint.in.h: Likewise.
20427         * lib/stdio.in.h: Likewise.
20428         * lib/stdlib.in.h: Likewise.
20429         * lib/string.in.h: Likewise.
20430         * lib/strings.in.h: Likewise.
20431         * lib/sys_file.in.h: Likewise.
20432         * lib/sys_ioctl.in.h: Likewise.
20433         * lib/sys_select.in.h: Likewise.
20434         * lib/sys_socket.in.h: Likewise.
20435         * lib/sys_stat.in.h: Likewise.
20436         * lib/sys_time.in.h: Likewise.
20437         * lib/sys_times.in.h: Likewise.
20438         * lib/sys_utsname.in.h: Likewise.
20439         * lib/sys_wait.in.h: Likewise.
20440         * lib/sysexits.in.h: Likewise.
20441         * lib/termios.in.h: Likewise.
20442         * lib/time.in.h: Likewise.
20443         * lib/unistd.in.h: Likewise.
20444         * lib/wchar.in.h: Likewise.
20445         * lib/wctype.in.h: Likewise.
20446         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20447         * modules/ctype (Makefile.am): Likewise.
20448         * modules/dirent (Makefile.am): Likewise.
20449         * modules/errno (Makefile.am): Likewise.
20450         * modules/fcntl-h (Makefile.am): Likewise.
20451         * modules/float (Makefile.am): Likewise.
20452         * modules/getopt-posix (Makefile.am): Likewise.
20453         * modules/iconv-h (Makefile.am): Likewise.
20454         * modules/inttypes (Makefile.am): Likewise.
20455         * modules/langinfo (Makefile.am): Likewise.
20456         * modules/locale (Makefile.am): Likewise.
20457         * modules/math (Makefile.am): Likewise.
20458         * modules/netdb (Makefile.am): Likewise.
20459         * modules/netinet_in (Makefile.am): Likewise.
20460         * modules/poll-h (Makefile.am): Likewise.
20461         * modules/pthread (Makefile.am): Likewise.
20462         * modules/pty (Makefile.am): Likewise.
20463         * modules/sched (Makefile.am): Likewise.
20464         * modules/search (Makefile.am): Likewise.
20465         * modules/selinux-h (Makefile.am): Likewise.
20466         * modules/signal (Makefile.am): Likewise.
20467         * modules/spawn (Makefile.am): Likewise.
20468         * modules/stdarg (Makefile.am): Likewise.
20469         * modules/stddef (Makefile.am): Likewise.
20470         * modules/stdint (Makefile.am): Likewise.
20471         * modules/stdio (Makefile.am): Likewise.
20472         * modules/stdlib (Makefile.am): Likewise.
20473         * modules/string (Makefile.am): Likewise.
20474         * modules/strings (Makefile.am): Likewise.
20475         * modules/sys_file (Makefile.am): Likewise.
20476         * modules/sys_ioctl (Makefile.am): Likewise.
20477         * modules/sys_select (Makefile.am): Likewise.
20478         * modules/sys_socket (Makefile.am): Likewise.
20479         * modules/sys_stat (Makefile.am): Likewise.
20480         * modules/sys_time (Makefile.am): Likewise.
20481         * modules/sys_times (Makefile.am): Likewise.
20482         * modules/sys_utsname (Makefile.am): Likewise.
20483         * modules/sys_wait (Makefile.am): Likewise.
20484         * modules/sysexits (Makefile.am): Likewise.
20485         * modules/termios (Makefile.am): Likewise.
20486         * modules/time (Makefile.am): Likewise.
20487         * modules/unistd (Makefile.am): Likewise.
20488         * modules/wchar (Makefile.am): Likewise.
20489         * modules/wctype (Makefile.am): Likewise.
20490
20491 2010-10-04  Bruno Haible  <bruno@clisp.org>
20492
20493         read-file tests: Avoid a test failure on NonStop Kernel.
20494         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20495         a regular file.
20496         Reported by Joachim Schmitz <schmitz@hp.com>.
20497
20498 2010-10-03  Bruno Haible  <bruno@clisp.org>
20499
20500         gnulib-tool: Fixes for --create-testdir with --libtool.
20501         * gnulib-tool (func_get_automake_snippet): Don't augment
20502         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20503         an executable.
20504         (func_create_testdir): Handle module 'alloca' like func_import.
20505         Reported by Bruce Korb <bruce.korb@gmail.com>.
20506
20507 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20508
20509         Avoid some lines longer than 80 characters.
20510         * lib/stdint.in.h: Break long comment lines.
20511         * lib/math.in.h: Likewise.
20512         (_GL_NUM_UINT_WORDS): New macro, for readability.
20513         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20514         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20515         * lib/stdlib.in.h: Likewise.
20516         * lib/spawn.in.h: Likewise.
20517         * lib/sys_socket.in.h: Update an URL.
20518         * lib/sys_stat.in.h: Break long line.
20519
20520 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20521
20522         Improve pmccabe2html.
20523         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20524         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20525         when the sources change. Remove the line in the HTML about "Used
20526         ranges" (which implied that there might be other unused ranges),
20527         rename "Resume" to "Summary" (easier to understand for more users).
20528         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20529         styles, and some unnecessary blank lines.
20530
20531 2010-10-03  Bruno Haible  <bruno@clisp.org>
20532             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20533
20534         acl: Add support for ACLs on NonStop Kernel.
20535         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20536         Check whether the function aclsort() exists.
20537         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20538         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20539         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20540         (acl_nontrivial [HAVE_ACLSORT]: New function.
20541         (file_has_acl): Implement for NonStop Kernel.
20542         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20543         (qset_acl): Implement for NonStop Kernel.
20544         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20545         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20546         (main): Implement for NonStop Kernel.
20547         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20548         Kernel. Handle this flavor.
20549         * tests/test-set-mode-acl.sh: Likewise.
20550         * tests/test-copy-acl.sh: Likewise.
20551         * tests/test-copy-file.sh: Likewise.
20552
20553 2010-10-03  Bruno Haible  <bruno@clisp.org>
20554
20555         Info about ACLs on NonStop Kernel.
20556         * doc/acl-resources.txt: Add info about NonStop Kernel.
20557         References by Joachim Schmitz <schmitz@hp.com>.
20558
20559 2010-10-02  Bruno Haible  <bruno@clisp.org>
20560
20561         Define missing EDQUOT on NonStop Kernel.
20562         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20563         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20564         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20565         missing.
20566         * doc/posix-headers/errno.texi: Mention the NSK bug.
20567         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20568         Reported by Joachim Schmitz <schmitz@hp.com>.
20569
20570 2010-10-02  Bruno Haible  <bruno@clisp.org>
20571
20572         Update doc for POSIX:2008.
20573         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20574         Update URL of POSIX specification.
20575
20576 2010-10-02  Bruno Haible  <bruno@clisp.org>
20577
20578         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20579         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20580         from gnulib, not from Automake.
20581
20582 2010-10-02  Bruno Haible  <bruno@clisp.org>
20583
20584         New module 'system-posix'.
20585         * modules/system-posix: New file.
20586         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20587         module is present.
20588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20589         GNULIB_SYSTEM_POSIX.
20590         * modules/stdlib (Depends-on): Remove sys_wait.
20591         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20592         * doc/posix-functions/system.texi: Mention the new module.
20593         * doc/posix-headers/stdlib.texi: Likewise.
20594         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20595         define test_sys_wait_macros to a no-op.
20596         Reported by Sam Steingold <sds@gnu.org>.
20597
20598 2010-09-30  Bruno Haible  <bruno@clisp.org>
20599
20600         More renaming from 'getdate' to 'get_date'.
20601         * doc/get_date.texi: Renamed from doc/getdate.texi.
20602         * modules/get_date (Files): Update.
20603         * MODULES.html.sh (Date and time <time.h>): Update.
20604         * DEPENDENCIES: Update.
20605         * gnulib-tool: Update comment.
20606         * m4/bison.m4 (gl_BISON): Likewise.
20607         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20608
20609 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20610
20611         bootstrap: support ACLOCAL_FLAGS during aclocal
20612         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20613         can add additional -I dir for third-party .m4 files.
20614
20615 2010-09-30  Eric Blake  <eblake@redhat.com>
20616
20617         bootstrap: use glibtoolize on MacOS
20618         * build-aux/bootstrap (check_versions): Convert libtool into
20619         libtoolize.
20620         (tool search): Move libtool check earlier, and look for
20621         glibtoolize for MacOS.
20622         (gnulib_tool_options): Auto-add --libtool when appropriate.
20623         Reported by Justin Clift.
20624
20625         poll: fix typo that broke test on MacOS
20626         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20627         Reported by Justin Clift.
20628
20629         getdate: rename to get_date
20630         Note: getdate.h is not renamed, to minimize client impact.
20631         * modules/getdate: Mark obsolete.  Move old contents...
20632         * modules/get_date: ...to new module name.
20633         * modules/getdate-tests: Move...
20634         * modules/get_date-tests: ...here.
20635         * m4/getdate.m4: Move...
20636         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20637         * lib/getdate.y: Move...
20638         * lib/get_date.y: ...here.
20639         * tests/test-getdate.c: Move...
20640         * tests/test-get_date.c: ...here.
20641         * doc/posix-functions/getdate.texi (getdate): Update name.
20642         * NEWS: Mention the change.
20643
20644 2010-09-29  Bruno Haible  <bruno@clisp.org>
20645
20646         Separate the module 'waitpid' from the module 'sys_wait'.
20647         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20648         present.
20649         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20650         gl_MODULE_INDICATOR_FOR_TESTS.
20651         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20652         * modules/sys_wait (Depends-on): Remove waitpid.
20653         (Makefile.am): Substitute GNULIB_WAITPID.
20654         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20655         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20656         signature only if the 'waitpid' module is present.
20657         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20658         * NEWS: Mention the change.
20659         * modules/grantpt (Depends-on): Add waitpid.
20660         * modules/wait-process (Depends-on): Likewise.
20661
20662 2010-09-29  Bruno Haible  <bruno@clisp.org>
20663
20664         More tests for module 'sys_wait'.
20665         * modules/sys_wait-c++-tests: New file.
20666         * tests/test-sys_wait-c++.cc: New file.
20667         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20668         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20669
20670 2010-09-29  Bruno Haible  <bruno@clisp.org>
20671
20672         New module 'waitpid'.
20673         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20674         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20675         Don't include <process.h>.
20676         (waitpid): Declare only, using modern idiom.
20677         * m4/waitpid.m4: New file.
20678         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20679         * modules/waitpid: New file.
20680         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20681         (Makefile.am): Update.
20682         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20683
20684 2010-09-28  Bruno Haible  <bruno@clisp.org>
20685
20686         poll: Assume ANSI C.
20687         * lib/poll.c (poll): Use an ANSI C declaration.
20688
20689 2010-09-28  Bruno Haible  <bruno@clisp.org>
20690
20691         poll-h: Create poll.h on all platforms.
20692         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20693         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20694         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20695         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20696         (gl_REPLACE_POLL_H): Don't set POLL_H.
20697         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20698         * modules/poll-h (Depends-on): Add include_next.
20699         (Makefile.am): Create poll.h unconditionally. Substitute also
20700         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20701
20702 2010-09-28  Bruno Haible  <bruno@clisp.org>
20703
20704         Tests for module 'poll-h'.
20705         * modules/poll-h-c++-tests: New file.
20706         * tests/test-poll-h-c++.cc: New file.
20707
20708         Tests for module 'poll-h'.
20709         * modules/poll-h-tests: New file.
20710         * tests/test-poll-h.c: New file.
20711
20712 2010-09-28  Bruno Haible  <bruno@clisp.org>
20713
20714         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20715         * modules/poll-h (Depends-on): Add 'extensions'.
20716
20717 2010-09-28  Bruno Haible  <bruno@clisp.org>
20718
20719         New module 'poll-h'.
20720         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20721         (poll): Use modern idiom.
20722         * modules/poll-h: New file.
20723         * modules/poll (Files): Remove lib/poll.in.h.
20724         (Depends-on): Add poll-h.
20725         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20726         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20727         * m4/poll_h.m4: New file.
20728         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20729         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20730         and invoke gl_REPLACE_POLL_H.
20731         * lib/poll.c: Use common idiom.
20732         * tests/test-poll.c: Likewise.
20733         * doc/posix-headers/poll.texi: Mention the poll-h module.
20734         Suggested by Eric Blake.
20735
20736 2010-09-26  Bruno Haible  <bruno@clisp.org>
20737
20738         sys_wait: Implement WSTOPSIG.
20739         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20740         Reported by Simon Josefsson.
20741
20742 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20743
20744         stdlib, sys_wait: Avoid compilation error on mingw.
20745         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20746
20747 2010-09-26  Bruno Haible  <bruno@clisp.org>
20748
20749         stdlib tests: Avoid code duplication.
20750         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20751         * modules/sys_wait-tests (Files): Likewise.
20752         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20753         * tests/test-stdlib.c: Include test-sys_wait.h.
20754         (main): Invoke test_sys_wait_macros.
20755         * tests/test-sys_wait.c: Include test-sys_wait.h.
20756         (main): Invoke test_sys_wait_macros.
20757
20758 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20759
20760         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20761         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20762         sure Windows sockets are working before calling getaddrinfo.
20763         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20764         * doc/gnulib.texi (Windows sockets): Fix typo.
20765
20766 2010-09-25  Bruno Haible  <bruno@clisp.org>
20767
20768         Tests for module 'regex-quote'.
20769         * modules/regex-quote-tests: New file.
20770         * tests/test-regex-quote.c: New file.
20771
20772         New module 'regex-quote'.
20773         * lib/regex-quote.h: New file.
20774         * lib/regex-quote.c: New file.
20775         * modules/regex-quote: New file.
20776         Suggested by Reuben Thomas <rrt@sc3d.org>.
20777
20778 2010-09-24  Bruno Haible  <bruno@clisp.org>
20779
20780         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20781         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20782
20783 2010-09-23  Bruno Haible  <bruno@clisp.org>
20784
20785         setenv: Relax license.
20786         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20787         Blake.
20788         Requested by Eric Blake.
20789
20790 2010-09-22  Bruno Haible  <bruno@clisp.org>
20791
20792         termios: Relax license.
20793         * modules/termios (License): Change to LGPLv2+.
20794         Requested by Eric Blake.
20795
20796 2010-09-22  Bruno Haible  <bruno@clisp.org>
20797
20798         threadlib: Allow the package to change the default to 'no'.
20799         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20800         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20801         Reported by Paul Eggert.
20802
20803 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20804             Bruno Haible  <bruno@clisp.org>
20805
20806         Fix endless loop in mbmemcasecoll.
20807         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20808         byte.
20809         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20810
20811 2010-09-22  Bruno Haible  <bruno@clisp.org>
20812
20813         Tests for module 'memcoll'.
20814         * modules/memcoll-tests: New file.
20815         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20816
20817         memcoll, xmemcoll: Clarify size vs. length.
20818         * modules/memcoll.c (memcoll0): Clarify specification.
20819         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20820         passed to collate_error.
20821
20822 2010-09-22  Bruno Haible  <bruno@clisp.org>
20823
20824         Tests for module 'memcasecmp'.
20825         * modules/memcasecmp-tests: New file.
20826         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20827
20828 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20829
20830         * lib/pthread.in.h: Add split double-inclusion guard, and include
20831         system <pthread.h> if there is one.  Use @@-style as in other
20832         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20833         pthread.h doesn't.
20834         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20835         (pthread_mutexattr_settype, pthread_mutex_trylock):
20836         New static inline functions, if there's no system <pthread.h>.
20837         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20838         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20839         Approximate with mutexes if the system lacks spinlocks, as in
20840         MacOS.
20841         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20842         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20843         @@-style.  Check for spinlocks separately.
20844         (gl_PTHREAD_DEFAULTS): New macro.
20845         * modules/pthread: Redo to use a more typical style for in.h files.
20846
20847 2010-09-21  Eric Blake  <eblake@redhat.com>
20848
20849         net_if: enhance tests
20850         * tests/test-net_if.c (main): Move signature checks earlier.
20851         Print failures to stderr.
20852         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20853         Document the bug that we do not yet fix.
20854
20855 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20856
20857         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20858         about gnulib, not GSS.
20859
20860 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20861
20862         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20863         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20864         for Emacs.
20865         * build-aux/pmccabe2html: Make Makefile.am example code more
20866         cut-and-paste friendly.
20867
20868 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20869
20870         * tests/test-net_if.c: New file.
20871         * modules/net_if-tests: New file.
20872
20873 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20874
20875         pthread: add pthread_spin_destroy
20876         * lib/pthread.in.h (pthread_spin_destroy): New function.
20877
20878 2010-09-19  Bruno Haible  <bruno@clisp.org>
20879
20880         gnulib-tool: Fix --help output.
20881         * gnulib-tool (func_usage): Fix help message.
20882         Reported by Reuben Thomas <rrt@sc3d.org>.
20883
20884 2010-09-18  Jim Meyering  <meyering@redhat.com>
20885
20886         maint.mk: avoid unexpanded \n in two diagnostics
20887         * top/maint.mk (sc_prohibit_always_true_header_tests):
20888         Don't use a literal \n in a halt=... assignment.  It would not be
20889         expanded, and the two \n bytes would appear in the diagnostic output
20890         rather than the desired newline.  Use halt=$$(printf ... instead.
20891         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20892
20893 2010-09-18  Bruno Haible  <bruno@clisp.org>
20894
20895         netinet_in: Doc tweak.
20896         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20897         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20898
20899 2010-09-18  Jim Meyering  <meyering@redhat.com>
20900
20901         init.sh: correct an outdated comment
20902         * tests/init.sh (create_exe_shims_):  s/function/alias/
20903
20904         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20905         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20906         a file named "*.exe" is removed between the glob expansion and the
20907         processing of that oddly named file.
20908
20909 2010-09-17  Eric Blake  <eblake@redhat.com>
20910
20911         mirbsd: add some more support
20912         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20913         in BSD family.
20914         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20915         devices as OpenBSD.
20916         * m4/host-os.m4 (mirbsd): Add MirBSD.
20917
20918         tests: fix unportable assumption on sys/wait.h
20919         * tests/test-sys_wait.c (main): Relax test.
20920         * tests/test-stdlib.c (main): Likewise.
20921
20922         init.sh: accomodate directory with no .exes
20923         * tests/init.sh: Accomodate directory containing only scripts.
20924
20925         tests: avoid compiler warning
20926         * tests/test-stdlib.c (main): Use the variable.
20927
20928         fdutimens, fdutimensat: update signature, again
20929         * lib/utimens.h (gl_futimens): Delete, and move signature...
20930         (fdutimens): ...here.
20931         (fdutimensat): Rearrange signature.
20932         (lutimensat): Rename variable for clarity.
20933         * lib/fdutimensat.c (fdutimensat): Update signature.
20934         * lib/utimens.c (fdutimens): Likewise.
20935         (gl_futimens): Delete.
20936         (utimens, lutimens): Update callers.
20937         * lib/futimens.c (futimens): Likewise.
20938         * tests/test-fdutimensat.c: Likewise.
20939         * tests/test-utimens.c: Likewise.
20940         * tests/test-futimens.h: Update comment.
20941         * NEWS: Mention this.
20942         Suggested by Paul Eggert.
20943
20944 2010-09-17  Bruno Haible  <bruno@clisp.org>
20945
20946         Take over the maintenance of some older macros from Autoconf.
20947         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20948         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20949         GNU Autoconf.
20950         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20951         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20952
20953 2010-09-17  Eric Blake  <eblake@redhat.com>
20954
20955         fdutimensat: drop atflag validation
20956         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20957         with valid fd, to close a race scenario where futimens is
20958         unsupported and FILE was replaced by a symlink.
20959         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20960         accordingly.
20961         Suggested by Paul Eggert.
20962
20963 2010-09-16  Bruno Haible  <bruno@clisp.org>
20964
20965         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20966         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20967
20968 2010-09-16  Bruno Haible  <bruno@clisp.org>
20969
20970         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20971         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20972         login_tty exists.
20973         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20974
20975 2010-09-16  Bruno Haible  <bruno@clisp.org>
20976
20977         login_tty: Make the replacement code work on BSD systems.
20978         * lib/login_tty.c: Include <sys/ioctl.h>.
20979         (login_tty): Use ioctl TIOCSCTTY when available.
20980         * modules/login_tty (Depends-on): Add sys_ioctl.
20981         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20982
20983 2010-09-16  Bruno Haible  <bruno@clisp.org>
20984
20985         login_tty: Stricter unit test.
20986         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20987         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20988         and tcgetsid() after login_tty.
20989         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20990
20991 2010-09-16  Bruno Haible  <bruno@clisp.org>
20992
20993         New module 'tcgetsid'.
20994         * lib/tcgetsid.c: New file.
20995         * m4/tcgetsid.m4: New file.
20996         * modules/tcgetsid: New file.
20997         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20998         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20999         GNULIB_TCGETSID, HAVE_TCGETSID.
21000         * lib/termios.in.h: Include <sys/types.h>.
21001         (tcgetsid): New declaration.
21002         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21003         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21004         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21005         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21006
21007 2010-09-16  Bruno Haible  <bruno@clisp.org>
21008
21009         Tests for module 'termios'.
21010         * modules/termios-c++-tests: New file.
21011         * modules/termios-tests: New file.
21012         * tests/test-termios-c++.cc: New file.
21013         * tests/test-termios.c: New file.
21014
21015         New module 'termios'.
21016         * modules/termios: New file.
21017         * lib/termios.in.h: New file.
21018         * m4/termios_h.m4: New file.
21019         * doc/posix-headers/termios.texi: Mention the new module.
21020
21021 2010-09-16  Eric Blake  <eblake@redhat.com>
21022
21023         fdutimensat: add an atflag parameter
21024         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21025         * lib/utimens.h (fdutimensat): Update prototype.
21026         * tests/test-fdutimensat.c: Adjust test to match.
21027         * NEWS: Document the change.
21028         Suggested by Paul Eggert.
21029
21030 2010-09-16  Bruno Haible  <bruno@clisp.org>
21031
21032         Fix typos in comments.
21033         * lib/striconveh.h: Fix typo in comment.
21034         * lib/login_tty.c (login_tty): Likewise.
21035
21036 2010-09-15  Bruno Haible  <bruno@clisp.org>
21037
21038         stdlib: clarify MirBSD WEXITSTATUS bug
21039         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21040         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21041
21042 2010-09-15  Eric Blake  <eblake@redhat.com>
21043
21044         stdlib: work around MirBSD WEXITSTATUS bug
21045         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21046         * modules/stdlib (Depends-on): Add sys_wait.
21047         * tests/test-sys_wait.c (main): Enhance test.
21048         * tests/test-stdlib.c (main): Likewise.
21049         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21050
21051         docs: mention MacOS issue with WEXITSTATUS(constant)
21052         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21053         issue.
21054         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21055
21056         strnlen: add tests
21057         * modules/strnlen-tests: New file.
21058         * tests/test-strnlen.c: Likewise.
21059
21060 2010-09-14  Bruno Haible  <bruno@clisp.org>
21061
21062         unistr/base: Avoid link errors when module 'libunistring' is also used.
21063         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21064         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21065         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21066         Declare also when HAVE_LIBUNISTRING is set.
21067         Reported by Pádraig Brady <P@draigbrady.com>.
21068
21069 2010-09-14  Eric Blake  <eblake@redhat.com>
21070
21071         test-rawmemchr: make more robust
21072         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21073         (Depends-on, configure.ac): Add needed prerequisites to use it.
21074         * modules/memchr-tests (Files, Depends-on, configure.ac):
21075         Likewise, to avoid implicit reliance on memchr module prereqs.
21076         * tests/test-memchr.c (main): Ensure proper masking.
21077         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21078         reads.
21079
21080         memchr: detect glibc Alpha bug
21081         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21082         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21083         Alpha.
21084         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21085         * tests/test-memchr.c (main): Enhance test.
21086         Reported by Nelson H. F. Beebe.
21087
21088 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21089
21090         fts, getcwd, glob: audit for dirfd returning -1
21091         * lib/fts.c (opendir): Remove #define; no longer used.
21092         (opendirat): New arg PDIR_FD.  All callers changed.
21093         (fts_build, _opendir2): Use new opendirat to avoid the need for
21094         dirfd, or for checking whether dirfd returns a negative value.
21095         Don't use opendir; always use openat followed by fdopendir.
21096         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21097         it.
21098         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21099         returns -1 here.
21100         * modules/fts (Depends-on): Remove dirfd.
21101         * modules/getcwd (Depends-on): Likewise.
21102
21103 2010-09-13  Eric Blake  <eblake@redhat.com>
21104
21105         float: fix broken MirBSD header
21106         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21107         * doc/posix-headers/float.texi (float.h): Document it.
21108
21109 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21110
21111         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21112         * lib/fts.c (opendirat): New arg extra_flags.
21113         (__opendir2): Use it to avoid following symlinks when opening
21114         a directory, if symlinks are not supposed to be followed.  See
21115         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21116
21117         fdopendir: preserve argument fd before returning
21118         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21119         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21120         (fdopendir): Use them, arranging for FD to be open to the same
21121         directory that it was when it started.  (It might be temporarily
21122         closed while fdopendir is running, so this not thread- or
21123         signal-safe.)  Be careful to do the right thing even when file
21124         descriptors are scarce and dup fails with errno == EMFILE.  See
21125         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21126
21127 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21128
21129         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21130         * NEWS: Document change.
21131         * m4/regex.m4: Disable test for regoff_t size.
21132
21133 2010-09-13  Jim Meyering  <meyering@redhat.com>
21134
21135         fts: don't operate on an invalid file descriptor after failed dup
21136         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21137         negative file descriptor.
21138
21139 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21140
21141         savedir: add streamsavedir, deprecate fdsavedir
21142         * NEWS: Mention deprecation of fdsavedir.
21143         * lib/savedir.c (streamsavedir): New extern function, whose name
21144         ends in "savedir" to be consistent with the others.  This differs
21145         from savedirstream in that it doesn't close its argument.  The
21146         next version of GNU tar will use this instead of fdsavedir, to
21147         avoid some race conditions and conserve file descriptors.
21148         (savedirstream): Reimplement as a wrapper around streamsavedir.
21149         (fdsavedir): Add a comment deprecating this function.  As far as
21150         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21151         * lib/savedir.h (streamsavedir): New decl.
21152         (fdsavedir): Add a comment deprecating this.
21153
21154 2010-09-10  Bruno Haible  <bruno@clisp.org>
21155
21156         langinfo: Fix last commit.
21157         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21158         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21160
21161 2010-09-10  Bruno Haible  <bruno@clisp.org>
21162
21163         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21164         * lib/progreloc.c (O_EXEC): Define fallback.
21165
21166 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21167
21168         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21169         * NEWS: Document recent changes to fcntl-h.
21170         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21171         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21172         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21173         Similarly for O_SEARCH; this last was already true, but not documented.
21174         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21175         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21176         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21177         Likewise.
21178         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21179         is zero, not whether it is defined.
21180         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21181         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21182         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21183
21184 2010-09-10  Bruno Haible  <bruno@clisp.org>
21185
21186         langinfo, nl_langinfo: Fix for IRIX 5.3.
21187         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21188         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21189         HAVE_LANGINFO_YESEXPR.
21190         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21191         HAVE_LANGINFO_YESEXPR.
21192         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21193         HAVE_LANGINFO_T_FMT_AMPM is 0.
21194         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21195         HAVE_LANGINFO_YESEXPR is 0.
21196         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21197         NOEXPR.
21198         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21199         * doc/posix-functions/nl_langinfo.texi: Likewise.
21200         Reported by Eric Blake.
21201
21202 2010-09-10  Bruno Haible  <bruno@clisp.org>
21203
21204         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21205         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21206         on FreeBSD 8.0 and OpenBSD 4.6.
21207         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21208         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21209         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21210         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21211         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21212         ac_includes_default.
21213         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21214
21215 2010-09-09  Eric Blake  <eblake@redhat.com>
21216
21217         strsignal: work around NetBSD bug
21218         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21219         * lib/string.in.h (includes): Likewise.
21220         * doc/posix-functions/strsignal.texi (strsignal): Document the
21221         bug.
21222         Reported by Nelson H. F. Beebe.
21223
21224         gnulib-tool: work with NetBSD /bin/sh
21225         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21226         (func_get_description, func_get_comment, func_get_status)
21227         (func_get_notice, func_get_applicability, func_get_filelist)
21228         (func_get_dependencies, func_get_autoconf_early_snippet)
21229         (func_get_autoconf_snippet, func_get_automake_snippet)
21230         (func_get_include_directive, func_get_link_directive)
21231         (func_get_license, func_get_maintainer, func_import): Avoid
21232         shell syntax errors from parsing syntax extensions.
21233
21234 2010-09-09  Bruno Haible  <bruno@clisp.org>
21235
21236         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21237         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21238         a reliable way to determine whether the 'alias' command works.
21239
21240 2010-09-08  Jim Meyering  <meyering@redhat.com>
21241
21242         init.sh: penalize a set-x-impaired shell; don't disqualify it
21243         * tests/init.sh: Too many shells corrupt application stderr when
21244         you set -x, so we can't afford to disqualify them, since at least
21245         on Irix-6.5, that would disqualify all bourne shells.
21246         Instead, use a two-pass approach.
21247         On the first pass, try to find a shell that meets the stricter
21248         condition that set -x does not corrupt stderr.
21249         If no shell meets the stricter condition, retest each candidate
21250         shell, but without that extra condition.  Finally, when
21251         VERBOSE=yes is requested and set -x might cause trouble, simply
21252         issue a warning and refrain from enabling debug output.
21253
21254 2010-09-08  Eric Blake  <eblake@redhat.com>
21255
21256         unsetenv: fix OpenBSD bug
21257         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21258         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21259         documentation.
21260         Reported by Jim Meyering.
21261
21262         strtod: work around IRIX 6.5 bug
21263         * lib/strtod.c (strtod): Reparse number on shorter string if
21264         exponent parse was invalid.
21265         * tests/test-strtod.c (main): Add check for "0x1p 2".
21266         Reported by Tom G. Christensen.
21267
21268         getopt: optimize previous patch
21269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21270         empty variable.  Speed up awk script.
21271         Reported by Paolo Bonzini.
21272
21273 2010-09-08  Jim Meyering  <meyering@redhat.com>
21274
21275         test.sh: disqualify shells for which set -x corrupts stderr
21276         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21277         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21278         appear in stderr output.  For example, this command:
21279             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21280         prints "P=1" on those two systems:
21281
21282 2010-09-08  Bruno Haible  <bruno@clisp.org>
21283
21284         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21285         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21286         commands, because some shells ignore redirections when there is an
21287         error in the command lookup.
21288         Reported by Eric Blake.
21289
21290 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21291
21292         * lib/regex.h: Fix a mention of `regex_compile' (should be
21293         `re_compile_pattern').
21294         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21295         (re_set_registers): Correct name of parameter in comment.
21296
21297         * doc/regex.texi: Add documentation for missing syntax flags.
21298         Remove commented-out documentation of defunct syntax option
21299         RE_NO_EMPTY_ALTS.
21300         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21301         Add documentation of re_set_registers.
21302         Document trick to re-use a pattern buffer by setting fastmap manually.
21303         Update documentation of struct re_pattern_buffer per public members.
21304         Uncomment documentation of equivalence class operators and
21305         collating symbol operators, since they are now implemented,
21306         Explain leftmost-longest matching in relation to alternatives.
21307         Tidy documentation of substring matching.
21308         Remove POSIX documentation, which is done better in
21309         glibc, and refer the reader there. Keep BSD API documentation, as
21310         that is not readily available elsewhere.
21311
21312 2010-09-07  Eric Blake  <eblake@redhat.com>
21313
21314         getopt: handle POSIXLY_CORRECT set but not exported
21315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21316         export state of POSIXLY_CORRECT, due to bash set -o posix.
21317         Reported by Dustin J. Mitchell.
21318
21319 2010-09-05  Bruno Haible  <bruno@clisp.org>
21320
21321         gnulib-tool: Highlight the changed options.
21322         * gnulib-tool (func_usage): Display the --import, --add-import,
21323         --remove-import explanations in bold font.
21324
21325 2010-09-06  Karl Berry  <karl@gnu.org>
21326
21327         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21328
21329 2010-09-05  Bruno Haible  <bruno@clisp.org>
21330
21331         uniwidth/width: Update comment.
21332         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21333         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21334
21335 2010-09-05  Bruno Haible  <bruno@clisp.org>
21336
21337         isinf, isnan: Relax license.
21338         * modules/isinf (License): Change from GPL to LGPL, with consent from
21339         Ben Pfaff.
21340         * modules/isnan (License): Likewise.
21341         Requested by Ludovic Courtès.
21342
21343 2010-09-04  Bruno Haible  <bruno@clisp.org>
21344
21345         gnulib-tool: Help migration from --import to --add-import or --update.
21346         * gnulib-tool: Emit a verbose error message when --import is used
21347         without any module name.
21348
21349 2010-09-04  Bruno Haible  <bruno@clisp.org>
21350
21351         Update doc about gnulib-tool.
21352         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21353         'gnulib-tool --update' in more detail.
21354         Reported by Eric Blake.
21355
21356 2010-09-04  Bruno Haible  <bruno@clisp.org>
21357
21358         gnulib-tool: Change --import. New options --add/remove-import.
21359         * gnulib-tool: New options --add-import, --remove-import.
21360         (func_usage): Document them.
21361         (have_associative): Define always.
21362         (func_import): In import mode, don't merge the specified settings with
21363         the cached settings. Implement remove-import mode.
21364         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21365         Explain when to use them versus --import.
21366         (Simple update): Use --add-import instead of --import.
21367         * NEWS: Mention the change.
21368
21369 2010-09-04  Bruno Haible  <bruno@clisp.org>
21370
21371         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21372         separate gnulib.mk.
21373
21374 2010-09-04  Bruno Haible  <bruno@clisp.org>
21375
21376         gnulib-tool: Don't talk about CVS any more.
21377         * gnulib-tool (func_usage, func_import): Write "version control"
21378         instead of CVS.
21379
21380 2010-09-04  Jim Meyering  <meyering@redhat.com>
21381
21382         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21383         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21384         false positives (whose names may be ill-chosen) when searching
21385         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21386         would cause a false-positive.
21387
21388         avoid coreutils "make distcheck" failure
21389         Coreutils tests with an absolute build directory name that contains
21390         a space.  Not quoting this directory name caused a failure.
21391         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21392         * tests/test-vc-list-files-cvs.sh: Likewise.
21393
21394 2010-09-04  Bruno Haible  <bruno@clisp.org>
21395
21396         gnulib-tool: Avoid error when run in a package without Makefile.am.
21397         * gnulib-tool: When collecting the m4dirs in a package that does not
21398         have a Makefile.am, eliminate those directories that contain no
21399         gnulib-cache.m4. Fix expression that counts these directories.
21400
21401 2010-09-04  Bruno Haible  <bruno@clisp.org>
21402
21403         update-copyright test: Improve output when perl is missing or too old.
21404         * tests/test-update-copyright.sh: Move test of Perl version down after
21405         the test whether Perl exists. Provide an explanation relating Perl's
21406         error message to Automake's SKIP: message.
21407
21408 2010-09-04  Bruno Haible  <bruno@clisp.org>
21409
21410         Don't augment PATH in TESTS_ENVIRONMENT.
21411         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21412         set abs_aux_dir instead of augmenting PATH.
21413         * modules/vc-list-files-tests (Makefile.am): Likewise.
21414         * tests/test-update-copyright.sh: Augment PATH here.
21415         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21416         path_prepend_.
21417         * tests/test-vc-list-files-git.sh: Likewise.
21418
21419 2010-09-04  Jim Meyering  <meyering@redhat.com>
21420
21421         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21422         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21423
21424 2010-09-04  Bruno Haible  <bruno@clisp.org>
21425
21426         strdup: Fix compilation error in C++ mode.
21427         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21428         the macro.
21429
21430 2010-09-04  Bruno Haible  <bruno@clisp.org>
21431
21432         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21433         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21434         macro into a function.
21435         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21436
21437 2010-09-04  Bruno Haible  <bruno@clisp.org>
21438
21439         Set PATH_SEPARATOR the same way autoconf does.
21440         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21441         the value of PATH_SEPARATOR the same way autoconf-generated configure
21442         scripts do.
21443         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21444         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21445
21446 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21447
21448         Set PATH_SEPARATOR the same way autoconf does.
21449         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21450         the same way autoconf-generated configure scripts do.
21451         * posix-modules: Likewise.
21452
21453 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21454
21455         hash: fix safe_hasher const typo
21456         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21457         const; otherwise, there is a type error later.
21458
21459 2010-09-02  Jim Meyering  <meyering@redhat.com>
21460
21461         test-update-copyright.sh: require perl 5.8.0
21462         * tests/test-update-copyright.sh: Require 5.8.0,
21463         which Tom G. Christensen has confirmed is adequate,
21464         while 5.6.1 is not.
21465
21466 2010-09-02  Eric Blake  <eblake@redhat.com>
21467
21468         tests: init.sh improvements for re-exec'ing with zsh
21469         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21470         -vx through shell re-exec.
21471         Reported by Tom G. Christensen.
21472
21473         wctype: fix typo in previous commit
21474         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21475         Reported by Ludovic Courtès.
21476
21477 2010-09-02  Jim Meyering  <meyering@redhat.com>
21478
21479         test-update-copyright.sh: skip test if Perl is too old
21480         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21481         Reported by Tom G. Christensen.
21482
21483 2010-09-02  Bruno Haible  <bruno@clisp.org>
21484
21485         wctype: Avoid compilation error on IRIX 6.5.30.
21486         * lib/wctype.in.h (iswblank): Declare with a replacement if
21487         REPLACE_ISWBLANK is set.
21488         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21489         declared. Set REPLACE_ISWBLANK.
21490         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21491         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21492         * doc/posix-headers/wctype.texi: Likewise.
21493         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21494
21495 2010-09-01  Bruno Haible  <bruno@clisp.org>
21496
21497         New module 'socketlib'.
21498         * modules/socketlib: New file.
21499         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21500         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21501         * modules/sockets (Depends-on): Add socketlib.
21502         Suggested by Sam Steingold <sds@gnu.org>.
21503
21504 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21505
21506         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21507
21508         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21509         when one needs search access to a directory but not read access.
21510         On systems where it is available, it works in some cases where
21511         O_RDONLY does not, namely on directories that are searchable but
21512         not readable, and which need only to be searchable.  If O_SEARCH
21513         is not available, fall back to the traditional method of using
21514         O_RDONLY.
21515
21516         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21517         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21518         when opening a directory that needs only to be searchable.
21519         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21520         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21521         * lib/openat-proc.c (openat_proc_name): Likewise.
21522         * lib/openat.c (openat_needs_fchdir): Likewise.
21523         * lib/save-cwd.c (save_cwd): Likewise.
21524         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21525
21526 2010-08-28  Bruno Haible  <bruno@clisp.org>
21527
21528         New module 'host-cpu-c-abi'.
21529         * modules/host-cpu-c-abi: New file.
21530         * m4/host-cpu-c-abi.m4: New file, based on part of
21531         clisp/src/m4/general.m4.
21532         Requested by Sam Steingold <sds@gnu.org>.
21533
21534 2010-08-31  Eric Blake  <eblake@redhat.com>
21535         and Jim Meyering  <meyering@redhat.com>
21536
21537         hash: factor, and guard against misbehaving hasher function
21538         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21539         of table->hasher's return value.  Also protect against a hash value
21540         so large that adding it to table->bucket results in a NULL pointer.
21541         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21542         Use it in place of open-coded check-and-abort.
21543
21544 2010-08-30  Bruno Haible  <bruno@clisp.org>
21545
21546         hash: silence spurious clang warning
21547         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21548         Reported by Eric Blake.
21549
21550 2010-08-30  Eric Blake  <eblake@redhat.com>
21551
21552         strstr, memmem, strcasestr: avoid leaked shell message
21553         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21554         FreeBSD.
21555         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21556         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21557
21558         tests: silence clang warning
21559         * tests/test-malloca.c (do_allocation): Avoid dead store.
21560
21561 2010-08-29  Bruno Haible  <bruno@clisp.org>
21562
21563         gettext: Fix recent mistake.
21564         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21565
21566 2010-08-29  Bruno Haible  <bruno@clisp.org>
21567
21568         selinux-h: Offer a --without-selinux option.
21569         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21570         --without-selinux was specified, skip all tests and define
21571         HAVE_SELINUX_SELINUX_H to 0.
21572         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21573         set LIB_SELINUX to empty.
21574         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21575         gl_LIBSELINUX. If --without-selinux was specified, replace
21576         selinux/context.h.
21577         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21578
21579 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21580             Bruno Haible  <bruno@clisp.org>
21581
21582         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21583         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21584         of HAVE_REALLOC.
21585         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21586         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21587         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21588         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21589
21590 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21591             Bruno Haible  <bruno@clisp.org>
21592
21593         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21594         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21595         HAVE_CALLOC.
21596         * lib/xmalloc.c: Update accordingly.
21597         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21598         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21599         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21600
21601 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21602             Bruno Haible  <bruno@clisp.org>
21603
21604         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21605         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21606         HAVE_MALLOC.
21607         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21608         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21609         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21610
21611 2010-08-29  Bruno Haible  <bruno@clisp.org>
21612
21613         Update modules list.
21614         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21615         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21616         (String handling <string.h>): Add astrxfrm.
21617         (File system functions): Add readlinkat.
21618
21619 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21620
21621         Tests for module 'realloc-gnu'.
21622         * modules/realloc-gnu-tests: New file.
21623         * tests/test-realloc-gnu.c: New file.
21624
21625         Tests for module 'calloc-gnu'.
21626         * modules/calloc-gnu-tests: New file.
21627         * tests/test-calloc-gnu.c: New file.
21628
21629         Tests for module 'malloc-gnu'.
21630         * modules/malloc-gnu-tests: New file.
21631         * tests/test-malloc-gnu.c: New file.
21632
21633 2010-08-28  Bruno Haible  <bruno@clisp.org>
21634
21635         Rename module 'realloc' -> 'realloc-gnu'.
21636         * modules/realloc-gnu: New file, copied from modules/realloc.
21637         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21638         obsolete.
21639         * modules/mgetgroups (Depends-on): Update.
21640         * doc/posix-functions/realloc.texi: Update.
21641         * NEWS: Mention the change.
21642
21643         Rename module 'calloc' -> 'calloc-gnu'.
21644         * modules/calloc-gnu: New file, copied from modules/calloc.
21645         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21646         obsolete.
21647         * doc/posix-functions/calloc.texi: Update.
21648         * NEWS: Mention the change.
21649
21650         Rename module 'malloc' -> 'malloc-gnu'.
21651         * modules/malloc-gnu: New file, copied from modules/malloc.
21652         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21653         obsolete.
21654         * modules/argp (Depends-on): Update.
21655         * modules/regex (Depends-on): Update.
21656         * doc/posix-functions/malloc.texi: Update.
21657         * NEWS: Mention the change.
21658
21659 2010-08-28  Eric Blake  <eblake@redhat.com>
21660
21661         pread, pwrite: add missing dependency
21662         * modules/pread (Depends-on): Add extensions.
21663         * modules/pwrite (Depends-on): Likewise.
21664
21665 2010-08-28  Bruno Haible  <bruno@clisp.org>
21666
21667         unistr/u*-strchr: Fix tests dependencies.
21668         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21669         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21670         Reported by Ian Beckwith <ianb@erislabs.net>.
21671
21672 2010-08-28  Bruno Haible  <bruno@clisp.org>
21673
21674         read-file: Don't occupy too much unused memory.
21675         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21676
21677 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21678             Eric Blake  <eblake@redhat.com>
21679             Bruno Haible  <bruno@clisp.org>
21680
21681         read-file: Avoid memory reallocations with regular files.
21682         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21683         (fread_file): With regular files, use the remaining length as the
21684         initial buffer size.  Check against overflow.
21685         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21686         sys_stat.
21687
21688 2010-08-28  Bruno Haible  <bruno@clisp.org>
21689
21690         ftello: Relax license.
21691         * modules/ftello (License): Relax to LGPLv2+.
21692         Reported by Eric Blake.
21693
21694 2010-08-28  Bruno Haible  <bruno@clisp.org>
21695
21696         Avoid relocwrapper link errors due to gnulib replacement functions.
21697         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21698         function.
21699         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21700
21701 2010-08-28  Bruno Haible  <bruno@clisp.org>
21702
21703         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21704         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21705         defined.
21706         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21707         Suggested by Eric Blake.
21708
21709 2010-08-28  Bruno Haible  <bruno@clisp.org>
21710
21711         sys_socket, netdb: Ensure socklen_t gets defined.
21712         * modules/sys_socket (Depends-on): Add socklen.
21713         * modules/netdb (Depends-on): Likewise.
21714         * modules/getaddrinfo (Depends-on): Remove socklen.
21715         * modules/getsockopt (Depends-on): Likewise.
21716         * modules/setsockopt (Depends-on): Likewise.
21717         * tests/test-sys_socket.c: Check that socklen_t is defined.
21718         * tests/test-netdb.c: Likewise.
21719         * m4/socklen.m4: Update comments.
21720         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21721
21722 2010-08-27  Eric Blake  <eblake@redhat.com>
21723
21724         login_tty: add missing dependency
21725         * modules/login_tty (Depends-on): Add pty.
21726
21727 2010-08-26  Eric Blake  <eblake@redhat.com>
21728
21729         lib-symbol-versions: fix m4 quoting
21730         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21731         format for AC_LINK_IFELSE.
21732
21733         glob: fix compile test
21734         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21735
21736         btowc: fix missing file
21737         * modules/btowc (Files): Also ship locale-fr.m4.
21738
21739         lseek: fix link test
21740         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21741         AC_LINK_IFELSE.
21742
21743         include_next: silence autoconf 2.68 warning
21744         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21745         AC_COMPILE_IFELSE as special.
21746         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21747         autoconf < 2.68.
21748
21749         acl: fix compilation test
21750         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21751         AC_COMPILE_IFELSE.
21752
21753 2010-08-26  Bruno Haible  <bruno@clisp.org>
21754
21755         Modernize AC_TRY_RUN invocations.
21756         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21757         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21758         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21759         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21760         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21761         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21762         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21763         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21764         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21765         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21766         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21767         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21768         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21769         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21770         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21771         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21772         gl_MBRLEN_NUL_RETVAL): Likewise.
21773         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21774         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21775         Likewise.
21776         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21777         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21778         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21779         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21780         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21781         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21782         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21783         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21784         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21785         Likewise.
21786         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21787         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21788         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21789         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21790         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21791         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21792         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21793         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21794         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21796
21797 2010-08-26  Bruno Haible  <bruno@clisp.org>
21798
21799         Modernize AC_TRY_LINK invocations.
21800         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21801         AC_TRY_LINK.
21802         * m4/argp.m4 (gl_ARGP): Likewise.
21803         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21804         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21805         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21806         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21807         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21808         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21809         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21810         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21811         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21812         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21813         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21814         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21815         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21816         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21817         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21818         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21819         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21820         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21821         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21822         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21823         Likewise.
21824         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21825         Likewise.
21826         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21827         Likewise.
21828         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21829         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21830         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21831         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21832         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21833         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21834         * m4/servent.m4 (gl_SERVENT): Likewise.
21835         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21836         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21837         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21838         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21839         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21840         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21841         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21842         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21843         * modules/tsearch-tests (configure.ac): Likewise.
21844
21845 2010-08-26  Bruno Haible  <bruno@clisp.org>
21846
21847         Modernize AC_TRY_COMPILE invocations.
21848         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21849         AC_TRY_COMPILE.
21850         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21851         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21852         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21853         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21854         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21855         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21856         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21857         * m4/lock.m4 (gl_LOCK): Likewise.
21858         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21859         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21860         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21861         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21862         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21863         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21864         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21865         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21866         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21867         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21868         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21869         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21870         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21871         extraneous semicolon.
21872
21873 2010-08-26  Jim Meyering  <meyering@redhat.com>
21874
21875         stat-time: relax license LGPL
21876         * modules/stat-time (License): Change from GPL to LGPL,
21877         with consent from all contributors, for use in libguile.
21878         Requested by Ludovic Courtès.
21879
21880 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21881
21882         poll: return immediately on POLLHUP.
21883         * lib/poll.c (poll): Always set timeout before wait_timeout is
21884         computed.
21885
21886 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21887
21888         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21889         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21890         rmdir ("dir/.//"), unlinkat.
21891
21892 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21893
21894         stdbool: avoid spurious failure with modern xlc
21895         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21896
21897 2010-08-24  Bruno Haible  <bruno@clisp.org>
21898
21899         getloadavg: simplify code
21900         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21901         gl_have_func. Update comments.
21902
21903 2010-08-24  Eric Blake  <eblake@redhat.com>
21904
21905         getloadavg: don't define SVR4 on cygwin
21906         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21907         only define SVR4 when -lkvm is required.
21908         Reported by Yaakov Selkowitz.
21909
21910 2010-08-24  Bruno Haible  <bruno@clisp.org>
21911
21912         priv-set: fix comment
21913         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21914
21915 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21916
21917         priv-set: fix comments
21918         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21919         to match code, as suggested by David Bartley in:
21920         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21921
21922 2010-08-23  Eric Blake  <eblake@redhat.com>
21923
21924         stdbool: avoid rejecting clang
21925         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21926         * tests/test-stdbool.c: Enable more tests if using the system
21927         <stdbool.h> instead of the gnulib replacement.
21928         (main): Move xlc bug test to a runtime test for all compilers.
21929         Reported by Anders Kaseorg.
21930
21931         argz: fix shell quoting issue
21932         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21933         Reported by Charles Wilson.
21934
21935 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21936             Erik Faye-Lund <kusmabite@gmail.com>
21937
21938         poll, select: handle ERROR_BROKEN_PIPE.
21939         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21940         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21941         * lib/select.c (win32_compute_revents): Do not mark a pipe
21942         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21943
21944 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21945
21946         fts: allow compilation with C++
21947         * lib/fts_.h: Specify extern "C" linkage with C++.
21948
21949 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21950
21951         Fix gnulib-tool sed script de-commentation for AIX sed.
21952         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21953         sed.
21954
21955 2010-08-17  Eric Blake  <eblake@redhat.com>
21956
21957         test-stddef: test for (some) offsetof bugs
21958         * tests/test-stddef.c: Enhance test to ensure correct type of
21959         offsetof.
21960         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21961         that we are not fixing at this time.
21962
21963 2010-08-15  Bruno Haible  <bruno@clisp.org>
21964
21965         stpncpy: Allow stpncpy to be defined as a macro.
21966         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21967         if it's already correctly declared.
21968         * lib/string.in.h (stpncpy): Undefine before redefining.
21969         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21970
21971 2010-08-14  Bruno Haible  <bruno@clisp.org>
21972
21973         Rename module 'memxfrm' to 'amemxfrm'.
21974         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21975         (amemxfrm): Renamed from memxfrm.
21976         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21977         (amemxfrm): Renamed from memxfrm.
21978         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21979         * NEWS: Mention the change.
21980         * MODULES.html.sh (String handling <string.h>): Update.
21981         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21982         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21983         * lib/unicase/u16-casexfrm.c: Likewise.
21984         * lib/unicase/u32-casexfrm.c: Likewise.
21985         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21986         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21987         * lib/uninorm/u16-normxfrm.c: Likewise.
21988         * lib/uninorm/u32-normxfrm.c: Likewise.
21989         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21990         memxfrm.
21991         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21992         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21993         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21994         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21995         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21996         Suggested by Paul Eggert.
21997
21998 2010-08-14  Bruno Haible  <bruno@clisp.org>
21999
22000         Tests for module 'astrxfrm'.
22001         * modules/astrxfrm-tests: New file.
22002         * tests/test-astrxfrm.c: New file.
22003
22004         New module 'astrxfrm'.
22005         * lib/astrxfrm.h: New file.
22006         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22007         * modules/astrxfrm: New file.
22008
22009 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22010
22011         regex: Tweak doc.
22012         * doc/regex.texi (Overview): Don't mention regex.c.
22013         (GNU Regular Expression Compiling): Likewise.
22014         (Match-end-of-line Operator): Mention 'not_eol'.
22015
22016 2010-08-14  Brian Gough  <bjg@gnu.org>
22017             Bruno Haible  <bruno@clisp.org>
22018
22019         git-merge-changelog: add doc relating to use with bzr and hg.
22020         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22021
22022 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22023
22024         pthread: fix pthread.h creation for srcdir != builddir
22025         * modules/pthread (Makefile.am): Fix the rule to work also in a
22026         non-srcdir build.
22027
22028 2010-08-13  Karl Berry  <karl@gnu.org>
22029
22030         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22031         * doc/posix-*/*: force line break before @url of POSIX
22032         specifications.
22033         Suggested by Werner Lemberg.
22034
22035 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22036
22037         strtod: fix const diagnostic
22038         * lib/strtod.c (strtod): Don't assign const char * to char *,
22039         as this elicits a warning from GCC when warnings are enabled.
22040
22041 2010-08-10  Pádraig Brady <P@draigbrady.com>
22042         and Eric Blake  <eblake@redhat.com>
22043
22044         copy-acl: ignore ENOTSUP on HP-UX
22045         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22046         so that it is available for HP-UX.
22047         * lib/copy-acl.c (qcopy_acl): Use it.
22048         Reported by Patrick M. Callahan.
22049
22050 2010-08-10  Eric Blake  <eblake@redhat.com>
22051
22052         open, chown: relax license
22053         * modules/open (License): Change to LGPLv2+, with consent by all
22054         authors, for use in augeas.
22055         * modules/chown (License): Likewise.
22056         * modules/lchown (Likewise): Likewise.
22057         Requested by Adam Stokes.
22058
22059 2010-08-09  Karl Berry  <karl@gnu.org>
22060
22061         * build-aux/ar-lib: new file, import from Automake.
22062         * config/srclist.txt: autocheck for updates.
22063
22064 2010-08-09  Eric Blake  <eblake@redhat.com>
22065
22066         readlinkat: adjust client modules
22067         * modules/areadlinkat (Depends-on): Use readlinkat, not
22068         symlinkat.
22069         * modules/areadlinkat-with-size (Depends-on): Likewise.
22070
22071         mknod: be more vocal about danger of running tests as root
22072         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22073         root, since that is just asking for problems.
22074         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22075
22076         readlinkat: split into its own module
22077         * modules/symlinkat: Split readlinkat...
22078         * modules/readlinkat: ...into separate module.
22079         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22080         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22081         * lib/symlinkat.c (readlinkat): Move...
22082         * lib/readlinkat.c: ...into new file.
22083         * modules/symlinkat-tests: Split readlinkat test...
22084         * modules/readlinkat-tests: ...into separate module.
22085         * tests/test-symlinkat.c: Split...
22086         * tests/test-readlinkat.c: ...into new file.
22087         * NEWS: Document the split.
22088         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22089         * lib/unistd.in.h (readlinkat): Likewise.
22090         Suggested by Bruno Haible.
22091
22092 2010-08-08  Bruno Haible  <bruno@clisp.org>
22093
22094         memxfrm: Speed up.
22095         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22096         that usually only one call to strxfrm is necessary for each string
22097         part.
22098         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22099
22100 2010-08-07  Karl Berry  <karl@gnu.org>
22101
22102         * doc/posix-headers/limits.texi,
22103         * doc/posix-functions/malloc.texi,
22104         * doc/posix-functions/strsignal.texi: missing @item.
22105         * doc/ld-version-script.texi: spurious leading i.
22106         * doc/regex.texi (Interval Operators): no commas inside @var.
22107
22108 2010-08-01  Bruno Haible  <bruno@clisp.org>
22109
22110         Integrate the regex documentation.
22111         * doc/gnulib.texi: Define 'cn' index.
22112         (Regular expressions): New a chapter that includes regex.texi and
22113         regexprops-generic.texi.
22114         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22115         syntax.
22116
22117         Whitespace cleanup.
22118         * doc/regex.texi: Remove trailing spaces.
22119
22120         Add regex documentation.
22121         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22122         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22123         Written by Kathy A. Hargreaves and Karl Berry.
22124
22125 2010-08-01  Bruno Haible  <bruno@clisp.org>
22126
22127         link: Update documentation.
22128         * doc/posix-functions/link.texi: Update regarding Solaris.
22129
22130 2010-07-31  Bruno Haible  <bruno@clisp.org>
22131
22132         Update modules list.
22133         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22134         (String handling <string.h>): Add memcmp2, memxfrm.
22135         (Container data structures): Add xlist, xsublist, xoset.
22136         (Core language properties): Add alignof, unused-parameter.
22137         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22138         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22139         (Unibyte characters <ctype.h>): New section.
22140         (String handling <string.h>): New section.
22141         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22142         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22143         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22144         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22145         tan, tanh, tanl, y0, y1, yn.
22146         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22147         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22148         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22149         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22150         unlockpt, vdprintf, vdprintf-posix.
22151         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22152         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22153         xconcat-filename.
22154         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22155         getdtablesize, pipe2, pipe2-safer.
22156         (Security): New section.
22157         (Networking functions): Add accept4.
22158         (Signal handling): Add sigpipe.
22159         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22160         mbmemcasecoll.
22161         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22162         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22163         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22164         pipe-filter-ii.
22165         (Misc): Add argp-version-etc, login_tty, parse-duration.
22166
22167 2010-07-31  Bruno Haible  <bruno@clisp.org>
22168
22169         Improve doc in MODULES.html.
22170         * modules/linkat (Description): Add the word "function".
22171         * modules/mkfifo (Description): Likewise.
22172         * modules/mknod (Description): Likewise.
22173         * modules/remove (Description): Likewise.
22174         * modules/renameat (Description): Likewise.
22175         * modules/stat (Description): Likewise.
22176         * modules/symlink (Description): Likewise.
22177         * modules/unlink (Description): Likewise.
22178
22179 2010-07-31  Bruno Haible  <bruno@clisp.org>
22180
22181         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22182         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22183         option --enable/disable-c++ instead of --enable/disable-cxx.
22184         * NEWS: Mention the change.
22185
22186 2010-07-31  Bruno Haible  <bruno@clisp.org>
22187
22188         readlink, areadlink: Relax test a bit.
22189         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22190         alternative to ENOTDIR.
22191         * tests/test-areadlink.h (test_areadlink): Likewise.
22192         Reported by Rainer Tammer.
22193
22194 2010-07-31  Bruno Haible  <bruno@clisp.org>
22195
22196         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22197         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22198         character, perform the search using U_STRCHR.
22199         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22200         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22201         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22202         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22203         Suggested by Paolo Bonzini.
22204
22205 2010-07-31  Bruno Haible  <bruno@clisp.org>
22206
22207         unistr/u*-strstr: Fix dependencies.
22208         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22209         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22210         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22211
22212 2010-07-31  Bruno Haible  <bruno@clisp.org>
22213
22214         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22215         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22216         the beginning of the loop.
22217         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22218         cases in 'switch' statement.
22219
22220         unistr/u8-strchr: Fix several bugs.
22221         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22222         the string. When not found, return NULL, not a pointer near the end.
22223
22224         More tests for unistr/u8-strchr.
22225         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22226         that the function does not read past the first occurrence of the byte
22227         being searched.
22228         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22229         * tests/unistr/test-u16-strchr.c (main): New function.
22230         * tests/unistr/test-u32-strchr.c (main): New function.
22231
22232 2010-07-31  Bruno Haible  <bruno@clisp.org>
22233
22234         posix-modules: Ignore backup files of documentation files.
22235         * posix-modules: grep only through files named *.texi.
22236
22237 2010-07-31  Bruno Haible  <bruno@clisp.org>
22238
22239         symlinkat: Fix documentation.
22240         * doc/posix-functions/readlinkat.texi: Fix module name.
22241
22242 2010-07-31  Bruno Haible  <bruno@clisp.org>
22243
22244         fchownat: Replace also when chown has the trailing slash bug.
22245         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22246         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22247         introduced on 2010-04-10.
22248         Reported by Rainer Tammer.
22249
22250 2010-07-31  Bruno Haible  <bruno@clisp.org>
22251
22252         linkat: Work around AIX 7.1 bug.
22253         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22254         whether linkat handles trailing slash correctly. If not, replace linkat
22255         and define LINKAT_TRAILING_SLASH_BUG.
22256         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22257         check whether (fd1,file1) points to a directory if file1 or file2 ends
22258         in a slash. Code taken from lib/link.c.
22259         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22260         Reported by Rainer Tammer.
22261
22262 2010-07-31  Bruno Haible  <bruno@clisp.org>
22263
22264         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22265         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22266         This disables an xlc optimization that was causing wrong test results.
22267         Reported by Rainer Tammer.
22268
22269 2010-07-31  Bruno Haible  <bruno@clisp.org>
22270
22271         iconv: Work around AIX 6.1..7.1 bug.
22272         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22273         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22274         cross-compiling, guess no on all versions of AIX.
22275         Reported by Rainer Tammer.
22276
22277 2010-07-31  Bruno Haible  <bruno@clisp.org>
22278
22279         readlink: Relax test a bit.
22280         * tests/test-readlink.h (test_readlink): Allow different errno value
22281         when readlink is called with a file name that ends in / and refers to
22282         a file.
22283         Suggested by Eric Blake.
22284         Reported by Rainer Tammer.
22285
22286 2010-07-31  Bruno Haible  <bruno@clisp.org>
22287
22288         copysign: Does not require -lm on glibc systems.
22289         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22290         gl_COMMON_DOUBLE_MATHFUNC.
22291         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22292
22293 2010-07-31  Bruno Haible  <bruno@clisp.org>
22294
22295         duplocale: Work around AIX 7.1 bug.
22296         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22297         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22298         * lib/duplocale.c (rpl_duplocale): Update comment.
22299         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22300         Reported by Rainer Tammer.
22301
22302 2010-07-30  Bruno Haible  <bruno@clisp.org>
22303
22304         dirfd: Avoid link error on AIX 7.1.
22305         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22306         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22307         exist, set REPLACE_DIRFD.
22308         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22309         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22310         * doc/posix-functions/dirfd.texi: Update.
22311         Reported by Rainer Tammer.
22312
22313 2010-07-30  Eric Blake  <eblake@redhat.com>
22314
22315         strtod: next round of AIX fixes
22316         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22317         exponent.
22318         * tests/test-strtod.c (main): Enhance tests.
22319         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22320         Reported by Rainer Tammer.
22321
22322         futimens: fix configure check
22323         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22324         Reported by Bruno Haible.
22325
22326 2010-07-30  Bruno Haible  <bruno@clisp.org>
22327
22328         getline: Update regarding AIX.
22329         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22330         Reported by Rainer Tammer.
22331
22332 2010-07-30  Bruno Haible  <bruno@clisp.org>
22333
22334         wcwidth: Drop replacement on AIX 7.
22335         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22336         AIX 7.
22337         Reported by Rainer Tammer.
22338
22339 2010-07-30  Bruno Haible  <bruno@clisp.org>
22340
22341         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22342         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22343         a 'char *'.
22344         Reported by Rainer Tammer.
22345
22346 2010-07-30  Bruno Haible  <bruno@clisp.org>
22347
22348         unlink: Update regarding AIX.
22349         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22350         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22351         Reported by Rainer Tammer.
22352
22353 2010-07-30  Bruno Haible  <bruno@clisp.org>
22354
22355         symlink: Update regarding AIX.
22356         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22357         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22358         Reported by Rainer Tammer.
22359
22360 2010-07-30  Bruno Haible  <bruno@clisp.org>
22361
22362         strndup: Update regarding AIX.
22363         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22364         AIX 7.
22365         Reported by Rainer Tammer.
22366
22367 2010-07-30  Bruno Haible  <bruno@clisp.org>
22368
22369         stat: Update regarding AIX.
22370         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22371         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22372         Reported by Rainer Tammer.
22373
22374 2010-07-30  Bruno Haible  <bruno@clisp.org>
22375
22376         truncl: Fix autoconf test.
22377         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22378         whether truncl works.
22379         Reported by Rainer Tammer.
22380
22381 2010-07-30  Bruno Haible  <bruno@clisp.org>
22382
22383         round: Update regarding AIX.
22384         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22385         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22386         Reported by Rainer Tammer.
22387
22388 2010-07-30  Bruno Haible  <bruno@clisp.org>
22389
22390         rename: Update regarding AIX.
22391         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22392         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22393         Reported by Rainer Tammer.
22394
22395 2010-07-30  Bruno Haible  <bruno@clisp.org>
22396
22397         printf.m4: Update regarding AIX.
22398         * m4/printf.m4: Update comments regarding AIX.
22399         Reported by Rainer Tammer.
22400
22401 2010-07-30  Bruno Haible  <bruno@clisp.org>
22402
22403         iconv: Update regarding AIX.
22404         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22405         AIX 7.
22406         Reported by Rainer Tammer.
22407
22408 2010-07-30  Bruno Haible  <bruno@clisp.org>
22409
22410         getopt: Update regarding AIX.
22411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22412         no on AIX.
22413         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22414         Reported by Rainer Tammer.
22415
22416 2010-07-30  Bruno Haible  <bruno@clisp.org>
22417
22418         ldexpl; Update regarding AIX.
22419         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22420         on AIX 7.
22421         Reported by Rainer Tammer.
22422
22423 2010-07-30  Bruno Haible  <bruno@clisp.org>
22424
22425         frexpl: Update regarding AIX.
22426         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22427         on AIX 7.
22428         Reported by Rainer Tammer.
22429
22430 2010-07-30  Bruno Haible  <bruno@clisp.org>
22431
22432         open, fopen: Update regarding AIX.
22433         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22434         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22435         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22436         * doc/posix-functions/fopen.texi: Likewise.
22437         Reported by Rainer Tammer.
22438
22439 2010-07-30  Bruno Haible  <bruno@clisp.org>
22440
22441         chown: Update doc regarding AIX.
22442         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22443         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22444         Reported by Rainer Tammer.
22445
22446 2010-07-30  Eric Blake  <eblake@redhat.com>
22447
22448         strtod: fix bug in replacement function on AIX
22449         * lib/strtod.c (strtod): Special case broken "0x" parse in
22450         underlying strtod.
22451         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22452         * doc/posix-functions/strtod.texi (strtod): Likewise.
22453         Reported by Rainer Tammer.
22454
22455 2010-07-30  Bruno Haible  <bruno@clisp.org>
22456
22457         mbrlen: Fix cross-compilation guess for AIX.
22458         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22459         guess. Leftover from 2008-12-22.
22460
22461 2010-07-30  Bruno Haible  <bruno@clisp.org>
22462
22463         mbrtowc: Fix cross-compilation guess for AIX.
22464         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22465         guess. Leftover from 2008-12-21.
22466
22467 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22468
22469         init.sh: work around trap limitation of some shells
22470         * tests/init.sh (setup_): Move exit trap outside of shell function.
22471
22472 2010-07-29  Eric Blake  <eblake@redhat.com>
22473
22474         strtod: aid debugging
22475         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22476         understanding why strtod is rejected.
22477
22478 2010-07-28  Bruno Haible  <bruno@clisp.org>
22479
22480         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22481         * lib/unistr/u8-chr.c: Include <string.h>.
22482         * tests/unistr/test-u8-chr.c: Likewise.
22483         * tests/unistr/test-u16-chr.c: Likewise.
22484         * tests/unistr/test-u32-chr.c: Likewise.
22485         * tests/unistr/test-u8-strchr.c: Likewise.
22486         * tests/unistr/test-u16-strchr.c: Likewise.
22487         * tests/unistr/test-u32-strchr.c: Likewise.
22488         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22489         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22490         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22491         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22492
22493 2010-07-28  Bruno Haible  <bruno@clisp.org>
22494
22495         Use spaces for indentation, not tabs.
22496         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22497
22498 2010-07-27  Bruno Haible  <bruno@clisp.org>
22499
22500         mbspcasecmp: Fix function specification.
22501         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22502         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22503         Reported by Eric Blake <eblake@redhat.com>.
22504
22505 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22506
22507         timespec: use cast and not conditional, as truncation isn't possible
22508         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22509         instead of a conditional.  Comment about the situation in more detail.
22510         This undoes most of the 2009-10-29 patch.
22511
22512 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22513
22514         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22515         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22516         * lib/unistr/u8-strchr.c: Likewise.
22517         * modules/unistr/u8-chr: Depend on memchr.
22518
22519         unistr/u*-strchr: add tests
22520         * modules/unistr/u8-strchr-tests: New file.
22521         * modules/unistr/u16-strchr-tests: New file.
22522         * modules/unistr/u32-strchr-tests: New file.
22523         * tests/unistr/test-strchr.h: New file.
22524         * tests/unistr/test-u8-strchr.c: New file.
22525         * tests/unistr/test-u16-strchr.c: New file.
22526         * tests/unistr/test-u32-strchr.c: New file.
22527
22528         unistr/u*-chr: test multibyte sequences more
22529         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22530         test vector.
22531         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22532         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22533         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22534
22535         unistr/u*-chr: test multibyte sequences
22536         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22537
22538         unistr/u*-chr: prepare for multibyte tests
22539         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22540         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22541         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22542         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22543         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22544         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22545
22546 2010-07-18  Bruno Haible  <bruno@clisp.org>
22547
22548         unistr/u8-strchr: Optimize non-ASCII argument case.
22549         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22550         because the first byte often matches anyway.
22551         Reported by Pádraig Brady <P@draigbrady.com>.
22552
22553 2010-07-15  Karl Berry  <karl@gnu.org>
22554
22555         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22556
22557 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22558
22559         getcwd: on Solaris, work better if ancestors are inaccessible
22560         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22561         buffer and size, try again with a large buffer.  This works better
22562         on Solaris, since its getcwd succeeds even if the path to the root
22563         is inaccessible, and this is helpful in common cases such as .zfs
22564         hidden directories.  Problem reported by J Chapman Flack in
22565         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22566         Use system getcwd if it's declared, not merely if it's partly
22567         working; use the partly-working test only to avoid needless effort
22568         if the system getcwd fails.
22569         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22570         comment that was already obsolete and is now even more obsolete.
22571         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22572         now might call strdup.
22573
22574 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22575
22576         pthread: Add enough so that coreutils/src/sort.c compiles.
22577         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22578         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22579         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22580         Include <sys/types.h>, in case it defines pthread_t.
22581         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22582         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22583         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22584         (pthread_rwlockattr_t, pthread_spinlock_t):
22585         New typedefs, if HAVE_PTHREAD_T is not defined.
22586         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22587         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22588         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22589         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22590         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22591         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22592         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22593         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22594         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22595         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22596         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22597         New macros.
22598         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22599         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22600         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22601         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22602         (pthread_spin_unlock): New dummy functions.
22603         (pthread_create): Return EAGAIN; don't set errno.
22604         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22605         require AC_C_INLINE.
22606         * modules/pthread (Depends-on): Add sched, time.
22607         (pthread.h): Use AM_V_GEN.
22608
22609 2010-07-13  Bruno Haible  <bruno@clisp.org>
22610
22611         striconveh: Don't malloc memory if the result buffer is sufficient.
22612         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22613         buffer if its size is sufficient.
22614         Reported by Ludovic Courtès <ludo@gnu.org>.
22615
22616 2010-07-13  Bruno Haible  <bruno@clisp.org>
22617
22618         strtod: Add safety check.
22619         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22620
22621 2010-07-12  Bruno Haible  <bruno@clisp.org>
22622
22623         Unify tests that set gl_cv_func_ldexpl_no_libm.
22624         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22625         gl_FUNC_LDEXPL.
22626         (gl_FUNC_LDEXPL): Invoke it.
22627         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22628
22629 2010-07-12  Bruno Haible  <bruno@clisp.org>
22630
22631         Unify tests that set gl_cv_func_ldexp_no_libm.
22632         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22633         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22634         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22635         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22636         * modules/strtod (Files): Add m4/ldexp.m4.
22637
22638 2010-07-12  Bruno Haible  <bruno@clisp.org>
22639
22640         Unify tests that set gl_cv_func_frexpl_no_libm.
22641         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22642         gl_FUNC_FREXPL_NO_LIBM.
22643         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22644         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22645
22646 2010-07-12  Bruno Haible  <bruno@clisp.org>
22647
22648         Unify tests that set gl_cv_func_frexp_no_libm.
22649         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22650         gl_FUNC_FREXP_NO_LIBM.
22651         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22652         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22653
22654 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22655
22656         memcoll: clarify sizes versus lengths, document better, and tweak perf
22657         * lib/memcoll.c (strcoll_loop, memcoll0):
22658         Improve quality of descriptive comments.  Name variables
22659         consistently as to whether they are lengths (which do not include
22660         terminating null) versus sizes (which do).
22661         * lib/xmemcoll.c (xmemcoll0): Likewise.
22662         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22663         returned when s1size == 0; this is easier to compile and saves
22664         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22665
22666 2010-07-12  Bruno Haible  <bruno@clisp.org>
22667
22668         Tests for module '_Exit'.
22669         * modules/_Exit-tests: New file.
22670         * tests/test-_Exit.sh: New file.
22671         * tests/test-_Exit.c: New file.
22672
22673         New module '_Exit'.
22674         * lib/stdlib.in.h (__attribute__): New macro.
22675         (_Exit): New declaration.
22676         * lib/_Exit.c: New file.
22677         * m4/_Exit.m4: New file.
22678         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22679         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22680         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22681         * modules/_Exit: New file.
22682         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22683         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22684
22685 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22686
22687         strtod: make it more-accurate typically, and don't require libm
22688         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22689         Include limits.h.  Don't include string.h.
22690         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22691         (locale_isspace): New function, so that no casts are needed to
22692         check whether *s is a space.
22693         (ldexp): Provide an unused dummy if not available.
22694         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22695         (strtod): Use them.  This implementation prefers to use the
22696         underlying strtod if available, falling back on our own code
22697         only to fix known bugs.  This is more likely to produce an
22698         accurate result.  Also, it avoids the use of libm functions.
22699         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22700         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22701         was absent, but it caused a test failure with coreutils.
22702         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22703         with libm.
22704         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22705         * modules/strtod-tests (Makefile.am): Likewise.
22706
22707 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22708             Bruno Haible  <bruno@clisp.org>
22709
22710         unistr/u8-strchr: Optimize ASCII argument case.
22711         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22712
22713 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22714
22715         (x)memcoll: minor tweaks
22716         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22717         is after the type that it qualifies.
22718         (memcoll0): Likewise.
22719         * lib/memcoll.h (memcoll0): Likewise.
22720         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22721         * lib/xmemcoll.h (xmemcoll0): Likewise.
22722         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22723         differs from memcoll in that the NUL byte is part of the argument.
22724         Omit the abort-checks, as performance is a real issue here.  Plus,
22725         the checks were wrong anyway (an off-by-one error).  Omit local
22726         variable 'diff', as it's a bit clearer that way.
22727         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22728         no longer needed.
22729
22730 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22731
22732         (x)memcoll: speedup when input is known to be NUL delimited
22733         * lib/memcoll.c: Include stdlib.
22734         (memcoll0): New function.
22735         (strcoll_loop): New function, refactored for use in both memcoll
22736         and memcoll0.
22737         * lib/memcoll.h (memcoll0): Add prototype.
22738         * lib/xmemcoll.c (xmemcoll0): New function.
22739         (collate_error): New function, refactored for use in both xmemcoll
22740         and xmemcoll0.
22741         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22742         * m4/memcoll.m4: add inline invocation.
22743
22744 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22745
22746         * build-aux/bootstrap: Remove any local translations
22747         from the translation project synchronization directory,
22748         so that local only translations are not distributed.
22749
22750 2010-07-04  Bruno Haible  <bruno@clisp.org>
22751
22752         fsusage: Clarify which code applies to which platforms.
22753         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22754         platform.
22755         * lib/fsusage.c (get_fs_usage): Likewise.
22756
22757 2010-07-04  Bruno Haible  <bruno@clisp.org>
22758
22759         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22760         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22761         Reported by Martin Lambers <marlam@marlam.de>.
22762
22763 2010-07-04  Jim Meyering  <meyering@redhat.com>
22764
22765         hash: once again explicitly disallow insertion of NULL
22766         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22767         inserting a NULL pointer cannot work with these functions.
22768         Add a comment with details.
22769         This reverts part of the 2010-07-01 commit, 5bef1a35
22770         "hash: extend module to deal with non-pointer keys".
22771
22772 2010-07-01  Bruno Haible  <bruno@clisp.org>
22773
22774         stdbool: Update doc.
22775         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22776         Info from Christian Weisgerber <naddy@mips.inka.de>.
22777
22778 2010-07-01  Jim Meyering  <meyering@redhat.com>
22779
22780         hash: extend module to deal with non-pointer keys
22781         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22782         but that allows insertion of non-pointer entries.
22783         Do not disallow an ENTRY value of NULL.
22784         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22785         * lib/hash.h (hash_insert0): Declare.
22786
22787 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22788
22789         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22790         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22791         not present (i.e. with autoconf 2.59 and when using gettextize, not
22792         gnulib), require AC_GNU_SOURCE instead.
22793
22794 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22795
22796         idpriv-drop: Fix tests.
22797         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22798         not to the test-idpriv-droptemp program.
22799
22800 2010-06-29  Bruno Haible  <bruno@clisp.org>
22801
22802         string: Fix syntax error with g++ 2.96.
22803         * lib/string.in.h (__pure__): Remove definition.
22804         (_GL_ATTRIBUTE_PURE): New macro.
22805         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22806         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22807         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22808
22809 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22810
22811         unitypes: Fix bug introduced on 2010-05-18.
22812         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22813
22814 2010-06-22  Eric Blake  <eblake@redhat.com>
22815
22816         memmem: slight optimization
22817         * lib/str-two-way.h (critical_factorization): Update comments.
22818         Reduce work during factorization phase.
22819         Reported by Carlos Bueno <carlos@bueno.org>.
22820
22821 2010-06-21  Bruno Haible  <bruno@clisp.org>
22822
22823         Fix HAVE_CALLOC_POSIX misnomer.
22824         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22825         !HAVE_CALLOC_POSIX.
22826         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22827         HAVE_CALLOC_POSIX.
22828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22829         instead of HAVE_CALLOC_POSIX.
22830         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22831         HAVE_CALLOC_POSIX.
22832
22833         Use modern idiom for calloc() replacement.
22834         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22835         AC_FUNC_CALLOC.
22836         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22837         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22838         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22839         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22840         (gl_REPLACE_CALLOC): New macro.
22841
22842 2010-06-21  Bruno Haible  <bruno@clisp.org>
22843
22844         Fix HAVE_REALLOC_POSIX misnomer.
22845         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22846         !HAVE_REALLOC_POSIX.
22847         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22848         HAVE_REALLOC_POSIX.
22849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22850         instead of HAVE_REALLOC_POSIX.
22851         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22852         HAVE_REALLOC_POSIX.
22853
22854         Use modern idiom for realloc() replacement.
22855         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22856         AC_FUNC_REALLOC.
22857         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22858         Autoconf's AC_FUNC_REALLOC.
22859         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22860         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22861         (gl_REPLACE_REALLOC): New macro.
22862         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22863
22864 2010-06-21  Bruno Haible  <bruno@clisp.org>
22865
22866         Fix HAVE_MALLOC_POSIX misnomer.
22867         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22868         !HAVE_MALLOC_POSIX.
22869         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22870         HAVE_MALLOC_POSIX.
22871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22872         instead of HAVE_MALLOC_POSIX.
22873         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22874         HAVE_MALLOC_POSIX.
22875
22876         Use modern idiom for malloc() replacement.
22877         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22878         AC_FUNC_MALLOC.
22879         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22880         Autoconf's AC_FUNC_MALLOC.
22881         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22882         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22883         (gl_REPLACE_MALLOC): New macro.
22884         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22885
22886 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22887
22888         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22889         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22890         This macro takes 3 arguments, not 4.
22891
22892 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22893
22894         ipv6: fix detection under mingw
22895         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22896         in6_addr.
22897
22898 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22899
22900         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22901         that strtod() works when cross-compiling to a glibc version known
22902         to work.
22903
22904 2010-06-15  Bruno Haible  <bruno@clisp.org>
22905
22906         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22907
22908 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22909
22910         select: Correct timeout.
22911         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22912
22913 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22914
22915         git-version-gen: init shell var to avoid env var influence
22916         * build-aux/git-version-gen (v): Init shell var to empty.
22917
22918 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22919
22920         priv-set: Don't assume that priv.h exists merely because getppriv does.
22921         See Jan Andersen's bug report about AIX 5L in
22922         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22923         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22924         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22925         * lib/priv-set.h: Likewise.
22926         * tests/test-priv-set.c: Likewise.
22927
22928 2010-06-13  Bruno Haible  <bruno@clisp.org>
22929
22930         relocatable: Make it easier to test whether to install wrappers.
22931         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22932         RELOCATABLE_VIA_WRAPPER.
22933
22934 2010-06-13  Bruno Haible  <bruno@clisp.org>
22935
22936         gnulib-tool: Display specified modules and dependencies differently.
22937         * gnulib-tool (func_show_module_list): New function.
22938         (func_import, func_create_testdir): Invoke it.
22939         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22940
22941 2010-06-13  Bruno Haible  <bruno@clisp.org>
22942
22943         gnulib-tool: Align code of func_import and func_create_testdir.
22944         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22945         specified_modules.
22946
22947 2010-06-12  Jim Meyering  <meyering@redhat.com>
22948
22949         test-inttostr: avoid spurious failure on Solaris 9
22950         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22951         to accept "%ju".  Reported by Bruno Haible.
22952
22953 2010-06-11  Jim Meyering  <meyering@redhat.com>
22954
22955         test-sys_socket: mark variables as used more readably
22956         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22957         as "used" explicitly via (void) statement casts.  This is more
22958         readable than using them in an artificial return expression.
22959         Suggestion from Bruno Haible.
22960
22961 2010-06-11  Bruno Haible  <bruno@clisp.org>
22962
22963         Avoid some more warnings from "gcc -Wwrite-strings".
22964         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22965         to 'const char *'.
22966         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22967         * tests/test-c-strcasestr.c (main): Likewise.
22968         * tests/test-mbscasestr1.c (main): Likewise.
22969         * tests/test-mbscasestr2.c (main): Likewise.
22970         * tests/test-memmem.c (main): Likewise.
22971         * tests/test-strstr.c (main): Likewise.
22972         * tests/test-strcasestr.c (main): Likewise.
22973
22974 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22975
22976         init.sh: change framework_failure_ to fail with status 99, not 1
22977         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22978         automake's parallel-tests rule that this is an unexpected failure,
22979         even if the test is listed in XFAIL_TESTS.
22980
22981 2010-06-11  Jim Meyering  <meyering@redhat.com>
22982
22983         test-inttostr: avoid warnings about 4-6KB literal strings
22984         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22985         Include "macros.h", for its definition of ASSERT.
22986         (CK): s/assert/ASSERT/
22987         * modules/inttostr-tests (Files): Add macros.h.
22988
22989         init.sh: don't use $ME_ or skip_ before they are defined
22990         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22991         their first uses.  Also hoist their companions: warn_, fail_,
22992         framework_failure_, $stderr_fileno.  Prompted by a patch from
22993         Stefano Lattarini.
22994
22995         test-sys_socket: avoid set-but-not-used warnings from gcc
22996         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22997         avoid warning about set-but-not-used variables.
22998
22999         test-xvasprintf: avoid 'const' discard warnings
23000         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23001         "const" when assigning from literal strings.
23002         (test_xasprintf): Add "void" in function argument list to placate
23003         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23004
23005         tests: avoid compilation warnings in argmatch and exclude tests...
23006         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23007         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23008         Since it always exits, declare with the "noreturn" attribute.
23009         * tests/test-argmatch.c: Likewise.
23010
23011         tests: avoid 'const' discard warnings in mbsstr tests
23012         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23013         * tests/test-mbsstr2.c (main): Likewise.
23014
23015         test-verify: avoid warning from gcc's -Wmissing-declarations
23016         * tests/test-verify.c (function): Declare to be static.
23017
23018         test-inttostr.c: include <string.h> for use of strcmp
23019         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23020
23021         test-linkat: avoid failed assertion on "other" architectures
23022         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23023         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23024         sparc: https://bugs.launchpad.net/bugs/591968
23025
23026 2010-06-11  Jim Meyering  <meyering@redhat.com>
23027
23028         printf.m4: avoid autoconf's "Expanded Before Required" warning
23029         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23030         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23031         autoconf warning.
23032
23033 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23034
23035         Replacement header templates are now named with ".in", not "_".
23036         * doc/gnulib-intro.texi: Correct.
23037
23038 2010-06-10  Jim Meyering  <meyering@redhat.com>
23039
23040         inttostr-tests: depend on snprintf, not snprintf-posix
23041         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23042         snprintf-posix, to avoid this aclocal failure:
23043           missing file gnulib-tests/vasnprintf.c
23044           configure.ac:45: error: expected source file, required through \
23045           AC_LIBSOURCES, not found
23046
23047 2010-06-10  Jim Meyering  <meyering@redhat.com>
23048
23049         inttostr: add a new function, inttostr, and tests
23050         The namesake function was not available.  The existence of the
23051         template file, inttostr.c makes its addition nontrivial.
23052         * lib/anytostr.c: Rename from inttostr.c.
23053         (anytostr): Rename from inttostr.
23054         * lib/inttostr.c: New file.
23055         * modules/inttostr (Files): Add anytostr.c.
23056         (Makefile.am): Set lib_SOURCES instead of ...
23057         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23058         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23059         * lib/offtostr.c: Likewise.
23060         * lib/uinttostr.c: Likewise.
23061         * lib/umaxtostr.c: Likewise.
23062         * modules/inttostr-tests: New file.
23063         * tests/test-inttostr.c: New file.  Test these functions.
23064
23065 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23066             Bruno Haible  <bruno@clisp.org>
23067
23068         Add "Extending Gnulib" chapter to manual.
23069         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23070         chapter.
23071         (Extending Gnulib): New chapter.
23072         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23073         chapter.
23074
23075 2010-06-09  Bruno Haible  <bruno@clisp.org>
23076
23077         Avoid relocwrapper link errors due to gnulib replacement functions.
23078         * lib/areadlink.c: Use the system's malloc, realloc functions.
23079         (areadlink): Set errno to ENOMEM explicitly.
23080         * modules/areadlink (Depends-on): Remove malloc-posix.
23081         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23082
23083 2010-06-09  Bruno Haible  <bruno@clisp.org>
23084
23085         Avoid relocwrapper link errors due to gnulib replacement functions.
23086         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23087         * lib/malloca.c: Likewise.
23088         * lib/relocatable.c: Likewise.
23089         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23090         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23091         * lib/setenv.c: Use the system's malloc, realloc functions.
23092         * lib/strerror.c: Use the system's sprintf function.
23093         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23094
23095 2010-06-04  Bruno Haible  <bruno@clisp.org>
23096
23097         Prefer documented low-level autoconf macro names.
23098         * m4/lib-link.m4: Use m4_translit instead of translit.
23099         * m4/environ.m4: Likewise.
23100         * m4/mathfunc.m4: Likewise.
23101         * m4/onceonly.m4: Likewise.
23102         * m4/stdint.m4: Likewise.
23103         Suggested by Eric Blake.
23104
23105 2010-06-04  Martin Lambers  <marlam@marlam.de>
23106             Bruno Haible  <bruno@clisp.org>
23107
23108         havelib: Allow library names with '+' characters.
23109         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23110         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23111
23112 2010-06-09  Bruno Haible  <bruno@clisp.org>
23113
23114         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23115         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23116         realloc failed.
23117
23118 2010-06-08  Peter Simons  <simons@cryp.to>
23119
23120         maint.mk: make the news-check rule more configurable
23121         * top/maint.mk (news-check-lines-spec): New variable.
23122         (news-check): Use "sed -n 1,10p" in place of "head".
23123
23124 2010-06-07  Jim Meyering  <meyering@redhat.com>
23125
23126         do-release-commit-and-tag: fix typo in --help
23127         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23128
23129         regex: avoid new dead-code warning with gcc-4.6.0
23130         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23131         if-block containing a while-loop.  It's been unused for at least
23132         5 years.
23133
23134 2010-06-05  Bruno Haible  <bruno@clisp.org>
23135
23136         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23137         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23138
23139 2010-06-04  Bruno Haible  <bruno@clisp.org>
23140
23141         Update to GNU gettext 0.18.1.
23142         * modules/gettext (configure.ac): Require gettext infrastructure from
23143         version 0.18.1.
23144
23145 2010-06-03  Bruno Haible  <bruno@clisp.org>
23146
23147         Don't use AC_LIBOBJ with file names in subdirectories.
23148         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23149         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23150         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23151         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23152         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23153         gl_LIBUNISTRING_LIBSOURCE.
23154         (Makefile.am): Augment lib_SOURCES here, conditionally.
23155         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23156
23157 2010-06-03  Bruno Haible  <bruno@clisp.org>
23158
23159         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23160         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23161         expansion does not end with a newline.
23162         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23163         unnecessary newline.
23164
23165 2010-06-03  Bruno Haible  <bruno@clisp.org>
23166
23167         Reduce dependencies.
23168         * tests/test-quotearg.h: New file, extracted from
23169         tests/test-quotearg.c.
23170         * tests/test-quotearg-simple.c: New file, extracted from
23171         tests/test-quotearg.c.
23172         * tests/test-quotearg.c: Don't include <ctype.h>.
23173         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23174         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23175         use_quote_double_quotes, use_quotearg_colon): Moved to
23176         tests/test-quotearg.h.
23177         (results_g, flag_results, custom_quotes, custom_results): Moved
23178         to tests/test-quotearg-simple.c.
23179         (main): Moved the part that does not depend on gettext to
23180         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23181         performed.
23182         * modules/quotearg-simple: New file.
23183         * modules/quotearg-simple-tests: New file.
23184         * modules/quotearg (Depends-on): Add quotearg-simple.
23185         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23186         (Files): Add tests/test-quotearg.h.
23187         Reported by Paolo Bonzini.
23188
23189 2010-06-03  Bruno Haible  <bruno@clisp.org>
23190
23191         Reduce dependencies.
23192         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23193
23194 2010-06-03  Bruno Haible  <bruno@clisp.org>
23195
23196         time: Undefine more broken macros.
23197         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23198         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23199         Reported by Eric Blake.
23200
23201 2010-06-03  Bruno Haible  <bruno@clisp.org>
23202
23203         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23204         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23205         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23206         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23207         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23208         Reported by Ludovic Courtès <ludo@gnu.org>.
23209
23210 2010-06-02  Eric Blake  <eblake@redhat.com>
23211
23212         time: work with mingw + pthreads-win32 library
23213         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23214         if timespec is defined only in pthread.h.
23215         * modules/time (Makefile.am): Substitute it.
23216         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23217         <pthread.h>, when needed.
23218         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23219         from the library.
23220
23221 2010-05-31  Bruno Haible  <bruno@clisp.org>
23222
23223         Avoid expanding two macros in the wrong order.
23224         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23225         gl_LIBUNISTRING if it is defined.
23226         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23227         autoconf >= 2.64.
23228         Reported by Ludovic Courtès <ludo@gnu.org>.
23229
23230 2010-05-27  Jim Meyering  <meyering@redhat.com>
23231
23232         maint.mk: also prohibit "#undef" of always-defined symbols
23233         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23234         Allow more than one space before the symbol name.
23235         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23236         the regexp uses alternation.
23237
23238 2010-05-26  Eric Blake  <eblake@redhat.com>
23239
23240         maint.mk: avoid echo -e
23241         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23242         Convert all uses of echo -* to printf.
23243         Reported by Matthias Bolte.
23244
23245 2010-05-25  Bruno Haible  <bruno@clisp.org>
23246
23247         Update to GNU gettext 0.18, part 2.
23248         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23249         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23250
23251 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23252
23253         Add missing include in test-pwrite.c.
23254         * tests/test-pwrite.c: Include string.h, for strcmp.
23255
23256 2010-05-24  Bruno Haible  <bruno@clisp.org>
23257
23258         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23259
23260 2010-05-24  Bruno Haible  <bruno@clisp.org>
23261
23262         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23263         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23264         iconveh_error argument.
23265         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23266         U_STRCONV_TO_LOCALE.
23267         * lib/unistr/u16-strcoll.c: Likewise.
23268         * lib/unistr/u32-strcoll.c: Likewise.
23269         * modules/unistr/u8-strcoll (Depends-on): Add
23270         uniconv/u8-strconv-to-enc, localcharset. Remove
23271         uniconv/u8-strconv-to-locale.
23272         (configure.ac): Bump version number.
23273         * modules/unistr/u16-strcoll (Depends-on): Add
23274         uniconv/u16-strconv-to-enc, localcharset. Remove
23275         uniconv/u16-strconv-to-locale.
23276         (configure.ac): Bump version number.
23277         * modules/unistr/u32-strcoll (Depends-on): Add
23278         uniconv/u32-strconv-to-enc, localcharset. Remove
23279         uniconv/u32-strconv-to-locale.
23280         (configure.ac): Bump version number.
23281
23282 2010-05-24  Bruno Haible  <bruno@clisp.org>
23283
23284         Avoid a test failure on NetBSD 5.0.
23285         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23286         an iconv() bug.
23287
23288 2010-05-24  Bruno Haible  <bruno@clisp.org>
23289
23290         Adjust #include directive style.
23291         * modules/regex (Includes): Recommend to write <regex.h>.
23292
23293 2010-05-24  Bruno Haible  <bruno@clisp.org>
23294
23295         regex: Don't require alloca.
23296         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23297         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23298         only inside if (0).
23299
23300 2010-05-23  Jim Meyering  <meyering@redhat.com>
23301
23302         test-renameat.c: include <sys/stat.h>
23303         * tests/test-renameat.c: Include <sys/stat.h>; required for
23304         definition of S_IS* macros.
23305
23306 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23307
23308         Update maintainer documentation for 'relocatable-prog' module.
23309         * doc/relocatable-maint.texi: Update.
23310         Comments by Bruno Haible.
23311
23312 2010-05-23  Bruno Haible  <bruno@clisp.org>
23313
23314         git-merge-changelog: Enable --split-merged-entry by default.
23315         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23316         (usage): Don't mention this option any more.
23317         Reported by Ralf Wildenhues.
23318
23319 2010-05-23  Jim Meyering  <meyering@redhat.com>
23320
23321         test-pwrite: do not leave behind a test file named "out"
23322         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23323         The trivial-looking use of init.sh is really necessary.
23324         It ensures that the temporary file, "out", is created in
23325         a temporary directory, and removed upon termination.
23326         * tests/test-pwrite.sh: Re-add file.
23327         * modules/pwrite-tests: Reference it.
23328
23329 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23330
23331         Fix output redirection buglet in init.sh.
23332         * tests/init.sh: Fix redirection of stderr.
23333
23334 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23335
23336         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23337
23338 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23339
23340         * modules/valgrind-tests: New file.
23341         * m4/valgrind-tests.m4: New file.
23342         * doc/valgrind-tests.texi: New file.
23343         * doc/gnulib.texi (Running self-tests under valgrind): New
23344         section.
23345
23346 2010-05-19  Bruno Haible  <bruno@clisp.org>
23347
23348         Clean up dead code in recent commit.
23349         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23350         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23351         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23352         Suggested by Paolo Bonzini.
23353
23354 2010-05-19  Bruno Haible  <bruno@clisp.org>
23355
23356         Avoid valgrind error reports from libunistring.
23357         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23358         * modules/libunistring (Files): Add it.
23359         * modules/libunistring-optional (Files): Likewise.
23360
23361 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23362             Bruno Haible  <bruno@clisp.org>
23363
23364         New module 'libunistring-optional'.
23365         * modules/libunistring-optional: New file.
23366         * m4/libunistring-base.m4: New file.
23367         * m4/libunistring-optional.m4: New file.
23368         * lib/unicase.in.h: Renamed from lib/unicase.h.
23369         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23370         * lib/unictype.in.h: Renamed from lib/unictype.h.
23371         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23372         * lib/uniname.in.h: Renamed from lib/uniname.h.
23373         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23374         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23375         * lib/unistr.in.h: Renamed from lib/unistr.h.
23376         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23377         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23378         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23379         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23380         gl_LIBUNISTRING. If the library was found, determine the installed
23381         version and set LIBUNISTRING_VERSION.
23382         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23383         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23384         handle a configuration option --with-included-libunistring.
23385         * modules/libunistring (Files): Add m4/absolute-header.m4.
23386         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23387         Add m4/libunistring-base.m4.
23388         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23389         (Makefile.am): Build unicase.h from unicase.in.h.
23390         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23391         Add m4/libunistring-base.m4.
23392         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23393         (Makefile.am): Build uniconv.h from uniconv.in.h.
23394         * modules/unictype/base (Files): Use unictype.in.h instead of
23395         unictype.h. Add m4/libunistring-base.m4.
23396         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23397         (Makefile.am): Build unictype.h from unictype.in.h.
23398         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23399         Add m4/libunistring-base.m4.
23400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23401         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23402         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23403         Add m4/libunistring-base.m4.
23404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23405         (Makefile.am): Build uniname.h from uniname.in.h.
23406         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23407         Add m4/libunistring-base.m4.
23408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23409         (Makefile.am): Build uninorm.h from uninorm.in.h.
23410         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23411         unistdio.h. Add m4/libunistring-base.m4.
23412         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23413         (Makefile.am): Build unistdio.h from unistdio.in.h.
23414         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23415         Add m4/libunistring-base.m4.
23416         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23417         (Makefile.am): Build unistr.h from unistr.in.h.
23418         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23419         Add m4/libunistring-base.m4.
23420         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23421         (Makefile.am): Build unitypes.h from unitypes.in.h.
23422         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23423         Add m4/libunistring-base.m4.
23424         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23425         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23426         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23427         uniwidth.h. Add m4/libunistring-base.m4.
23428         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23429         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23430         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23431         instead of augmenting lib_SOURCES.
23432         * modules/unicase/empty-suffix-context: Likewise.
23433         * modules/unicase/locale-language: Likewise.
23434         * modules/unicase/tolower: Likewise.
23435         * modules/unicase/totitle: Likewise.
23436         * modules/unicase/toupper: Likewise.
23437         * modules/unicase/u8-casecmp: Likewise.
23438         * modules/unicase/u8-casecoll: Likewise.
23439         * modules/unicase/u8-casefold: Likewise.
23440         * modules/unicase/u8-casexfrm: Likewise.
23441         * modules/unicase/u8-ct-casefold: Likewise.
23442         * modules/unicase/u8-ct-tolower: Likewise.
23443         * modules/unicase/u8-ct-totitle: Likewise.
23444         * modules/unicase/u8-ct-toupper: Likewise.
23445         * modules/unicase/u8-is-cased: Likewise.
23446         * modules/unicase/u8-is-casefolded: Likewise.
23447         * modules/unicase/u8-is-lowercase: Likewise.
23448         * modules/unicase/u8-is-titlecase: Likewise.
23449         * modules/unicase/u8-is-uppercase: Likewise.
23450         * modules/unicase/u8-prefix-context: Likewise.
23451         * modules/unicase/u8-suffix-context: Likewise.
23452         * modules/unicase/u8-tolower: Likewise.
23453         * modules/unicase/u8-totitle: Likewise.
23454         * modules/unicase/u8-toupper: Likewise.
23455         * modules/unicase/u16-casecmp: Likewise.
23456         * modules/unicase/u16-casecoll: Likewise.
23457         * modules/unicase/u16-casefold: Likewise.
23458         * modules/unicase/u16-casexfrm: Likewise.
23459         * modules/unicase/u16-ct-casefold: Likewise.
23460         * modules/unicase/u16-ct-tolower: Likewise.
23461         * modules/unicase/u16-ct-totitle: Likewise.
23462         * modules/unicase/u16-ct-toupper: Likewise.
23463         * modules/unicase/u16-is-cased: Likewise.
23464         * modules/unicase/u16-is-casefolded: Likewise.
23465         * modules/unicase/u16-is-lowercase: Likewise.
23466         * modules/unicase/u16-is-titlecase: Likewise.
23467         * modules/unicase/u16-is-uppercase: Likewise.
23468         * modules/unicase/u16-prefix-context: Likewise.
23469         * modules/unicase/u16-suffix-context: Likewise.
23470         * modules/unicase/u16-tolower: Likewise.
23471         * modules/unicase/u16-totitle: Likewise.
23472         * modules/unicase/u16-toupper: Likewise.
23473         * modules/unicase/u32-casecmp: Likewise.
23474         * modules/unicase/u32-casecoll: Likewise.
23475         * modules/unicase/u32-casefold: Likewise.
23476         * modules/unicase/u32-casexfrm: Likewise.
23477         * modules/unicase/u32-ct-casefold: Likewise.
23478         * modules/unicase/u32-ct-tolower: Likewise.
23479         * modules/unicase/u32-ct-totitle: Likewise.
23480         * modules/unicase/u32-ct-toupper: Likewise.
23481         * modules/unicase/u32-is-cased: Likewise.
23482         * modules/unicase/u32-is-casefolded: Likewise.
23483         * modules/unicase/u32-is-lowercase: Likewise.
23484         * modules/unicase/u32-is-titlecase: Likewise.
23485         * modules/unicase/u32-is-uppercase: Likewise.
23486         * modules/unicase/u32-prefix-context: Likewise.
23487         * modules/unicase/u32-suffix-context: Likewise.
23488         * modules/unicase/u32-tolower: Likewise.
23489         * modules/unicase/u32-totitle: Likewise.
23490         * modules/unicase/u32-toupper: Likewise.
23491         * modules/unicase/ulc-casecmp: Likewise.
23492         * modules/unicase/ulc-casecoll: Likewise.
23493         * modules/unicase/ulc-casexfrm: Likewise.
23494         * modules/uniconv/u8-conv-from-enc: Likewise.
23495         * modules/uniconv/u8-conv-to-enc: Likewise.
23496         * modules/uniconv/u8-strconv-from-enc: Likewise.
23497         * modules/uniconv/u8-strconv-from-locale: Likewise.
23498         * modules/uniconv/u8-strconv-to-enc: Likewise.
23499         * modules/uniconv/u8-strconv-to-locale: Likewise.
23500         * modules/uniconv/u16-conv-from-enc: Likewise.
23501         * modules/uniconv/u16-conv-to-enc: Likewise.
23502         * modules/uniconv/u16-strconv-from-enc: Likewise.
23503         * modules/uniconv/u16-strconv-from-locale: Likewise.
23504         * modules/uniconv/u16-strconv-to-enc: Likewise.
23505         * modules/uniconv/u16-strconv-to-locale: Likewise.
23506         * modules/uniconv/u32-conv-from-enc: Likewise.
23507         * modules/uniconv/u32-conv-to-enc: Likewise.
23508         * modules/uniconv/u32-strconv-from-enc: Likewise.
23509         * modules/uniconv/u32-strconv-from-locale: Likewise.
23510         * modules/uniconv/u32-strconv-to-enc: Likewise.
23511         * modules/uniconv/u32-strconv-to-locale: Likewise.
23512         * modules/unictype/bidicategory-byname: Likewise.
23513         * modules/unictype/bidicategory-name: Likewise.
23514         * modules/unictype/bidicategory-of: Likewise.
23515         * modules/unictype/bidicategory-test: Likewise.
23516         * modules/unictype/block-list: Likewise.
23517         * modules/unictype/block-test: Likewise.
23518         * modules/unictype/category-C: Likewise.
23519         * modules/unictype/category-Cc: Likewise.
23520         * modules/unictype/category-Cf: Likewise.
23521         * modules/unictype/category-Cn: Likewise.
23522         * modules/unictype/category-Co: Likewise.
23523         * modules/unictype/category-Cs: Likewise.
23524         * modules/unictype/category-L: Likewise.
23525         * modules/unictype/category-Ll: Likewise.
23526         * modules/unictype/category-Lm: Likewise.
23527         * modules/unictype/category-Lo: Likewise.
23528         * modules/unictype/category-Lt: Likewise.
23529         * modules/unictype/category-Lu: Likewise.
23530         * modules/unictype/category-M: Likewise.
23531         * modules/unictype/category-Mc: Likewise.
23532         * modules/unictype/category-Me: Likewise.
23533         * modules/unictype/category-Mn: Likewise.
23534         * modules/unictype/category-N: Likewise.
23535         * modules/unictype/category-Nd: Likewise.
23536         * modules/unictype/category-Nl: Likewise.
23537         * modules/unictype/category-No: Likewise.
23538         * modules/unictype/category-P: Likewise.
23539         * modules/unictype/category-Pc: Likewise.
23540         * modules/unictype/category-Pd: Likewise.
23541         * modules/unictype/category-Pe: Likewise.
23542         * modules/unictype/category-Pf: Likewise.
23543         * modules/unictype/category-Pi: Likewise.
23544         * modules/unictype/category-Po: Likewise.
23545         * modules/unictype/category-Ps: Likewise.
23546         * modules/unictype/category-S: Likewise.
23547         * modules/unictype/category-Sc: Likewise.
23548         * modules/unictype/category-Sk: Likewise.
23549         * modules/unictype/category-Sm: Likewise.
23550         * modules/unictype/category-So: Likewise.
23551         * modules/unictype/category-Z: Likewise.
23552         * modules/unictype/category-Zl: Likewise.
23553         * modules/unictype/category-Zp: Likewise.
23554         * modules/unictype/category-Zs: Likewise.
23555         * modules/unictype/category-and: Likewise.
23556         * modules/unictype/category-and-not: Likewise.
23557         * modules/unictype/category-byname: Likewise.
23558         * modules/unictype/category-name: Likewise.
23559         * modules/unictype/category-none: Likewise.
23560         * modules/unictype/category-of: Likewise.
23561         * modules/unictype/category-or: Likewise.
23562         * modules/unictype/category-test: Likewise.
23563         * modules/unictype/combining-class: Likewise.
23564         * modules/unictype/ctype-alnum: Likewise.
23565         * modules/unictype/ctype-alpha: Likewise.
23566         * modules/unictype/ctype-blank: Likewise.
23567         * modules/unictype/ctype-cntrl: Likewise.
23568         * modules/unictype/ctype-digit: Likewise.
23569         * modules/unictype/ctype-graph: Likewise.
23570         * modules/unictype/ctype-lower: Likewise.
23571         * modules/unictype/ctype-print: Likewise.
23572         * modules/unictype/ctype-punct: Likewise.
23573         * modules/unictype/ctype-space: Likewise.
23574         * modules/unictype/ctype-upper: Likewise.
23575         * modules/unictype/ctype-xdigit: Likewise.
23576         * modules/unictype/decimal-digit: Likewise.
23577         * modules/unictype/digit: Likewise.
23578         * modules/unictype/mirror: Likewise.
23579         * modules/unictype/numeric: Likewise.
23580         * modules/unictype/property-alphabetic: Likewise.
23581         * modules/unictype/property-ascii-hex-digit: Likewise.
23582         * modules/unictype/property-bidi-arabic-digit: Likewise.
23583         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23584         * modules/unictype/property-bidi-block-separator: Likewise.
23585         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23586         * modules/unictype/property-bidi-common-separator: Likewise.
23587         * modules/unictype/property-bidi-control: Likewise.
23588         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23589         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23590         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23591         * modules/unictype/property-bidi-european-digit: Likewise.
23592         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23593         * modules/unictype/property-bidi-left-to-right: Likewise.
23594         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23595         * modules/unictype/property-bidi-other-neutral: Likewise.
23596         * modules/unictype/property-bidi-pdf: Likewise.
23597         * modules/unictype/property-bidi-segment-separator: Likewise.
23598         * modules/unictype/property-bidi-whitespace: Likewise.
23599         * modules/unictype/property-byname: Likewise.
23600         * modules/unictype/property-combining: Likewise.
23601         * modules/unictype/property-composite: Likewise.
23602         * modules/unictype/property-currency-symbol: Likewise.
23603         * modules/unictype/property-dash: Likewise.
23604         * modules/unictype/property-decimal-digit: Likewise.
23605         * modules/unictype/property-default-ignorable-code-point: Likewise.
23606         * modules/unictype/property-deprecated: Likewise.
23607         * modules/unictype/property-diacritic: Likewise.
23608         * modules/unictype/property-extender: Likewise.
23609         * modules/unictype/property-format-control: Likewise.
23610         * modules/unictype/property-grapheme-base: Likewise.
23611         * modules/unictype/property-grapheme-extend: Likewise.
23612         * modules/unictype/property-grapheme-link: Likewise.
23613         * modules/unictype/property-hex-digit: Likewise.
23614         * modules/unictype/property-hyphen: Likewise.
23615         * modules/unictype/property-id-continue: Likewise.
23616         * modules/unictype/property-id-start: Likewise.
23617         * modules/unictype/property-ideographic: Likewise.
23618         * modules/unictype/property-ids-binary-operator: Likewise.
23619         * modules/unictype/property-ids-trinary-operator: Likewise.
23620         * modules/unictype/property-ignorable-control: Likewise.
23621         * modules/unictype/property-iso-control: Likewise.
23622         * modules/unictype/property-join-control: Likewise.
23623         * modules/unictype/property-left-of-pair: Likewise.
23624         * modules/unictype/property-line-separator: Likewise.
23625         * modules/unictype/property-logical-order-exception: Likewise.
23626         * modules/unictype/property-lowercase: Likewise.
23627         * modules/unictype/property-math: Likewise.
23628         * modules/unictype/property-non-break: Likewise.
23629         * modules/unictype/property-not-a-character: Likewise.
23630         * modules/unictype/property-numeric: Likewise.
23631         * modules/unictype/property-other-alphabetic: Likewise.
23632         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23633         * modules/unictype/property-other-grapheme-extend: Likewise.
23634         * modules/unictype/property-other-id-continue: Likewise.
23635         * modules/unictype/property-other-id-start: Likewise.
23636         * modules/unictype/property-other-lowercase: Likewise.
23637         * modules/unictype/property-other-math: Likewise.
23638         * modules/unictype/property-other-uppercase: Likewise.
23639         * modules/unictype/property-paired-punctuation: Likewise.
23640         * modules/unictype/property-paragraph-separator: Likewise.
23641         * modules/unictype/property-pattern-syntax: Likewise.
23642         * modules/unictype/property-pattern-white-space: Likewise.
23643         * modules/unictype/property-private-use: Likewise.
23644         * modules/unictype/property-punctuation: Likewise.
23645         * modules/unictype/property-quotation-mark: Likewise.
23646         * modules/unictype/property-radical: Likewise.
23647         * modules/unictype/property-sentence-terminal: Likewise.
23648         * modules/unictype/property-soft-dotted: Likewise.
23649         * modules/unictype/property-space: Likewise.
23650         * modules/unictype/property-terminal-punctuation: Likewise.
23651         * modules/unictype/property-test: Likewise.
23652         * modules/unictype/property-titlecase: Likewise.
23653         * modules/unictype/property-unassigned-code-value: Likewise.
23654         * modules/unictype/property-unified-ideograph: Likewise.
23655         * modules/unictype/property-uppercase: Likewise.
23656         * modules/unictype/property-variation-selector: Likewise.
23657         * modules/unictype/property-white-space: Likewise.
23658         * modules/unictype/property-xid-continue: Likewise.
23659         * modules/unictype/property-xid-start: Likewise.
23660         * modules/unictype/property-zero-width: Likewise.
23661         * modules/unictype/scripts: Likewise.
23662         * modules/unictype/syntax-c-ident: Likewise.
23663         * modules/unictype/syntax-c-whitespace: Likewise.
23664         * modules/unictype/syntax-java-ident: Likewise.
23665         * modules/unictype/syntax-java-whitespace: Likewise.
23666         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23667         * modules/unilbrk/u8-width-linebreaks: Likewise.
23668         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23669         * modules/unilbrk/u16-width-linebreaks: Likewise.
23670         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23671         * modules/unilbrk/u32-width-linebreaks: Likewise.
23672         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23673         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23674         * modules/uniname/uniname: Likewise.
23675         * modules/uninorm/canonical-decomposition: Likewise.
23676         * modules/uninorm/composition: Likewise.
23677         * modules/uninorm/decomposing-form: Likewise.
23678         * modules/uninorm/decomposition: Likewise.
23679         * modules/uninorm/filter: Likewise.
23680         * modules/uninorm/nfc: Likewise.
23681         * modules/uninorm/nfd: Likewise.
23682         * modules/uninorm/nfkc: Likewise.
23683         * modules/uninorm/nfkd: Likewise.
23684         * modules/uninorm/u8-normalize: Likewise.
23685         * modules/uninorm/u8-normcmp: Likewise.
23686         * modules/uninorm/u8-normcoll: Likewise.
23687         * modules/uninorm/u8-normxfrm: Likewise.
23688         * modules/uninorm/u16-normalize: Likewise.
23689         * modules/uninorm/u16-normcmp: Likewise.
23690         * modules/uninorm/u16-normcoll: Likewise.
23691         * modules/uninorm/u16-normxfrm: Likewise.
23692         * modules/uninorm/u32-normalize: Likewise.
23693         * modules/uninorm/u32-normcmp: Likewise.
23694         * modules/uninorm/u32-normcoll: Likewise.
23695         * modules/uninorm/u32-normxfrm: Likewise.
23696         * modules/unistdio/u8-asnprintf: Likewise.
23697         * modules/unistdio/u8-asprintf: Likewise.
23698         * modules/unistdio/u8-snprintf: Likewise.
23699         * modules/unistdio/u8-sprintf: Likewise.
23700         * modules/unistdio/u8-u8-asnprintf: Likewise.
23701         * modules/unistdio/u8-u8-asprintf: Likewise.
23702         * modules/unistdio/u8-u8-snprintf: Likewise.
23703         * modules/unistdio/u8-u8-sprintf: Likewise.
23704         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23705         * modules/unistdio/u8-u8-vasprintf: Likewise.
23706         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23707         * modules/unistdio/u8-u8-vsprintf: Likewise.
23708         * modules/unistdio/u8-vasnprintf: Likewise.
23709         * modules/unistdio/u8-vasprintf: Likewise.
23710         * modules/unistdio/u8-vsnprintf: Likewise.
23711         * modules/unistdio/u8-vsprintf: Likewise.
23712         * modules/unistdio/u16-asnprintf: Likewise.
23713         * modules/unistdio/u16-asprintf: Likewise.
23714         * modules/unistdio/u16-snprintf: Likewise.
23715         * modules/unistdio/u16-sprintf: Likewise.
23716         * modules/unistdio/u16-u16-asnprintf: Likewise.
23717         * modules/unistdio/u16-u16-asprintf: Likewise.
23718         * modules/unistdio/u16-u16-snprintf: Likewise.
23719         * modules/unistdio/u16-u16-sprintf: Likewise.
23720         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23721         * modules/unistdio/u16-u16-vasprintf: Likewise.
23722         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23723         * modules/unistdio/u16-u16-vsprintf: Likewise.
23724         * modules/unistdio/u16-vasnprintf: Likewise.
23725         * modules/unistdio/u16-vasprintf: Likewise.
23726         * modules/unistdio/u16-vsnprintf: Likewise.
23727         * modules/unistdio/u16-vsprintf: Likewise.
23728         * modules/unistdio/u32-asnprintf: Likewise.
23729         * modules/unistdio/u32-asprintf: Likewise.
23730         * modules/unistdio/u32-snprintf: Likewise.
23731         * modules/unistdio/u32-sprintf: Likewise.
23732         * modules/unistdio/u32-u32-asnprintf: Likewise.
23733         * modules/unistdio/u32-u32-asprintf: Likewise.
23734         * modules/unistdio/u32-u32-snprintf: Likewise.
23735         * modules/unistdio/u32-u32-sprintf: Likewise.
23736         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23737         * modules/unistdio/u32-u32-vasprintf: Likewise.
23738         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23739         * modules/unistdio/u32-u32-vsprintf: Likewise.
23740         * modules/unistdio/u32-vasnprintf: Likewise.
23741         * modules/unistdio/u32-vasprintf: Likewise.
23742         * modules/unistdio/u32-vsnprintf: Likewise.
23743         * modules/unistdio/u32-vsprintf: Likewise.
23744         * modules/unistdio/ulc-asnprintf: Likewise.
23745         * modules/unistdio/ulc-asprintf: Likewise.
23746         * modules/unistdio/ulc-fprintf: Likewise.
23747         * modules/unistdio/ulc-snprintf: Likewise.
23748         * modules/unistdio/ulc-sprintf: Likewise.
23749         * modules/unistdio/ulc-vasnprintf: Likewise.
23750         * modules/unistdio/ulc-vasprintf: Likewise.
23751         * modules/unistdio/ulc-vfprintf: Likewise.
23752         * modules/unistdio/ulc-vsnprintf: Likewise.
23753         * modules/unistdio/ulc-vsprintf: Likewise.
23754         * modules/unistr/u8-check: Likewise.
23755         * modules/unistr/u8-chr: Likewise.
23756         * modules/unistr/u8-cmp: Likewise.
23757         * modules/unistr/u8-cmp2: Likewise.
23758         * modules/unistr/u8-cpy: Likewise.
23759         * modules/unistr/u8-cpy-alloc: Likewise.
23760         * modules/unistr/u8-endswith: Likewise.
23761         * modules/unistr/u8-mblen: Likewise.
23762         * modules/unistr/u8-mbsnlen: Likewise.
23763         * modules/unistr/u8-mbtouc: Likewise.
23764         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23765         * modules/unistr/u8-mbtoucr: Likewise.
23766         * modules/unistr/u8-move: Likewise.
23767         * modules/unistr/u8-next: Likewise.
23768         * modules/unistr/u8-prev: Likewise.
23769         * modules/unistr/u8-set: Likewise.
23770         * modules/unistr/u8-startswith: Likewise.
23771         * modules/unistr/u8-stpcpy: Likewise.
23772         * modules/unistr/u8-stpncpy: Likewise.
23773         * modules/unistr/u8-strcat: Likewise.
23774         * modules/unistr/u8-strchr: Likewise.
23775         * modules/unistr/u8-strcmp: Likewise.
23776         * modules/unistr/u8-strcoll: Likewise.
23777         * modules/unistr/u8-strcpy: Likewise.
23778         * modules/unistr/u8-strcspn: Likewise.
23779         * modules/unistr/u8-strdup: Likewise.
23780         * modules/unistr/u8-strlen: Likewise.
23781         * modules/unistr/u8-strmblen: Likewise.
23782         * modules/unistr/u8-strmbtouc: Likewise.
23783         * modules/unistr/u8-strncat: Likewise.
23784         * modules/unistr/u8-strncmp: Likewise.
23785         * modules/unistr/u8-strncpy: Likewise.
23786         * modules/unistr/u8-strnlen: Likewise.
23787         * modules/unistr/u8-strpbrk: Likewise.
23788         * modules/unistr/u8-strrchr: Likewise.
23789         * modules/unistr/u8-strspn: Likewise.
23790         * modules/unistr/u8-strstr: Likewise.
23791         * modules/unistr/u8-strtok: Likewise.
23792         * modules/unistr/u8-to-u16: Likewise.
23793         * modules/unistr/u8-to-u32: Likewise.
23794         * modules/unistr/u8-uctomb: Likewise.
23795         * modules/unistr/u16-check: Likewise.
23796         * modules/unistr/u16-chr: Likewise.
23797         * modules/unistr/u16-cmp: Likewise.
23798         * modules/unistr/u16-cmp2: Likewise.
23799         * modules/unistr/u16-cpy: Likewise.
23800         * modules/unistr/u16-cpy-alloc: Likewise.
23801         * modules/unistr/u16-endswith: Likewise.
23802         * modules/unistr/u16-mblen: Likewise.
23803         * modules/unistr/u16-mbsnlen: Likewise.
23804         * modules/unistr/u16-mbtouc: Likewise.
23805         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23806         * modules/unistr/u16-mbtoucr: Likewise.
23807         * modules/unistr/u16-move: Likewise.
23808         * modules/unistr/u16-next: Likewise.
23809         * modules/unistr/u16-prev: Likewise.
23810         * modules/unistr/u16-set: Likewise.
23811         * modules/unistr/u16-startswith: Likewise.
23812         * modules/unistr/u16-stpcpy: Likewise.
23813         * modules/unistr/u16-stpncpy: Likewise.
23814         * modules/unistr/u16-strcat: Likewise.
23815         * modules/unistr/u16-strchr: Likewise.
23816         * modules/unistr/u16-strcmp: Likewise.
23817         * modules/unistr/u16-strcoll: Likewise.
23818         * modules/unistr/u16-strcpy: Likewise.
23819         * modules/unistr/u16-strcspn: Likewise.
23820         * modules/unistr/u16-strdup: Likewise.
23821         * modules/unistr/u16-strlen: Likewise.
23822         * modules/unistr/u16-strmblen: Likewise.
23823         * modules/unistr/u16-strmbtouc: Likewise.
23824         * modules/unistr/u16-strncat: Likewise.
23825         * modules/unistr/u16-strncmp: Likewise.
23826         * modules/unistr/u16-strncpy: Likewise.
23827         * modules/unistr/u16-strnlen: Likewise.
23828         * modules/unistr/u16-strpbrk: Likewise.
23829         * modules/unistr/u16-strrchr: Likewise.
23830         * modules/unistr/u16-strspn: Likewise.
23831         * modules/unistr/u16-strstr: Likewise.
23832         * modules/unistr/u16-strtok: Likewise.
23833         * modules/unistr/u16-to-u32: Likewise.
23834         * modules/unistr/u16-to-u8: Likewise.
23835         * modules/unistr/u16-uctomb: Likewise.
23836         * modules/unistr/u32-check: Likewise.
23837         * modules/unistr/u32-chr: Likewise.
23838         * modules/unistr/u32-cmp: Likewise.
23839         * modules/unistr/u32-cmp2: Likewise.
23840         * modules/unistr/u32-cpy: Likewise.
23841         * modules/unistr/u32-cpy-alloc: Likewise.
23842         * modules/unistr/u32-endswith: Likewise.
23843         * modules/unistr/u32-mblen: Likewise.
23844         * modules/unistr/u32-mbsnlen: Likewise.
23845         * modules/unistr/u32-mbtouc: Likewise.
23846         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23847         * modules/unistr/u32-mbtoucr: Likewise.
23848         * modules/unistr/u32-move: Likewise.
23849         * modules/unistr/u32-next: Likewise.
23850         * modules/unistr/u32-prev: Likewise.
23851         * modules/unistr/u32-set: Likewise.
23852         * modules/unistr/u32-startswith: Likewise.
23853         * modules/unistr/u32-stpcpy: Likewise.
23854         * modules/unistr/u32-stpncpy: Likewise.
23855         * modules/unistr/u32-strcat: Likewise.
23856         * modules/unistr/u32-strchr: Likewise.
23857         * modules/unistr/u32-strcmp: Likewise.
23858         * modules/unistr/u32-strcoll: Likewise.
23859         * modules/unistr/u32-strcpy: Likewise.
23860         * modules/unistr/u32-strcspn: Likewise.
23861         * modules/unistr/u32-strdup: Likewise.
23862         * modules/unistr/u32-strlen: Likewise.
23863         * modules/unistr/u32-strmblen: Likewise.
23864         * modules/unistr/u32-strmbtouc: Likewise.
23865         * modules/unistr/u32-strncat: Likewise.
23866         * modules/unistr/u32-strncmp: Likewise.
23867         * modules/unistr/u32-strncpy: Likewise.
23868         * modules/unistr/u32-strnlen: Likewise.
23869         * modules/unistr/u32-strpbrk: Likewise.
23870         * modules/unistr/u32-strrchr: Likewise.
23871         * modules/unistr/u32-strspn: Likewise.
23872         * modules/unistr/u32-strstr: Likewise.
23873         * modules/unistr/u32-strtok: Likewise.
23874         * modules/unistr/u32-to-u16: Likewise.
23875         * modules/unistr/u32-to-u8: Likewise.
23876         * modules/unistr/u32-uctomb: Likewise.
23877         * modules/uniwbrk/u8-wordbreaks: Likewise.
23878         * modules/uniwbrk/u16-wordbreaks: Likewise.
23879         * modules/uniwbrk/u32-wordbreaks: Likewise.
23880         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23881         * modules/uniwbrk/wordbreak-property: Likewise.
23882         * modules/uniwidth/u8-strwidth: Likewise.
23883         * modules/uniwidth/u8-width: Likewise.
23884         * modules/uniwidth/u16-strwidth: Likewise.
23885         * modules/uniwidth/u16-width: Likewise.
23886         * modules/uniwidth/u32-strwidth: Likewise.
23887         * modules/uniwidth/u32-width: Likewise.
23888         * modules/uniwidth/width: Likewise.
23889         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23890         with $(LIBUNISTRING).
23891         * modules/unicase/ignorable-tests: Likewise.
23892         * modules/unicase/locale-language-tests: Likewise.
23893         * modules/unicase/tolower-tests: Likewise.
23894         * modules/unicase/totitle-tests: Likewise.
23895         * modules/unicase/toupper-tests: Likewise.
23896         * modules/unicase/u8-casecmp-tests: Likewise.
23897         * modules/unicase/u8-casecoll-tests: Likewise.
23898         * modules/unicase/u8-casefold-tests: Likewise.
23899         * modules/unicase/u8-is-cased-tests: Likewise.
23900         * modules/unicase/u8-is-casefolded-tests: Likewise.
23901         * modules/unicase/u8-is-lowercase-tests: Likewise.
23902         * modules/unicase/u8-is-titlecase-tests: Likewise.
23903         * modules/unicase/u8-is-uppercase-tests: Likewise.
23904         * modules/unicase/u8-tolower-tests: Likewise.
23905         * modules/unicase/u8-totitle-tests: Likewise.
23906         * modules/unicase/u8-toupper-tests: Likewise.
23907         * modules/unicase/u16-casecmp-tests: Likewise.
23908         * modules/unicase/u16-casecoll-tests: Likewise.
23909         * modules/unicase/u16-casefold-tests: Likewise.
23910         * modules/unicase/u16-is-cased-tests: Likewise.
23911         * modules/unicase/u16-is-casefolded-tests: Likewise.
23912         * modules/unicase/u16-is-lowercase-tests: Likewise.
23913         * modules/unicase/u16-is-titlecase-tests: Likewise.
23914         * modules/unicase/u16-is-uppercase-tests: Likewise.
23915         * modules/unicase/u16-tolower-tests: Likewise.
23916         * modules/unicase/u16-totitle-tests: Likewise.
23917         * modules/unicase/u16-toupper-tests: Likewise.
23918         * modules/unicase/u32-casecmp-tests: Likewise.
23919         * modules/unicase/u32-casecoll-tests: Likewise.
23920         * modules/unicase/u32-casefold-tests: Likewise.
23921         * modules/unicase/u32-is-cased-tests: Likewise.
23922         * modules/unicase/u32-is-casefolded-tests: Likewise.
23923         * modules/unicase/u32-is-lowercase-tests: Likewise.
23924         * modules/unicase/u32-is-titlecase-tests: Likewise.
23925         * modules/unicase/u32-is-uppercase-tests: Likewise.
23926         * modules/unicase/u32-tolower-tests: Likewise.
23927         * modules/unicase/u32-totitle-tests: Likewise.
23928         * modules/unicase/u32-toupper-tests: Likewise.
23929         * modules/unicase/ulc-casecmp-tests: Likewise.
23930         * modules/unicase/ulc-casecoll-tests: Likewise.
23931         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23932         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23933         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23934         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23935         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23936         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23937         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23938         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23939         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23940         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23941         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23942         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23943         * modules/unictype/bidicategory-byname-tests: Likewise.
23944         * modules/unictype/bidicategory-name-tests: Likewise.
23945         * modules/unictype/bidicategory-of-tests: Likewise.
23946         * modules/unictype/bidicategory-test-tests: Likewise.
23947         * modules/unictype/block-list-tests: Likewise.
23948         * modules/unictype/block-of-tests: Likewise.
23949         * modules/unictype/block-test-tests: Likewise.
23950         * modules/unictype/category-C-tests: Likewise.
23951         * modules/unictype/category-Cc-tests: Likewise.
23952         * modules/unictype/category-Cf-tests: Likewise.
23953         * modules/unictype/category-Cn-tests: Likewise.
23954         * modules/unictype/category-Co-tests: Likewise.
23955         * modules/unictype/category-Cs-tests: Likewise.
23956         * modules/unictype/category-L-tests: Likewise.
23957         * modules/unictype/category-Ll-tests: Likewise.
23958         * modules/unictype/category-Lm-tests: Likewise.
23959         * modules/unictype/category-Lo-tests: Likewise.
23960         * modules/unictype/category-Lt-tests: Likewise.
23961         * modules/unictype/category-Lu-tests: Likewise.
23962         * modules/unictype/category-M-tests: Likewise.
23963         * modules/unictype/category-Mc-tests: Likewise.
23964         * modules/unictype/category-Me-tests: Likewise.
23965         * modules/unictype/category-Mn-tests: Likewise.
23966         * modules/unictype/category-N-tests: Likewise.
23967         * modules/unictype/category-Nd-tests: Likewise.
23968         * modules/unictype/category-Nl-tests: Likewise.
23969         * modules/unictype/category-No-tests: Likewise.
23970         * modules/unictype/category-P-tests: Likewise.
23971         * modules/unictype/category-Pc-tests: Likewise.
23972         * modules/unictype/category-Pd-tests: Likewise.
23973         * modules/unictype/category-Pe-tests: Likewise.
23974         * modules/unictype/category-Pf-tests: Likewise.
23975         * modules/unictype/category-Pi-tests: Likewise.
23976         * modules/unictype/category-Po-tests: Likewise.
23977         * modules/unictype/category-Ps-tests: Likewise.
23978         * modules/unictype/category-S-tests: Likewise.
23979         * modules/unictype/category-Sc-tests: Likewise.
23980         * modules/unictype/category-Sk-tests: Likewise.
23981         * modules/unictype/category-Sm-tests: Likewise.
23982         * modules/unictype/category-So-tests: Likewise.
23983         * modules/unictype/category-Z-tests: Likewise.
23984         * modules/unictype/category-Zl-tests: Likewise.
23985         * modules/unictype/category-Zp-tests: Likewise.
23986         * modules/unictype/category-Zs-tests: Likewise.
23987         * modules/unictype/category-and-not-tests: Likewise.
23988         * modules/unictype/category-and-tests: Likewise.
23989         * modules/unictype/category-byname-tests: Likewise.
23990         * modules/unictype/category-name-tests: Likewise.
23991         * modules/unictype/category-none-tests: Likewise.
23992         * modules/unictype/category-of-tests: Likewise.
23993         * modules/unictype/category-or-tests: Likewise.
23994         * modules/unictype/category-test-withtable-tests: Likewise.
23995         * modules/unictype/combining-class-tests: Likewise.
23996         * modules/unictype/ctype-alnum-tests: Likewise.
23997         * modules/unictype/ctype-alpha-tests: Likewise.
23998         * modules/unictype/ctype-blank-tests: Likewise.
23999         * modules/unictype/ctype-cntrl-tests: Likewise.
24000         * modules/unictype/ctype-digit-tests: Likewise.
24001         * modules/unictype/ctype-graph-tests: Likewise.
24002         * modules/unictype/ctype-lower-tests: Likewise.
24003         * modules/unictype/ctype-print-tests: Likewise.
24004         * modules/unictype/ctype-punct-tests: Likewise.
24005         * modules/unictype/ctype-space-tests: Likewise.
24006         * modules/unictype/ctype-upper-tests: Likewise.
24007         * modules/unictype/ctype-xdigit-tests: Likewise.
24008         * modules/unictype/decimal-digit-tests: Likewise.
24009         * modules/unictype/digit-tests: Likewise.
24010         * modules/unictype/mirror-tests: Likewise.
24011         * modules/unictype/numeric-tests: Likewise.
24012         * modules/unictype/property-alphabetic-tests: Likewise.
24013         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24014         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24015         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24016         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24017         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24018         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24019         * modules/unictype/property-bidi-control-tests: Likewise.
24020         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24021         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24022         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24023         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24024         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24025         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24026         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24027         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24028         * modules/unictype/property-bidi-pdf-tests: Likewise.
24029         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24030         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24031         * modules/unictype/property-byname-tests: Likewise.
24032         * modules/unictype/property-combining-tests: Likewise.
24033         * modules/unictype/property-composite-tests: Likewise.
24034         * modules/unictype/property-currency-symbol-tests: Likewise.
24035         * modules/unictype/property-dash-tests: Likewise.
24036         * modules/unictype/property-decimal-digit-tests: Likewise.
24037         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24038         * modules/unictype/property-deprecated-tests: Likewise.
24039         * modules/unictype/property-diacritic-tests: Likewise.
24040         * modules/unictype/property-extender-tests: Likewise.
24041         * modules/unictype/property-format-control-tests: Likewise.
24042         * modules/unictype/property-grapheme-base-tests: Likewise.
24043         * modules/unictype/property-grapheme-extend-tests: Likewise.
24044         * modules/unictype/property-grapheme-link-tests: Likewise.
24045         * modules/unictype/property-hex-digit-tests: Likewise.
24046         * modules/unictype/property-hyphen-tests: Likewise.
24047         * modules/unictype/property-id-continue-tests: Likewise.
24048         * modules/unictype/property-id-start-tests: Likewise.
24049         * modules/unictype/property-ideographic-tests: Likewise.
24050         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24051         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24052         * modules/unictype/property-ignorable-control-tests: Likewise.
24053         * modules/unictype/property-iso-control-tests: Likewise.
24054         * modules/unictype/property-join-control-tests: Likewise.
24055         * modules/unictype/property-left-of-pair-tests: Likewise.
24056         * modules/unictype/property-line-separator-tests: Likewise.
24057         * modules/unictype/property-logical-order-exception-tests: Likewise.
24058         * modules/unictype/property-lowercase-tests: Likewise.
24059         * modules/unictype/property-math-tests: Likewise.
24060         * modules/unictype/property-non-break-tests: Likewise.
24061         * modules/unictype/property-not-a-character-tests: Likewise.
24062         * modules/unictype/property-numeric-tests: Likewise.
24063         * modules/unictype/property-other-alphabetic-tests: Likewise.
24064         * modules/unictype/property-other-default-ignorable-code-point-tests:
24065         Likewise.
24066         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24067         * modules/unictype/property-other-id-continue-tests: Likewise.
24068         * modules/unictype/property-other-id-start-tests: Likewise.
24069         * modules/unictype/property-other-lowercase-tests: Likewise.
24070         * modules/unictype/property-other-math-tests: Likewise.
24071         * modules/unictype/property-other-uppercase-tests: Likewise.
24072         * modules/unictype/property-paired-punctuation-tests: Likewise.
24073         * modules/unictype/property-paragraph-separator-tests: Likewise.
24074         * modules/unictype/property-pattern-syntax-tests: Likewise.
24075         * modules/unictype/property-pattern-white-space-tests: Likewise.
24076         * modules/unictype/property-private-use-tests: Likewise.
24077         * modules/unictype/property-punctuation-tests: Likewise.
24078         * modules/unictype/property-quotation-mark-tests: Likewise.
24079         * modules/unictype/property-radical-tests: Likewise.
24080         * modules/unictype/property-sentence-terminal-tests: Likewise.
24081         * modules/unictype/property-soft-dotted-tests: Likewise.
24082         * modules/unictype/property-space-tests: Likewise.
24083         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24084         * modules/unictype/property-test-tests: Likewise.
24085         * modules/unictype/property-titlecase-tests: Likewise.
24086         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24087         * modules/unictype/property-unified-ideograph-tests: Likewise.
24088         * modules/unictype/property-uppercase-tests: Likewise.
24089         * modules/unictype/property-variation-selector-tests: Likewise.
24090         * modules/unictype/property-white-space-tests: Likewise.
24091         * modules/unictype/property-xid-continue-tests: Likewise.
24092         * modules/unictype/property-xid-start-tests: Likewise.
24093         * modules/unictype/property-zero-width-tests: Likewise.
24094         * modules/unictype/scripts-tests: Likewise.
24095         * modules/unictype/syntax-c-ident-tests: Likewise.
24096         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24097         * modules/unictype/syntax-java-ident-tests: Likewise.
24098         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24099         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24100         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24101         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24102         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24103         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24104         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24105         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24106         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24107         * modules/uniname/uniname-tests: Likewise.
24108         * modules/uninorm/canonical-decomposition-tests: Likewise.
24109         * modules/uninorm/compat-decomposition-tests: Likewise.
24110         * modules/uninorm/composition-tests: Likewise.
24111         * modules/uninorm/decomposing-form-tests: Likewise.
24112         * modules/uninorm/decomposition-tests: Likewise.
24113         * modules/uninorm/filter-tests: Likewise.
24114         * modules/uninorm/nfc-tests: Likewise.
24115         * modules/uninorm/nfd-tests: Likewise.
24116         * modules/uninorm/nfkc-tests: Likewise.
24117         * modules/uninorm/nfkd-tests: Likewise.
24118         * modules/uninorm/u8-normcmp-tests: Likewise.
24119         * modules/uninorm/u8-normcoll-tests: Likewise.
24120         * modules/uninorm/u16-normcmp-tests: Likewise.
24121         * modules/uninorm/u16-normcoll-tests: Likewise.
24122         * modules/uninorm/u32-normcmp-tests: Likewise.
24123         * modules/uninorm/u32-normcoll-tests: Likewise.
24124         * modules/unistdio/u8-asnprintf-tests: Likewise.
24125         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24126         * modules/unistdio/u8-vasprintf-tests: Likewise.
24127         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24128         * modules/unistdio/u8-vsprintf-tests: Likewise.
24129         * modules/unistdio/u16-asnprintf-tests: Likewise.
24130         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24131         * modules/unistdio/u16-vasprintf-tests: Likewise.
24132         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24133         * modules/unistdio/u16-vsprintf-tests: Likewise.
24134         * modules/unistdio/u32-asnprintf-tests: Likewise.
24135         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24136         * modules/unistdio/u32-vasprintf-tests: Likewise.
24137         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24138         * modules/unistdio/u32-vsprintf-tests: Likewise.
24139         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24140         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24141         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24142         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24143         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24144         * modules/unistr/u8-check-tests: Likewise.
24145         * modules/unistr/u8-chr-tests: Likewise.
24146         * modules/unistr/u8-cmp-tests: Likewise.
24147         * modules/unistr/u8-cmp2-tests: Likewise.
24148         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24149         * modules/unistr/u8-cpy-tests: Likewise.
24150         * modules/unistr/u8-mblen-tests: Likewise.
24151         * modules/unistr/u8-mbsnlen-tests: Likewise.
24152         * modules/unistr/u8-mbtouc-tests: Likewise.
24153         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24154         * modules/unistr/u8-mbtoucr-tests: Likewise.
24155         * modules/unistr/u8-move-tests: Likewise.
24156         * modules/unistr/u8-next-tests: Likewise.
24157         * modules/unistr/u8-prev-tests: Likewise.
24158         * modules/unistr/u8-set-tests: Likewise.
24159         * modules/unistr/u8-stpcpy-tests: Likewise.
24160         * modules/unistr/u8-stpncpy-tests: Likewise.
24161         * modules/unistr/u8-strcat-tests: Likewise.
24162         * modules/unistr/u8-strcmp-tests: Likewise.
24163         * modules/unistr/u8-strcoll-tests: Likewise.
24164         * modules/unistr/u8-strcpy-tests: Likewise.
24165         * modules/unistr/u8-strdup-tests: Likewise.
24166         * modules/unistr/u8-strlen-tests: Likewise.
24167         * modules/unistr/u8-strmblen-tests: Likewise.
24168         * modules/unistr/u8-strmbtouc-tests: Likewise.
24169         * modules/unistr/u8-strncat-tests: Likewise.
24170         * modules/unistr/u8-strncmp-tests: Likewise.
24171         * modules/unistr/u8-strncpy-tests: Likewise.
24172         * modules/unistr/u8-strnlen-tests: Likewise.
24173         * modules/unistr/u8-to-u16-tests: Likewise.
24174         * modules/unistr/u8-to-u32-tests: Likewise.
24175         * modules/unistr/u8-uctomb-tests: Likewise.
24176         * modules/unistr/u16-check-tests: Likewise.
24177         * modules/unistr/u16-chr-tests: Likewise.
24178         * modules/unistr/u16-cmp-tests: Likewise.
24179         * modules/unistr/u16-cmp2-tests: Likewise.
24180         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24181         * modules/unistr/u16-cpy-tests: Likewise.
24182         * modules/unistr/u16-mblen-tests: Likewise.
24183         * modules/unistr/u16-mbsnlen-tests: Likewise.
24184         * modules/unistr/u16-mbtouc-tests: Likewise.
24185         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24186         * modules/unistr/u16-mbtoucr-tests: Likewise.
24187         * modules/unistr/u16-move-tests: Likewise.
24188         * modules/unistr/u16-next-tests: Likewise.
24189         * modules/unistr/u16-prev-tests: Likewise.
24190         * modules/unistr/u16-set-tests: Likewise.
24191         * modules/unistr/u16-stpcpy-tests: Likewise.
24192         * modules/unistr/u16-stpncpy-tests: Likewise.
24193         * modules/unistr/u16-strcat-tests: Likewise.
24194         * modules/unistr/u16-strcmp-tests: Likewise.
24195         * modules/unistr/u16-strcoll-tests: Likewise.
24196         * modules/unistr/u16-strcpy-tests: Likewise.
24197         * modules/unistr/u16-strdup-tests: Likewise.
24198         * modules/unistr/u16-strlen-tests: Likewise.
24199         * modules/unistr/u16-strmblen-tests: Likewise.
24200         * modules/unistr/u16-strmbtouc-tests: Likewise.
24201         * modules/unistr/u16-strncat-tests: Likewise.
24202         * modules/unistr/u16-strncmp-tests: Likewise.
24203         * modules/unistr/u16-strncpy-tests: Likewise.
24204         * modules/unistr/u16-strnlen-tests: Likewise.
24205         * modules/unistr/u16-to-u32-tests: Likewise.
24206         * modules/unistr/u16-to-u8-tests: Likewise.
24207         * modules/unistr/u16-uctomb-tests: Likewise.
24208         * modules/unistr/u32-check-tests: Likewise.
24209         * modules/unistr/u32-chr-tests: Likewise.
24210         * modules/unistr/u32-cmp-tests: Likewise.
24211         * modules/unistr/u32-cmp2-tests: Likewise.
24212         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24213         * modules/unistr/u32-cpy-tests: Likewise.
24214         * modules/unistr/u32-mblen-tests: Likewise.
24215         * modules/unistr/u32-mbsnlen-tests: Likewise.
24216         * modules/unistr/u32-mbtouc-tests: Likewise.
24217         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24218         * modules/unistr/u32-mbtoucr-tests: Likewise.
24219         * modules/unistr/u32-move-tests: Likewise.
24220         * modules/unistr/u32-next-tests: Likewise.
24221         * modules/unistr/u32-prev-tests: Likewise.
24222         * modules/unistr/u32-set-tests: Likewise.
24223         * modules/unistr/u32-stpcpy-tests: Likewise.
24224         * modules/unistr/u32-stpncpy-tests: Likewise.
24225         * modules/unistr/u32-strcat-tests: Likewise.
24226         * modules/unistr/u32-strcmp-tests: Likewise.
24227         * modules/unistr/u32-strcoll-tests: Likewise.
24228         * modules/unistr/u32-strcpy-tests: Likewise.
24229         * modules/unistr/u32-strdup-tests: Likewise.
24230         * modules/unistr/u32-strlen-tests: Likewise.
24231         * modules/unistr/u32-strmblen-tests: Likewise.
24232         * modules/unistr/u32-strmbtouc-tests: Likewise.
24233         * modules/unistr/u32-strncat-tests: Likewise.
24234         * modules/unistr/u32-strncmp-tests: Likewise.
24235         * modules/unistr/u32-strncpy-tests: Likewise.
24236         * modules/unistr/u32-strnlen-tests: Likewise.
24237         * modules/unistr/u32-to-u16-tests: Likewise.
24238         * modules/unistr/u32-to-u8-tests: Likewise.
24239         * modules/unistr/u32-uctomb-tests: Likewise.
24240         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24241         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24242         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24243         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24244         * modules/uniwidth/u8-strwidth-tests: Likewise.
24245         * modules/uniwidth/u8-width-tests: Likewise.
24246         * modules/uniwidth/u16-strwidth-tests: Likewise.
24247         * modules/uniwidth/u16-width-tests: Likewise.
24248         * modules/uniwidth/u32-strwidth-tests: Likewise.
24249         * modules/uniwidth/u32-width-tests: Likewise.
24250         * modules/uniwidth/width-tests: Likewise.
24251
24252 2010-05-18  Richard Jones  <rjones@redhat.com>
24253
24254         doc: users.txt: list hivex
24255         * users.txt: Add hivex.
24256
24257 2010-05-18  Richard Jones  <rjones@redhat.com>
24258
24259         doc: users.txt: list febootstrap
24260         * users.txt: Add febootstrap.
24261
24262 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24263
24264         bootstrap: fix an error when gnulib is not used as a git submodule
24265         * build-aux/bootstrap (gnulib_path): If its length is zero then
24266         assign "gnulib" to it.
24267         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24268
24269 2010-05-16  Bruno Haible  <bruno@clisp.org>
24270
24271         Avoid autoconf warnings about AM_ICONV.
24272         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24273         2.64.
24274
24275 2010-05-16  Bruno Haible  <bruno@clisp.org>
24276
24277         absolute-header: Make the macro usable in more situations.
24278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24279         from gl_ABSOLUTE_HEADER.
24280         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24281
24282 2010-05-16  James Youngman  <jay@gnu.org>
24283
24284         doc: update users.txt
24285         * users.txt: Add CSSC.
24286
24287 2010-05-16  Jim Meyering  <meyering@redhat.com>
24288
24289         init.sh: fix an error in the previous change; add more comments
24290         * tests/init.sh: Compare exit code in loop against 9, not 2.
24291         Patch by Bruno Haible.
24292         Make the two tests more similar by adding an empty "then" clause.
24293         Add comments.
24294
24295         init.sh: avoid unnecessary shell re-exec
24296         * tests/init.sh: Improve the re-exec-required check to first test the
24297         current shell.  If it passes the test, do not search for a shell that
24298         does pass, and do not re-exec.  This test is particularly contorted to
24299         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24300         of $(...) evokes a syntax error and causes immediate shell exit with
24301         status 2.  Bruno Haible reported that the re-exec made it impossible
24302         to single-step through any init.sh-using script.
24303
24304 2010-05-16  Bruno Haible  <bruno@clisp.org>
24305
24306         Fix collision between gnulib's and libintl's printf replacements.
24307         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24308         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24309         (printf): When using GNU C, map the __printf__ function to rpl_printf
24310         via __asm__. When not using GNU C, define rpl_printf instead of
24311         __printf__.
24312         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24313         commit.
24314         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24315         commit.
24316         * m4/asm-underscore.m4: New file.
24317         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24318         * modules/stdio (Files): Add m4/asm-underscore.m4.
24319         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24320         Reported by Ben Pfaff.
24321
24322 2010-05-16  Bruno Haible  <bruno@clisp.org>
24323
24324         verify: Avoid skipping the test on openSUSE 11.0.
24325         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24326
24327 2010-05-13  Bruno Haible  <bruno@clisp.org>
24328
24329         Avoid useless warnings from G++.
24330         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24331         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24332         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24333
24334 2010-05-11  Jim Meyering  <meyering@redhat.com>
24335
24336         maint.mk: tweak preceding change
24337         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24338         regexps tighter by anchoring at EOL, and make the new group "shy"
24339         for slightly decreased overhead.
24340
24341 2010-05-11  Eric Blake  <eblake@redhat.com>
24342
24343         maint.mk: gnulib doesn't guarantee NSIG
24344         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24345
24346 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24347
24348         test-pwrite.c: Remove unused variable declaration.
24349         * tests/test-pwrite.c (main): Remove read_buf declaration.
24350
24351         Remove useless test-pwrite.sh file.
24352         * tests/test-pwrite.sh: Delete file.
24353         * modules/pwrite-tests: Remove references.
24354         Reported by Bruno Haible.
24355
24356 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24357
24358         init.sh: fix a typo
24359         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24360
24361 2010-05-10  Jim Meyering  <meyering@redhat.com>
24362
24363         maint.mk: avoid using a temporary file in the always-defined-macros check
24364         * top/maint.mk (.re-defmac): Remove rule.
24365         (gl_trap_): Remove definition.
24366         (sc_prohibit_always-defined_macros): Rewrite not to create and
24367         depend on a temporary file.  Instead, depend on GNU grep's ability
24368         to read a list of regular expressions from stdin when given "-f -".
24369
24370 2010-05-09  Bruno Haible  <bruno@clisp.org>
24371
24372         Update to GNU gettext 0.18, part 1.
24373         * m4/gettext.m4: Update to GNU gettext 0.18.
24374         * m4/intl.m4: Likewise.
24375         * m4/po.m4: Likewise.
24376         * modules/gettext (Files): Add m4/fcntl-o.m4.
24377         (configure.ac): Require gettext infrastructure from version 0.18.
24378
24379 2010-05-09  Jim Meyering  <meyering@redhat.com>
24380
24381         init.sh: enable MALLOC_PERTURB_
24382         * tests/init.sh: Enable glibc's malloc-perturbing option.
24383
24384         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24385         With my recent change in init.sh from the two-line form:
24386             -#   : ${srcdir=.}
24387             -#   . "$srcdir/init.sh"; path_prepend_ .
24388             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24389         I noticed that using the one-line form would cause this test
24390         to fail with a false-positive, or to stop working altogether,
24391         depending on whether help-version changed or all the tests did.
24392         * top/maint.mk (_hv_regex): Remove this definition.
24393         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24394         (_hv_regex_strong): Use a stronger regex to check for conformance.
24395         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24396         Give a separate diagnostic for lack of conforming use.
24397
24398         maint.mk: prohibit definition of symbols defined by gnulib
24399         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24400         definition of symbols defined by gnulib.
24401
24402 2010-05-09  Bruno Haible  <bruno@clisp.org>
24403
24404         acl: Avoid test failure on Cygwin-hosted mingw.
24405         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24406
24407 2010-05-09  Bruno Haible  <bruno@clisp.org>
24408
24409         error: Use system's fcntl function.
24410         * lib/error.c (fcntl): Undefine.
24411
24412 2010-05-09  Jim Meyering  <meyering@redhat.com>
24413
24414         verify: adjust formatting to be more consistent
24415         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24416         argument-list '('s, and after one comma.
24417
24418 2010-05-09  Bruno Haible  <bruno@clisp.org>
24419
24420         error: More reliable output on mingw.
24421         * lib/error.c: Include <windows.h>.
24422         (is_open): New function.
24423         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24424         defined.
24425
24426 2010-05-09  Bruno Haible  <bruno@clisp.org>
24427
24428         vasnprintf: Fix syntax errors in libintl build on mingw.
24429         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24430         pad_ourselves and prec_ourselves after use.
24431
24432 2010-05-08  Bruno Haible  <bruno@clisp.org>
24433
24434         * lib/config.charset: Update comments for Cygwin 1.7.
24435         * lib/localcharset.c: Likewise.
24436
24437 2010-05-07  Jim Meyering  <meyering@redhat.com>
24438
24439         init.sh: improve comments
24440         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24441         . "${srcdir=.}/init.sh"; path_prepend_ .
24442         Add a note about path_prepend_ and the alternative of using
24443         TESTS_ENVIRONMENT.
24444
24445 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24446
24447         exclude: Unescape hashed patterns in wildcard mode.
24448         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24449         to the hash list.
24450         * tests/test-exclude8.sh: New test case.
24451         * modules/exclude-tests: Add new test.
24452
24453 2010-05-05  Eric Blake  <eblake@redhat.com>
24454
24455         verify: automate tests
24456         * modules/verify-tests: New module.
24457         * tests/test-verify.sh: New file.
24458         * tests/test-verify.c: Guard each negative test with a unique id.
24459         Also avoid warning about unused left hand of comma expressions.
24460
24461 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24462
24463         Further improvements to verify.h, suggested by Eric Blake.
24464         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24465         the GL_* versions, to avoid collision with OpenGL.
24466         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24467         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24468         than testing merely whether it's defined.
24469
24470         Modify verify.h to pacify gcc -Wredundant_decls.
24471         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24472         These use the prefix "GL_" since they're likely to be useful elsewhere.
24473         We may need to break them out into a different .h file.
24474         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24475         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24476         of verify_function__.
24477
24478 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24479
24480         Tests for module pwrite.
24481         * modules/pwrite-tests: New file.
24482         * tests/test-pwrite.sh: New file.
24483         * tests/test-pwrite.c: New file.
24484
24485         New module pwrite.
24486         * lib/unistd.in.h (pwrite): New declaration.
24487         * lib/pwrite.c: New file, from glibc with modifications.
24488         * m4/pwrite.m4: New file.
24489         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24490         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24491         REPLACE_PWRITE.
24492         * modules/pwrite: New file.
24493         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24494         REPLACE_PWRITE.
24495         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24496         * doc/posix-functions/pwrite.texi: Mention the new module.
24497
24498 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24499
24500         pread: Update documentation.
24501         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24502
24503 2010-05-04  Eric Blake  <eblake@redhat.com>
24504
24505         docs: update cygwin progress
24506         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24507         this bug.
24508         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24509         Added in cygwin 1.7.2.
24510         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24511         Likewise.
24512         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24513         Likewise.
24514         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24515         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24516         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24517         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24518         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24519         Mention nproc module.
24520         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24521         bug in cygwin 1.7.5 addition.
24522         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24523         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24524         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24525         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24526         1.7.5.
24527         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24528         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24529         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24530         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24531         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24532         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24533         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24534         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24535         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24536         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24537         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24538         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24539         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24540         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24541         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24542         Likewise.
24543         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24544         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24545         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24546         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24547         Likewise.
24548         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24549         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24550         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24551         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24552         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24553         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24554         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24555         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24556         Likewise.
24557         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24558         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24559         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24560         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24561         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24562         Likewise.
24563         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24564         Likewise.
24565         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24566         Likewise.
24567         * doc/glibc-functions/xdrrec_endofrecord.texi
24568         (xdrrec_endofrecord): Likewise.
24569         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24570         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24571         Likewise.
24572         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24573         Likewise.
24574
24575 2010-05-04  Jim Meyering  <meyering@redhat.com>
24576
24577         gendocs.sh: make its "-s FILE" option more useful
24578         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24579         $PACKAGE to reflect the probably-different basename of "FILE".
24580
24581 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24582
24583         bootstrap: don't ignore download_po_files failure
24584         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24585         failure.
24586
24587 2010-05-03  Jim Meyering  <meyering@redhat.com>
24588
24589         maint.mk: allow to pass options to gendocs.sh
24590         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24591         (gendocs_options_): New overridable variable.
24592
24593         gnu-web-doc-update: don't ignore configure or build failure
24594         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24595
24596         announce-gen: backslash-escape '@'s in --help output
24597         * build-aux/announce-gen: Fix syntax errors.
24598
24599         maint.mk, announce-gen: allow project-specific announcement mail headers
24600         * top/maint.mk (translation_project_): Define default.
24601         (announcement_Cc_, announcement_mail_headers_): Likewise.
24602         (announcement): Invoke announce-gen with new --mail-headers option.
24603         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24604
24605         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24606         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24607         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24608         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24609         line in the "err2" output file when running "make check" in verbose
24610         mode (i.e., with set -x enabled).
24611
24612 2010-05-03  Bruno Haible  <bruno@clisp.org>
24613
24614         wctob: Fix for weird platforms.
24615         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24616         argument value.
24617
24618 2010-05-03  Jim Meyering  <meyering@redhat.com>
24619
24620         maint.mk: prohibit unwarranted use of <strings.h>
24621         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24622         strings.h in a file that does not also use strcasecmp, strncasecmp,
24623         ffs or ffsll.
24624
24625         maint.mk: remove obsolete comments
24626         * top/maint.mk: Remove stale, commented-out rules.
24627
24628 2010-05-02  Bruno Haible  <bruno@clisp.org>
24629
24630         wcwidth: Declare also when it's aliased.
24631         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24632         macro.
24633
24634 2010-05-02  Bruno Haible  <bruno@clisp.org>
24635
24636         Fix regression from 2010-04-25.
24637         * gnulib-tool (func_modules_transitive_closure): Check the status of
24638         all modules, not only of the tests that are of the form foo-tests where
24639         foo is a module.
24640
24641 2010-05-02  Bruno Haible  <bruno@clisp.org>
24642
24643         wctob: Work around nasty Cygwin 1.7.2 bug.
24644         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24645         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24646
24647 2010-05-01  Bruno Haible  <bruno@clisp.org>
24648
24649         fpurge: Sharper test.
24650         * tests/test-fpurge.c (main): Add one more ftell check.
24651         * modules/fpurge-tests (Depends-on): Add ftell.
24652         Suggested by Eric Blake.
24653
24654 2010-05-01  Bruno Haible  <bruno@clisp.org>
24655
24656         ftello: Another test.
24657         * tests/test-ftello3.c: New file.
24658         * modules/ftello-tests (Files): Add it.
24659         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24660         MOSTLYCLEANFILES.
24661
24662         ftell: Another test.
24663         * tests/test-ftell3.c: New file.
24664         * modules/ftell-tests (Files): Add it.
24665         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24666         MOSTLYCLEANFILES.
24667
24668 2010-05-01  Bruno Haible  <bruno@clisp.org>
24669
24670         ftell, ftello: Work around Solaris bug.
24671         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24672         * lib/ftello.c: Include stdio-impl.h.
24673         (ftello): On Solaris, when _IOWRT is set, compute the result without
24674         looking at _IOREAD.
24675         * modules/ftello (Files): Add lib/stdio-impl.h.
24676         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24677         * doc/posix-functions/ftello.texi: Likewise.
24678         Reported by Eric Blake.
24679
24680 2010-05-01  Bruno Haible  <bruno@clisp.org>
24681
24682         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24683         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24684         the _IOWRT flag is also set.
24685
24686 2010-05-01  Bruno Haible  <bruno@clisp.org>
24687
24688         Fix doc about a HP-UX stdio bug.
24689         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24690         * doc/posix-functions/ftello.texi: Likewise.
24691
24692 2010-05-01  Bruno Haible  <bruno@clisp.org>
24693
24694         lseek test: Fix failure on Solaris.
24695         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24696         output.
24697
24698 2010-04-30  Jim Meyering  <meyering@redhat.com>
24699
24700         bootstrap: don't ignore failure to generate po*/Makevars
24701         * build-aux/bootstrap (with_gettext): Don't ignore failure
24702         to create po/Makevars or runtime-po/Makevars.
24703
24704 2010-04-29  Eric Blake  <eblake@redhat.com>
24705
24706         headers: relax license to LGPLv2+
24707         * modules/fcntl-h (License): Relax license.
24708         * modules/getopt-posix (License): Likewise.
24709         * modules/locale (License): Likewise.
24710         * modules/math (License): Likewise.
24711         * modules/pty (License): Likewise.
24712         * modules/sched (License): Likewise.
24713         * modules/search (License): Likewise.
24714         * modules/spawn (License): Likewise.
24715         * modules/stdarg (License): Likewise.
24716         * modules/sysexits (License): Likewise.
24717
24718 2010-04-29  Jim Meyering  <meyering@redhat.com>
24719
24720         inttypes: relax license to LGPLv2+
24721         * modules/inttypes (License): Relax license.
24722
24723 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24724
24725         * top/maint.mk (indent): Run twice to produce idempotent results.
24726
24727 2010-04-28  Bruno Haible  <bruno@clisp.org>
24728
24729         getdate: Generate getdate.c in the source directory.
24730         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24731         MOSTLYCLEANFILES.
24732         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24733
24734 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24735
24736         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24737         is not declared as a const *; avoid warnings in that case.
24738
24739 2010-04-28  Eric Blake  <eblake@redhat.com>
24740
24741         canonicalize-lgpl: avoid compiler warning
24742         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24743         declaration' / 'extraneous semicolon' warning with some compilers.
24744         Reported by Andreas Gruenbacher.
24745
24746 2010-04-28  Jim Meyering  <meyering@redhat.com>
24747
24748         init.sh: ensure a more reliable exit status when exiting via trap
24749         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24750         Inspired by patches from Dmitry V. Levin.
24751         Also trap on signal 3 (SIGQUIT).
24752
24753 2010-04-27  Bruno Haible  <bruno@clisp.org>
24754
24755         Update doc about utimes().
24756         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24757         'utimens' module.
24758         Reported by Andreas Gruenbacher <agruen@suse.de>.
24759
24760 2010-04-27  Eric Blake  <eblake@redhat.com>
24761
24762         full-read, full-write: relax license
24763         * modules/full-read (License): Drop to LGPLv2+.
24764         * modules/full-write (License): Likewise.
24765         * modules/safe-read (License): Likewise.
24766         * modules/safe-write (License): Likewise.
24767
24768         pthread: mention library for linking
24769         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24770
24771 2010-04-27  Jim Meyering  <meyering@redhat.com>
24772
24773         maint.mk: fix a bug introduced in last change
24774         * top/maint.mk (gl_assured_headers_): Now that all names are on
24775         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24776         is not anchored to end of word, it should be adequate.
24777
24778         maint.mk: avoid side-effect in latest syntax-check
24779         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24780         to run commands via $(shell...), and hence to incur cost only when
24781         the new rule is actually run.
24782
24783         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24784         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24785         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24786         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24787         (gl_assured_headers_, az_, AZ_): Define.
24788         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24789
24790 2010-04-26  Jim Meyering  <jim@meyering.net>
24791             Bruno Haible  <bruno@clisp.org>
24792
24793         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24794         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24795         Prompted by an exchange with Gilles Espinasse.
24796
24797 2010-04-26  Jim Meyering  <meyering@redhat.com>
24798
24799         git-version-gen: aesthetic tweak
24800         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24801         so that the command remains on a single line.
24802
24803 2010-04-26  Eric Blake  <eblake@redhat.com>
24804
24805         git-version-gen: allow use on EBCDIC hosts
24806         * build-aux/git-version-gen (dirty): Use literal rather than tying
24807         ourselves to ascii.
24808         Reported by Steve Goetze.
24809
24810 2010-04-25  Bruno Haible  <bruno@clisp.org>
24811
24812         netdb: Add support for GNULIB_POSIXCHECK.
24813         * lib/netdb.in.h: Include warn-on-use.h.
24814         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24815         functions are used when GNULIB_POSIXCHECK is defined and the
24816         getaddrinfo module is not in use.
24817         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24818         freeaddrinfo, gai_strerror, getnameinfo are declared.
24819         * modules/netdb (Depends-on): Add warn-on-use.
24820         (Makefile.am): Include warn-on-use.h in netdb.h.
24821
24822 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24823
24824         build: avoid "make check" failure without .git/ directory
24825         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24826         there is no .git/ directory.
24827
24828 2010-04-25  Bruno Haible  <bruno@clisp.org>
24829
24830         ptsname: Fix misuse of ttyname_r.
24831         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24832         of errno.
24833
24834 2010-04-25  Bruno Haible  <bruno@clisp.org>
24835
24836         ttyname_r: Make it work on Solaris 10.
24837         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24838         if the system function has the POSIX declaration. Test whether the
24839         function fails if the buffer is less than 128 bytes large.
24840         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24841         system's ttyname_r function. Provide a reasonably large buffer.
24842         * modules/ttyname_r (Depends-on): Add extensions.
24843         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24844
24845 2010-04-25  Bruno Haible  <bruno@clisp.org>
24846
24847         Use the 'extensions' module for some more functions on Solaris.
24848         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24849         module.
24850         * doc/posix-functions/ctime_r.texi: Likewise.
24851         * doc/posix-functions/getgrgid_r.texi: Likewise.
24852         * doc/posix-functions/getgrnam_r.texi: Likewise.
24853         * doc/posix-functions/getpwnam_r.texi: Likewise.
24854         * doc/posix-functions/getpwuid_r.texi: Likewise.
24855         * doc/posix-functions/readdir_r.texi: Likewise.
24856         * doc/posix-functions/sigwait.texi: Likewise.
24857         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24858         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24859
24860 2010-04-25  Bruno Haible  <bruno@clisp.org>
24861
24862         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24863         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24864         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24865         * lib/ttyname_r.c: Include <limits.h>.
24866         (ttyname_r): Define using the system's ttyname_r function, if it exists
24867         and not on Solaris.
24868         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24869         set.
24870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24871         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24872         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24873         Reported by Simon Josefsson.
24874
24875 2010-04-25  Bruno Haible  <bruno@clisp.org>
24876
24877         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24878         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24879         * doc/posix-functions/ctime_r.texi: Likewise.
24880         * doc/posix-functions/getgrgid_r.texi: Likewise.
24881         * doc/posix-functions/getgrnam_r.texi: Likewise.
24882         * doc/posix-functions/getlogin_r.texi: Likewise.
24883         * doc/posix-functions/getpwnam_r.texi: Likewise.
24884         * doc/posix-functions/getpwuid_r.texi: Likewise.
24885         * doc/posix-functions/readdir_r.texi: Likewise.
24886         * doc/posix-functions/sigwait.texi: Likewise.
24887         * doc/posix-functions/ttyname_r.texi: Likewise.
24888         Reported by Simon Josefsson.
24889
24890 2010-04-25  Bruno Haible  <bruno@clisp.org>
24891
24892         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24893         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24894         also to --create-testdir.
24895         (func_acceptable): Don't consider the status of *-tests modules here.
24896         (func_modules_transitive_closure): Consider it here, before including a
24897         test module.
24898         (func_import, func_create_testdir): Set inc_all_direct_tests,
24899         inc_all_indirect_tests.
24900         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24901         --create-testdir and --create-megatestdir.
24902
24903 2010-04-25  Bruno Haible  <bruno@clisp.org>
24904
24905         gnulib-tool: Add --without-*-tests options.
24906         * gnulib-tool (func_usage): Document the --without-*-tests options.
24907         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24908         excl_unportable_tests): New variables.
24909         Fail if they are specified with --import or --update.
24910         (func_acceptable): Respect the excl_*_tests variables.
24911         (func_import): Set the excl_*_tests variables to empty.
24912
24913 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24914             Bruno Haible  <bruno@clisp.org>
24915
24916         Work around a MacOS X 10.4 bug with openpty.
24917         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24918         * tests/test-openpty.c (main): Close the master side explicitly.
24919
24920 2010-04-25  Bruno Haible  <bruno@clisp.org>
24921
24922         strnlen: Fix a C++ test error on MacOS X and Solaris.
24923         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24924         the function is not declared.
24925         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24926         Simon Josefsson.
24927
24928 2010-04-24  Bruno Haible  <bruno@clisp.org>
24929
24930         Avoid a gcc warning.
24931         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24932         of correct type for %08lx directive.
24933         Reported by Eric Blake.
24934
24935 2010-04-24  Bruno Haible  <bruno@clisp.org>
24936
24937         vasnprintf: Correct errno value in case of out-of-memory.
24938         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24939         or sprintf. Use the errno value from SNPRINTF or sprintf.
24940         Reported by Ian Beckwith <ianb@erislabs.net>.
24941
24942 2010-04-24  Bruno Haible  <bruno@clisp.org>
24943
24944         ansi-c++-opt: Find correct compiler when cross-compiling.
24945         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24946         AC_CHECK_PROGS.
24947         Reported by Simon Josefsson.
24948
24949 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24950
24951         vc-list-files: Add support for subversion
24952         * build-aux/vc-list-files: Use "svn list" to generate the list of
24953         files controlled by subversion.
24954
24955 2010-04-23  Jim Meyering  <meyering@redhat.com>
24956
24957         vc-list-files tests: convert to use init.sh
24958         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24959         path_prepend_.
24960         Use Exit, not exit.
24961         Use skip_ rather than open coding it.
24962         Remove trap set-up and compare definitions.
24963         * tests/test-vc-list-files-git.sh: Likewise.
24964         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24965
24966 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24967
24968         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24969         backup files.
24970
24971 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24972
24973         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24974
24975 2010-04-20  Eric Blake  <eblake@redhat.com>
24976
24977         tests: be robust to ignored SIGPIPE
24978         * tests/test-select-in.sh: Consume all output.
24979         * tests/test-lseek.sh: Check correct exit status, while avoiding
24980         EPIPE.
24981
24982 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24983             Bruno Haible  <bruno@clisp.org>
24984
24985         visibility: Don't use -fvisibility if it leads to a warning.
24986         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24987         yes, don't pretend that visibility works if it leads to a warning.
24988         Reported by Mike Gran <spk121@yahoo.com>.
24989
24990 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24991
24992         * build-aux/bootstrap: Use "git -h" for testing for supported options
24993         instead of "git --help".  The short-form option only shows a summary,
24994         and doesn't layout the full man page.  Grep for the full option name
24995         in the summary, too.
24996
24997 2010-04-19  Bruno Haible  <bruno@clisp.org>
24998
24999         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25000         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25001         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25002         mention of RELOCATABLE_STRIP.
25003         Reported by Sylvain Beucler <beuc@beuc.net>.
25004
25005 2010-04-19  Bruno Haible  <bruno@clisp.org>
25006
25007         * lib/diffseq.h: Fix typo in comment.
25008         Reported by Eric Blake.
25009
25010 2010-04-19  Bruno Haible  <bruno@clisp.org>
25011
25012         ioctl: Move autoconf macro to a .m4 file.
25013         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25014         * modules/ioctl (Files): Add it.
25015         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25016         Reported by Ian Beckwith <ianb@erislabs.net>.
25017
25018 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25019             Bruno Haible  <bruno@clisp.org>
25020
25021         diffseq: Accommodate use-case with abstract arrays.
25022         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25023         is not defined.
25024         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25025         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25026
25027 2010-04-18  Bruno Haible  <bruno@clisp.org>
25028
25029         * doc/posix-headers/stdbool.texi: More precise wording.
25030
25031 2010-04-17  Jim Meyering  <meyering@redhat.com>
25032
25033         maint.mk: use gnu-style indentation in an embedded perl script
25034         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25035         Rename variable: s/two/last_two_bytes/
25036
25037 2010-04-16  Eric Blake  <eblake@redhat.com>
25038
25039         test-stdbool: skip test that fails with Solaris CC
25040         * tests/test-stdbool.c (f): Skip test that causes compilation
25041         error under buggy C++ compiler.
25042         * lib/stdbool.in.h: Document the limitation.
25043         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25044
25045         setenv: allow compilation with C++
25046         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25047         register keyword.
25048
25049         stdint: allow test to pass with C++
25050         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25051
25052         getopt: allow compilation with C++
25053         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25054         struct.
25055         * lib/getopt.c (_getopt_internal_r): Use correct type.
25056         Reported by Dagobert Michelson, via Joel E. Denny.
25057
25058 2010-04-16  Bruno Haible  <bruno@clisp.org>
25059
25060         Override netdb.h always.
25061         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25062         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25063         Reported by Ludovic Courtès <ludo@gnu.org>.
25064
25065 2010-04-15  Bruno Haible  <bruno@clisp.org>
25066
25067         openpty: Fix mistake from 2010-03-21.
25068         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25069         Reported by Simon Josefsson.
25070
25071 2010-04-15  Eric Blake  <eblake@redhat.com>
25072
25073         test-forkpty: fix expected signature
25074         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25075         Reported by Simon Josefsson.
25076
25077 2010-04-15  Jim Meyering  <meyering@redhat.com>
25078
25079         maint.mk: texinfo_suffix_re_: correct the default regexp
25080         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25081
25082         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25083         make it configurable via texinfo_suffix_re_.
25084
25085 2010-04-14  Eric Blake  <eblake@redhat.com>
25086
25087         strtok_r: relax license to LGPLv2+
25088         * modules/strtok_r (License): Relax license.
25089         Reported by Matthias Bolte.
25090
25091 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25092
25093         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25094         version 1.4.4 by default instead of requiring the libgcrypt
25095         version used during build.  This makes it possible to use the
25096         application with older but still binary compatible libgcrypt
25097         versions.
25098
25099 2010-04-13  Eric Blake  <eblake@redhat.com>
25100
25101         getopt-gnu: match recent glibc fixes and posix ruling
25102         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25103         '+' handling, when requesting extensions.
25104         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25105         'W;' handling.
25106         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25107         * doc/posix-functions/getopt.texi (getopt): Document this.
25108         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25109         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25110         Likewise.
25111
25112         getopt: merge bug fixes from glibc
25113         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25114         diagnostics.  Honor '+:' correctly.  Reject ';'.
25115
25116         getopt-posix: detect MacOS bug
25117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25118         optind when missing a required argument.
25119         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25120         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25121         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25122         Likewise.
25123
25124         getopt-posix: avoid spurious failure on Solaris
25125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25126         an indicator that setting optind=1 is sufficient for reset.
25127
25128         getopt-posix: avoid spurious failure on FreeBSD
25129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25130         in POSIX mode, since the m4 test uses it.
25131
25132         gnulib-tool: silence warning on BSD sh
25133         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25134
25135 2010-04-13  Jim Meyering  <meyering@redhat.com>
25136
25137         doc: users.txt: GNU patch now uses gnulib
25138         * users.txt: Add patch.
25139
25140 2010-04-12  Jim Meyering  <meyering@redhat.com>
25141
25142         maint.mk: generate more concise timing data for syntax-check rules
25143         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25144         " done" from each line that reports a syntax-check test duration.
25145
25146 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25147
25148         git-version-gen: use "git update-index..." rather than "git status"
25149         * build-aux/git-version-gen: Use git update-index --refresh, not
25150         "git status".  With some versions of git, "git status" would fail
25151         to update the index and result in an unwarranted "-dirty" suffix.
25152
25153 2010-04-11  Jim Meyering  <meyering@redhat.com>
25154
25155         openat: correct formatting (no semantic change)
25156         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25157         Suggested by Bruno Haible.
25158
25159 2010-04-11  Bruno Haible  <bruno@clisp.org>
25160
25161         Stricter declaration checking in testdirs.
25162         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25163         If for_tests is true, augment AM_CPPFLAGS to define
25164         GNULIB_STRICT_CHECKING.
25165         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25166         GNULIB_STRICT_CHECKING is defined, verify that the function is
25167         declared.
25168
25169 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25170             Bruno Haible  <bruno@clisp.org>
25171
25172         libunistring: Improve configure output.
25173         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25174         Don't say "consider installing GNU libunistring" when checking again
25175         with libiconv.
25176
25177 2010-04-11  Bruno Haible  <bruno@clisp.org>
25178
25179         libunistring: Correct value of $LTLIBUNISTRING.
25180         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25181         correct the value of $LTLIBUNISTRING.
25182
25183 2010-04-11  Bruno Haible  <bruno@clisp.org>
25184
25185         havelib: Add static libraries to LIBS in the right order.
25186         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25187         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25188
25189 2010-04-11  Bruno Haible  <bruno@clisp.org>
25190
25191         libunistring: Detect libunistring also when it depends on libiconv.
25192         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25193         the second AC_LIB_HAVE_LINKFLAGS invocation.
25194
25195 2010-04-11  James Youngman  <jay@gnu.org>
25196
25197         close-stream: declare local scalars to be "const"
25198         * lib/close-stream.c (close_stream): Make boolean variables const
25199         to document the fact that we set but do not change them.
25200
25201 2010-04-11  Bruno Haible  <bruno@clisp.org>
25202
25203         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25204
25205 2010-04-11  Jim Meyering  <meyering@redhat.com>
25206
25207         maint.mk: don't include dist-check.mk
25208         * top/maint.mk: Remove bogus include directive.
25209
25210         maint.mk: improve empty-line-at-EOF check
25211         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25212         solution, rather than tail+Perl-based one.  The latter would read
25213         a few kilobytes from the end of each file, and did not handle empty
25214         files properly.
25215
25216         maint.mk: print the elapsed time for each syntax-check rule
25217         * top/maint.mk (sc_m_rules_): Save start time in a file.
25218         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25219         (local-check): Interpose the .z rules
25220
25221 2010-04-11  Jim Meyering  <meyering@redhat.com>
25222
25223         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25224         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25225         empty file with one that ends in an empty line.
25226
25227 2010-04-10  Bruno Haible  <bruno@clisp.org>
25228
25229         mkdir: Make it work on mingw64.
25230         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25231         * lib/mkdir.c: Update comment.
25232         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
25233
25234 2010-04-10  Bruno Haible  <bruno@clisp.org>
25235
25236         Don't override improved macro from newer autoconf.
25237         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25238         autoconf >= 2.62.
25239         Reported by Joel E. Denny <jdenny@clemson.edu>.
25240
25241 2010-04-10  Jim Meyering  <meyering@redhat.com>
25242
25243         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25244         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25245
25246         maint.mk: correct a diagnostic
25247         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25248         in diagnostic; now use $prohibit.
25249
25250 2010-04-10  Bruno Haible  <address@hidden>
25251
25252         fchownat: Fix a C++ test error on Solaris 8.
25253         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25254         the function does not exist.
25255
25256 2010-04-10  Bruno Haible  <bruno@clisp.org>
25257
25258         vasnprintf: Add more tests.
25259         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25260         (test_function): Test converting an invalid wide string.
25261
25262         vasnprintf: Correct handling of unconvertible wide string arguments.
25263         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25264         VASNPRINTF.
25265         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25266         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25267         smaller than the expected maximum need for the directive. Set errno to
25268         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25269         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25271         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25272         * modules/vasnprintf (Files): Add m4/printf.m4.
25273         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25274
25275 2010-04-10  Bruno Haible  <bruno@clisp.org>
25276
25277         vasnprintf: Fix crash in %ls directive.
25278         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25279         string is passed as argument to %ls, with no precision and no width.
25280         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25281
25282 2010-04-10  Bruno Haible  <bruno@clisp.org>
25283
25284         vasnprintf: Fix multiple test failures on mingw.
25285         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25286         _snprintf, or snwprintf, not _snwprintf.
25287
25288 2010-04-10  Bruno Haible  <bruno@clisp.org>
25289
25290         write: Fix a C++ test error on mingw.
25291         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25292
25293 2010-04-10  Bruno Haible  <bruno@clisp.org>
25294
25295         vasnprintf test: Reduce code duplication.
25296         * tests/test-vasnprintf.c (test_function): New function, extracted from
25297         test_vasnprintf.
25298         (test_vasnprintf, test_asnprintf): Invoke it.
25299
25300 2010-04-10  Bruno Haible  <bruno@clisp.org>
25301
25302         strnlen: Fix warning in C++ mode on MacOS X.
25303         * lib/string.in.h (strnlen): Use the modern idiom.
25304         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25305         defining strnlen as a macro already in <config.h>.
25306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25307         REPLACE_STRNLEN.
25308         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25309         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25310
25311 2010-04-08  James Youngman  <jay@gnu.org>
25312
25313         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25314         the example.
25315
25316 2010-04-09  Jim Meyering  <meyering@redhat.com>
25317
25318         maint.mk: print better diagnostic when there is no $(_hv_file)
25319         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25320         announce that when $(_hv_file) (aka help-version) does not exist.
25321
25322         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25323         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25324         not try to interpret its random input bytes.  Jarno Rajahalme reported
25325         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25326         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25327         (mktempd_): Likewise, just in case.
25328
25329         ftruncate: add two years to projected module removal date: 2012
25330         * m4/ftruncate.m4: Adjust comments.
25331
25332         ftruncate: mark module as obsolete; even MinGW provides it, now
25333         * modules/ftruncate (Status): Obsolete.
25334         (Notice): Say that.
25335         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25336         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25337
25338 2010-04-08  Bruno Haible  <bruno@clisp.org>
25339
25340         Fix side effects from tests-related modules.
25341         * modules/dprintf-posix (Comment): New section.
25342         * modules/fprintf-posix (Comment): Likewise.
25343         * modules/obstack-printf-posix (Comment): Likewise.
25344         * modules/printf-posix (Comment): Likewise.
25345         * modules/snprintf-posix (Comment): Likewise.
25346         * modules/sprintf-posix (Comment): Likewise.
25347         * modules/vasnprintf-posix (Comment): Likewise.
25348         * modules/vasprintf-posix (Comment): Likewise.
25349         * modules/vdprintf-posix (Comment): Likewise.
25350         * modules/vfprintf-posix (Comment): Likewise.
25351         * modules/vprintf-posix (Comment): Likewise.
25352         * modules/vsnprintf-posix (Comment): Likewise.
25353         * modules/vsprintf-posix (Comment): Likewise.
25354         * modules/xprintf-posix (Comment): Likewise.
25355         * modules/xvasprintf-posix (Comment): Likewise.
25356         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25357         * modules/floorf-tests (Depends-on): Likewise.
25358         * modules/round-tests (Depends-on): Likewise.
25359         * modules/roundf-tests (Depends-on): Likewise.
25360         * modules/trunc-tests (Depends-on): Likewise.
25361         * modules/truncf-tests (Depends-on): Likewise.
25362         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25363         'fprintf-posix' module is not present.
25364         * tests/test-floorf2.c (check): Likewise.
25365         * tests/test-trunc2.c (check): Likewise.
25366         * tests/test-truncf2.c (check): Likewise.
25367         * tests/test-round2.c (equal): Likewise.
25368         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25369
25370 2010-04-07  Karl Berry  <karl@gnu.org>
25371
25372         * config/srclist.txt,
25373         * config/srclistvars.sh,
25374         * config/srclist-update: doc fixes.
25375
25376 2010-04-07  Jim Meyering  <meyering@redhat.com>
25377
25378         maint.mk: add a PATH crosschecking syntax-check rule
25379         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25380         Useful if you use a test like the one in help-version (coreutils,
25381         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25382         printed by prog --version.
25383
25384 2010-04-06  Bruno Haible  <bruno@clisp.org>
25385
25386         Fix link error on mingw.
25387         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25388         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25389
25390 2010-04-06  Bruno Haible  <bruno@clisp.org>
25391
25392         Assume rmdir exists.
25393         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25394
25395 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25396
25397         doc: update users.txt
25398         * users.txt: Add gcal.
25399
25400 2010-04-06  Jim Meyering  <meyering@redhat.com>
25401
25402         init.sh: simply unset TMPDIR rather than risking env -i
25403         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25404         although it probably works fine on all Unix-based systems, some
25405         systems (Cygwin?) cannot tolerate a totally cleared environment.
25406         Suggestion from Eric Blake.
25407
25408 2010-04-06  Jim Meyering  <meyering@redhat.com>
25409
25410         init.sh: portability fix: use env's POSIX-specified -i option not -u
25411         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25412         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25413
25414 2010-04-05  Bruno Haible  <bruno@clisp.org>
25415
25416         btowc: Work around Cygwin 1.7.2 bug.
25417         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25418         does not map NUL to 0.
25419         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25420
25421 2010-04-05  Bruno Haible  <bruno@clisp.org>
25422
25423         Make the multithread modules work on Cygwin 1.7.2.
25424         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25425         imported symbols can be declared weak, so that it returns "no" on
25426         Cygwin 1.7.2.
25427
25428 2010-04-05  Bruno Haible  <bruno@clisp.org>
25429
25430         Use the module 'strncat'.
25431         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25432
25433         Tests for module 'strncat'.
25434         * modules/strncat-tests: New file.
25435         * tests/test-strncat.c: New file.
25436
25437         New module 'strncat'.
25438         * lib/string.in.h (strncat): New declaration.
25439         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25440         * m4/strncat.m4: New file, based on m4/memchr.m4.
25441         * modules/strncat: New file.
25442         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25443         is declared.
25444         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25445         REPLACE_STRNCAT.
25446         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25447         REPLACE_STRNCAT.
25448         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25449         module.
25450         * tests/test-string-c++.cc: Check signature of strncat.
25451
25452 2010-04-05  Jim Meyering  <meyering@redhat.com>
25453
25454         xstrtoumax-tests: convert to use init.sh
25455         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25456         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25457         Use Exit, not exit.
25458         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25459
25460         xstrtoimax-tests: convert to use init.sh
25461         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25462         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25463         Use Exit, not exit.
25464         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25465
25466 2010-04-05  Bruno Haible  <bruno@clisp.org>
25467
25468         sys_socket: Avoid #define replacements in C++ mode.
25469         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25470         warning to the function if possible, rather than #defining the symbol
25471         to a dysfunctional alias.
25472
25473 2010-04-05  Bruno Haible  <bruno@clisp.org>
25474
25475         fseeko: Fix C++ test error on mingw.
25476         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25477         gl_FUNC_FSEEKO.
25478         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25479         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25480         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25481         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25482
25483 2010-04-05  Bruno Haible  <bruno@clisp.org>
25484
25485         duplocale: Improve test output.
25486         * tests/test-duplocale.c (main): Print reason for skipped test.
25487
25488 2010-04-05  Bruno Haible  <bruno@clisp.org>
25489
25490         Assume rmdir exists.
25491         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25492         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25493
25494 2010-04-05  Bruno Haible  <bruno@clisp.org>
25495
25496         Fix link error on Solaris 8 with cc.
25497         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25498
25499 2010-04-05  Bruno Haible  <bruno@clisp.org>
25500
25501         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25502         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25503
25504 2010-04-05  Bruno Haible  <bruno@clisp.org>
25505
25506         vasprintf: Update documentation.
25507         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25508
25509 2010-04-05  Bruno Haible  <bruno@clisp.org>
25510
25511         ptsname: Improve test.
25512         * tests/test-ptsname.c (main): Also try the various master names of BSD
25513         systems.
25514
25515 2010-04-05  Bruno Haible  <bruno@clisp.org>
25516
25517         memchr: Avoid a possible C++ test error.
25518         * lib/string.in.h (memchr): Provide declaration if function is missing.
25519         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25520         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25522         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25523
25524 2010-04-05  Bruno Haible  <bruno@clisp.org>
25525
25526         strtok_r: Improve idiom.
25527         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25528         AC_LIBOBJ is used.
25529
25530 2010-04-05  Bruno Haible  <bruno@clisp.org>
25531
25532         strdup: Improve idiom.
25533         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25534         AC_LIBOBJ is used.
25535         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25536         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25537         when AC_LIBOBJ is used.
25538
25539 2010-04-05  Bruno Haible  <bruno@clisp.org>
25540
25541         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25542         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25543         don't set REPLACE_MBSINIT to 1.
25544         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25545         don't set REPLACE_MBRTOWC to 1.
25546         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25547         exist, don't set REPLACE_MBSRTOWCS to 1.
25548         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25549         exist, don't set REPLACE_MBSNRTOWCS to 1.
25550         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25551         don't set REPLACE_WCRTOMB to 1.
25552         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25553         exist, don't set REPLACE_WCSRTOMBS to 1.
25554         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25555         exist, don't set REPLACE_WCSNRTOMBS to 1.
25556
25557 2010-04-05  Bruno Haible  <bruno@clisp.org>
25558
25559         ldexpl: Improve idiom.
25560         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25561         make sure to set HAVE_DECL_LDEXPL to 0.
25562
25563 2010-04-05  Jim Meyering  <meyering@redhat.com>
25564
25565         xstrtol-tests: convert to use init.sh
25566         * modules/xstrtol-tests (Files): Add tests/init.sh.
25567         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25568         Use Exit, not exit.
25569         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25570
25571         atexit-tests: convert to use init.sh
25572         * modules/atexit-tests (Files): Add tests/init.sh.
25573         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25574         Use Exit, not exit.
25575         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25576
25577         init.sh: fix typo
25578         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25579
25580         init.sh: make it easier for a test script to write to the tty, ...
25581         when using automake's parallel-tests mode.
25582         * tests/init.sh (stderr_fileno_): Define overridable variable.
25583         (warn_): New function, to use it.
25584         (fail_, skip_, framework_failure_): Use warn_.
25585
25586 2010-04-04  Bruno Haible  <bruno@clisp.org>
25587
25588         btowc: Avoid warning.
25589         * lib/btowc.c: Include <stdlib.h>.
25590         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25591
25592 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25593             Bruno Haible  <bruno@clisp.org>
25594
25595         wchar: Port to NetBSD 1.5.
25596         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25597         * lib/wctype.in.h (WEOF): Likewise.
25598
25599 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25600             Bruno Haible  <bruno@clisp.org>
25601
25602         Port extended stdio to NetBSD 1.5.
25603         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25604         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25605         older.
25606
25607 2010-04-04  Bruno Haible  <bruno@clisp.org>
25608
25609         string: Remove unused substitution.
25610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25611         HAVE_DECL_STRERROR.
25612         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25613
25614 2010-04-04  Bruno Haible  <bruno@clisp.org>
25615
25616         strtod: Avoid a possible C++ test error.
25617         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25618         set REPLACE_STRTOD.
25619
25620 2010-04-04  Bruno Haible  <bruno@clisp.org>
25621
25622         strerror: Update documentation.
25623         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25624
25625 2010-04-04  Bruno Haible  <bruno@clisp.org>
25626
25627         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25628         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25629         _GL_CXXALIAS_SYS_CAST.
25630
25631 2010-04-04  Bruno Haible  <bruno@clisp.org>
25632
25633         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25634         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25635         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25636         REPLACE_FREXPL to 1.
25637         * doc/posix-functions/frexpl.texi: Update documentation.
25638
25639 2010-04-04  Bruno Haible  <bruno@clisp.org>
25640
25641         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25642         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25643
25644 2010-04-04  Bruno Haible  <bruno@clisp.org>
25645
25646         Implement nanosleep for native Windows.
25647         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25648
25649 2010-04-04  Bruno Haible  <bruno@clisp.org>
25650
25651         math: Fix some C++ test errors on Solaris 8.
25652         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25653
25654 2010-04-04  Bruno Haible  <bruno@clisp.org>
25655
25656         math: Fix some C++ test errors on Cygwin.
25657         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25658         truncl): Provide declaration if the system does not have it.
25659         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25660         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25661         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25662         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25663         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25664         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25665         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25666         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25667         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25668         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25669         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25670         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25671         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25672         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25673         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25674         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25676         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25677         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25678         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25679         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25680         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25681
25682 2010-04-04  Bruno Haible  <bruno@clisp.org>
25683
25684         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25685         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25686         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25687         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25688         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25689         * m4/isinf.m4 (gl_ISINF): Likewise.
25690         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25691
25692 2010-04-04  Bruno Haible  <bruno@clisp.org>
25693
25694         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25695         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25696
25697 2010-04-04  Bruno Haible  <bruno@clisp.org>
25698
25699         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25700         * modules/tmpfile (configure.ac): Update.
25701
25702         tmpfile: Fix C++ test error on mingw.
25703         * lib/stdio.in.h (tmpfile): New declaration.
25704         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25705         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25706         * modules/tmpfile (Depends-on): Add stdio.
25707         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25708         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25709         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25710         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25711         REPLACE_TMPFILE.
25712         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25713
25714 2010-04-04  Bruno Haible  <bruno@clisp.org>
25715
25716         ioctl: Fix C++ test error on mingw.
25717         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25718         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25719         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25720
25721 2010-04-03  Bruno Haible  <bruno@clisp.org>
25722
25723         wcwidth: Fix C++ test error on mingw.
25724         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25726         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25727
25728 2010-04-03  Bruno Haible  <bruno@clisp.org>
25729
25730         nanosleep: Fix C++ test error on mingw.
25731         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25732         * lib/time.in.h (nanosleep): Use modern idiom.
25733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25734         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25735         REPLACE_NANOSLEEP to 1.
25736         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25737         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25738
25739 2010-04-03  Bruno Haible  <bruno@clisp.org>
25740
25741         strptime: Fix C++ test error on mingw.
25742         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25743         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25744         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25745         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25746         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25747         not REPLACE_STRPTIME.
25748         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25749         REPLACE_STRPTIME.
25750
25751 2010-04-03  Bruno Haible  <bruno@clisp.org>
25752
25753         timegm: Fix C++ test error on mingw.
25754         * lib/time.in.h (timegm): Use modern idiom.
25755         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25756         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25757         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25758         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25759
25760 2010-04-03  Bruno Haible  <bruno@clisp.org>
25761
25762         timegm: Assume declaration if function exists.
25763         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25764         if it exists. Don't clobber ac_cv_func_timegm.
25765
25766 2010-04-03  Bruno Haible  <bruno@clisp.org>
25767
25768         time_r: Fix C++ test error on mingw.
25769         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25770         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25771         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25772         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25773         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25774
25775 2010-04-03  Bruno Haible  <bruno@clisp.org>
25776
25777         time_r: Minor updates.
25778         * modules/time_r (Description): Mention the provided functions.
25779         * lib/time_r.c: Don't include <string.h>.
25780         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25781         * doc/posix-functions/localtime_r.texi: Likewise.
25782
25783 2010-04-03  Bruno Haible  <bruno@clisp.org>
25784
25785         time: Fix regression introduced on 2010-03-08.
25786         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25787         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25788
25789 2010-04-03  Jim Meyering  <meyering@redhat.com>
25790
25791         maint.mk: don't silently disable project-specific syntax-check rules
25792         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25793         that they need to convert their project-specific syntax-check rules
25794         to use the new _sc_search_regexp.
25795
25796 2010-04-03  Bruno Haible  <bruno@clisp.org>
25797
25798         fchdir: Fix regression introduced on 2010-03-08.
25799         * lib/unistd.in.h (fchdir): Fix declaration.
25800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25802         REPLACE_FCHDIR.
25803         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25804         REPLACE_FCHDIR.
25805
25806 2010-04-03  Bruno Haible  <bruno@clisp.org>
25807
25808         getpagesize: Fix C++ test error on mingw.
25809         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25810         system does not declare the function.
25811         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25812         declared.
25813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25814         HAVE_DECL_GETPAGESIZE.
25815         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25816
25817 2010-04-03  Bruno Haible  <bruno@clisp.org>
25818
25819         stdio: Make C++ tests work on mingw.
25820         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25821         does not declare the function.
25822
25823 2010-04-03  Bruno Haible  <bruno@clisp.org>
25824
25825         ftello: Fix C++ test error on mingw.
25826         * lib/stdio.in.h (ftello): Use modern idiom.
25827         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25828         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25829         is missing and that it needs to be replaced.
25830         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25832         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25833
25834 2010-04-03  Bruno Haible  <bruno@clisp.org>
25835
25836         fseeko: Fix C++ test error on mingw.
25837         * lib/stdio.in.h (fseeko): Use modern idiom.
25838         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25839         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25840         is missing and that it needs to be replaced.
25841         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25843         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25844
25845 2010-04-03  Bruno Haible  <bruno@clisp.org>
25846
25847         mkstemp: Fix C++ test error on mingw.
25848         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25850         function is missing and that it needs to be replaced.
25851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25852         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25853
25854 2010-04-03  Bruno Haible  <bruno@clisp.org>
25855
25856         stpncpy: Fix C++ test error on mingw.
25857         * lib/string.in.h (stpncpy): Use modern idiom.
25858         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25859         function is missing and that it needs to be replaced.
25860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25861         REPLACE_STPNCPY.
25862         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25863
25864 2010-04-03  Bruno Haible  <bruno@clisp.org>
25865
25866         sys_stat: Fix C++ test error on mingw.
25867         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25868         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25869
25870 2010-04-03  Bruno Haible  <bruno@clisp.org>
25871
25872         pty: Update doc.
25873         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25874
25875 2010-04-03  Bruno Haible  <bruno@clisp.org>
25876
25877         unistd: Fix C++ test error on mingw.
25878         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25879
25880 2010-04-03  Bruno Haible  <bruno@clisp.org>
25881
25882         Update doc regarding mingw.
25883         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25884         * doc/glibc-functions/login_tty.texi: Likewise.
25885         * doc/glibc-functions/forkpty.texi: Likewise.
25886
25887 2010-04-03  Bruno Haible  <bruno@clisp.org>
25888
25889         stdlib: Avoid compilation failure of c-strtold on mingw.
25890         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25891
25892 2010-04-03  Bruno Haible  <bruno@clisp.org>
25893
25894         locale: Make C++ tests work on Cygwin and mingw.
25895         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25896         cannot provide the function.
25897         Reported by Simon Josefsson.
25898
25899 2010-04-03  Bruno Haible  <bruno@clisp.org>
25900
25901         localename: Port to MacOS X 10.6.
25902         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25903         memory layout of the locales in MacOS X 10.6 as well.
25904         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25905
25906 2010-04-02  Bruno Haible  <bruno@clisp.org>
25907
25908         gnulib-tool: Ensure that long-running tests are executed last.
25909         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25910         running tests after the one for the other tests.
25911
25912 2010-04-02  Bruno Haible  <bruno@clisp.org>
25913
25914         gnulib-tool: Ensure the tests in the main directory are executed first.
25915         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25916         start with the current directory.
25917
25918 2010-04-02  Bruno Haible  <bruno@clisp.org>
25919
25920         Tests for module 'havelib', moved here from GNU gettext.
25921         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25922         modifications.
25923         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25924         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25925         with modifications.
25926         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25927         modifications.
25928         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25929         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25930         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25931         with modifications.
25932         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25933         with modifications.
25934         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25935         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25936         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25937         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25938         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25939         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25940         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25941         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25942         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25943         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25944         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25945         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25946         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25947         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25948         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25949         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25950         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25951         with modifications.
25952         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25953         with modifications.
25954         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25955         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25956         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25957         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25958         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25959         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25960         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25961         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25962         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25963         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25964         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25965         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25966         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25967         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25968         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25969         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25970         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25971         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25972         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25973         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25974         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25975         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25976         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25977         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25978         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25979         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25980         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25981         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25982         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25983         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25984         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25985         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25986         * tests/havelib/rpathx/rpathx.c: New file, from
25987         gettext/autoconf-lib-link.
25988         * tests/havelib/rpathx/Makefile.am: New file, from
25989         gettext/autoconf-lib-link.
25990         * tests/havelib/rpathx/configure.ac: New file, from
25991         gettext/autoconf-lib-link with modifications.
25992         * tests/havelib/rpathy/rpathy.c: New file, from
25993         gettext/autoconf-lib-link.
25994         * tests/havelib/rpathy/Makefile.am: New file, from
25995         gettext/autoconf-lib-link.
25996         * tests/havelib/rpathy/configure.ac: New file, from
25997         gettext/autoconf-lib-link with modifications.
25998         * tests/havelib/rpathz/rpathz.c: New file, from
25999         gettext/autoconf-lib-link.
26000         * tests/havelib/rpathz/Makefile.am: New file, from
26001         gettext/autoconf-lib-link.
26002         * tests/havelib/rpathz/configure.ac: New file, from
26003         gettext/autoconf-lib-link with modifications.
26004         * tests/havelib/rpathlx/usex.c: New file, from
26005         gettext/autoconf-lib-link.
26006         * tests/havelib/rpathlx/Makefile.am: New file, from
26007         gettext/autoconf-lib-link.
26008         * tests/havelib/rpathlx/configure.ac: New file, from
26009         gettext/autoconf-lib-link with modifications.
26010         * tests/havelib/rpathly/usey.c: New file, from
26011         gettext/autoconf-lib-link.
26012         * tests/havelib/rpathly/Makefile.am: New file, from
26013         gettext/autoconf-lib-link.
26014         * tests/havelib/rpathly/configure.ac: New file, from
26015         gettext/autoconf-lib-link with modifications.
26016         * tests/havelib/rpathlz/usez.c: New file, from
26017         gettext/autoconf-lib-link.
26018         * tests/havelib/rpathlz/Makefile.am: New file, from
26019         gettext/autoconf-lib-link.
26020         * tests/havelib/rpathlz/configure.ac: New file, from
26021         gettext/autoconf-lib-link with modifications.
26022         * tests/havelib/rpathlyx/usey.c: New file, from
26023         gettext/autoconf-lib-link.
26024         * tests/havelib/rpathlyx/Makefile.am: New file, from
26025         gettext/autoconf-lib-link.
26026         * tests/havelib/rpathlyx/configure.ac: New file, from
26027         gettext/autoconf-lib-link with modifications.
26028         * tests/havelib/rpathlzyx/usez.c: New file, from
26029         gettext/autoconf-lib-link.
26030         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26031         gettext/autoconf-lib-link.
26032         * tests/havelib/rpathlzyx/configure.ac: New file, from
26033         gettext/autoconf-lib-link with modifications.
26034         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26035         with modifications.
26036
26037 2010-04-02  Bruno Haible  <bruno@clisp.org>
26038
26039         gnulib-tool: Create distributed built sources also for the tests.
26040         * gnulib-tool (func_create_testdir): Also generate distributed built
26041         sources in the tests directory.
26042
26043 2010-04-02  Bruno Haible  <bruno@clisp.org>
26044
26045         gnulib-tool: Obey user's environment variables.
26046         * gnulib-tool (func_create_testdir): When creating built sources,
26047         respect the environment variables for autoconf, automake, etc. given by
26048         the user.
26049
26050 2010-04-02  Bruno Haible  <bruno@clisp.org>
26051
26052         gnulib-tool: Provide the value of --m4-base to modules.
26053         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26054         of gl_m4_base.
26055
26056 2010-04-02  Eric Blake  <eblake@redhat.com>
26057
26058         maint.mk: fix some fallout
26059         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26060         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26061
26062 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26063
26064         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26065         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26066         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26067         (sc_cast_of_x_alloc_return_value): Likewise.
26068         (sc_cast_of_alloca_return_value): Likewise.
26069         (sc_space_tab): Likewise.
26070         (sc_prohibit_atoi_atof): Likewise.
26071         (sc_prohibit_magic_number_exit): Likewise.
26072         (sc_error_exit_success): Likewise.
26073         (sc_file_system): Likewise.
26074         (sc_prohibit_have_config_h): Likewise.
26075         (sc_require_config_h): Likewise.
26076         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26077         (sc_obsolete_symbols): Likewise.
26078         (sc_changelog): Likewise.
26079         (sc_program_name): Likewise.
26080         (sc_the_the): Likewise.
26081         (sc_trailing_blank): Likewise.
26082         (sc_two_space_separator_in_usage): Likewise.
26083         (sc_useless_cpp_parens): Likewise.
26084         (sc_GPL_version): Likewise.
26085         (sc_GFDL_version): Likewise.
26086         (sc_texinfo_acronym): Likewise.
26087         (sc_prohibit_cvs_keyword): Likewise.
26088         (sc_prohibit_stat_st_blocks): Likewise.
26089         (sc_prohibit_S_IS_definition): Likewise.
26090         (sc_redundant_const): Likewise.
26091         (sc_makefile_TAB_only_indentation): Likewise.
26092         (sc_m4_quote_check): Likewise.
26093         (sc_makefile_path_separator_check): Likewise.
26094         (sc_copyright_check): Likewise.
26095         (sc_Wundef_boolean): Likewise.
26096         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26097
26098         maint.mk: match 0 or more whitespace-before-function-call '('
26099         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26100         that have zero or two-and-more spaces between the function name
26101         and the open parenthesis.
26102         (sc_error_message_warn_fatal): Likewise.
26103         (sc_error_message_uppercase): Likewise.
26104         (sc_error_message_period): Likewise.
26105
26106 2010-03-31  Eric Blake  <eblake@redhat.com>
26107
26108         maint.mk: check for [ as well as test
26109         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26110         Based on a libvirt report by Matthias Bolte.
26111
26112         gnumakefile: don't squelch _version output
26113         * top/GNUmakefile (_version): Create one-shot dependency rather
26114         than using $(shell) when version must be regenerated.
26115         (_autoreconf): Run verbosely, by default.
26116
26117         sys_time: avoid compiler warnings
26118         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26119         unconditional, fixing regression from 2010-03-29.
26120         Reported by Simon Josefsson.
26121
26122 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26123
26124         maint.mk: s/_header_without_use/_sc_header_without_use/
26125         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26126         (sc_prohibit_assert_without_use): Use the new name.
26127         (sc_prohibit_close_stream_without_use): Likewise.
26128         (sc_prohibit_getopt_without_use): Likewise.
26129         (sc_prohibit_quotearg_without_use): Likewise.
26130         (sc_prohibit_quote_without_use): Likewise.
26131         (sc_prohibit_long_options_without_use): Likewise.
26132         (sc_prohibit_inttostr_without_use): Likewise.
26133         (sc_prohibit_ignore_value_without_use): Likewise.
26134         (sc_prohibit_error_without_use): Likewise.
26135         (sc_prohibit_xalloc_without_use): Likewise.
26136         (sc_prohibit_hash_without_use): Likewise.
26137         (sc_prohibit_hash_pjw_without_use): Likewise.
26138         (sc_prohibit_safe_read_without_use): Likewise.
26139         (sc_prohibit_argmatch_without_use): Likewise.
26140         (sc_prohibit_canonicalize_without_use): Likewise.
26141         (sc_prohibit_root_dev_ino_without_use): Likewise.
26142         (sc_prohibit_openat_without_use): Likewise.
26143         (sc_prohibit_c_ctype_without_use): Likewise.
26144         (sc_prohibit_signal_without_use): Likewise.
26145         (sc_prohibit_intprops_without_use): Likewise.
26146
26147 2010-03-30  Eric Blake  <eblake@redhat.com>
26148
26149         maint: improve module indicators
26150         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26151         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26152         columns, and avoid extra macro expansion.
26153
26154         fdopendir: work around FreeBSD bug
26155         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26156         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26157         * modules/dirent (Makefile.am): Substitute it.
26158         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26159         declaration.
26160         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26161         fix.
26162         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26163
26164 2010-03-29  Bruno Haible  <bruno@clisp.org>
26165
26166         Emit #pragma system_header after the inclusion guard, not before.
26167         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26168         guard that spans the entire file, not before. This enables an
26169         optimization in GCC's preprocessor.
26170         * lib/ctype.in.h: Likewise.
26171         * lib/dirent.in.h: Likewise.
26172         * lib/errno.in.h: Likewise.
26173         * lib/float.in.h: Likewise.
26174         * lib/getopt.in.h: Likewise.
26175         * lib/iconv.in.h: Likewise.
26176         * lib/langinfo.in.h: Likewise.
26177         * lib/locale.in.h: Likewise.
26178         * lib/math.in.h: Likewise.
26179         * lib/netdb.in.h: Likewise.
26180         * lib/netinet_in.in.h: Likewise.
26181         * lib/pty.in.h: Likewise.
26182         * lib/sched.in.h: Likewise.
26183         * lib/se-selinux.in.h: Likewise.
26184         * lib/search.in.h: Likewise.
26185         * lib/spawn.in.h: Likewise.
26186         * lib/stdarg.in.h: Likewise.
26187         * lib/stdint.in.h: Likewise.
26188         * lib/string.in.h: Likewise.
26189         * lib/strings.in.h: Likewise.
26190         * lib/sys_file.in.h: Likewise.
26191         * lib/sys_ioctl.in.h: Likewise.
26192         * lib/sys_time.in.h: Likewise.
26193         * lib/sys_times.in.h: Likewise.
26194         * lib/sys_utsname.in.h: Likewise.
26195         * lib/sys_wait.in.h: Likewise.
26196         * lib/sysexits.in.h: Likewise.
26197         * lib/wctype.in.h: Likewise.
26198
26199 2010-03-28  James Youngman  <jay@gnu.org>
26200
26201         save-cwd: don't leak a file descriptor when the caller execs.
26202         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26203         saved file descriptor.
26204         * modules/save-cwd (Depends-on): Depend on cloexec.
26205
26206 2010-03-29  Bruno Haible  <bruno@clisp.org>
26207
26208         Remove vestiges of fts-lgpl module.
26209         * lib/fts_.h: Assume GNULIB_FTS is 1.
26210         * lib/fts.c: Likewise.
26211         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26212
26213 2010-03-28  Bruno Haible  <bruno@clisp.org>
26214
26215         Fix definition of tests witness macro.
26216         * gnulib-tool (func_import): Fix definition of witness macro.
26217
26218 2010-03-28  Bruno Haible  <bruno@clisp.org>
26219
26220         Fix ioctl's protoype on glibc systems.
26221         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26222         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26223         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26224         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26225         signature. If not, arrange to replace the ioctl function.
26226         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26227         REPLACE_IOCTL.
26228         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26229         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26230         Reported by Ludovic Courtès <ludo@gnu.org>.
26231
26232 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26233
26234         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26235         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26236         made it so grep -r --include=GLOB* ... did not work.
26237
26238 2010-03-26  Jim Meyering  <meyering@redhat.com>
26239             Eric Blake  <eblake@redhat.com>
26240
26241         maint.mk: prohibit use of test's -o and -a operators
26242         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26243
26244 2010-03-28  Bruno Haible  <bruno@clisp.org>
26245
26246         Remove unused GNULIB_XYZ macro definitions.
26247         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26248         invocation.
26249
26250 2010-03-28  Bruno Haible  <bruno@clisp.org>
26251
26252         Mark privileged tests modules.
26253         * modules/idpriv-drop-tests (Status): New section.
26254         * modules/idpriv-droptemp-tests (Status): New section.
26255
26256 2010-03-28  Bruno Haible  <bruno@clisp.org>
26257
26258         Split C++ tests into separate tests modules.
26259         * modules/dirent-c++-tests: New file, extracted from
26260         modules/dirent-tests.
26261         * modules/dirent-tests: Depend on it.
26262         * modules/fcntl-h-c++-tests: New file, extracted from
26263         modules/fcntl-h-tests.
26264         * modules/fcntl-h-tests: Depend on it.
26265         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26266         * modules/glob-tests: Depend on it.
26267         * modules/iconv-h-c++-tests: New file, extracted from
26268         modules/iconv-h-tests.
26269         * modules/iconv-h-tests: Depend on it.
26270         * modules/langinfo-c++-tests: New file, extracted from
26271         modules/langinfo-tests.
26272         * modules/langinfo-tests: Depend on it.
26273         * modules/locale-c++-tests: New file, extracted from
26274         modules/locale-tests.
26275         * modules/locale-tests: Depend on it.
26276         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26277         * modules/math-tests: Depend on it.
26278         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26279         * modules/pty-tests: Depend on it.
26280         * modules/search-c++-tests: New file, extracted from
26281         modules/search-tests.
26282         * modules/search-tests: Depend on it.
26283         * modules/signal-c++-tests: New file, extracted from
26284         modules/signal-tests.
26285         * modules/signal-tests: Depend on it.
26286         * modules/spawn-c++-tests: New file, extracted from
26287         modules/spawn-tests.
26288         * modules/spawn-tests: Depend on it.
26289         * modules/stdio-c++-tests: New file, extracted from
26290         modules/stdio-tests.
26291         * modules/stdio-tests: Depend on it.
26292         * modules/stdlib-c++-tests: New file, extracted from
26293         modules/stdlib-tests.
26294         * modules/stdlib-tests: Depend on it.
26295         * modules/string-c++-tests: New file, extracted from
26296         modules/string-tests.
26297         * modules/string-tests: Depend on it.
26298         * modules/sys_ioctl-c++-tests: New file, extracted from
26299         modules/sys_ioctl-tests.
26300         * modules/sys_ioctl-tests: Depend on it.
26301         * modules/sys_select-c++-tests: New file, extracted from
26302         modules/sys_select-tests.
26303         * modules/sys_select-tests: Depend on it.
26304         * modules/sys_socket-c++-tests: New file, extracted from
26305         modules/sys_socket-tests.
26306         * modules/sys_socket-tests: Depend on it.
26307         * modules/sys_stat-c++-tests: New file, extracted from
26308         modules/sys_stat-tests.
26309         * modules/sys_stat-tests: Depend on it.
26310         * modules/sys_time-c++-tests: New file, extracted from
26311         modules/sys_time-tests.
26312         * modules/sys_time-tests: Depend on it.
26313         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26314         * modules/time-tests: Depend on it.
26315         * modules/unistd-c++-tests: New file, extracted from
26316         modules/unistd-tests.
26317         * modules/unistd-tests: Depend on it.
26318         * modules/wchar-c++-tests: New file, extracted from
26319         modules/wchar-tests.
26320         * modules/wchar-tests: Depend on it.
26321         * modules/wctype-c++-tests: New file, extracted from
26322         modules/wctype-tests.
26323         * modules/wctype-tests: Depend on it.
26324         Reported by Simon Josefsson.
26325
26326 2010-03-28  Bruno Haible  <bruno@clisp.org>
26327
26328         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26329         * gnulib-tool (func_exists_module): New function, extracted from
26330         func_verify_module.
26331         (func_verify_module): Use it.
26332         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26333         'foo' only if 'foo' exists.
26334         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26335         module.
26336
26337 2010-03-28  Bruno Haible  <bruno@clisp.org>
26338
26339         gnulib-tool: Add support for special categories of tests.
26340         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26341         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26342         (func_usage): Document them.
26343         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26344         inc_unportable_tests, inc_all_tests): New variables.
26345         (func_acceptable): Consider these variables.
26346         (func_modules_transitive_closure): Make it work when the 'Status' field
26347         consists of multiple words.
26348         (func_import): Store and restore the values of inc_cxx_tests,
26349         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26350         inc_all_tests in gnulib-comp.m4.
26351         (func_create_testdir): Set inc_all_tests to true.
26352         * doc/gnulib.texi (Extra tests modules): New section.
26353         Suggested by Jim Meyering.
26354
26355 2010-03-28  Bruno Haible  <bruno@clisp.org>
26356
26357         ansi-c++-opt: Allow turning off the C++ build by default.
26358         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26359         gl_CXX_CHOICE_DEFAULT_NO is defined.
26360         Requested by Eric Blake.
26361
26362 2010-03-28  Bruno Haible  <bruno@clisp.org>
26363
26364         unistd: Avoid #define replacements in C++ mode.
26365         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26366         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26367         setsockopt, shutdown, select): In C++, attach a warning to the function
26368         if possible, rather than #defining the symbol to a dysfunctional alias.
26369         Reported by John W. Eaton <jwe@gnu.org>.
26370
26371 2010-03-28  Bruno Haible  <bruno@clisp.org>
26372
26373         Fix link errors on mingw.
26374         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26375         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26376         $(LIBSOCKET).
26377         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26378         $(LIBSOCKET).
26379
26380 2010-03-28  Bruno Haible  <bruno@clisp.org>
26381             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26382
26383         lib-ignore: Determine different options for different compilers.
26384         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26385         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26386         Add comments.
26387         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26388         * NEWS: Mention the change.
26389
26390 2010-03-27  Bruno Haible  <bruno@clisp.org>
26391
26392         Remove unused GNULIB_XYZ macro definitions.
26393         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26394         * modules/fseek (configure.ac): Likewise.
26395         * modules/ioctl (configure.ac): Likewise.
26396         * modules/open (configure.ac): Likewise.
26397         * modules/stdlib-safer (configure.ac): Likewise.
26398
26399 2010-03-27  Bruno Haible  <bruno@clisp.org>
26400
26401         Add a remark about certain modules.
26402         * modules/malloc (Comment): New section.
26403         * modules/realloc (Comment): Likewise.
26404         * modules/sigpipe (Comment): Likewise.
26405
26406 2010-03-27  Bruno Haible  <bruno@clisp.org>
26407
26408         Resolve conflict between the two kinds of module indicators.
26409         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26410         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26411         * modules/canonicalize (configure.ac): Invoke
26412         gl_MODULE_INDICATOR_FOR_TESTS.
26413         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26414         GNULIB_XYZ.
26415         * tests/test-dirent-c++.cc: Likewise.
26416         * tests/test-dirent-safer.c: Likewise.
26417         * tests/test-dup2.c: Likewise.
26418         * tests/test-fchdir.c: Likewise.
26419         * tests/test-fcntl-h-c++.cc: Likewise.
26420         * tests/test-getopt.c: Likewise.
26421         * tests/test-getopt.h: Likewise.
26422         * tests/test-langinfo-c++.cc: Likewise.
26423         * tests/test-locale-c++.cc: Likewise.
26424         * tests/test-math-c++.cc: Likewise.
26425         * tests/test-pty-c++.cc: Likewise.
26426         * tests/test-search-c++.cc: Likewise.
26427         * tests/test-signal-c++.cc: Likewise.
26428         * tests/test-spawn-c++.cc: Likewise.
26429         * tests/test-stdio-c++.cc: Likewise.
26430         * tests/test-stdlib-c++.cc: Likewise.
26431         * tests/test-string-c++.cc: Likewise.
26432         * tests/test-sys_ioctl-c++.cc: Likewise.
26433         * tests/test-sys_select-c++.cc: Likewise.
26434         * tests/test-sys_socket-c++.cc: Likewise.
26435         * tests/test-sys_stat-c++.cc: Likewise.
26436         * tests/test-sys_time-c++.cc: Likewise.
26437         * tests/test-time-c++.cc: Likewise.
26438         * tests/test-unistd-c++.cc: Likewise.
26439         * tests/test-wchar-c++.cc: Likewise.
26440         * tests/uninorm/test-u8-nfc.c: Likewise.
26441         * tests/uninorm/test-u8-nfd.c: Likewise.
26442         * tests/uninorm/test-u8-nfkc.c: Likewise.
26443         * tests/uninorm/test-u8-nfkd.c: Likewise.
26444         * tests/uninorm/test-u16-nfc.c: Likewise.
26445         * tests/uninorm/test-u16-nfd.c: Likewise.
26446         * tests/uninorm/test-u16-nfkc.c: Likewise.
26447         * tests/uninorm/test-u16-nfkd.c: Likewise.
26448         * tests/uninorm/test-u32-nfc.c: Likewise.
26449         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26450         * tests/uninorm/test-u32-nfd.c: Likewise.
26451         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26452         * tests/uninorm/test-u32-nfkc.c: Likewise.
26453         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26454         * tests/uninorm/test-u32-nfkd.c: Likewise.
26455         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26456         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26457
26458 2010-03-27  Bruno Haible  <bruno@clisp.org>
26459
26460         Distinguish two kinds of module indicators.
26461         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26462         gl_MODULE_INDICATOR.
26463         (gl_MODULE_INDICATOR): New macro.
26464         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26465         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26466         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26467         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26468         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26469         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26470         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26471         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26472         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26473         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26474         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26475         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26477         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26478         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26479         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26480         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26481         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26482         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26483         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26484         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26485         * modules/cloexec (configure.ac): Likewise.
26486         * modules/getopt-gnu (configure.ac): Likewise.
26487         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26488         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26489         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26490         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26491
26492 2010-03-27  Bruno Haible  <bruno@clisp.org>
26493
26494         New module description field 'Comment'.
26495         * gnulib-tool: New option --extract-comment.
26496         (func_usage): Document it.
26497         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26498         (func_get_comment): New function.
26499         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26500
26501 2010-03-27  Bruno Haible  <bruno@clisp.org>
26502
26503         Addendum to 2010-02-07 commit.
26504         * gnulib-tool (func_usage): Document --extract-applicability option.
26505
26506 2010-03-27  Bruno Haible  <bruno@clisp.org>
26507
26508         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26509         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26510         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26511         rather than link errors.
26512
26513 2010-03-27  Bruno Haible  <bruno@clisp.org>
26514
26515         Avoid side effects from tests-related modules on the compilation of lib.
26516         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26517         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26518         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26519         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26520         macro.
26521         (func_import): Define a witness macro. Assign it a value that depends
26522         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26523         tests-related modules.
26524         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26525         Reported by Jim Meyering.
26526
26527 2010-03-27  Bruno Haible  <bruno@clisp.org>
26528
26529         Factorize common .m4 code.
26530         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26531         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26532         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26533         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26534         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26535         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26536         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26537         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26538         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26539         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26540         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26541         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26542         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26543         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26544         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26545         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26546         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26547         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26548         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26549         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26550         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26551         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26552         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26553         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26554         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26555         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26556         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26557         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26558         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26559         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26560         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26561         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26562
26563 2010-03-27  Bruno Haible  <bruno@clisp.org>
26564
26565         Fix a compilation error on Cygwin with g++ >= 4.3.
26566         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26567         if it is undefined or if we alias it to chmod.
26568         (lstat): Don't warn about the use of this function if it is undefined
26569         or if we alias it to stat.
26570         Reported by Simon Josefsson.
26571
26572 2010-03-27  Bruno Haible  <bruno@clisp.org>
26573
26574         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26575         * modules/getlogin (configure.ac): Update.
26576
26577         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26578         * modules/getlogin_r (configure.ac): Update.
26579
26580         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26582         * modules/inet_ntop (configure.ac): Update.
26583
26584         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26585         * modules/inet_pton (configure.ac): Update.
26586
26587         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26588         * modules/mbslen (configure.ac): Update.
26589
26590         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26591         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26592         * modules/forkpty (configure.ac): Update.
26593         * modules/openpty (configure.ac): Update.
26594
26595 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26596
26597         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26598         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26599
26600 2010-03-25  Eric Blake  <eblake@redhat.com>
26601
26602         maint: use pragma consistently across replacement headers
26603         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26604         * lib/dirent.in.h (system_header): Likewise.
26605         * lib/errno.in.h (system_header): Likewise.
26606         * lib/float.in.h (system_header): Likewise.
26607         * lib/getopt.in.h (system_header): Likewise.
26608         * lib/iconv.in.h (system_header): Likewise.
26609         * lib/inttypes.in.h (system_header): Likewise.
26610         * lib/langinfo.in.h (system_header): Likewise.
26611         * lib/locale.in.h (system_header): Likewise.
26612         * lib/math.in.h (system_header): Likewise.
26613         * lib/netdb.in.h (system_header): Likewise.
26614         * lib/netinet_in.in.h (system_header): Likewise.
26615         * lib/pty.in.h (system_header): Likewise.
26616         * lib/sched.in.h (system_header): Likewise.
26617         * lib/se-selinux.in.h (system_header): Likewise.
26618         * lib/search.in.h (system_header): Likewise.
26619         * lib/spawn.in.h (system_header): Likewise.
26620         * lib/stdarg.in.h (system_header): Likewise.
26621         * lib/stdint.in.h (system_header): Likewise.
26622         * lib/string.in.h (system_header): Likewise.
26623         * lib/strings.in.h (system_header): Likewise.
26624         * lib/sys_file.in.h (system_header): Likewise.
26625         * lib/sys_ioctl.in.h (system_header): Likewise.
26626         * lib/sys_socket.in.h (system_header): Likewise.
26627         * lib/sys_times.in.h (system_header): Likewise.
26628         * lib/sys_utsname.in.h (system_header): Likewise.
26629         * lib/sys_wait.in.h (system_header): Likewise.
26630         * lib/sysexits.in.h (system_header): Likewise.
26631         * lib/unistd.in.h (system_header): Likewise.
26632         * lib/wctype.in.h (system_header): Likewise.
26633
26634         arpa/inet: fix mingw compilation warning
26635         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26636         Reported by Matthew Bolte.
26637
26638 2010-03-25  Bruno Haible  <bruno@clisp.org>
26639
26640         Avoid collision between gnulib wrapper and libintl wrapper.
26641         * lib/printf.c (printf): Don't define if a printf wrapper is already
26642         defined in intl/printf.c.
26643         Reported by Michel Boaventura <michel@michelboaventura.com>.
26644
26645 2010-03-25  Bruno Haible  <bruno@clisp.org>
26646
26647         Use ANSI C.
26648         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26649
26650 2010-03-25  Bruno Haible  <bruno@clisp.org>
26651
26652         Minor formatting changes.
26653         * lib/acosl.c: Insert space before function argument list.
26654         * lib/argz.c: Likewise.
26655         * lib/asinl.c: Likewise.
26656         * lib/expl.c: Likewise.
26657         * lib/gen-uni-tables.c: Likewise.
26658         * lib/gettext.h: Likewise.
26659         * lib/glthread/lock.h: Likewise.
26660         * lib/tanl.c: Likewise.
26661         * lib/uniname/uniname.c: Likewise.
26662         * tests/test-idpriv-drop.c: Likewise.
26663         * tests/test-idpriv-droptemp.c: Likewise.
26664         * tests/test-lock.c: Likewise.
26665         * tests/test-tls.c: Likewise.
26666         * lib/argp-help.c: Insert space before function-like macro argument
26667         list.
26668         * lib/memcmp.c: Likewise.
26669         * tests/test-base64.c: Likewise.
26670         * lib/localename.c: Insert space before sizeof's argument list.
26671         * lib/safe-alloc.h: Likewise.
26672         * lib/file-set.h: Insert space before macro argument list.
26673         * tests/test-argp.c: Likewise.
26674         * lib/argp-namefrob.h: Insert space before function parameter list.
26675         * lib/getaddrinfo.c: Likewise.
26676         * lib/netdb.in.h: Likewise.
26677         * lib/parse-duration.h: Likewise.
26678         * lib/parse-duration.c: Likewise.
26679         * lib/poll.c: Likewise.
26680         * lib/select.c: Likewise.
26681         * lib/trim.h: Likewise.
26682         * tests/test-usleep.c: Likewise.
26683         * lib/ldexpl.c: Insert space before function parameter list and before
26684         function argument list.
26685         * lib/logl.c: Likewise.
26686         * lib/sqrtl.c: Likewise.
26687         * lib/trim.c: Likewise.
26688         * lib/cosl.c: Use GNU style indentation. Insert space before function
26689         argument list.
26690         * lib/sinl.c: Likewise.
26691         * lib/tsearch.c: Insert space after 'for'.
26692         Reported by Jim Meyering.
26693
26694 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26695
26696         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26697         config header before grepping, as it's not present before
26698         autoreconf/configure are run.  Reported by Simon Josefsson.
26699
26700 2010-03-23  Bruno Haible  <bruno@clisp.org>
26701
26702         pt_chown: Make it work with automake < 1.11.
26703         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26704         Reported by Simon Josefsson.
26705
26706 2010-03-23  Bruno Haible  <bruno@clisp.org>
26707
26708         pt_chown: Don't depend on GPLed modules.
26709         * lib/pt_chown.c: Don't include idpriv.h.
26710         (main): Don't drop privileges.
26711         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26712         Reported by Simon Josefsson.
26713
26714 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26715
26716         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26717         suggestions from karl@freefriends.org (Karl Berry).
26718
26719 2010-03-22  Eric Blake  <eblake@redhat.com>
26720
26721         gethostname: further tweaks
26722         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26723         are overriding gethostname.
26724         Suggested by Bruno Haible.
26725
26726 2010-03-21  Bruno Haible  <bruno@clisp.org>
26727
26728         Fix comments.
26729         * lib/forkpty.c (rpl_forkpty): Fix comment.
26730         * lib/openpty.c (rpl_openpty): Likewise.
26731         Reported by Eric Blake.
26732
26733 2010-03-22  Eric Blake  <eblake@redhat.com>
26734
26735         gethostname: fix build on mingw
26736         * lib/unistd.in.h (includes): Work around fact that mingw
26737         <winsock2.h> re-includes <unistd.h>, by avoiding any
26738         redeclarations if we are being included by <winsock2.h>.
26739         Reported by Matthias Bolte.
26740
26741 2010-03-21  Bruno Haible  <bruno@clisp.org>
26742
26743         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26744         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26745         modifications.
26746         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26747         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26748         provide the replacement.
26749         * modules/forkpty (Depends-on): Add openpty, login_tty.
26750         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26751         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26752         * doc/glibc-functions/forkpty.texi: More supported platforms.
26753         * config/srclist.txt: Add forkpty.c (commented).
26754
26755 2010-03-21  Bruno Haible  <bruno@clisp.org>
26756
26757         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26758         (Makefile.am): Verify that PTY_LIB is defined.
26759
26760         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26761
26762 2010-03-21  Bruno Haible  <bruno@clisp.org>
26763
26764         Tests for module 'login_tty'.
26765         * modules/login_tty-tests: New file.
26766         * tests/test-login_tty.c: New file.
26767
26768         New module 'login_tty'.
26769         * lib/login_tty.c: New file.
26770         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26771         * modules/login_tty: New file.
26772         * doc/glibc-functions/login_tty.texi: Mention the new module.
26773
26774 2010-03-21  Bruno Haible  <bruno@clisp.org>
26775
26776         login_tty: Documentation.
26777         * doc/glibc-functions/login_tty.texi: New file.
26778         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26779
26780 2010-03-21  Bruno Haible  <bruno@clisp.org>
26781
26782         pty: Consistent macro naming.
26783         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26784         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26785         * modules/pty (configure.ac): Update.
26786
26787 2010-03-21  Bruno Haible  <bruno@clisp.org>
26788
26789         Tests for openpty: Make stricter.
26790         * tests/test-openpty.c (main): Add test of canonical processing and
26791         erase.
26792         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26793
26794         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26795         * lib/openpty.c (openpty): New replacement function.
26796         * lib/pty.in.h: Include <termios.h>.
26797         (openpty): Update declaration. Add comments.
26798         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26799         is not declared, arrange to provide the replacement. Check for _getpty
26800         and posix_openpt.
26801         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26802         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26803         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26804         * modules/pty-tests (test_pty_c___LDADD): New variable.
26805         * doc/glibc-functions/openpty.texi: More supported platforms.
26806
26807 2010-03-21  Bruno Haible  <bruno@clisp.org>
26808
26809         setenv: Tweaks.
26810         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26811         the test program.
26812         * doc/posix-functions/setenv.texi: Update platforms list.
26813
26814 2010-03-21  Bruno Haible  <bruno@clisp.org>
26815
26816         New module 'unlockpt'.
26817         * lib/unlockpt.c: New file, from glibc with modifications.
26818         * m4/unlockpt.m4: New file.
26819         * modules/unlockpt: New file.
26820         * lib/stdlib.in.h (unlockpt): New declaration.
26821         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26822         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26823         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26824         HAVE_UNLOCKPT.
26825         * doc/posix-functions/unlockpt.texi: Mention the new module.
26826         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26827         * config/srclist.txt: Add unlockpt.c (commented).
26828
26829 2010-03-21  Jim Meyering  <meyering@redhat.com>
26830
26831         maint.mk: prohibit inclusion of "intprops.h" without use
26832         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26833
26834 2010-03-21  Bruno Haible  <bruno@clisp.org>
26835
26836         New module 'grantpt'.
26837         * lib/grantpt.c: New file, from glibc with modifications.
26838         * m4/grantpt.m4: New file.
26839         * modules/grantpt: New file.
26840         * lib/stdlib.in.h (grantpt): New declaration.
26841         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26842         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26843         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26844         HAVE_GRANTPT.
26845         * doc/posix-functions/grantpt.texi: Mention the new module.
26846         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26847         * config/srclist.txt: Add grantpt.c (commented).
26848
26849 2010-03-21  Bruno Haible  <bruno@clisp.org>
26850
26851         New module 'pt_chown'.
26852         * lib/pt_chown.c: New file, from glibc with modifications.
26853         * lib/pty-private.h: New file, from glibc with modifications.
26854         * modules/pt_chown: New file.
26855         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26856
26857 2010-03-21  Bruno Haible  <bruno@clisp.org>
26858
26859         Tests for module 'ptsname'.
26860         * modules/ptsname-tests: New file.
26861         * tests/test-ptsname.c: New file.
26862
26863         New module 'ptsname'.
26864         * lib/ptsname.c: New file, from glibc with modifications.
26865         * m4/ptsname.m4: New file.
26866         * modules/ptsname: New file.
26867         * lib/stdlib.in.h (ptsname): New declaration.
26868         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26869         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26870         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26871         HAVE_PTSNAME.
26872         * doc/posix-functions/ptsname.texi: Mention the new module.
26873         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26874         * config/srclist.txt: Add ptsname.c (commented).
26875
26876 2010-03-21  Bruno Haible  <bruno@clisp.org>
26877
26878         Tests for module 'ttyname_r'.
26879         * modules/ttyname_r-tests: New file.
26880         * tests/test-ttyname_r.c: New file.
26881
26882         New module 'ttyname_r'.
26883         * lib/ttyname_r.c: New file.
26884         * m4/ttyname_r.m4: New file.
26885         * modules/ttyname_r: New file.
26886         * lib/unistd.in.h (ttyname_r): New declaration.
26887         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26888         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26889         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26890         HAVE_TTYNAME_R.
26891         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26892         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26893
26894 2010-03-20  Bruno Haible  <bruno@clisp.org>
26895
26896         signal: Undefine macro definitions in C++ mode.
26897         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26898         sigfillset): Undefine macro definitions from the system header in C++
26899         mode.
26900         Reported by John W. Eaton <jwe@gnu.org>.
26901
26902 2010-03-20  Bruno Haible  <bruno@clisp.org>
26903
26904         Ensure no #include statements inside extern "C" { ... }.
26905         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26906         contain #include statements.
26907         * lib/time.in.h: Likewise.
26908
26909 2010-03-20  Bruno Haible  <bruno@clisp.org>
26910
26911         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26912         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26913         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26914         Reported by John W. Eaton <jwe@gnu.org>.
26915
26916 2010-03-20  Bruno Haible  <bruno@clisp.org>
26917
26918         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26919         Reported by Jim Meyering.
26920
26921 2010-03-20  Bruno Haible  <bruno@clisp.org>
26922
26923         pipe: Set errno upon failure.
26924         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26925         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26926         errno value in error message.
26927
26928 2010-03-20  Bruno Haible  <bruno@clisp.org>
26929             Jim Meyering  <meyering@redhat.com>
26930
26931         lchown: Avoid "unused variable" warning.
26932         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26933
26934 2010-03-20  Bruno Haible  <bruno@clisp.org>
26935
26936         Work around unlink() bug on MacOS X 10.5.6.
26937         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26938         attempting to unlink a parent directory.
26939         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26940         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26941         activate for the replacement function.
26942         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26943
26944 2010-03-20  Bruno Haible  <bruno@clisp.org>
26945
26946         Fix link errors on Solaris 8.
26947         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26948         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26949
26950 2010-03-19  Jim Meyering  <meyering@redhat.com>
26951
26952         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26953         The _LIBC implementation of build_range_exp correctly honors the
26954         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26955         However, the non-_LIBC implementation would ignore that syntax-bit
26956         flag and return REG_ERANGE unconditionally.
26957         This change makes it honor that flag.
26958         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26959         Make two pointer parameters "const".
26960         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26961         (parse_bracket_exp): Update caller.
26962
26963         regex.m4: correct the reversed range endpoint ([b-a]) test
26964         * m4/regex.m4: When requiring that [b-a] evoke failure,
26965         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26966         test pass once again for x86-based systems.
26967
26968 2010-03-19  Bruno Haible  <bruno@clisp.org>
26969
26970         scandir: Fix link error on Solaris 8.
26971         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26972         macros.
26973
26974 2010-03-19  Bruno Haible  <bruno@clisp.org>
26975
26976         getusershell: Fix documentation.
26977         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26978         module.
26979         * doc/glibc-functions/setusershell.texi: Likewise.
26980
26981         getusershell: Provide declaration, missing on Solaris 9.
26982         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26983         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26984         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26985         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26987         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26988         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26989         HAVE_GETUSERSHELL.
26990         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26991
26992 2010-03-19  Bruno Haible  <bruno@clisp.org>
26993
26994         wctype: Provide iswblank function.
26995         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26996         exists and is fine.
26997         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26998         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26999         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27000         * doc/posix-functions/iswblank.texi: Update.
27001
27002 2010-03-19  Bruno Haible  <bruno@clisp.org>
27003
27004         Tests of module 'pty' in C++ mode.
27005         * modules/pty-tests: New file.
27006         * tests/test-pty-c++.cc: New file.
27007         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27008
27009 2010-03-19  Eric Blake  <eblake@redhat.com>
27010
27011         logb: fix documentation
27012         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27013         1.5 declaration bug.
27014
27015         forkpty, openpty: prefer glibc's const-safe prototype
27016         * lib/forkpty.c (rpl_forkpty): New file.
27017         * lib/openpty.c (rpl_openpty): Likewise.
27018         * modules/forkpty (Files): Distribute it.
27019         * modules/openpty (Files): Likewise.
27020         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27021         check...
27022         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27023         replacement for for non-const BSD signature.
27024         * modules/pty (Makefile.am): Substitute witnesses.
27025         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27026         * tests/test-forkpty.c: Update signature check.
27027         * tests/test-openpty.c: Likewise.
27028         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27029         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27030
27031         forkpty, openpty: split functions into new modules
27032         * modules/pty (Makefile.am): Substitute new witnesses.
27033         (Libraries): Move library detection...
27034         * modules/forkpty: ...into new module.
27035         * modules/openpty: Another new module.
27036         * modules/pty-tests: Rename and split...
27037         * modules/forkpty-tests: ...to this...
27038         * modules/openpty-tests: ...and this.
27039         * tests/test-pty.c: Rename and split...
27040         * tests/test-forkpty.c: ...to this...
27041         * tests/test-openpty.c: ...and this.
27042         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27043         (gl_PTY): Split library searching...
27044         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27045         (gl_FORKPTY, gl_OPENPTY): New macros.
27046         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27047         * NEWS: Mention the split.
27048         * MODULES.html.sh (Misc): Document the modules.
27049         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27050         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27051
27052         pty: improve replacement header
27053         * lib/pty.in.h: New file.
27054         * modules/pty (Files): Ship it.
27055         (Makefile.am): Always build replacement.
27056         * m4/pty.m4: Rename...
27057         * m4/pty_h.m4: ...to this.
27058         (gl_PTY): Modernize setting of witness macros; update check of
27059         forkpty to take proper advantage of cache.
27060         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27061
27062         getopt: avoid compiler warning
27063         * lib/getopt.c (attribute_hidden): Remove unused macro.
27064
27065 2010-03-18  Bruno Haible  <bruno@clisp.org>
27066
27067         Fix link errors on Solaris 8.
27068         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27069         * modules/search-tests (test_search_c___LDADD): Likewise.
27070         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27071         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27072         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27073         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27074         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27075         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27076         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27077
27078 2010-03-18  Bruno Haible  <bruno@clisp.org>
27079
27080         Fix bug introduced on 2010-03-14.
27081         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27082         (gl_SPAWN_H): Require it.
27083         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27084         Reported by Simon Josefsson.
27085
27086 2010-03-18  Bruno Haible  <bruno@clisp.org>
27087
27088         Fix typo introduced on 2009-12-31.
27089         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27090         posix_spawn_file_actions_adddup2.
27091
27092 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27093         and Eric Blake  <eblake@redhat.com>
27094
27095         test-vc-list-files-git: make more robust
27096         * tests/test-vc-list-files-git.sh: Unset problematic environment
27097         variables.  Chain commands together.
27098
27099 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27100
27101         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27102         `AC_CHECK_DECL' invocation.
27103
27104 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27105
27106         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27107         appears before executable statements. Suggested by Petr Sumbera
27108         <Petr.Sumbera@Sun.COM>.
27109
27110 2010-03-14  Bruno Haible  <bruno@clisp.org>
27111
27112         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27113         portability problems. Instead use a simpler test.
27114         (main): Check that invalid arguments are rejected only on Linux.
27115
27116 2010-03-14  Bruno Haible  <bruno@clisp.org>
27117
27118         Fix bug introduced on 2009-12-31.
27119         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27120         gl_PREREQ_SYS_H_WINSOCK2 always.
27121         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27122         SYS_SOCKET_H variable.
27123         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27124         Update comments.
27125         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27126         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27127         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27128         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27129         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27130
27131 2010-03-14  Bruno Haible  <bruno@clisp.org>
27132
27133         Fix values returned by sinl, cosl.
27134         * lib/trigl.h: Add specification comments.
27135         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27136         that combines the values from the precomputed table with the values of
27137         the Chebyshev polynomials.
27138
27139 2010-03-14  Bruno Haible  <bruno@clisp.org>
27140
27141         Fix compilation error when modules 'posix_spawn[p]' are not used.
27142         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27143         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27144
27145 2010-03-14  Bruno Haible  <bruno@clisp.org>
27146
27147         Fix compilation error on mingw when module 'time_r' is not used.
27148         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27149         is 1.
27150         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27151         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27152         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27153         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27154
27155 2010-03-14  Bruno Haible  <bruno@clisp.org>
27156
27157         Fix compilation error with Sun C.
27158         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27159         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27160         instead of GCC specific ULONG_LONG_MAX.
27161         * lib/xstrtoll.c: Likewise.
27162         * lib/xstrtoull.c: Likewise.
27163
27164 2010-03-13  Bruno Haible  <bruno@clisp.org>
27165
27166         Allow the user to disable C++ code and tests.
27167         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27168         (gl_PROG_ANSI_CXX): Require it.
27169
27170 2010-03-13  Bruno Haible  <bruno@clisp.org>
27171
27172         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27173         cases.
27174
27175 2010-03-13  Bruno Haible  <bruno@clisp.org>
27176
27177         Test that gnulib does not break the standard C++ headers.
27178         * tests/test-locale-c++2.cc: New file.
27179         * modules/locale-tests (Files): Add it.
27180         (Makefile.am): Compile it for test-locale-c++.
27181         * tests/test-math-c++2.cc: New file.
27182         * modules/math-tests (Files): Add it.
27183         (Makefile.am): Compile it for test-math-c++.
27184         * tests/test-signal-c++2.cc: New file.
27185         * modules/signal-tests (Files): Add it.
27186         (Makefile.am): Compile it for test-signal-c++.
27187         * tests/test-stdio-c++2.cc: New file.
27188         * modules/stdio-tests (Files): Add it.
27189         (Makefile.am): Compile it for test-stdio-c++.
27190         * tests/test-stdlib-c++2.cc: New file.
27191         * modules/stdlib-tests (Files): Add it.
27192         (Makefile.am): Compile it for test-stdlib-c++.
27193         * tests/test-string-c++2.cc: New file.
27194         * modules/string-tests (Files): Add it.
27195         (Makefile.am): Compile it for test-string-c++.
27196         * tests/test-time-c++2.cc: New file.
27197         * modules/time-tests (Files): Add it.
27198         (Makefile.am): Compile it for test-time-c++.
27199         Reported by John W. Eaton <jwe@gnu.org>.
27200
27201 2010-03-13  Bruno Haible  <bruno@clisp.org>
27202
27203         * gnulib-tool (func_usage): Clarify which options are available for
27204         --create-testdir and --create-megatestdir.
27205
27206 2010-03-13  Bruno Haible  <bruno@clisp.org>
27207
27208         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27209         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27210         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27211         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27212         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27213         when appropriate.
27214         Reported by Jim Meyering.
27215
27216 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27217
27218         * gnulib-tool (func_import): Explain origin of code.
27219
27220 2010-03-12  Bruno Haible  <bruno@clisp.org>
27221
27222         Fix problem with automake's definition of CXXLINK.
27223         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27224         Reported by Simon Josefsson and Ludovic Courtès.
27225
27226 2010-03-12  Bruno Haible  <bruno@clisp.org>
27227
27228         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27229         stable releases.
27230
27231 2010-03-11  Bruno Haible  <bruno@clisp.org>
27232
27233         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27234         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27235         whether the system provides one variant or multiple variants of the
27236         function.
27237         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27238         C++ compilers.
27239         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27240         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27241         Reported by Jim Meyering.
27242
27243 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27244
27245         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27246
27247 2010-03-08  Bruno Haible  <bruno@clisp.org>
27248
27249         gnulib-tool: Add support for --libtool in --create-testdir.
27250         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27251         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27252
27253 2010-03-08  Eric Blake  <eblake@redhat.com>
27254
27255         gnulib-tool.texi: mention possibility of git submodule
27256         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27257         submodules.
27258         * doc/.gitignore: Ignore another generated file.
27259
27260 2010-03-08  Karl Berry  <karl@gnu.org>
27261
27262         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27263         of committing gnulib files while skipping others.
27264
27265 2010-03-07  Bruno Haible  <bruno@clisp.org>
27266
27267         Tests of module 'wctype' in C++ mode.
27268         * tests/test-wctype-c++.cc: New file.
27269         * modules/wctype-tests (Files): Add it and tests/signature.h.
27270         (Depends-on): Add ansi-c++-opt.
27271         (Makefile.am): Arrange to compile and run test-wctype-c++.
27272
27273         Tests of module 'wchar' in C++ mode.
27274         * tests/test-wchar-c++.cc: New file.
27275         * modules/wchar-tests (Files): Add it and tests/signature.h.
27276         (Depends-on): Add ansi-c++-opt.
27277         (Makefile.am): Arrange to compile and run test-wchar-c++.
27278         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27279         gl_MODULE_INDICATOR.
27280
27281         Tests of module 'unistd' in C++ mode.
27282         * tests/test-unistd-c++.cc: New file.
27283         * modules/unistd-tests (Files): Add it and tests/signature.h.
27284         (Depends-on): Add ansi-c++-opt.
27285         (Makefile.am): Arrange to compile and run test-unistd-c++.
27286         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27287         gl_MODULE_INDICATOR.
27288
27289         Tests of module 'time' in C++ mode.
27290         * tests/test-time-c++.cc: New file.
27291         * modules/time-tests (Files): Add it and tests/signature.h.
27292         (Depends-on): Add ansi-c++-opt.
27293         (Makefile.am): Arrange to compile and run test-time-c++.
27294         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27295
27296         Tests of module 'sys_time' in C++ mode.
27297         * tests/test-sys_time-c++.cc: New file.
27298         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27299         (Depends-on): Add ansi-c++-opt.
27300         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27301         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27302         gl_MODULE_INDICATOR.
27303
27304         Tests of module 'sys_stat' in C++ mode.
27305         * tests/test-sys_stat-c++.cc: New file.
27306         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27307         (Depends-on): Add ansi-c++-opt.
27308         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27309         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27310         gl_MODULE_INDICATOR.
27311
27312         Tests of module 'sys_socket' in C++ mode.
27313         * tests/test-sys_socket-c++.cc: New file.
27314         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27315         (Depends-on): Add ansi-c++-opt.
27316         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27317         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27318         gl_MODULE_INDICATOR.
27319
27320         Tests of module 'sys_select' in C++ mode.
27321         * tests/test-sys_select-c++.cc: New file.
27322         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27323         (Depends-on): Add ansi-c++-opt.
27324         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27325         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27326         gl_MODULE_INDICATOR.
27327
27328         Tests of module 'sys_ioctl' in C++ mode.
27329         * tests/test-sys_ioctl-c++.cc: New file.
27330         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27331         (Depends-on): Add ansi-c++-opt.
27332         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27333         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27334         gl_MODULE_INDICATOR.
27335
27336         Tests of module 'string' in C++ mode.
27337         * tests/test-string-c++.cc: New file.
27338         * modules/string-tests (Files): Add it and tests/signature.h.
27339         (Depends-on): Add ansi-c++-opt.
27340         (Makefile.am): Arrange to compile and run test-string-c++.
27341         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27342         gl_MODULE_INDICATOR.
27343
27344         Tests of module 'stdlib' in C++ mode.
27345         * tests/test-stdlib-c++.cc: New file.
27346         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27347         (Depends-on): Add ansi-c++-opt.
27348         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27349         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27350         gl_MODULE_INDICATOR.
27351
27352         Tests of module 'stdio' in C++ mode.
27353         * tests/test-stdio-c++.cc: New file.
27354         * modules/stdio-tests (Files): Add it and tests/signature.h.
27355         (Depends-on): Add ansi-c++-opt.
27356         (Makefile.am): Arrange to compile and run test-stdio-c++.
27357         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27358         gl_MODULE_INDICATOR.
27359
27360         Tests of module 'spawn' in C++ mode.
27361         * tests/test-spawn-c++.cc: New file.
27362         * modules/spawn-tests (Files): Add it and tests/signature.h.
27363         (Depends-on): Add ansi-c++-opt.
27364         (Makefile.am): Arrange to compile and run test-spawn-c++.
27365         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27366         gl_MODULE_INDICATOR.
27367
27368         Tests of module 'signal' in C++ mode.
27369         * tests/test-signal-c++.cc: New file.
27370         * modules/signal-tests (Files): Add it and tests/signature.h.
27371         (Depends-on): Add ansi-c++-opt.
27372         (Makefile.am): Arrange to compile and run test-signal-c++.
27373         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27374         gl_MODULE_INDICATOR.
27375
27376         Tests of module 'search' in C++ mode.
27377         * tests/test-search-c++.cc: New file.
27378         * modules/search-tests (Files): Add it and tests/signature.h.
27379         (Depends-on): Add ansi-c++-opt.
27380         (Makefile.am): Arrange to compile and run test-search-c++.
27381         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27382         gl_MODULE_INDICATOR.
27383
27384         Tests of module 'math' in C++ mode.
27385         * tests/test-math-c++.cc: New file.
27386         * modules/math-tests (Files): Add it and tests/signature.h.
27387         (Depends-on): Add ansi-c++-opt.
27388         (Makefile.am): Arrange to compile and run test-math-c++.
27389         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27390
27391         Tests of module 'locale' in C++ mode.
27392         * tests/test-locale-c++.cc: New file.
27393         * modules/locale-tests (Files): Add it and tests/signature.h.
27394         (Depends-on): Add ansi-c++-opt.
27395         (Makefile.am): Arrange to compile and run test-locale-c++.
27396         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27397         gl_MODULE_INDICATOR.
27398
27399         Tests of module 'langinfo' in C++ mode.
27400         * tests/test-langinfo-c++.cc: New file.
27401         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27402         (Depends-on): Add ansi-c++-opt.
27403         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27404         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27405         gl_MODULE_INDICATOR.
27406
27407         Tests of module 'iconv-h' in C++ mode.
27408         * tests/test-iconv-h-c++.cc: New file.
27409         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27410         (Depends-on): Add ansi-c++-opt.
27411         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27412
27413         Tests of module 'glob' in C++ mode.
27414         * tests/test-glob-c++.cc: New file.
27415         * modules/glob-tests (Files): Add it.
27416         (Depends-on): Add ansi-c++-opt.
27417         (Makefile.am): Arrange to compile and run test-glob-c++.
27418
27419         Tests of module 'fcntl-h' in C++ mode.
27420         * tests/test-fcntl-h-c++.cc: New file.
27421         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27422         (Depends-on): Add ansi-c++-opt.
27423         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27424         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27425         gl_MODULE_INDICATOR.
27426
27427         Tests of module 'dirent' in C++ mode.
27428         * tests/test-dirent-c++.cc: New file.
27429         * modules/dirent-tests (Files): Add it and tests/signature.h.
27430         (Depends-on): Add ansi-c++-opt.
27431         (Makefile.am): Arrange to compile and run test-dirent-c++.
27432         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27433         gl_MODULE_INDICATOR.
27434
27435         New module 'ansi-c++-opt'.
27436         * modules/ansi-c++-opt: New file.
27437         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27438
27439         Document C++ namespace mode.
27440         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27441
27442         wctype: Avoid #define replacements in C++ mode.
27443         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27444         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27445         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27446         In C++, define a namespaced alias symbol.
27447         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27448         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27449         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27450         rule.
27451
27452         wchar: Avoid #define replacements in C++ mode.
27453         * lib/wchar.in.h: Include c++defs.h.
27454         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27455         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27456         symbol.
27457         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27458         * modules/wchar (Depends-on): Add c++defs.
27459         (Makefile.am): Update wchar.h rule.
27460
27461         unistd: Avoid #define replacements in C++ mode.
27462         * lib/unistd.in.h: Include c++defs.h.
27463         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27464         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27465         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27466         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27467         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27468         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27469         symbol.
27470         (environ): Update.
27471         * modules/unistd (Depends-on): Add c++defs.
27472         (Makefile.am): Update unistd.h rule.
27473
27474         time: Avoid #define replacements in C++ mode.
27475         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27476         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27477         define a namespaced alias symbol.
27478         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27479         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27480         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27481         * modules/time (Depends-on): Add c++defs, warn-on-use.
27482         (Makefile.am): Update time.h rule.
27483         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27484         * modules/nanosleep (configure.ac): Likewise.
27485         * modules/strptime (configure.ac): Likewise.
27486         * modules/timegm (configure.ac): Likewise.
27487
27488         sys_time: Avoid #define replacements in C++ mode.
27489         * lib/sys_time.in.h: Include c++defs.h.
27490         (gettimeofday): In C++, define a namespaced alias symbol.
27491         * modules/sys_time (Depends-on): Add c++defs.
27492         (Makefile.am): Update sys/time.h rule.
27493
27494         sys_stat: Avoid #define replacements in C++ mode.
27495         * lib/sys_stat.in.h: Include c++defs.h.
27496         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27497         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27498         namespaced alias symbol.
27499         In C++, define a namespaced alias symbol.
27500         * modules/sys_stat (Depends-on): Add c++defs.
27501         (Makefile.am): Update sys/stat.h rule.
27502
27503         sys_socket: Avoid #define replacements in C++ mode.
27504         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27505         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27506         definitions also when the system has a <sys/socket.h>.
27507         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27508         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27509         In C++, define a namespaced alias symbol.
27510         * modules/sys_socket (Depends-on): Add c++defs.
27511         (Makefile.am): Update sys/socket.h rule.
27512
27513         sys_select: Avoid #define replacements in C++ mode.
27514         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27515         definitions also when the system has a <sys/select.h>.
27516         (select): In C++, define a namespaced alias symbol.
27517         * modules/sys_select (Depends-on): Add c++defs.
27518         (Makefile.am): Update sys/select.h rule.
27519
27520         sys_ioctl: Avoid #define replacements in C++ mode.
27521         * lib/sys_ioctl.in.h: Include c++defs.h.
27522         (ioctl): In C++, define a namespaced alias symbol.
27523         * modules/sys_ioctl (Depends-on): Add c++defs.
27524         (Makefile.am): Update sys/ioctl.h rule.
27525
27526         string: Avoid #define replacements in C++ mode.
27527         * lib/string.in.h: Include c++defs.h.
27528         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27529         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27530         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27531         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27532         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27533         * modules/string (Depends-on): Add c++defs.
27534         (Makefile.am): Update string.h rule.
27535
27536         stdlib: Avoid #define replacements in C++ mode.
27537         * lib/stdlib.in.h: Include c++defs.h.
27538         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27539         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27540         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27541         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27542         symbol.
27543         * modules/stdlib (Depends-on): Add c++defs.
27544         (Makefile.am): Update stdlib.h rule.
27545
27546         stdio: Avoid #define replacements in C++ mode.
27547         * lib/stdio.in.h: Include c++defs.h.
27548         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27549         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27550         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27551         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27552         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27553         namespaced alias symbol.
27554         * modules/stdio (Depends-on): Add c++defs.
27555         (Makefile.am): Update stdio.h rule.
27556
27557         spawn: Avoid #define replacements in C++ mode.
27558         * lib/spawn.in.h: Include c++defs.h.
27559         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27560         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27561         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27562         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27563         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27564         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27565         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27566         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27567         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27568         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27569         In C++, define a namespaced alias symbol.
27570         * modules/spawn (Depends-on): Add c++defs.
27571         (Makefile.am): Update spawn.h rule.
27572
27573         signal: Avoid #define replacements in C++ mode.
27574         * lib/signal.in.h: Include c++defs.h.
27575         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27576         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27577         namespaced alias symbol.
27578         * modules/signal (Depends-on): Add c++defs.
27579         (Makefile.am): Update signal.h rule.
27580
27581         search: Avoid #define replacements in C++ mode.
27582         * lib/search.in.h: Include c++defs.h.
27583         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27584         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27585         symbol.
27586         * modules/search (Depends-on): Add c++defs.
27587         (Makefile.am): Update search.h rule.
27588
27589         math: Avoid #define replacements in C++ mode.
27590         * lib/math.in.h: Include c++defs.h.
27591         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27592         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27593         trunc, truncl): In C++, define a namespaced alias symbol.
27594         * modules/math (Depends-on): Add c++defs.
27595         (Makefile.am): Update math.h rule.
27596
27597         locale: Avoid #define replacements in C++ mode.
27598         * lib/locale.in.h: Include c++defs.h.
27599         (duplocale): In C++, define a namespaced alias symbol.
27600         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27601         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27602         * modules/locale (Depends-on): Add c++defs.
27603         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27604
27605         langinfo: Avoid #define replacements in C++ mode.
27606         * lib/langinfo.in.h: Include c++defs.h.
27607         (nl_langinfo): In C++, define a namespaced alias symbol.
27608         * modules/langinfo (Depends-on): Add c++defs.
27609         (Makefile.am): Update langinfo.h rule.
27610
27611         iconv-h: Avoid #define replacements in C++ mode.
27612         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27613         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27614         symbol.
27615         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27616         whenever iconv is present.
27617         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27618         (Makefile.am): Update iconv.h rule.
27619
27620         glob: Avoid #define replacements in C++ mode.
27621         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27622         (_gl_glob_errfunc_fn): New type.
27623         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27624         symbol.
27625         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27626         (Makefile.am): Update glob.h rule.
27627
27628         fcntl-h: Avoid #define replacements in C++ mode.
27629         * lib/fcntl.in.h: Include c++defs.h.
27630         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27631         * modules/fcntl-h (Depends-on): Add c++defs.
27632         (Makefile.am): Update fcntl.h rule.
27633
27634         dirent: Avoid #define replacements in C++ mode.
27635         * lib/dirent.in.h: Include c++defs.h.
27636         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27637         namespaced alias symbol.
27638         (dirfd): Update declaration.
27639         * modules/dirent (Depends-on): Add c++defs.
27640         (Makefile.am): Update dirent.h rule.
27641
27642         ctype: Make it usable in C++ code.
27643         * lib/ctype.in.h: Include c++defs.h.
27644         (isblank): Declare as extern "C".
27645         * modules/ctype (Depends-on): Add c++defs.
27646         (Makefile.am): Update ctype.h rule.
27647
27648         New module 'c++defs'.
27649         * modules/c++defs: New file.
27650         * build-aux/c++defs.h: New file.
27651         Reported by John W. Eaton <jwe@gnu.org>.
27652
27653 2010-03-07  Bruno Haible  <bruno@clisp.org>
27654
27655         logb: Provide missing declaration for Cygwin.
27656         * lib/math.in.h (logb): New declaration.
27657         * m4/logb.m4: New file.
27658         * modules/logb (Files): Add m4/logb.m4.
27659         (Depends-on): Add math.
27660         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27661         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27663         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27664         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27665
27666 2010-03-07  Bruno Haible  <bruno@clisp.org>
27667
27668         Fix test-cond link error.
27669         * tests/test-cond.c: Include <stdio.h>.
27670
27671 2010-03-07  Bruno Haible  <bruno@clisp.org>
27672
27673         Fix test-dirent-safer link error.
27674         * modules/dirent-safer-tests (Makefile.am): Define
27675         test_dirent_safer_LDADD.
27676
27677 2010-03-07  Bruno Haible  <bruno@clisp.org>
27678
27679         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27680         among default module list.
27681
27682 2010-03-07  Bruno Haible  <bruno@clisp.org>
27683
27684         Fix link error on platforms with GNU libiconv.
27685         * modules/unistr/u8-strcoll-tests (Makefile): Define
27686         test_u8_strcoll_LDADD.
27687         * modules/unistr/u16-strcoll-tests (Makefile): Define
27688         test_u16_strcoll_LDADD.
27689         * modules/unistr/u32-strcoll-tests (Makefile): Define
27690         test_u32_strcoll_LDADD.
27691
27692 2010-03-07  Bruno Haible  <bruno@clisp.org>
27693
27694         Use POSIX declarations for socket functions.
27695         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27696         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27697         rpl_sendto): Change declaration to match POSIX.
27698         * lib/connect.c (rpl_connect): Likewise.
27699         * lib/accept.c (rpl_accept): Likewise.
27700         * lib/bind.c (rpl_bind): Likewise.
27701         * lib/getpeername.c (rpl_getpeername): Likewise.
27702         * lib/getsockname.c (rpl_getsockname): Likewise.
27703         * lib/recv.c (rpl_recv): Likewise.
27704         * lib/send.c (rpl_send): Likewise.
27705         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27706         * lib/sendto.c (rpl_sendto): Likewise.
27707
27708 2010-03-06  Bruno Haible  <bruno@clisp.org>
27709
27710         Clarify access, euidaccess, faccessat.
27711         * doc/posix-functions/faccessat.texi: Mention security problem under
27712         "Other problems", not "Portability problems".
27713         * doc/posix-functions/access.texi: Likewise. Mention a related security
27714         problem.
27715         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27716         * lib/euidaccess.c: Add comments about platforms.
27717         * lib/unistd.in.h (access, euidaccess): Add warnings.
27718
27719 2010-03-07  Bruno Haible  <bruno@clisp.org>
27720
27721         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27722         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27723         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27724         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27725         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27726         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27727         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27728         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27729         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27730         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27731         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27732         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27733         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27734         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27735         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27736         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27737         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27738         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27739         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27740         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27741         Likewise.
27742         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27743         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27744         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27745         Likewise.
27746         * tests/test-spawn.c (main): Make it work when
27747         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27748
27749 2010-03-07  Bruno Haible  <bruno@clisp.org>
27750
27751         Fix incorrect Makefile.am generation in German locale.
27752         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27753         Execute sed command with character range in C locale.
27754
27755 2010-03-06  Bruno Haible  <bruno@clisp.org>
27756
27757         Tests for module 'iconv-h'.
27758         * modules/iconv-h-tests: New file.
27759         * tests/test-iconv-h.c: New file.
27760
27761         New module 'iconv-h'.
27762         * modules/iconv-h: New file.
27763         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27764         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27765         (configure.ac): Remove gl_ICONV_H.
27766         (Makefile.am): Remove rule for iconv.h.
27767
27768 2010-03-06  Bruno Haible  <bruno@clisp.org>
27769
27770         More consistent naming of *.m4 files.
27771         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27772         * modules/wctype (Files): Update.
27773
27774         More consistent naming of *.m4 files.
27775         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27776         * modules/wchar (Files): Update.
27777
27778 2010-03-06  Jim Meyering  <meyering@redhat.com>
27779
27780         euidaccess: relax license to LGPLv2+
27781         * modules/euidaccess (License): Relax to LGPLv2+.
27782
27783 2010-03-06  Bruno Haible  <bruno@clisp.org>
27784
27785         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27786         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27787         (Makefile.am): Augment lib_SOURCES instead.
27788
27789 2010-03-04  Jim Meyering  <meyering@redhat.com>
27790
27791         utime: remove obsolete module
27792         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27793         unnecessary for years, and has been marked as obsolete for 10 months.
27794         * modules/utime: Remove file.
27795         * lib/utime.c: Remove file.
27796         * m4/utime.m4: Remove file.
27797         * m4/utimes-null.m4: Remove file.
27798         * doc/posix-functions/utime.texi (utime): Remove reference to
27799         the module.  Move the sole "fixed by gnulib" item into the
27800         "problems not fixed by Gnulib" list.
27801         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27802
27803 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27804
27805         * modules/exit (License): Relax license to LGPLv2+.
27806         (Status): Mark as obsolete.
27807         * NEWS: Mention deprecated 'exit' module.
27808         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27809         of now obsolete 'exit'.
27810
27811 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27812
27813         fts-lgpl: remove unused module
27814         * modules/fts-lgpl: Remove.
27815         * MODULES.html.sh (func_all_modules): Adjust.
27816         * check-module (find_included_lib_files): Adjust.
27817         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27818
27819 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27820
27821         copy-acl: enhance Solaris ACL error handling
27822         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27823         * lib/set-mode-acl.c (qset_acl): Likewise.
27824
27825 2010-03-02  Bruno Haible  <bruno@clisp.org>
27826
27827         spawn: Don't override the system defined values on FreeBSD 8.
27828         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27829         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27830         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27831         if HAVE_POSIX_SPAWN is 1.
27832         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27833
27834 2010-03-01  Bruno Haible  <bruno@clisp.org>
27835
27836         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27837         regarding Automake.
27838
27839 2010-02-25  Bruno Haible  <bruno@clisp.org>
27840
27841         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27842         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27843         setting, not afterwards.
27844         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27845
27846 2010-02-24  Eric Blake  <eblake@redhat.com>
27847
27848         bootstrap, git-version-gen: use timestamp
27849         * build-aux/git-version-gen (scriptversion): Force UTC.
27850         * build-aux/bootstrap (scriptversion): New variable.
27851
27852         bootstrap: allow older git
27853         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27854         older than 1.6.4.  Requested by the libvirt project.
27855
27856 2010-02-23  Eric Blake  <eblake@redhat.com>
27857
27858         warn-on-use: work with old autoconf
27859         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27860         AS_VAR semantics of autoconf 2.60.
27861         Reported by Bruno Haible.
27862
27863         bootstrap: improve some comments
27864         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27865         clarification comments.
27866
27867         gettimeofday: provide correct function
27868         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27869         when replacement is declared, otherwise provide gettimeofday.
27870         Reported by Michael Goffioul.
27871
27872 2010-02-23  Jim Meyering  <meyering@redhat.com>
27873
27874         lib-ignore: relax license to "unlimited", not LGPLv2+
27875         * modules/lib-ignore (License): Relax to "unlimited".
27876
27877 2010-02-23  Jim Meyering  <meyering@redhat.com>
27878
27879         lib-ignore: relax license to LGPLv2+
27880         * modules/lib-ignore (License): Relax to LGPLv2+.
27881
27882 2010-02-22  Eric Blake  <eblake@redhat.com>
27883
27884         lseek: avoid bash 3.2 broken pipe bug
27885         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27886         warning from bash 3.2.
27887         Reported by Ben Pfaff, with analysis from Bruno Haible.
27888
27889         bootstrap: support non-FSF copyright holder
27890         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27891         bootstrap.conf override of COPYRIGHT_HOLDER.
27892         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27893
27894         bootstrap: interoperate with gettext 0.14.1
27895         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27896
27897         bootstrap: allow for alternate submodule location
27898         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27899         hardcoding submodule location.
27900         (gnulib_mk): Allow direct use of Makefile.am.
27901
27902         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27903         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27904         rather than reconfiguring where the submodule points.
27905
27906         gettimeofday: restore support for platforms that lack function
27907         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27908         replacement if function is missing.
27909         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27910         * modules/sys_time (Makefile.am): Substitute it.
27911         * lib/sys_time.in.h (gettimeofday): Check it.
27912         Reported by Michael Goffioul.
27913
27914 2010-02-21  Bruno Haible  <bruno@clisp.org>
27915
27916         * lib/stdio.in.h (obstack_printf): Fix typo.
27917
27918 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27919
27920         vc-list-files: use bzr ls's -R option
27921         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27922         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27923
27924 2010-02-21  Jim Meyering  <meyering@redhat.com>
27925
27926         init.sh: fix EXEEXT shims to work also for names like test-prog
27927         * tests/init.sh: Re-exec a better shell, when needed.
27928         If the current shell lacks support for posix $(...), an init.sh-using
27929         test will now try to find a shell that supports that.  If EXEEXT is
27930         nonempty, we also require support for hyphen-in-alias-name and shell
27931         substitutions like ${var#glob}.  Failure to find such a shell results
27932         in a skipped test.
27933
27934 2010-02-21  Bruno Haible  <bruno@clisp.org>
27935
27936         Really work around around "broken pipe" error message from bash 3.2.
27937         * gnulib-tool (func_reset_sigpipe): Remove function.
27938         (echo): In bash 3.2, define to a function that uses printf.
27939         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27940
27941 2010-02-20  Bruno Haible  <bruno@clisp.org>
27942
27943         Restore support for automake 1.9.6 with autoconf 2.61.
27944         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27945         Reported by James Youngman <jay@gnu.org>.
27946
27947 2010-02-20  Bruno Haible  <bruno@clisp.org>
27948
27949         Improve *printf warning condition.
27950         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27951         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27952         and the function is overridden due to SIGPIPE emulation.
27953
27954 2010-02-20  Bruno Haible  <bruno@clisp.org>
27955
27956         * lib/stdio.in.h: Tweak comments.
27957
27958 2010-02-19  Bruno Haible  <bruno@clisp.org>
27959
27960         Make it easier to find modules. New gnulib-tool option '--find'.
27961         * gnulib-tool: New option --find.
27962         (func_usage): Document it.
27963         (func_sanitize_modulelist): New function, extracted from
27964         func_all_modules.
27965         (func_all_modules): Invoke it.
27966         * doc/gnulib-tool.texi (Which modules?): New node.
27967
27968 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27969
27970         * lib/sys_select.in.h: Provide select replacement even if
27971         sys/select.h exists on a system, for Interix.
27972
27973 2010-02-18  Jim Meyering  <meyering@redhat.com>
27974
27975         init.sh: don't use $(...) just yet
27976         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27977         to accommodate e.g., Solaris' /bin/sh.
27978
27979 2010-02-17  Bruno Haible  <bruno@clisp.org>
27980
27981         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27982         Reported by Ludovic Courtès <ludo@gnu.org>.
27983
27984 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27985
27986         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27987         linking with -lintl.
27988
27989 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27990
27991         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27992         if not provided by the system's netdb.h.  Reported by
27993         ludo@gnu.org (Ludovic Courtès).
27994
27995 2010-02-15  Jim Meyering  <meyering@redhat.com>
27996
27997         init.sh: improve portability and efficiency
27998         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27999         "dummy" in a for loop.
28000         Use '!', not '^' to select the complement of a character set used
28001         in a "case" statement.
28002         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28003         Suggestions from Eric Blake.
28004
28005         init.sh: automatically accommodate programs with the .exe suffix
28006         Automatically arrange for an invocation of "prog" to execute the
28007         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28008         may use the simpler "prog", yet still work when built on a system
28009         that requires specifying the added suffix.
28010         Do this by constructing a function named "prog" that invokes
28011         "prog.exe" for each .exe file in selected directories.
28012         * tests/init.sh (find_exe_basenames_): New function.
28013         (create_exe_shim_functions_): New function.
28014         (path_prepend_): Use it.
28015
28016         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28017         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28018         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28019
28020 2010-02-14  Jim Meyering  <meyering@redhat.com>
28021
28022         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28023         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28024         (sc_prohibit_hash_pjw_without_use): New rule.
28025
28026         maint.mk: allow the default upload destination dir to be overridden
28027         * top/maint.mk (upload_dest_dir_): Define with a default that
28028         preserves the status quo.
28029         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28030         Reported by Peter Simons.
28031
28032         maint.mk: prohibit inclusion of "hash.h" without_use
28033         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28034
28035 2010-02-10  Jim Meyering  <meyering@redhat.com>
28036
28037         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28038         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28039
28040 2010-02-09  Eric Blake  <ebb9@byu.net>
28041         and Bruno Haible  <bruno@clisp.org>
28042
28043         obstack-printf-posix: ensure declaration
28044         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28045         extracted from gl_FUNC_OBSTACK_PRINTF.
28046         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28047         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28048         Likewise.
28049         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28050         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28051         0.
28052
28053 2010-02-08  Bruno Haible  <bruno@clisp.org>
28054
28055         gnulib-tool: Fix typo in 2010-02-07 commit.
28056         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28057         Reported by Eric Blake.
28058
28059 2010-02-07  Bruno Haible  <bruno@clisp.org>
28060
28061         gnulib-tool: Fix up caching patches.
28062         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28063         option --no-cache. Use associative arrays when supported by the shell.
28064         (sed_comments): New variable.
28065         (modcache): Renamed from do_cache.
28066         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28067         abbreviate unnecessarily.
28068         (have_associative): New variable.
28069         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28070         way also for ksh and zsh.
28071         (func_init_sed_convert_to_cache_statements): New function, extracted
28072         from func_cache_lookup_module. Add support for associative arrays.
28073         Don't set the c_MODULE_cached variable here. Ignore all lines before
28074         the first field header. Remove only the final newline, not all trailing
28075         newlines. Support empty fields correctly. Limit the use of 'eval' to
28076         assignments.
28077         (func_get_description, func_get_status, func_get_notice,
28078         func_get_applicability, func_get_filelist, func_get_dependencies,
28079         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28080         func_get_automake_snippet, func_get_include_directive,
28081         func_get_link_directive, func_get_license, func_get_maintainer):
28082         Update documentation. List the unoptimized code first. Add support for
28083         associative arrays. Limit the use of 'eval' to assignments.
28084         (func_get_applicability): Undo stylistic pessimisations.
28085         (func_get_automake_snippet, func_get_include_directive): Reduce code
28086         duplication.
28087         (func_modules_transitive_closure, func_modules_add_dummy,
28088         func_modules_notice, func_modules_to_filelist, func_add_file,
28089         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28090         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28091         func_create_testdir, func_create_megatestdir): Update documentation.
28092
28093 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28094
28095         * gnulib-tool (func_cache_lookup_module): Store the module name
28096         belonging to the cache variable; error out if two different
28097         module names map to the same cache variable name.
28098
28099 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28100
28101         gnulib-tool: Make caching optional.
28102         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28103         Update matching short versions of --no-changelog.
28104         (func_usage): Update.
28105         (sed_extract_cache_prog): Renamed from ...
28106         (sed_extract_prog): ... this; revert to old extraction script.
28107         (func_get_description, func_get_status)
28108         (func_get_notice, func_get_applicability, func_get_filelist)
28109         (func_get_dependencies, func_get_autoconf_early_snippet)
28110         (func_get_autoconf_snippet, func_get_automake_snippet)
28111         (func_get_include_directive, func_get_link_directive)
28112         (func_get_license, func_get_maintainer): If $do_cache is false,
28113         use old, non-caching extraction scripts.
28114         Suggestion by Bruno Haible.
28115
28116 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28117
28118         gnulib-tool: cache module metainformation.
28119         * gnulib-tool (sed_extract_prog): Match newline before each
28120         header, and rewrite header to a shell variable suffix.
28121         (func_cache_var, func_cache_lookup_module): New functions,
28122         to turn a module name into a cache variable prefix, and to
28123         look up and cache module metainformation.
28124         (func_get_description, func_get_status)
28125         (func_get_notice, func_get_applicability, func_get_filelist)
28126         (func_get_dependencies, func_get_autoconf_early_snippet)
28127         (func_get_autoconf_snippet, func_get_automake_snippet)
28128         (func_get_include_directive, func_get_link_directive)
28129         (func_get_license, func_get_maintainer): Use
28130         func_cache_lookup_module.
28131
28132 2010-02-07  Bruno Haible  <bruno@clisp.org>
28133
28134         fnctl: Fix missing dependency.
28135         * modules/fcntl (Depends-on): Add getdtablesize.
28136         Reported by John W. Eaton <jwe@gnu.org>.
28137
28138 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28139
28140         Argp: fix recognition of short alias options.
28141
28142         * lib/argp-parse.c (convert_options): Fix improper use of
28143         `|' between character values.
28144         * tests/test-argp.c (group1_option): New alias option
28145         --read (-r).
28146         (group1_parser): Special handling for 'r'.
28147         (test15): New test case.
28148         (test_fun): Add test15.
28149         * tests/test-argp-2.sh: Update expected --help and --usage
28150         outputs.
28151
28152 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28153
28154         * tests/test-argp.c: Fix indentation.
28155
28156 2010-02-04  Eric Blake  <ebb9@byu.net>
28157
28158         gettimeofday: expose type of second argument
28159         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28160         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28161         * tests/test-gettimeofday.c: Use it to silence warning.
28162         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28163         the issue.
28164
28165 2010-02-03  Jim Meyering  <meyering@redhat.com>
28166
28167         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28168         * lib/regcomp.c (TYPE_SIGNED): Define.
28169         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28170
28171         regcomp.c: avoid a new -Wshadow warning
28172         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28173
28174 2010-02-01  Jim Meyering  <meyering@redhat.com>
28175
28176         removing useless parentheses in cpp #define directives
28177         For motivation, see commit c0221df4, "define STREQ(a,b)
28178         consistently, removing useless parentheses"
28179         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28180         * lib/mountlist.c (MNT_IGNORE): Likewise.
28181         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28182
28183 2010-02-01  Eric Blake  <ebb9@byu.net>
28184
28185         sys_time: use link-warning
28186         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28187         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28188         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28189         * modules/sys_time (Depends-on): Add warn-on-use.
28190         (Makefile.am): Always build replacement.
28191         (configure.ac): Update substitutions.
28192         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28193         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28194         bother with SYS_TIME_H.
28195         * modules/gettimeofday (configure.ac): Declare indicator.
28196         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28197         in use.
28198
28199         closein-tests: silence compiler warning
28200         * tests/test-closein.c (main): Ignore fread result.
28201         * modules/closein-tests (Depends-on): Add ignore-value.
28202
28203         tests: silence warning about system return
28204         * tests/test-areadlink-with-size.c (main): Ignore system result.
28205         * tests/test-areadlink.c (main): Likewise.
28206         * tests/test-areadlinkat-with-size.c (main): Likewise.
28207         * tests/test-areadlinkat.c (main): Likewise.
28208         * tests/test-canonicalize-lgpl.c (main): Likewise.
28209         * tests/test-canonicalize.c (main): Likewise.
28210         * tests/test-chown.c (main): Likewise.
28211         * tests/test-fchownat.c (main): Likewise.
28212         * tests/test-fdutimensat.c (main): Likewise.
28213         * tests/test-fstatat.c (main): Likewise.
28214         * tests/test-futimens.c (main): Likewise.
28215         * tests/test-lchown.c (main): Likewise.
28216         * tests/test-link.c (main): Likewise.
28217         * tests/test-linkat.c (main): Likewise.
28218         * tests/test-lstat.c (main): Likewise.
28219         * tests/test-mkdir.c (main): Likewise.
28220         * tests/test-mkdirat.c (main): Likewise.
28221         * tests/test-mkfifo.c (main): Likewise.
28222         * tests/test-mkfifoat.c (main): Likewise.
28223         * tests/test-mknod.c (main): Likewise.
28224         * tests/test-readlink.c (main): Likewise.
28225         * tests/test-remove.c (main): Likewise.
28226         * tests/test-rename.c (main): Likewise.
28227         * tests/test-renameat.c (main): Likewise.
28228         * tests/test-rmdir.c (main): Likewise.
28229         * tests/test-symlink.c (main): Likewise.
28230         * tests/test-symlinkat.c (main): Likewise.
28231         * tests/test-unlink.c (main): Likewise.
28232         * tests/test-unlinkat.c (main): Likewise.
28233         * tests/test-utimens.c (main): Likewise.
28234         * tests/test-utimensat.c (main): Likewise.
28235         * modules/areadlink-tests (Depends-on): Add ignore-value.
28236         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28237         * modules/areadlinkat-tests (Depends-on): Likewise.
28238         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28239         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28240         * modules/canonicalize-tests (Depends-on): Likewise.
28241         * modules/chown-tests (Depends-on): Likewise.
28242         * modules/fdutimensat-tests (Depends-on): Likewise.
28243         * modules/futimens-tests (Depends-on): Likewise.
28244         * modules/lchown-tests (Depends-on): Likewise.
28245         * modules/link-tests (Depends-on): Likewise.
28246         * modules/linkat-tests (Depends-on): Likewise.
28247         * modules/lstat-tests (Depends-on): Likewise.
28248         * modules/mkdir-tests (Depends-on): Likewise.
28249         * modules/mkfifo-tests (Depends-on): Likewise.
28250         * modules/mkfifoat-tests (Depends-on): Likewise.
28251         * modules/mknod-tests (Depends-on): Likewise.
28252         * modules/openat-tests (Depends-on): Likewise.
28253         * modules/readlink-tests (Depends-on): Likewise.
28254         * modules/remove-tests (Depends-on): Likewise.
28255         * modules/rename-tests (Depends-on): Likewise.
28256         * modules/renameat-tests (Depends-on): Likewise.
28257         * modules/rmdir-tests (Depends-on): Likewise.
28258         * modules/symlink-tests (Depends-on): Likewise.
28259         * modules/symlinkat-tests (Depends-on): Likewise.
28260         * modules/unlink-tests (Depends-on): Likewise.
28261         * modules/utimens-tests (Depends-on): Likewise.
28262         * modules/utimensat-tests (Depends-on): Likewise.
28263
28264 2010-01-31  Bruno Haible  <bruno@clisp.org>
28265
28266         Perform the same test for many <math.h> functions.
28267         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28268         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28269         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28270         of gl_MATHFUNC.
28271         * modules/acos (configure.ac): Likewise.
28272         * modules/asin (configure.ac): Likewise.
28273         * modules/atan (configure.ac): Likewise.
28274         * modules/atan2 (configure.ac): Likewise.
28275         * modules/cbrt (configure.ac): Likewise.
28276         * modules/copysign (configure.ac): Likewise.
28277         * modules/cos (configure.ac): Likewise.
28278         * modules/cosh (configure.ac): Likewise.
28279         * modules/erf (configure.ac): Likewise.
28280         * modules/erfc (configure.ac): Likewise.
28281         * modules/exp (configure.ac): Likewise.
28282         * modules/fmod (configure.ac): Likewise.
28283         * modules/hypot (configure.ac): Likewise.
28284         * modules/j0 (configure.ac): Likewise.
28285         * modules/j1 (configure.ac): Likewise.
28286         * modules/jn (configure.ac): Likewise.
28287         * modules/lgamma (configure.ac): Likewise.
28288         * modules/log (configure.ac): Likewise.
28289         * modules/log10 (configure.ac): Likewise.
28290         * modules/log1p (configure.ac): Likewise.
28291         * modules/pow (configure.ac): Likewise.
28292         * modules/remainder (configure.ac): Likewise.
28293         * modules/sin (configure.ac): Likewise.
28294         * modules/sinh (configure.ac): Likewise.
28295         * modules/tan (configure.ac): Likewise.
28296         * modules/tanh (configure.ac): Likewise.
28297         * modules/y0 (configure.ac): Likewise.
28298         * modules/y1 (configure.ac): Likewise.
28299         * modules/yn (configure.ac): Likewise.
28300         Suggested by Paolo Bonzini.
28301
28302 2010-01-31  Bruno Haible  <bruno@clisp.org>
28303
28304         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28305
28306 2010-01-31  Bruno Haible  <bruno@clisp.org>
28307
28308         Work around getdelim() bug on FreeBSD 8.0.
28309         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28310         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28311         not work.
28312         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28313         is 1.
28314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28315         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28316         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28317         a non-zero size.
28318         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28319
28320 2010-01-31  Bruno Haible  <bruno@clisp.org>
28321
28322         Work around getline() bug on FreeBSD 8.0.
28323         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28324         and a non-zero size.
28325         * tests/test-getline.c (main): Likewise.
28326         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28327         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28328
28329 2010-01-28  Eric Blake  <ebb9@byu.net>
28330
28331         regex: fix build failure
28332         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28333         platforms.
28334
28335 2010-01-28  Jim Meyering  <meyering@redhat.com>
28336
28337         regex: do not ignore memory allocation failure
28338         * lib/regex_internal.c (create_cd_newstate): Detect
28339         re_node_set_init_copy failure.   Extracted from glibc commit
28340         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28341
28342         regex: sync more white-space changes from libc
28343         * lib/regex_internal.c: White-space only changes.
28344         * lib/regexec.c: Likewise.
28345
28346         regex: add many uses of __attribute_warn_unused_result__
28347         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28348         * lib/regexec.c: Likewise.
28349         Extracted from a messy glibc commit.
28350
28351         regcomp.c: spelling and merge-artifact from glibc
28352         * lib/regcomp.c: Merge remainder of glibc's
28353         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28354
28355         regcomp.c: sync white-space changes from glibc
28356         * lib/regcomp.c: Merge to accommodate white space
28357         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28358
28359         regcomp.c: do not ignore internal return values
28360         * lib/regcomp.c: Do not ignore internal return values.
28361         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28362         but without its white-space changes and spelling fixes.
28363
28364         regex_internal.h: define __attribute_warn_unused_result__
28365         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28366
28367         maint: add a syntax-check rule to check for vulnerable Makefile.in
28368         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28369
28370 2010-01-27  Jim Meyering  <meyering@redhat.com>
28371
28372         ncftpput-ftp: clean up spaces
28373         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28374         Remove trailing blanks.
28375
28376 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28377
28378         * build-aux/git-version-gen: Fix copyright statement.
28379         * build-aux/gnupload: Likewise.
28380         * tests/test-arcfour.c: Likewise.
28381         * tests/test-arctwo.c: Likewise.
28382         * tests/test-count-one-bits.c: Likewise.
28383         * tests/test-crc.c: Likewise.
28384         * tests/test-des.c: Likewise.
28385         * tests/test-gc-arcfour.c: Likewise.
28386         * tests/test-gc-arctwo.c: Likewise.
28387         * tests/test-gc-des.c: Likewise.
28388         * tests/test-gc-hmac-md5.c: Likewise.
28389         * tests/test-gc-hmac-sha1.c: Likewise.
28390         * tests/test-gc-md2.c: Likewise.
28391         * tests/test-gc-md4.c: Likewise.
28392         * tests/test-gc-md5.c: Likewise.
28393         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28394         * tests/test-gc-rijndael.c: Likewise.
28395         * tests/test-gc-sha1.c: Likewise.
28396         * tests/test-gc.c: Likewise.
28397         * tests/test-gethostname.c: Likewise.
28398         * tests/test-gettimeofday.c: Likewise.
28399         * tests/test-hash.c: Likewise.
28400         * tests/test-hmac-md5.c: Likewise.
28401         * tests/test-hmac-sha1.c: Likewise.
28402         * tests/test-md2.c: Likewise.
28403         * tests/test-md4.c: Likewise.
28404         * tests/test-md5.c: Likewise.
28405         * tests/test-memchr.c: Likewise.
28406         * tests/test-memchr2.c: Likewise.
28407         * tests/test-memcmp.c: Likewise.
28408         * tests/test-memmem.c: Likewise.
28409         * tests/test-memrchr.c: Likewise.
28410         * tests/test-rawmemchr.c: Likewise.
28411         * tests/test-read-file.c: Likewise.
28412         * tests/test-rijndael.c: Likewise.
28413         * tests/test-sockets.c: Likewise.
28414         * tests/test-strchrnul.c: Likewise.
28415         * tests/test-strstr.c: Likewise.
28416         * tests/test-strtod.c: Likewise.
28417         * build-aux/ncftpput-ftp: Likewise.
28418
28419 2010-01-26  Eric Blake  <ebb9@byu.net>
28420
28421         ignore-value: update recommended header name
28422         * modules/ignore-value (Include): Only use <> for headers that
28423         exist in glibc.
28424
28425 2010-01-26  Jim Meyering  <meyering@redhat.com>
28426
28427         test-userspec.c: avoid compiler warnings
28428         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28429         and "initialization discards qualifiers..." warnings.
28430         Put the first "uid" in its own scope, and make char* members "const".
28431
28432 2010-01-25  Bruno Haible  <bruno@clisp.org>
28433
28434         gnulib-tool: Make warning diagnostics consistent.
28435         * gnulib-tool (func_warning): New function.
28436         Use it everywhere where gnulib-tool produces output to stderr and it is
28437         not a fatal error.
28438
28439 2010-01-25  Bruno Haible  <bruno@clisp.org>
28440
28441         Fix test dependencies.
28442         * modules/xstrtol-tests (Depends-on): Add inttypes.
28443         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28444
28445 2010-01-25 Pádraig Brady <P@draigBrady.com>
28446
28447         syntax-check: detect incorrect boolean macro values in config.h
28448         * modules/maintainer-makefile (configure.ac): Parameterize the location
28449         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28450         The logic is from Eric Blake and the location indicated by Jim Meyering.
28451         Note the more natural CONFIG_HEADER name is prohibited by automake
28452         for backwards compatibility reasons.
28453         * top/maint.mk (sc_Wundef_boolean): New rule.
28454
28455 2010-01-25  Jim Meyering  <meyering@redhat.com>
28456
28457         bootstrap: detect MacOS 10.6's shasum, too
28458         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28459         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28460
28461 2010-01-23  Jim Meyering  <meyering@redhat.com>
28462
28463         xstrtoll: new module
28464         * modules/xstrtoll: New file.
28465         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28466         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28467         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28468         ./configure fails if you use this module and lack "long long".
28469         * modules/xstrtoll-tests: New module.
28470         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28471         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28472         new init.sh-based test framework.
28473
28474 2010-01-24  Bruno Haible  <bruno@clisp.org>
28475
28476         Tests for module 'yn'.
28477         * modules/yn-tests: New file.
28478         * tests/test-yn.c: New file.
28479
28480         Tests for module 'y1'.
28481         * modules/y1-tests: New file.
28482         * tests/test-y1.c: New file.
28483
28484         Tests for module 'y0'.
28485         * modules/y0-tests: New file.
28486         * tests/test-y0.c: New file.
28487
28488         Tests for module 'tanh'.
28489         * modules/tanh-tests: New file.
28490         * tests/test-tanh.c: New file.
28491
28492         Tests for module 'tan'.
28493         * modules/tan-tests: New file.
28494         * tests/test-tan.c: New file.
28495
28496         Tests for module 'sqrt'.
28497         * modules/sqrt-tests: New file.
28498         * tests/test-sqrt.c: New file.
28499
28500         Tests for module 'sinh'.
28501         * modules/sinh-tests: New file.
28502         * tests/test-sinh.c: New file.
28503
28504         Tests for module 'sin'.
28505         * modules/sin-tests: New file.
28506         * tests/test-sin.c: New file.
28507
28508         Tests for module 'rint'.
28509         * modules/rint-tests: New file.
28510         * tests/test-rint.c: New file.
28511
28512         Tests for module 'remainder'.
28513         * modules/remainder-tests: New file.
28514         * tests/test-remainder.c: New file.
28515
28516         Tests for module 'pow'.
28517         * modules/pow-tests: New file.
28518         * tests/test-pow.c: New file.
28519
28520         Tests for module 'nextafter'.
28521         * modules/nextafter-tests: New file.
28522         * tests/test-nextafter.c: New file.
28523
28524         Tests for module 'modf'.
28525         * modules/modf-tests: New file.
28526         * tests/test-modf.c: New file.
28527
28528         Tests for module 'logb'.
28529         * modules/logb-tests: New file.
28530         * tests/test-logb.c: New file.
28531
28532         Tests for module 'log1p'.
28533         * modules/log1p-tests: New file.
28534         * tests/test-log1p.c: New file.
28535
28536         Tests for module 'log10'.
28537         * modules/log10-tests: New file.
28538         * tests/test-log10.c: New file.
28539
28540         Tests for module 'log'.
28541         * modules/log-tests: New file.
28542         * tests/test-log.c: New file.
28543
28544         Tests for module 'lgamma'.
28545         * modules/lgamma-tests: New file.
28546         * tests/test-lgamma.c: New file.
28547
28548         Tests for module 'ldexp'.
28549         * modules/ldexp-tests: New file.
28550         * tests/test-ldexp.c: New file.
28551
28552         Tests for module 'jn'.
28553         * modules/jn-tests: New file.
28554         * tests/test-jn.c: New file.
28555
28556         Tests for module 'j1'.
28557         * modules/j1-tests: New file.
28558         * tests/test-j1.c: New file.
28559
28560         Tests for module 'j0'.
28561         * modules/j0-tests: New file.
28562         * tests/test-j0.c: New file.
28563
28564         Tests for module 'hypot'.
28565         * modules/hypot-tests: New file.
28566         * tests/test-hypot.c: New file.
28567
28568         Tests for module 'fmod'.
28569         * modules/fmod-tests: New file.
28570         * tests/test-fmod.c: New file.
28571
28572         Tests for module 'fabs'.
28573         * modules/fabs-tests: New file.
28574         * tests/test-fabs.c: New file.
28575
28576         Tests for module 'exp'.
28577         * modules/exp-tests: New file.
28578         * tests/test-exp.c: New file.
28579
28580         Tests for module 'erfc'.
28581         * modules/erfc-tests: New file.
28582         * tests/test-erfc.c: New file.
28583
28584         Tests for module 'erf'.
28585         * modules/erf-tests: New file.
28586         * tests/test-erf.c: New file.
28587
28588         Tests for module 'cosh'.
28589         * modules/cosh-tests: New file.
28590         * tests/test-cosh.c: New file.
28591
28592         Tests for module 'cos'.
28593         * modules/cos-tests: New file.
28594         * tests/test-cos.c: New file.
28595
28596         Tests for module 'copysign'.
28597         * modules/copysign-tests: New file.
28598         * tests/test-copysign.c: New file.
28599
28600         Tests for module 'cbrt'.
28601         * modules/cbrt-tests: New file.
28602         * tests/test-cbrt.c: New file.
28603
28604         Tests for module 'atan2'.
28605         * modules/atan2-tests: New file.
28606         * tests/test-atan2.c: New file.
28607
28608         Tests for module 'atan'.
28609         * modules/atan-tests: New file.
28610         * tests/test-atan.c: New file.
28611
28612         Tests for module 'asin'.
28613         * modules/asin-tests: New file.
28614         * tests/test-asin.c: New file.
28615
28616         Tests for module 'acos'.
28617         * modules/acos-tests: New file.
28618         * tests/test-acos.c: New file.
28619
28620 2010-01-24  Bruno Haible  <bruno@clisp.org>
28621
28622         Fix tests for common <math.h> functions.
28623         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28624         code snippet that references the function pointer, rather than merely
28625         calling the function. Substitute the FUNC_LIBM variable.
28626         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28627         * modules/acos (configure.ac): Likewise.
28628         * modules/asin (configure.ac): Likewise.
28629         * modules/atan (configure.ac): Likewise.
28630         * modules/atan2 (configure.ac): Likewise.
28631         * modules/cbrt (configure.ac): Likewise.
28632         * modules/copysign (configure.ac): Likewise.
28633         * modules/cos (configure.ac): Likewise.
28634         * modules/cosh (configure.ac): Likewise.
28635         * modules/erf (configure.ac): Likewise.
28636         * modules/erfc (configure.ac): Likewise.
28637         * modules/exp (configure.ac): Likewise.
28638         * modules/fabs (configure.ac): Likewise.
28639         * modules/fmod (configure.ac): Likewise.
28640         * modules/hypot (configure.ac): Likewise.
28641         * modules/j0 (configure.ac): Likewise.
28642         * modules/j1 (configure.ac): Likewise.
28643         * modules/jn (configure.ac): Likewise.
28644         * modules/ldexp (configure.ac): Likewise.
28645         * modules/lgamma (configure.ac): Likewise.
28646         * modules/log (configure.ac): Likewise.
28647         * modules/log10 (configure.ac): Likewise.
28648         * modules/log1p (configure.ac): Likewise.
28649         * modules/logb (configure.ac): Likewise.
28650         * modules/modf (configure.ac): Likewise.
28651         * modules/nextafter (configure.ac): Likewise.
28652         * modules/pow (configure.ac): Likewise.
28653         * modules/remainder (configure.ac): Likewise.
28654         * modules/rint (configure.ac): Likewise.
28655         * modules/sin (configure.ac): Likewise.
28656         * modules/sinh (configure.ac): Likewise.
28657         * modules/tan (configure.ac): Likewise.
28658         * modules/tanh (configure.ac): Likewise.
28659         * modules/y0 (configure.ac): Likewise.
28660         * modules/y1 (configure.ac): Likewise.
28661         * modules/yn (configure.ac): Likewise.
28662
28663 2010-01-24  Bruno Haible  <bruno@clisp.org>
28664
28665         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28666         * tests/test-acosl.c (x): New variable.
28667         (main): Store argument in x and fetch it from x.
28668         * tests/test-asinl.c (x): New variable.
28669         (main): Store argument in x and fetch it from x.
28670         * tests/test-atanl.c (x): New variable.
28671         (main): Store argument in x and fetch it from x.
28672         * tests/test-cosl.c (x): New variable.
28673         (main): Store argument in x and fetch it from x.
28674         * tests/test-expl.c (x): New variable.
28675         (main): Store argument in x and fetch it from x.
28676         * tests/test-logl.c (x): New variable.
28677         (main): Store argument in x and fetch it from x.
28678         * tests/test-sinl.c (x): New variable.
28679         (main): Store argument in x and fetch it from x.
28680         * tests/test-sqrtl.c (x): New variable.
28681         (main): Store argument in x and fetch it from x.
28682         * tests/test-tanl.c (x): New variable.
28683         (main): Store argument in x and fetch it from x.
28684
28685 2010-01-24  Bruno Haible  <bruno@clisp.org>
28686
28687         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28688         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28689         assignments to the initial TESTS_ENVIRONMENT.
28690         * doc/gnulib.texi (Unit test modules): Document it.
28691         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28692         TESTS_ENVIRONMENT.
28693         * modules/btowc-tests (Makefile.am): Likewise.
28694         * modules/c-stack-tests (Makefile.am): Likewise.
28695         * modules/c-strcase-tests (Makefile.am): Likewise.
28696         * modules/copy-file-tests (Makefile.am): Likewise.
28697         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28698         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28699         * modules/mbrtowc-tests (Makefile.am): Likewise.
28700         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28701         * modules/mbscasestr-tests (Makefile.am): Likewise.
28702         * modules/mbschr-tests (Makefile.am): Likewise.
28703         * modules/mbscspn-tests (Makefile.am): Likewise.
28704         * modules/mbsinit-tests (Makefile.am): Likewise.
28705         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28706         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28707         * modules/mbspbrk-tests (Makefile.am): Likewise.
28708         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28709         * modules/mbsrchr-tests (Makefile.am): Likewise.
28710         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28711         * modules/mbsspn-tests (Makefile.am): Likewise.
28712         * modules/mbsstr-tests (Makefile.am): Likewise.
28713         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28714         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28715         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28716         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28717         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28718         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28719         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28720         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28721         * modules/wcrtomb-tests (Makefile.am): Likewise.
28722         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28723         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28724         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28725         assignments from TESTS_ENVIRONMENT.
28726         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28727         augmentation.
28728         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28729         * modules/atexit-tests (Makefile.am): Likewise.
28730         * modules/binary-io-tests (Makefile.am): Likewise.
28731         * modules/closein-tests (Makefile.am): Likewise.
28732         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28733         * modules/exclude-tests (Makefile.am): Likewise.
28734         * modules/fflush-tests (Makefile.am): Likewise.
28735         * modules/fpending-tests (Makefile.am): Likewise.
28736         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28737         * modules/freadahead-tests (Makefile.am): Likewise.
28738         * modules/freadptr-tests (Makefile.am): Likewise.
28739         * modules/freadseek-tests (Makefile.am): Likewise.
28740         * modules/fseek-tests (Makefile.am): Likewise.
28741         * modules/fseeko-tests (Makefile.am): Likewise.
28742         * modules/ftell-tests (Makefile.am): Likewise.
28743         * modules/ftello-tests (Makefile.am): Likewise.
28744         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28745         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28746         * modules/lseek-tests (Makefile.am): Likewise.
28747         * modules/parse-duration-tests (Makefile.am): Likewise.
28748         * modules/perror-tests (Makefile.am): Likewise.
28749         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28750         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28751         * modules/pipe-tests (Makefile.am): Likewise.
28752         * modules/pread-tests (Makefile.am): Likewise.
28753         * modules/printf-posix-tests (Makefile.am): Likewise.
28754         * modules/select-tests (Makefile.am): Likewise.
28755         * modules/sigpipe-tests (Makefile.am): Likewise.
28756         * modules/tsearch-tests (Makefile.am): Likewise.
28757         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28758         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28759         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28760         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28761         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28762         * modules/version-etc-tests (Makefile.am): Likewise.
28763         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28764         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28765         * modules/xalloc-die-tests (Makefile.am): Likewise.
28766         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28767         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28768         * modules/xstrtol-tests (Makefile.am): Likewise.
28769         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28770         * modules/yesno-tests (Makefile.am): Likewise.
28771         Suggested by Jim Meyering.
28772
28773 2010-01-24  Bruno Haible  <bruno@clisp.org>
28774
28775         More documentation.
28776         * doc/gnulib.texi (Writing modules): New chapter.
28777         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28778         the new chapter.
28779
28780 2010-01-24  Jim Meyering  <meyering@redhat.com>
28781
28782         maint.mk: do not prepend "./" after filtering
28783         * top/maint.mk (_prepend_srcdir_prefix): New variable
28784         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28785         "./" when $(srcdir) is ".".
28786
28787         define STREQ(a,b) consistently, removing useless parentheses
28788         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28789         since the only risk is that "a" or "b" contains an unparenthesized
28790         comma, but if either did that, STREQ would have 3 or more arguments.
28791         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28792         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28793         * lib/hash-triple.c (STREQ): Likewise.
28794         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28795         * lib/getugroups.c (STREQ): Likewise.
28796
28797 2010-01-23  Jim Meyering  <meyering@redhat.com>
28798
28799         maint.mk: fix syntax-check in a non-srcdir build directory
28800         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28801         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28802
28803 2010-01-22  Jim Meyering  <meyering@redhat.com>
28804
28805         userspec: add unit tests
28806         * tests/test-userspec.c: New file.
28807         * modules/userspec-tests: Likewise.
28808
28809 2010-01-21  Jim Meyering  <meyering@redhat.com>
28810
28811         maint.mk: handle source file names containing "." robustly
28812         * top/maint.mk (_dot_escaped_srcdir): Define.
28813         (VC_LIST): Use it in LHS of sed substitution.
28814
28815 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28816
28817         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28818         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28819         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28820         from a non-srcdir build.
28821
28822 2010-01-20  Eric Blake  <ebb9@byu.net>
28823
28824         warn-on-use: use instead of link-warning
28825         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28826         * modules/unistd (Depends-on, Makefile.am): Likewise.
28827         * modules/arpa_inet (Depends-on): Replace link-warning with
28828         warn-on-use.
28829         (Makefile.am): Update rules accordingly.
28830         * modules/ctype (Depends-on, Makefile.am): Likewise.
28831         * modules/dirent (Depends-on, Makefile.am): Likewise.
28832         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28833         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28834         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28835         * modules/locale (Depends-on, Makefile.am): Likewise.
28836         * modules/math (Depends-on, Makefile.am): Likewise.
28837         * modules/search (Depends-on, Makefile.am): Likewise.
28838         * modules/signal (Depends-on, Makefile.am): Likewise.
28839         * modules/spawn (Depends-on, Makefile.am): Likewise.
28840         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28841         * modules/string (Depends-on, Makefile.am): Likewise.
28842         * modules/strings (Depends-on, Makefile.am): Likewise.
28843         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28844         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28845         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28846         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28847         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28848         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28849         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28850         * modules/wchar (Depends-on, Makefile.am): Likewise.
28851         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28852         should be poisoned.
28853         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28854         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28855         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28856         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28857         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28858         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28859         * m4/math_h.m4 (gl_MATH_H): Likewise.
28860         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28861         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28862         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28863         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28864         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28865         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28866         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28867         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28868         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28869         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28870         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28872         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28873         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28874         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28875         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28876         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28877         GL_LINK_WARNING.
28878         * lib/ctype.in.h: Likewise.
28879         * lib/dirent.in.h: Likewise.
28880         * lib/fcntl.in.h: Likewise.
28881         * lib/inttypes.in.h: Likewise.
28882         * lib/langinfo.in.h: Likewise.
28883         * lib/locale.in.h: Likewise.
28884         * lib/math.in.h: Likewise.
28885         * lib/search.in.h: Likewise.
28886         * lib/signal.in.h: Likewise.
28887         * lib/spawn.in.h: Likewise.
28888         * lib/stdio.in.h: Likewise.
28889         * lib/stdlib.in.h: Likewise.
28890         * lib/string.in.h: Likewise.
28891         * lib/strings.in.h: Likewise.
28892         * lib/sys_file.in.h: Likewise.
28893         * lib/sys_ioctl.in.h: Likewise.
28894         * lib/sys_select.in.h: Likewise.
28895         * lib/sys_socket.in.h: Likewise.
28896         * lib/sys_stat.in.h: Likewise.
28897         * lib/sys_times.in.h: Likewise.
28898         * lib/sys_utsname.in.h: Likewise.
28899         * lib/unistd.in.h: Likewise.
28900         * lib/wchar.in.h: Likewise.
28901
28902 2010-01-20  Bruno Haible  <bruno@clisp.org>
28903
28904         Avoid duplicate -lm.
28905         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28906         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28907         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28908         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28909         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28910         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28911         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28912         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28913         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28914         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28915         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28916         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28917         Reported by Paolo Bonzini.
28918
28919 2010-01-19  Bruno Haible  <bruno@clisp.org>
28920
28921         langinfo, nl_langinfo: Relicense under LGPLv2+.
28922         * modules/langinfo (License): Change to LGPLv2+.
28923         * modules/nl_langinfo (License): Likewise.
28924         Patch by David Lutterkort <lutter@redhat.com>.
28925
28926 2010-01-19  Bruno Haible  <bruno@clisp.org>
28927
28928         Avoid compilation error with cc on OSF/1 5.1.
28929         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28930         statement, not before.
28931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28932
28933 2010-01-18  Bruno Haible  <bruno@clisp.org>
28934
28935         Avoid a link error due to the __printf__ symbol.
28936         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28937         and 2.6.x.
28938         (__format__, __printf__): Remove definitions.
28939         * lib/argp-fmtstream.h: Likewise.
28940         * lib/argp.h: Likewise.
28941         * lib/error.h: Likewise.
28942         * lib/vasnprintf.h: Likewise.
28943         * lib/xprintf.h: Likewise.
28944         * lib/xvasprintf.h: Likewise.
28945         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28946
28947 2010-01-18  Bruno Haible  <bruno@clisp.org>
28948
28949         Tests for module 'tanl'.
28950         * modules/tanl-tests: New file.
28951         * tests/test-tanl.c: New file.
28952
28953         Tests for module 'sqrtl'.
28954         * modules/sqrtl-tests: New file.
28955         * tests/test-sqrtl.c: New file.
28956
28957         Tests for module 'sinl'.
28958         * modules/sinl-tests: New file.
28959         * tests/test-sinl.c: New file.
28960
28961         Tests for module 'logl'.
28962         * modules/logl-tests: New file.
28963         * tests/test-logl.c: New file.
28964
28965         Tests for module 'expl'.
28966         * modules/expl-tests: New file.
28967         * tests/test-expl.c: New file.
28968
28969         Tests for module 'cosl'.
28970         * modules/cosl-tests: New file.
28971         * tests/test-cosl.c: New file.
28972
28973         Tests for module 'atanl'.
28974         * modules/atanl-tests: New file.
28975         * tests/test-atanl.c: New file.
28976
28977         Tests for module 'asinl'.
28978         * modules/asinl-tests: New file.
28979         * tests/test-asinl.c: New file.
28980
28981         Tests for module 'acosl'.
28982         * modules/acosl-tests: New file.
28983         * tests/test-acosl.c: New file.
28984
28985         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28986         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28987         tanl): Use the standard gnulib idiom.
28988         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28989         * lib/sinl.c: Likewise.
28990         * lib/tanl.c: Don't include trigl.c.
28991         (kernel_tanl): Make static.
28992         * lib/sincosl.c: Include trigl.h first.
28993         * lib/trigl.c: Likewise.
28994         * m4/acosl.m4: New file.
28995         * m4/asinl.m4: New file.
28996         * m4/atanl.m4: New file.
28997         * m4/cosl.m4: New file.
28998         * m4/expl.m4: New file.
28999         * m4/logl.m4: New file.
29000         * m4/sinl.m4: New file.
29001         * m4/sqrtl.m4: New file.
29002         * m4/tanl.m4: New file.
29003         * m4/mathl.m4: Remove file.
29004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29005         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29006         Don't initialize GNULIB_MATHL.
29007         * modules/acosl: New file.
29008         * modules/asinl: New file.
29009         * modules/atanl: New file.
29010         * modules/cosl: New file.
29011         * modules/expl: New file.
29012         * modules/logl: New file.
29013         * modules/sinl: New file.
29014         * modules/sqrtl: New file.
29015         * modules/tanl: New file.
29016         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29017         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29018         substitute GNULIB_MATHL.
29019         * modules/mathl: Rewritten.
29020         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29021         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29022         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29023         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29024         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29025         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29026         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29027         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29028         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29029
29030 2010-01-18  Bruno Haible  <bruno@clisp.org>
29031
29032         sqrt: Make gl_FUNC_SQRT requirable.
29033         * m4/sqrt.m4: New file.
29034         * modules/sqrt (Files): Add it.
29035         (configure.ac): Invoke gl_FUNC_SQRT.
29036
29037 2010-01-18  Bruno Haible  <bruno@clisp.org>
29038
29039         New modules for common <math.h> functions.
29040         * m4/mathfunc.m4: New file.
29041         * modules/acos: New file.
29042         * modules/asin: New file.
29043         * modules/atan: New file.
29044         * modules/atan2: New file.
29045         * modules/cbrt: New file.
29046         * modules/copysign: New file.
29047         * modules/cos: New file.
29048         * modules/cosh: New file.
29049         * modules/erf: New file.
29050         * modules/erfc: New file.
29051         * modules/exp: New file.
29052         * modules/fabs: New file.
29053         * modules/fmod: New file.
29054         * modules/hypot: New file.
29055         * modules/j0: New file.
29056         * modules/j1: New file.
29057         * modules/jn: New file.
29058         * modules/ldexp: New file.
29059         * modules/lgamma: New file.
29060         * modules/log: New file.
29061         * modules/log10: New file.
29062         * modules/log1p: New file.
29063         * modules/logb: New file.
29064         * modules/modf: New file.
29065         * modules/nextafter: New file.
29066         * modules/pow: New file.
29067         * modules/remainder: New file.
29068         * modules/rint: New file.
29069         * modules/sin: New file.
29070         * modules/sinh: New file.
29071         * modules/sqrt: New file.
29072         * modules/tan: New file.
29073         * modules/tanh: New file.
29074         * modules/y0: New file.
29075         * modules/y1: New file.
29076         * modules/yn: New file.
29077         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29078         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29079         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29080         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29081         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29082         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29083         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29084         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29085         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29086         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29087         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29088         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29089         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29090         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29091         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29092         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29093         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29094         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29095         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29096         * doc/posix-functions/log.texi: Mention the 'log' module.
29097         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29098         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29099         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29100         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29101         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29102         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29103         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29104         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29105         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29106         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29107         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29108         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29109         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29110         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29111         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29112         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29113
29114 2010-01-18  Jim Meyering  <meyering@redhat.com>
29115
29116         ignore-value: relax license to LGPLv2+
29117         * modules/ignore-value (License): Relax to LGPLv2+.
29118
29119         getdate: don't leak when TZ contains two or more '"'s
29120         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29121         double quote in TZ after the first one.
29122
29123         readtokens: do not leak internal token_lengths buffer
29124         * lib/readtokens.c (readtokens): Free the local, lengths,
29125         when the supplied "token_lengths" parameter is NULL.
29126
29127 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29128
29129         Fix a couple of missing LIBTHREAD link failures on AIX.
29130         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29131         $(LIBTHREAD).
29132         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29133
29134         Link test-poll against INET_PTON_LIB.
29135         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29136         for inet_pton on Solaris 10.
29137
29138 2010-01-17  Bruno Haible  <bruno@clisp.org>
29139
29140         unistdio/*-sprintf: Fix typo in module description.
29141         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29142         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29143         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29144         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29145         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29146         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29147         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29148         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29149
29150 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29151
29152         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29153         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29154         variables in shell case patterns, for AIX and HP-UX ksh.
29155
29156         Split large sed scripts, for HP-UX sed.
29157         * modules/stdio: Split sed scripts around 50 sed commands,
29158         to avoid HP-UX limit of 99 commands, in the near future.
29159         * modules/string: Likewise.
29160         * modules/unistd: Likewise.
29161
29162         gnulib-tool: avoid writing in the current directory.
29163         * gnulib-tool (func_emit_lib_Makefile_am)
29164         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29165         not in the current directory, so concurrent gnulib-tool
29166         instances do not interfere.
29167
29168 2010-01-16  Jim Meyering  <meyering@redhat.com>
29169
29170         doc: update users.txt
29171         * users.txt: Add grep.
29172         (diffutils, gzip): Update URLs.
29173
29174 2010-01-12  Bruno Haible  <bruno@clisp.org>
29175
29176         posix_spawn: Avoid test failure on Cygwin.
29177         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29178         characters.
29179         Reported by Simon Josefsson.
29180
29181 2010-01-12  Bruno Haible  <bruno@clisp.org>
29182
29183         * tests/test-cond.c (main): When skipping the test, show the reason.
29184
29185 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29186
29187         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29188
29189 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29190
29191         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29192         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29193
29194 2010-01-12  Eric Blake  <ebb9@byu.net>
29195
29196         build: guarantee AS_VAR_IF
29197         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29198         (gl_AS_VAR_IF): Move...
29199         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29200         Reported by Simon Josefsson.
29201
29202 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29203
29204         * lib/stdio.in.h: Fix typo.
29205
29206 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29207
29208         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29209         libgpg-error.
29210
29211 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29212
29213         * tests/test-xalloc-die.sh: Use $EXEEXT.
29214
29215 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29216             Bruno Haible  <bruno@clisp.org>
29217
29218         getlogin, getlogin_r: Avoid test failure.
29219         * tests/test-getlogin.c: Include <stdio.h>.
29220         (main): Skip the test when the function fails because stdin is not a
29221         tty.
29222         * tests/test-getlogin_r.c: Include <stdio.h>.
29223         (main): Skip the test when the function fails because stdin is not a
29224         tty.
29225
29226 2010-01-11  Eric Blake  <ebb9@byu.net>
29227
29228         tests: avoid more large file warnings
29229         * tests/test-fflush.c: Avoid warning about ftell use.
29230         * tests/test-fseek.c: Avoid warning about fseek use.
29231
29232 2010-01-10  Bruno Haible  <bruno@clisp.org>
29233
29234         nproc: Work better on Linux when /proc and /sys are not mounted.
29235         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29236         as lower bound when, on glibc/Linux systems,
29237         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29238         Suggested by Pádraig Brady <P@draigbrady.com>.
29239         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29240
29241         nproc: Refactor.
29242         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29243         extracted from num_processors.
29244         (num_processors): Call it.
29245
29246 2010-01-11  Jim Meyering  <meyering@redhat.com>
29247
29248         utimecmp: avoid new warning from upcoming gcc-4.5.0
29249         * lib/utimecmp.c (BILLION): Define using #define rather than an
29250         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29251
29252 2010-01-11  Eric Blake  <ebb9@byu.net>
29253
29254         math: add portability warnings for classification macros
29255         * modules/math (Depends-on): Add warn-on-use.
29256         (Makefile.am): Provide new substitutions.
29257         * m4/math_h.m4 (gl_MATH_H): Require inline.
29258         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29259         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29260         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29261         implement warnings.
29262
29263         unistd: warn on use of environ without module
29264         * modules/unistd (Depends-on): Add warn-on-use.
29265         (Makefile.am): Provide new substitutions.
29266         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29267         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29268
29269         stdio: warn on suspicious uses
29270         * modules/stdio (Depends-on): Add warn-on-use.
29271         (Makefile.am): Provide new substitutions.
29272         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29273         fseeko.
29274         * lib/stdio.in.h (gets): Always warn on use.
29275         (fseek, ftell): Adjust when warnings are issued, and honor
29276         _GL_NO_LARGE_FILES as a way to silence the warning.
29277         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29278         any warning about large file offsets.
29279         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29280         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29281         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29282         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29283         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29284         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29285         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29286         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29287
29288         warn-on-use: new module
29289         * modules/warn-on-use: New file.
29290         * build-aux/warn-on-use.h: Likewise.
29291         * m4/warn-on-use.m4: Likewise.
29292         * MODULES.html.sh (Support for building): Mention it.
29293
29294 2010-01-10  Bruno Haible  <bruno@clisp.org>
29295
29296         Tests for module 'unistr/u32-strdup'.
29297         * modules/unistr/u32-strdup-tests: New file.
29298         * tests/unistr/test-u32-strdup.c: New file.
29299
29300         Tests for module 'unistr/u16-strdup'.
29301         * modules/unistr/u16-strdup-tests: New file.
29302         * tests/unistr/test-u16-strdup.c: New file.
29303
29304         Tests for module 'unistr/u8-strdup'.
29305         * modules/unistr/u8-strdup-tests: New file.
29306         * tests/unistr/test-u8-strdup.c: New file.
29307         * tests/unistr/test-strdup.h: New file.
29308
29309         Tests for module 'unistr/u32-strncmp'.
29310         * modules/unistr/u32-strncmp-tests: New file.
29311         * tests/unistr/test-u32-strncmp.c: New file.
29312
29313         Tests for module 'unistr/u16-strncmp'.
29314         * modules/unistr/u16-strncmp-tests: New file.
29315         * tests/unistr/test-u16-strncmp.c: New file.
29316
29317         Tests for module 'unistr/u8-strncmp'.
29318         * modules/unistr/u8-strncmp-tests: New file.
29319         * tests/unistr/test-u8-strncmp.c: New file.
29320         * tests/unistr/test-strncmp.h: New file.
29321
29322         Tests for module 'unistr/u32-strcoll'.
29323         * modules/unistr/u32-strcoll-tests: New file.
29324         * tests/unistr/test-u32-strcoll.c: New file.
29325
29326         Tests for module 'unistr/u16-strcoll'.
29327         * modules/unistr/u16-strcoll-tests: New file.
29328         * tests/unistr/test-u16-strcoll.c: New file.
29329
29330         Tests for module 'unistr/u8-strcoll'.
29331         * modules/unistr/u8-strcoll-tests: New file.
29332         * tests/unistr/test-u8-strcoll.c: New file.
29333
29334         Tests for module 'unistr/u32-strcmp'.
29335         * modules/unistr/u32-strcmp-tests: New file.
29336         * tests/unistr/test-u32-strcmp.c: New file.
29337         * tests/unistr/test-u32-strcmp.h: New file.
29338
29339         Tests for module 'unistr/u16-strcmp'.
29340         * modules/unistr/u16-strcmp-tests: New file.
29341         * tests/unistr/test-u16-strcmp.c: New file.
29342         * tests/unistr/test-u16-strcmp.h: New file.
29343
29344         Tests for module 'unistr/u8-strcmp'.
29345         * modules/unistr/u8-strcmp-tests: New file.
29346         * tests/unistr/test-u8-strcmp.c: New file.
29347         * tests/unistr/test-u8-strcmp.h: New file.
29348         * tests/unistr/test-strcmp.h: New file.
29349
29350         Tests for module 'unistr/u32-strncat'.
29351         * modules/unistr/u32-strncat-tests: New file.
29352         * tests/unistr/test-u32-strncat.c: New file.
29353
29354         Tests for module 'unistr/u16-strncat'.
29355         * modules/unistr/u16-strncat-tests: New file.
29356         * tests/unistr/test-u16-strncat.c: New file.
29357
29358         Tests for module 'unistr/u8-strncat'.
29359         * modules/unistr/u8-strncat-tests: New file.
29360         * tests/unistr/test-u8-strncat.c: New file.
29361         * tests/unistr/test-strncat.h: New file.
29362
29363         Tests for module 'unistr/u32-strcat'.
29364         * modules/unistr/u32-strcat-tests: New file.
29365         * tests/unistr/test-u32-strcat.c: New file.
29366
29367         Tests for module 'unistr/u16-strcat'.
29368         * modules/unistr/u16-strcat-tests: New file.
29369         * tests/unistr/test-u16-strcat.c: New file.
29370
29371         Tests for module 'unistr/u8-strcat'.
29372         * modules/unistr/u8-strcat-tests: New file.
29373         * tests/unistr/test-u8-strcat.c: New file.
29374         * tests/unistr/test-strcat.h: New file.
29375
29376         Tests for module 'unistr/u32-stpncpy'.
29377         * modules/unistr/u32-stpncpy-tests: New file.
29378         * tests/unistr/test-u32-stpncpy.c: New file.
29379
29380         Tests for module 'unistr/u16-stpncpy'.
29381         * modules/unistr/u16-stpncpy-tests: New file.
29382         * tests/unistr/test-u16-stpncpy.c: New file.
29383
29384         Tests for module 'unistr/u8-stpncpy'.
29385         * modules/unistr/u8-stpncpy-tests: New file.
29386         * tests/unistr/test-u8-stpncpy.c: New file.
29387         * tests/unistr/test-stpncpy.h: New file.
29388
29389         Tests for module 'unistr/u32-strncpy'.
29390         * modules/unistr/u32-strncpy-tests: New file.
29391         * tests/unistr/test-u32-strncpy.c: New file.
29392
29393         Tests for module 'unistr/u16-strncpy'.
29394         * modules/unistr/u16-strncpy-tests: New file.
29395         * tests/unistr/test-u16-strncpy.c: New file.
29396
29397         Tests for module 'unistr/u8-strncpy'.
29398         * modules/unistr/u8-strncpy-tests: New file.
29399         * tests/unistr/test-u8-strncpy.c: New file.
29400         * tests/unistr/test-strncpy.h: New file.
29401
29402         Tests for module 'unistr/u32-stpcpy'.
29403         * modules/unistr/u32-stpcpy-tests: New file.
29404         * tests/unistr/test-u32-stpcpy.c: New file.
29405
29406         Tests for module 'unistr/u16-stpcpy'.
29407         * modules/unistr/u16-stpcpy-tests: New file.
29408         * tests/unistr/test-u16-stpcpy.c: New file.
29409
29410         Tests for module 'unistr/u8-stpcpy'.
29411         * modules/unistr/u8-stpcpy-tests: New file.
29412         * tests/unistr/test-u8-stpcpy.c: New file.
29413         * tests/unistr/test-stpcpy.h: New file.
29414
29415         Tests for module 'unistr/u32-strcpy'.
29416         * modules/unistr/u32-strcpy-tests: New file.
29417         * tests/unistr/test-u32-strcpy.c: New file.
29418
29419         Tests for module 'unistr/u16-strcpy'.
29420         * modules/unistr/u16-strcpy-tests: New file.
29421         * tests/unistr/test-u16-strcpy.c: New file.
29422
29423         Tests for module 'unistr/u8-strcpy'.
29424         * modules/unistr/u8-strcpy-tests: New file.
29425         * tests/unistr/test-u8-strcpy.c: New file.
29426         * tests/unistr/test-strcpy.h: New file.
29427
29428         Tests for module 'unistr/u32-strnlen'.
29429         * modules/unistr/u32-strnlen-tests: New file.
29430         * tests/unistr/test-u32-strnlen.c: New file.
29431
29432         Tests for module 'unistr/u16-strnlen'.
29433         * modules/unistr/u16-strnlen-tests: New file.
29434         * tests/unistr/test-u16-strnlen.c: New file.
29435
29436         Tests for module 'unistr/u8-strnlen'.
29437         * modules/unistr/u8-strnlen-tests: New file.
29438         * tests/unistr/test-u8-strnlen.c: New file.
29439         * tests/unistr/test-strnlen.h: New file.
29440
29441         Tests for module 'unistr/u32-strlen'.
29442         * modules/unistr/u32-strlen-tests: New file.
29443         * tests/unistr/test-u32-strlen.c: New file.
29444
29445         Tests for module 'unistr/u16-strlen'.
29446         * modules/unistr/u16-strlen-tests: New file.
29447         * tests/unistr/test-u16-strlen.c: New file.
29448
29449         Tests for module 'unistr/u8-strlen'.
29450         * modules/unistr/u8-strlen-tests: New file.
29451         * tests/unistr/test-u8-strlen.c: New file.
29452
29453         Tests for module 'unistr/u32-prev'.
29454         * modules/unistr/u32-prev-tests: New file.
29455         * tests/unistr/test-u32-prev.c: New file.
29456
29457         Tests for module 'unistr/u16-prev'.
29458         * modules/unistr/u16-prev-tests: New file.
29459         * tests/unistr/test-u16-prev.c: New file.
29460
29461         Tests for module 'unistr/u8-prev'.
29462         * modules/unistr/u8-prev-tests: New file.
29463         * tests/unistr/test-u8-prev.c: New file.
29464
29465         Tests for module 'unistr/u32-next'.
29466         * modules/unistr/u32-next-tests: New file.
29467         * tests/unistr/test-u32-next.c: New file.
29468
29469         Tests for module 'unistr/u16-next'.
29470         * modules/unistr/u16-next-tests: New file.
29471         * tests/unistr/test-u16-next.c: New file.
29472
29473         Tests for module 'unistr/u8-next'.
29474         * modules/unistr/u8-next-tests: New file.
29475         * tests/unistr/test-u8-next.c: New file.
29476
29477         Tests for module 'unistr/u32-strmbtouc'.
29478         * modules/unistr/u32-strmbtouc-tests: New file.
29479         * tests/unistr/test-u32-strmbtouc.c: New file.
29480
29481         Tests for module 'unistr/u16-strmbtouc'.
29482         * modules/unistr/u16-strmbtouc-tests: New file.
29483         * tests/unistr/test-u16-strmbtouc.c: New file.
29484
29485         Tests for module 'unistr/u8-strmbtouc'.
29486         * modules/unistr/u8-strmbtouc-tests: New file.
29487         * tests/unistr/test-u8-strmbtouc.c: New file.
29488
29489         Tests for module 'unistr/u32-strmblen'.
29490         * modules/unistr/u32-strmblen-tests: New file.
29491         * tests/unistr/test-u32-strmblen.c: New file.
29492
29493         Tests for module 'unistr/u16-strmblen'.
29494         * modules/unistr/u16-strmblen-tests: New file.
29495         * tests/unistr/test-u16-strmblen.c: New file.
29496
29497         Tests for module 'unistr/u8-strmblen'.
29498         * modules/unistr/u8-strmblen-tests: New file.
29499         * tests/unistr/test-u8-strmblen.c: New file.
29500
29501         Tests for module 'unistr/u32-cpy-alloc'.
29502         * modules/unistr/u32-cpy-alloc-tests: New file.
29503         * tests/unistr/test-u32-cpy-alloc.c: New file.
29504
29505         Tests for module 'unistr/u16-cpy-alloc'.
29506         * modules/unistr/u16-cpy-alloc-tests: New file.
29507         * tests/unistr/test-u16-cpy-alloc.c: New file.
29508
29509         Tests for module 'unistr/u8-cpy-alloc'.
29510         * modules/unistr/u8-cpy-alloc-tests: New file.
29511         * tests/unistr/test-u8-cpy-alloc.c: New file.
29512         * tests/unistr/test-cpy-alloc.h: New file.
29513
29514         Tests for module 'unistr/u32-mbsnlen'.
29515         * modules/unistr/u32-mbsnlen-tests: New file.
29516         * tests/unistr/test-u32-mbsnlen.c: New file.
29517
29518         Tests for module 'unistr/u16-mbsnlen'.
29519         * modules/unistr/u16-mbsnlen-tests: New file.
29520         * tests/unistr/test-u16-mbsnlen.c: New file.
29521
29522         Tests for module 'unistr/u8-mbsnlen'.
29523         * modules/unistr/u8-mbsnlen-tests: New file.
29524         * tests/unistr/test-u8-mbsnlen.c: New file.
29525
29526         Tests for module 'unistr/u32-chr'.
29527         * modules/unistr/u32-chr-tests: New file.
29528         * tests/unistr/test-u32-chr.c: New file.
29529
29530         Tests for module 'unistr/u16-chr'.
29531         * modules/unistr/u16-chr-tests: New file.
29532         * tests/unistr/test-u16-chr.c: New file.
29533
29534         Tests for module 'unistr/u8-chr'.
29535         * modules/unistr/u8-chr-tests: New file.
29536         * tests/unistr/test-u8-chr.c: New file.
29537         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29538
29539         Tests for module 'unistr/u32-cmp2'.
29540         * modules/unistr/u32-cmp2-tests: New file.
29541         * tests/unistr/test-u32-cmp2.c: New file.
29542
29543         Tests for module 'unistr/u16-cmp2'.
29544         * modules/unistr/u16-cmp2-tests: New file.
29545         * tests/unistr/test-u16-cmp2.c: New file.
29546
29547         Tests for module 'unistr/u8-cmp2'.
29548         * modules/unistr/u8-cmp2-tests: New file.
29549         * tests/unistr/test-u8-cmp2.c: New file.
29550         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29551
29552         Tests for module 'unistr/u32-cmp'.
29553         * modules/unistr/u32-cmp-tests: New file.
29554         * tests/unistr/test-u32-cmp.c: New file.
29555
29556         Tests for module 'unistr/u16-cmp'.
29557         * modules/unistr/u16-cmp-tests: New file.
29558         * tests/unistr/test-u16-cmp.c: New file.
29559
29560         Tests for module 'unistr/u8-cmp'.
29561         * modules/unistr/u8-cmp-tests: New file.
29562         * tests/unistr/test-u8-cmp.c: New file.
29563         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29564
29565         Tests for module 'unistr/u32-set'.
29566         * modules/unistr/u32-set-tests: New file.
29567         * tests/unistr/test-u32-set.c: New file.
29568
29569         Tests for module 'unistr/u16-set'.
29570         * modules/unistr/u16-set-tests: New file.
29571         * tests/unistr/test-u16-set.c: New file.
29572
29573         Tests for module 'unistr/u8-set'.
29574         * modules/unistr/u8-set-tests: New file.
29575         * tests/unistr/test-u8-set.c: New file.
29576         * tests/unistr/test-set.h: New file.
29577
29578         Tests for module 'unistr/u32-move'.
29579         * modules/unistr/u32-move-tests: New file.
29580         * tests/unistr/test-u32-move.c: New file.
29581
29582         Tests for module 'unistr/u16-move'.
29583         * modules/unistr/u16-move-tests: New file.
29584         * tests/unistr/test-u16-move.c: New file.
29585
29586         Tests for module 'unistr/u8-move'.
29587         * modules/unistr/u8-move-tests: New file.
29588         * tests/unistr/test-u8-move.c: New file.
29589         * tests/unistr/test-move.h: New file.
29590
29591         Tests for module 'unistr/u32-cpy'.
29592         * modules/unistr/u32-cpy-tests: New file.
29593         * tests/unistr/test-u32-cpy.c: New file.
29594
29595         Tests for module 'unistr/u16-cpy'.
29596         * modules/unistr/u16-cpy-tests: New file.
29597         * tests/unistr/test-u16-cpy.c: New file.
29598
29599         Tests for module 'unistr/u8-cpy'.
29600         * modules/unistr/u8-cpy-tests: New file.
29601         * tests/unistr/test-u8-cpy.c: New file.
29602         * tests/unistr/test-cpy.h: New file.
29603
29604 2010-01-09  Bruno Haible  <bruno@clisp.org>
29605
29606         Tests for module 'unistr/u32-uctomb'.
29607         * modules/unistr/u32-uctomb-tests: New file.
29608         * tests/unistr/test-u32-uctomb.c: New file.
29609
29610         Tests for module 'unistr/u16-uctomb'.
29611         * modules/unistr/u16-uctomb-tests: New file.
29612         * tests/unistr/test-u16-uctomb.c: New file.
29613
29614         Tests for module 'unistr/u8-uctomb'.
29615         * modules/unistr/u8-uctomb-tests: New file.
29616         * tests/unistr/test-u8-uctomb.c: New file.
29617
29618         Tests for module 'unistr/u32-mbtoucr'.
29619         * modules/unistr/u32-mbtoucr-tests: New file.
29620         * tests/unistr/test-u32-mbtoucr.c: New file.
29621
29622         Tests for module 'unistr/u16-mbtoucr'.
29623         * modules/unistr/u16-mbtoucr-tests: New file.
29624         * tests/unistr/test-u16-mbtoucr.c: New file.
29625
29626         Tests for module 'unistr/u8-mbtoucr'.
29627         * modules/unistr/u8-mbtoucr-tests: New file.
29628         * tests/unistr/test-u8-mbtoucr.c: New file.
29629
29630         Tests for module 'unistr/u32-mbtouc'.
29631         * modules/unistr/u32-mbtouc-tests: New file.
29632         * tests/unistr/test-u32-mbtouc.c: New file.
29633
29634         Tests for module 'unistr/u16-mbtouc'.
29635         * modules/unistr/u16-mbtouc-tests: New file.
29636         * tests/unistr/test-u16-mbtouc.c: New file.
29637
29638         Tests for module 'unistr/u8-mbtouc'.
29639         * modules/unistr/u8-mbtouc-tests: New file.
29640         * tests/unistr/test-u8-mbtouc.c: New file.
29641
29642         Tests for module 'unistr/u32-mbtouc-unsafe'.
29643         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29644         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29645         * tests/unistr/test-u32-mbtouc.h: New file.
29646
29647         Tests for module 'unistr/u16-mbtouc-unsafe'.
29648         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29649         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29650         * tests/unistr/test-u16-mbtouc.h: New file.
29651
29652         Tests for module 'unistr/u8-mbtouc-unsafe'.
29653         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29654         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29655         * tests/unistr/test-u8-mbtouc.h: New file.
29656
29657         Tests for module 'unistr/u32-mblen'.
29658         * modules/unistr/u32-mblen-tests: New file.
29659         * tests/unistr/test-u32-mblen.c: New file.
29660
29661         Tests for module 'unistr/u16-mblen'.
29662         * modules/unistr/u16-mblen-tests: New file.
29663         * tests/unistr/test-u16-mblen.c: New file.
29664
29665         Tests for module 'unistr/u8-mblen'.
29666         * modules/unistr/u8-mblen-tests: New file.
29667         * tests/unistr/test-u8-mblen.c: New file.
29668
29669         Tests for module 'unistr/u32-to-u16'.
29670         * modules/unistr/u32-to-u16-tests: New file.
29671         * tests/unistr/test-u32-to-u16.c: New file.
29672
29673         Tests for module 'unistr/u32-to-u8'.
29674         * modules/unistr/u32-to-u8-tests: New file.
29675         * tests/unistr/test-u32-to-u8.c: New file.
29676
29677         Tests for module 'unistr/u16-to-u32'.
29678         * modules/unistr/u16-to-u32-tests: New file.
29679         * tests/unistr/test-u16-to-u32.c: New file.
29680
29681         Tests for module 'unistr/u16-to-u8'.
29682         * modules/unistr/u16-to-u8-tests: New file.
29683         * tests/unistr/test-u16-to-u8.c: New file.
29684
29685         Tests for module 'unistr/u8-to-u32'.
29686         * modules/unistr/u8-to-u32-tests: New file.
29687         * tests/unistr/test-u8-to-u32.c: New file.
29688
29689         Tests for module 'unistr/u8-to-u16'.
29690         * modules/unistr/u8-to-u16-tests: New file.
29691         * tests/unistr/test-u8-to-u16.c: New file.
29692
29693         Tests for module 'unistr/u32-check'.
29694         * modules/unistr/u32-check-tests: New file.
29695         * tests/unistr/test-u32-check.c: New file.
29696
29697         Tests for module 'unistr/u16-check'.
29698         * modules/unistr/u16-check-tests: New file.
29699         * tests/unistr/test-u16-check.c: New file.
29700
29701         Tests for module 'unistr/u8-check'.
29702         * modules/unistr/u8-check-tests: New file.
29703         * tests/unistr/test-u8-check.c: New file.
29704
29705         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29706         (category_equals): New function.
29707         (main): Add more tests.
29708         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29709
29710         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29711
29712 2010-01-10  Bruno Haible  <bruno@clisp.org>
29713
29714         unistr/u*-strcoll: Try harder to distinguish different strings.
29715         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29716         compare s1 and s2 to see if they are different.
29717
29718 2010-01-10  Bruno Haible  <bruno@clisp.org>
29719
29720         unistr/u*-stpncpy: Fix the return value.
29721         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29722         description of the return value consistent with stpncpy in glibc.
29723         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29724         written non-NUL unit.
29725
29726 2010-01-10  Bruno Haible  <bruno@clisp.org>
29727
29728         unistr/u*-next: Add missing dependencies.
29729         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29730         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29731         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29732
29733 2010-01-10  Bruno Haible  <bruno@clisp.org>
29734
29735         unistr/u8-mbsnlen: Fix return value for incomplete character.
29736         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29737         u8_mblen.
29738         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29739         Remove unistr/u8-mblen.
29740         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29741         u16_mblen.
29742         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29743         Remove unistr/u16-mblen.
29744
29745 2010-01-10  Bruno Haible  <bruno@clisp.org>
29746
29747         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29748         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29749         Reported by Brian Gough <bjg@gnu.org> and
29750         Chris Clayton <chris2553@googlemail.com> via
29751         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29752
29753 2010-01-09  Bruno Haible  <bruno@clisp.org>
29754
29755         unistr/u16-to-u32: Reject invalid input.
29756         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29757         u16_mbtouc.
29758         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29759         Remove unistr/u16-mbtouc.
29760
29761         unistr/u16-to-u8: Reject invalid input.
29762         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29763         u16_mbtouc.
29764         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29765         Remove unistr/u16-mbtouc.
29766
29767         unistr/u8-to-u32: Reject invalid input.
29768         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29769         u8_mbtouc.
29770         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29771         Remove unistr/u8-mbtouc.
29772
29773         unistr/u8-to-u16: Reject invalid input.
29774         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29775         u8_mbtouc.
29776         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29777         Remove unistr/u8-mbtouc.
29778
29779 2010-01-09  Bruno Haible  <bruno@clisp.org>
29780
29781         Tests for module 'getlogin'.
29782         * modules/getlogin-tests: New file.
29783         * tests/test-getlogin.c: New file.
29784
29785         New module 'getlogin'.
29786         * lib/unistd.in.h (getlogin): New declaration.
29787         * lib/getlogin.c: New file.
29788         * m4/getlogin.m4: New file.
29789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29790         HAVE_GETLOGIN.
29791         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29792         HAVE_GETLOGIN.
29793         * modules/getlogin: New file.
29794         * doc/posix-functions/getlogin.texi: Mention the new module.
29795         Reported by John W. Eaton <jwe@gnu.org>.
29796
29797 2010-01-09  Bruno Haible  <bruno@clisp.org>
29798
29799         getlogin_r: Support for native Windows.
29800         * lib/getlogin_r.c: Include <windows.h>
29801         (getlogin_r): Implement for native Windows.
29802         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29803         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29804         via John W. Eaton <jwe@gnu.org>.
29805
29806 2010-01-09  Bruno Haible  <bruno@clisp.org>
29807
29808         getlogin_r: Small fixes.
29809         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29810         succeeds.
29811         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29812         before testing whether getlogin_r is declared. No need to set
29813         HAVE_DECL_GETLOGIN_R to 1.
29814         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29815
29816 2010-01-09  Bruno Haible  <bruno@clisp.org>
29817
29818         * lib/unistd.in.h (getlogin_r): Add comment.
29819
29820 2010-01-09  Bruno Haible  <bruno@clisp.org>
29821
29822         Tests for module 'getlogin_r'.
29823         * modules/getlogin_r-tests: New file.
29824         * tests/test-getlogin_r.c: New file.
29825
29826 2010-01-09  Jim Meyering  <meyering@redhat.com>
29827
29828         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29829         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29830         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29831
29832 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29833
29834         * lib/dup2.c (rpl_dup2): Improve comment.
29835
29836 2010-01-08  Eric Blake  <ebb9@byu.net>
29837
29838         maint.mk: allow packages to add makefile @@ exceptions
29839         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29840         (sc_makefile_check): Rename...
29841         (sc_makefile_at_at_check): ...to this, and use hook.
29842
29843         dup2: work around mingw bug
29844         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29845         Reported by Simon Josefsson.
29846
29847 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29848
29849         glob: Fix C++ compilation.
29850         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29851         C++.
29852
29853 2010-01-07  Bruno Haible  <bruno@clisp.org>
29854
29855         Fix indentation of wctype.in.h, broken since 2007-01-06.
29856         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29857
29858 2010-01-07  Bruno Haible  <bruno@clisp.org>
29859
29860         mbslen: Avoid collision with system function.
29861         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29862         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29863         * m4/mbslen.m4: New file.
29864         * modules/mbslen (Files): Add it.
29865         (configure.ac): Invoke gl_MBSLEN.
29866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29867         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29868         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29869         via Ian Beckwith <ianb@erislabs.net>.
29870
29871 2010-01-07  Bruno Haible  <bruno@clisp.org>
29872
29873         dirent: Document the last fix.
29874         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29875
29876 2010-01-07  Bruno Haible  <bruno@clisp.org>
29877
29878         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29879         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29880         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29881         va_list are defined.
29882         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29883         Reported by Eric Blake.
29884
29885 2010-01-07  Bruno Haible  <bruno@clisp.org>
29886
29887         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29888         * modules/xlist (Depends-on): Add 'list',
29889         * modules/xoset (Depends-on): Add 'oset'.
29890         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29891
29892 2010-01-07  Bruno Haible  <bruno@clisp.org>
29893
29894         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29895         * doc/posix-functions/strncasecmp.texi: Likewise.
29896
29897 2010-01-07  Bruno Haible  <bruno@clisp.org>
29898
29899         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29900
29901 2010-01-07  John W. Eaton  <jwe@octave.org>
29902
29903         wctype: allow C++ use
29904         * lib/wctype.in.h: Add extern "C" block for C++.
29905
29906 2010-01-06  Eric Blake  <ebb9@byu.net>
29907
29908         maint.mk: detect incorrect GFDL usage
29909         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29910
29911 2010-01-06  Jim Meyering  <meyering@redhat.com>
29912         and Eric Blake  <ebb9@byu.net>
29913
29914         maint.mk: ignore multi-line copyright in NEWS
29915         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29916
29917 2010-01-06  Eric Blake  <ebb9@byu.net>
29918
29919         select: add missing dependency
29920         * modules/select-tests (Depends-on): Move sockets dependency...
29921         * modules/select (Depends-on): ...here.
29922         Reported by Ian Beckwith.
29923
29924         doc: regenerate INSTALL
29925         * doc/INSTALL: Reflect recent autoconf update.
29926         * doc/INSTALL.ISO: Likewise.
29927         * doc/INSTALL.UTF-8: Likewise.
29928
29929         pread: fix compilation on glibc
29930         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29931         Reported by Ralf Wildenhues.
29932
29933         dirent: fix test failure
29934         * lib/dirent.in.h (includes): Guarantee ino_t.
29935         Reported by Ralf Wildenhues.
29936
29937 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29938
29939         linkat, renameat: avoid bad free
29940         * lib/at-func2.c (at_func2): Fix typo.
29941         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29942
29943 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29944
29945         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29946         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29947         to avoid failure of symlink test later.
29948
29949 2010-01-06  Eric Blake  <ebb9@byu.net>
29950
29951         stdio, unistd: guarantee ssize_t
29952         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29953         2008 are exposed when needed.
29954         * lib/stdio.in.h (includes): Likewise.
29955         Reported by Ralf Wildenhues.
29956
29957 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29958
29959         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29960         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29961         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29962
29963 2010-01-06  Jim Meyering  <meyering@redhat.com>
29964
29965         readtokens: this module *does* require xalloc.h
29966         It uses only functions that were omitted by the old syntax-check rule.
29967         * lib/readtokens.c: Include "xalloc.h" once again.
29968         * modules/readtokens (Depends-on): Add xalloc.
29969         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29970
29971 2010-01-05  Eric Blake  <ebb9@byu.net>
29972
29973         maint: support 'make announcement' from a VPATH build
29974         * top/maint.mk (announcement): Look for correct NEWS file.
29975
29976 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29977
29978         utimens (fdutimens): ignore a negative FD, per contract
29979         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29980         when we have a valid file descriptor.  Otherwise, using a brand
29981         new glibc (with just-patched futimens that now fails with EBADF)
29982         would cause this function to fail with ENOSYS.
29983         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29984         See also http://bugzilla.redhat.com/552320.
29985
29986 2010-01-05  Eric Blake  <ebb9@byu.net>
29987
29988         strcase: document what it provides
29989         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29990         gnulib module.
29991         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29992         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29993
29994 2010-01-05  Jim Meyering  <meyering@redhat.com>
29995
29996         maint: remove useless inclusions of "xalloc.h"
29997         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29998         * lib/readtokens.c: Likewise.
29999         * lib/same.c: Likewise.
30000         * modules/getloadavg (Depends-on): Remove xalloc.
30001         * modules/readtokens: Likewise.
30002         * modules/same: Likewise.
30003
30004         maint.mk: include 4 more function names in alloca.h-checking regexp
30005         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30006         regexp.  Before, we would give a false-positive (saying alloca.h
30007         is included unnecessarily) when the only uses involved omitted symbols.
30008
30009         xalloc.h: use consistent formatting
30010         * lib/xalloc.h: Move declarations to start in the first column.
30011
30012 2010-01-05  Eric Blake  <ebb9@byu.net>
30013
30014         mkdir: avoid xalloc
30015         * lib/mkdir.c (includes): Drop unused header.
30016         Reported by John W. Eaton.
30017
30018 2010-01-04  Jim Meyering  <meyering@redhat.com>
30019
30020         nl_langinfo: avoid configure-time syntax error
30021         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30022         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30023         the empty string.  Don't let that provoke a shell syntax error.
30024
30025         regcomp, regexec, fnmatch: avoid array bounds read error
30026         * lib/regcomp.c (build_equiv_class): From glibc:
30027         Use only the low 24 bits of a findidx return value as an index
30028         into the weights array.  Patch by Ulrich Drepper:
30029         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30030         * lib/regexec.c (check_node_accept_bytes): Likewise.
30031         * lib/fnmatch_loop.c (FCT): Likewise.
30032
30033         regcomp: skip collseq lookup when there are no rules
30034         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30035         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30036
30037         regcomp: recognize ill-formed { } expressions
30038         * lib/regcomp.c (parse_dup_op): From glibc:
30039         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30040
30041         regcomp: fix typo in comment
30042         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30043         s/satisfy/satisfies/.
30044
30045         regcomp: sync from glibc: remove dead store
30046         * lib/regcomp.c (duplicate_node_closure): Remove useless
30047         search_duplicated_node call and dead store.
30048
30049         regcomp: sync from glibc; always use nl_langinfo
30050         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30051         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30052         * modules/regex (Depends-on): Add nl_langinfo.
30053
30054 2010-01-04  Eric Blake  <ebb9@byu.net>
30055
30056         fdopendir: fix configure test
30057         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30058
30059 2010-01-01  Bruno Haible  <bruno@clisp.org>
30060
30061         wchar: Remove unused configure check.
30062         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30063
30064 2010-01-01  Eric Blake  <ebb9@byu.net>
30065
30066         headers: make check of system header explicit
30067         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30068         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30069         ourselves.
30070         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30071         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30072         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30073         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30074         internals.
30075         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30076         missing.
30077         Suggested by Bruno Haible.
30078
30079 2010-01-01  Jim Meyering  <meyering@redhat.com>
30080
30081         ChangeLog: tweak to eliminate unnecessary copyright line
30082         * ChangeLog: Remove a copyright line that was mistakenly updated
30083         by today's update-copyright run.  Reported by Eric Blake.
30084
30085         test-update-copyright: don't let envvar setting cause test failure
30086         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30087
30088 2010-01-01  Bruno Haible  <bruno@clisp.org>
30089
30090         localename: Avoid gcc warning.
30091         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30092         function if it is not used.
30093
30094 2010-01-01  Jim Meyering  <meyering@redhat.com>
30095
30096         update nearly all FSF copyright year lists to include 2010
30097         Use the same procedure as for 2009, outlined in
30098         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30099
30100         version-etc: set COPYRIGHT_YEAR to 2010
30101         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30102
30103 2009-12-31  Eric Blake  <ebb9@byu.net>
30104
30105         doc: correct availability of cygwin 1.5.x getopt
30106         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30107         variables.
30108         * doc/posix-functions/opterr.texi (opterr): Likewise.
30109         * doc/posix-functions/optind.texi (optind): Likewise.
30110         * doc/posix-functions/optopt.texi (optopt): Likewise.
30111         * doc/posix-functions/tzname.texi (tzname): Likewise.
30112
30113         openat: update maintainer
30114         * modules/openat (Maintainer): Add myself.
30115
30116         utimens: avoid shadowing warning
30117         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30118         buffers into one, to avoid shadowing, as well as avoiding a
30119         redundant stat.
30120         Reported by Jim Meyering.
30121
30122         test-dup2: avoid compiler warning
30123         * tests/test-dup2.c (is_inheritable): Only define if used.
30124
30125 2010-01-01  Bruno Haible  <bruno@clisp.org>
30126
30127         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30128         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30129         defined, use wctomb instead of wcrtomb.
30130
30131 2010-01-01  Bruno Haible  <bruno@clisp.org>
30132
30133         iconv: Reject native Solaris iconv.
30134         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30135         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30136
30137 2009-12-31  Bruno Haible  <bruno@clisp.org>
30138
30139         * tests/test-signal.c (main): Remove test of 'SIG'.
30140
30141 2009-12-31  Bruno Haible  <bruno@clisp.org>
30142
30143         spawn: Fix incomplete fix.
30144         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30145         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30146         warnings for GNULIB_POSIXCHECK again.
30147         Reported by Eric Blake.
30148
30149 2009-12-31  Bruno Haible  <bruno@clisp.org>
30150
30151         Avoid namespace pollution on glibc systems.
30152         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30153         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30154         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30155         glibc systems.
30156
30157 2009-12-31  Bruno Haible  <bruno@clisp.org>
30158
30159         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30160         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30161         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30162         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30163         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30164         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30165         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30166
30167 2009-12-31  Bruno Haible  <bruno@clisp.org>
30168
30169         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30170         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30171         afterwards.
30172
30173 2009-12-31  Bruno Haible  <bruno@clisp.org>
30174
30175         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30176         SYS_UTSNAME_H.
30177
30178 2009-12-31  Bruno Haible  <bruno@clisp.org>
30179
30180         spawn: Fix misapplied patch.
30181         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30182         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30183         warnings for GNULIB_POSIXCHECK.
30184
30185 2009-12-31  Bruno Haible  <bruno@clisp.org>
30186
30187         times: Update after sys_times changed.
30188         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30189         * modules/times (Files): Add it.
30190         (configure.ac): Invoke gl_FUNC_TIMES.
30191
30192 2009-12-31  Bruno Haible  <bruno@clisp.org>
30193
30194         Use AC_C_INLINE where necessary.
30195         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30196         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30197         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30198         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30199         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30200         * m4/mbiter.m4 (gl_MBITER): Likewise.
30201         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30202         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30203         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30204         * modules/u64 (configure.ac): Likewise.
30205
30206 2009-12-31  Bruno Haible  <bruno@clisp.org>
30207
30208         Use AC_C_INLINE instead of module 'inline' where possible.
30209         * modules/inline (Description): Clarify purpose.
30210         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30211         * modules/count-one-bits (Depends-on): Remove inline.
30212         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30213         * modules/openat (Depends-on): Remove inline.
30214         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30215         instead of depending on module 'inline'.
30216         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30217         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30218         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30219         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30220         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30221         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30222         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30223         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30224         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30225         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30226         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30227         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30228         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30229         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30230         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30231         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30232         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30233         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30234         Likewise.
30235         * modules/unictype/property-ascii-hex-digit (Depends-on,
30236         configure.ac): Likewise.
30237         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30238         configure.ac): Likewise.
30239         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30240         configure.ac): Likewise.
30241         * modules/unictype/property-bidi-block-separator (Depends-on,
30242         configure.ac): Likewise.
30243         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30244         configure.ac): Likewise.
30245         * modules/unictype/property-bidi-common-separator (Depends-on,
30246         configure.ac): Likewise.
30247         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30248         Likewise.
30249         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30250         configure.ac): Likewise.
30251         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30252         configure.ac): Likewise.
30253         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30254         configure.ac): Likewise.
30255         * modules/unictype/property-bidi-european-digit (Depends-on,
30256         configure.ac): Likewise.
30257         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30258         configure.ac): Likewise.
30259         * modules/unictype/property-bidi-left-to-right (Depends-on,
30260         configure.ac): Likewise.
30261         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30262         configure.ac): Likewise.
30263         * modules/unictype/property-bidi-other-neutral (Depends-on,
30264         configure.ac): Likewise.
30265         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30266         Likewise.
30267         * modules/unictype/property-bidi-segment-separator (Depends-on,
30268         configure.ac): Likewise.
30269         * modules/unictype/property-bidi-whitespace (Depends-on,
30270         configure.ac): Likewise.
30271         * modules/unictype/property-combining (Depends-on, configure.ac):
30272         Likewise.
30273         * modules/unictype/property-composite (Depends-on, configure.ac):
30274         Likewise.
30275         * modules/unictype/property-currency-symbol (Depends-on,
30276         configure.ac): Likewise.
30277         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30278         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30279         Likewise.
30280         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30281         configure.ac): Likewise.
30282         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30283         Likewise.
30284         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30285         Likewise.
30286         * modules/unictype/property-extender (Depends-on, configure.ac):
30287         Likewise.
30288         * modules/unictype/property-format-control (Depends-on, configure.ac):
30289         Likewise.
30290         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30291         Likewise.
30292         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30293         Likewise.
30294         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30295         Likewise.
30296         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30297         Likewise.
30298         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30299         Likewise.
30300         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30301         Likewise.
30302         * modules/unictype/property-id-start (Depends-on, configure.ac):
30303         Likewise.
30304         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30305         Likewise.
30306         * modules/unictype/property-ids-binary-operator (Depends-on,
30307         configure.ac): Likewise.
30308         * modules/unictype/property-ids-trinary-operator (Depends-on,
30309         configure.ac): Likewise.
30310         * modules/unictype/property-ignorable-control (Depends-on,
30311         configure.ac): Likewise.
30312         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30313         Likewise.
30314         * modules/unictype/property-join-control (Depends-on, configure.ac):
30315         Likewise.
30316         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30317         Likewise.
30318         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30319         Likewise.
30320         * modules/unictype/property-logical-order-exception (Depends-on,
30321         configure.ac): Likewise.
30322         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30323         Likewise.
30324         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30325         * modules/unictype/property-non-break (Depends-on, configure.ac):
30326         Likewise.
30327         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30328         Likewise.
30329         * modules/unictype/property-numeric (Depends-on, configure.ac):
30330         Likewise.
30331         * modules/unictype/property-other-alphabetic (Depends-on,
30332         configure.ac): Likewise.
30333         * modules/unictype/property-other-default-ignorable-code-point
30334         (Depends-on, configure.ac): Likewise.
30335         * modules/unictype/property-other-grapheme-extend (Depends-on,
30336         configure.ac): Likewise.
30337         * modules/unictype/property-other-id-continue (Depends-on,
30338         configure.ac): Likewise.
30339         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30340         Likewise.
30341         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30342         Likewise.
30343         * modules/unictype/property-other-math (Depends-on, configure.ac):
30344         Likewise.
30345         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30346         Likewise.
30347         * modules/unictype/property-paired-punctuation (Depends-on,
30348         configure.ac): Likewise.
30349         * modules/unictype/property-paragraph-separator (Depends-on,
30350         configure.ac): Likewise.
30351         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30352         Likewise.
30353         * modules/unictype/property-pattern-white-space (Depends-on,
30354         configure.ac): Likewise.
30355         * modules/unictype/property-private-use (Depends-on, configure.ac):
30356         Likewise.
30357         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30358         Likewise.
30359         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30360         Likewise.
30361         * modules/unictype/property-radical (Depends-on, configure.ac):
30362         Likewise.
30363         * modules/unictype/property-sentence-terminal (Depends-on,
30364         configure.ac): Likewise.
30365         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30366         Likewise.
30367         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30368         * modules/unictype/property-terminal-punctuation (Depends-on,
30369         configure.ac): Likewise.
30370         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30371         Likewise.
30372         * modules/unictype/property-unassigned-code-value (Depends-on,
30373         configure.ac): Likewise.
30374         * modules/unictype/property-unified-ideograph (Depends-on,
30375         configure.ac): Likewise.
30376         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30377         Likewise.
30378         * modules/unictype/property-variation-selector (Depends-on,
30379         configure.ac): Likewise.
30380         * modules/unictype/property-white-space (Depends-on, configure.ac):
30381         Likewise.
30382         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30383         Likewise.
30384         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30385         Likewise.
30386         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30387         Likewise.
30388         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30389         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30390         Likewise.
30391
30392 2009-12-31  Bruno Haible  <bruno@clisp.org>
30393
30394         Remove unnecessary AC_C_INLINE invocation.
30395         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30396         since 2009-08-21.
30397
30398 2009-12-31  Jim Meyering  <meyering@redhat.com>
30399
30400         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30401         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30402         With this change, we can all remove the gpg_key_ID = ... definition
30403         from our respective cfg.mk files.
30404
30405         maint.mk: create announcement template in ~/, not in /tmp
30406         * top/maint.mk (emit_upload_commands): Adjust.
30407         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30408         Remove temporary file, .ci-msg.
30409
30410 2009-12-31  Eric Blake  <ebb9@byu.net>
30411
30412         link-warning: always build headers with link warnings
30413         * modules/arpa_inet (Makefile.am): Always build replacement
30414         header.
30415         * modules/ctype (Makefile.am): Likewise.
30416         * modules/dirent (Makefile.am): Likewise.
30417         * modules/inttypes (Makefile.am): Likewise.
30418         * modules/langinfo (Makefile.am): Likewise.
30419         * modules/locale (Makefile.am): Likewise.
30420         * modules/spawn (Makefile.am): Likewise.
30421         * modules/sys_file (Makefile.am): Likewise.
30422         * modules/sys_ioctl (Makefile.am): Likewise.
30423         * modules/sys_select (Makefile.am): Likewise.
30424         * modules/sys_socket (Makefile.am): Likewise.
30425         * modules/sys_times (Makefile.am): Likewise.
30426         * modules/sys_utsname (Makefile.am): Likewise.
30427         * modules/sys_wait (Makefile.am): Likewise.
30428         * modules/wchar (Makefile.am): Likewise.
30429         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30430         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30431         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30432         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30433         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30434         Likewise.
30435         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30436         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30437         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30438         Likewise.
30439         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30440         Likewise.
30441         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30442         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30443         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30444         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30445         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30446         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30447         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30448         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30449         (gl_WCHAR_H_DEFAULTS): Likewise.
30450
30451 2009-12-31  Eric Blake  <ebb9@byu.net>
30452
30453         signal, spawn: use link warnings
30454         * lib/signal.in.h (sigset_t): Make unconditional.
30455         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30456         (sigpending, sigprocmask, sigaction): Add link warnings.
30457         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30458         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30459         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30460         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30461         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30462         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30463         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30464         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30465         (posix_spawn_file_actions_destroy)
30466         (posix_spawn_file_actions_addopen)
30467         (posix_spawn_file_actions_addclose)
30468         (posix_spawn_file_actions_adddup2): Likewise.
30469         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30470         * tests/test-signal.c (main): Enhance test.
30471
30472         spawn: improve wrapper support
30473         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30474         (gl_SPAWN_H_DEFAULTS): New defaults.
30475         * modules/spawn (Makefile.am): Substitute them.
30476         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30477         Only declare if missing or broken.
30478
30479         sys_times, sys_utsname: use include_next
30480         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30481         header.
30482         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30483         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30484         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30485         * modules/sys_times (Depends-on): Add include_next.
30486         (Makefile.am): Substitute additional values.
30487         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30488         * lib/sys_times.in.h (includes): Include native header, if
30489         available.
30490         * lib/sys_utsname.in.h (includes): Likewise.
30491         * tests/test-sys_times.c (main): Enhance test.
30492
30493         fdutimensat: revert prior patch
30494         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30495         utimens.h.
30496         Reported by Bruno Haible.
30497
30498 2009-12-30  Eric Blake  <ebb9@byu.net>
30499
30500         sys_wait: drop link-warning dependency
30501         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30502         link-warning efforts.
30503         * lib/sys_wait.in.h: Likewise.
30504
30505         fdutimensat: remove bogus dependency
30506         * modules/fdutimensat (Depends-on): Drop inline.
30507
30508         unistd: fix typo
30509         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30510
30511 2009-12-30  Bruno Haible  <bruno@clisp.org>
30512
30513         Fix compilation error with Solaris cc.
30514         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30515         * lib/unicase/u16-is-invariant.c: Likewise.
30516         * lib/unicase/u32-is-invariant.c: Likewise.
30517         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30518
30519 2009-12-30  Bruno Haible  <bruno@clisp.org>
30520
30521         Fix test crash.
30522         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30523         locales.
30524         Reported by Simon Josefsson <simon@josefsson.org>.
30525
30526 2009-12-30  Bruno Haible  <bruno@clisp.org>
30527
30528         Fix compilation error on most platforms.
30529         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30530         Reported by Simon Josefsson <simon@josefsson.org>
30531         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30532
30533 2009-12-30  Eric Blake  <ebb9@byu.net>
30534
30535         futimens, utimensat: work around ntfs-3g bug
30536         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30537         a ctime bug is present, and expand workaround to cover ntfs-3g.
30538         * lib/utimens.c (fdutimens, lutimens): Likewise.
30539         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30540         (validate_timespec): Adjust return value.
30541         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30542         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30543         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30544
30545 2009-12-29  Eric Blake  <ebb9@byu.net>
30546
30547         link-warning: make usage consistent
30548         * modules/ctype (Depends-on): Add link-warning.
30549         (Makefile.am): Update rules accordingly.
30550         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30551         * modules/locale (Depends-on, Makefile.am): Likewise.
30552         * modules/sys_file (Makefile.am): Likewise.
30553         * modules/getopt-posix (Makefile.am): Delete unused link warning
30554         efforts.
30555         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30556         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30557         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30558         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30559
30560         stdio: remove unused variables
30561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30562         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30563         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30564
30565         tests: test more substitute headers
30566         * modules/ctype-tests: New file.
30567         * modules/dirent-tests: Likewise.
30568         * modules/spawn-tests: Likewise.
30569         * modules/sys_file-tests: Likewise.
30570         * modules/sys_ioctl-tests: Likewise.
30571         * modules/sys_wait-tests: Likewise.
30572         * tests/test-ctype.c: Likewise.
30573         * tests/test-dirent.c: Likewise.
30574         * tests/test-spawn.c: Likewise.
30575         * tests/test-sys_file.c: Likewise.
30576         * tests/test-sys_ioctl.c: Likewise.
30577         * tests/test-sys_wait.c: Likewise.
30578         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30579         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30580         whether or not flock is in use.
30581
30582         tests: remove License section from module
30583         * modules/arpa_inet-tests: Remove unneeded section.
30584         * modules/byteswap-tests: Likewise.
30585         * modules/ceilf-tests: Likewise.
30586         * modules/ceill-tests: Likewise.
30587         * modules/crypto/des-tests: Likewise.
30588         * modules/crypto/gc-arcfour-tests: Likewise.
30589         * modules/crypto/gc-arctwo-tests: Likewise.
30590         * modules/crypto/gc-des-tests: Likewise.
30591         * modules/crypto/gc-hmac-md5-tests: Likewise.
30592         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30593         * modules/crypto/gc-md2-tests: Likewise.
30594         * modules/crypto/gc-md4-tests: Likewise.
30595         * modules/crypto/gc-md5-tests: Likewise.
30596         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30597         * modules/crypto/gc-rijndael-tests: Likewise.
30598         * modules/crypto/gc-sha1-tests: Likewise.
30599         * modules/crypto/gc-tests: Likewise.
30600         * modules/crypto/md2-tests: Likewise.
30601         * modules/crypto/md4-tests: Likewise.
30602         * modules/fcntl-h-tests: Likewise.
30603         * modules/floorf-tests: Likewise.
30604         * modules/floorl-tests: Likewise.
30605         * modules/frexp-nolibm-tests: Likewise.
30606         * modules/frexp-tests: Likewise.
30607         * modules/frexpl-nolibm-tests: Likewise.
30608         * modules/frexpl-tests: Likewise.
30609         * modules/getaddrinfo-tests: Likewise.
30610         * modules/inttypes-tests: Likewise.
30611         * modules/isfinite-tests: Likewise.
30612         * modules/isinf-tests: Likewise.
30613         * modules/ldexpl-tests: Likewise.
30614         * modules/locale-tests: Likewise.
30615         * modules/math-tests: Likewise.
30616         * modules/netdb-tests: Likewise.
30617         * modules/netinet_in-tests: Likewise.
30618         * modules/printf-frexp-tests: Likewise.
30619         * modules/printf-frexpl-tests: Likewise.
30620         * modules/priv-set-tests: Likewise.
30621         * modules/random_r-tests: Likewise.
30622         * modules/round-tests: Likewise.
30623         * modules/roundf-tests: Likewise.
30624         * modules/roundl-tests: Likewise.
30625         * modules/search-tests: Likewise.
30626         * modules/select-tests: Likewise.
30627         * modules/signal-tests: Likewise.
30628         * modules/stdbool-tests: Likewise.
30629         * modules/stddef-tests: Likewise.
30630         * modules/stdint-tests: Likewise.
30631         * modules/stdio-tests: Likewise.
30632         * modules/stdlib-tests: Likewise.
30633         * modules/string-tests: Likewise.
30634         * modules/strings-tests: Likewise.
30635         * modules/sys_select-tests: Likewise.
30636         * modules/sys_socket-tests: Likewise.
30637         * modules/sys_stat-tests: Likewise.
30638         * modules/sys_time-tests: Likewise.
30639         * modules/sys_utsname-tests: Likewise.
30640         * modules/sysexits-tests: Likewise.
30641         * modules/time-tests: Likewise.
30642         * modules/trunc-tests: Likewise.
30643         * modules/truncf-tests: Likewise.
30644         * modules/truncl-tests: Likewise.
30645         * modules/tsearch-tests: Likewise.
30646         * modules/unistd-tests: Likewise.
30647         * modules/wchar-tests: Likewise.
30648         * modules/wctype-tests: Likewise.
30649
30650         tests: fix license on several tests
30651         * tests/test-des.c: Update to GPLv3+.
30652         * tests/test-flock.c: Likewise.
30653         * tests/test-fsync.c: Likewise.
30654         * tests/test-futimens.h: Likewise.
30655         * tests/test-gc-arcfour.c: Likewise.
30656         * tests/test-gc-arctwo.c: Likewise.
30657         * tests/test-gc-des.c: Likewise.
30658         * tests/test-gc-hmac-md5.c: Likewise.
30659         * tests/test-gc-hmac-sha1.c: Likewise.
30660         * tests/test-gc-md2.c: Likewise.
30661         * tests/test-gc-md4.c: Likewise.
30662         * tests/test-gc-md5.c: Likewise.
30663         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30664         * tests/test-gc-rijndael.c: Likewise.
30665         * tests/test-gc-sha1.c: Likewise.
30666         * tests/test-gc.c: Likewise.
30667         * tests/test-getcwd.c: Likewise.
30668         * tests/test-link.c: Likewise.
30669         * tests/test-link.h: Likewise.
30670         * tests/test-lutimens.h: Likewise.
30671         * tests/test-md2.c: Likewise.
30672         * tests/test-md4.c: Likewise.
30673         * tests/test-mkdir.h: Likewise.
30674         * tests/test-rename.c: Likewise.
30675         * tests/test-rename.h: Likewise.
30676         * tests/test-safe-alloc.c: Likewise.
30677         * tests/test-utimens-common.h: Likewise.
30678         * tests/test-utimens.h: Likewise.
30679
30680         maint: sync license texts
30681         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30682         * doc/gpl-3.0.texi: Revert copyright year update.
30683         * doc/lgpl-3.0.texi: Likewise.
30684
30685 2009-12-29  Jim Meyering  <meyering@redhat.com>
30686
30687         update nearly all FSF copyright year lists to include 2009
30688         The files named by the following are exempted:
30689             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30690               test -f "$dst" && { echo "$dst"; continue; }
30691               test -d "$dst" || continue
30692               echo "$dst"/$(basename "$src")
30693             done > exempt
30694             git ls-files tests/unictype >> exempt
30695         In the remaining files, convert to all-interval notation if
30696         - there is already at least one year interval like 2000-2003
30697         - the file is maintained by me
30698         - the file is in lib/uni*/, where that style already prevails
30699         Otherwise, use update-copyright's default.
30700
30701 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30702         and Eric Blake  <ebb9@byu.net>
30703
30704         tests: don't require debug system() to pass
30705         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30706         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30707         * tests/test-unlink.h (test_unlink_func): Likewise.
30708         * tests/test-fstatat.c (main): ...into callers.
30709         * tests/test-lstat.c (main): Likewise.
30710         * tests/test-rmdir.c (main): Likewise.
30711         * tests/test-unlink.c (main): Likewise.
30712         * tests/test-unlinkat.c (main): Likewise.
30713         * tests/test-areadlink-with-size.c (main): Don't require a
30714         debug-only system call to pass, aiding cross-testing to mingw.
30715         * tests/test-areadlink.c (main): Likewise.
30716         * tests/test-areadlinkat-with-size.c (main): Likewise.
30717         * tests/test-areadlinkat.c (main): Likewise.
30718         * tests/test-canonicalize-lgpl.c (main): Likewise.
30719         * tests/test-canonicalize.c (main): Likewise.
30720         * tests/test-chown.c (main): Likewise.
30721         * tests/test-fchownat.c (main): Likewise.
30722         * tests/test-lchown.c (main): Likewise.
30723         * tests/test-fdutimensat.c (main): Likewise.
30724         * tests/test-futimens.c (main): Likewise.
30725         * tests/test-link.c (main): Likewise.
30726         * tests/test-linkat.c (main): Likewise.
30727         * tests/test-mkdir.c (main): Likewise.
30728         * tests/test-mkdirat.c (main): Likewise.
30729         * tests/test-mkfifo.c (main): Likewise.
30730         * tests/test-mkfifoat.c (main): Likewise.
30731         * tests/test-mknod.c (main): Likewise.
30732         * tests/test-readlink.c (main): Likewise.
30733         * tests/test-remove.c (main): Likewise.
30734         * tests/test-rename.c (main): Likewise.
30735         * tests/test-renameat.c (main): Likewise.
30736         * tests/test-symlink.c (main): Likewise.
30737         * tests/test-symlinkat.c (main): Likewise.
30738         * tests/test-utimens.c (main): Likewise.
30739         * tests/test-utimensat.c (main): Likewise.
30740
30741 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30742
30743         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30744         on $(UNUSED_PARAMETER_H) to avoid build failure.
30745
30746 2009-12-28  Jim Meyering  <meyering@redhat.com>
30747
30748         update-copyright: you may specify a max. line length other than 72
30749         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30750
30751         maint: use consistent FSF copyright line syntax
30752         * lib/posixtm.c: Add missing comma in FSF copyright line.
30753         * lib/posixtm.h: Likewise.
30754         * lib/getugroups.c: Add missing ", Inc.".
30755
30756         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30757         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30758         FSF copyright line.  Remove trailing blanks.
30759
30760 2009-12-28  Eric Blake  <ebb9@byu.net>
30761
30762         test-dup2: reduce dependencies
30763         * modules/cloexec (Configure.ac): Set witness.
30764         * modules/dup2-tests (Depends-on): Drop cloexec.
30765         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30766         not present.
30767         Suggested by Bruno Haible.
30768
30769 2009-12-26  Bruno Haible  <bruno@clisp.org>
30770
30771         Remove an unneeded dependency.
30772         * modules/fseterr (Depends-on): Remove dup2.
30773
30774 2009-12-26  Eric Blake  <ebb9@byu.net>
30775
30776         tests: use macros.h in more places
30777         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30778         (ASSERT_STREAM): Provide default of stderr.
30779         * tests/test-dirent-safer.c: Include macros.h, using alternate
30780         stream for assertions.
30781         * tests/test-dup-safer.c: Likewise.
30782         * tests/test-freopen-safer.c: Likewise.
30783         * tests/test-getopt.c: Likewise.
30784         * tests/test-openat-safer.c: Likewise.
30785         * tests/test-pipe.c: Likewise.
30786         * tests/test-popen-safer.c: Likewise.
30787         * modules/dirent-safer-tests (Files): Include macros.h.
30788         * modules/unistd-safer-tests (Files): Likewise.
30789         * modules/freopen-safer-tests (Files): Likewise.
30790         * modules/getopt-posix-tests (Files): Likewise.
30791         * modules/openat-safer-tests (Files): Likewise.
30792         * modules/pipe-tests (Files): Likewise.
30793
30794 2009-12-26  Bruno Haible  <bruno@clisp.org>
30795
30796         javacomp: Portability fix.
30797         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30798         that it also works on Solaris.
30799
30800 2009-12-26  Bruno Haible  <bruno@clisp.org>
30801
30802         localename: Fix storage allocation of gl_locale_name_thread's result.
30803         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30804         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30805         all platforms that have 'uselocale'.
30806         (gl_locale_name_thread_unsafe): New function, extracted from
30807         gl_locale_name_thread.
30808         (gl_locale_name_thread): Call struniq on all platforms that have
30809         'uselocale'.
30810         * tests/test-localename.c (test_locale_name_thread): Check that the
30811         resulting strings are permanently allocated.
30812         * modules/localename-tests (Depends-on): Add strdup.
30813
30814 2009-12-26  Bruno Haible  <bruno@clisp.org>
30815
30816         * tests/test-localename.c (categories): Fill in the strings.
30817
30818 2009-12-26  Jim Meyering  <meyering@redhat.com>
30819
30820         isdir: complete the removal of m4/isdir.m4
30821         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30822
30823         isdir: clean up, since at least grep still uses it
30824         * lib/isdir.c: Include "isdir.h".
30825         (S_ISDIR): Remove now-unneeded definition.
30826         * modules/isdir (Files): Add lib/isdir.h.
30827         * lib/isdir.h: New file, with declaration.
30828         * m4/isdir.m4: Remove file -- unneeded.
30829
30830 2009-12-25  Bruno Haible  <bruno@clisp.org>
30831
30832         selinux-h: Make generated .h files standalone.
30833         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30834         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30835         * lib/se-selinux.in.h: Likewise.
30836         * modules/selinux-h (Depends-on): Add unused-parameter.
30837         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30838         selinux/selinux.h and selinux/context.h.
30839         Suggested by Eric Blake.
30840
30841 2009-12-25  Bruno Haible  <bruno@clisp.org>
30842
30843         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30844         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30845         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30846         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30847         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30848
30849 2009-12-24  Bruno Haible  <bruno@clisp.org>
30850
30851         openat: Fix warning.
30852         * lib/openat-proc.c: Include <unistd.h>.
30853
30854 2009-12-24  Bruno Haible  <bruno@clisp.org>
30855
30856         New module 'unused-parameter'.
30857         * build-aux/unused-parameter.h: New file, extracted from earlier
30858         gnulib-common.m4.
30859         * modules/unused-parameter: New file.
30860         * lib/unistr.h: Include unused-parameter.h.
30861         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30862         _GL_UNUSED.
30863         * modules/unistr/base (Depends-on): Add unused-parameter.
30864
30865 2009-12-24  Bruno Haible  <bruno@clisp.org>
30866
30867         Add missing dependencies to 'extensions' module.
30868         * m4/extensions.m4: Add comment.
30869         * modules/accept4 (Depends-on): Add extensions.
30870         * modules/dup3 (Depends-on): Likewise.
30871         * modules/fcntl (Depends-on): Likewise.
30872         * modules/futimens (Depends-on): Likewise.
30873         * modules/mknod (Depends-on): Likewise.
30874         * modules/pipe2 (Depends-on): Likewise.
30875         * modules/stat-time (Depends-on): Likewise.
30876         * modules/strcasestr-simple (Depends-on): Likewise.
30877         * modules/strsignal (Depends-on): Likewise.
30878         * modules/utimensat (Depends-on): Likewise.
30879         * modules/localcharset (Depends-on): Likewise. Needed because of
30880         gl_FCNTL_O_FLAGS.
30881         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30882         AC_TYPE_MBSTATE_T.
30883         * modules/wcsnrtombs (Depends-on): Likewise.
30884         * modules/wcsrtombs (Depends-on): Likewise.
30885
30886 2009-12-24  Bruno Haible  <bruno@clisp.org>
30887
30888         binary-io: Avoid gcc warning due to SET_BINARY.
30889         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30890         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30891
30892 2009-12-24  Bruno Haible  <bruno@clisp.org>
30893
30894         Avoid future namespace pollution on glibc systems.
30895         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30896         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30897         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30898         glibc systems.
30899
30900 2009-12-24  Bruno Haible  <bruno@clisp.org>
30901
30902         Refactor common macros used in tests.
30903         * tests/macros.h: New file.
30904         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30905         and/or <stdlib.h>, if appropriate.
30906         (ASSERT, SIZEOF): Remove macros.
30907         * tests/test-areadlink-with-size.c: Likewise.
30908         * tests/test-areadlinkat.c: Likewise.
30909         * tests/test-areadlinkat-with-size.c: Likewise.
30910         * tests/test-argmatch.c: Likewise.
30911         * tests/test-argv-iter.c: Likewise.
30912         * tests/test-array-mergesort.c: Likewise.
30913         * tests/test-array_list.c: Likewise.
30914         * tests/test-array_oset.c: Likewise.
30915         * tests/test-avltree_list.c: Likewise.
30916         * tests/test-avltree_oset.c: Likewise.
30917         * tests/test-avltreehash_list.c: Likewise.
30918         * tests/test-base64.c: Likewise.
30919         * tests/test-binary-io.c: Likewise.
30920         * tests/test-bitrotate.c: Likewise.
30921         * tests/test-btowc.c: Likewise.
30922         * tests/test-byteswap.c: Likewise.
30923         * tests/test-c-ctype.c: Likewise.
30924         * tests/test-c-stack.c: Likewise.
30925         * tests/test-c-strcasecmp.c: Likewise.
30926         * tests/test-c-strcasestr.c: Likewise.
30927         * tests/test-c-strncasecmp.c: Likewise.
30928         * tests/test-c-strstr.c: Likewise.
30929         * tests/test-canonicalize-lgpl.c: Likewise.
30930         * tests/test-canonicalize.c: Likewise.
30931         * tests/test-carray_list.c: Likewise.
30932         * tests/test-ceilf1.c: Likewise.
30933         * tests/test-ceilf2.c: Likewise.
30934         * tests/test-ceill.c: Likewise.
30935         * tests/test-chown.c: Likewise.
30936         * tests/test-cloexec.c: Likewise.
30937         * tests/test-copy-acl.c: Likewise.
30938         * tests/test-copy-file.c: Likewise.
30939         * tests/test-count-one-bits.c: Likewise.
30940         * tests/test-dprintf-posix.c: Likewise.
30941         * tests/test-dup2.c: Likewise.
30942         * tests/test-dup3.c: Likewise.
30943         * tests/test-duplocale.c: Likewise.
30944         * tests/test-fbufmode.c: Likewise.
30945         * tests/test-fchdir.c: Likewise.
30946         * tests/test-fchownat.c: Likewise.
30947         * tests/test-fcntl-safer.c: Likewise.
30948         * tests/test-fcntl.c: Likewise.
30949         * tests/test-fdopendir.c: Likewise.
30950         * tests/test-fdutimensat.c: Likewise.
30951         * tests/test-fflush2.c: Likewise.
30952         * tests/test-file-has-acl.c: Likewise.
30953         * tests/test-filevercmp.c: Likewise.
30954         * tests/test-flock.c: Likewise.
30955         * tests/test-floorf1.c: Likewise.
30956         * tests/test-floorf2.c: Likewise.
30957         * tests/test-floorl.c: Likewise.
30958         * tests/test-fnmatch.c: Likewise.
30959         * tests/test-fopen.h: Likewise.
30960         * tests/test-fpending.c: Likewise.
30961         * tests/test-fprintf-posix.c: Likewise.
30962         * tests/test-fpurge.c: Likewise.
30963         * tests/test-freadable.c: Likewise.
30964         * tests/test-freadahead.c: Likewise.
30965         * tests/test-freading.c: Likewise.
30966         * tests/test-freadptr.c: Likewise.
30967         * tests/test-freadptr2.c: Likewise.
30968         * tests/test-freadseek.c: Likewise.
30969         * tests/test-freopen.c: Likewise.
30970         * tests/test-frexp.c: Likewise.
30971         * tests/test-frexpl.c: Likewise.
30972         * tests/test-fseek.c: Likewise.
30973         * tests/test-fseeko.c: Likewise.
30974         * tests/test-fstatat.c: Likewise.
30975         * tests/test-fstrcmp.c: Likewise.
30976         * tests/test-fsync.c: Likewise.
30977         * tests/test-ftell.c: Likewise.
30978         * tests/test-ftello.c: Likewise.
30979         * tests/test-func.c: Likewise.
30980         * tests/test-futimens.c: Likewise.
30981         * tests/test-fwritable.c: Likewise.
30982         * tests/test-fwriting.c: Likewise.
30983         * tests/test-getcwd.c: Likewise.
30984         * tests/test-getdate.c: Likewise.
30985         * tests/test-getdelim.c: Likewise.
30986         * tests/test-getdtablesize.c: Likewise.
30987         * tests/test-getgroups.c: Likewise.
30988         * tests/test-getline.c: Likewise.
30989         * tests/test-getndelim2.c: Likewise.
30990         * tests/test-glob.c: Likewise.
30991         * tests/test-hash.c: Likewise.
30992         * tests/test-i-ring.c: Likewise.
30993         * tests/test-iconv-utf.c: Likewise.
30994         * tests/test-iconv.c: Likewise.
30995         * tests/test-idpriv-drop.c: Likewise.
30996         * tests/test-idpriv-droptemp.c: Likewise.
30997         * tests/test-inet_ntop.c: Likewise.
30998         * tests/test-inet_pton.c: Likewise.
30999         * tests/test-isblank.c: Likewise.
31000         * tests/test-isfinite.c: Likewise.
31001         * tests/test-isinf.c: Likewise.
31002         * tests/test-isnan.c: Likewise.
31003         * tests/test-isnand.h: Likewise.
31004         * tests/test-isnanf.h: Likewise.
31005         * tests/test-isnanl.h: Likewise.
31006         * tests/test-lchown.c: Likewise.
31007         * tests/test-ldexpl.c: Likewise.
31008         * tests/test-link.c: Likewise.
31009         * tests/test-linkat.c: Likewise.
31010         * tests/test-linked_list.c: Likewise.
31011         * tests/test-linkedhash_list.c: Likewise.
31012         * tests/test-localename.c: Likewise.
31013         * tests/test-lseek.c: Likewise.
31014         * tests/test-lstat.c: Likewise.
31015         * tests/test-mbmemcasecmp.c: Likewise.
31016         * tests/test-mbmemcasecoll.c: Likewise.
31017         * tests/test-mbrtowc.c: Likewise.
31018         * tests/test-mbscasecmp.c: Likewise.
31019         * tests/test-mbscasestr1.c: Likewise.
31020         * tests/test-mbscasestr2.c: Likewise.
31021         * tests/test-mbscasestr3.c: Likewise.
31022         * tests/test-mbscasestr4.c: Likewise.
31023         * tests/test-mbschr.c: Likewise.
31024         * tests/test-mbscspn.c: Likewise.
31025         * tests/test-mbsinit.c: Likewise.
31026         * tests/test-mbsncasecmp.c: Likewise.
31027         * tests/test-mbsnrtowcs.c: Likewise.
31028         * tests/test-mbspbrk.c: Likewise.
31029         * tests/test-mbspcasecmp.c: Likewise.
31030         * tests/test-mbsrchr.c: Likewise.
31031         * tests/test-mbsrtowcs.c: Likewise.
31032         * tests/test-mbsspn.c: Likewise.
31033         * tests/test-mbsstr1.c: Likewise.
31034         * tests/test-mbsstr2.c: Likewise.
31035         * tests/test-mbsstr3.c: Likewise.
31036         * tests/test-memchr.c: Likewise.
31037         * tests/test-memchr2.c: Likewise.
31038         * tests/test-memcmp.c: Likewise.
31039         * tests/test-memmem.c: Likewise.
31040         * tests/test-memrchr.c: Likewise.
31041         * tests/test-mkdir.c: Likewise.
31042         * tests/test-mkdirat.c: Likewise.
31043         * tests/test-mkfifo.c: Likewise.
31044         * tests/test-mkfifoat.c: Likewise.
31045         * tests/test-mknod.c: Likewise.
31046         * tests/test-nanosleep.c: Likewise.
31047         * tests/test-nl_langinfo.c: Likewise.
31048         * tests/test-obstack-printf.c: Likewise.
31049         * tests/test-open.c: Likewise.
31050         * tests/test-openat.c: Likewise.
31051         * tests/test-pipe-filter-gi1.c: Likewise.
31052         * tests/test-pipe-filter-gi2-main.c: Likewise.
31053         * tests/test-pipe-filter-ii1.c: Likewise.
31054         * tests/test-pipe-filter-ii2-main.c: Likewise.
31055         * tests/test-pipe2.c: Likewise.
31056         * tests/test-popen.h: Likewise.
31057         * tests/test-posixtm.c: Likewise.
31058         * tests/test-pread.c: Likewise.
31059         * tests/test-printf-frexp.c: Likewise.
31060         * tests/test-printf-frexpl.c: Likewise.
31061         * tests/test-printf-posix.c: Likewise.
31062         * tests/test-priv-set.c: Likewise.
31063         * tests/test-quotearg.c: Likewise.
31064         * tests/test-random_r.c: Likewise.
31065         * tests/test-rawmemchr.c: Likewise.
31066         * tests/test-rbtree_list.c: Likewise.
31067         * tests/test-rbtree_oset.c: Likewise.
31068         * tests/test-rbtreehash_list.c: Likewise.
31069         * tests/test-readlink.c: Likewise.
31070         * tests/test-remove.c: Likewise.
31071         * tests/test-rename.c: Likewise.
31072         * tests/test-renameat.c: Likewise.
31073         * tests/test-rmdir.c: Likewise.
31074         * tests/test-round1.c: Likewise.
31075         * tests/test-roundf1.c: Likewise.
31076         * tests/test-roundl.c: Likewise.
31077         * tests/test-safe-alloc.c: Likewise.
31078         * tests/test-sameacls.c: Likewise.
31079         * tests/test-set-mode-acl.c: Likewise.
31080         * tests/test-setenv.c: Likewise.
31081         * tests/test-sigaction.c: Likewise.
31082         * tests/test-signbit.c: Likewise.
31083         * tests/test-sleep.c: Likewise.
31084         * tests/test-snprintf-posix.c: Likewise.
31085         * tests/test-snprintf.c: Likewise.
31086         * tests/test-sprintf-posix.c: Likewise.
31087         * tests/test-stat-time.c: Likewise.
31088         * tests/test-stat.c: Likewise.
31089         * tests/test-strcasestr.c: Likewise.
31090         * tests/test-strchrnul.c: Likewise.
31091         * tests/test-strerror.c: Likewise.
31092         * tests/test-striconv.c: Likewise.
31093         * tests/test-striconveh.c: Likewise.
31094         * tests/test-striconveha.c: Likewise.
31095         * tests/test-strsignal.c: Likewise.
31096         * tests/test-strstr.c: Likewise.
31097         * tests/test-strtod.c: Likewise.
31098         * tests/test-strverscmp.c: Likewise.
31099         * tests/test-symlink.c: Likewise.
31100         * tests/test-symlinkat.c: Likewise.
31101         * tests/test-trunc1.c: Likewise.
31102         * tests/test-trunc2.c: Likewise.
31103         * tests/test-truncf1.c: Likewise.
31104         * tests/test-truncf2.c: Likewise.
31105         * tests/test-truncl.c: Likewise.
31106         * tests/test-uname.c: Likewise.
31107         * tests/test-unlink.c: Likewise.
31108         * tests/test-unlinkat.c: Likewise.
31109         * tests/test-unsetenv.c: Likewise.
31110         * tests/test-usleep.c: Likewise.
31111         * tests/test-utimens.c: Likewise.
31112         * tests/test-utimensat.c: Likewise.
31113         * tests/test-vasnprintf-posix.c: Likewise.
31114         * tests/test-vasnprintf-posix2.c: Likewise.
31115         * tests/test-vasnprintf.c: Likewise.
31116         * tests/test-vasprintf-posix.c: Likewise.
31117         * tests/test-vasprintf.c: Likewise.
31118         * tests/test-vdprintf-posix.c: Likewise.
31119         * tests/test-vfprintf-posix.c: Likewise.
31120         * tests/test-vprintf-posix.c: Likewise.
31121         * tests/test-vsnprintf-posix.c: Likewise.
31122         * tests/test-vsnprintf.c: Likewise.
31123         * tests/test-vsprintf-posix.c: Likewise.
31124         * tests/test-wcrtomb.c: Likewise.
31125         * tests/test-wcsnrtombs.c: Likewise.
31126         * tests/test-wcsrtombs.c: Likewise.
31127         * tests/test-wctype.c: Likewise.
31128         * tests/test-wcwidth.c: Likewise.
31129         * tests/test-xfprintf-posix.c: Likewise.
31130         * tests/test-xmemdup0.c: Likewise.
31131         * tests/test-xprintf-posix.c: Likewise.
31132         * tests/test-xvasprintf.c: Likewise.
31133         * tests/unicase/test-locale-language.c: Likewise.
31134         * tests/unicase/test-mapping-part1.h: Likewise.
31135         * tests/unicase/test-predicate-part1.h: Likewise.
31136         * tests/unicase/test-u8-casecmp.c: Likewise.
31137         * tests/unicase/test-u8-casecoll.c: Likewise.
31138         * tests/unicase/test-u8-casefold.c: Likewise.
31139         * tests/unicase/test-u8-is-cased.c: Likewise.
31140         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31141         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31142         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31143         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31144         * tests/unicase/test-u8-tolower.c: Likewise.
31145         * tests/unicase/test-u8-totitle.c: Likewise.
31146         * tests/unicase/test-u8-toupper.c: Likewise.
31147         * tests/unicase/test-u16-casecmp.c: Likewise.
31148         * tests/unicase/test-u16-casecoll.c: Likewise.
31149         * tests/unicase/test-u16-casefold.c: Likewise.
31150         * tests/unicase/test-u16-is-cased.c: Likewise.
31151         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31152         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31153         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31154         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31155         * tests/unicase/test-u16-tolower.c: Likewise.
31156         * tests/unicase/test-u16-totitle.c: Likewise.
31157         * tests/unicase/test-u16-toupper.c: Likewise.
31158         * tests/unicase/test-u32-casecmp.c: Likewise.
31159         * tests/unicase/test-u32-casecoll.c: Likewise.
31160         * tests/unicase/test-u32-casefold.c: Likewise.
31161         * tests/unicase/test-u32-is-cased.c: Likewise.
31162         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31163         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31164         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31165         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31166         * tests/unicase/test-u32-tolower.c: Likewise.
31167         * tests/unicase/test-u32-totitle.c: Likewise.
31168         * tests/unicase/test-u32-toupper.c: Likewise.
31169         * tests/unicase/test-ulc-casecmp.c: Likewise.
31170         * tests/unicase/test-ulc-casecoll.c: Likewise.
31171         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31172         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31173         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31174         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31175         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31176         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31177         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31178         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31179         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31180         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31181         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31182         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31183         * tests/unictype/test-bidi_byname.c: Likewise.
31184         * tests/unictype/test-bidi_name.c: Likewise.
31185         * tests/unictype/test-bidi_of.c: Likewise.
31186         * tests/unictype/test-bidi_test.c: Likewise.
31187         * tests/unictype/test-block_list.c: Likewise.
31188         * tests/unictype/test-block_of.c: Likewise.
31189         * tests/unictype/test-block_test.c: Likewise.
31190         * tests/unictype/test-categ_and.c: Likewise.
31191         * tests/unictype/test-categ_and_not.c: Likewise.
31192         * tests/unictype/test-categ_byname.c: Likewise.
31193         * tests/unictype/test-categ_name.c: Likewise.
31194         * tests/unictype/test-categ_none.c: Likewise.
31195         * tests/unictype/test-categ_of.c: Likewise.
31196         * tests/unictype/test-categ_or.c: Likewise.
31197         * tests/unictype/test-categ_test_withtable.c: Likewise.
31198         * tests/unictype/test-combining.c: Likewise.
31199         * tests/unictype/test-decdigit.c: Likewise.
31200         * tests/unictype/test-digit.c: Likewise.
31201         * tests/unictype/test-mirror.c: Likewise.
31202         * tests/unictype/test-numeric.c: Likewise.
31203         * tests/unictype/test-pr_byname.c: Likewise.
31204         * tests/unictype/test-pr_test.c: Likewise.
31205         * tests/unictype/test-predicate-part1.h: Likewise.
31206         * tests/unictype/test-scripts.c: Likewise.
31207         * tests/unictype/test-sy_c_ident.c: Likewise.
31208         * tests/unictype/test-sy_java_ident.c: Likewise.
31209         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31210         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31211         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31212         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31213         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31214         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31215         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31216         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31217         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31218         * tests/uninorm/test-compat-decomposition.c: Likewise.
31219         * tests/uninorm/test-composition.c: Likewise.
31220         * tests/uninorm/test-decomposing-form.c: Likewise.
31221         * tests/uninorm/test-decomposition.c: Likewise.
31222         * tests/uninorm/test-u8-nfc.c: Likewise.
31223         * tests/uninorm/test-u8-nfd.c: Likewise.
31224         * tests/uninorm/test-u8-nfkc.c: Likewise.
31225         * tests/uninorm/test-u8-nfkd.c: Likewise.
31226         * tests/uninorm/test-u8-normcmp.c: Likewise.
31227         * tests/uninorm/test-u8-normcoll.c: Likewise.
31228         * tests/uninorm/test-u16-nfc.c: Likewise.
31229         * tests/uninorm/test-u16-nfd.c: Likewise.
31230         * tests/uninorm/test-u16-nfkc.c: Likewise.
31231         * tests/uninorm/test-u16-nfkd.c: Likewise.
31232         * tests/uninorm/test-u16-normcmp.c: Likewise.
31233         * tests/uninorm/test-u16-normcoll.c: Likewise.
31234         * tests/uninorm/test-u32-nfc.c: Likewise.
31235         * tests/uninorm/test-u32-nfd.c: Likewise.
31236         * tests/uninorm/test-u32-nfkc.c: Likewise.
31237         * tests/uninorm/test-u32-nfkd.c: Likewise.
31238         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31239         * tests/uninorm/test-u32-normcmp.c: Likewise.
31240         * tests/uninorm/test-u32-normcoll.c: Likewise.
31241         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31242         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31243         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31244         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31245         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31246         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31247         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31248         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31249         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31250         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31251         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31252         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31253         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31254         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31255         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31256         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31257         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31258         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31259         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31260         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31261         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31262         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31263         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31264         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31265         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31266         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31267         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31268         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31269         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31270         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31271         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31272         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31273         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31274         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31275         * tests/uniwidth/test-u8-width.c: Likewise.
31276         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31277         * tests/uniwidth/test-u16-width.c: Likewise.
31278         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31279         * tests/uniwidth/test-u32-width.c: Likewise.
31280         * tests/uniwidth/test-uc_width.c: Likewise.
31281         * tests/uniwidth/test-uc_width2.c: Likewise.
31282         * modules/acl-tests (Files): Add tests/macros.h.
31283         * modules/areadlink-tests (Files): Likewise.
31284         * modules/areadlink-with-size-tests (Files): Likewise.
31285         * modules/areadlinkat-tests (Files): Likewise.
31286         * modules/areadlinkat-with-size-tests (Files): Likewise.
31287         * modules/argmatch-tests (Files): Likewise.
31288         * modules/argv-iter-tests (Files): Likewise.
31289         * modules/array-list-tests (Files): Likewise.
31290         * modules/array-mergesort-tests (Files): Likewise.
31291         * modules/array-oset-tests (Files): Likewise.
31292         * modules/avltree-list-tests (Files): Likewise.
31293         * modules/avltree-oset-tests (Files): Likewise.
31294         * modules/avltreehash-list-tests (Files): Likewise.
31295         * modules/base64-tests (Files): Likewise.
31296         * modules/binary-io-tests (Files): Likewise.
31297         * modules/bitrotate-tests (Files): Likewise.
31298         * modules/btowc-tests (Files): Likewise.
31299         * modules/byteswap-tests (Files): Likewise.
31300         * modules/c-ctype-tests (Files): Likewise.
31301         * modules/c-stack-tests (Files): Likewise.
31302         * modules/c-strcase-tests (Files): Likewise.
31303         * modules/c-strcasestr-tests (Files): Likewise.
31304         * modules/c-strstr-tests (Files): Likewise.
31305         * modules/canonicalize-lgpl-tests (Files): Likewise.
31306         * modules/canonicalize-tests (Files): Likewise.
31307         * modules/carray-list-tests (Files): Likewise.
31308         * modules/ceilf-tests (Files): Likewise.
31309         * modules/ceill-tests (Files): Likewise.
31310         * modules/chown-tests (Files): Likewise.
31311         * modules/cloexec-tests (Files): Likewise.
31312         * modules/copy-file-tests (Files): Likewise.
31313         * modules/count-one-bits-tests (Files): Likewise.
31314         * modules/dprintf-posix-tests (Files): Likewise.
31315         * modules/dup2-tests (Files): Likewise.
31316         * modules/dup3-tests (Files): Likewise.
31317         * modules/duplocale-tests (Files): Likewise.
31318         * modules/fbufmode-tests (Files): Likewise.
31319         * modules/fchdir-tests (Files): Likewise.
31320         * modules/fcntl-safer-tests (Files): Likewise.
31321         * modules/fcntl-tests (Files): Likewise.
31322         * modules/fdopendir-tests (Files): Likewise.
31323         * modules/fdutimensat-tests (Files): Likewise.
31324         * modules/fflush-tests (Files): Likewise.
31325         * modules/filevercmp-tests (Files): Likewise.
31326         * modules/flock-tests (Files): Likewise.
31327         * modules/floorf-tests (Files): Likewise.
31328         * modules/floorl-tests (Files): Likewise.
31329         * modules/fnmatch-tests (Files): Likewise.
31330         * modules/fopen-safer-tests (Files): Likewise.
31331         * modules/fopen-tests (Files): Likewise.
31332         * modules/fpending-tests (Files): Likewise.
31333         * modules/fprintf-posix-tests (Files): Likewise.
31334         * modules/fpurge-tests (Files): Likewise.
31335         * modules/freadable-tests (Files): Likewise.
31336         * modules/freadahead-tests (Files): Likewise.
31337         * modules/freading-tests (Files): Likewise.
31338         * modules/freadptr-tests (Files): Likewise.
31339         * modules/freadseek-tests (Files): Likewise.
31340         * modules/freopen-tests (Files): Likewise.
31341         * modules/frexp-nolibm-tests (Files): Likewise.
31342         * modules/frexp-tests (Files): Likewise.
31343         * modules/frexpl-nolibm-tests (Files): Likewise.
31344         * modules/frexpl-tests (Files): Likewise.
31345         * modules/fseek-tests (Files): Likewise.
31346         * modules/fseeko-tests (Files): Likewise.
31347         * modules/fstrcmp-tests (Files): Likewise.
31348         * modules/fsync-tests (Files): Likewise.
31349         * modules/ftell-tests (Files): Likewise.
31350         * modules/ftello-tests (Files): Likewise.
31351         * modules/func-tests (Files): Likewise.
31352         * modules/futimens-tests (Files): Likewise.
31353         * modules/fwritable-tests (Files): Likewise.
31354         * modules/fwriting-tests (Files): Likewise.
31355         * modules/getcwd-tests (Files): Likewise.
31356         * modules/getdate-tests (Files): Likewise.
31357         * modules/getdelim-tests (Files): Likewise.
31358         * modules/getdtablesize-tests (Files): Likewise.
31359         * modules/getgroups-tests (Files): Likewise.
31360         * modules/getline-tests (Files): Likewise.
31361         * modules/getndelim2-tests (Files): Likewise.
31362         * modules/glob-tests (Files): Likewise.
31363         * modules/hash-tests (Files): Likewise.
31364         * modules/i-ring-tests (Files): Likewise.
31365         * modules/iconv-tests (Files): Likewise.
31366         * modules/iconv_open-utf-tests (Files): Likewise.
31367         * modules/idpriv-drop-tests (Files): Likewise.
31368         * modules/idpriv-droptemp-tests (Files): Likewise.
31369         * modules/inet_ntop-tests (Files): Likewise.
31370         * modules/inet_pton-tests (Files): Likewise.
31371         * modules/isblank-tests (Files): Likewise.
31372         * modules/isfinite-tests (Files): Likewise.
31373         * modules/isinf-tests (Files): Likewise.
31374         * modules/isnan-tests (Files): Likewise.
31375         * modules/isnand-nolibm-tests (Files): Likewise.
31376         * modules/isnand-tests (Files): Likewise.
31377         * modules/isnanf-nolibm-tests (Files): Likewise.
31378         * modules/isnanf-tests (Files): Likewise.
31379         * modules/isnanl-nolibm-tests (Files): Likewise.
31380         * modules/isnanl-tests (Files): Likewise.
31381         * modules/lchown-tests (Files): Likewise.
31382         * modules/ldexpl-tests (Files): Likewise.
31383         * modules/link-tests (Files): Likewise.
31384         * modules/linkat-tests (Files): Likewise.
31385         * modules/linked-list-tests (Files): Likewise.
31386         * modules/linkedhash-list-tests (Files): Likewise.
31387         * modules/localename-tests (Files): Likewise.
31388         * modules/lseek-tests (Files): Likewise.
31389         * modules/lstat-tests (Files): Likewise.
31390         * modules/mbmemcasecmp-tests (Files): Likewise.
31391         * modules/mbmemcasecoll-tests (Files): Likewise.
31392         * modules/mbrtowc-tests (Files): Likewise.
31393         * modules/mbscasecmp-tests (Files): Likewise.
31394         * modules/mbscasestr-tests (Files): Likewise.
31395         * modules/mbschr-tests (Files): Likewise.
31396         * modules/mbscspn-tests (Files): Likewise.
31397         * modules/mbsinit-tests (Files): Likewise.
31398         * modules/mbsncasecmp-tests (Files): Likewise.
31399         * modules/mbsnrtowcs-tests (Files): Likewise.
31400         * modules/mbspbrk-tests (Files): Likewise.
31401         * modules/mbspcasecmp-tests (Files): Likewise.
31402         * modules/mbsrchr-tests (Files): Likewise.
31403         * modules/mbsrtowcs-tests (Files): Likewise.
31404         * modules/mbsspn-tests (Files): Likewise.
31405         * modules/mbsstr-tests (Files): Likewise.
31406         * modules/memchr-tests (Files): Likewise.
31407         * modules/memchr2-tests (Files): Likewise.
31408         * modules/memcmp-tests (Files): Likewise.
31409         * modules/memmem-tests (Files): Likewise.
31410         * modules/memrchr-tests (Files): Likewise.
31411         * modules/mkdir-tests (Files): Likewise.
31412         * modules/mkfifo-tests (Files): Likewise.
31413         * modules/mkfifoat-tests (Files): Likewise.
31414         * modules/mknod-tests (Files): Likewise.
31415         * modules/nanosleep-tests (Files): Likewise.
31416         * modules/nl_langinfo-tests (Files): Likewise.
31417         * modules/obstack-printf-tests (Files): Likewise.
31418         * modules/open-tests (Files): Likewise.
31419         * modules/openat-tests (Files): Likewise.
31420         * modules/pipe-filter-gi-tests (Files): Likewise.
31421         * modules/pipe-filter-ii-tests (Files): Likewise.
31422         * modules/pipe2-tests (Files): Likewise.
31423         * modules/popen-safer-tests (Files): Likewise.
31424         * modules/popen-tests (Files): Likewise.
31425         * modules/posixtm-tests (Files): Likewise.
31426         * modules/pread-tests (Files): Likewise.
31427         * modules/printf-frexp-tests (Files): Likewise.
31428         * modules/printf-frexpl-tests (Files): Likewise.
31429         * modules/printf-posix-tests (Files): Likewise.
31430         * modules/priv-set-tests (Files): Likewise.
31431         * modules/quotearg-tests (Files): Likewise.
31432         * modules/random_r-tests (Files): Likewise.
31433         * modules/rawmemchr-tests (Files): Likewise.
31434         * modules/rbtree-list-tests (Files): Likewise.
31435         * modules/rbtree-oset-tests (Files): Likewise.
31436         * modules/rbtreehash-list-tests (Files): Likewise.
31437         * modules/readlink-tests (Files): Likewise.
31438         * modules/remove-tests (Files): Likewise.
31439         * modules/rename-tests (Files): Likewise.
31440         * modules/renameat-tests (Files): Likewise.
31441         * modules/rmdir-tests (Files): Likewise.
31442         * modules/round-tests (Files): Likewise.
31443         * modules/roundf-tests (Files): Likewise.
31444         * modules/roundl-tests (Files): Likewise.
31445         * modules/safe-alloc-tests (Files): Likewise.
31446         * modules/setenv-tests (Files): Likewise.
31447         * modules/sigaction-tests (Files): Likewise.
31448         * modules/signbit-tests (Files): Likewise.
31449         * modules/sleep-tests (Files): Likewise.
31450         * modules/snprintf-posix-tests (Files): Likewise.
31451         * modules/snprintf-tests (Files): Likewise.
31452         * modules/sprintf-posix-tests (Files): Likewise.
31453         * modules/stat-tests (Files): Likewise.
31454         * modules/stat-time-tests (Files): Likewise.
31455         * modules/strcasestr-tests (Files): Likewise.
31456         * modules/strchrnul-tests (Files): Likewise.
31457         * modules/strerror-tests (Files): Likewise.
31458         * modules/striconv-tests (Files): Likewise.
31459         * modules/striconveh-tests (Files): Likewise.
31460         * modules/striconveha-tests (Files): Likewise.
31461         * modules/strsignal-tests (Files): Likewise.
31462         * modules/strstr-tests (Files): Likewise.
31463         * modules/strtod-tests (Files): Likewise.
31464         * modules/strverscmp-tests (Files): Likewise.
31465         * modules/symlink-tests (Files): Likewise.
31466         * modules/symlinkat-tests (Files): Likewise.
31467         * modules/trunc-tests (Files): Likewise.
31468         * modules/truncf-tests (Files): Likewise.
31469         * modules/truncl-tests (Files): Likewise.
31470         * modules/uname-tests (Files): Likewise.
31471         * modules/unicase/cased-tests (Files): Likewise.
31472         * modules/unicase/ignorable-tests (Files): Likewise.
31473         * modules/unicase/locale-language-tests (Files): Likewise.
31474         * modules/unicase/tolower-tests (Files): Likewise.
31475         * modules/unicase/totitle-tests (Files): Likewise.
31476         * modules/unicase/toupper-tests (Files): Likewise.
31477         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31478         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31479         * modules/unicase/u8-casefold-tests (Files): Likewise.
31480         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31481         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31482         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31483         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31484         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31485         * modules/unicase/u8-tolower-tests (Files): Likewise.
31486         * modules/unicase/u8-totitle-tests (Files): Likewise.
31487         * modules/unicase/u8-toupper-tests (Files): Likewise.
31488         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31489         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31490         * modules/unicase/u16-casefold-tests (Files): Likewise.
31491         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31492         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31493         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31494         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31495         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31496         * modules/unicase/u16-tolower-tests (Files): Likewise.
31497         * modules/unicase/u16-totitle-tests (Files): Likewise.
31498         * modules/unicase/u16-toupper-tests (Files): Likewise.
31499         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31500         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31501         * modules/unicase/u32-casefold-tests (Files): Likewise.
31502         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31503         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31504         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31505         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31506         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31507         * modules/unicase/u32-tolower-tests (Files): Likewise.
31508         * modules/unicase/u32-totitle-tests (Files): Likewise.
31509         * modules/unicase/u32-toupper-tests (Files): Likewise.
31510         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31511         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31512         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31513         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31514         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31515         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31516         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31517         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31518         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31519         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31520         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31521         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31522         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31523         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31524         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31525         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31526         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31527         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31528         * modules/unictype/block-list-tests (Files): Likewise.
31529         * modules/unictype/block-of-tests (Files): Likewise.
31530         * modules/unictype/block-test-tests (Files): Likewise.
31531         * modules/unictype/category-C-tests (Files): Likewise.
31532         * modules/unictype/category-Cc-tests (Files): Likewise.
31533         * modules/unictype/category-Cf-tests (Files): Likewise.
31534         * modules/unictype/category-Cn-tests (Files): Likewise.
31535         * modules/unictype/category-Co-tests (Files): Likewise.
31536         * modules/unictype/category-Cs-tests (Files): Likewise.
31537         * modules/unictype/category-L-tests (Files): Likewise.
31538         * modules/unictype/category-Ll-tests (Files): Likewise.
31539         * modules/unictype/category-Lm-tests (Files): Likewise.
31540         * modules/unictype/category-Lo-tests (Files): Likewise.
31541         * modules/unictype/category-Lt-tests (Files): Likewise.
31542         * modules/unictype/category-Lu-tests (Files): Likewise.
31543         * modules/unictype/category-M-tests (Files): Likewise.
31544         * modules/unictype/category-Mc-tests (Files): Likewise.
31545         * modules/unictype/category-Me-tests (Files): Likewise.
31546         * modules/unictype/category-Mn-tests (Files): Likewise.
31547         * modules/unictype/category-N-tests (Files): Likewise.
31548         * modules/unictype/category-Nd-tests (Files): Likewise.
31549         * modules/unictype/category-Nl-tests (Files): Likewise.
31550         * modules/unictype/category-No-tests (Files): Likewise.
31551         * modules/unictype/category-P-tests (Files): Likewise.
31552         * modules/unictype/category-Pc-tests (Files): Likewise.
31553         * modules/unictype/category-Pd-tests (Files): Likewise.
31554         * modules/unictype/category-Pe-tests (Files): Likewise.
31555         * modules/unictype/category-Pf-tests (Files): Likewise.
31556         * modules/unictype/category-Pi-tests (Files): Likewise.
31557         * modules/unictype/category-Po-tests (Files): Likewise.
31558         * modules/unictype/category-Ps-tests (Files): Likewise.
31559         * modules/unictype/category-S-tests (Files): Likewise.
31560         * modules/unictype/category-Sc-tests (Files): Likewise.
31561         * modules/unictype/category-Sk-tests (Files): Likewise.
31562         * modules/unictype/category-Sm-tests (Files): Likewise.
31563         * modules/unictype/category-So-tests (Files): Likewise.
31564         * modules/unictype/category-Z-tests (Files): Likewise.
31565         * modules/unictype/category-Zl-tests (Files): Likewise.
31566         * modules/unictype/category-Zp-tests (Files): Likewise.
31567         * modules/unictype/category-Zs-tests (Files): Likewise.
31568         * modules/unictype/category-and-not-tests (Files): Likewise.
31569         * modules/unictype/category-and-tests (Files): Likewise.
31570         * modules/unictype/category-byname-tests (Files): Likewise.
31571         * modules/unictype/category-name-tests (Files): Likewise.
31572         * modules/unictype/category-none-tests (Files): Likewise.
31573         * modules/unictype/category-of-tests (Files): Likewise.
31574         * modules/unictype/category-or-tests (Files): Likewise.
31575         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31576         * modules/unictype/combining-class-tests (Files): Likewise.
31577         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31578         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31579         * modules/unictype/ctype-blank-tests (Files): Likewise.
31580         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31581         * modules/unictype/ctype-digit-tests (Files): Likewise.
31582         * modules/unictype/ctype-graph-tests (Files): Likewise.
31583         * modules/unictype/ctype-lower-tests (Files): Likewise.
31584         * modules/unictype/ctype-print-tests (Files): Likewise.
31585         * modules/unictype/ctype-punct-tests (Files): Likewise.
31586         * modules/unictype/ctype-space-tests (Files): Likewise.
31587         * modules/unictype/ctype-upper-tests (Files): Likewise.
31588         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31589         * modules/unictype/decimal-digit-tests (Files): Likewise.
31590         * modules/unictype/digit-tests (Files): Likewise.
31591         * modules/unictype/mirror-tests (Files): Likewise.
31592         * modules/unictype/numeric-tests (Files): Likewise.
31593         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31594         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31595         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31596         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31597         Likewise.
31598         * modules/unictype/property-bidi-block-separator-tests (Files):
31599         Likewise.
31600         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31601         Likewise.
31602         * modules/unictype/property-bidi-common-separator-tests (Files):
31603         Likewise.
31604         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31605         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31606         Likewise.
31607         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31608         Likewise.
31609         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31610         Likewise.
31611         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31612         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31613         Likewise.
31614         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31615         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31616         Likewise.
31617         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31618         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31619         * modules/unictype/property-bidi-segment-separator-tests (Files):
31620         Likewise.
31621         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31622         * modules/unictype/property-byname-tests (Files): Likewise.
31623         * modules/unictype/property-combining-tests (Files): Likewise.
31624         * modules/unictype/property-composite-tests (Files): Likewise.
31625         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31626         * modules/unictype/property-dash-tests (Files): Likewise.
31627         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31628         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31629         Likewise.
31630         * modules/unictype/property-deprecated-tests (Files): Likewise.
31631         * modules/unictype/property-diacritic-tests (Files): Likewise.
31632         * modules/unictype/property-extender-tests (Files): Likewise.
31633         * modules/unictype/property-format-control-tests (Files): Likewise.
31634         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31635         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31636         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31637         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31638         * modules/unictype/property-hyphen-tests (Files): Likewise.
31639         * modules/unictype/property-id-continue-tests (Files): Likewise.
31640         * modules/unictype/property-id-start-tests (Files): Likewise.
31641         * modules/unictype/property-ideographic-tests (Files): Likewise.
31642         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31643         * modules/unictype/property-ids-trinary-operator-tests (Files):
31644         Likewise.
31645         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31646         * modules/unictype/property-iso-control-tests (Files): Likewise.
31647         * modules/unictype/property-join-control-tests (Files): Likewise.
31648         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31649         * modules/unictype/property-line-separator-tests (Files): Likewise.
31650         * modules/unictype/property-logical-order-exception-tests (Files):
31651         Likewise.
31652         * modules/unictype/property-lowercase-tests (Files): Likewise.
31653         * modules/unictype/property-math-tests (Files): Likewise.
31654         * modules/unictype/property-non-break-tests (Files): Likewise.
31655         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31656         * modules/unictype/property-numeric-tests (Files): Likewise.
31657         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31658         * modules/unictype/property-other-default-ignorable-code-point-tests
31659         (Files): Likewise.
31660         * modules/unictype/property-other-grapheme-extend-tests (Files):
31661         Likewise.
31662         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31663         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31664         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31665         * modules/unictype/property-other-math-tests (Files): Likewise.
31666         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31667         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31668         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31669         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31670         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31671         * modules/unictype/property-private-use-tests (Files): Likewise.
31672         * modules/unictype/property-punctuation-tests (Files): Likewise.
31673         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31674         * modules/unictype/property-radical-tests (Files): Likewise.
31675         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31676         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31677         * modules/unictype/property-space-tests (Files): Likewise.
31678         * modules/unictype/property-terminal-punctuation-tests (Files):
31679         Likewise.
31680         * modules/unictype/property-test-tests (Files): Likewise.
31681         * modules/unictype/property-titlecase-tests (Files): Likewise.
31682         * modules/unictype/property-unassigned-code-value-tests (Files):
31683         Likewise.
31684         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31685         * modules/unictype/property-uppercase-tests (Files): Likewise.
31686         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31687         * modules/unictype/property-white-space-tests (Files): Likewise.
31688         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31689         * modules/unictype/property-xid-start-tests (Files): Likewise.
31690         * modules/unictype/property-zero-width-tests (Files): Likewise.
31691         * modules/unictype/scripts-tests (Files): Likewise.
31692         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31693         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31694         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31695         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31696         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31697         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31698         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31699         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31700         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31701         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31702         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31703         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31704         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31705         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31706         * modules/uninorm/composition-tests (Files): Likewise.
31707         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31708         * modules/uninorm/decomposition-tests (Files): Likewise.
31709         * modules/uninorm/filter-tests (Files): Likewise.
31710         * modules/uninorm/nfc-tests (Files): Likewise.
31711         * modules/uninorm/nfd-tests (Files): Likewise.
31712         * modules/uninorm/nfkc-tests (Files): Likewise.
31713         * modules/uninorm/nfkd-tests (Files): Likewise.
31714         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31715         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31716         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31717         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31718         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31719         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31720         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31721         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31722         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31723         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31724         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31725         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31726         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31727         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31728         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31729         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31730         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31731         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31732         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31733         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31734         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31735         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31736         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31737         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31738         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31739         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31740         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31741         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31742         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31743         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31744         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31745         * modules/uniwidth/u8-width-tests (Files): Likewise.
31746         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31747         * modules/uniwidth/u16-width-tests (Files): Likewise.
31748         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31749         * modules/uniwidth/u32-width-tests (Files): Likewise.
31750         * modules/uniwidth/width-tests (Files): Likewise.
31751         * modules/unlink-tests (Files): Likewise.
31752         * modules/unsetenv-tests (Files): Likewise.
31753         * modules/usleep-tests (Files): Likewise.
31754         * modules/utimens-tests (Files): Likewise.
31755         * modules/utimensat-tests (Files): Likewise.
31756         * modules/vasnprintf-posix-tests (Files): Likewise.
31757         * modules/vasnprintf-tests (Files): Likewise.
31758         * modules/vasprintf-posix-tests (Files): Likewise.
31759         * modules/vasprintf-tests (Files): Likewise.
31760         * modules/vdprintf-posix-tests (Files): Likewise.
31761         * modules/vfprintf-posix-tests (Files): Likewise.
31762         * modules/vprintf-posix-tests (Files): Likewise.
31763         * modules/vsnprintf-posix-tests (Files): Likewise.
31764         * modules/vsnprintf-tests (Files): Likewise.
31765         * modules/vsprintf-posix-tests (Files): Likewise.
31766         * modules/wcrtomb-tests (Files): Likewise.
31767         * modules/wcsnrtombs-tests (Files): Likewise.
31768         * modules/wcsrtombs-tests (Files): Likewise.
31769         * modules/wctype-tests (Files): Likewise.
31770         * modules/wcwidth-tests (Files): Likewise.
31771         * modules/xmemdup0-tests (Files): Likewise.
31772         * modules/xprintf-posix-tests (Files): Likewise.
31773         * modules/xvasprintf-tests (Files): Likewise.
31774
31775 2009-12-24  Eric Blake  <ebb9@byu.net>
31776
31777         test-nanosleep: fix typo
31778         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31779         patch.
31780         Reported by Bruno Haible.
31781
31782 2009-12-24  Bruno Haible  <bruno@clisp.org>
31783
31784         Reduce namespace pollution on glibc systems.
31785         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31786         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31787         systems.
31788         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31789         <getopt.h> on glibc systems.
31790         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31791         systems.
31792         * lib/fcntl.c: Include <unistd.h> here instead.
31793
31794 2009-12-24  Bruno Haible  <bruno@clisp.org>
31795
31796         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31797
31798 2009-12-24  Eric Blake  <ebb9@byu.net>
31799
31800         tests: add signature checks
31801         * tests/signature.h (SIGNATURE_CHECK): New file.
31802         * modules/atexit-tests (Files): Use it.
31803         * modules/btowc-tests (Files): Likewise.
31804         * modules/canonicalize-lgpl-tests (Files): Likewise.
31805         * modules/ceilf-tests (Files): Likewise.
31806         * modules/ceill-tests (Files): Likewise.
31807         * modules/chown-tests (Files): Likewise.
31808         * modules/dprintf-posix-tests (Files): Likewise.
31809         * modules/dup2-tests (Files): Likewise.
31810         * modules/dup3-tests (Files): Likewise.
31811         * modules/duplocale-tests (Files): Likewise.
31812         * modules/fchdir-tests (Files): Likewise.
31813         * modules/fcntl-tests (Files): Likewise.
31814         * modules/fdopendir-tests (Files): Likewise.
31815         * modules/fflush-tests (Files): Likewise.
31816         * modules/flock-tests (Files): Likewise.
31817         * modules/floorf-tests (Files): Likewise.
31818         * modules/floorl-tests (Files): Likewise.
31819         * modules/fnmatch-tests (Files): Likewise.
31820         * modules/fopen-tests (Files): Likewise.
31821         * modules/fprintf-posix-tests (Files): Likewise.
31822         * modules/freopen-tests (Files): Likewise.
31823         * modules/frexp-nolibm-tests (Files): Likewise.
31824         * modules/frexp-tests (Files): Likewise.
31825         * modules/frexpl-nolibm-tests (Files): Likewise.
31826         * modules/frexpl-tests (Files): Likewise.
31827         * modules/fseek-tests (Files): Likewise.
31828         * modules/fseeko-tests (Files): Likewise.
31829         * modules/fsync-tests (Files): Likewise.
31830         * modules/ftell-tests (Files): Likewise.
31831         * modules/ftello-tests (Files): Likewise.
31832         * modules/futimens-tests (Files): Likewise.
31833         * modules/getaddrinfo-tests (Files): Likewise.
31834         * modules/getcwd-tests (Files): Likewise.
31835         * modules/getdelim-tests (Files): Likewise.
31836         * modules/getdtablesize-tests (Files): Likewise.
31837         * modules/getgroups-tests (Files): Likewise.
31838         * modules/gethostname-tests (Files): Likewise.
31839         * modules/getline-tests (Files): Likewise.
31840         * modules/getopt-posix-tests (Files): Likewise.
31841         * modules/gettimeofday-tests (Files): Likewise.
31842         * modules/glob-tests (Files): Likewise.
31843         * modules/iconv-tests (Files): Likewise.
31844         * modules/inet_ntop-tests (Files): Likewise.
31845         * modules/inet_pton-tests (Files): Likewise.
31846         * modules/isblank-tests (Files): Likewise.
31847         * modules/lchown-tests (Files): Likewise.
31848         * modules/ldexpl-tests (Files): Likewise.
31849         * modules/link-tests (Files): Likewise.
31850         * modules/linkat-tests (Files): Likewise.
31851         * modules/lseek-tests (Files): Likewise.
31852         * modules/lstat-tests (Files): Likewise.
31853         * modules/mbrtowc-tests (Files): Likewise.
31854         * modules/mbsinit-tests (Files): Likewise.
31855         * modules/mbsnrtowcs-tests (Files): Likewise.
31856         * modules/mbsrtowcs-tests (Files): Likewise.
31857         * modules/memchr-tests (Files): Likewise.
31858         * modules/memcmp-tests (Files): Likewise.
31859         * modules/memmem-tests (Files): Likewise.
31860         * modules/memrchr-tests (Files): Likewise.
31861         * modules/mkdir-tests (Files): Likewise.
31862         * modules/mkfifo-tests (Files): Likewise.
31863         * modules/mkfifoat-tests (Files): Likewise.
31864         * modules/mknod-tests (Files): Likewise.
31865         * modules/nanosleep-tests (Files): Likewise.
31866         * modules/nl_langinfo-tests (Files): Likewise.
31867         * modules/obstack-printf-tests (Files): Likewise.
31868         * modules/open-tests (Files): Likewise.
31869         * modules/openat-tests (Files): Likewise.
31870         * modules/perror-tests (Files): Likewise.
31871         * modules/pipe2-tests (Files): Likewise.
31872         * modules/poll-tests (Files): Likewise.
31873         * modules/popen-tests (Files): Likewise.
31874         * modules/posix_spawn-tests (Files): Likewise.
31875         * modules/posix_spawnp-tests (Files): Likewise.
31876         * modules/pread-tests (Files): Likewise.
31877         * modules/printf-posix-tests (Files): Likewise.
31878         * modules/pty-tests (Files): Likewise.
31879         * modules/random_r-tests (Files): Likewise.
31880         * modules/rawmemchr-tests (Files): Likewise.
31881         * modules/readlink-tests (Files): Likewise.
31882         * modules/remove-tests (Files): Likewise.
31883         * modules/rename-tests (Files): Likewise.
31884         * modules/renameat-tests (Files): Likewise.
31885         * modules/rmdir-tests (Files): Likewise.
31886         * modules/round-tests (Files): Likewise.
31887         * modules/roundf-tests (Files): Likewise.
31888         * modules/roundl-tests (Files): Likewise.
31889         * modules/select-tests (Files): Likewise.
31890         * modules/setenv-tests (Files): Likewise.
31891         * modules/sigaction-tests (Files): Likewise.
31892         * modules/sleep-tests (Files): Likewise.
31893         * modules/snprintf-posix-tests (Files): Likewise.
31894         * modules/snprintf-tests (Files): Likewise.
31895         * modules/sprintf-posix-tests (Files): Likewise.
31896         * modules/stat-tests (Files): Likewise.
31897         * modules/strcasestr-tests (Files): Likewise.
31898         * modules/strchrnul-tests (Files): Likewise.
31899         * modules/strerror-tests (Files): Likewise.
31900         * modules/strsignal-tests (Files): Likewise.
31901         * modules/strstr-tests (Files): Likewise.
31902         * modules/strtod-tests (Files): Likewise.
31903         * modules/strverscmp-tests (Files): Likewise.
31904         * modules/symlink-tests (Files): Likewise.
31905         * modules/symlinkat-tests (Files): Likewise.
31906         * modules/times-tests (Files): Likewise.
31907         * modules/trunc-tests (Files): Likewise.
31908         * modules/truncf-tests (Files): Likewise.
31909         * modules/truncl-tests (Files): Likewise.
31910         * modules/tsearch-tests (Files): Likewise.
31911         * modules/uname-tests (Files): Likewise.
31912         * modules/unlink-tests (Files): Likewise.
31913         * modules/unsetenv-tests (Files): Likewise.
31914         * modules/usleep-tests (Files): Likewise.
31915         * modules/utimensat-tests (Files): Likewise.
31916         * modules/vasprintf-tests (Files): Likewise.
31917         * modules/vdprintf-posix-tests (Files): Likewise.
31918         * modules/vfprintf-posix-tests (Files): Likewise.
31919         * modules/vprintf-posix-tests (Files): Likewise.
31920         * modules/vsnprintf-posix-tests (Files): Likewise.
31921         * modules/vsnprintf-tests (Files): Likewise.
31922         * modules/vsprintf-posix-tests (Files): Likewise.
31923         * modules/wcrtomb-tests (Files): Likewise.
31924         * modules/wcsnrtombs-tests (Files): Likewise.
31925         * modules/wcsrtombs-tests (Files): Likewise.
31926         * modules/wcwidth-tests (Files): Likewise.
31927         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31928         * tests/test-isinf.c (isinf): Likewise.
31929         * tests/test-isnan.c (isnan): Likewise.
31930         * tests/test-signbit.c (signbit): Likewise.
31931         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31932         declaration, either as macro or with correct signature.
31933         (select): Ensure function under test is declared with correct
31934         signature in correct header.
31935         * tests/test-atexit.c (atexit): Likewise.
31936         * tests/test-btowc.c (btowc): Likewise.
31937         * tests/test-canonicalize-lgpl.c (realpath)
31938         (canonicalize_file_name): Likewise.
31939         * tests/test-ceilf1.c (ceilf): Likewise.
31940         * tests/test-ceill.c (ceill): Likewise.
31941         * tests/test-chown.c (chown): Likewise.
31942         * tests/test-dprintf-posix.c (dprintf): Likewise.
31943         * tests/test-dup2.c (dup2): Likewise.
31944         * tests/test-dup3.c (dup3): Likewise.
31945         * tests/test-duplocale.c (duplocale): Likewise.
31946         * tests/test-fchdir.c (fchdir): Likewise.
31947         * tests/test-fchownat.c (fchownat): Likewise.
31948         * tests/test-fcntl.c (fcntl): Likewise.
31949         * tests/test-fdopendir.c (fdopendir): Likewise.
31950         * tests/test-fflush.c (fflush): Likewise.
31951         * tests/test-flock.c (flock): Likewise.
31952         * tests/test-floorf1.c (floorf): Likewise.
31953         * tests/test-floorl.c (floorl): Likewise.
31954         * tests/test-fnmatch.c (fnmatch): Likewise.
31955         * tests/test-fopen.c (fopen): Likewise.
31956         * tests/test-fprintf-posix.c (fprintf): Likewise.
31957         * tests/test-freopen.c (freopen): Likewise.
31958         * tests/test-frexp.c (frexp): Likewise.
31959         * tests/test-frexpl.c (frexpl): Likewise.
31960         * tests/test-fseek.c (fseek): Likewise.
31961         * tests/test-fseeko.c (fseeko): Likewise.
31962         * tests/test-fstatat.c (fstatat): Likewise.
31963         * tests/test-fsync.c (fsync): Likewise.
31964         * tests/test-ftell.c (ftell): Likewise.
31965         * tests/test-ftello.c (ftello): Likewise.
31966         * tests/test-futimens.c (futimens): Likewise.
31967         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31968         (gai_strerror): Likewise.
31969         * tests/test-getcwd.c (getcwd): Likewise.
31970         * tests/test-getdelim.c (getdelim): Likewise.
31971         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31972         * tests/test-getgroups.c (getgroups): Likewise.
31973         * tests/test-gethostname.c (gethostname): Likewise.
31974         * tests/test-getline.c (getline): Likewise.
31975         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31976         Likewise.
31977         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31978         * tests/test-glob.c (glob, globfree): Likewise.
31979         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31980         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31981         * tests/test-inet_pton.c (inet_pton): Likewise.
31982         * tests/test-isblank.c (isblank): Likewise.
31983         * tests/test-lchown.c (lchown): Likewise.
31984         * tests/test-ldexpl.c (ldexpl): Likewise.
31985         * tests/test-link.c (link): Likewise.
31986         * tests/test-linkat.c (linkat): Likewise.
31987         * tests/test-lseek.c (lseek): Likewise.
31988         * tests/test-lstat.c (lstat): Likewise.
31989         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31990         * tests/test-mbsinit.c (mbsinit): Likewise.
31991         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31992         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31993         * tests/test-memchr.c (memchr): Likewise.
31994         * tests/test-memcmp.c (memcmp): Likewise.
31995         * tests/test-memmem.c (memmem): Likewise.
31996         * tests/test-memrchr.c (memrchr): Likewise.
31997         * tests/test-mkdir.c (mkdir): Likewise.
31998         * tests/test-mkdirat.c (mkdirat): Likewise.
31999         * tests/test-mkfifo.c (mkfifo): Likewise.
32000         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32001         * tests/test-mknod.c (mknod): Likewise.
32002         * tests/test-nanosleep.c (nanosleep): Likewise.
32003         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32004         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32005         Likewise.
32006         * tests/test-open.c (open): Likewise.
32007         * tests/test-openat.c (openat): Likewise.
32008         * tests/test-perror.c (perror): Likewise.
32009         * tests/test-pipe2.c (pipe2): Likewise.
32010         * tests/test-poll.c (poll): Likewise.
32011         * tests/test-popen.c (popen, pclose): Likewise.
32012         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32013         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32014         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32015         (posix_spawn_file_actions_destroy)
32016         (posix_spawn_file_actions_addclose)
32017         (posix_spawn_file_actions_addopen)
32018         (posix_spawn_file_actions_adddup2): Likewise.
32019         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32020         * tests/test-pread.c (pread): Likewise.
32021         * tests/test-printf-posix.c (printf): Likewise.
32022         * tests/test-pty.c (openpty, forkpty): Likewise.
32023         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32024         (random_r): Likewise.
32025         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32026         * tests/test-readlink.c (readlink): Likewise.
32027         * tests/test-remove.c (remove): Likewise.
32028         * tests/test-rename.c (rename): Likewise.
32029         * tests/test-renameat.c (renameat): Likewise.
32030         * tests/test-rmdir.c (rmdir): Likewise.
32031         * tests/test-round1.c (round): Likewise.
32032         * tests/test-roundf1.c (roundf): Likewise.
32033         * tests/test-roundl.c (roundl): Likewise.
32034         * tests/test-setenv.c (setenv): Likewise.
32035         * tests/test-sigaction.c (sigaction): Likewise.
32036         * tests/test-sleep.c (sleep): Likewise.
32037         * tests/test-snprintf.c (snprintf): Likewise.
32038         * tests/test-sprintf-posix.c (sprintf): Likewise.
32039         * tests/test-stat.c (stat): Likewise.
32040         * tests/test-stpncpy.c (stpncpy): Likewise.
32041         * tests/test-strcasestr.c (strcasestr): Likewise.
32042         * tests/test-strchrnul.c (strchrnul): Likewise.
32043         * tests/test-strerror.c (strerror): Likewise.
32044         * tests/test-strsignal.c (strsignal): Likewise.
32045         * tests/test-strstr.c (strstr): Likewise.
32046         * tests/test-strtod.c (strtod): Likewise.
32047         * tests/test-strverscmp.c (strverscmp): Likewise.
32048         * tests/test-symlink.c (symlink): Likewise.
32049         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32050         * tests/test-times.c (times): Likewise.
32051         * tests/test-trunc1.c (trunc): Likewise.
32052         * tests/test-truncf1.c (truncf): Likewise.
32053         * tests/test-truncl.c (truncl): Likewise.
32054         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32055         Likewise.
32056         * tests/test-uname.c (uname): Likewise.
32057         * tests/test-unlink.c (unlink): Likewise.
32058         * tests/test-unlinkat.c (unlinkat): Likewise.
32059         * tests/test-unsetenv.c (unsetenv): Likewise.
32060         * tests/test-usleep.c (usleep): Likewise.
32061         * tests/test-utimensat.c (utimensat): Likewise.
32062         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32063         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32064         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32065         * tests/test-vprintf-posix.c (vprintf): Likewise.
32066         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32067         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32068         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32069         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32070         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32071         * tests/test-wcwidth.c (wcwidth): Likewise.
32072
32073         build: pull in conditional headers during GNULIB_POSIXCHECK
32074         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32075         definitions from any conditionally-included headers.
32076         * lib/stdlib.in.h (includes): Likewise.
32077         * lib/unistd.in.h (includes): Likewise.
32078
32079 2009-12-24  Bruno Haible  <bruno@clisp.org>
32080
32081         * tests/test-argv-iter.c: Include header file being tested immediately
32082         after config.h.
32083         * tests/test-base64.c: Likewise.
32084         * tests/test-flock.c: Likewise.
32085         * tests/test-fsync.c: Likewise.
32086         * tests/test-getdate.c: Likewise.
32087         * tests/test-getndelim2.c: Likewise.
32088         * tests/test-isfinite.c: Likewise.
32089         * tests/test-isinf.c: Likewise.
32090         * tests/test-strerror.c: Likewise.
32091         * tests/test-strsignal.c: Likewise.
32092
32093 2009-12-23  Eric Blake  <ebb9@byu.net>
32094
32095         unistd: work around cygwin bug
32096         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32097         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32098         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32099
32100 2009-12-23  Bruno Haible  <bruno@clisp.org>
32101
32102         localename: More tests.
32103         * tests/test-localename.c (SIZEOF): New macro.
32104         (categories): New variable.
32105         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32106         test_locale_name_default): Add test w.r.t. thread locale.
32107         (test_locale_name_thread): New function.
32108         (main): Invoke it.
32109
32110         localename: Make aware of thread locale.
32111         * lib/localename.h (gl_locale_name_thread): New declaration.
32112         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32113         behaviour with respect to thread locale.
32114         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32115         <langinfo.h>, glthread/lock.h.
32116         (SIZE_BITS): New macro.
32117         (string_hash): New function.
32118         (struct hash_node): New type.
32119         (HASH_TABLE_SIZE): New macro.
32120         (struniq_hash_table, struniq_lock): New variables.
32121         (struniq): New function.
32122         (gl_locale_name_thread): New function.
32123         (gl_locale_name): Invoke it.
32124         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32125         * modules/localename (Depends-on): Add lock.
32126         Reported by Mike Gran <spk121@yahoo.com>.
32127
32128 2009-12-23  Eric Blake  <ebb9@byu.net>
32129
32130         va-args: new module
32131         * modules/va-args: New file.
32132         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32133         * MODULES.html.sh (Core language properties): Mention it.
32134
32135         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32136         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32137         named alias for __attribute__((__unused__)).
32138         * lib/chown.c: Update client.
32139         * lib/fchmodat.c: Likewise.
32140         * lib/fts.c: Likewise.
32141         * lib/getdate.y: Likewise.
32142         * lib/getgroups.c: Likewise.
32143         * lib/getopt.c: Likewise.
32144         * lib/getugroups.c: Likewise.
32145         * lib/mkdir.c: Likewise.
32146         * lib/mkfifo.c: Likewise.
32147         * lib/mkfifoat.c: Likewise.
32148         * lib/mknod.c: Likewise.
32149         * lib/mknodat.c: Likewise.
32150         * lib/readlink.c: Likewise.
32151         * lib/se-context.in.h: Likewise.
32152         * lib/se-selinux.in.h: Likewise.
32153         * lib/sockets.c: Likewise.
32154         * lib/symlink.c: Likewise.
32155         * lib/symlinkat.c: Likewise.
32156         * lib/unicodeio.c: Likewise.
32157         * lib/unistr.h: Likewise.
32158         * tests/test-areadlink.c: Likewise.
32159         * tests/test-areadlinkat.c: Likewise.
32160         * tests/test-filenamecat.c: Likewise.
32161         * tests/test-fseeko.c: Likewise.
32162         * tests/test-ftello.c: Likewise.
32163         * tests/test-getdate.c: Likewise.
32164         * tests/test-getgroups.c: Likewise.
32165         * tests/test-gethostname.c: Likewise.
32166         * tests/test-quotearg.c: Likewise.
32167         * tests/test-version-etc.c: Likewise.
32168         * tests/test-xalloc-die.c: Likewise.
32169         * tests/test-xfprintf-posix.c: Likewise.
32170         * tests/test-xprintf-posix.c: Likewise.
32171         * tests/test-xvasprintf.c: Likewise.
32172
32173         tests: avoid compiler warnings
32174         * tests/test-fcntl.c (main): Delete unused parameters.
32175         * tests/test-freopen-safer.c (main): Likewise.
32176         * tests/test-xalloc-die.c (main): Mark unused parameters.
32177         * tests/test-fseeko.c (main): Likewise.
32178         * tests/test-ftello.c (main): Likewise.
32179         * tests/test-nanosleep.c (main): Avoid declaration warning.
32180         * tests/test-sleep.c (main): Likewise.
32181         * tests/test-unsetenv.c (main): Silence warning about string
32182         literal.
32183         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32184
32185 2009-12-23  Bruno Haible  <bruno@clisp.org>
32186
32187         * tests/test-localename.c (test_locale_name): New function, extracted
32188         from main. Also test mixed situations.
32189         (test_locale_name_posix, test_locale_name_environ,
32190         test_locale_name_default): New functions.
32191         (main): Invoke them all.
32192         * modules/localename-tests (configure.ac): Test for newlocale.
32193
32194 2009-12-23  Bruno Haible  <bruno@clisp.org>
32195
32196         unistd: Ensure getcwd gets declared before being overridden.
32197         * lib/unistd.in.h: Conditionally include <io.h>.
32198
32199 2009-12-22  Bruno Haible  <bruno@clisp.org>
32200
32201         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32202         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32203         (gl_WCHAR_H): Invoke it.
32204         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32205         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32206         Reported by Karl Berry <karl@freefriends.org>.
32207
32208 2009-12-22  Eric Blake  <ebb9@byu.net>
32209
32210         math, unistd: avoid redundant includes
32211         * lib/math.in.h (isnan): No need to re-include <math.h>.
32212         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32213
32214         getsubopt: work around cygwin bug
32215         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32216         avoid conflicting with system getsubopt.
32217         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32218         bug.
32219
32220         getopt: synchronize from glibc
32221         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32222         parameter order.  Adjust all callers.
32223         (_getopt_internal_r, main): Adjust quoting in error messages.
32224         Drop considerations for outdated POSIX 1003.2 error message.
32225         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32226         callers.
32227         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32228
32229         test-getopt: test stderr behavior
32230         * modules/getopt-posix-tests (Depends-on): Add dup2.
32231         * tests/test-getopt.c (ASSERT): Avoid stderr.
32232         (main): Move stderr to a temporary file.
32233         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32234         Instead, add parameter to inform caller if output occurred.
32235         (test_getopt): Adjust all existing tests to expect silence, and
32236         add new tests of leading ":".
32237         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32238         glibc shortcomings with leading "-:" or "+:" in optstring.
32239         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32240         Likewise.
32241         * doc/posix-functions/getopt.texi (getopt): Likewise.
32242
32243         test-getopt: enhance test
32244         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32245         supports optind=0.
32246         * tests/test-getopt.c (OPTIND_MIN): Move...
32247         * tests/test-getopt.h (OPTIND_MIN): ...here.
32248         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32249         Require that optind=0 works, since modern BSD supports it in
32250         addition to optreset, and since coreutils expects it.
32251         (test_getopt_long_only): New test.
32252         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32253         glibc shortcomings with 'W;', and enforcement of optind=0.
32254         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32255         Likewise.
32256
32257 2009-12-21  Bruno Haible  <bruno@clisp.org>
32258
32259         localename: Improvements for MacOS X and Cygwin.
32260         * lib/localename.h (gl_locale_name_environ): New declaration.
32261         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32262         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32263         (gl_locale_name_posix): Invoke it.
32264         (gl_locale_name_default): Add comments. Use Windows native API also on
32265         Cygwin.
32266
32267 2009-12-21  Bruno Haible  <bruno@clisp.org>
32268
32269         Update list of Win32 locale ids.
32270         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32271         (LANG_SAMI): Renamed from LANG_SAAMI.
32272         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32273         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32274         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32275         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32276         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32277         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32278         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32279         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32280         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32281         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32282         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32283         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32284         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32285         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32286         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32287         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32288         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32289         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32290         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32291         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32292         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32293         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32294         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32295         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32296         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32297         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32298         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32299         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32300         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32301         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32302         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32303         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32304         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32305         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32306         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32307         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32308         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32309         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32310         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32311         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32312         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32313         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32314         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32315         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32316         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32317         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32318         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32319         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32320         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32321         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32322         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32323         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32324         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32325         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32326         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32327         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32328         Add more languages and countries for Sami, Sorbian. Add more countries
32329         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32330         for Pashto. Change country for Syriac, Tswana.
32331
32332 2009-12-21  Eric Blake  <ebb9@byu.net>
32333
32334         test-utimens: avoid spurious failure
32335         * tests/test-chown.h (nap): Factor...
32336         * tests/nap.h: ...into new file.
32337         * tests/test-lchown.h (nap): Avoid duplication.
32338         * tests/test-utimens-common.h (nap): Use shared implementation,
32339         necessary on file systems with 1-second resolution.
32340         * modules/chown-tests (Files): Include new file.
32341         * modules/fdutimensat-tests (Files): Likewise.
32342         * modules/futimens-tests (Files): Likewise.
32343         * modules/lchown-tests (Files): Likewise.
32344         * modules/openat-tests (Files): Likewise.
32345         * modules/utimens-tests (Files): Likewise.
32346         * modules/utimensat-tests (Files): Likewise.
32347
32348 2009-12-19  Eric Blake  <ebb9@byu.net>
32349
32350         futimens, utimensat: work around Linux bug
32351         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32352         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32353         * lib/utimensat.c (rpl_utimensat): Work around it.
32354         * lib/futimens.c (rpl_futimens): Adjust comment.
32355
32356         utimens: work around Linux ctime bug
32357         * lib/utimens.c (detect_ctime_bug): New helper function.
32358         (update_timespec): Differentiate between workaround needed for
32359         this bug vs. what is needed for systems that lack utimensat.
32360         (fdutimens, lutimens): Work around bug.
32361
32362         utimens: check for ctime update
32363         * tests/test-utimens-common.h (check_ctime): Define.
32364         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32365         * tests/test-futimens.h (test_futimens): Likewise.
32366         * tests/test-lutimens.h (test_lutimens): Likewise.
32367         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32368         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32369
32370 2009-12-19  Bruno Haible  <bruno@clisp.org>
32371
32372         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32373         * tests/test-dprintf-posix2.sh: New file.
32374         * tests/test-dprintf-posix2.c: New file.
32375         * modules/dprintf-posix-tests (Files): Add them.
32376         (configure.ac): Check for getrlimit and setrlimit.
32377         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32378
32379 2009-12-19  Bruno Haible  <bruno@clisp.org>
32380
32381         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32382         * tests/test-fprintf-posix3.sh: New file.
32383         * tests/test-fprintf-posix3.c: New file.
32384         * modules/fprintf-posix-tests (Files): Add them.
32385         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32386
32387 2009-12-19  Eric Blake  <ebb9@byu.net>
32388
32389         dirfd: fix prototype
32390         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32391         * lib/dirfd.c (dirfd): Likewise.
32392
32393         canonicalize: reduce memory usage
32394         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32395         allocation to size.
32396         Reported by Solar Designer <solar@openwall.com>.
32397
32398 2009-12-19  Bruno Haible  <bruno@clisp.org>
32399
32400         New module attribute 'Applicability'.
32401         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32402         * gnulib-tool: New option --extract-applicability.
32403         (func_usage): Document it.
32404         (sed_extract_prog): Recognize it.
32405         (func_get_applicability): New function.
32406         (func_import): Generalize handling of 'link-warning' module.
32407         * modules/link-warning (Applicability): New section.
32408         * modules/arg-nonnull (Applicability): New section.
32409         Repoted by Simon Josefsson <simon@josefsson.org>.
32410
32411 2009-12-19  Bruno Haible  <bruno@clisp.org>
32412
32413         fflush: tweak
32414         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32415         * lib/fseeko.c (rpl_fseeko): Likewise.
32416
32417 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32418
32419         * lib/gl_list.h: Fix typo in comment.
32420
32421 2009-12-16  Eric Blake  <ebb9@byu.net>
32422
32423         fcntl: use to simplify other modules
32424         * modules/cloexec (Depends-on): Add fcntl.
32425         * modules/fchdir (Depends-on): Likewise.
32426         * modules/fd-safer-flag (Depends-on): Likewise.
32427         * modules/unistd-safer (Depends-on): Likewise.
32428         * modules/dup3 (configure.ac): Set module indicator.
32429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32430         missing.
32431         * lib/fchdir.c (_gl_register_dup): Fix comment.
32432         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32433         * lib/dup-safer.c (dup_safer): Likewise.
32434         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32435         * lib/dup3.c (dup3): Likewise.
32436         * tests/test-fchdir.c (main): Enhance test.
32437         Fixes a dup_cloexec bug reported by Ondřej Vašík.
32438
32439         fcntl: port portions of fcntl to mingw
32440         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32441         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32442         replacement for mingw.
32443         * modules/fcntl (Description): Update.
32444         (Depends-on): Add dup2.
32445         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32446         * modules/fcntl-h (Makefile.am): Substitute it.
32447         * lib/fcntl.in.h (fcntl): Update declaration.
32448         (F_DUPFD, F_GETFD): New macros, when needed.
32449         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32450         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32451         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32452         we now guarantee.
32453
32454         fcntl: work around cygwin bug in F_DUPFD
32455         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32456         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32457         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32458         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32459         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32460
32461         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32462         * modules/fcntl (Files): List new files.
32463         (configure.ac): Run a test.
32464         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32465         * lib/fcntl.c (rpl_fcntl): Likewise.
32466         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32467         (gl_FCNTL_H): Always replace fcntl.h.
32468         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32469         * lib/fcntl.in.h (fcntl): Declare replacement.
32470         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32471         needed, plus a witness.
32472         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32473         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32474         * tests/test-fcntl.c: New file.
32475         * modules/fcntl-tests: Likewise.
32476
32477         binary-io: avoid potential compilation warning
32478         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32479         directives.
32480
32481         fflush: avoid compilation error on NetBSD
32482         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32483         between off_t and fpos_t, since the latter is sometimes a struct.
32484         * lib/fseeko.c (rpl_fseeko): Likewise.
32485         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32486
32487 2009-12-15  Eric Blake  <ebb9@byu.net>
32488
32489         fcntl-h, stdio, sys_ioctl: fix declarations
32490         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32491         function must not take arguments.
32492         * lib/sys_ioctl.in.h (ioctl): Likewise.
32493         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32494         (open): Add a link warning.
32495
32496 2009-12-15  Jim Meyering  <meyering@redhat.com>
32497
32498         areadlink, areadlink-with-size: relax license to LGPLv2+
32499         * modules/areadlink (License): Relax to LGPLv2+.
32500         * modules/areadlink-with-size (License): Likewise.
32501
32502 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32503             Bruno Haible  <bruno@clisp.org>
32504
32505         *printf: Fix memory leak.
32506         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32507         * lib/vfprintf.c (vfprintf): Likewise.
32508         * lib/dprintf.c (dprintf): Likewise.
32509         * lib/vdprintf.c (vdprintf): Likewise.
32510
32511 2009-12-14  Eric Blake  <ebb9@byu.net>
32512
32513         accept4: adjust module dependencies
32514         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32515
32516         utimens: one more try at avoiding compiler warning
32517         * lib/utimens.c (lutimens): Lower scope of result.
32518
32519 2009-12-13  Bruno Haible  <bruno@clisp.org>
32520
32521         Move the malloc checking from module 'list' to new module 'xlist'.
32522         * modules/xlist: New file.
32523         * lib/gl_xlist.h: New file.
32524         * lib/gl_xlist.c: New file.
32525         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32526         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32527         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32528         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32529         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32530         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32531         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32532         gl_sortedlist_nx_add): New declarations.
32533         (struct gl_list_implementation): Rename and change methods accordingly.
32534         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32535         (gl_list_nx_create): Renamed from gl_list_create.
32536         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32537         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32538         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32539         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32540         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32541         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32542         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32543         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32544         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32545         gl_list_create_empty.
32546         (gl_list_nx_create): Renamed from gl_list_create.
32547         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32548         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32549         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32550         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32551         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32552         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32553         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32554         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32555         * lib/gl_array_list.c: Don't include xalloc.h.
32556         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32557         NULL upon out-of-memory.
32558         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32559         out-of-memory.
32560         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32561         Change return type to 'int'.
32562         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32563         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32564         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32565         upon out-of-memory.
32566         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32567         upon out-of-memory.
32568         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32569         upon out-of-memory.
32570         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32571         upon out-of-memory.
32572         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32573         out-of-memory.
32574         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32575         Update.
32576         (gl_array_list_implementation): Update.
32577         * lib/gl_carray_list.c: Don't include xalloc.h.
32578         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32579         Return NULL upon out-of-memory.
32580         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32581         out-of-memory.
32582         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32583         Change return type to 'int'.
32584         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32585         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32586         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32587         upon out-of-memory.
32588         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32589         upon out-of-memory.
32590         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32591         out-of-memory.
32592         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32593         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32594         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32595         Update.
32596         (gl_carray_list_implementation): Update.
32597         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32598         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32599         gl_linked_create_empty. Return NULL upon out-of-memory.
32600         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32601         out-of-memory.
32602         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32603         Change return type to 'int'. Return -1 upon out-of-memory.
32604         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32605         out-of-memory.
32606         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32607         upon out-of-memory.
32608         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32609         upon out-of-memory.
32610         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32611         NULL upon out-of-memory.
32612         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32613         upon out-of-memory.
32614         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32615         out-of-memory.
32616         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32617         Update.
32618         * lib/gl_linked_list.c: Don't include xalloc.h.
32619         (gl_linked_list_implementation): Update.
32620         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32621         (add_to_bucket): Change return type to 'int'.
32622         (gl_linkedhash_list_implementation): Update.
32623         * lib/gl_anytree_list1.h (free_subtree): New function.
32624         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32625         gl_tree_create_empty. Return NULL upon out-of-memory.
32626         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32627         Change return type to 'int'. Return -1 upon out-of-memory.
32628         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32629         out-of-memory.
32630         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32631         (gl_tree_remove_node): New function, moved here from
32632         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32633         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32634         Update.
32635         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32636         malloc, not xmalloc. Return NULL upon out-of-memory.
32637         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32638         out-of-memory.
32639         (gl_tree_remove_node_from_tree): New function, extracted from
32640         gl_tree_remove_node.
32641         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32642         upon out-of-memory.
32643         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32644         out-of-memory.
32645         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32646         upon out-of-memory.
32647         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32648         upon out-of-memory.
32649         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32650         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32651         not xmalloc. Return NULL upon out-of-memory.
32652         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32653         out-of-memory.
32654         (gl_tree_remove_node_from_tree): New function, extracted from
32655         gl_tree_remove_node.
32656         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32657         upon out-of-memory.
32658         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32659         out-of-memory.
32660         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32661         upon out-of-memory.
32662         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32663         upon out-of-memory.
32664         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32665         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32666         gl_anytree_list1.h before gl_anyavltree_list2.h.
32667         (gl_avltree_list_implementation): Update.
32668         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32669         gl_anytree_list1.h before gl_anyavltree_list2.h.
32670         (gl_rbtree_list_implementation): Update.
32671         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32672         Change return type to 'int'. Return -1 upon out-of-memory. Use
32673         __builtin_expect.
32674         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32675         (gl_avltreehash_list_implementation): Update.
32676         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32677         (gl_rbtreehash_list_implementation): Update.
32678         * modules/array-list (Depends-on): Remove xalloc.
32679         * modules/carray-list (Depends-on): Likewise.
32680         * modules/linked-list (Depends-on): Likewise.
32681         * modules/linkedhash-list (Depends-on): Likewise.
32682         * modules/avltree-list (Depends-on): Likewise.
32683         * modules/rbtree-list (Depends-on): Likewise.
32684         * modules/avltreehash-list (Depends-on): Likewise.
32685         * modules/rbtreehash-list (Depends-on): Likewise.
32686
32687         * modules/xsublist: New file.
32688         * lib/gl_xsublist.h: New file.
32689         * lib/gl_xsublist.c: New file.
32690         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32691         (gl_sublist_nx_create): New declaration.
32692         * lib/gl_sublist.c: Don't include xalloc.h.
32693         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32694         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32695         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32696         Change return type to 'int'. Return -1 upon out-of-memory.
32697         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32698         upon out-of-memory.
32699         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32700         NULL upon out-of-memory.
32701         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32702         upon out-of-memory.
32703         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32704         NULL upon out-of-memory.
32705         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32706         NULL upon out-of-memory.
32707         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32708         upon out-of-memory.
32709         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32710         (gl_sublist_list_implementation): Update.
32711         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32712         upon out-of-memory.
32713         * modules/sublist (Depends-on): Remove xalloc.
32714
32715         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32716         * tests/test-carray_list.c: Likewise.
32717         * tests/test-linked_list.c: Likewise.
32718         * tests/test-linkedhash_list.c: Likewise.
32719         * tests/test-avltree_list.c: Likewise.
32720         * tests/test-rbtree_list.c: Likewise.
32721         * tests/test-avltreehash_list.c: Likewise.
32722         * tests/test-rbtreehash_list.c: Likewise.
32723         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32724         * modules/carray-list-tests (Makefile.am): Likewise.
32725         * modules/linked-list-tests (Makefile.am): Likewise.
32726         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32727         * modules/avltree-list-tests (Makefile.am): Likewise.
32728         * modules/rbtree-list-tests (Makefile.am): Likewise.
32729         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32730         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32731
32732         * NEWS: Mention the changes.
32733
32734         * lib/clean-temp.c: Include gl_xlist.h.
32735         * modules/clean-temp (Depends-on): Add xlist.
32736
32737         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32738         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32739
32740         * tests/test-array_oset.c: Include gl_xlist.h.
32741         * modules/array-oset-tests (Depends-on): Add xlist.
32742
32743         Reported by José E. Marchesi <jemarch@gnu.org>.
32744
32745 2009-12-13  Bruno Haible  <bruno@clisp.org>
32746
32747         Move the malloc checking from module 'oset' to new module 'xoset'.
32748         * modules/xoset: New file.
32749         * lib/gl_xoset.h: New file.
32750         * lib/gl_xoset.c: New file.
32751         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32752         declarations.
32753         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32754         (struct gl_oset_implementation): Rename and change methods accordingly.
32755         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32756         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32757         'int'. Mark as __warn_unused_result__.
32758         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32759         gl_oset_create_empty.
32760         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32761         'int'.
32762         * lib/gl_array_oset.c: Don't include xalloc.h.
32763         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32764         malloc, not xmalloc.
32765         (grow): Change return type to 'int'. Don't call xalloc_die.
32766         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32767         to 'int'.
32768         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32769         'int'.
32770         (gl_array_oset_implementation): Update.
32771         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32772         gl_tree_create_empty.
32773         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32774         'int'.
32775         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32776         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32777         xmalloc.
32778         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32779         not xmalloc.
32780         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32781         xmalloc.
32782         (gl_avltree_oset_implementation): Update.
32783         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32784         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32785         xmalloc.
32786         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32787         not xmalloc.
32788         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32789         xmalloc.
32790         (gl_rbtree_oset_implementation): Update.
32791         * modules/array-oset (Depends-on): Remove xalloc.
32792         * modules/avltree-oset (Depends-on): Likewise.
32793         * modules/rbtree-oset (Depends-on): Likewise.
32794         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32795         * tests/test-avltree_oset.c: Likewise.
32796         * tests/test-rbtree_oset.c: Likewise.
32797         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32798         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32799         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32800         * NEWS: Mention the change.
32801
32802 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32803
32804         maint.mk: allow a project to override release-prep commands
32805         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32806         commands into a new rule.
32807         (release-prep): New rule.
32808         (release-prep-hook): New overridable variable.
32809
32810 2009-12-13  Bruno Haible  <bruno@clisp.org>
32811
32812         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32813
32814 2009-12-13  Jim Meyering  <meyering@redhat.com>
32815
32816         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32817         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32818
32819 2009-12-12  Bruno Haible  <bruno@clisp.org>
32820
32821         duplocale: Tweak.
32822         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32823
32824 2009-12-12  Karl Berry  <karl@gnu.org>
32825
32826         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32827
32828 2009-12-12  Bruno Haible  <bruno@clisp.org>
32829
32830         * m4/po.m4: Undo incorrect untabification.
32831
32832 2009-12-12  Bruno Haible  <bruno@clisp.org>
32833
32834         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32835         * modules/c-strtod (Depends-on): Add locale.
32836         * modules/c-strtold (Depends-on): Likewise.
32837
32838 2009-12-12  Bruno Haible  <bruno@clisp.org>
32839
32840         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32841
32842 2009-12-11  Eric Blake  <ebb9@byu.net>
32843
32844         setenv: relax requirement in light of POSIX ruling
32845         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32846         not NULL.
32847         * tests/test-setenv.c (main): Relax test.
32848         * tests/test-unsetenv.c (main): Likewise.
32849         * doc/posix-functions/setenv.texi (setenv): Document this.
32850         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32851
32852 2009-12-11  Bruno Haible  <bruno@clisp.org>
32853
32854         New module 'fd-safer-flag'.
32855         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32856         * lib/dup-safer.c (dup_safer_flag): Remove function.
32857         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32858         * lib/fd-safer.c (fd_safer_flag): Remove function.
32859         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32860         * modules/cloexec (configure.ac): Drop indicator macro.
32861         * modules/fd-safer-flag: New file.
32862         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32863         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32864         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32865
32866 2009-12-11  Bruno Haible  <bruno@clisp.org>
32867
32868         Tests for module 'nl_langinfo'.
32869         * modules/nl_langinfo-tests: New file.
32870         * tests/test-nl_langinfo.sh: New file.
32871         * tests/test-nl_langinfo.c: New file.
32872
32873         New module 'nl_langinfo'.
32874         * lib/nl_langinfo.c: New file.
32875         * m4/nl_langinfo.m4: New file.
32876         * modules/nl_langinfo: New file.
32877         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32878
32879 2009-12-11  Bruno Haible  <bruno@clisp.org>
32880
32881         Tests for module 'langinfo'.
32882         * modules/langinfo-tests: New file.
32883         * tests/test-langinfo.c: New file.
32884
32885         New module 'langinfo'.
32886         * lib/langinfo.in.h: New file.
32887         * m4/langinfo_h.m4: New file.
32888         * modules/langinfo: New file.
32889         * doc/posix-headers/langinfo.texi: Mention the new module.
32890
32891 2009-12-11  Bruno Haible  <bruno@clisp.org>
32892
32893         * lib/config.charset: Untabify.
32894
32895 2009-12-11  Bruno Haible  <bruno@clisp.org>
32896
32897         * modules/unistd-safer (configure.ac): Drop indicator macro.
32898
32899 2009-12-11  Bruno Haible  <bruno@clisp.org>
32900
32901         Move pipe2-safer code to its own file.
32902         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32903         * lib/pipe-safer.c (pipe2_safer): Remove function.
32904         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32905         (Makefile.am): Add it to lib_SOURCES.
32906
32907 2009-12-10  Bruno Haible  <bruno@clisp.org>
32908
32909         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32910
32911 2009-12-10  Bruno Haible  <bruno@clisp.org>
32912
32913         Declare which arguments expect non-NULL values, for GCC and clang.
32914         * build-aux/arg-nonnull.h: New file.
32915         * modules/arg-nonnull: New file.
32916         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32917         (inet_ntop, inet_pton): Use it.
32918         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32919         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32920         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32921         (open, openat): Use it.
32922         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32923         (fnmatch): Use it.
32924         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32925         (getopt, getopt_long, getopt_long_only): Use it.
32926         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32927         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32928         Use it.
32929         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32930         (iconv_open): Use it.
32931         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32932         (strtoimax, strtoumax): Use it.
32933         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32934         (duplocale): Use it.
32935         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32936         (frexp, frexpl): Use it.
32937         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32938         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32939         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32940         (tsearch, tfind, tdelete, twalk): Use it.
32941         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32942         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32943         sigpending): Use it.
32944         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32945         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32946         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32947         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32948         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32949         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32950         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32951         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32952         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32953         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32954         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32955         Use it.
32956         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32957         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32958         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32959         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32960         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32961         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32962         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32963         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32964         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32965         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32966         strtoull, unsetenv): Use it.
32967         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32968         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32969         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32970         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32971         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32972         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32973         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32974         (strcasecmp, strncasecmp): Use it.
32975         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32976         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32977         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32978         rpl_setsockopt): Use it.
32979         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32980         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32981         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32982         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32983         (gettimeofday): Use it.
32984         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32985         (times): Use it.
32986         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32987         (uname): Use it.
32988         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32989         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32990         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32991         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32992         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32993         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32994         unlinkat, write): Use it.
32995         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32996         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32997         * lib/argv-iter.h: Include arg-nonnull.h.
32998         (_ATTRIBUTE_NONNULL_): Remove macro.
32999         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33000         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33001         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33002         optimization.
33003         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33004         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33005         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33006         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33007         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33008         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33009         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33010         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33011         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33012         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33013         * modules/dirent (Depends-on): Add arg-nonnull.
33014         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33015         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33016         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33017         * modules/fnmatch (Depends-on): Add arg-nonnull.
33018         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33019         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33020         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33021         * modules/glob (Depends-on): Add arg-nonnull.
33022         (Makefile.am): Insert arg-nonnull.h into glob.h.
33023         * modules/iconv_open (Depends-on): Add arg-nonnull.
33024         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33025         * modules/inttypes (Depends-on): Add arg-nonnull.
33026         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33027         * modules/locale (Depends-on): Add arg-nonnull.
33028         (Makefile.am): Insert arg-nonnull.h into locale.h.
33029         * modules/math (Depends-on): Add arg-nonnull.
33030         (Makefile.am): Insert arg-nonnull.h into math.h.
33031         * modules/netdb (Depends-on): Add arg-nonnull.
33032         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33033         * modules/search (Depends-on): Add arg-nonnull.
33034         (Makefile.am): Insert arg-nonnull.h into search.h.
33035         * modules/signal (Depends-on): Add arg-nonnull.
33036         (Makefile.am): Insert arg-nonnull.h into signal.h.
33037         * modules/spawn (Depends-on): Add arg-nonnull.
33038         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33039         * modules/stdio (Depends-on): Add arg-nonnull.
33040         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33041         * modules/stdlib (Depends-on): Add arg-nonnull.
33042         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33043         * modules/string (Depends-on): Add arg-nonnull.
33044         (Makefile.am): Insert arg-nonnull.h into string.h.
33045         * modules/strings (Depends-on): Add arg-nonnull.
33046         (Makefile.am): Insert arg-nonnull.h into strings.h.
33047         * modules/sys_socket (Depends-on): Add arg-nonnull.
33048         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33049         * modules/sys_stat (Depends-on): Add arg-nonnull.
33050         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33051         * modules/sys_time (Depends-on): Add arg-nonnull.
33052         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33053         * modules/sys_times (Depends-on): Add arg-nonnull.
33054         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33055         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33056         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33057         * modules/time (Depends-on): Add arg-nonnull.
33058         (Makefile.am): Insert arg-nonnull.h into time.h.
33059         * modules/unistd (Depends-on): Add arg-nonnull.
33060         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33061         * modules/wchar (Depends-on): Add arg-nonnull.
33062         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33063         * modules/argv-iter (Depends-on): Add arg-nonnull.
33064         * tests/test-canonicalize.c (null_ptr): New function.
33065         (main): Use it.
33066         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33067         (main): Use it.
33068         * tests/test-memmem.c (null_ptr): New function.
33069         (main): Use it.
33070         Reported by Jim Meyering.
33071
33072 2009-12-10  Bruno Haible  <bruno@clisp.org>
33073
33074         Use spaces for indentation, not tabs.
33075         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33076         * m4/*.m4: Untabify.
33077         * build-aux/*.h: Untabify.
33078         * tests/**/*.[hc]: Untabify.
33079         * README: New section "Indent with spaces, not TABs", based on
33080         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33081         * NEWS: Mention the change.
33082
33083 2009-12-10  Bruno Haible  <bruno@clisp.org>
33084
33085         pty test: Fix link error.
33086         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33087         test_pty_LDADD.
33088
33089 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33090
33091         * modules/pty: New file.
33092         * modules/pty-tests: New file.
33093         * m4/pty.m4: New file.
33094         * tests/test-pty.c: New file.
33095         * doc/glibc-headers/pty.texi: Modified.
33096         * doc/glibc-functions/forkpty.texi: Modified.
33097         * doc/glibc-functions/openpty.texi: Modified.
33098
33099 2009-12-10  Bruno Haible  <bruno@clisp.org>
33100
33101         Avoid syntax error in C++ mode.
33102         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33103
33104 2009-12-10  Bruno Haible  <bruno@clisp.org>
33105
33106         Use sed with option -e.
33107         * gnulib-tool (func_version, func_emit_copyright_notice,
33108         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33109         option -e to sed.
33110         * modules/link-warning (Makefile.am): Likewise.
33111
33112 2009-12-10  Jim Meyering  <meyering@redhat.com>
33113
33114         mgetgroups: do not write bytes beyond end of malloc'd buffer
33115         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33116         username, we call getgroups with a one-element-shorter buffer,
33117         but still told it the length was original, max_n_groups.
33118
33119 2009-12-09  Eric Blake  <ebb9@byu.net>
33120
33121         cloexec: relax license
33122         * modules/cloexec (Maintainer): Add myself.
33123         (License): Use LGPL, not GPL.
33124
33125         link-warning: optimize generation
33126         * modules/link-warning (Makefile.am): Reduce process usage.
33127
33128 2009-12-09  Bruno Haible  <bruno@clisp.org>
33129
33130         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33131         workaround was added on 2009-11-17.
33132
33133 2009-12-09  Jim Meyering  <meyering@redhat.com>
33134             Bruno Haible  <bruno@clisp.org>
33135
33136         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33137         * modules/link-warning (Makefile.am): Make the comment-removing sed
33138         command more robust in the face of bootstrap-prepended comment lines.
33139
33140 2009-12-09  Bruno Haible  <bruno@clisp.org>
33141
33142         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33143         most one group.
33144
33145 2009-12-09  Simon Josefsson <simon@josefsson.org>
33146             Bruno Haible  <bruno@clisp.org>
33147
33148         * build-aux/link-warning.h: Add copyright notice.
33149         * modules/link-warning (Makefile.am): Generate link-warning.h from
33150         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33151         * NEWS: Mention change in link-warning module.
33152         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33153         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33154         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33155         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33156         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33157         * modules/math (Makefile.am): Add dependency to math.h.
33158         * modules/search (Makefile.am): Add dependency to search.h.
33159         * modules/signal (Makefile.am): Add dependency to signal.h.
33160         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33161         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33162         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33163         * modules/string (Makefile.am): Add dependency to string.h.
33164         * modules/strings (Makefile.am): Add dependency to strings.h.
33165         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33166         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33167         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33168         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33169         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33170         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33171         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33172         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33173         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33174
33175 2009-12-09  Bruno Haible  <bruno@clisp.org>
33176
33177         fchdir: Optimize away rpl_fstat when possible.
33178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33179         REPLACE_OPEN_DIRECTORY.
33180         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33181
33182 2009-12-09  Bruno Haible  <bruno@clisp.org>
33183
33184         * lib/fchdir.c: Update comment.
33185
33186 2009-12-09  Bruno Haible  <bruno@clisp.org>
33187
33188         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33189
33190 2009-12-08  Eric Blake  <ebb9@byu.net>
33191
33192         fchdir: avoid memory leak on re-registration.
33193         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33194
33195 2009-12-08  Jim Meyering  <meyering@redhat.com>
33196
33197         init.sh: avoid Solaris 10 /bin/sh portability problem
33198         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33199         sourced script:
33200           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33201           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33202           bar
33203         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33204         and two tests used that idiom.
33205         * tests/init.sh: Update suggested usage comments.
33206         (path_prepend_): New function, to be used in place
33207         of the --src-path=DIR option.
33208         (setup_): Move PATH-prepending code into path_prepend_.
33209         * tests/test-pread.sh: Adapt to new usage.
33210         * tests/test-xalloc-die.sh: Likewise.
33211
33212 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33213
33214         * doc/gnulib.texi (Glibc pty.h): Add.
33215         * doc/glibc-functions/forkpty.texi: Add.
33216         * doc/glibc-functions/openpty.texi: Add.
33217         Suggested by Bruno Haible.
33218
33219 2009-12-08  Eric Blake  <ebb9@byu.net>
33220
33221         fchdir: fix logic bugs
33222         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33223         * tests/test-fchdir.c (main): Enhance test.
33224         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33225         is in use.
33226
33227         dup2: fix logic bugs
33228         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33229         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33230         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33231         exists.
33232         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33233
33234 2009-12-07  Eric Blake  <ebb9@byu.net>
33235
33236         unlink: fix m4 detection
33237         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33238
33239         unistd-safer: add unit test
33240         * modules/unistd-safer-tests: New file.
33241         * tests/test-dup-safer.c: Likewise.
33242         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33243         * tests/test-dup2.c (setmode): Likewise.
33244         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33245
33246         cloexec: preserve text vs. binary across dup_cloexec
33247         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33248         mode.
33249         * modules/dup2-tests (Depends-on): Add binary-io.
33250         * modules/cloexec-tests (Depends-on): Likewise.
33251         * tests/test-dup2.c (setmode, is_mode): New helpers.
33252         (main): Add tests that translation mode is preserved.
33253         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33254         Reported by Bruno Haible.
33255
33256         mgetgroups: reduce duplicate listings
33257         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33258         resulting array.
33259         * tests/test-chown.h (test_chown): Simplify client.
33260         * tests/test-lchown.h (test_lchown): Likewise.
33261
33262 2009-12-06  Bruno Haible  <bruno@clisp.org>
33263
33264         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33265         value.
33266
33267 2009-12-06  Bruno Haible  <bruno@clisp.org>
33268
33269         * lib/progname.c: Include stdio.h, stdlib.h.
33270         (set_program_name): Reject a NULL argument.
33271
33272 2009-12-05  Eric Blake  <ebb9@byu.net>
33273
33274         pipe2-safer: new module
33275         * modules/pipe2-safer: New file.
33276         * lib/unistd-safer.h (pipe2_safer): New prototype.
33277         * lib/unistd--.h (pipe2): New wrapper.
33278         * lib/pipe-safer.c (pipe2_safer): New function.
33279         * modules/pipe (Depends-on): Add pipe2-safer.
33280         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33281
33282         stdlib-safer: preserve cloexec flag for mkostemp[s]
33283         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33284         fd_safer_flag.
33285
33286         unistd-safer: allow preservation of cloexec status via flag
33287         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33288         prototypes.
33289         * lib/dup-safer.c (dup_safer_flag): New function.
33290         * lib/fd-safer.c (fd_safer_flag): Likewise.
33291         * modules/cloexec (configure.ac): Set witness.
33292
33293         test-dup2: enhance test
33294         * modules/dup2-tests (Depends-on): Add cloexec.
33295         * tests/test-dup2.c (main): Enhance test.
33296
33297         cloexec: add dup_cloexec
33298         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33299         header and comments.
33300         * lib/cloexec.c (set_cloexec_flag): Add comments.
33301         (dup_cloexec): New function, with mingw implementation borrowed
33302         from...
33303         * lib/w32spawn.h (dup_noinherit): ...here.
33304         * modules/execute (Depends-on): Add cloexec.
33305         * modules/pipe (Depends-on): Likewise.
33306         * modules/cloexec (Depends-on): Add dup2.
33307         * modules/cloexec-tests (Files): New file.
33308         * tests/test-cloexec.c: Likewise.
33309
33310         test-xalloc-die: fix test for mingw
33311         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33312         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33313         directory and .exe suffix off argv[0] output.
33314
33315         test-fseeko: fix test for mingw
33316         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33317         than undefining fseek, so test will pass on mingw.
33318
33319 2009-12-05  Bruno Haible  <bruno@clisp.org>
33320
33321         * lib/progname.h (set_program_name): Clarify specification.
33322         * lib/progname.c (set_program_name): Likewise.
33323         Reported by Jim Meyering.
33324
33325 2009-12-05  Jim Meyering  <meyering@redhat.com>
33326
33327         maint.mk: backslash-escape parens in default regexp
33328         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33329         backslash-escape the literal parentheses.
33330
33331         maint.mk: news-date-check: use grep -E
33332         * top/maint.mk (today): Define a Make variable, not a...
33333         (news-date-check): ...shell variable.
33334         (news-date-regexp): Use the Make variable.
33335         Use grep's -E option.  Change the failing diagnostic to mention
33336         the variable, $(news-date-regexp).
33337
33338 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33339
33340         maintainer-makefile: allow customization of NEWS entry format
33341         * top/maint.mk (news-date-regexp): New overridable variable.
33342         (news-date-check): Use it.
33343
33344 2009-12-04  Eric Blake  <ebb9@byu.net>
33345
33346         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33347         * lib/mgetgroups.h (xgetgroups): New prototype.
33348         * lib/mgetgroups.c (xgetgroups): New wrapper.
33349         (mgetgroups): Handle ENOSYS.
33350         * modules/mgetgroups (Depends-on): Add realloc.
33351         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33352
33353         mgetgroups: avoid argument promotion issues with -1
33354         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33355         for invalid gid_t.
33356         * tests/test-chown.h (getegid, test_chown): Likewise.
33357         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33358
33359 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33360
33361         exclude: Fix header file problems.
33362         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33363
33364 2009-12-01  Jim Meyering  <meyering@redhat.com>
33365
33366         fts: fts_open: do not let an empty string cause immediate failure
33367         This is required in support of GNU rm, for which the command
33368         "rm A '' B" must process and remove both A and B, in spite of
33369         the empty string argument.
33370         * lib/fts.c (fts_open): Do not let the presence of an empty string
33371         cause fts_open to fail immediately.  Most fts-using tools must be
33372         able to process all arguments, in order, and can be expected to
33373         diagnose such arguments themselves.
33374
33375 2009-11-30  Eric Blake  <ebb9@byu.net>
33376
33377         utimens: fix compilation error
33378         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33379         Declare variable at right scope.
33380
33381 2009-11-29  Jim Meyering  <meyering@redhat.com>
33382
33383         bootstrap: handle perl-5.11's changed --version output
33384         * build-aux/bootstrap (get_version): Handle perl separately,
33385         since perl-5.11's --version output is different.
33386
33387 2009-11-28  Jim Meyering  <meyering@redhat.com>
33388
33389         userspec: depend on the inttostr module, too
33390         * modules/userspec (Depends-on): Add inttostr.
33391
33392         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33393         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33394         number of MAXUID when it evaluates to (uid_t) -1.
33395         Likewise for group ID.  Reported by Matt McCutchen in
33396         <http://savannah.gnu.org/bugs/?28113>
33397
33398         userspec: reformat to use spaces, not TABs
33399         * lib/userspec.c: Expand TABs to spaces.
33400         Add Emacs' "indent-tabs-mode: nil" hint.
33401
33402 2009-11-27  Eric Blake  <ebb9@byu.net>
33403
33404         getopt-gnu: flush out another BSD bug
33405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33406         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33407         flush out BSD bug.
33408         * tests/test-getopt.h (test_getopt): End lists with NULL.
33409         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33410         (test_getopt_long_posix): Enhance test.
33411         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33412         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33413         getopt-gnu.
33414         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33415         Likewise.
33416
33417 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33418
33419         * modules/idpriv-droptemp-tests (Notice): Fix text.
33420
33421 2009-11-27  Jim Meyering  <meyering@redhat.com>
33422
33423         test-xalloc-die: avoid spurious failure due to libtool argv difference
33424         In a libtool-enabled project, this test would fail due to a difference
33425         in the emitted program name, e.g.,
33426         -test-xalloc-die: memory exhausted
33427         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33428         Use program to avoid that.
33429         * modules/xalloc-die-tests (Depends-on): Add progname.
33430         * tests/test-xalloc-die.c: Include progname.h".
33431         (program_name): Remove decl.
33432         (main): Call set_program_name.
33433         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33434
33435 2009-11-26  Richard Jones  <rjones@redhat.com>
33436
33437         w32sock: leave win32 error in place.
33438         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33439
33440 2009-11-26  Eric Blake  <ebb9@byu.net>
33441
33442         init.sh: suggest to use skip_ and fail_ functions in comments
33443         * tests/init.sh: Add a sentence.
33444
33445 2009-11-25  Bruno Haible  <bruno@clisp.org>
33446
33447         init.sh: add documentation in comments
33448         * tests/init.sh: Add some developer and user documentation.
33449
33450 2009-11-26  Jim Meyering  <meyering@redhat.com>
33451
33452         init.sh: accommodate even those who specify bogus srcdir manually
33453         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33454         configure-time tests to be sanitized, so that there is no need to
33455         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33456         (with no double quotes) suffices.  However, since tests may be
33457         invoked manually, and since you may explicitly set srcdir to the
33458         name of a directory containing spaces, do quote its uses here.
33459         * tests/test-pread.sh: Likewise.
33460         Suggested by Bruno Haible.
33461
33462         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33463         * tests/test-pread.sh: Write no data into the pipe, because
33464         test-pread actually reads none.  This avoids a diagnostic,
33465         "bash: echo: write error: Broken pipe", that arises in the unusual
33466         event something is ignoring SIGPIPE, and might be interpreted
33467         as some sort of failure.  Reported by Bruno Haible.
33468
33469 2009-11-25  Jim Meyering  <meyering@redhat.com>
33470
33471         test-pread: cover failure with ESPIPE and EINVAL
33472         * tests/test-pread.c (main): Test for failure, too.
33473         * tests/test-pread.sh: Invoke with stdin on a pipe.
33474         Suggested by Eric Blake.
33475
33476         pread: improvement and fix
33477         * modules/pread (Depends-on): Depend on lseek, for portability to
33478         e.g., mingw.  Suggested by Eric Blake.
33479         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33480
33481         unistd.in.h: correct declaration of pread
33482         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33483         Reported by Richard W.M. Jones.
33484
33485         test-pread.sh: distribute the test script
33486         * modules/pread-tests (Files): Include test-pread.sh.
33487
33488         test-pread.sh: clean up
33489         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33490         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33491         That is unnecessary, since it's always ".".
33492         Suggestion from Eric Blake.
33493
33494         test-pread.sh: make executable
33495         * tests/test-pread.sh: Set executable bit.
33496         Reported by Eric Blake.
33497
33498         correct typo in test-pread.sh
33499         * tests/test-pread.sh: Add #! line.
33500
33501         test pread
33502         * tests/test-pread.c: New file.
33503         * tests/test-pread.sh: Likewise.
33504         * modules/pread-tests: Likewise.
33505
33506         pread: new module
33507         * modules/pread: New file.
33508         * lib/unistd.in.h (pread): Define/declare.
33509         * lib/pread.c (pread): New file.
33510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33511         * modules/unistd (Makefile.am): Substitute witnesses.
33512         * doc/posix-functions/pread.texi (pread): Update.
33513         * MODULES.html.sh: Add pread.
33514
33515 2009-11-25  Jim Meyering  <meyering@redhat.com>
33516
33517         tests/init.sh: new file to be used via most *.sh tests
33518         * tests/init.sh: New file.
33519
33520 2009-11-25  Eric Blake  <ebb9@byu.net>
33521
33522         utimens: work around older Linux failure with symlinks
33523         * lib/utimens.c (lutimensat_works_really): New variable.
33524         (fdutimens, lutimens): Use it to manage kernels that support
33525         nanosecond times on files, but not on symlinks.
33526         Reported by Ondřej Vašík.
33527
33528         utimes: fix configure grammar
33529         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33530
33531 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33532
33533         regex: Fix fastmap for multibyte character ranges.
33534         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33535         characters when a multibyte character range is included.
33536
33537 2009-11-22  Andy Wingo  <wingo@pobox.com>
33538
33539         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33540         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33541
33542 2009-11-24  Bruno Haible  <bruno@clisp.org>
33543
33544         doc: Most *_l functions exist in MacOS X 10.5.
33545         * doc/posix-functions/duplocale.texi: Update platforms list.
33546         * doc/posix-functions/freelocale.texi: Likewise.
33547         * doc/posix-functions/newlocale.texi: Likewise.
33548         * doc/posix-functions/uselocale.texi: Likewise.
33549         * doc/posix-functions/isalnum_l.texi: Likewise.
33550         * doc/posix-functions/isalpha_l.texi: Likewise.
33551         * doc/posix-functions/isblank_l.texi: Likewise.
33552         * doc/posix-functions/iscntrl_l.texi: Likewise.
33553         * doc/posix-functions/isdigit_l.texi: Likewise.
33554         * doc/posix-functions/isgraph_l.texi: Likewise.
33555         * doc/posix-functions/islower_l.texi: Likewise.
33556         * doc/posix-functions/isprint_l.texi: Likewise.
33557         * doc/posix-functions/ispunct_l.texi: Likewise.
33558         * doc/posix-functions/isspace_l.texi: Likewise.
33559         * doc/posix-functions/isupper_l.texi: Likewise.
33560         * doc/posix-functions/iswalnum_l.texi: Likewise.
33561         * doc/posix-functions/iswalpha_l.texi: Likewise.
33562         * doc/posix-functions/iswblank_l.texi: Likewise.
33563         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33564         * doc/posix-functions/iswctype_l.texi: Likewise.
33565         * doc/posix-functions/iswdigit_l.texi: Likewise.
33566         * doc/posix-functions/iswgraph_l.texi: Likewise.
33567         * doc/posix-functions/iswlower_l.texi: Likewise.
33568         * doc/posix-functions/iswprint_l.texi: Likewise.
33569         * doc/posix-functions/iswpunct_l.texi: Likewise.
33570         * doc/posix-functions/iswspace_l.texi: Likewise.
33571         * doc/posix-functions/iswupper_l.texi: Likewise.
33572         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33573         * doc/posix-functions/isxdigit_l.texi: Likewise.
33574         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33575         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33576         * doc/posix-functions/strcoll_l.texi: Likewise.
33577         * doc/posix-functions/strfmon_l.texi: Likewise.
33578         * doc/posix-functions/strftime_l.texi: Likewise.
33579         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33580         * doc/posix-functions/strxfrm_l.texi: Likewise.
33581         * doc/posix-functions/tolower_l.texi: Likewise.
33582         * doc/posix-functions/toupper_l.texi: Likewise.
33583         * doc/posix-functions/towctrans_l.texi: Likewise.
33584         * doc/posix-functions/towlower_l.texi: Likewise.
33585         * doc/posix-functions/towupper_l.texi: Likewise.
33586         * doc/posix-functions/wcscoll_l.texi: Likewise.
33587         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33588         * doc/posix-functions/wctrans_l.texi: Likewise.
33589         * doc/posix-functions/wctype_l.texi: Likewise.
33590         * doc/glibc-functions/strptime_l.texi: Likewise.
33591         * doc/glibc-functions/strtod_l.texi: Likewise.
33592         * doc/glibc-functions/strtof_l.texi: Likewise.
33593         * doc/glibc-functions/strtol_l.texi: Likewise.
33594         * doc/glibc-functions/strtold_l.texi: Likewise.
33595         * doc/glibc-functions/strtoll_l.texi: Likewise.
33596         * doc/glibc-functions/strtoul_l.texi: Likewise.
33597         * doc/glibc-functions/strtoull_l.texi: Likewise.
33598         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33599         * doc/glibc-functions/wcstod_l.texi: Likewise.
33600         * doc/glibc-functions/wcstof_l.texi: Likewise.
33601         * doc/glibc-functions/wcstol_l.texi: Likewise.
33602         * doc/glibc-functions/wcstold_l.texi: Likewise.
33603         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33604         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33605         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33606
33607 2009-11-24  Bruno Haible  <bruno@clisp.org>
33608
33609         duplocale: Fix logic bug.
33610         * lib/duplocale.c: Don't include <langinfo.h>.
33611         (_NL_LOCALE_NAME): Remove macro.
33612         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33613         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33614
33615 2009-11-23  Jim Meyering  <meyering@redhat.com>
33616
33617         test-update-copyright: don't hard-code /usr/bin/perl
33618         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33619         perl to print the current year.  Gilles Espinasse reported that
33620         the replaced use of perl was hard-coded as /usr/bin/perl.
33621
33622 2009-11-23  Bruno Haible  <bruno@clisp.org>
33623
33624         duplocale: Add support for glibc 2.3.x.
33625         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33626
33627 2009-11-22  Bruno Haible  <bruno@clisp.org>
33628
33629         vasnprintf: Tiny optimization.
33630         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33631         MacOS X.
33632
33633 2009-11-22  Bruno Haible  <bruno@clisp.org>
33634
33635         Tests for module 'duplocale'.
33636         * modules/duplocale-tests: New file.
33637         * tests/test-duplocale.c: New file.
33638
33639         New module 'duplocale'.
33640         * m4/duplocale.m4: New file.
33641         * lib/locale.in.h (duplocale): New declaration.
33642         * lib/duplocale.c: New file.
33643         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33644         gl_LOCALE_H_DEFAULTS): New macros.
33645         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33646         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33647         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33648         REPLACE_DUPLOCALE.
33649         * modules/duplocale: New file.
33650         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33651
33652 2009-11-22  Bruno Haible  <bruno@clisp.org>
33653
33654         * modules/locale-tests (configure.ac): Test for newlocale function.
33655         * tests/test-locale.c: When the system has extended locale functions,
33656         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33657
33658         locale: Make locale_t available when possible.
33659         * lib/locale.in.h: Include <xlocale.h> when it exists.
33660         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33661         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33662         * modules/locale (Depends-on): Add extensions.
33663         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33664         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33665
33666 2009-11-22  Bruno Haible  <bruno@clisp.org>
33667
33668         Add comments.
33669         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33670         invocation.
33671         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33672         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33673         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33674
33675 2009-11-22  Bruno Haible  <bruno@clisp.org>
33676
33677         error: account for the possibility of freopen (stdout).
33678         * lib/error.c: Include <unistd.h>.
33679         (flush_stdout): New function, extracted from error and error_at_line.
33680         Determine stdout's fd dynamically.
33681         (error, error_at_line): Invoke flush_stdout.
33682         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33683         * modules/error (Depends-on): Add unistd.
33684
33685 2009-11-22  Bruno Haible  <bruno@clisp.org>
33686
33687         diffseq: Add comment.
33688         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33689
33690 2009-11-22  Jim Meyering  <meyering@redhat.com>
33691
33692         c-stack: avoid defining an unused static function
33693         * lib/c-stack.c (find_stack_direction): Do not define this function
33694         when it will not be used.
33695
33696         diffseq: avoid spurious gcc warnings
33697         * lib/diffseq.h (IF_LINT2): Define.
33698         (compareseq): Use it to initialize two members of "part".
33699         This avoids two used-uninitialized warnings.
33700
33701 2009-11-21  Jim Meyering  <meyering@redhat.com>
33702
33703         c-stack: avoid "ignoring return value of `write'" warning
33704         * lib/c-stack.c: Include "ignore-value.h".
33705         (die): Explicitly ignore each write return value.
33706         * modules/c-stack (Depends-on): Add ignore-value.
33707
33708 2009-11-21  Bruno Haible  <bruno@clisp.org>
33709
33710         diffseq: reduce scope of variable 'best'.
33711         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33712         variable, earlier used for two different purposes.
33713
33714 2009-11-21  Jim Meyering  <meyering@redhat.com>
33715
33716         diffseq: remove useless assignment to "best"
33717         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33718         assignment.  At that point "best" is already guaranteed to be zero.
33719
33720 2009-11-20  Eric Blake  <ebb9@byu.net>
33721
33722         build: mention ftp redirector in release announcements
33723         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33724         values that used to come from cfg.mk; mention FTP redirect URL.
33725         * build-aux/announce-gen: Mention the mirror list.
33726         Suggested by Karl Berry.
33727
33728         nanosleep: improve port to mingw
33729         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33731         LIB_NANOSLEEP, but only when needed.
33732         * modules/select (Link): Document LIBSOCKET.
33733         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33734         enough.
33735
33736         nanosleep: work around cygwin bug
33737         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33738         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33739         bug.
33740         (getnow): Delete, not needed.
33741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33742         LIB_CLOCK_GETTIME.
33743         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33744         clock-time, gettime.
33745         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33746         bug.
33747         * modules/nanosleep-tests: New test.
33748         * tests/test-nanosleep.c: New file.
33749
33750         sleep: work around cygwin bug
33751         * lib/sleep.c (rpl_sleep): Work around the bug.
33752         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33753         (gl_PREREQ_SLEEP): Delete unused macro.
33754         * modules/sleep (Depends-on): Add verify.
33755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33756         * modules/unistd (Makefile.am): Substitute witness.
33757         * lib/unistd.in.h (sleep): Update prototype.
33758         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33759         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33760         * modules/sleep-tests (Depends-on): Check for alarm.
33761
33762 2009-11-20  Jim Meyering  <meyering@redhat.com>
33763
33764         maint.mk: improve sc_prohibit_magic_number_exit
33765         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33766         so it does not match uses like System.exit(1).
33767         Add comments showing how to correct all offenders.
33768
33769 2009-11-19  Eric Blake  <ebb9@byu.net>
33770
33771         xalloc-die-tests: add missing library
33772         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33773
33774         test-xvasprintf: silence compiler warnings
33775         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33776         empty string from gcc.
33777
33778 2009-11-19  Jim Meyering  <meyering@redhat.com>
33779
33780         xfreopen: new module, from coreutils
33781         * modules/xfreopen: New module.
33782         * lib/xfreopen.c: New file.
33783         * lib/xfreopen.h: New file.
33784         * MODULES.html.sh (File stream based Input/Output"): Add it.
33785
33786 2009-11-19  Eric Blake  <ebb9@byu.net>
33787
33788         manywarnings: depend on warnings
33789         * modules/manywarnings (Depends-on): Add warnings.
33790
33791         build: avoid compiler warnings
33792         * lib/select.c (rpl_select): Delete unused variable.
33793         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33794
33795 2009-11-18  Eric Blake  <ebb9@byu.net>
33796
33797         tests: avoid false negative with --with-packager
33798         * tests/test-version-etc.sh: Discard packager information.
33799         * tests/test-argp-version-etc-1.sh: Likewise.
33800         Reported by Mike Frysinger.
33801
33802         utimens: fix regression on Solaris
33803         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33804         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33805         can only change fd timestamps via futimesat.  Instead, use an
33806         additional witness macro to avoid BSD bug.
33807         Reported by Jim Meyering.
33808
33809 2009-11-17  Eric Blake  <ebb9@byu.net>
33810
33811         usleep: use it to simplify tests
33812         * modules/stat-time-tests (Depends-on): Add usleep.
33813         (configure.ac): Drop usleep check.
33814         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33815         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33816         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33817         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33818         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33819         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33820         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33821         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33822         Likewise.
33823         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33824         * tests/test-lchown.h (nap): Likewise.
33825         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33826         * tests/test-stat-time.c (nap): Likewise.
33827         * tests/test-utimens-common.h (nap): Update comments.
33828
33829         usleep: new module
33830         * modules/usleep: New file.
33831         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33832         * lib/usleep.c (usleep): Likewise.
33833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33834         * modules/unistd (Makefile.am): Substitute witnesses.
33835         * lib/unistd.in.h (usleep): Add declaration.
33836         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33837         * MODULES.html.sh (Date and time): Likewise.
33838         * modules/usleep-tests (Depends-on): New test.
33839         * tests/test-usleep.c: New file.
33840
33841         chown: work around OpenBSD bug
33842         * lib/chown.c (rpl_chown): Work around the bug.
33843         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33844         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33845         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33846         * modules/chown (Depends-on): Add stdbool.
33847         * modules/lchown (Depends-on): Likewise.
33848         * doc/posix-functions/chown.texi (chown): Document the bug.
33849         * doc/posix-functions/lchown.texi (lchown): Likewise.
33850         * tests/test-lchown.h (test_chown): Relax test.
33851
33852         mkstemp: avoid conflict with C++ keyword template
33853         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33854         * lib/mkostemp.c (mkostemp): Likewise.
33855         * lib/mkostemps.c (mkostemps): Likewise.
33856         * lib/mkstemp.c (mkstemp): Likewise.
33857         * lib/mkstemps.c (mkstemps): Likewise.
33858
33859         xalloc-die-tests: optimize
33860         * tests/test-xalloc-die.sh: Reduce number of processes.
33861
33862 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33863
33864         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33865         patch from ludo@gnu.org (Ludovic Courtès).
33866
33867 2009-11-17  Jim Meyering  <meyering@redhat.com>
33868
33869         version-etc: use proper license string
33870         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33871         * modules/version-etc-fsf: Likewise.
33872
33873 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33874
33875         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33876         printed to stdout.  Deal with EOL differences.
33877
33878 2009-11-17  Eric Blake  <ebb9@byu.net>
33879
33880         unsetenv: work around Solaris bug
33881         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33882         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33883         Reported by Jim Meyering.
33884
33885         vasnprintf: avoid compiler warnings
33886         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33887         variables.
33888         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33889
33890 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33891
33892         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33893         settings since xalloc-die is no longer the self test,
33894         xalloc-die.sh is.
33895
33896 2009-11-17  Jim Meyering  <meyering@redhat.com>
33897
33898         test-xalloc-die.sh: make the code agree with the commit log
33899         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33900         at the end, just in case you happen to have a test-xalloc-die
33901         program in some other PATH directory.
33902
33903         test-xalloc-die.sh: fix a portability bug
33904         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33905         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33906         Otherwise, argv[0] (as often seen in diagnostics) would be too
33907         system-dependent, sometimes with, and sometimes without the leading "./".
33908
33909         version-etc-fsf: relax license to LGPLv3+
33910         * modules/version-etc-fsf (License): Relax license.
33911
33912 2009-11-16  Eric Blake  <ebb9@byu.net>
33913
33914         xalloc-die-tests: avoid printing null pointer
33915         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33916         shell script.
33917         * tests/test-xalloc-die.c (program_name): Declare.
33918         * tests/test-xalloc-die.sh (tmpfiles): New file.
33919
33920         setenv, unsetenv: work around various bugs
33921         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33922         (setenv) [HAVE_SETENV]: Work around bugs.
33923         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33924         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33925         for bugs.
33926         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33927         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33929         * modules/stdlib (Makefile.am): Update substitutions.
33930         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33931         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33932         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33933         * modules/setenv-tests: New test.
33934         * modules/unsetenv-tests: Likewise.
33935         * tests/test-setenv.c: New file.
33936         * tests/test-unsetenv.c: Likewise.
33937
33938 2009-11-16  Jim Meyering  <meyering@redhat.com>
33939
33940         version-etc: relax license to LGPLv3+
33941         * modules/version-etc (License): Relax license.
33942
33943         better AC_REQUIRE expanded-before-required-warning avoidance
33944         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33945         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33946         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33947         which is no longer needed.
33948
33949 2009-11-16  Eric Blake  <ebb9@byu.net>
33950
33951         test-freading: clean up temporary file
33952         * tests/test-freading.c (main): Remove file on success, and use
33953         ASSERT more liberally.
33954         Reported by Jim Meyering.
33955
33956 2009-11-16  Jim Meyering  <meyering@redhat.com>
33957
33958         avoid new AC_REQUIRE expanded-before-required warnings
33959         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33960         merely using it.
33961         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33962         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33963
33964 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33965
33966         * tests/test-xalloc-die.c: New file.
33967         * modules/xalloc-die-tests: New file.
33968         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33969         XFAIL_TESTS so it can be appended by modules.
33970
33971 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33972
33973         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33974         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33975
33976 2009-11-14  Eric Blake  <ebb9@byu.net>
33977
33978         fnmatch: avoid compiler warning
33979         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33980         to silence compiler warning about mismatch signedness in ?:.
33981         Reported by Robert Millan.
33982
33983         intprops: add double-inclusion guard
33984         * lib/intprops.h: Allow idempotent includes.
33985         Suggested by Bruce Korb.
33986
33987         openat: detect Solaris fchownat bug
33988         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33989         penalizing glibc chownat when only lchownat is broken.
33990         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33991         trailing slash bugs.
33992         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33993         * modules/openat-tests (Files): Include more files.
33994         (Depends-on): Add mgetgroups, sleep, stat-time.
33995         (configure.ac): Add additional checks.
33996         (Makefile.am): Build new test.
33997         * tests/test-fchownat.c: New file.
33998
33999         lchown: detect Solaris and FreeBSD bug
34000         * lib/lchown.c (rpl_lchown): Work around bug.
34001         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34003         * modules/unistd (Makefile.am): Populate it.
34004         * lib/unistd.in.h (lchown): Update declaration.
34005         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34006         * modules/lchown-tests: New file.
34007         * tests/test-lchown.h (test_lchown): Likewise.
34008         * tests/test-lchown.c (main): Likewise.
34009
34010         chown: detect Solaris and FreeBSD bug
34011         * lib/chown.c (rpl_chown): Work around bug.
34012         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34013         (gl_PREREQ_CHOWN): Delete.
34014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34015         * modules/unistd (Makefile.am): Populate it.
34016         * lib/unistd.in.h (chown): Update declaration.
34017         * lib/lchown.c (chown): Update client.
34018         * modules/lchown (Depends-on): Add lstat.
34019         * doc/posix-functions/chown.texi (chown): Document the bug.
34020         * doc/posix-functions/getgroups.texi (getgroups): Document
34021         getgroups pitfall.
34022         * modules/chown-tests: New file.
34023         * tests/test-chown.h (test_chown): Likewise.
34024         * tests/test-chown.c (main): Likewise.
34025
34026 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34027
34028         gnulib-tool: correctly detect absence of m4 directories
34029         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34030
34031 2009-11-14  Jim Meyering  <meyering@redhat.com>
34032
34033         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34034         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34035
34036 2009-11-14  John W. Eaton  <jwe@gnu.org>
34037
34038         strftime.h: wrap funtion declaration in extern "C" block
34039         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34040
34041 2009-11-13  Eric Blake  <ebb9@byu.net>
34042
34043         getgroups: avoid compiler warning
34044         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34045
34046         getgroups: work around FreeBSD bug
34047         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34048         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34049         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34050         * tests/test-getgroups.c (main): Fix buffer overrun.
34051
34052         getgroups: avoid compilation failure
34053         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34054         * modules/getgroups (Depends-on): Add stdint.
34055
34056 2009-11-13  Jim Meyering  <meyering@redhat.com>
34057
34058         test-getgroups: avoid compilation failure
34059         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34060
34061 2009-11-13  Eric Blake  <ebb9@byu.net>
34062
34063         mgetgroups: new module, taken from coreutils
34064         * modules/mgetgroups: New file.
34065         * lib/mgetgroups.h: Likewise.
34066         * lib/mgetgroups.c (mgetgroups): Likewise.
34067         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34068         * MODULES.html.sh (Users and groups): Mention it.
34069
34070         getgroups: don't expose GETGROUPS_T to user
34071         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34072         an element at a time if GETGROUPS_T is wrong size.
34073         * lib/getugroups.h (getugroups): Change signature.
34074         * lib/unistd.in.h (getgroups): Likewise.
34075         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34076         signature needs fixing.
34077         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34078         AC_TYPE_GETGROUPS.
34079         * modules/group-member (Depends-on): Add getgroups.
34080         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34081         (group_member): Rely on getgroups replacement.
34082         * lib/getugroups.c (getugroups): Use gid_t.
34083         * tests/test-getgroups.c (main): Likewise.
34084         * NEWS: Mention the signature change.
34085         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34086         problem with signature.
34087         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34088         GETGROUPS_T is still useful for setgroups.
34089
34090         getgroups, getugroups: provide stubs for mingw
34091         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34092         * lib/getugroups.c (getugroups): Likewise.
34093         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34094         function.  Modernize replacement scheme.
34095         (gl_PREREQ_GETGROUPS): Delete.
34096         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34097         * modules/getgroups (configure.ac): Declare witness.
34098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34099         * modules/unistd (Depends-on): Substitute witness.
34100         * lib/unistd.in.h (getgroups): Declare replacement.
34101
34102         getgroups: avoid calling exit
34103         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34104         drop xalloc.
34105         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34106         dependencies.
34107         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34108         exiting, in the rare case of malloc failure.
34109
34110         getgroups: fix logic error
34111         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34112         has more than 20 groups.
34113         * modules/getgroups-tests: New test.
34114         * tests/test-getgroups.c: New file.
34115
34116 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34117
34118         * tests/test-base64.c: Improve.
34119
34120 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34121
34122         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34123         Blake <ebb9@byu.net>.
34124
34125 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34126
34127         * tests/test-xvasprintf.c: Add %s%s related checks.
34128
34129 2009-11-12  Eric Blake  <ebb9@byu.net>
34130
34131         version-etc: match standards.texi style
34132         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34133         and use <> only for URLs.
34134
34135 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34136
34137         fts: do not fail on a submount during traversal
34138         * lib/fts.c (fts_build): Read the stat info again after opening
34139         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34140         Original report at http://bugzilla.redhat.com/501848.
34141
34142 2009-11-12  Jim Meyering  <meyering@redhat.com>
34143
34144         bootstrap: sync from coreutils
34145         * build-aux/bootstrap (bootstrap_epilogue): New function.
34146         Use git_modules_config in one more place.  This make bootstrap's
34147         --gnulib-srcdir option more useful for testing.
34148
34149         bootstrap: generalize autoheader check
34150         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34151         AC_CONFIG_HEADERS.
34152
34153 2009-11-11  Eric Blake  <ebb9@byu.net>
34154
34155         mkfifoat: use new modules for Solaris and BSD bugs
34156         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34157         * lib/mkfifoat.c (mknodat): Split...
34158         * lib/mknodat.c (mknodat): ...into new file.
34159         * modules/mkfifoat (Files): Ship new file.
34160         (Depends-on): Add mkfifo, mknod.
34161         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34162         (Depends-on): Add symlink.
34163         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34164         redundant with test_mkfifo.h.
34165         (do_mkfifoat, do_mknodat): New helpers.
34166
34167         mknod: new module
34168         * modules/mknod: New file.
34169         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34170         * lib/mknod.c (mknod): Likewise.
34171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34172         defaults.
34173         * modules/sys_stat (Makefile.am): Substitute them.
34174         * lib/sys_stat.in.h (mknod): Declare replacement.
34175         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34176         Document it.
34177         * doc/posix-functions/mknod.texi (mknod): Likewise.
34178         * modules/mknod-tests: New test.
34179         * tests/test-mknod.c: Likewise.
34180
34181         mkfifo: new module
34182         * modules/mkfifo: New file.
34183         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34184         * lib/mkfifo.c (mkfifo): Likewise.
34185         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34186         defaults.
34187         * modules/sys_stat (Makefile.am): Substitute them.
34188         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34189         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34190         Document it.
34191         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34192         * modules/mkfifo-tests: New test.
34193         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34194         from test-mkfifoat.c.
34195         * tests/test-mkfifo.c: New file.
34196
34197         readlink: detect FreeBSD bug
34198         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34199         slash on symlink.
34200         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34201         * tests/test-readlink.h (test_readlink): Enhance test.
34202
34203         symlink: detect FreeBSD bug
34204         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34205         slash on symlink.
34206         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34207         * tests/test-symlink.h (test_symlink): Enhance test.
34208
34209 2009-11-10  Eric Blake  <ebb9@byu.net>
34210
34211         link: detect FreeBSD bug
34212         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34213         symlink.
34214         * doc/posix-functions/link.texi (link): Document the bug.
34215         * tests/test-link.h (test_link): Enhance test.
34216         * tests/test-linkat.c (main): Update caller.
34217
34218         unlink, remove: detect FreeBSD bug
34219         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34220         slash on symlink.
34221         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34222         * doc/posix-functions/remove.texi (remove): Likewise.
34223         * tests/test-unlink.h (test_unlink): Enhance test.
34224         * tests/test-remove.c (main): Likewise.
34225
34226 2009-11-09  Eric Blake  <ebb9@byu.net>
34227
34228         rename: detect FreeBSD bug
34229         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34230         slash on symlink.
34231         * modules/renameat-tests (Depends-on): Add filenamecat.
34232         * tests/test-rename.h (test_rename): Allow one more errno.
34233         * tests/test-renameat.c (main): Likewise.
34234         * doc/posix-functions/rename.texi (rename): Document the bug.
34235
34236         open: detect FreeBSD bug
34237         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34238         symlink.
34239         * doc/posix-functions/open.texi (open): Document the bug.
34240         * doc/posix-functions/utimes.texi (utimes): Likewise.
34241         * tests/test-open.h (test_open): Add parameters, and test symlink
34242         handling.
34243         * tests/test-open.c (main): Adjust caller.
34244         * tests/test-fcntl-safer.c (main): Likewise.
34245         * modules/open-tests (Depends-on): Add stdbool, symlink.
34246         * modules/fcntl-safer-tests (Depends-on): Likewise.
34247         * tests/test-openat.c (main): Add test-open tests.
34248
34249         stat: detect FreeBSD bug
34250         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34251         symlink.
34252         * doc/posix-functions/stat.texi (stat): Document the bug.
34253         * tests/test-stat.h (test_stat_func): Add argument.
34254         * tests/test-stat.c (main): Adjust caller.
34255         * tests/test-fstatat.c (main): Likewise.
34256         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34257         Reported by Jim Meyering.
34258
34259 2009-11-09  James Youngman  <jay@gnu.org>
34260
34261         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34262         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34263
34264 2009-11-08  Jim Meyering  <meyering@redhat.com>
34265
34266         utimens: remove invalid futimesat call
34267         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34268         It used the file descriptor of the target file as the DIR_FD
34269         parameter and NULL as the file name.  That caused failure with
34270         errno == EFAULT on FreeBSD-8.0-rc2
34271
34272 2009-11-07  Eric Blake  <ebb9@byu.net>
34273
34274         fflush, freadseek: use fseeko, not fseek
34275         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34276         (clear_ungetc_buffer): Avoid potential problems on large files.
34277         * lib/freadseek.c (freadseek): Likewise.
34278         * modules/freadseek (Depends-on): Add fseeko.
34279         * modules/fseek (configure.ac): Set a witness.
34280         * tests/test-fflush.c (main): Use fseeko.
34281         * tests/test-fpurge.c (fseek): Disable link warning.
34282         * tests/test-freadable.c (fseek): Likewise.
34283         * tests/test-freading.c (fseek): Likewise.
34284         * tests/test-fseeko.c (fseek): Likewise.
34285         * tests/test-ftell.c (fseek): Likewise.
34286         * tests/test-ftello.c (fseek): Likewise.
34287         * tests/test-fwritable.c (fseek): Likewise.
34288         * tests/test-fwriting.c (fseek): Likewise.
34289
34290 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34291
34292         * modules/memchr (Depends-on): Drop getpagesize dependency.
34293
34294 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34295
34296         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34297         Reported by Ludovic Courtès.
34298         * build-aux/pmccabe2html: Improve example usage.
34299         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34300
34301 2009-11-06  Jim Meyering  <meyering@redhat.com>
34302
34303         do-release-commit-and-tag: New module.
34304         Automate the release-commit and tag process.
34305         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34306         * modules/do-release-commit-and-tag: New file.
34307         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34308
34309 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34310
34311         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34312         because test-select.c uses inet_pton.
34313
34314 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34315
34316         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34317         GETADDRINFO_LIB.  Bump serial number.
34318         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34319         Suggested by Eric Blake <ebb9@byu.net>.
34320
34321 2009-11-05  Eric Blake  <ebb9@byu.net>
34322
34323         strtod: detect darwin bug
34324         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34325         Reported by Leo Davis.
34326
34327         freopen-safer: new module
34328         * modules/freopen-safer: New module.
34329         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34330         * lib/freopen-safer.c (freopen_safer): New file.
34331         * lib/stdio-safer.h (freopen_safer): New declaration.
34332         * lib/stdio--.h (freopen): New override.
34333         * MODULES.html.sh (File stream based Input/Output): Mention it.
34334         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34335         freopen-safer module.
34336         * doc/posix-functions/stderr.texi (stderr): Likewise.
34337         * doc/posix-functions/stdin.texi (stdin): Likewise.
34338         * doc/posix-functions/stdout.texi (stdout): Likewise.
34339         * modules/freopen-safer-tests: New test.
34340         * tests/test-reopen-safer.c: New file.
34341
34342 2009-11-05  Jim Meyering  <meyering@redhat.com>
34343
34344         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34345         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34346
34347 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34348
34349         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34350
34351 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34352
34353         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34354
34355 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34356
34357         Fix link error.
34358         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34359         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34360
34361 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34362
34363         * tests/test-func.c: Also test value of __func__.
34364
34365 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34366
34367         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34368         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34369
34370 2009-11-05  Bruno Haible  <bruno@clisp.org>
34371
34372         Fix link error.
34373         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34374         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34375         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34376
34377 2009-11-05  Bruno Haible  <bruno@clisp.org>
34378
34379         Tests for module 'inet_pton'.
34380         * modules/inet_pton-tests: New file.
34381         * tests/test-inet_pton.c: New file.
34382
34383 2009-11-05  Bruno Haible  <bruno@clisp.org>
34384
34385         Tests for module 'inet_ntop'.
34386         * modules/inet_ntop-tests: New file.
34387         * tests/test-inet_ntop.c: New file.
34388
34389 2009-11-04  Eric Blake  <ebb9@byu.net>
34390
34391         stdlib-safer: wrap all mkstemp variants
34392         * modules/mkostemp (configure.ac): Set witness.
34393         * modules/mkostemps (configure.ac): Likewise.
34394         * modules/mkstemps (configure.ac): Likewise.
34395         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34396         (mkstemps_safer): Wrap more functions.
34397         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34398         wrapping.
34399         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34400         (mkstemps_safer): Implement the wrappers.
34401
34402         mkstemps, mkostemps: new modules
34403         * modules/mkostemps: New module.
34404         * modules/mkstemps: Likewise.
34405         * lib/mkostemps.c (mkostemps): New file.
34406         * lib/mkstemps.c (mkstemps): Likewise.
34407         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34408         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34410         * modules/stdlib (Makefile.am): Substitute them.
34411         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34412         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34413         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34414         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34415         * MODULES.html.sh (File system functions): Mention them.
34416
34417         tempname: resync from glibc
34418         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34419         same values for __GT_FILE as glibc.  Abort even when assertions
34420         are disabled.
34421         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34422         match its value otherwise.  Allow idempotent inclusion.
34423         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34424         * lib/mkostemp.c (mkostemp): Likewise.
34425         * lib/mkstemp.c (mkstemp): Likewise.
34426         * lib/tmpfile.c (tmpfile): Likewise.
34427         * NEWS: Document this.
34428
34429         utimens: fix use of futimens on older Linux
34430         * lib/utimens.c (fdutimens): Use updated, rather than original,
34431         timespec to avoid bug in older Linux kernel.
34432         Reported by Simon Josefsson.
34433
34434 2009-11-04  Bruno Haible  <bruno@clisp.org>
34435
34436         Make num_processors more flexible and consistent.
34437         * lib/nproc.h (enum nproc_query): New type.
34438         (num_processors): Add a 'query' argument.
34439         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34440         (num_processors): Add a 'query' argument. Test the value of the
34441         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34442         mingw, count the number of CPUs available for the current process.
34443         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34444         Check for sched_getaffinity and sched_getaffinity_np.
34445         * modules/nproc (Depends-on): Add c-ctype, extensions.
34446         * NEWS: Mention the change.
34447
34448 2009-11-03  Bruno Haible  <bruno@clisp.org>
34449
34450         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34451
34452 2009-11-03  Jim Meyering  <meyering@redhat.com>
34453
34454         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34455         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34456         if it is defined.
34457
34458 2009-11-02  Eric Blake  <ebb9@byu.net>
34459
34460         mktime, timegm: share common declaration
34461         * lib/mktime-internal.h: New file.
34462         * lib/mktime.c: Use it rather than open-coding a declaration.
34463         * lib/timegm.c: Likewise.
34464         * modules/mktime (Files): Ship it.
34465         * modules/timegm (Files): Likewise.
34466         Suggested by Bruno Haible.
34467
34468         test-update-copyright: update test to match script changes
34469         * tests/test-update-copyright.sh: Avoid hard-coding perl
34470         location.  Don't update *.bak created by earlier runs.
34471
34472 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34473             Simon Josefsson  <simon@josefsson.org>
34474             Bruno Haible  <bruno@clisp.org>
34475
34476         Fix link error on Solaris 8.
34477         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34478         also in libnsl. Define also INET_PTON_LIB.
34479         * modules/inet_pton (Link): New section.
34480
34481 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34482             Bruno Haible  <bruno@clisp.org>
34483
34484         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34485         * modules/inet_ntop (Link): New section.
34486         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34487
34488 2009-11-02  Eric Blake  <ebb9@byu.net>
34489
34490         maint: avoid compiler warnings in m4 macros
34491         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34492         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34493
34494 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34495
34496         * m4/pmccabe2html.m4: Remove file.
34497         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34498         function.  Change maintainer.
34499         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34500         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34501         Courtès).
34502
34503 2009-10-31  Eric Blake  <ebb9@byu.net>
34504
34505         fseeko: fix m4 regression
34506         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34507         regression from 2009-10-27.
34508         Reported by Ralf Wildenhues.
34509
34510 2009-10-31  Jim Meyering  <meyering@redhat.com>
34511
34512         inttostr: aesthetics and improved (compile-time) safety
34513         Define inttype_is_signed rather than inttype_is_unsigned,
34514         since the sole use is via "#if inttype_is_signed".
34515         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34516         inttype_is_unsigned.
34517         * lib/offtostr.c (inttype_is_signed): Likewise.
34518         * lib/uinttostr.c (inttype_is_signed): Likewise.
34519         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34520         * lib/inttostr.c (inttostr): Use verify to cross-check the
34521         inttype_is_signed value and the signedness of the actual type.
34522         * modules/inttostr (Depends-on): Add verify.
34523
34524 2009-10-30  Eric Blake  <ebb9@byu.net>
34525
34526         build: avoid compiler warnings
34527         * lib/fchmodat.c (lchmod): Mark unused variables.
34528         * lib/getopt.c (_getopt_initialize): Likewise.
34529         * lib/mktime.c (__mktime_internal): Provide prototype.
34530         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34531         older gcc that do not understand #pragma GCC diagnostic.
34532         * lib/uinttostr.c (inttype_is_unsigned): Define.
34533         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34534
34535 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34536
34537         stat: fix compilation on AIX
34538         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34539         only see struct stat64.
34540
34541 2009-10-30  Eric Blake  <ebb9@byu.net>
34542
34543         exclude: make more robust
34544         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34545         rather than masking a coding bug.
34546         Suggested by Bruno Haible.
34547
34548 2009-10-30  Jim Meyering  <meyering@redhat.com>
34549
34550         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34551         Rather than putting #!/usr/bin/perl on the first line,
34552         start with a variant of what's recommended by "man perlrun" that
34553         invokes the first "perl" program from your shell's search path.
34554         * build-aux/gitlog-to-changelog: Replace #!... as above.
34555         Add a "Local Variables" perl mode setting.
34556         Prompted by a patch from Ludovic Courtès.
34557         Improved by Eric Blake.
34558         * build-aux/useless-if-before-free: Likewise.
34559         * build-aux/announce-gen: Likewise.
34560         * build-aux/update-copyright: Likewise.
34561
34562 2009-10-29  Eric Blake  <ebb9@byu.net>
34563
34564         filenamecat-lgpl: adjust clients
34565         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34566         filenamecat.
34567         * modules/renameat (Depends-on): Likewise.
34568
34569         filenamecat: split into filenamecat-lgpl
34570         * modules/filenamecat-lgpl: New module.
34571         * modules/filenamecat (Files): Move library-safe files into
34572         filenamecat-lgpl.
34573         (Depends-on): Add filenamecat-lgpl.
34574         (configure.ac): Declare witness.
34575         * lib/filenamecat.h (file_name_concat): Only declare when using
34576         GPL module.
34577         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34578         Move...
34579         * lib/filenamecat-lgpl.c: ...into new file.
34580         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34581         (gl_FILE_NAME_CONCAT): Use it.
34582         * MODULES.html.sh (File system functions): Mention new module.
34583
34584         argp: avoid memory leak
34585         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34586         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34587         base_name, since the latter malloc()s and can call exit().
34588         Leak introduced 2006-07-03.
34589
34590         dirname-lgpl: adjust clients that don't need full dirname
34591         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34592         * modules/filenamecat (Depends-on): Likewise.
34593         * modules/linkat (Depends-on): Likewise.
34594         * modules/mkancesdirs (Depends-on): Likewise.
34595         * modules/mkdir (Depends-on): Likewise.
34596         * modules/openat (Depends-on): Likewise.
34597         * modules/savewd (Depends-on): Likewise.
34598         * modules/rename (Depends-on): Likewise.
34599         (License): Relax license.
34600         * modules/mkdir-tests (Depends-on): Drop progname.
34601         (Makefile.am): Delete unneeded LDADD.
34602         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34603
34604         dirname: split into dirname-lgpl
34605         * modules/dirname-lgpl: New module.
34606         * modules/dirname (Files): Move library-safe files into
34607         dirname-lgpl.
34608         (Depends-on): Add dirname-lgpl.
34609         (configure.ac): Declare witness.
34610         * modules/double-slash-root (License): Relax license.
34611         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34612         module.
34613         * lib/dirname.c (dir_len, mdir_name): Move...
34614         * lib/dirname-lgpl.c: ...into new file.
34615         * lib/basename.c (last_component, base_len): Move...
34616         * lib/basename-lgpl.c: ...into new file.
34617         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34618         (gl_DIRNAME): Use it.
34619         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34620         Mention new module.
34621         * modules/dirname-tests (Depends-on): Add progname.
34622         * tests/test-dirname.c (program_name): Delete.
34623
34624         mkdir: make safe for libraries
34625         * modules/mkdir (Depends-on): Drop xalloc.
34626         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34627         exit.
34628
34629         tests: avoid some compiler warnings
34630         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34631         literals.
34632         * tests/test-memchr.c (main): Avoid type mismatch.
34633         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34634         * tests/test-base64.c (main): Likewise.
34635         * tests/test-getdelim.c (main): Likewise.
34636         * tests/test-gethostname.c (main): Likewise.
34637         * tests/test-getline.c (main): Likewise.
34638         * tests/test-netinet_in.c (main): Likewise.
34639         * tests/test-select.c (open_server_socket, main): Likewise.
34640         * tests/test-select-stdin.c (main): Likewise.
34641         * tests/test-sockets.c (main): Likewise.
34642         * tests/test-strsignal.c (main): Likewise.
34643         * tests/test-sys_select.c (main): Likewise.
34644         * tests/test-sys_socket.c (main): Likewise.
34645         * tests/test-u64.c (main): Likewise.
34646         * tests/test-xfprintf-posix.c (main): Likewise.
34647         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34648
34649         sockets: avoid compiler warning
34650         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34651
34652         maint: detect usage(1) and other suspicious exits
34653         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34654
34655 2009-10-29  Jim Meyering  <meyering@redhat.com>
34656
34657         timespec: long-to-int truncation could make timespec_cmp malfunction
34658         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34659         a multiple of 2^32 nanoseconds as no difference.
34660
34661 2009-10-28  Jim Meyering  <meyering@redhat.com>
34662
34663         fprintftime: wrap macro code argument in "do {...} while(0)"
34664         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34665         cpy macro must be a statement that can be followed by a semicolon.
34666         Now that the else clause contains a comment and is hence longer
34667         than one line, I require curly braces.  That in turn requires
34668         that we wrap this code block in the standard do...while(0).
34669
34670         fprintftime: remove stray semicolon from previous change
34671         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34672
34673         fprintftime: avoid a warning about ignored fwrite return value
34674         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34675         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34676         that is unsafe.
34677         * modules/fprintftime (Depends-on): Add ignore-value.
34678
34679         exclude: avoid an unwarranted warning
34680         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34681
34682 2009-10-27  Eric Blake  <ebb9@byu.net>
34683
34684         fseek: avoid compilation failure when fflush is replaced
34685         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34686         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34687         module is in use.
34688         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34689         module is not in use; since REPLACE_FSEEK worked otherwise.
34690         (GNULIB_FTELLO): Likewise for ftell.
34691         Reported by Ian Beckwith and others.
34692
34693 2009-10-27  Bruno Haible  <bruno@clisp.org>
34694
34695         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34696         Reported by Jim Meyering.
34697
34698 2009-10-27  Jim Meyering  <jim@meyering.net>
34699             Bruno Haible  <bruno@clisp.org>
34700
34701         Avoid warning despite dropping the return value of fwrite.
34702         * lib/unicodeio.c: Include ignore-value.h.
34703         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34704         * modules/unicodeio (Depends-on): Add ignore-value.
34705
34706 2009-10-26  Eric Blake  <ebb9@byu.net>
34707
34708         areadlinkat: fix fallback path
34709         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34710         pointer and zero.
34711
34712 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34713
34714         Use a better IO block size for modern systems
34715         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34716         * lib/md2.c: Likewise.
34717         * lib/md4.c: Likewise.
34718         * lib/md5.c: Likewise.
34719         * lib/sha1.c: Likewise.
34720         * lib/sha256.c: Likewise.
34721         * lib/sha512.c: Likewise.
34722
34723 2009-10-22  Eric Blake  <ebb9@byu.net>
34724
34725         tests: avoid several compiler warnings
34726         * tests/test-getcwd.c (main): Avoid buffer underflow.
34727         * tests/test-getdate.c (main): String literals are not safe with
34728         putenv, so use setenv.  Declare unused argument.
34729         * modules/getdate-tests (Depends-on): Add setenv.
34730         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34731         problems with string literals in char *.
34732         * tests/test-hash.c (main): Avoid shadowing declaration.
34733         (insert_new): Treat string literals as char const *.
34734         * tests/test-getopt.h (test_getopt): Likewise.
34735         (getopt_loop): Alter types to minimize casting elsewhere.
34736         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34737         (test_getopt_long_posix): Likewise.
34738         (do_getopt_long): Add wrapper to minimize casting.
34739         * tests/test-atexit.c (clear_temp_file): Use void.
34740         * tests/test-areadlink-with-size.c (main): Declare unused
34741         arguments.
34742         * tests/test-areadlink.c (main): Likewise.
34743         * tests/test-areadlinkat-with-size.c (main): Likewise.
34744         * tests/test-areadlinkat.c (main): Likewise.
34745         * tests/test-canonicalize-lgpl.c (main): Likewise.
34746         * tests/test-canonicalize.c (main): Likewise.
34747         * tests/test-dirent-safer.c (main): Likewise.
34748         * tests/test-dirname.c (main): Likewise.
34749         * tests/test-dup2.c (main): Likewise.
34750         * tests/test-fchdir.c (main): Likewise.
34751         * tests/test-fcntl-h.c (main): Likewise.
34752         * tests/test-fcntl-safer.c (main): Likewise.
34753         * tests/test-fdopendir.c (main): Likewise.
34754         * tests/test-fdutimensat.c (main): Likewise.
34755         * tests/test-fflush.c (main): Likewise.
34756         * tests/test-filenamecat.c (main): Likewise.
34757         * tests/test-filevercmp.c (main): Likewise.
34758         * tests/test-fopen-safer.c (main): Likewise.
34759         * tests/test-fopen.c (main): Likewise.
34760         * tests/test-fpending.c (main): Likewise.
34761         * tests/test-fpurge.c (main): Likewise.
34762         * tests/test-freading.c (main): Likewise.
34763         * tests/test-fstatat.c (main): Likewise.
34764         * tests/test-fsync.c (main): Likewise.
34765         * tests/test-futimens.c (main): Likewise.
34766         * tests/test-getndelim2.c (main): Likewise.
34767         * tests/test-gettimeofday.c (main): Likewise.
34768         * tests/test-getopt.c (main): Likewise.
34769         * tests/test-i-ring.c (main): Likewise.
34770         * tests/test-inttypes.c (main): Likewise.
34771         * tests/test-link.c (main): Likewise.
34772         * tests/test-lstat.c (main): Likewise.
34773         * tests/test-math.c (main): Likewise.
34774         * tests/test-md5.c (main): Likewise.
34775         * tests/test-memchr2.c (main): Likewise.
34776         * tests/test-memrchr.c (main): Likewise.
34777         * tests/test-mkdir.c (main): Likewise.
34778         * tests/test-mkdirat.c (main): Likewise.
34779         * tests/test-mkfifoat.c (main): Likewise.
34780         * tests/test-open.c (main): Likewise.
34781         * tests/test-openat-safer.c (main): Likewise.
34782         * tests/test-openat.c (main): Likewise.
34783         * tests/test-quotearg.c (main): Likewise.
34784         * tests/test-rawmemchr.c (main): Likewise.
34785         * tests/test-readlink.c (main): Likewise.
34786         * tests/test-remove.c (main): Likewise.
34787         * tests/test-rename.c (main): Likewise.
34788         * tests/test-renameat.c (main): Likewise.
34789         * tests/test-rmdir.c (main): Likewise.
34790         * tests/test-sha1.c (main): Likewise.
34791         * tests/test-signal.c (main): Likewise.
34792         * tests/test-sigaction.c (main): Likewise.
34793         * tests/test-stat.c (main): Likewise.
34794         * tests/test-stat-time.c (main): Likewise.
34795         * tests/test-stddef.c (main): Likewise.
34796         * tests/test-stdint.c (main): Likewise.
34797         * tests/test-stdio.c (main): Likewise.
34798         * tests/test-stdlib.c (main): Likewise.
34799         * tests/test-strchrnul.c (main): Likewise.
34800         * tests/test-strerror.c (main): Likewise.
34801         * tests/test-string.c (main): Likewise.
34802         * tests/test-strtod.c (main): Likewise.
34803         * tests/test-strverscmp.c (main): Likewise.
34804         * tests/test-symlink.c (main): Likewise.
34805         * tests/test-symlinkat.c (main): Likewise.
34806         * tests/test-sys_stat.c (main): Likewise.
34807         * tests/test-sys_time.c (main): Likewise.
34808         * tests/test-time.c (main): Likewise.
34809         * tests/test-unistd.c (main): Likewise.
34810         * tests/test-unlink.c (main): Likewise.
34811         * tests/test-unlinkat.c (main): Likewise.
34812         * tests/test-utimens.c (main): Likewise.
34813         * tests/test-utimensat.c (main): Likewise.
34814         * tests/test-version-etc.c (main): Likewise.
34815         * tests/test-wchar.c (main): Likewise.
34816         * tests/test-wctype.c (main): Likewise.
34817         * tests/test-xprintf-posix.c (main): Likewise.
34818         * tests/test-posixtm.c (main): Likewise.
34819         (STREQ): Delete unused macro.
34820         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34821         shadowed variables.
34822         * tests/test-memchr.c (main): Likewise.
34823
34824 2009-10-21  Eric Blake  <ebb9@byu.net>
34825
34826         areadlinkat: avoid failure on older glibc
34827         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34828         rather than mis-comparing 0 against FUNC_RESULT of char*.
34829
34830 2009-10-21  Bruno Haible  <bruno@clisp.org>
34831
34832         * modules/stpncpy (License): Relicense under LGPLv2+.
34833         Reported by David Lutterkort <lutter@redhat.com>.
34834
34835 2009-10-20  Eric Blake  <ebb9@byu.net>
34836
34837         utimensat: work around Solaris 9 bug
34838         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34839         has trailing slash bugs.
34840         * tests/test-lutimens.h (test_lutimens): Enhance test.
34841         * tests/test-utimens.h (test_utimens): Likewise.
34842         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34843         * doc/posix-functions/utimes.texi (utimes): Likewise.
34844         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34845         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34846         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34847         * doc/posix-functions/futimens.texi (futimens): Likewise.
34848
34849         fdutimensat: new module
34850         * modules/fdutimensat: New file.
34851         * lib/fdutimensat.c (fdutimensat): Likewise.
34852         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34853         * MODULES.html.sh (File system functions): Mention module.
34854         * modules/fdutimensat-tests: New test.
34855         * tests/test-fdutimensat.c: Likewise.
34856
34857         doc: regenerate INSTALL
34858         * doc/INSTALL: Reflect recent autoconf update.
34859         * doc/INSTALL.ISO: Likewise.
34860         * doc/INSTALL.UTF-8: Likewise.
34861
34862 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34863
34864         acl: warn if ACL support is not detected
34865         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34866
34867 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34868
34869         * lib/nproc.h: Add extern "C" block for C++.
34870
34871 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34872             Bruno Haible  <bruno@clisp.org>
34873
34874         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34875         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34876         * doc/posix-functions/isalpha.texi: Likewise.
34877         * doc/posix-functions/isblank.texi: Likewise.
34878         * doc/posix-functions/iscntrl.texi: Likewise.
34879         * doc/posix-functions/isdigit.texi: Likewise.
34880         * doc/posix-functions/isgraph.texi: Likewise.
34881         * doc/posix-functions/islower.texi: Likewise.
34882         * doc/posix-functions/isprint.texi: Likewise.
34883         * doc/posix-functions/ispunct.texi: Likewise.
34884         * doc/posix-functions/isspace.texi: Likewise.
34885         * doc/posix-functions/isupper.texi: Likewise.
34886         * doc/posix-functions/isxdigit.texi: Likewise.
34887
34888 2009-10-18  Bruno Haible  <bruno@clisp.org>
34889
34890         Tests for module 'isblank'.
34891         * modules/isblank-tests: New file.
34892         * tests/test-isblank.c: New file.
34893
34894         New module 'isblank'.
34895         * lib/isblank.c: New file.
34896         * m4/isblank.m4: New file.
34897         * modules/isblank: New file.
34898         * doc/posix-functions/isblank.texi: Mention the new module.
34899
34900 2009-10-18  Bruno Haible  <bruno@clisp.org>
34901
34902         New module 'ctype'.
34903         * lib/ctype.in.h: New file.
34904         * m4/ctype.m4: New file.
34905         * modules/ctype: New file.
34906         * doc/posix-headers/ctype.texi: Mention the new module.
34907
34908 2009-10-18  Jim Meyering  <meyering@redhat.com>
34909
34910         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34911         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34912         right after its initialization, rather than farther down.
34913         Keeping these in close proximity makes it easier to ensure
34914         that each such variable is initialized.  E.g.,
34915
34916             LIB_CLOCK_GETTIME=
34917             AC_SUBST([LIB_CLOCK_GETTIME])
34918
34919         This change also increments these serial numbers.
34920         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34921         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34922         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34923
34924 2009-10-18  Bruno Haible  <bruno@clisp.org>
34925
34926         Don't let environment variables perturb build.
34927         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34928         (gl_PREREQ_GETHRXTIME): ... not here.
34929
34930 2009-10-18  Bruno Haible  <bruno@clisp.org>
34931
34932         Avoid symlink attack in localcharset module.
34933         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34934         (O_NOFOLLOW): Define fallback.
34935         (get_charset_aliases): Don't open the file if it is a symbolic link.
34936         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34937         gl_FCNTL_H.
34938         (gl_FCNTL_H): Require it.
34939         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34940         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34941         Reported by Fergal Glynn <fglynn@veracode.com>.
34942
34943 2009-10-18  Bruno Haible  <bruno@clisp.org>
34944
34945         Implement nproc for mingw.
34946         * lib/nproc.c: Include <windows.h>
34947         (num_processors): On native Windows platforms, try GetSystemInfo.
34948
34949 2009-10-18  Bruno Haible  <bruno@clisp.org>
34950
34951         Implement nproc for IRIX.
34952         * lib/nproc.c: Include <sys/sysmp.h>.
34953         (num_processors): On IRIX systems, try sysmp.
34954         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34955
34956 2009-10-18  Bruno Haible  <bruno@clisp.org>
34957
34958         Implement nproc for HP-UX.
34959         * lib/nproc.c: Include <sys/pstat.h>
34960         (num_processors): On HP-UX systems, try pstat_getdynamic.
34961         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34962         pstat_getdynamic.
34963
34964 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34965             Bruno Haible  <bruno@clisp.org>
34966
34967         Implement nproc for NetBSD, OpenBSD.
34968         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34969         (ARRAY_SIZE): New macro.
34970         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34971         * m4/nproc.m4: New file.
34972         * modules/nproc (Files): Add m4/nproc.m4.
34973         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34974         (Makefile.am): Instead, augment lib_SOURCES.
34975
34976 2009-10-18  Bruno Haible  <bruno@clisp.org>
34977
34978         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34979         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34980         sys/param.h.
34981
34982 2009-10-16  Eric Blake  <ebb9@byu.net>
34983
34984         utimensat: new module
34985         * modules/utimensat: New file.
34986         * lib/utimensat.c (utimensat): Likewise.
34987         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34988         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34989         so we can work around Linux bugs.
34990         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34991         * modules/sys_stat (Makefile.am): Substitute them.
34992         * lib/sys_stat.in.h (utimensat): Declare it.
34993         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34994         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34995         * modules/utimensat-tests: New test.
34996         * tests/test-utimensat.c: Likewise.
34997
34998         utimens: let lutimens work on non-symlinks
34999         * lib/utimens.c (lutimens): Fall back to utimens rather than
35000         failing with ENOSYS, when file is not a symlink.
35001         (utimens): Reduce redirection.
35002         * tests/test-lutimens.h (test_lutimens): Update test to cover
35003         non-symlinks.
35004         * tests/test-utimens.h (test_utimens): Update test to cover
35005         symlinks.
35006         * tests/test-utimens.c (main): Update caller.
35007
35008         utimens: cache whether utimensat syscall works
35009         * lib/utimens.c (utimensat_works_really): New cache variable.
35010         (fdutimens, lutimens): Use it to avoid failing syscall.
35011
35012         test-stat-time, test-utimens: improve portability
35013         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35014         ext4 on alpha, and for cygwin.
35015         * tests/test-utimens-common.h: New file.
35016         (nap): Factor delays into single function.
35017         * tests/test-lutimens.h (test_lutimens): Use new header.
35018         * tests/test-futimens.h (test_futimens): Likewise.
35019         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35020         timestamps to occur from same machine, as was done previously for
35021         test_utimens.
35022         * modules/utimens-tests (Files): Ship new file.
35023         * modules/futimens-tests (Files): Likewise.
35024         Reported in part by Jim Meyering.
35025
35026         sys_stat: sort replacement declarations
35027         * lib/sys_stat.in.h: Sort declarations.
35028         * lib/futimens.c (futimens): Fix typo.
35029
35030 2009-10-15  Jim Meyering  <meyering@redhat.com>
35031
35032         don't let environment settings perturb build
35033         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35034         could cause a configure-time and/or build-time malfunction.
35035         Typically, a configure-time function-in-library test is performed
35036         via code like this:
35037
35038           LIB_VAR=
35039           AC_SUBST([LIB_VAR])
35040           prefix_saved_LIBS=$LIBS
35041             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35042                        [test "$ac_cv_search_FUNC" = "none required" ||
35043                         LIB_VAR=$ac_cv_search_FUNC])
35044           LIBS=$prefix_saved_LIBS
35045
35046         However, in each of the files affected by this change, the LIB_VAR=
35047         initialization was omitted.  Thus, when set in the environment, its
35048         value would propagate into generated Makefiles when FUNC is not found
35049         in LIB_NAME.
35050         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35051         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35053
35054 2009-10-14  Eric Blake  <ebb9@byu.net>
35055
35056         fchdir: avoid infinite recursion in mingw
35057         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35058         recursing.
35059
35060         test-stat-time: port to mingw
35061         * tests/test-stat-time.c (force_unlink): Return a value.
35062         (test_ctime) [W32]: Fix compilation error.
35063         (nap): Don't call usleep with too large an argument.  Use
35064         force_unlink.
35065         * doc/pastposix-functions/usleep.texi (usleep): Document the
35066         portability issue.
35067
35068 2009-10-13  Jim Meyering  <meyering@redhat.com>
35069
35070         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35071         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35072         * modules/pipe-filter-ii: Likewise.
35073         * modules/sys_socket-tests: Likewise.
35074         * modules/tsearch-tests: Likewise.
35075         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35076         (check): Depend on it.
35077
35078 2009-10-12  Eric Blake  <ebb9@byu.net>
35079
35080         utimens-tests: port to NFS file systems
35081         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35082         comparisons to avoid spurious failures from timestamp drift
35083         between NFS machines.
35084
35085 2009-10-12  Eric Blake  <ebb9@byu.net>
35086
35087         stat-time-tests: minor cleanups
35088         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35089         * tests/test-stat-time.c (nap): Separate assignment from call.
35090         Suggested by Paolo Bonzini and Bruno Haible.
35091
35092         sys_stat: guarantee struct timespec
35093         * lib/sys_stat.in.h (includes): Always include <time.h>
35094         * modules/sys_stat (Depends-on): Add time.
35095         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35096         mode_t permission values.
35097         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35098         get at subsecond timestamps.
35099
35100 2009-10-10  Eric Blake  <ebb9@byu.net>
35101
35102         futimens: new module
35103         * modules/futimens: New file.
35104         * lib/futimens.c (futimens): Likewise.
35105         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35106         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35107         we can work around Linux bugs.
35108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35109         * modules/sys_stat (Makefile.am): Substitute them.
35110         * lib/sys_stat.in.h (futimens): Declare it.
35111         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35112         * doc/posix-functions/futimens.texi (futimens): Likewise.
35113         * modules/futimens-tests: New test.
35114         * tests/test-futimens.c: Likewise.
35115
35116         utimens: introduce fdutimens
35117         * lib/utimens.h (fdutimens): New prototype.
35118         * lib/utimens.c (gl_futimens): Move guts...
35119         (fdutimens): ...to new interface.
35120         * tests/test-utimens.c (do_fdutimens): Use it.
35121
35122         utimens: add UTIME_NOW and UTIME_OMIT support
35123         * lib/utimens.c (validate_timespec, update_timespec): New helper
35124         functions.
35125         (gl_futimens, lutimens): Use them.
35126         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35127         stdbool, sys_stat.
35128         (Link): Mention resulting library dependency.
35129         * modules/utimecmp (Link): Likewise.
35130         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35131         (Makefile.am): Pick up library dependency.
35132         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35133         definition.
35134         * tests/test-sys_stat.c: Test the definitions.
35135         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35136         * NEWS: Document library dependency.
35137
35138         utimecmp: support symlink timestamps
35139         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35140         hashing when possible.  Use pathconf when available.
35141         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35142         * modules/utimecmp (Depends-on): Add lstat.
35143
35144         utimens: add lutimens interface
35145         * lib/utimens.c (lutimens): New function.
35146         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35147         * lib/utimens.h (lutimens): Declare new interface.
35148         * tests/test-utimens.c (main): Enhance test.
35149         * tests/test-lutimens.h (test_lutimens): New file.
35150         * modules/utimens-tests (Files): Distribute it.
35151         (Depends-on): Add symlink.
35152         (configure.ac): Check for usleep.
35153
35154         utimens: validate futimens usage
35155         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35156         fewer syscalls on failure later on.  Avoid compiler warning on
35157         mingw.
35158         * modules/utimens (Depends-on): Add dup2.
35159
35160         utimens: add test
35161         * modules/utimens-tests: New test.
35162         * tests/test-utimens.h: New file.
35163         * tests/test-futimens.h: Likewise.
35164         * tests/test-utimens.c: Likewise.
35165
35166         doc: mention timestamp portability issues
35167         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35168         instead.
35169         * doc/posix-functions/utime.texi (utime): Likewise.
35170         * doc/posix-functions/utimes.texi (utimes): Likewise.
35171         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35172         instead.
35173         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35174         module.
35175         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35176         Mention weakness with symlink timestamps.
35177         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35178         to utimensat/futimens instead.
35179         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35180
35181         test-dup2: enhance test
35182         * tests/test-dup2.c (main): Also check AT_FDCWD.
35183
35184         test-stat-time: avoid more spurious failures
35185         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35186         xfs; and avoid race if the two timestamps cross quantization edge.
35187
35188         relocatable: prefer 'file system' over 'filesystem'
35189         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35190         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35191         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35192         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35193         * lib/relocatable.c (compute_curr_prefix): Likewise.
35194
35195 2009-10-10  Jim Meyering  <meyering@redhat.com>
35196
35197         stat-time-tests: check for the usleep function
35198         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35199
35200 2009-10-10  Bruno Haible  <bruno@clisp.org>
35201
35202         * modules/xnanosleep: Put the Link section after the Include section.
35203
35204 2009-10-09  Eric Blake  <ebb9@byu.net>
35205
35206         dup2: work around FreeBSD 6.1 bug
35207         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35208         * doc/posix-functions/dup2.texi (dup2): Document it.
35209         Reported by Nelson H. F. Beebe and Jim Meyering.
35210
35211         test-stat-time: port to buggy NFS clients
35212         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35213         (test_ctime): Also skip test if mtime and ctime are skewed.
35214
35215         maint: prefer 'file system' over 'filesystem'
35216         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35217         * doc/posix-functions/lstat.texi (lstat): Likewise.
35218         * lib/file-has-acl.c (file_has_acl): Likewise.
35219         * lib/fwriteerror.c [TEST]: Likewise.
35220         * tests/test-areadlink.h (test_areadlink): Likewise.
35221         * tests/test-areadlinkat-with-size.c (main): Likewise.
35222         * tests/test-areadlinkat.c (main): Likewise.
35223         * tests/test-canonicalize-lgpl.c (main): Likewise.
35224         * tests/test-canonicalize.c (main): Likewise.
35225         * tests/test-fstatat.c (main): Likewise.
35226         * tests/test-linkat.c (main): Likewise.
35227         * tests/test-lstat.h (test_lstat_func): Likewise.
35228         * tests/test-mkdir.h (test_mkdir): Likewise.
35229         * tests/test-readlink.h (test_readlink): Likewise.
35230         * tests/test-remove.c (main): Likewise.
35231         * tests/test-rename.h (test_rename): Likewise.
35232         * tests/test-renameat.c (main): Likewise.
35233         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35234         * tests/test-symlink.h (test_symlink): Likewise.
35235         * tests/test-symlinkat.c (main): Likewise.
35236         * tests/test-unlink.h (test_unlink_func): Likewise.
35237         * tests/test-unlinkat.c (main): Likewise.
35238
35239         maint: make realtime library usage explicit
35240         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35241         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35242         * modules/settime (Link): Likewise.
35243         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35244
35245         test-stat-time: speed up execution
35246         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35247         warning on mingw.
35248         (nap): New helper function.
35249         (prepare_test): Use it to reduce sleep time.
35250         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35251         execution.
35252         * modules/stat-time-tests (configure.ac): Check for usleep.
35253
35254 2009-10-09  Jim Meyering  <meyering@redhat.com>
35255
35256         selinux-h: always use getfilecon wrappers
35257         * lib/getfilecon.c: New file.
35258         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35259         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35260         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35261         (fgetfilecon): Provide a stub.
35262         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35263         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35264         file unconditionally.
35265         When <selinux/selinux.h> is found, arrange to use wrappers.
35266         * modules/selinux-h (Files): Add getfilecon.c.
35267         (Makefile.am): Substitute include-next-related bits
35268         into the now-always-generated selinux/selinux.h file.
35269         * doc/glibc-functions/lgetfilecon.texi: New file.
35270         * doc/glibc-functions/fgetfilecon.texi: New file.
35271         * doc/glibc-functions/getfilecon.texi: New file.
35272         * doc/glibc-functions/getfilecon-desc.texi: New file.
35273         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35274         which to pull in the new files.
35275         * MODULES.html.sh (Misc): Add selinux-h.
35276
35277 2009-10-08  Jim Meyering  <meyering@redhat.com>
35278
35279         unistd: fix comment typo
35280         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35281
35282 2009-10-08  Eric Blake  <ebb9@byu.net>
35283
35284         areadlink: use SIZE_MAX consistently
35285         * modules/areadlink (Depends-on): Add stdint.
35286         * modules/areadlink-with-size (Depends-on): Likewise.
35287         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35288         gives NULL; drop sys/types, since unistd gives size_t; and add
35289         stdint for SIZE_MAX.
35290         (SIZE_MAX): Rely on headers.
35291         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35292         and add stdint.
35293         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35294         (SIZE_MAX): Likewise.
35295         (INITIAL_BUF_SIZE): Turn into enum.
35296         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35297
35298 2009-10-08  Jim Meyering  <meyering@redhat.com>
35299
35300         areadlinkat: avoid compilation failure
35301         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35302         Fix typo in comment.
35303
35304 2009-10-07  Eric Blake  <ebb9@byu.net>
35305
35306         areadlinkat-with-size: new module
35307         * modules/areadlinkat-with-size: New module.
35308         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35309         * lib/areadlink.h (areadlinkat): Declare it.
35310         * MODULES.html.sh (File system functions): Mention it.
35311         * modules/areadlinkat-with-size-tests: New test.
35312         * tests/test-areadlinkat-with-size.c: New file.
35313
35314         xreadlinkat: new module
35315         * modules/xreadlinkat: New module.
35316         * lib/xreadlinkat.c (xreadlinkat): New file.
35317         * lib/xreadlink.h (xreadlinkat): Declare it.
35318         * MODULES.html.sh (File system functions): Mention it.
35319
35320         areadlinkat: new module
35321         * lib/at-func.c (FUNC_FAIL): New define.
35322         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35323         * modules/areadlinkat: New module.
35324         * lib/linkat.c (areadlinkat): Move...
35325         * lib/areadlinkat.c (areadlinkat): ...to new file.
35326         * lib/areadlink.h (areadlinkat): Declare it.
35327         * modules/linkat (Depends-on): Add areadlinkat.
35328         * MODULES.html.sh (File system functions): Mention it.
35329         * modules/areadlinkat-tests: New test.
35330         * tests/test-areadlinkat.c: New file.
35331
35332         areadlink, areadlink-with-size: add tests
35333         * modules/areadlink-tests: New test.
35334         * modules/areadlink-with-size-tests: Likewise.
35335         * tests/test-areadlink.h: New file.
35336         * tests/test-areadlink.c: Likewise.
35337         * tests/test-areadlink-with-size.c: Likewise.
35338
35339         maint: minor cleanups
35340         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35341         _UNUSED_PARAMETER_ instead.
35342         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35343         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35344         * modules/linkat-tests (Files): Distribute test-link.h.
35345
35346         openat, utimens: whitespace cleanup
35347         * lib/openat.c: Prefer space throughout, rather than mix of 8
35348         spaces vs. tabs.
35349         * lib/at-func.c: Likewise.
35350         * lib/utimens.c: Likewise.
35351
35352         openat: avoid using wrong fd
35353         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35354         working directory chooses same fd.
35355         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35356
35357         mkdir, mkdirat: fix cygwin 1.5.x bug
35358         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35359         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35360         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35361         bug.
35362         (gl_PREREQ_MKDIR): Delete unused macro.
35363         * modules/mkdir (Files): Track file rename.
35364         (configure.ac): Update macro name.
35365         * modules/openat (Depends-on): Add mkdir.
35366         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35367
35368         mkdir, mkdirat: add tests
35369         * modules/mkdir-tests: New test.
35370         * tests/test-mkdir.h: New file.
35371         * tests/test-mkdir.c: Likewise.
35372         * tests/test-mkdirat.c: Likewise.
35373         * modules/openat-tests (Files): Add new files.
35374         (Makefile.am): Run new test.
35375
35376 2009-10-06  Eric Blake  <ebb9@byu.net>
35377
35378         doc: tweak *at function documentation
35379         * doc/posix-functions/faccessat.texi (faccessat): Mention
35380         known issue with replacement.
35381         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35382         * doc/posix-functions/linkat.texi (linkat): Likewise.
35383         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35384         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35385         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35386         * doc/posix-functions/renameat.texi (renameat): Likewise.
35387         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35388
35389         openat: fix GNU/Hurd bug in unlinkat
35390         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35391         broken.
35392         * doc/posix-functions/unlink.texi (unlink): Document this.
35393         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35394
35395         fdopendir: fix GNU/Hurd bug
35396         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35397         allowing non-directory fds.
35398         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35399         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35400         * modules/dirent (Makefile.am): Substitute it.
35401         * lib/dirent.in.h (fdopendir): Declare replacement.
35402         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35403         * tests/test-fdopendir.c (main): Test something other than
35404         /dev/null, since on Hurd that behaves like a directory.
35405
35406         test-symlink: port to GNU/Hurd
35407         * tests/test-symlink.h (test_symlink): Relax expected errno.
35408
35409         doc: tweak more cygwin information
35410         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35411         now compatible with glibc.
35412         * doc/posix-functions/getopt.texi (getopt): Likewise.
35413
35414         getopt-gnu: add another test
35415         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35416         guarantee behavior relied on by m4.
35417         * tests/test-getopt.c (main): Use it.
35418         * modules/getopt-posix-tests (Depends-on): Add setenv.
35419         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35420
35421         getopt: fix compilation on darwin
35422         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35423         include.
35424         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35425         Reported by Ludovic Courtès.
35426
35427 2009-10-06  Bruno Haible  <bruno@clisp.org>
35428
35429         * modules/size_max (Description): Discourage its use.
35430         Reported by Simon Josefsson.
35431
35432 2009-10-06  Jim Meyering  <meyering@redhat.com>
35433
35434         linkat: avoid compilation failure
35435         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35436
35437 2009-10-05  Eric Blake  <ebb9@byu.net>
35438
35439         linkat: support Linux 2.6.17
35440         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35441         linkat on Linux, but allow cache variable override.
35442         * lib/linkat.c (rpl_linkat): Define override.
35443         * modules/linkat (Depends-on): Add symlinkat.
35444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35445         * modules/unistd (Makefile.am): Substitute it.
35446         * lib/unistd.in.h (linkat): Declare replacement.
35447         Reported by Pádraig Brady.
35448
35449         quotearg: port test to systems with C.UTF-8 locale
35450         * tests/test-quotearg.c (struct result_strings): Add another
35451         member, differentiating between C.ASCII and C.UTF-8 handling.
35452         (compare_strings): Add parameter.
35453         (main): Adjust all callers.
35454
35455         getopt: avoid clash with FreeBSD _getopt_internal
35456         * lib/getopt.in.h (_getopt_internal): Override the name.
35457         * lib/getopt_int.h (includes): Pick up any overrides.
35458         Reported by Reuben Thomas.
35459
35460         hash: allow C89 compilation
35461         * lib/hash.c (check_tuning): Move declaration before statement.
35462         Reported by Reuben Thomas.
35463
35464 2009-10-05  Karl Berry  <karl@gnu.org>
35465
35466         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35467
35468 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35469             Bruno Haible  <bruno@clisp.org>
35470
35471         * lib/uname.c (uname): Use a table-driven algorithm to compute
35472         Windows NT versions.
35473
35474 2009-10-04  Bruno Haible  <bruno@clisp.org>
35475
35476         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35477         program_invocation_short_name.
35478         * modules/progname (configure.ac): Test for presence of
35479         program_invocation_short_name.
35480         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35481
35482 2009-10-04  Bruno Haible  <bruno@clisp.org>
35483
35484         * lib/progname.c (set_program_name): Fix comment.
35485         Reported by Jim Meyering.
35486
35487 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35488             Bruno Haible  <bruno@clisp.org>
35489
35490         * lib/uname.c: Include <string.h>.
35491         (uname): Do only one call to GetVersionEx in the common case.
35492
35493 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35494             Bruno Haible  <bruno@clisp.org>
35495
35496         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35497         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35498         (uname): Add support for Windows CE and various non-x86 CPU types.
35499
35500 2009-10-03  Bruno Haible  <bruno@clisp.org>
35501
35502         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35503         invocation to tests/configure.ac.
35504         Reported by Ian Beckwith <ianb@erislabs.net>.
35505
35506 2009-10-02  Eric Blake  <ebb9@byu.net>
35507
35508         fchdir: avoid compiler warning
35509         * lib/fchdir.c (canonicalize_file_name)
35510         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35511
35512         test-open: support mingw errno values
35513         * tests/test-open.h (test_open): Relax test.
35514         * tests/test-fopen.h (test_fopen): Likewise.
35515         * tests/test-openat-safer.c (main): Likewise.
35516
35517         open: fix opening directory on mingw
35518         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35519
35520         test-open: on GNU/Hurd, /dev/null is a directory
35521         * tests/test-fopen.h (main): Rename...
35522         (test_fopen): ...to this.  Use a guaranteed non-directory when
35523         confirming open behavior on trailing slash.
35524         * tests/test-openat-safer.c (main): Likewise.
35525         * tests/test-open.h (main): Likewise....
35526         (test_open): ...to this.
35527         * tests/test-fopen.c (main): Adjust caller.
35528         * tests/test-fopen-safer.c (main): Likewise.
35529         * tests/test-open.c (main): Likewise.
35530         * tests/test-fcntl-safer.c (main): Likewise.
35531         Reported by Samuel Thibault.
35532
35533         rename, fchdir: don't ignore chdir failure
35534         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35535         * lib/rename.c (rpl_rename) [W32]: Likewise.
35536         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35537         an empty destination directory if source cannot be renamed,
35538         although there is still possibility for failure.
35539         * doc/posix-functions/rename.texi (rename): Document the race.
35540         Reported by Jim Meyering.
35541
35542         maint: cleanup whitespace in recent commits
35543         * lib/rename.c (rpl_rename): Remove tabs.
35544         * tests/test-link.h (test_link): Likewise.
35545         * lib/fchdir.c (get_name): Likewise.
35546         Reported by Jim Meyering.
35547
35548 2009-10-02  Ben Pfaff  <blp@gnu.org>
35549
35550         relocatable-prog-wrapper: Add missing dependency on
35551         double-slash-root.
35552         * modules/relocatable-prog-wrapper: Add dependency.
35553         Reported by Ian Beckwith <ianb@erislabs.net>.
35554
35555 2009-10-02  Eric Blake  <ebb9@byu.net>
35556
35557         renameat: fix Solaris bugs
35558         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35559         needed fixing.
35560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35561         * modules/stdio (Makefile.am): Substitute it.
35562         * lib/stdio.in.h (renameat): Declare replacement.
35563         * lib/renameat.c (rpl_renameat): Implement fix.
35564
35565         renameat: new module
35566         * modules/renameat: New file.
35567         * lib/renameat.c (renameat): Likewise.
35568         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35570         * modules/stdio (Makefile.am): Substitute them.
35571         * lib/stdio.in.h (renameat): Declare it.
35572         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35573         * doc/posix-functions/renameat.texi (renameat): Likewise.
35574         * modules/renameat-tests: New test.
35575         * tests/test-renameat.c: Likewise.
35576
35577         rename: fix mingw bugs
35578         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35579         directory overwrite bugs.
35580
35581         rename: fix another cygwin 1.5 bug
35582         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35583         checks.
35584         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35585         unnecessary cygwin workarounds.  Also work around bug with moving
35586         full directory onto an empty one.
35587         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35588
35589         rename-dest-slash: merge into rename module
35590         * modules/rename-dest-slash (Status): Mark obsolete.
35591         (Depends-on): Add rename.
35592         (Files): Let rename do it all.
35593         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35594         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35595         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35596         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35597         * lib/rename.c (rpl_rename): Update comments.
35598
35599         rename: fix cygwin 1.5.x bugs
35600         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35601         * lib/rename.c (rpl_rename): Work around them.
35602         * modules/rename (Depends-on): Add same-inode.
35603
35604         rename: fix Solaris 10 bug
35605         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35606         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35607         was the only bug.
35608
35609         rename: fix Solaris 9 bug
35610         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35611         on non-directory.  Avoid calling exit.
35612         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35613         strdup.
35614         * modules/rename-tests (Depends-on): Drop lstat.
35615         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35616         (gl_PREREQ_RENAME): Delete unused macro.
35617
35618         rename-dest-slash: fix NetBSD bug
35619         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35620         links.
35621         * modules/rename-dest-slash (Depends-on): Add same-inode.
35622
35623         rename-tests: new test, exposes several platform bugs
35624         * modules/rename-tests: New file.
35625         * tests/test-rename.h: Likewise.
35626         * tests/test-rename.c: Likewise.
35627         * doc/posix-functions/rename.texi (rename): Improve documentation,
35628         including bugs that will eventually be fixed in gnulib.
35629
35630 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35631
35632         * lib/uname.c: Include <stdlib.h>
35633         (uname): Assume version info is available.
35634
35635 2009-10-02  Jim Meyering  <meyering@redhat.com>
35636
35637         gnu-web-doc-update: correct --help output
35638         * build-aux/gnu-web-doc-update: Make --help output relevant.
35639
35640         gnu-web-doc-update: add standard options
35641         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35642
35643         gnu-web-doc-update: New module.
35644         Use this script to automatically update the on-line web documentation
35645         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35646         * modules/gnu-web-doc-update: New file, from coreutils.
35647         * build-aux/gnu-web-doc-update: New script.
35648
35649 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35650
35651         link: LoadLibrary is not needed.
35652         * lib/link.c: Use GetModuleHandle.
35653
35654 2009-10-01  Eric Blake  <ebb9@byu.net>
35655
35656         getopt: bump serial number
35657         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35658         change.
35659
35660         tests: tighten link, rmdir, and remove tests
35661         * tests/test-link.h (includes): No need to use <config.h> here.
35662         Clean up if directory hard link was created, otherwise test for
35663         trailing '.'.
35664         * tests/test-linkat.c (main): Simplify.
35665         * tests/test-remove.c (main): Enhance test for trailing '.'.
35666         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35667
35668 2009-10-01  Jim Meyering  <meyering@redhat.com>
35669
35670         maint.mk: requiring "make major" was annoying, for a "minor" release.
35671         What is intended is "stable", to contrast with alpha and beta,
35672         so require "make stable", not "make major".
35673         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35674         (get_tool_versions): Likewise.
35675         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35676
35677 2009-09-30  Ben Pfaff  <blp@gnu.org>
35678
35679         Fix broken build of replacement for Windows tmpfile().
35680         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35681         flags argument added along with the 'mkostemp' module.
35682
35683 2009-09-28  Bruno Haible  <bruno@clisp.org>
35684
35685         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35686         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35687         to 'remove_elt'.
35688         (gl_list_remove): Update.
35689         * lib/gl_list.c (gl_list_remove): Update.
35690         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35691         to 'remove_elt'.
35692         (gl_oset_remove): Update.
35693         * lib/gl_list.c (gl_oset_remove): Update.
35694         Reported by Eric Blake.
35695
35696 2009-09-28  Eric Blake  <ebb9@byu.net>
35697
35698         doc: mention yet more cygwin 1.7 status
35699         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35700         cygwin.
35701         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35702         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35703
35704         argp: fix test failure
35705         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35706         that are not upper-case.  Pass correct range to tolower.
35707
35708 2009-09-27  Jim Meyering  <meyering@redhat.com>
35709
35710         test-yesno: work around sparc-dash here-document infelicity
35711         Without this change, the literal \177 byte in a here document
35712         would make dash 0.5.5.1-3 access uninitialized memory.
35713         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35714         Instead, use a marker, "@", and filter through tr to create the desired
35715         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35716
35717 2009-09-27  Bruno Haible  <bruno@clisp.org>
35718
35719         Disable untested support for new flavours of ACLs on AIX.
35720         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35721         progress.
35722         * lib/set-mode-acl.c (qset_acl): Likewise.
35723
35724 2008-12-07  Bruno Haible  <bruno@clisp.org>
35725
35726         Add support for new flavours of ACLs on AIX. (Untested.)
35727         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35728         (file_has_acl): Add support for newer AIX.
35729         * lib/set-mode-acl.c (qset_acl): Likewise.
35730         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35731         Rainer Tammer <tammer@tammer.net>.
35732
35733 2009-09-26  Eric Blake  <ebb9@byu.net>
35734
35735         argp: fix compilation of getopt
35736         * lib/getopt.in.h (includes): Use different guard than glibc.
35737         Reported by Sergey Poznyakoff.
35738
35739         doc: mention more cygwin 1.7 status
35740         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35741         bug.
35742         * doc/posix-functions/execl.texi (execl): Likewise.
35743         * doc/posix-functions/execle.texi (execle): Likewise.
35744         * doc/posix-functions/execlp.texi (execlp): Likewise.
35745         * doc/posix-functions/execv.texi (execv): Likewise.
35746         * doc/posix-functions/execve.texi (execve): Likewise.
35747         * doc/posix-functions/execvp.texi (execvp): Likewise.
35748         * doc/glibc-functions/canonicalize_file_name.texi
35749         (canonicalize_file_name): Cygwin 1.7 now provides this.
35750         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35751         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35752         on AT_SYMLINK_NOFOLLOW.
35753
35754 2009-09-24  Eric Blake  <ebb9@byu.net>
35755
35756         test-linkat: make test more robust
35757         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35758
35759         getopt: fix inclusion guards for cygwin
35760         * modules/getopt-posix (Depends-on): Add include-next.
35761         (Makefile.am): Substitute more items in replacement header.
35762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35763         <getopt.h>.
35764         * lib/getopt.in.h (includes): Use split inclusion guard, and
35765         prefer <getopt.h> over include <unistd.h> when one is present.
35766         (option): Also override name of 'struct option'.
35767
35768         same-inode: revert prior change; it is not yet ready
35769         * NEWS: Undo mention of this change.
35770         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35771         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35772         * lib/cycle-check.c (cycle_check): Likewise.
35773         * lib/same.c (same_name): Likewise.
35774         * lib/at-func2.c (at_func2): Likewise.
35775
35776 2009-09-23  Eric Blake  <ebb9@byu.net>
35777
35778         linkat: new module
35779         * modules/linkat: New file.
35780         * lib/at-func2.c (at_func2): Likewise.
35781         * lib/linkat.c (linkat): Likewise.
35782         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35783         * lib/openat-priv.h (at_func2): Add declaration.
35784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35785         * modules/unistd (Makefile.am): Substitute them.
35786         * lib/unistd.in.h (linkat): Declare it.
35787         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35788         * doc/posix-functions/linkat.texi (linkat): Likewise.
35789         * doc/posix-functions/link.texi (link): Tweak wording.
35790         * tests/test-link.c (main): Move guts...
35791         * tests/test-link.h (test_link): ...into new file.
35792         * modules/linkat-tests: New test.
35793         * tests/test-linkat.c: Likewise.
35794         * modules/link-tests (Files): Ship new file.
35795         (Depends-on): Add stdbool.
35796
35797         dirname: add library-safe mdir_name
35798         * lib/dirname.h (mdir_name): New prototype.
35799         * lib/dirname.c (dir_name): Move guts...
35800         (mdir_name): ...to new function that avoids xalloc_die.
35801
35802         fchdir: another mingw fix
35803         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35804         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35805         on mingw (where it has not yet been ported), and make it optional
35806         elsewhere.
35807         (_gl_register_fd): Use it.
35808
35809         same-inode: make SAME_INODE tri-state, to port to mingw
35810         * NEWS: Mention this change.
35811         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35812         st_ino always being 0.
35813         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35814         * lib/cycle-check.c (cycle_check): Likewise.
35815         * lib/same.c (same_name): Likewise.
35816
35817         lstat: avoid mingw compilation error
35818         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35819         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35820         lstat ourselves.
35821         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35822         was adequate.
35823         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35824         the checks for lstat.
35825         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35826
35827         link: fix test failure on Solaris 9
35828         * lib/link.c (rpl_link): Don't assume link will catch bogus
35829         trailing slash on source.
35830
35831         test-symlinkat: enhance test
35832         * tests/test-readlink.c (main): Move guts...
35833         * tests/test-readlink.h (test_readlink): ...into new file.
35834         * tests/test-symlink.c (main): Move guts...
35835         * tests/test-symlink.h (test_symlink): ...into new file.
35836         * tests/test-symlinkat.c (main): Use new files for further
35837         coverage.
35838         (do_symlink, do_readlink): New helper functions.
35839         * modules/symlink-tests (Files): Ship new file.
35840         (Depends-on): Add stdbool.
35841         * modules/readlink-tests (Files): Ship new file.
35842         (Depends-on): Add stdbool.
35843         * modules/symlinkat-tests (Files): Use new files.
35844
35845 2009-09-23  Eric Blake  <ebb9@byu.net>
35846
35847         readlink: document portability issue with symlink length
35848         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35849         systems have bogus st_size on symlinks, and mention the
35850         areadlink-with-size module.
35851         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35852         * doc/posix-functions/readlink.texi (readlink): Mention the
35853         areadlink module, and ERANGE failure.
35854         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35855         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35856
35857         readlink: fix Solaris 9 bug with trailing slash
35858         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35859         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35860         * doc/posix-functions/readlink.texi (readlink): Document this.
35861         * modules/readlink-tests: New test.
35862         * tests/test-readlink.c: Likewise.
35863
35864         readlink: fix cygwin 1.5.x bug with return type
35865         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35866         * lib/unistd.in.h (readlink): Use ssize_t.
35867         * lib/readlink.c (readlink): Likewise.
35868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35869         * modules/unistd (Makefile.am): Substitute it.
35870         * lib/unistd.in.h (readlink): Declare replacement.
35871         * doc/posix-functions/readlink.texi (readlink): Document this.
35872
35873         symlink: use throughout gnulib
35874         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35875         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35876         symlink is not used.
35877         * modules/symlinkat (Depends-on): Add symlink.
35878         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35879         * modules/canonicalize-tests (Depends-on): Likewise.
35880         * modules/lstat-tests (Depends-on): Likewise.
35881         * modules/openat-tests (Depends-on): Likewise.
35882         * modules/remove-tests (Depends-on): Likewise.
35883         * modules/rmdir-tests (Depends-on): Likewise.
35884         * modules/unlink-tests (Depends-on): Likewise.
35885         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35886         * tests/test-canonicalize.c (symlink): Likewise.
35887         * tests/test-fstatat.c (symlink): Likewise.
35888         * tests/test-lstat.c (symlink): Likewise.
35889         * tests/test-remove.c (symlink): Likewise.
35890         * tests/test-rmdir.c (symlink): Likewise.
35891         * tests/test-unlink.c (symlink): Likewise.
35892         * tests/test-unlinkat.c (symlink): Likewise.
35893
35894         symlink: new module, for Solaris 9 bug
35895         * modules/symlink: New file.
35896         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35897         * lib/symlink.c: Likewise.
35898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35899         * modules/unistd (Makefile.am): Substitute them.
35900         * lib/unistd.in.h (symlink): Declare replacement.
35901         * MODULES.html.sh (File system functions): Mention it.
35902         * doc/posix-functions/symlink.texi (symlink): Likewise.
35903         * modules/symlink-tests: New test.
35904         * tests/test-symlink.c: Likewise.
35905
35906 2009-09-23  Bruno Haible  <bruno@clisp.org>
35907
35908         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35909         when needed.
35910         Test case: gnulib-tool --import --with-tests atexit inttypes.
35911         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35912
35913 2009-09-23  Bruno Haible  <bruno@clisp.org>
35914
35915         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35916         subcommand, not in a subshell.
35917
35918 2009-09-22  Eric Blake  <ebb9@byu.net>
35919
35920         unistd: sort replacement declarations
35921         * lib/unistd.in.h: Sort declarations.
35922
35923         open, openat: minor optimization
35924         * lib/open.c (open): If open succeeded, len is non-zero.
35925         * lib/openat.c (rpl_openat): Likewise.
35926
35927         link-follow: ensure correct result
35928         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35929         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35930         distinguish between possible failures.
35931
35932 2009-09-21  Eric Blake  <ebb9@byu.net>
35933
35934         fts: avoid compiler warning
35935         * lib/fts.c (dirent_inode_sort_may_be_useful)
35936         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35937
35938 2009-09-19  Bruno Haible  <bruno@clisp.org>
35939
35940         * lib/progreloc.c (canonicalize_file_name): New declaration.
35941
35942 2009-09-19  Eric Blake  <ebb9@byu.net>
35943
35944         link: fix quoting
35945         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35946
35947         openat: fix openat bugs on Solaris 9
35948         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35949         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35950         * modules/openat (Depends-on): Add open.
35951         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35952         * modules/fcntl-h (Makefile.am): Substitute it.
35953         * lib/fcntl.in.h (openat): Declare replacement.
35954         * doc/posix-functions/openat.texi (openat): Document this.
35955
35956         openat: move fstatat and unlinkat into correct files
35957         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35958         compiled.
35959         * lib/openat.c (fstatat, unlinkat): Move...
35960         * lib/fstatat.c (fstatat): ...into correct files.
35961         * lib/unlinkat.c (unlinkat): Likewise.
35962
35963         openat: fix unlinkat bugs on Solaris 9
35964         * lib/unlinkat.c (unlinkat): New file.
35965         * modules/openat (Depends-on): Add unlink.
35966         (Files): Distribute it.
35967         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35968         trailing slash behavior is broken.
35969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35970         * modules/unistd (Makefile.am): Substitute it.
35971         * lib/unistd.in.h (unlinkat): Declare replacement.
35972         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35973
35974         openat: fix fstatat bugs on Solaris 9
35975         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35976         stat.
35977         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35978
35979         test-unlinkat: enhance test, to expose Solaris 9 bug
35980         * tests/test-unlink.c (main): Factor guts...
35981         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35982         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35983         * tests/test-rmdir.c (main): Adjust caller.
35984         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35985         (unlinker): New helper function.
35986         (rmdirat): Enhance check.
35987         * modules/rmdir-tests (Depends-on): Add stdbool.
35988         * modules/unlink-tests (Depends-on): Likewise.
35989         (Files): Add test-unlink.h.
35990         * modules/openat-tests (Files): Likewise.
35991         (Depends-on): Add unlinkdir.
35992
35993         test-fstatat: new test, to expose Solaris 9 bugs
35994         * tests/test-stat.c (main): Factor guts...
35995         * tests/test-stat.h (test_stat_func): ...into new file.
35996         * tests/test-lstat.c (main): Factor guts...
35997         * tests/test-lstat.h (test_lstat_func): ...into new file.
35998         * tests/test-fstatat.c: New file.
35999         * modules/stat-tests (Files): Add test-stat.h.
36000         * modules/lstat-tests (Files): Add test-lstat.h.
36001         (Depends-on): Add stdbool.
36002         * modules/openat-tests (Depends-on): Add pathmax.
36003         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36004         (Makefile.am): Run new test.
36005
36006         remove: new module, for mingw and Solaris 9 bugs
36007         * modules/remove: New file.
36008         * lib/remove.c: Likewise.
36009         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36011         * modules/stdio (Makefile.am): Use them.
36012         * lib/stdio.in.h (remove): Declare replacement.
36013         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36014         * doc/posix-functions/remove.texi (remove): Likewise.
36015         * modules/remove-tests: New test.
36016         * tests/test-remove.c: Likewise.
36017
36018         unlink: new module, for Solaris 9 bug
36019         * modules/unlink: New file.
36020         * lib/unlink.c: Likewise.
36021         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36023         * modules/unistd (Makefile.am): Use them.
36024         * lib/unistd.in.h (stat): Declare replacement.
36025         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36026         * doc/posix-functions/unlink.texi (unlink): Likewise.
36027         * modules/unlink-tests: New test.
36028         * tests/test-unlink.c: Likewise.
36029
36030         lstat: fix Solaris 9 bug
36031         * lib/lstat.c (lstat): Also check for trailing slash on
36032         non-symlink, non-directories.  Use stat module to simplify logic.
36033         * doc/posix-functions/lstat.texi (lstat): Document it.
36034         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36035         (configure.ac): Check for symlink.
36036         * tests/test-lstat.c (main): Add more tests.
36037
36038         stat: add as dependency to other modules
36039         * modules/chown (Depends-on): Add stat.
36040         * modules/euidaccess (Depends-on): Likewise.
36041         * modules/fchdir (Depends-on): Likewise.
36042         * modules/isdir (Depends-on): Likewise.
36043         * modules/link (Depends-on): Likewise.
36044         * modules/lstat (Depends-on): Likewise.
36045         * modules/mkdir-p (Depends-on): Likewise.
36046         * modules/modechange (Depends-on): Likewise.
36047         * modules/open (Depends-on): Likewise.
36048         * modules/readlink (Depends-on): Likewise.
36049         * modules/same (Depends-on): Likewise.
36050
36051         stat: fix Solaris 9 bug
36052         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36053         slash.
36054         * lib/stat.c (rpl_stat): Work around it.
36055         * doc/posix-functions/stat.texi (stat): Update documentation.
36056
36057         stat: new module, for mingw bug
36058         * modules/stat: New file.
36059         * lib/stat.c: Likewise.
36060         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36061         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36062         * modules/sys_stat (Makefile.am): Use them.
36063         * lib/sys_stat.in.h (stat): Declare replacement.
36064         * lib/openat.c (fstatat): Deal with lstat and stat being function
36065         macros.
36066         * modules/openat (Depends-on): Add inline.
36067         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36068         * doc/posix-functions/stat.texi (stat): Likewise.
36069         * modules/stat-tests: New test.
36070         * tests/test-stat.c: Likewise.
36071
36072 2009-09-19  Jim Meyering  <meyering@redhat.com>
36073
36074         syntax-check: detect unnecessary inclusion of canonicalize.h
36075         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36076
36077 2009-09-19  Eric Blake  <ebb9@byu.net>
36078
36079         canonicalize-lgpl: adjust clients to use correct header
36080         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36081         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36082         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36083         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36084         * lib/progreloc.c (includes): Likewise.
36085
36086 2009-09-19  Jim Meyering  <meyering@redhat.com>
36087
36088         test-posixtm.c: correct a comment
36089         * tests/test-posixtm.c: Correct first-line comment.
36090         Spotted by Eric Blake.
36091
36092 2009-09-16  Jim Meyering  <meyering@redhat.com>
36093
36094         posixtm-tests: make T const-correct; add a test case
36095         * tests/test-posixtm.c (T): Declare const.
36096         Add a test for -(2^31+1).
36097         Remove useless can-succeed-only-in-2002 test.
36098
36099         posixtm-tests: adjust the sole failing test
36100         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36101         expected output matches what mktime now produces.  Cross-checked via
36102         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36103
36104         posixtm: move #ifdef'd tests into a new module
36105         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36106         * tests/test-posixtm.c: ... this new file.
36107         * modules/posixtm-tests: New module.
36108
36109 2009-09-19  Eric Blake  <ebb9@byu.net>
36110
36111         openat: simplify use of at-func.c
36112         * lib/at-func.c (includes): Include prerequisites here, to
36113         simplify requirements on client files.
36114         * lib/openat-priv.h: Add double-inclusion guard.
36115         * lib/faccessat.c (includes): Simplify.
36116         * lib/fchmodat.c (includes): Likewise.
36117         * lib/fchownat.c (includes): Likewise.
36118         * lib/mkdirat.c (includes): Likewise.
36119         * lib/mkfifoat.c (includes): Likewise.
36120         * lib/symlinkat.c (includes): Likewise.
36121
36122         openat: allow return of fd 0
36123         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36124         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36125         unistd-safer.
36126         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36127         <fcntl.h>; this module does not leak fds.
36128         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36129         must be allowed to return 0, leaving openat_safer to add the
36130         safety.
36131         (openat_permissive): Avoid writing to just-opened fd 2 if
36132         restoring the current directory fails.
36133         * lib/openat-die.c (openat_restore_fail): Add comment.
36134         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36135         (save_cwd): Guarantee safe fd, but without use of open_safer.
36136         * tests/test-openat.c: New test.
36137         * modules/openat-tests (Files, Makefile.am): Distribute and build
36138         new file.
36139
36140         relocatable-prog-wrapper: fix build
36141         * modules/relocatable-prog-wrapper (Files): Update name of
36142         canonicalize m4 file, broken on 2009-09-17.
36143         Reported by emad hajjar <aleppos@hotmail.com>.
36144
36145 2009-09-19  Bruno Haible  <bruno@clisp.org>
36146
36147         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36148         * lib/safe-alloc.c: Likewise.
36149         Reported by Ian Beckwith <ianb@erislabs.net>.
36150
36151 2009-09-18  Bruno Haible  <bruno@clisp.org>
36152
36153         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36154         Reported by <erobles@sensacd.com.mx>.
36155
36156 2009-09-17  Eric Blake  <ebb9@byu.net>
36157
36158         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36159         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36160         slashes when checking if last component is missing.
36161         * tests/test-canonicalize.c (main): Test this.
36162
36163         canonicalize, canonicalize-lgpl: honor // if distinct from /
36164         * modules/canonicalize (Files): Add double-slash-root.m4.
36165         * modules/canonicalize-lgpl (Files): Likewise.
36166         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36167         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36168         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36169         fallback definition.
36170         (canonicalize_filename_mode): Use it to protect //.
36171         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36172         (__realpath): Likewise.
36173         * tests/test-canonicalize.c (main): Test this.
36174         * tests/test-canonicalize-lgpl.c (main): Likewise.
36175         * modules/canonicalize-tests (Depends-on): Add same-inode.
36176         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36177
36178         canonicalize-lgpl: fix glibc bug with trailing slash
36179         * m4/canonicalize-lgpl.m4: Move contents...
36180         * m4/canonicalize.m4: ...here.
36181         (gl_CANONICALIZE_LGPL): Factor realpath check...
36182         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36183         glibc 2.3.5 bug, fixed 2005-04-27.
36184         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36185         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36186         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36187         * modules/canonicalize-lgpl (Files): Manage file rename.
36188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36189         * modules/stdlib (Makefile.am): Substitute witness.
36190         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36191         is needed.
36192         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36193         replacement is required.
36194         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36195         * doc/glibc-functions/canonicalize_file_name.texi
36196         (canonicalize_file_name): Document this.
36197         * doc/posix-functions/realpath.texi (realpath): Likewise.
36198
36199         canonicalize-lgpl: reject non-directory with trailing slash
36200         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36201         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36202         catches failures in glibc 2.3.5.
36203         * tests/test-canonicalize.c (main): Likewise.
36204
36205         canonicalize-lgpl: use native realpath if it works
36206         * lib/canonicalize-lgpl.c (realpath): Guard with
36207         FUNC_REALPATH_WORKS.
36208         * lib/stdlib.in.h (realpath): Make declaration optional based on
36209         HAVE_REALPATH.
36210         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36211         native realpath works.
36212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36213         * modules/stdlib (Makefile.am): Substitute witness.
36214
36215         canonicalize, canonicalize-lgpl: use <stdlib.h>
36216         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36217         (Include): Mention <stdlib.h>.
36218         (configure.ac): Mention functions we provide.
36219         * modules/canonicalize (configure.ac): Likewise.
36220         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36221         realpath if canonicalize_file_name is missing.
36222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36223         * modules/stdlib (Makefile.am): Substitute witnesses.
36224         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36225         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36226         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36227         * NEWS: Document this.
36228         * doc/glibc-functions/canonicalize_file_name.texi
36229         (canonicalize_file_name): Likewise.
36230         * doc/posix-functions/realpath.texi (realpath): Likewise.
36231         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36232
36233         test-canonicalize: consolidate into single C program
36234         * tests/test-canonicalize.sh: Delete; move setup into...
36235         * tests/test-canonicalize.c (main): ...the program, making it
36236         easier to run in debugger.  Add some tests.
36237         * modules/canonicalize-tests (Files): Remove unused file.
36238         (Depends-on): Add progname.
36239         (configure.ac, Makefile.am): Simplify.
36240
36241         test-canonicalize-lgpl: consolidate into single C program
36242         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36243         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36244         easier to run in debugger.  Add some tests.
36245         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36246         (configure.ac, Makefile.am): Simplify.
36247
36248         canonicalize: avoid resolvepath
36249         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36250         unnecessary checks.
36251         * lib/canonicalize.c (includes): Simplify.
36252         (canonicalize_file_name): Drop resolvepath implementation.
36253         * modules/canonicalize (Depends-on): Drop filenamecat.
36254
36255         canonicalize: don't lose errno
36256         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36257         over calls to free.
36258
36259         canonicalize: simplify errno handling
36260         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36261         assignment.
36262
36263         canonicalize, canonicalize-lgpl: update module dependencies
36264         * modules/canonicalize (Depends-on): Add extensions, lstat,
36265         pathmax, stdlib.
36266         (Files): Drop pathmax.h.
36267         (configure.ac): Adjust macro name.
36268         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36269         lstat, stdlib, sys_stat.
36270         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36271         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36272         extensions.
36273         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36274         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36275         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36276         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36277         declaration, if available.
36278         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36279         we can rely on the readlink module.
36280         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36281         (includes): Use <unistd.h> unconditionally.
36282
36283 2009-09-17  Eric Blake  <ebb9@byu.net>
36284
36285         maint: make Include sections of modules consistent
36286         * modules/alloca: Use only header name; no need to list #include.
36287         * modules/alloca-opt: Likewise.
36288         * modules/arpa_inet: Likewise.
36289         * modules/canon-host: Likewise.
36290         * modules/configmake: Likewise.
36291         * modules/dirent: Likewise.
36292         * modules/eealloc: Likewise.
36293         * modules/environ: Likewise.
36294         * modules/fchdir: Likewise.
36295         * modules/fcntl: Likewise.
36296         * modules/fcntl-h: Likewise.
36297         * modules/gethrxtime: Likewise.
36298         * modules/gettime: Likewise.
36299         * modules/ignore-value: Likewise.
36300         * modules/inet_ntop: Likewise.
36301         * modules/inet_pton: Likewise.
36302         * modules/inttypes: Likewise.
36303         * modules/isnand-nolibm: Likewise.
36304         * modules/isnanf-nolibm: Likewise.
36305         * modules/mbchar: Likewise.
36306         * modules/mbfile: Likewise.
36307         * modules/mbiter: Likewise.
36308         * modules/mbuiter: Likewise.
36309         * modules/netdb: Likewise.
36310         * modules/netinet_in: Likewise.
36311         * modules/nproc: Likewise.
36312         * modules/pagealign_alloc: Likewise.
36313         * modules/poll: Likewise.
36314         * modules/printf-frexp: Likewise.
36315         * modules/pthread: Likewise.
36316         * modules/putenv: Likewise.
36317         * modules/random_r: Likewise.
36318         * modules/relocatable-prog: Likewise.
36319         * modules/search: Likewise.
36320         * modules/select: Likewise.
36321         * modules/selinux-h: Likewise.
36322         * modules/settime: Likewise.
36323         * modules/signal: Likewise.
36324         * modules/size_max: Likewise.
36325         * modules/socklen: Likewise.
36326         * modules/ssize_t: Likewise.
36327         * modules/stdarg: Likewise.
36328         * modules/stdbool: Likewise.
36329         * modules/stddef: Likewise.
36330         * modules/stdint: Likewise.
36331         * modules/stdio: Likewise.
36332         * modules/stdlib: Likewise.
36333         * modules/string: Likewise.
36334         * modules/strings: Likewise.
36335         * modules/sys_file: Likewise.
36336         * modules/sys_ioctl: Likewise.
36337         * modules/sys_select: Likewise.
36338         * modules/sys_socket: Likewise.
36339         * modules/sys_stat: Likewise.
36340         * modules/sys_time: Likewise.
36341         * modules/sys_times: Likewise.
36342         * modules/sys_utsname: Likewise.
36343         * modules/sys_wait: Likewise.
36344         * modules/sysexits: Likewise.
36345         * modules/time: Likewise.
36346         * modules/times: Likewise.
36347         * modules/tmpfile: Likewise.
36348         * modules/trim: Likewise.
36349         * modules/unistd: Likewise.
36350         * modules/wchar: Likewise.
36351         * modules/wctype: Likewise.
36352
36353 2009-09-17  Bruno Haible  <bruno@clisp.org>
36354
36355         Make getdate.y compile on QNX and NetBSD 5 / i386.
36356         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36357         TIME_T_FITS_IN_LONG_INT.
36358         * lib/getdate.y (long_time_t): New type.
36359         (relative_time): Change type of 'seconds' field to long_time_t.
36360         (get_date): Update types of local variables. Check against overflow
36361         during conversion from long_time_t to time_t.
36362         Reported by Matt Kraai <kraai@ftbfs.org>
36363         and Hasso Tepper <hasso@netbsd.org>.
36364
36365 2009-09-17  Bruno Haible  <bruno@clisp.org>
36366
36367         * modules/COPYING: Update copyright years.
36368         * modules/README: Likeiwse.
36369         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36370         Reported by Ian Beckwith <ianb@erislabs.net>.
36371
36372 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36373
36374         * users.txt: Update references for gnuit package.
36375
36376 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36377
36378         * m4/getdelim.m4: Fix typo in copyright line.
36379
36380 2009-09-17  Bruno Haible  <bruno@clisp.org>
36381
36382         * lib/atoll.c: Use the standard header with GPL copyright.
36383         * lib/argz.in.h: Likewise.
36384         * lib/glob.c: Likewise.
36385         * lib/glob-libc.h: Likewise.
36386         * lib/random_r.c: Likewise.
36387         * lib/siglist.h: Likewise.
36388         * lib/strsignal.c: Likewise.
36389         Reported by Ian Beckwith <ianb@erislabs.net>.
36390
36391 2009-09-17  Eric Blake  <ebb9@byu.net>
36392
36393         rmdir: ensure correct dependency order
36394         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36395
36396 2009-09-17  Bruno Haible  <bruno@clisp.org>
36397
36398         Disable assertion that fails on NetBSD 5 / i386.
36399         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36400         Reported by Sam Steingold <sds@gnu.org>
36401         and Hasso Tepper <hasso@netbsd.org>.
36402
36403 2009-09-16  Eric Blake  <ebb9@byu.net>
36404
36405         unlinkdir: port to mingw
36406         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36407         on which no one can unlink a directory.
36408
36409         stdlib: sort witness names
36410         * modules/stdlib (Makefile.am): Sort replacements.
36411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36412         * lib/stdlib.in.h: Likewise.
36413
36414         parse-duration-tests: avoid link failure
36415         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36416         LIBINTL.
36417         Reported by Tom G. Christensen.
36418
36419         openat-tests: ensure unlinkat behaves like rmdir
36420         * tests/test-rmdir.c (main): Factor guts...
36421         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36422         * modules/rmdir-tests (Files): Ship new file.
36423         * modules/openat-tests: New test.
36424         * tests/test-unlinkat.c: Likewise.
36425
36426         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36427         * modules/rmdir-errno (Status, Notice): Now obsolete.
36428
36429         rmdir: work around cygwin 1.5.x and mingw bugs
36430         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36431         * lib/rmdir.c (rmdir): Work around it.
36432         * modules/rmdir (Status, Notice): No longer obsolete.
36433         (Files): Add dos.m4.
36434         (Depends-on): Add unistd.
36435         (configure.ac): Set witnesses.
36436         (License): Relax to LGPLv2+.
36437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36438         * modules/unistd (Makefile.am): Substitute witnesses.
36439         * lib/unistd.in.h (rmdir): Declare replacement.
36440         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36441         * modules/rmdir-tests: New tests.
36442         * tests/test-rmdir.c: Likewise.
36443
36444 2009-09-15  Eric Blake  <ebb9@byu.net>
36445
36446         fchdir: improve use of replacement functions
36447         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36448         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36449         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36450         REPLACE_CLOSEDIR.
36451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36452         * modules/sys_stat (Makefile.am): Substitute correct witness.
36453         * modules/dirent (Makefile.am): Likewise.
36454         * modules/unistd (Makefile.am): Likewise.
36455         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36456         * lib/unistd.in.h (dup): Likewise.
36457         * lib/sys_stat.in.h (fstat): Likewise.
36458
36459         maint: ignore gnulib-tool temp files
36460         * .gitignore: Ignore files created during gnulib-tool --test.
36461
36462 2009-09-13  Jim Meyering  <meyering@redhat.com>
36463
36464         posixtm: don't reject a time that specify "60" as the number of seconds
36465         * lib/posixtm.c (posixtime): The code to reject invalid dates
36466         would also reject a time specified with the .60 suffix.
36467         But POSIX allows that, in order to accommodate leap seconds.
36468         So don't reject it.
36469         (main): Adjust tests accordingly.
36470         * modules/posixtm (Depends-on): Add stpcpy.
36471
36472 2009-09-11  Jim Meyering  <meyering@redhat.com>
36473
36474         announce-gen: include [$release_type] in emitted Subject:
36475         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36476         e.g., [stable] in the emitted Subject: line.
36477
36478 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36479
36480         Remove obsolete macros from several modules.
36481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36482         obsolete Autoconf macros with their modern counterparts.
36483         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36484         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36485         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36486         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36487         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36488         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36490         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36491         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36492         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36493         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36494         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36495         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36496         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36497         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36498         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36499         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36500         * m4/time_r.m4 (gl_TIME_R): Likewise.
36501         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36502         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36503         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36504
36505         Fix copyright header in build-aux scripts.
36506         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36507         recommendation.
36508         * build-aux/ncftpput-ftp: Likewise.
36509         * build-aux/update-copyright: Likewise.
36510
36511 2009-09-09  Eric Blake  <ebb9@byu.net>
36512
36513         test-link: allow Linux choice of errno
36514         * tests/test-link.c (main): Relax test for alternate error.
36515
36516         strndup: fix improper m4 caching
36517         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36518         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36519         (gl_PREREQ_STRNDUP): Delete.
36520         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36521         * modules/string (Makefile.am): Substitute it.
36522         * lib/string.in.h (strndup): Modernize prototype.
36523
36524         getcwd: port to mingw
36525         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36526         different from the POSIX assumptions made throughout the getcwd
36527         module; fortunately, the mingw getcwd does not need replacement.
36528         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36529         * modules/getcwd-tests: New test.
36530         * tests/test-getcwd.c: Likewise.
36531
36532         link: fix platform bugs
36533         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36534         * lib/link.c (link): Work around them.  Fix related mingw bug.
36535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36536         * modules/unistd (Makefile.am): Substitute it.
36537         * lib/unistd.in.h (link): Declare replacement.
36538         * doc/posix-functions/link.texi (link): Document this.
36539         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36540
36541         test-link: consolidate into single C program, test more cases
36542         * tests/test-link.sh: Delete.
36543         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36544         at least Cygwin and Solaris.
36545         * modules/link-tests (Files): Remove unused file.
36546         (Depends-on): Add errno, sys_stat.
36547         (Makefile.am): Simplify.
36548
36549 2009-09-08  Bruno Haible  <bruno@clisp.org>
36550
36551         Work around towlower, towupper bug on mingw.
36552         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36553         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36554         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36555         * doc/posix-functions/towupper.texi: Likewise.
36556         Reported by Eric Blake.
36557
36558 2009-09-08  Jim Meyering  <meyering@redhat.com>
36559
36560         build: don't try to run autoheader if we don't use it
36561         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36562         is not used in configure.ac.
36563
36564 2009-09-08  Eric Blake  <ebb9@byu.net>
36565
36566         euidaccess: fix compilation error
36567         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36568
36569         rawmemchr: relax license
36570         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36571         okay.
36572         Reported by Jim Meyering.
36573
36574         mkfifoat: new module
36575         * modules/mkfifoat: New file.
36576         * lib/mkfifoat.c: Likewise.
36577         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36578         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36579         * modules/sys_stat (Makefile.am): Use them.
36580         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36581         * MODULES.html.sh (File system functions): Mention module.
36582         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36583         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36584         * modules/mkfifoat-tests: New test.
36585         * tests/test-mkfifoat.c: Likewise.
36586
36587         strchrnul: relax license
36588         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36589         okay.
36590         Reported by Jim Meyering.
36591
36592 2009-09-08  Eric Blake  <ebb9@byu.net>
36593
36594         fstatat: fix compilation on Solaris
36595         * lib/fstatat.c (includes): Add fcntl.h.
36596         Reported by Pádraig Brady.
36597
36598 2009-09-07  Eric Blake  <ebb9@byu.net>
36599
36600         rename: modernize replacement
36601         * modules/rename (Depends-on): Add stdio.
36602         (configure.ac): Declare witness.
36603         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36604         stdio take care of replacement.
36605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36606         * modules/stdio (Makefile.am): Substitute them.
36607         * lib/stdio.in.h (rename): Declare replacement.
36608         * lib/rename.c (includes): Allow cross-compilation to non-windows
36609         machines.
36610         * doc/posix-functions/rename.texi (rename): Improve
36611         documentation.
36612
36613         stdio: sort witness names
36614         * modules/stdio (Makefile.am): Sort replacements.
36615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36616         * lib/stdio.in.h: Likewise.
36617
36618         getcwd: minor cleanups
36619         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36620         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36621
36622         openat: provide more convenience names
36623         * modules/faccessat (configure.ac): Add C witness.
36624         * lib/unistd.in.h (readlinkat): Fix typo.
36625         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36626         convenience wrappers.
36627         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36628         wrappers in syntax checks.
36629
36630 2009-09-06  Eric Blake  <ebb9@byu.net>
36631
36632         doc: fix comments in recent patches
36633         * lib/faccessat.c: Mention correct function.
36634         * lib/fchmodat.c: Likewise.
36635         * lib/fchownat.c: Likewise.
36636         * lib/symlinkat.c: Likewise.
36637         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36638         constants.
36639
36640         faccessat, symlinkat: continue cleanup of previous patch
36641         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36642         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36643         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36645         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36646         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36647         set.
36648
36649 2009-09-06  Bruno Haible  <bruno@clisp.org>
36650
36651         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36652         (fstatat): Declare if GNULIB_FSTATAT is set.
36653         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36654         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36655         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36656         * modules/fcntl-h (Files): Remove m4/openat.m4.
36657         * modules/sys_stat (Files): Remove m4/openat.m4.
36658         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36659         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36660         * modules/unistd (Files): Remove m4/openat.m4.
36661         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36662         GNULIB_OPENAT.
36663         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36664         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36665         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36666         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36667         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36668         gl_OPENAT_DEFAULTS.
36669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36670         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36671         Don't require gl_OPENAT_DEFAULTS.
36672         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36673         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36674         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36675         (gl_OPENAT_DEFAULTS): Remove macro.
36676
36677 2009-09-06  Bruno Haible  <bruno@clisp.org>
36678
36679         * modules/openat (configure.ac): Remove unneeded witness.
36680
36681 2009-09-06  Bruno Haible  <bruno@clisp.org>
36682
36683         Set errno to ENOSYS when a function is entirely unsupported.
36684         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36685         EOPNOTSUPP.
36686         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36687         * modules/chown (Depends-on): Remove errno.
36688
36689 2009-09-06  Bruno Haible  <bruno@clisp.org>
36690
36691         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36692
36693 2009-09-06  Bruno Haible  <bruno@clisp.org>
36694
36695         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36696
36697 2009-09-06  Ben Pfaff  <blp@gnu.org>
36698             Bruno Haible  <bruno@clisp.org>
36699
36700         Work around a glibc bug in strtok_r.
36701         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36702         Undefine if UNDEFINE_STRTOK_R is set.
36703         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36705         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36706         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36707         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36708         UNDEFINE_STRTOK_R.
36709         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36710
36711 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36712
36713         exclude: minor fix
36714         * lib/exclude.c: Include wctype.h
36715
36716 2009-09-06  Akim Demaille  <demaille@gostai.com>
36717
36718         bootstrap: improve error message
36719         * build-aux/bootstrap (find_tool): Upon failure, report the list
36720         of candidates.
36721         Honor the initial value of the envvar.
36722
36723 2009-09-05  Eric Blake  <ebb9@byu.net>
36724
36725         symlinkat: new module
36726         * modules/symlinkat: New file.
36727         * lib/symlinkat.c: Likewise.
36728         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36730         * modules/unistd (Makefile.am): Use them.
36731         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36732         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36733         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36734         * MODULES.html.sh (File system functions): Mention module.
36735         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36736         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36737         * modules/symlinkat-tests: New test.
36738         * tests/test-symlinkat.c: Likewise.
36739
36740         test-openat-safer: add more checks
36741         * tests/test-openat-safer.c (main): Check more code paths.
36742
36743 2009-09-05  Jim Meyering  <meyering@redhat.com>
36744
36745         syntax-check: detect unnecessary inclusion of openat.h
36746         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36747
36748 2009-09-05  Bruno Haible  <bruno@clisp.org>
36749
36750         Support towlower, towupper.
36751         * doc/posix-functions/towlower.texi: Mention module wctype.
36752         * doc/posix-functions/towupper.texi: Likewise.
36753         * lib/wctype.in.h (towlower, towupper): New functions.
36754         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36755         (ASSERT): New macro.
36756         (e): New variable.
36757         (main): Test also towlower, towupper. Test WEOF argument.
36758         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36759
36760 2009-09-05  Bruno Haible  <bruno@clisp.org>
36761
36762         Fix conversion behaviour when the input is invalid.
36763         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36764         mark occurring in first pass of indirect conversion.
36765         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36766         input.
36767         Found by clang's static analyzer.
36768
36769 2009-09-05  Bruno Haible  <bruno@clisp.org>
36770
36771         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36772         where direct conversion is possible.
36773
36774 2009-09-04  Eric Blake  <ebb9@byu.net>
36775
36776         openat: fail with ENOENT on empty name
36777         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36778         buffer.
36779
36780         link-follow: fix logic bug in prior patch
36781         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36782         reversed sense of yes and no in prior patch.  Avoid confusing
36783         compilation failure with desired semantics.
36784
36785         link-follow: accomodate mingw and cross-compilation
36786         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36787         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36788         cross-compilation results to -1, to make linkat easier to
36789         implement when cross-compiling.  Trivially support mingw.
36790         * modules/link-follow (configure.ac): Call new name.
36791         * NEWS: Mention this.
36792
36793 2009-09-03  Eric Blake  <ebb9@byu.net>
36794
36795         faccessat: compile replacement
36796         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36797         needed.
36798
36799         fts: fix compilation error
36800         * lib/fts.c (includes): Re-add "openat.h", for
36801         openat_needs_fchdir.
36802
36803         faccessat: new module
36804         * modules/faccessat: New file.
36805         * lib/faccessat.c: Likewise.
36806         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36808         * modules/unistd (Makefile.am): Use it.
36809         * lib/unistd.in.h (faccessat): Declare it.
36810         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36811         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36812         * MODULES.html.sh (File system functions): Mention it.
36813         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36814         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36815
36816         euidaccess: prefer POSIX over non-standard implementation
36817         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36818         * lib/euidaccess.c (euidaccess): Use it if available.
36819
36820         openat: make template easier to use
36821         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36822         AT_FUNC_F2 to be undefined.
36823         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36824         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36825         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36826         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36827         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36828         Likewise.
36829         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36830         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36831         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36832         Likewise.
36833
36834         openat: declare in POSIX headers
36835         * NEWS: Mention this.
36836         * modules/openat (configure.ac): Declare witnesses.
36837         (Depends-on): Add fcntl-h, sys_stat, unistd.
36838         (Include): Mention correct headers.
36839         * modules/fcntl-h (Depends-on): Add link-warning.
36840         (Files): Add openat.m4.
36841         (Makefile.am): Substitute witnesses.
36842         * modules/sys_stat (Files, Makefile.am): Likewise.
36843         * modules/unistd (Files, Makefile.am): Likewise.
36844         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36845         (gl_OPENAT_DEFAULTS): New macro.
36846         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36848         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36849         (SYS_STAT_H): Remove unused variable.
36850         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36851         * lib/fcntl--.h (includes): Remove unneeded header.
36852         * lib/openat-safer.c (includes): Likewise.
36853         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36854         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36855         appropriate headers.
36856         (__OPENAT_PREFIX): Delete.
36857         * lib/fcntl.in.h (openat): Provide declaration.
36858         (AT_FDCWD): Fix Solaris bug.
36859         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36860         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36861         * lib/fchmodat.c (includes):  Adjust to find declaration.
36862         * lib/fchownat.c (includes): Likewise.
36863         * lib/mkdirat.c (includes): Likewise.
36864         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36865         still visible.
36866
36867 2009-09-02  Eric Blake  <ebb9@byu.net>
36868
36869         errno: use consistently
36870         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36871         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36872         * lib/canonicalize.c (ELOOP): Likewise.
36873         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36874         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36875         * lib/lchown.c (EOPNOTSUPP): Likewise.
36876         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36877         * lib/savewd.c (ESTALE): Likewise.
36878         * lib/settime.c (ENOSYS): Likewise.
36879         * lib/utimens.c (ENOSYS): Likewise.
36880         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36881         * lib/chdir-safer.c (ELOOP): Likewise.
36882         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36883         * modules/c-stack (Depends-on): Add errno.
36884         * modules/canonicalize (Depends-on): Likewise.
36885         * modules/chdir-safer (Depends-on): Likewise.
36886         * modules/fdopendir (Depends-on): Likewise.
36887         * modules/inet_ntop (Depends-on): Likewise.
36888         * modules/inet_pton (Depends-on): Likewise.
36889         * modules/lchown (Depends-on): Likewise.
36890         * modules/openat (Depends-on): Likewise.
36891         * modules/savewd (Depends-on): Likewise.
36892         * modules/settime (Depends-on): Likewise.
36893         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36894
36895         fts: avoid leaking fds
36896         * modules/fts (Depends-on): Add cloexec.
36897         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36898         flag.
36899
36900         fts: make directory fds more robust
36901         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36902         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36903
36904         backupfile, chdir-long, fts, savedir: make safer
36905         * lib/backupfile.c (includes): Use "dirent--.h", since
36906         numbered_backup can write to stderr during readdir.
36907         * lib/savedir.c (includes): Likewise.
36908         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36909         emulation can write to stderr on failure.
36910         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36911         * lib/getcwd.c: Document why opendir_safer is unused.
36912         * lib/glob.c: Likewise.
36913         * lib/scandir.c: Likewise.
36914         * lib/openat-proc.c: Likewise, for open_safer.
36915         * modules/backupfile (Depends-on): Add dirent-safer.
36916         * modules/savedir (Depends-on): Likewise.
36917         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36918         * modules/chdir-long (Depends-on): Add openat-safer.
36919
36920         openat-safer: new module
36921         * modules/openat-safer: New file.
36922         * lib/openat-safer.c: Likewise.
36923         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36924         * lib/fcntl-safer.h (openat_safer): Declare.
36925         * lib/fcntl--.h (openat): Override.
36926         * MODULES.html.sh (File descriptor based I/O): Mention it.
36927         * lib/openat.h: Add double-inclusion guards.
36928         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36929         "fcntl--.h", so we can implement openat.
36930         * modules/openat-safer-tests: New test.
36931         * tests/test-openat-safer.c: New file.
36932
36933         dirent-safer: new module
36934         * modules/dirent-safer: New file.
36935         * lib/dirent--.h: Likewise.
36936         * lib/dirent-safer.h: Likewise.
36937         * lib/opendir-safer.c: Likewise.
36938         * m4/dirent-safer.m4: Likewise.
36939         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36940         * modules/dirent-safer-tests: New test.
36941         * tests/test-dirent-safer.c: New file.
36942         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36943
36944         fdopendir: optimize on mingw
36945         * lib/unistd.in.h (_gl_directory_name): New prototype.
36946         * lib/fchdir.c (_gl_directory_name): Implement it.
36947         (fchdir): Use it to simplify implementation.
36948         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36949         fchdir, when available, to avoid calling [f]chdir().
36950
36951         fdopendir: split into its own module
36952         * lib/openat.c (fdopendir): Move...
36953         * lib/fdopendir.c: ...into new file.
36954         * modules/fdopendir: New module.
36955         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36956         * modules/openat (Depends-on): Add fdopendir.
36957         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36958         fdopendir here.
36959         * modules/savedir (Depends-on): Only need fdopendir, not full
36960         openat.
36961         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36962         * lib/openat.h (fdopendir): Drop prototype.
36963         * lib/dirent.in.h (fdopendir): Provide prototype.
36964         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36965         * modules/dirent (Makefile.am): Substitute them.
36966         * MODULES.html.sh (File system functions): Mention it.
36967         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36968         * modules/fdopendir-tests: New file.
36969         * tests/test-fdopendir.c: Likewise.
36970
36971         fchdir: use more consistent macro convention
36972         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36973         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36974         REPLACE_FCHDIR, rather than relying on config.h macros.
36975         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36976         inside a single make-time REPLACE_FCHDIR block, rather than using
36977         the config.h FCHDIR_REPLACEMENT.
36978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36979         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36980         Manage fstat replacement.
36981         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36982         REPLACE_FCHDIR.
36983         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36984         (Makefile.am): Substitute REPLACE_FCHDIR.
36985         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36986         FCHDIR_REPLACEMENT.
36987         * lib/dup-safer.c (dup_safer): Likewise.
36988         * lib/dup2.c (rpl_dup2): Likewise.
36989         * lib/dup3.c (rpl_dup3): Likewise.
36990         * lib/open.c (rpl_open): Likewise.
36991
36992         fchdir: simplify error handling, and support dup3
36993         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36994         stdbool, malloc-posix, realloc-posix.
36995         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36996         (ensure_dirs_slot): Return false on allocation failure.
36997         (rpl_dup2): Delete.
36998         (_gl_register_dup): New function.
36999         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37000         (_gl_register_fd): Close fd on allocation failure.
37001         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37002         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37003         prototype.
37004         (rpl_dup2_fchdir): Delete prototype.
37005         * lib/open.c (open): Update caller.
37006         * lib/dup2.c (dup2): Track fchdir metadata.
37007         * lib/dup3.c (dup3): Likewise.
37008         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37010
37011 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37012
37013         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37014         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37015         don't pass arguments to AC_OUTPUT.
37016
37017 2009-09-02  Bruno Haible  <bruno@clisp.org>
37018
37019         * modules/mkdtemp (License): Relicense under LGPLv2+.
37020         Reported by Paolo Bonzini.
37021
37022 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37023
37024         Replace uses of obsolete autoconf macros in Jim's modules.
37025         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37026         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37027         can evoke a warning from autoconf when run with -Wobsolete
37028         enabled.  They were declared obsolete for good reasons (see
37029         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37030         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37031         should not continue using the deprecated macros.
37032         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37033         obsolete Autoconf macros with modern counterparts.
37034         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37035         * m4/dos.m4 (gl_AC_DOS): Likewise.
37036         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37037         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37038         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37039         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37040         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37041         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37042         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37043         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37044         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37045         Likewise.
37046         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37047         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37048         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37049         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37050         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37051         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37052
37053 2009-09-01  Eric Blake  <ebb9@byu.net>
37054
37055         fchdir: fix off-by-one bug in previous patch
37056         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37057         (_gl_unregister_fd): Delete useless if.
37058
37059 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37060
37061         maint.mk: sort the list of syntax-check rules
37062         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37063         easier to get a sense of progress when the rules are run sequentially
37064         and take a long time.
37065
37066 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37067
37068         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37069         * modules/netinet_in: Likewise.
37070         * modules/sys_file: Likewise.
37071         * modules/sys_ioctl: Likewise.
37072         * modules/sys_select: Likewise.
37073         * modules/sys_socket: Likewise.
37074         * modules/sys_stat: Likewise.
37075         * modules/sys_time: Likewise.
37076         * modules/sys_times: Likewise.
37077         * modules/sys_utsname: Likewise.
37078         * modules/sys_wait: Likewise.
37079
37080 2009-09-01  Jim Meyering  <meyering@redhat.com>
37081
37082         fts: help ensure that return values are not ignored
37083         * lib/fts_.h (__GNUC_PREREQ): Define.
37084         (__attribute_warn_unused_result__): Define.
37085         (fts_children, fts_close, fts_open, fts_read): Declare with
37086         __attribute_warn_unused_result__.
37087
37088         fts: fts_close now fails also when closing a dir file descriptor fails
37089         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37090         and propagate to caller, along with errno.
37091
37092         announce-gen: correct formatting in --help output
37093         * build-aux/announce-gen (usage): Move the one-line description in
37094         --help output "up", to where it belongs, just after Usage:.
37095
37096 2009-08-31  Eric Blake  <ebb9@byu.net>
37097
37098         fchdir: port to mingw
37099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37100         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37101         opened, then use a substitute.
37102         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37103         replacement.
37104         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37105         (_gl_register_fd): No need to check stat if open already filters
37106         all directories.
37107         (fchdir): Fix error condition to match POSIX.
37108         * modules/fchdir (Depends-on): Add sys_stat.
37109         * doc/posix-functions/open.texi (open): Document the limitation.
37110         * modules/fchdir-tests: New file.
37111         * tests/test-fchdir.c: Likewise.
37112
37113         canonicalize: allow cross-testing from cygwin to mingw
37114         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37115         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37116         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37117         Likewise.
37118         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37119         target does not support symlinks.
37120         * tests/test-canonicalize-lgpl.sh: Likewise.
37121
37122         chown: avoid compilation warning on mingw
37123         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37124         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37125         mingw.
37126         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37127         * modules/chown (Depends-on): Add errno.
37128
37129 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37130
37131         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37132         command.
37133
37134 2009-08-31  Jim Meyering  <meyering@redhat.com>
37135
37136         canonicalize: remove useless initialization
37137         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37138         initialization of local, "end".
37139
37140 2009-08-30  Bruno Haible  <bruno@clisp.org>
37141
37142         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37143         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37144         ENOSYS.
37145
37146 2009-08-30  Bruno Haible  <bruno@clisp.org>
37147
37148         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37149         /usr/xpg4/bin/tr when it exists.
37150         * tests/test-pipe-filter-gi1.sh: Likewise.
37151
37152 2009-08-30  Bruno Haible  <bruno@clisp.org>
37153
37154         Work around deficient /usr/bin/id program on Solaris.
37155         * tests/test-file-has-acl.sh (ID): New variable.
37156         * tests/test-set-mode-acl.sh (ID): Likewise.
37157         * tests/test-copy-acl.sh (ID): Likewise.
37158         * tests/test-copy-file.sh (ID): Likewise.
37159
37160 2009-08-30  Bruno Haible  <bruno@clisp.org>
37161
37162         New module 'xstriconveh'.
37163         * lib/xstriconveh.h: New file.
37164         * lib/xstriconveh.c: New file.
37165         * modules/xstriconveh: New file.
37166
37167 2009-08-30  Bruno Haible  <bruno@clisp.org>
37168
37169         Make it easier to use mem_cd_iconveh.
37170         * lib/striconveh.h (iconveh_t): New type.
37171         (iconveh_open, iconveh_close): New declarations.
37172         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37173         with a single 'const iconveh_t *' argument.
37174         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37175         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37176         with a single 'const iconveh_t *' argument.
37177         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37178         * tests/test-striconveh.c (main): Update.
37179         * NEWS: Mention the change.
37180
37181 2009-08-30  Bruno Haible  <bruno@clisp.org>
37182
37183         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37184         problem.
37185
37186 2009-08-30  Bruno Haible  <bruno@clisp.org>
37187
37188         Work around iconv_open problem on Solaris.
37189         * lib/iconv_open-solaris.gperf: New file.
37190         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37191         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37192         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37193         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37194         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37195         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37196
37197 2009-08-29  Jim Meyering  <meyering@redhat.com>
37198
37199         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37200         * top/maint.mk (cvs-check): Remove target; it was just an alias
37201         to the better-named vc-diff-check.
37202         (maintainer-distcheck): Remove rule.  It was used only from
37203         the (alpha/beta/major) target, and all of its commands but one
37204         were coreutils-specific.
37205         (vc-dist): Remove rule.
37206         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37207         Run vc-diff-check, not vc-dist.
37208         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37209
37210 2009-08-27  Bruno Haible  <bruno@clisp.org>
37211
37212         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37213         of 0.
37214
37215 2009-08-27  Bruno Haible  <bruno@clisp.org>
37216
37217         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37218         compilers.
37219         * doc/func.texi: Document the SunPRO C bug.
37220
37221 2009-08-27  Bruno Haible  <bruno@clisp.org>
37222
37223         Fix link error on Solaris.
37224         * tests/test-parse-duration.c (xstrdup): Remove function.
37225
37226 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37227
37228         ignore-value: handle pointer types, too
37229         * lib/ignore-value.h (__attribute__): Remove definition.
37230         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37231         of a more concise and more-often effective "(void) i" statement.
37232         (ignore_ptr): New function to suppress warnings from functions that
37233         return pointers, and to make it explicit that one function doesn't
37234         handle all cases.
37235
37236 2009-08-25  Bruno Haible  <bruno@clisp.org>
37237
37238         dup2: work around a Linux bug.
37239         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37240         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37241         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37242         Reported by Simon Josefsson.
37243
37244 2009-08-25  Jim Meyering  <meyering@redhat.com>
37245
37246         libguestfs uses gnulib
37247         * users.txt: Add libguestfs.
37248
37249 2009-08-24  Eric Blake  <ebb9@byu.net>
37250
37251         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37252         * lib/pipe2.c (includes): Add binary-io.h.
37253         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37254
37255 2009-08-24  Bruno Haible  <bruno@clisp.org>
37256
37257         Tolerate declared but missing accept4 syscall.
37258         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37259         available.
37260         * lib/sys_socket.in.h (accept4): If the function is already present,
37261         override it.
37262         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37263         * modules/accept4 (Makefile.am): Compile accept4.c always.
37264         Reported by Paolo Bonzini and Eric Blake.
37265
37266 2009-08-23  Bruno Haible  <bruno@clisp.org>
37267
37268         New module 'accept4'.
37269         * lib/sys_socket.in.h (accept4): New declaration.
37270         * lib/accept4.c: New file.
37271         * m4/accept4.m4: New file.
37272         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37273         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37274         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37275         HAVE_ACCEPT4.
37276         * modules/accept4: New file.
37277         * doc/glibc-functions/accept4.texi: Mention the new module.
37278
37279 2009-08-24  Jim Meyering  <meyering@redhat.com>
37280
37281         progname: also set global program_invocation_name, when possible
37282         Before this change, a libtool-enabled program that calls glibc's
37283         error function would report the program name as
37284         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37285         * modules/progname (configure.ac): Check for a declaration of
37286         program_invocation_name.
37287         * lib/progname.c:  Include <errno.h>.
37288         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37289         Set program_invocation_name.
37290
37291 2009-08-23  Bruno Haible  <bruno@clisp.org>
37292
37293         * lib/dup3.c: Include <string.h>.
37294
37295 2009-08-23  Bruno Haible  <bruno@clisp.org>
37296
37297         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37298         * lib/pipe2.c (pipe2): Likewise.
37299         Suggested by Eric Blake.
37300
37301 2009-08-23  Bruno Haible  <bruno@clisp.org>
37302
37303         Tolerate declared but missing dup3 syscall.
37304         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37305         * lib/unistd.in.h (dup3): If the function is already present,
37306         override it.
37307         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37308         * modules/dup3 (Makefile.am): Compile dup3.c always.
37309         Reported by Paolo Bonzini.
37310
37311 2009-08-23  Bruno Haible  <bruno@clisp.org>
37312
37313         Tolerate declared but missing pipe2 syscall.
37314         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37315         available.
37316         * lib/unistd.in.h (pipe2): If the function is already present,
37317         override it.
37318         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37319         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37320         Reported by Paolo Bonzini.
37321
37322 2009-08-23  Bruno Haible  <bruno@clisp.org>
37323
37324         * lib/pipe2.c (pipe2): Move #ifs inside function.
37325
37326 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37327
37328         quotearg: document limitations of quote_these_too
37329         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37330         those limitations are created.
37331         * lib/quotearg.h (set_char_quoting): Document that digits and
37332         letters that are special after backslash are not permitted.
37333         (quotearg_char): Cross-reference set_char_quoting documentation.
37334
37335 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37336
37337         quotearg: implement custom_quoting_style
37338         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37339         right_quote fields.
37340         (set_custom_quoting): New public function.
37341         (quotearg_buffer_restyled): Add left_quote and right_quote
37342         arguments, handle them very much like locale quoting, and update
37343         all uses.
37344         (quotearg_n_custom): New public function.
37345         (quotearg_n_custom_mem): New public function.
37346         (quotearg_custom): New public function.
37347         (quotearg_custom_mem): New public function.
37348         * lib/quotearg.h: Prototype and document new public functions.
37349         (enum quoting_style): For escape_quoting_style and
37350         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37351         ignored even though they're otherwise like c_quoting_style.
37352         Add custom_quoting_style member and document with comparison to
37353         clocale_quoting_style.
37354         * tests/test-quotearg.c (custom_quotes): New array.
37355         (custom_results): New array.
37356         (main): Extend to test custom quoting.
37357
37358 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37359
37360         quotearg: fix right quote escaping when it's in quote_these_too
37361         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37362         quote, be sure to prepend only one backslash.
37363         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37364         (main): Test it.
37365
37366 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37367
37368         quotearg-tests: test escaping of embedded locale quotes
37369         * tests/test-quotearg.c (struct result_strings): Add member for
37370         new input.
37371         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37372         (inputs): Add new input.
37373         (results_g): Add expected results.
37374         (flag_results): Likewise.
37375         (locale_results): Likewise.
37376         (compare_strings): Check those.
37377
37378 2009-08-23  Bruno Haible  <bruno@clisp.org>
37379
37380         Tests for module 'dup3'.
37381         * modules/dup3-tests: New file.
37382         * tests/test-dup3.c: New file.
37383
37384         New module 'dup3'.
37385         * lib/unistd.in.h (dup3): New declaration.
37386         * lib/dup3.c: New file.
37387         * m4/dup3.m4: New file.
37388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37389         HAVE_DUP3.
37390         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37391         * modules/dup3: New file.
37392         * doc/glibc-functions/dup3.texi: Mention the new module.
37393
37394 2009-08-23  Bruno Haible  <bruno@clisp.org>
37395
37396         Tweak the dup2 test.
37397         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37398         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37399         the test file is still empty. Fix argument order of lseek.
37400
37401 2009-08-23  Bruno Haible  <bruno@clisp.org>
37402
37403         Avoid test link errors when the modules getopt-gnu, gettext are used.
37404         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37405         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37406
37407 2009-08-23  Bruno Haible  <bruno@clisp.org>
37408
37409         Fix getdtablesize() on mingw.
37410         * lib/getdtablesize.c (getdtablesize): Implement differently.
37411         * lib/unistd.in.h (getdtablesize): Improve comment.
37412
37413 2009-08-23  Bruno Haible  <bruno@clisp.org>
37414
37415         New module 'mkostemp'.
37416         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37417         * lib/stdlib.in.h (mksotemp): New declaration.
37418         * lib/mkostemp.c: New file, from glibc with modifications.
37419         * lib/tempname.h (GT_FILE): Remove outdated comment.
37420         (gen_tempname): Add flags argument.
37421         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37422         (__GT_FILE): Map to 1.
37423         (small_open, large_open): Remove macros.
37424         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37425         * lib/mkstemp.c (mkstemp): Update.
37426         * lib/mkdtemp.c (mkdtemp): Likewise.
37427         * m4/mkostemp.m4: New file.
37428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37429         HAVE_MKOSTEMP.
37430         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37431         HAVE_MKOSTEMP.
37432         * modules/mkostemp: New file, based on modules/mkstemp.
37433         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37434         * NEWS: Mention the change.
37435
37436 2009-08-23  Bruno Haible  <bruno@clisp.org>
37437
37438         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37439         Reported by Eric Blake.
37440
37441 2009-08-23  Bruno Haible  <bruno@clisp.org>
37442
37443         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37444         Reported by Eric Blake.
37445
37446 2009-08-23  Bruno Haible  <bruno@clisp.org>
37447
37448         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37449         * modules/pipe2 (Depends-on): Likewise.
37450
37451 2009-08-23  Eric Blake  <ebb9@byu.net>
37452
37453         fcntl-h: add O_TTY_INIT support
37454         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37455         * tests/test-fcntl-h.c (o): Test it.
37456         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37457
37458         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37459         * modules/fcntl: Move <fcntl.h> header replacement...
37460         * modules/fcntl-h: ...to new name, so as not to collide with
37461         like-named function.
37462         * tests/test-fcntl.c: Rename...
37463         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37464         * modules/fcntl-tests: Rename...
37465         * modules/fcntl-h-tests: ...to this.  Update test file name.
37466         * modules/chdir-long (Depends-on): Update clients.
37467         * modules/chdir-safer (Depends-on): Likewise.
37468         * modules/fcntl-safer (Depends-on): Likewise.
37469         * modules/fts (Depends-on): Likewise.
37470         * modules/mkancesdirs (Depends-on): Likewise.
37471         * modules/mkdir-p (Depends-on): Likewise.
37472         * modules/open (Depends-on): Likewise.
37473         * modules/savewd (Depends-on): Likewise.
37474         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37475         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37476
37477 2009-08-22  Bruno Haible  <bruno@clisp.org>
37478
37479         * modules/binary-io (License): Relicense under LGPL.
37480         * modules/pipe2 (License): Likewise.
37481
37482 2009-08-22  Bruno Haible  <bruno@clisp.org>
37483
37484         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37485         return value.
37486         * lib/pipe-filter-gi.c (filter_init): Likewise.
37487         Reported by Eric Blake.
37488
37489 2009-08-22  Bruno Haible  <bruno@clisp.org>
37490
37491         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37492         * modules/pipe (Depends-on): Add pipe2.
37493
37494 2009-08-22  Bruno Haible  <bruno@clisp.org>
37495
37496         Tests for module 'pipe2'.
37497         * modules/pipe2-tests: New file.
37498         * tests/test-pipe2.c: New file.
37499
37500         New module 'pipe2'.
37501         * lib/unistd.in.h (pipe2): New declaration.
37502         * lib/pipe2.c: New file.
37503         * m4/pipe2.m4: New file.
37504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37505         HAVE_PIPE2.
37506         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37507         * modules/pipe2: New file.
37508         * doc/glibc-functions/pipe2.texi: Mention the new module.
37509
37510 2009-08-22  Bruno Haible  <bruno@clisp.org>
37511
37512         Reference some new glibc functions.
37513         * doc/glibc-functions/accept4.texi: New file.
37514         * doc/glibc-functions/dup3.texi: New file.
37515         * doc/glibc-functions/mkostemp.texi: New file.
37516         * doc/glibc-functions/pipe2.texi: New file.
37517         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37518         (Glibc sys/socket.h): Refer to accept4.
37519         (Glibc unistd.h): Refer to dup3, pipe2.
37520         Reported by Eric Blake.
37521
37522 2009-08-22  Jim Meyering  <meyering@redhat.com>
37523             Bruno Haible  <bruno@clisp.org>
37524
37525         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37526         This makes it so packages using automake-1.11's silent-rules option
37527         can print e.g., a single "GEN    configmake.h" line, rather than
37528         the 30+ statements that perform the job.  If you want to see the
37529         actual commands, you can still run "make V=1".
37530         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37531         so that make output is abbreviated when those variables are defined
37532         appropriately.
37533         * modules/argz: Likewise.
37534         * modules/arpa_inet: Likewise.
37535         * modules/byteswap: Likewise.
37536         * modules/configmake: Likewise.
37537         * modules/dirent: Likewise.
37538         * modules/errno: Likewise.
37539         * modules/fcntl: Likewise.
37540         * modules/float: Likewise.
37541         * modules/fnmatch: Likewise.
37542         * modules/getopt-posix: Likewise.
37543         * modules/glob: Likewise.
37544         * modules/iconv_open: Likewise.
37545         * modules/inttypes: Likewise.
37546         * modules/localcharset: Likewise.
37547         * modules/locale: Likewise.
37548         * modules/math: Likewise.
37549         * modules/netdb: Likewise.
37550         * modules/netinet_in: Likewise.
37551         * modules/poll: Likewise.
37552         * modules/posix_spawnp-tests: Likewise.
37553         * modules/sched: Likewise.
37554         * modules/search: Likewise.
37555         * modules/selinux-h: Likewise.
37556         * modules/signal: Likewise.
37557         * modules/spawn: Likewise.
37558         * modules/stdarg: Likewise.
37559         * modules/stdbool: Likewise.
37560         * modules/stddef: Likewise.
37561         * modules/stdint: Likewise.
37562         * modules/stdio: Likewise.
37563         * modules/stdlib: Likewise.
37564         * modules/string: Likewise.
37565         * modules/strings: Likewise.
37566         * modules/sys_file: Likewise.
37567         * modules/sys_ioctl: Likewise.
37568         * modules/sys_select: Likewise.
37569         * modules/sys_socket: Likewise.
37570         * modules/sys_stat: Likewise.
37571         * modules/sys_time: Likewise.
37572         * modules/sys_times: Likewise.
37573         * modules/sys_utsname: Likewise.
37574         * modules/sys_wait: Likewise.
37575         * modules/sysexits: Likewise.
37576         * modules/time: Likewise.
37577         * modules/unistd: Likewise.
37578         * modules/wchar: Likewise.
37579         * modules/wctype: Likewise.
37580
37581 2009-08-22  Jim Meyering  <meyering@redhat.com>
37582
37583         announce-gen: detect write failure
37584         * build-aux/announce-gen: Add Coda at end.
37585         Remove equivalent-but-more-verbose block at top.
37586
37587 2009-08-19  Akim Demaille  <demaille@gostai.com>
37588
37589         bootstrap: --help to stdout.
37590         * bootstrap (usage): Don't send --help to stderr.
37591         Use a here doc instead of a long string.
37592
37593 2009-08-21  Eric Blake  <ebb9@byu.net>
37594
37595         test-popen-safer: split from test-popen
37596         * tests/test-popen.c (main): Move...
37597         * tests/test-popen.h: ...into new file.
37598         * tests/test-popen-safer2.c: New file.
37599         * modules/popen-tests (Files): Add test-popen.h.
37600         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37601         Suggested by Bruno Haible.
37602
37603         test-fcntl-safer: split from test-open
37604         * tests/test-open.c (main): Move...
37605         * tests/test-open.h: ...into new file.
37606         * tests/test-fcntl-safer.c: New file.
37607         * modules/open-tests (Files): Add test-open.h.
37608         * modules/fcntl-safer-tests: New file.
37609         Suggested by Bruno Haible.
37610
37611         test-fopen-safer: split from test-fopen
37612         * tests/test-fopen.c (main): Move...
37613         * tests/test-fopen.h: ...into new file.
37614         * tests/test-fopen-safer.c: New file.
37615         * modules/fopen-tests (Files): Add test-fopen.h.
37616         * modules/fopen-safer-tests: New file.
37617         Suggested by Bruno Haible.
37618
37619 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37620
37621         popen-safer: test O_CLOEXEC at run-time.
37622         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37623
37624 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37625
37626         fcntl: move more flags to the header
37627         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37628         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37629         * lib/fcntl.in.h: Do both things here.
37630
37631 2009-08-21  Jim Meyering  <meyering@redhat.com>
37632
37633         consistently remove $@-t before redirecting to it
37634         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37635         * modules/alloca-opt: Likewise.
37636         * modules/byteswap: Likewise.
37637         * modules/fnmatch: Likewise.
37638         * modules/getopt-posix: Likewise.
37639         * modules/glob: Likewise.
37640         * modules/poll: Likewise.
37641         * modules/posix_spawnp-tests: Likewise.
37642         * modules/sys_socket: Likewise.
37643         * modules/sysexits: Likewise.
37644
37645 2009-08-21  Eric Blake  <ebb9@byu.net>
37646
37647         popen: simplify access to original popen
37648         * lib/popen.c (rpl_popen): No need to worry about popen being a
37649         macro.
37650         Reported by Bruno Haible.
37651
37652 2009-08-20  Eric Blake  <ebb9@byu.net>
37653
37654         build: avoid some compiler warnings
37655         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37656         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37657         type.
37658         (new_exclude_segment, excluded_file_pattern_p)
37659         (excluded_file_name_p): Reduce scope.
37660         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37661         old-style declaration.
37662
37663 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37664
37665         * tests/test-exclude1.sh: Handle Windows EOL.
37666         * tests/test-exclude2.sh: Likewise.
37667         * tests/test-exclude3.sh: Likewise.
37668         * tests/test-exclude4.sh: Likewise.
37669         * tests/test-exclude5.sh: Likewise.
37670         * tests/test-exclude6.sh: Likewise.
37671         * tests/test-exclude7.sh: Likewise.
37672
37673 2009-08-19  Akim Demaille  <demaille@gostai.com>
37674
37675         bootstrap: find sha1sum when named gsha1sum.
37676         * bootstrap (find_tool): New.
37677         ($SHA1SUM): New.
37678         Use it.
37679
37680 2009-08-20  Jim Meyering  <meyering@redhat.com>
37681
37682         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37683         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37684         expression that converts "." in a file name to "\." in the resulting
37685         regexp.  Start with a dummy statement, so that prior shell variable
37686         definitions are expanded portably.  Reported by Simon Josefsson.
37687
37688 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37689
37690         Fix polling for writeability of a screen buffer.
37691         * lib/poll.c: Distinguish input and screen buffers for the
37692         Win32 implementation.
37693         * lib/select.c: Likewise.
37694
37695 2009-08-19  Eric Blake  <ebb9@byu.net>
37696
37697         popen-safer: prevent popen from clobbering std descriptors
37698         * modules/popen-safer: New file.
37699         * lib/popen-safer.c: Likewise.
37700         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37701         * lib/stdio--.h (popen): Provide override.
37702         * lib/stdio-safer.h (popen_safer): Provide declaration.
37703         * tests/test-popen.c (includes): Partially test this.
37704         * modules/popen-safer-tests: New file, for more tests.
37705         * tests/test-popen-safer.c: Likewise.
37706         * MODULES.html.sh (file stream based Input/Output): Mention it.
37707
37708         tests: test some of the *-safer modules
37709         * modules/fopen-safer (Depends-on): Add fopen.
37710         * modules/fcntl-safer (Depends-on): Add fcntl.
37711         * modules/stdlib-safer (Depends-on): Add stdlib.
37712         (configure.ac): Set indicator.
37713         * modules/unistd-safer (configure.ac): Likewise.
37714         * modules/tmpfile-safer (configure.ac): Likewise.
37715         (Depends-on): Add tmpfile.
37716         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37717         active.
37718         * tests/test-fopen.c (includes): Test safer versions when they are
37719         in use.
37720         * tests/test-open.c (includes): Likewise.
37721
37722         popen: fix cygwin 1.5 bug when stdin closed
37723         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37724         * modules/popen: New file.
37725         * modules/popen-tests: Likewise.
37726         * tests/test-popen.c: Likewise.
37727         * m4/popen.m4: Likewise.
37728         * lib/popen.c: Likewise.
37729         * lib/stdio.in.h (popen): New declaration.
37730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37731         * modules/stdio (Makefile.am): Likewise.
37732         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37733
37734 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37735
37736         maint.mk: give full control over update-copyright exclusions
37737         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37738         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37739         (update-copyright): Don't force inclusion of top-level
37740         ChangeLog.  Don't force exclusion of all COPYING files, but make
37741         them the default exclusion instead.
37742
37743 2009-08-16  Bruno Haible  <bruno@clisp.org>
37744
37745         Fix test failures on Solaris 10.
37746         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37747         tests when Solaris iconv() is used.
37748         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37749         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37750         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37751         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37752         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37753
37754 2009-08-16  Bruno Haible  <bruno@clisp.org>
37755
37756         Fix test failures on Solaris 10.
37757         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37758         'tr' program and pass it as first argument.
37759         * tests/test-pipe-filter-gi1.sh: Likewise.
37760         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37761         program as first argument.
37762         * tests/test-pipe-filter-gi1.c (main): Likewise.
37763
37764 2009-08-16  Eric Blake  <ebb9@byu.net>
37765
37766         fpurge: fix previous commits
37767         * modules/fpurge (Makefile.am): Make replacement conditional,
37768         partially reverting 2007-04-29 change; missed in previous
37769         attempt.
37770         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37771         is missing.
37772
37773 2009-08-16  Bruno Haible  <bruno@clisp.org>
37774
37775         Clarify fpurge's effect on the file position.
37776         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37777         * tests/test-fpurge.c (main): Make a second pass for checking the file
37778         position.
37779
37780 2009-08-16  Bruno Haible  <bruno@clisp.org>
37781
37782         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37783         declaration of fpurge is missing.
37784         * tests/test-fpurge.c (main): Check that the file has not more contents
37785         than expected. Close the file before removing it.
37786
37787 2009-08-15  Eric Blake  <ebb9@byu.net>
37788
37789         fpurge: don't wrap working cygwin implementation
37790         * lib/fpurge.c (fpurge): Fix comment typo.
37791         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37792         1.7 to avoid replacement.
37793         * tests/test-fpurge.c (main): Enhance test.
37794
37795 2009-08-15  Eric Blake  <ebb9@byu.net>
37796         and Jim Meyering  <meyering@redhat.com>
37797
37798         test-update-copyright: skip if perl is insufficient
37799         * tests/test-update-copyright.sh: Failure to run maintainer tool
37800         should not cause testsuite failure on cygwin 1.5.
37801
37802 2009-08-14  Eric Blake  <ebb9@byu.net>
37803
37804         doc: mention more functions added in cygwin 1.7.0
37805         * doc/posix-headers/limits.texi (limits.h): Update for recent
37806         cygwin additions.
37807         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37808         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37809         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37810         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37811         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37812
37813 2009-08-14  Eric Blake  <ebb9@byu.net>
37814
37815         maint.mk: simplify update-copyright rule
37816         * top/maint.mk (update-copyright-local): Delete, and document how
37817         to do it in cfg.mk instead.
37818         (update-copyright-exclude-regexp): Delete, and document how to do
37819         it in .x-update-copyright instead.
37820         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37821         exclude ChangeLog.
37822
37823 2009-08-14  Bruno Haible  <bruno@clisp.org>
37824
37825         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37826
37827 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37828
37829         maint.mk: support update-copyright-env
37830         * top/maint.mk (update-copyright-env): Define place-holder.
37831         (update-copyright): Expand $(update-copyright-env) before
37832         invoking update-copyright.
37833
37834 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37835
37836         update-copyright: implement forced reformatting
37837         * build-aux/update-copyright: Implement and document
37838         UPDATE_COPYRIGHT_FORCE.
37839         * tests/test-update-copyright.sh: Test it.
37840
37841 2009-08-14  Eric Blake  <ebb9@byu.net>
37842         and Bruno Haible  <bruno@clisp.org>
37843
37844         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37845         * tests/test-locale.c: Revert previous patch related to NULL.
37846         * tests/test-stdio.c: Likewise.
37847         * tests/test-stdlib.c: Likewise.
37848         * tests/test-string.c: Likewise.
37849         * tests/test-unistd.c: Likewise.
37850         * modules/time-tests (Depends-on): Add verify.
37851         * modules/wchar-tests (Depends-on): Likewise.
37852         * tests/test-time.c: Test for NULL compliance.
37853         * tests/test-wchar.c: Likewise.
37854         * modules/locale (Depends-on): Add stddef.
37855         * modules/stdio (Depends-on): Likewise.
37856         * modules/stdlib (Depends-on): Likewise.
37857         * modules/string (Depends-on): Likewise.
37858         * modules/time (Depends-on): Likewise.
37859         * modules/unistd (Depends-on): Likewise.
37860         * modules/wchar (Depends-on): Likewise.
37861         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37862         * lib/stdlib.in.h (includes): Likewise.
37863         * lib/string.in.h (includes): Likewise.
37864         * lib/time.in.h (includes): Likewise.
37865         * lib/unistd.in.h (includes): Likewise.
37866         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37867         replaced.
37868         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37869         * m4/stddef_h.m4: New file.
37870         * modules/stddef: Likewise.
37871         * lib/stddef.in.h: Likewise.
37872         * modules/stddef-tests: Likewise.
37873         * tests/test-stddef.c: Likewise.
37874         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37875         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37876         * doc/posix-headers/locale.texi (locale.h): Likewise.
37877         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37878         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37879         * doc/posix-headers/string.texi (string.h): Likewise.
37880         * doc/posix-headers/time.texi (time.h): Likewise.
37881         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37882         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37883
37884 2009-08-14  Eric Blake  <ebb9@byu.net>
37885
37886         doc: improve git diff of texinfo files
37887         * .gitattributes: Add rule for *.texi files, with hint on how to
37888         use it.
37889         Copied from m4, and based on a report by Bruno Haible.
37890
37891 2009-08-14  Bruno Haible  <bruno@clisp.org>
37892
37893         Disable multithread support by default on Cygwin 1.5.x for real.
37894         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37895
37896 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37897
37898         update-copyright: much ado about intervals
37899         * build-aux/update-copyright: Implement and document
37900         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37901         of copyright year intervals.
37902         Also, document UPDATE_COPYRIGHT_YEAR.
37903         * tests/test-update-copyright.sh: Test it.
37904
37905         update-copyright: convert 2-digit to 4-digit years
37906         * build-aux/update-copyright: Implement and document.
37907         * tests/test-update-copyright.sh: Update.
37908
37909 2009-08-14  Jim Meyering  <meyering@redhat.com>
37910
37911         test-exclude: avoid coreutils "make check" failure
37912         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37913         just as in test-argmatch.c.
37914
37915 2009-08-13  Eric Blake  <ebb9@byu.net>
37916
37917         test-dup2: fix bad assumption
37918         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37919         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37920
37921         test-version-etc: fix CRLF portability issue
37922         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37923         recognize \r.
37924         * tests/test-argp-version-etc-1.sh: Likewise.
37925
37926         getopt: update client modules
37927         * modules/argp (Depends-on): Use getopt-gnu.
37928         * modules/git-merge-changelog (Depends-on): Likewise.
37929         * modules/long-options (Depends-on): Likewise.
37930         * modules/xstrtol (Depends-on): Likewise.
37931
37932 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37933
37934         * tests/test-version-etc.sh: Don't fail on different
37935         project/version.  Don't fail on CRLF differences.  Rewrite to use
37936         multiple -e instead of multiple sed forks, suggested by Eric Blake
37937         <ebb9@byu.net>.
37938         * tests/test-argp-version-etc-1.sh: Likewise.
37939
37940 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37941
37942         * tests/test-version-etc.sh: Don't fail on different
37943         project/version.
37944
37945 2009-08-12  Bruno Haible  <bruno@clisp.org>
37946
37947         Tests for modules 'getopt-posix', 'getopt-gnu'.
37948         * modules/getopt-posix-tests: New file.
37949         * tests/test-getopt.c: New file.
37950         * tests/test-getopt.h: New file.
37951         * tests/test-getopt_long.h: New file.
37952
37953         New modules 'getopt-posix', 'getopt-gnu'.
37954         * modules/getopt-gnu: New file, renamed from modules/getopt.
37955         * modules/getopt-posix: New file.
37956         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37957         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37958         (gl_GETOPT): Remove macro.
37959         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37960         Disable the test against BSD systems that declare optreset. Test
37961         against mingw bug. Test against lack of support of optional arguments
37962         on many platforms.
37963         * doc/glibc-headers/getopt.texi: Update module name and list of
37964         relevant platforms.
37965         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37966         'getopt-gnu' and more portability problems.
37967         * NEWS: Mention the changes.
37968
37969 2009-08-12  Bruno Haible  <bruno@clisp.org>
37970
37971         Ensure that optarg etc. get declared by <unistd.h>.
37972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37973         AC_USE_SYSTEM_EXTENSIONS.
37974         * modules/getopt (Depends-on): Add 'extensions'.
37975
37976 2009-08-12  Bruno Haible  <bruno@clisp.org>
37977
37978         Avoid test link errors.
37979         * modules/pipe-filter-ii-tests (Makefile.am): Define
37980         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37981         * modules/pipe-filter-gi-tests (Makefile.am): Define
37982         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37983         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37984
37985 2009-08-12  Bruno Haible  <bruno@clisp.org>
37986
37987         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37988         gl_GETOPT_SUBSTITUTE before.
37989         (gl_GETOPT): Use it.
37990         * m4/argp.m4 (gl_ARGP): Update.
37991         Reported by Sergey Poznyakoff.
37992
37993         * m4/getopt.m4: Reorder macros.
37994         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37995         (gl_GETOPT_SUBSTITUTE): Remove macro.
37996
37997 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37998
37999         Minor improvement in gitlog-to-changelog
38000
38001         * build-aux/gitlog-to-changelog: New option `--format' makes
38002         output format string configurable.
38003
38004 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38005
38006         Optimize exclude: use hash tables for non-wildcard patterns.
38007
38008         * lib/exclude.c: Include hash.h and mbuiter.h
38009         (struct exclude_pattern, exclude_segment): New data types.
38010         (struct exclude): Rewrite.
38011         (fnmatch_pattern_has_wildcards): New function.
38012         (new_exclude_segment, free_exclude_segment): New functions.
38013         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38014         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38015         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38016         * modules/exclude: Depend on hash and mbuiter.
38017
38018         * modules/exclude-tests: New file.
38019         * tests/test-exclude.c: New file.
38020         * tests/test-exclude1.sh: New file.
38021         * tests/test-exclude2.sh: New file.
38022         * tests/test-exclude3.sh: New file.
38023         * tests/test-exclude4.sh: New file.
38024         * tests/test-exclude5.sh: New file.
38025         * tests/test-exclude6.sh: New file.
38026         * tests/test-exclude7.sh: New file.
38027
38028 2009-08-12  Bruno Haible  <bruno@clisp.org>
38029
38030         Ensure that getopt() gets declared by <unistd.h>.
38031         * lib/unistd.in.h: Conditionally include getopt.h.
38032         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38033         Set GNULIB_UNISTD_H_GETOPT.
38034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38035         GNULIB_UNISTD_H_GETOPT.
38036         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38037
38038 2009-08-12  Bruno Haible  <bruno@clisp.org>
38039
38040         Clarify logic.
38041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38042         gl_replace_getopt instead of GETOPT_H.
38043
38044 2009-08-12  Bruno Haible  <bruno@clisp.org>
38045
38046         * m4/getopt.m4: Add comments.
38047
38048 2009-08-12  Bruno Haible  <bruno@clisp.org>
38049
38050         Disable multithread support by default on Cygwin 1.5.x.
38051         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38052         set gl_use_threads=no if not specified otherwise.
38053
38054 2009-08-11  Bruno Haible  <bruno@clisp.org>
38055
38056         Avoid compilation error on NetBSD 5.0.
38057         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38058         * tests/test-stdio.c: Likewise.
38059         * tests/test-stdlib.c: Likewise.
38060         * tests/test-string.c: Likewise.
38061         * tests/test-unistd.c: Likewise.
38062         Reported by Greg Troxel <gdt@ir.bbn.com>
38063         at <https://savannah.gnu.org/support/?106973>.
38064
38065 2009-08-11  Bruno Haible  <bruno@clisp.org>
38066
38067         * modules/dup2-tests (Depends-on): Remove close.
38068
38069         Undo 2009-07-19 commit.
38070         * modules/acl-tests (Depends-on): Remove close.
38071         * modules/binary-io-tests (Depends-on): Likewise.
38072         * modules/closein-tests (Depends-on): Likewise.
38073         * modules/flock-tests (Depends-on): Likewise.
38074         * modules/fsync-tests (Depends-on): Likewise.
38075         * modules/lseek-tests (Depends-on): Likewise.
38076         * modules/pipe-tests (Depends-on): Likewise.
38077         * modules/posix_spawn-tests (Depends-on): Likewise.
38078         * modules/posix_spawnp-tests (Depends-on): Likewise.
38079         * modules/stat-time-tests (Depends-on): Likewise.
38080         * modules/yesno-tests (Depends-on): Likewise.
38081
38082 2009-08-10  Bruno Haible  <bruno@clisp.org>
38083
38084         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38085
38086 2009-08-10  Bruno Haible  <bruno@clisp.org>
38087
38088         Fix a gcc warning.
38089         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38090
38091 2009-08-10  Bruno Haible  <bruno@clisp.org>
38092
38093         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38094         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38095         not only the first time.
38096         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38097         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38098         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38099         is 1, not only the the first time.
38100
38101 2009-08-10  Bruno Haible  <bruno@clisp.org>
38102
38103         Make it possible to use module 'gethostname' without module 'close'.
38104         * lib/unistd.in.h (close): Evoke a link error only if
38105         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38107         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38108         * modules/unistd (Makefile.am): Substitute
38109         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38110         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38111         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38112         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38113         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38114         * modules/sys_ioctl (Makefile.am): Substitute
38115         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38116         * modules/socket (configure.ac): On native Windows, set
38117         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38118         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38119         Reported by Sam Steingold <sds@gnu.org>.
38120
38121 2009-08-10  Bruno Haible  <bruno@clisp.org>
38122
38123         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38124         * modules/ioctl (configure.ac): Likewise.
38125
38126 2009-08-10  Bruno Haible  <bruno@clisp.org>
38127
38128         Avoid collision between gnulib wrapper and libintl wrapper.
38129         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38130         already defined in intl/printf.c.
38131         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38132         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38133
38134 2009-08-09  Bruno Haible  <bruno@clisp.org>
38135
38136         Make <sys/select.h> really self-contained, also on Solaris 10.
38137         * lib/sys_select.in.h: Include <string.h>.
38138         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38139         Solaris 10 problem.
38140         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38141         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38142         Reported by Jim Meyering.
38143
38144 2009-08-09  Bruno Haible  <bruno@clisp.org>
38145
38146         Avoid warnings from 'aclocal' that are due to a use of macro name
38147         AM_XGETTEXT_OPTION that is not defined in automake.
38148         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38149         automake.
38150         * modules/error (configure.ac): Likewise.
38151         * modules/propername (configure.ac): Likewise.
38152         * modules/vasprintf (configure.ac): Likewise.
38153         * modules/verror (configure.ac): Likewise.
38154         * modules/xprintf (configure.ac): Likewise.
38155         * modules/xvasprintf (configure.ac): Likewise.
38156
38157 2009-08-08  Bruno Haible  <bruno@clisp.org>
38158
38159         Avoid compilation error in C++ mode.
38160         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38161         Reported by Sam Steingold <sds@gnu.org>.
38162
38163 2009-08-08  Bruno Haible  <bruno@clisp.org>
38164
38165         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38166         for the various Unix platforms.
38167         * doc/posix-headers/limits.texi: Update platforms list regarding
38168         HOST_NAME_MAX.
38169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38170
38171 2009-08-07  Jim Meyering  <meyering@redhat.com>
38172
38173         selinux-at: fix typo in a comment
38174         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38175         Spotted by Paolo Bonzini.
38176
38177         selinux-at: remove redundant m4 code, add documentation
38178         * modules/selinux-at (configure.ac): Remove redundant code.
38179         LIB_SELINUX is already set via the dependent module, selinux-h.
38180         (Include): Add quotes around selinux-at.h.
38181         * lib/selinux-at.h: Add documentation.
38182         Reported by Bruno Haible in
38183         http://marc.info/?l=gnulib-bug&m=124958988300749
38184
38185 2009-08-07  Bruno Haible  <bruno@clisp.org>
38186
38187         Avoid link error on MacOS X 10.3 and 10.4.
38188         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38189         on non-ELF systems.
38190         * lib/argp-pv.c (argp_program_version): Likewise.
38191         Reported by Simon Josefsson.
38192
38193 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38194
38195         * tests/test-version-etc.sh: Use $EXEEXT.
38196
38197 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38198
38199         update-copyright: update documentation to point to maint.mk
38200         * build-aux/update-copyright: Here.
38201
38202 2009-08-06  Jim Meyering  <meyering@redhat.com>
38203
38204         maint.mk: support update-copyright-local
38205         * top/maint.mk (update-copyright-local): Define place-holder.
38206         (update-copyright): Depend on $(update-copyright-local).
38207
38208 2009-08-06  Jim Meyering  <meyering@redhat.com>
38209
38210         selinux-at: new module
38211         Initially written for coreutils, this module will soon be
38212         used by findutils, too.
38213         * MODULES.html.sh [Misc]: Add selinux-at.
38214         * lib/selinux-at.h: New file, from coreutils.
38215         * lib/selinux-at.c: Likewise.
38216         * modules/selinux-at: Likewise.
38217         (License): Change from LGPL to GPL, since it depends
38218         on the GPL'd openat module.
38219
38220         doc: update README
38221         * README: Remove references to cogito.
38222         Remove cvs-repo-updating instructions from 2007.
38223         Don't imply that CVS is better if you have limited disk space.
38224
38225 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38226
38227         update-copyright: support C-style comments
38228         * build-aux/update-copyright: Implement and document.
38229         * tests/test-update-copyright.sh: Test.
38230
38231 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38232
38233         update-copyright: support omitted "(C)"
38234         * build-aux/update-copyright: Implement and document.  Also,
38235         allow variable whitespace before "(C)".
38236         * tests/test-update-copyright.sh: Test.
38237
38238 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38239
38240         update-copyright: don't trip on non-FSF copyright statements
38241         * build-aux/update-copyright: Fix so that the first correctly
38242         formatted FSF copyright statement is recognized no matter what
38243         appears before it.  Update documentation.
38244         * tests/test-update-copyright.sh: Test that.
38245
38246 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38247
38248         update-copyright: clean up code a little
38249         * build-aux/update-copyright: Append "_re" to the name of any
38250         variable holding a regular expression.
38251         Replace "old" and "new" with "stmt" in variable names.
38252         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38253         handled correctly.
38254         Format code more consistently.
38255
38256 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38257
38258         update-copyright-tests: improve portability
38259         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38260         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38261
38262 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38263
38264         update-copyright: support @copyright{} and &copy;
38265         * build-aux/update-copyright: Implement and document.
38266         * tests/test-update-copyright.sh: Test.
38267
38268 2009-08-04  Jim Meyering  <meyering@redhat.com>
38269
38270         update-copyright-tests: correctly test EOL=\r\n handling
38271         * tests/test-update-copyright.sh: Put \r at the end of some lines
38272         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38273
38274         maint.mk: make update-copyright exclusion list more configurable
38275         * top/maint.mk (update-copyright): Default to excluding COPYING,
38276         but allow an override, in case someone does want to update that file.
38277
38278         maint.mk: don't update copyright date in COPYING
38279         * top/maint.mk (update-copyright): Exclude COPYING.
38280
38281         maint.mk: add a copyright-updating rule
38282         * top/maint.mk (update-copyright): New rule.
38283         Derived from coreutils/Makefile.am.
38284
38285         update-copyright: rename some variables
38286         * build-aux/update-copyright: Rename a few variables for clarity.
38287         Tweak syntax.  List Joel E. Denny as coauthor.
38288
38289 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38290
38291         update-copyright: fix bug for 2-digit last year and add tests
38292         * build-aux/update-copyright: Fix bug.
38293         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38294         specified.
38295         * modules/update-copyright-tests: New
38296         * tests/test-update-copyright.sh: New.
38297
38298 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38299
38300         update-copyright: handle leading tabs in line prefix
38301         * build-aux/update-copyright: Count leading tabs as 8 spaces
38302         when computing margin.  This helps with the formatting of
38303         ChangeLogs, for example.
38304         Fix documentation a little.
38305
38306 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38307
38308         update-copyright: support EOL=\r\n
38309         * build-aux/update-copyright: Implement that.
38310
38311 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38312
38313         update-copyright: automatically format copyright statements
38314         * build-aux/update-copyright: Implement that.
38315         Also, be a little more predictable and safer by always failing
38316         when the full copyright format is not perfectly recognized as an
38317         unbroken whole.  Discussed at
38318         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38319         Rewrite documentation.
38320
38321 2009-08-03  Bruno Haible  <bruno@clisp.org>
38322
38323         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38324
38325 2009-08-02  Bruno Haible  <bruno@clisp.org>
38326
38327         Tests for module 'uname'.
38328         * modules/uname-tests: New file.
38329         * tests/test-uname.c: New file.
38330
38331         New module 'uname'.
38332         * lib/uname.c: New file.
38333         * m4/uname.m4: New file.
38334         * modules/uname: New file.
38335         * doc/posix-functions/uname.texi: Mention the new module.
38336
38337 2009-08-02  Bruno Haible  <bruno@clisp.org>
38338
38339         Tests for module 'sys_utsname'.
38340         * modules/sys_utsname-tests: New file.
38341         * tests/test-sys_utsname.c: New file.
38342
38343         New module 'sys_utsname'.
38344         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38345         * m4/sys_utsname_h.m4: New file.
38346         * modules/sys_utsname: New file.
38347         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38348
38349 2009-08-02  Bruno Haible  <bruno@clisp.org>
38350
38351         Implicitly initialize the sockets library.
38352         * lib/gethostname.c: Include sockets.h.
38353         (rpl_gethostname): Invoke gl_sockets_startup.
38354         * lib/socket.c: Include sockets.h.
38355         (rpl_socket): Invoke gl_sockets_startup.
38356         * modules/gethostname (Depends-on): Add sockets.
38357         * modules/socket (Depends-on): Likewise.
38358         * tests/test-poll.c: Don't include sockets.h.
38359         (main): Don't invoke gl_sockets_startup.
38360         * tests/test-select.c: Don't include sockets.h.
38361         (main): Don't invoke gl_sockets_startup.
38362
38363 2009-08-02  Bruno Haible  <bruno@clisp.org>
38364
38365         Allow multiple calls to gl_sockets_startup.
38366         * lib/sockets.c (initialized_sockets_version): New variable.
38367         (gl_sockets_startup): Do nothing if already called for this or a higher
38368         version.
38369         (gl_sockets_cleanup): Reset initialized_sockets_version.
38370
38371 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38372
38373         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38374         different project/version.
38375
38376 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38377             Bruno Haible  <bruno@clisp.org>
38378
38379         Tests for module 'pipe-filter-gi'.
38380         * modules/pipe-filter-gi-tests: New file.
38381         * tests/test-pipe-filter-gi1.sh: New file.
38382         * tests/test-pipe-filter-gi1.c: New file.
38383         * tests/test-pipe-filter-gi2.sh: New file.
38384         * tests/test-pipe-filter-gi2-main.c: New file.
38385         * tests/test-pipe-filter-gi2-child.c: New file.
38386
38387         New module 'pipe-filter-gi'.
38388         * lib/pipe-filter-gi.c: New file.
38389         * modules/pipe-filter-gi: New file.
38390
38391 2009-08-02  Bruno Haible  <bruno@clisp.org>
38392             Paolo Bonzini  <bonzini@gnu.org>
38393
38394         Tests for module 'pipe-filter-ii'.
38395         * modules/pipe-filter-ii-tests: New file.
38396         * tests/test-pipe-filter-ii1.sh: New file.
38397         * tests/test-pipe-filter-ii1.c: New file.
38398         * tests/test-pipe-filter-ii2.sh: New file.
38399         * tests/test-pipe-filter-ii2-main.c: New file.
38400         * tests/test-pipe-filter-ii2-child.c: New file.
38401
38402         New module 'pipe-filter-ii'.
38403         * lib/pipe-filter.h: New file.
38404         * lib/pipe-filter-ii.c: New file.
38405         * lib/pipe-filter-aux.h: New file.
38406         * modules/pipe-filter-ii: New file.
38407
38408 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38409
38410         * lib/gc-libgcrypt.c: Change copyright to FSF.
38411         * lib/gc-gnulib.c: Likewise.
38412
38413 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38414
38415         * lib/gethostname.c: Include limits.h.
38416
38417 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38418             Bruno Haible  <bruno@clisp.org>
38419
38420         Ensure HOST_NAME_MAX as part of the gethostname module.
38421         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38422         define also HOST_NAME_MAX.
38423         * tests/test-gethostname.c: Include <limits.h>.
38424         (main): Check also HOST_NAME_MAX.
38425         * doc/posix-headers/limits.texi: Document the mingw problem.
38426
38427 2009-08-02  Bruno Haible  <bruno@clisp.org>
38428
38429         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38430         Add comments.
38431
38432 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38433
38434         * lib/gethostname.c: Add Windows wrapper.
38435         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38436         * modules/gethostname: Depend on sys_socket & errno, for also
38437         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38438         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38439
38440 2009-07-31  Jim Meyering  <meyering@redhat.com>
38441
38442         getloadavg: fix symbol name in comment
38443         * lib/getloadavg.c: Correct a typo I introduced when adding
38444         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38445         Matt Kraai spotted the problem.
38446
38447 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38448
38449         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38450         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38451         code also if ! defined N_NAME_POINTER.
38452         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38453         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38454         but the n_name member is a 12-byte array.
38455
38456 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38457
38458         update-copyright: generalize comment handling
38459         * build-aux/update-copyright: Handle copyright statements
38460         within more comment styles.
38461         Document usage.
38462         Report any file with an external copyright holder or parse failure.
38463
38464 2009-07-29  Jim Meyering  <meyering@redhat.com>
38465
38466         mktime: correct setting of REPLACE_MKTIME
38467         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38468
38469         update-copyright: new module
38470         * modules/update-copyright: New file.
38471         * build-aux/update-copyright: New file.
38472         * MODULES.html.sh (maint+release support): Add update-copyright.
38473
38474 2009-07-27  Bruno Haible  <bruno@clisp.org>
38475
38476         Fix compilation error when <ctime> is used and mktime is replaced.
38477         * lib/time.in.h (mktime): New declaration.
38478         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38479         REPLACE_MKTIME instead of defining mktime in config.h.
38480         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38481         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38482         Reported by Ross McFarland <rwmcfa1@neces.com>.
38483
38484 2009-07-27  Bruno Haible  <bruno@clisp.org>
38485
38486         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38487         Reported by Matt Kraai <mkraai@beckman.com>.
38488
38489 2009-07-25  Jim Meyering  <meyering@redhat.com>
38490
38491         maint.mk: avoid warnings about missing files
38492         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38493         diagnostic when .prev-version does not exist.
38494         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38495         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38496         nonexistent cfg.mk.
38497         Suggestions from Simon Josefsson.
38498
38499 2009-07-25  Bruno Haible  <bruno@clisp.org>
38500
38501         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38502         defined as macros. Needed on QNX 6.4.1.
38503         Reported by Matt Kraai <mkraai@beckman.com>.
38504
38505 2009-07-23  Jim Meyering  <meyering@redhat.com>
38506
38507         maint.mk: invoke "make dist" with a working value of XZ_OPT
38508         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38509
38510 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38511
38512         Make fseeko.c compile on QNX.
38513         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38514
38515 2009-07-22  Peter Simons  <simons@cryp.to>
38516
38517         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38518         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38519         * lib/md4.h: Likewise.
38520         * lib/md5.h: Likewise.
38521         * lib/sha1.h: Likewise.
38522         * lib/sha256.h: Likewise.
38523         * lib/sha512.h: Likewise.
38524
38525         tests-sha1: don't assign literal string to 'char *' variable
38526         * tests/test-sha1.c (main): Declare locals with "const" to match
38527         attributes of the right hand side.
38528
38529 2009-07-21  Eric Blake  <ebb9@byu.net>
38530
38531         dup2: fix more mingw problems
38532         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38533         fd to itself.
38534         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38535         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38536         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38537         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38538         care of mingw bugs.
38539
38540 2009-07-21  Jim Meyering  <meyering@redhat.com>
38541
38542         vc-list-files: avoid failure when /bin/sh is dash
38543         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38544         On some Debian based systems, /bin/sh is a symlink to dash, and running
38545         this command would omit the "/" following each 'tests' prefix:
38546           dash -x build-aux/vc-list-files -C . tests
38547         That is because bash and dash work differently:
38548           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38549           bash ok
38550           dash odd
38551
38552 2009-07-21  Eric Blake  <ebb9@byu.net>
38553
38554         dup2-tests: test previous patch
38555         * modules/dup2-tests: New file.
38556         * tests/test-dup2.c: Likewise.
38557         * tests/test-open.c (main): Avoid unspecified behavior.
38558         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38559         test.
38560
38561         dup2: work around mingw and cygwin 1.5 bug
38562         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38564         * modules/unistd (Makefile.am): Substitute it.
38565         * lib/unistd.in.h (dup2): Declare the replacement.
38566         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38567         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38568         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38569         * modules/execute (Depends-on): Add dup2.
38570         * modules/fseterr (Depends-on): Likewise.
38571         * modules/pipe (Depends-on): Likewise.
38572         * modules/posix_spawn-internal (Depends-on): Likewise.
38573
38574 2009-07-21  Bruno Haible  <bruno@clisp.org>
38575
38576         * modules/.gitattributes: New file.
38577
38578 2009-07-20  Bruno Haible  <bruno@clisp.org>
38579
38580         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38581         (main): Use it.
38582
38583 2009-07-20  Eric Blake  <ebb9@byu.net>
38584
38585         test-pipe: make a bit more robust.
38586         * tests/test-pipe.c (myerr): Allow error messages regardless of
38587         what we do to stderr.
38588         (test_pipe): Rearrange to avoid deadlock.
38589         (child_main): Try a larger read, to ensure we avoided deadlock.
38590         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38591         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38592         if misused.
38593
38594 2009-07-19  Jim Meyering  <meyering@redhat.com>
38595
38596         fts: avoid false-positive cycle-detection
38597         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38598         for each new command line argument.
38599
38600 2009-07-19  Bruno Haible  <bruno@clisp.org>
38601
38602         Fix build error on mingw with the modules sys_select and unistd.
38603         * modules/acl-tests (Depends-on): Add close.
38604         * modules/binary-io-tests (Depends-on): Likewise.
38605         * modules/closein-tests (Depends-on): Likewise.
38606         * modules/flock-tests (Depends-on): Likewise.
38607         * modules/fsync-tests (Depends-on): Likewise.
38608         * modules/lseek-tests (Depends-on): Likewise.
38609         * modules/pipe-tests (Depends-on): Likewise.
38610         * modules/posix_spawn-tests (Depends-on): Likewise.
38611         * modules/posix_spawnp-tests (Depends-on): Likewise.
38612         * modules/stat-time-tests (Depends-on): Likewise.
38613         * modules/yesno-tests (Depends-on): Likewise.
38614
38615 2009-07-19  Bruno Haible  <bruno@clisp.org>
38616
38617         Unify conditionals.
38618         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38619         macros, not at the compiler macros.
38620         * lib/pipe.c: Likewise.
38621         * lib/execute.c: Likewise.
38622         * lib/spawni.c: Likewise.
38623
38624 2009-07-19  Bruno Haible  <bruno@clisp.org>
38625
38626         Fix handling of closed stdin/stdout/stderr on mingw.
38627         * lib/w32spawn.h: Include unistd.h.
38628         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38629         file descriptor with O_NOINHERIT flag.
38630         (fd_safer_noinherit): New function, based on fd-safer.c.
38631         (dup_safer_noinherit): New function, based on dup-safer.c.
38632         (undup_safer_noinherit): New function.
38633         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38634         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38635         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38636         instead of fd_safer.
38637         * tests/test-pipe.c: Include <windows.h>.
38638         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38639         result.
38640
38641         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38642         from main.
38643         (test_pipe): Pass an extra argument for disambiguation.
38644         (main): Invoke parent_main or child_main.
38645
38646         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38647         consistently.
38648
38649 2009-07-18  Eric Blake  <ebb9@byu.net>
38650
38651         test-pipe: fix mingw build
38652         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38653
38654 2009-07-18  Bruno Haible  <bruno@clisp.org>
38655
38656         * modules/pipe-tests (Makefile.am): Fix typo.
38657
38658 2009-07-18  Eric Blake  <ebb9@byu.net>
38659
38660         error: fix mingw build
38661         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38662         Reported by Bruno Haible.
38663
38664         error: avoid undefined use of stdout
38665         * lib/error.c (error, error_at_line): Check that fd 1 is open
38666         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38667         is handling faults and the close_stdout module wants to report the
38668         detection of closed stdout as an error.
38669
38670 2009-07-17  Eric Blake  <ebb9@byu.net>
38671
38672         pipe: be robust in face of closed fds
38673         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38674         should cause child to misbehave.
38675         * modules/pipe-tests: New module.
38676         * tests/test-pipe.c: New file.
38677         * tests/test-pipe.sh: New file.
38678         Reported by Akim Demaille.
38679
38680 2009-07-14  Bruno Haible  <bruno@clisp.org>
38681
38682         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38683         Reported by anonymous kc.
38684
38685 2009-07-07  Jim Meyering  <meyering@redhat.com>
38686
38687         maint.mk: don't look for translatable strings in *.m4 or *.mk
38688         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38689         when searching for translatable strings.
38690
38691 2009-07-05  Jim Meyering  <meyering@redhat.com>
38692
38693         remove superfluous parentheses in STREQ definition
38694         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38695         * lib/getugroups.c (STREQ): Likewise.
38696         * lib/fnmatch.c (STREQ): Likewise.
38697         Spotted by Bruno Haible.
38698
38699 2009-07-04  Jim Meyering  <meyering@redhat.com>
38700
38701         argv-iter: new module
38702         * MODULES.html.sh: Add argv-iter.
38703         * lib/argv-iter.c, lib/argv-iter.h: New files.
38704         * modules/argv-iter: New file.
38705         * modules/argv-iter-tests: New file.
38706         * tests/test-argv-iter.c: Test it.
38707
38708 2009-07-04  Bruno Haible  <bruno@clisp.org>
38709
38710         Fix assertion.
38711         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38712         contains more exact copies of a given entry than file2, leave the extra
38713         copies unpaired rather than aborting.
38714         Reported by Eric Blake.
38715
38716 2009-07-02  Bruno Haible  <bruno@clisp.org>
38717
38718         Speedup git-merge-changelog for git cherry-pick.
38719         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38720         (entries_mapping_get): New function, extracted from compute_mapping.
38721         (entries_mapping_reverse_get): New function.
38722         (compute_mapping): Add a 'full' argument. Return the result in a
38723         'struct entries_mapping'.
38724         (main): Update. Access the mappings through entries_mapping_get.
38725         Reported by Eric Blake.
38726
38727 2009-07-02  Bruno Haible  <bruno@clisp.org>
38728
38729         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38730         best_i.
38731
38732 2009-07-02  Bruno Haible  <bruno@clisp.org>
38733
38734         Speed up approximate search for matching ChangeLog entries.
38735         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38736         argument. Call fstrcmp_bounded instead of fstrcmp.
38737         (compute_mapping, try_split_merged_entry, main): Update callers.
38738
38739 2009-07-02  Bruno Haible  <bruno@clisp.org>
38740
38741         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38742
38743 2009-06-30  Bruno Haible  <bruno@clisp.org>
38744
38745         Reduce the number of uc_is_cased calls.
38746         * lib/unicase.h (casing_suffix_context_t): Add
38747         'first_char_except_ignorable' field.
38748         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38749         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38750         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38751         Update initializer.
38752         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38753         case-ignorable characters.
38754         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38755         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38756         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38757         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38758         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38759
38760 2009-06-30  Bruno Haible  <bruno@clisp.org>
38761
38762         Tests for module 'unicase/ignorable'.
38763         * modules/unicase/ignorable-tests: New file.
38764         * tests/unicase/test-ignorable.c: New file, generated by
38765         gen-uni-tables.
38766
38767         Tests for module 'unicase/cased'.
38768         * modules/unicase/cased-tests: New file.
38769         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38770         * tests/unicase/test-predicate-part1.h: New file, derived from
38771         tests/unictype/test-predicate-part1.h.
38772         * tests/unicase/test-predicate-part2.h: New file, same as
38773         tests/unictype/test-predicate-part2.h.
38774
38775         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38776         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38777         (output_casing_properties): New function.
38778         (main): Call it.
38779         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38780         * lib/unicase/cased.c: Include unictype/bitmap.h.
38781         (uc_is_cased): Define through a bitmap lookup.
38782         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38783         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38784         (uc_is_case_ignorable): Define through a bitmap lookup.
38785         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38786         lib/unictype/bitmap.h.
38787         (Depends-on): Add inline. Clean up.
38788         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38789         lib/unictype/bitmap.h.
38790         (Depends-on): Add inline. Clean up.
38791         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38792         recognition.
38793         * tests/unicase/test-u16-tolower.c (main): Likewise.
38794         * tests/unicase/test-u32-tolower.c (main): Likewise.
38795
38796 2009-06-30  Bruno Haible  <bruno@clisp.org>
38797
38798         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38799         * lib/unicase/u16-casemap.c: Likewise.
38800         * lib/unicase/u32-casemap.c: Likewise.
38801
38802 2009-06-29  Bruno Haible  <bruno@clisp.org>
38803
38804         Define u32_casefold as a wrapper around u32_ct_casefold.
38805         * lib/unicase/u32-casefold.c: Update.
38806         * modules/unicase/u32-casefold (Depends-on): Add
38807         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38808         unicase/empty-suffix-context. Clean up.
38809
38810         Define u16_casefold as a wrapper around u16_ct_casefold.
38811         * lib/unicase/u16-casefold.c: Update.
38812         * modules/unicase/u16-casefold (Depends-on): Add
38813         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38814         unicase/empty-suffix-context. Clean up.
38815
38816         Define u8_casefold as a wrapper around u8_ct_casefold.
38817         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38818         * lib/unicase/u8-casefold.c: Update.
38819         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38820         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38821
38822         Define u32_totitle as a wrapper around u32_ct_totitle.
38823         * lib/unicase/u32-totitle.c: Update.
38824         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38825         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38826
38827         Define u16_totitle as a wrapper around u16_ct_totitle.
38828         * lib/unicase/u16-totitle.c: Update.
38829         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38830         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38831
38832         Define u8_totitle as a wrapper around u8_ct_totitle.
38833         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38834         functions.
38835         (FUNC): Delegate to U_CT_TOTITLE.
38836         * lib/unicase/u8-totitle.c: Update.
38837         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38838         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38839
38840         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38841         invocation.
38842         * modules/unicase/u32-tolower (Depends-on): Add
38843         unicase/empty-prefix-context, unicase/empty-suffix-context.
38844
38845         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38846         invocation.
38847         * modules/unicase/u16-tolower (Depends-on): Add
38848         unicase/empty-prefix-context, unicase/empty-suffix-context.
38849
38850         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38851         * modules/unicase/u8-tolower (Depends-on): Add
38852         unicase/empty-prefix-context, unicase/empty-suffix-context.
38853
38854         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38855         invocation.
38856         * modules/unicase/u32-toupper (Depends-on): Add
38857         unicase/empty-prefix-context, unicase/empty-suffix-context.
38858
38859         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38860         invocation.
38861         * modules/unicase/u16-toupper (Depends-on): Add
38862         unicase/empty-prefix-context, unicase/empty-suffix-context.
38863
38864         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38865         * modules/unicase/u8-toupper (Depends-on): Add
38866         unicase/empty-prefix-context, unicase/empty-suffix-context.
38867
38868         New module 'unicase/u32-ct-casefold'.
38869         * lib/unicase/u32-ct-casefold.c: New file.
38870         * modules/unicase/u32-ct-casefold: New file.
38871
38872         New module 'unicase/u16-ct-casefold'.
38873         * lib/unicase/u16-ct-casefold.c: New file.
38874         * modules/unicase/u16-ct-casefold: New file.
38875
38876         New module 'unicase/u8-ct-casefold'.
38877         * lib/unicase/u8-ct-casefold.c: New file.
38878         * lib/unicase/u-ct-casefold.h: New file, derived from
38879         lib/unicase/u-casefold.h.
38880         * modules/unicase/u8-ct-casefold: New file.
38881
38882         New module 'unicase/u32-ct-totitle'.
38883         * lib/unicase/u32-ct-totitle.c: New file.
38884         * modules/unicase/u32-ct-totitle: New file.
38885
38886         New module 'unicase/u16-ct-totitle'.
38887         * lib/unicase/u16-ct-totitle.c: New file.
38888         * modules/unicase/u16-ct-totitle: New file.
38889
38890         New module 'unicase/u8-ct-totitle'.
38891         * lib/unicase/u8-ct-totitle.c: New file.
38892         * lib/unicase/u-ct-totitle.h: New file, derived from
38893         lib/unicase/u-totitle.h.
38894         * modules/unicase/u8-ct-totitle: New file.
38895
38896         New module 'unicase/u32-ct-tolower'.
38897         * lib/unicase/u32-ct-tolower.c: New file.
38898         * modules/unicase/u32-ct-tolower: New file.
38899
38900         New module 'unicase/u16-ct-tolower'.
38901         * lib/unicase/u16-ct-tolower.c: New file.
38902         * modules/unicase/u16-ct-tolower: New file.
38903
38904         New module 'unicase/u8-ct-tolower'.
38905         * lib/unicase/u8-ct-tolower.c: New file.
38906         * modules/unicase/u8-ct-tolower: New file.
38907
38908         New module 'unicase/u32-ct-toupper'.
38909         * lib/unicase/u32-ct-toupper.c: New file.
38910         * modules/unicase/u32-ct-toupper: New file.
38911
38912         New module 'unicase/u16-ct-toupper'.
38913         * lib/unicase/u16-ct-toupper.c: New file.
38914         * modules/unicase/u16-ct-toupper: New file.
38915
38916         New module 'unicase/u8-ct-toupper'.
38917         * lib/unicase/u8-ct-toupper.c: New file.
38918         * modules/unicase/u8-ct-toupper: New file.
38919
38920         Add context arguments to u*_casemap functions.
38921         * lib/unicase/unicasemap.h: Include unicase.h.
38922         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38923         suffix_context arguments.
38924         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38925         functions.
38926         (FUNC): Add prefix_context and suffix_context arguments. Use
38927         uc_is_cased and uc_is_case_ignorable.
38928         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38929         * lib/unicase/u16-casemap.c: Likewise.
38930         * lib/unicase/u32-casemap.c: Likewise.
38931         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38932         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38933         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38934         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38935         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38936         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38937
38938         New module 'unicase/u32-suffix-context'.
38939         * lib/unicase/u32-suffix-context.c: New file.
38940         * modules/unicase/u32-suffix-context: New file.
38941
38942         New module 'unicase/u16-suffix-context'.
38943         * lib/unicase/u16-suffix-context.c: New file.
38944         * modules/unicase/u16-suffix-context: New file.
38945
38946         New module 'unicase/u8-suffix-context'.
38947         * lib/unicase/u8-suffix-context.c: New file.
38948         * lib/unicase/u-suffix-context.h: New file.
38949         * modules/unicase/u8-suffix-context: New file.
38950
38951         New module 'unicase/empty-suffix-context'.
38952         * lib/unicase/empty-suffix-context.c: New file.
38953         * modules/unicase/empty-suffix-context: New file.
38954
38955         New module 'unicase/u32-prefix-context'.
38956         * lib/unicase/u32-prefix-context.c: New file.
38957         * modules/unicase/u32-prefix-context: New file.
38958
38959         New module 'unicase/u16-prefix-context'.
38960         * lib/unicase/u16-prefix-context.c: New file.
38961         * modules/unicase/u16-prefix-context: New file.
38962
38963         New module 'unicase/u8-prefix-context'.
38964         * lib/unicase/u8-prefix-context.c: New file.
38965         * lib/unicase/u-prefix-context.h: New file.
38966         * lib/unicase/context.h: New file.
38967         * modules/unicase/u8-prefix-context: New file.
38968
38969         New module 'unicase/empty-prefix-context'.
38970         * lib/unicase/empty-prefix-context.c: New file.
38971         * modules/unicase/empty-prefix-context: New file.
38972
38973         New module 'unicase/ignorable'.
38974         * lib/unicase/ignorable.c: New file.
38975         * modules/unicase/ignorable: New file.
38976
38977         New module 'unicase/cased'.
38978         * lib/unicase/caseprop.h: New file.
38979         * lib/unicase/cased.c: New file.
38980         * modules/unicase/cased: New file.
38981
38982         New functions for case mapping of substrings.
38983         * lib/unicase.h (casing_prefix_context_t): New type.
38984         (unicase_empty_prefix_context): New variable.
38985         (u8_casing_prefix_context, u16_casing_prefix_context,
38986         u32_casing_prefix_context, u8_casing_prefixes_context,
38987         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38988         declarations.
38989         (casing_suffix_context_t): New type.
38990         (unicase_empty_suffix_context): New variable.
38991         (u8_casing_suffix_context, u16_casing_suffix_context,
38992         u32_casing_suffix_context, u8_casing_suffixes_context,
38993         u16_casing_suffixes_context, u32_casing_suffixes_context,
38994         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38995         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38996         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38997         declarations.
38998
38999 2009-06-28  Jim Meyering  <meyering@redhat.com>
39000
39001         boostrap: indent only with spaces
39002         * build-aux/bootstrap: Indent only with spaces, never TABs.
39003
39004         bootstrap: split long lines
39005         * build-aux/bootstrap: Keep line length < 80.
39006
39007         bootstrap: sync from coreutils
39008         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39009         just as autoreconf does.  Verify a list of prerequisite
39010         package-name,version-number pairs if defined in bootstrap.conf.
39011         Refer to README-prereq, if prerequisites are not satisfied.
39012
39013 2009-06-27  Eric Blake  <ebb9@byu.net>
39014
39015         tests: add test for bogus NULL definition
39016         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39017         * tests/test-stdlib.c: Likewise.
39018         * tests/test-string.c: Likewise.
39019         * tests/test-locale.c: Likewise.
39020         * tests/test-unistd.c: Likewise.
39021         * modules/stdio-tests (Depends-on): Add verify.
39022         * modules/stdlib-tests (Depends-on): Likewise.
39023         * modules/string-tests (Depends-on): Likewise.
39024         * modules/locale-tests (Depends-on): Likewise.
39025         * modules/unistd-tests (Depends-on): Likewise.
39026
39027 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39028
39029         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39030         self-explaining comment.
39031         * m4/selinux-selinux-h: Update serial.
39032         (gl_LIBSELINUX): New macro, adding a warning for missing development
39033         packages to code extracted from...
39034         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39035         Add warning for missing development packages here, too.
39036
39037 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39038
39039         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39040
39041 2009-06-25  Eric Blake  <ebb9@byu.net>
39042
39043         version-etc: fix regression
39044         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39045         gcc.
39046         (version_etc): Use it, to catch bugs with trailing NULL.
39047         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39048         (version_etc_va): Fix logic bug.
39049         * modules/version-etc-tests: Add test.
39050         * tests/test-version-etc.c: New file.
39051         * tests/test-version-etc.sh: Likewise.
39052
39053 2009-06-25  Sam Steingold  <sds@gnu.org>
39054
39055         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39056         mbtowc declaration.
39057
39058 2009-06-25  Eric Blake  <ebb9@byu.net>
39059
39060         fpurge: migrate into <stdio.h>
39061         * lib/fpurge.h: Delete...
39062         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39063         * lib/fpurge.c (fpurge): Change declaring header.
39064         * modules/fpurge (Files): Drop deleted file.
39065         (Depends-on): Add stdio.
39066         (configure.ac): Set witness.
39067         * modules/stdio (Makefile.am): Support fpurge macros.
39068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39069         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39070         * lib/fflush.c: Update client.
39071         * tests/test-fpurge.c: Likewise.
39072         * NEWS: Mention the change.
39073
39074 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39075
39076         * lib/argp-version-etc.c (program_authors): Add const
39077         qualifier.
39078         * lib/version-etc.c: Fix typos in the comments.
39079         * modules/argp-version-etc: Depends on version-etc.
39080
39081 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39082
39083         argp-version-etc: new module.
39084
39085         * lib/argp-version-etc.c: New file.
39086         * lib/argp-version-etc.h: New file.
39087         * modules/argp-version-etc: New file.
39088         * modules/argp-version-etc-tests: New file.
39089         * tests/test-argp-version-etc.c: New test.
39090         * tests/test-argp-version-etc-1.sh: New test.
39091
39092 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39093
39094         Provide additional interfaces and documentation for version-etc
39095         module.
39096
39097         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39098         interfaces.
39099         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39100         prototypes.
39101
39102 2009-06-24  Bruno Haible  <bruno@clisp.org>
39103
39104         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39105         HAVE_LIB${NAME} macro.
39106         Reported by Sam Steingold <sds@gnu.org>.
39107
39108 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39109
39110         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39111         needed.
39112
39113 2009-06-21  Bruno Haible  <bruno@clisp.org>
39114
39115         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39116         work.
39117         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39118         together with LIB${NAME}, LTLIB${NAME}.
39119         Reported by Sam Steingold <sds@gnu.org>.
39120
39121 2009-06-20  Jim Meyering  <meyering@redhat.com>
39122
39123         tests: make sc_require_test_exit_idiom more generic
39124         * top/maint.mk (Exit_witness_file): New overridable variable.
39125         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39126         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39127
39128 2009-06-19  Jim Meyering  <meyering@redhat.com>
39129
39130         hash: reverse order of src/dst parameters in an internal interface
39131         * lib/hash.c (transfer_entries): Reverse order of parameters to
39132         put DST before SRC.  Adjust callers.
39133
39134         tests: test-hash: avoid wholesale duplication
39135         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39136         Instead, use a loop and add a single conditional.
39137
39138         tests: test-hash: allow seed selection via a command line argument
39139         * tests/test-hash.c (get_seed): New function.
39140         (main): Use it.
39141
39142 2009-06-19  Eric Blake  <ebb9@byu.net>
39143
39144         hash: avoid memory leak on allocation failure
39145         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39146         failure.  Factor repeated algorithm...
39147         (transfer_entries): ...into new helper routine.
39148         (hash_delete): React to hash_rehash return value.
39149
39150         hash: reduce memory pressure in hash_rehash no-op case
39151         * lib/hash.c (next_prime): Avoid overflow.
39152         (hash_initialize): Factor bucket size computation...
39153         (compute_bucket_size): ...into new helper function.
39154         (hash_rehash): Use new function and open coding to reduce memory
39155         pressure, and avoid a memory leak in USE_OBSTACK code.
39156         Reported by Jim Meyering.
39157
39158 2009-06-18  Eric Blake  <ebb9@byu.net>
39159
39160         hash: make rotation more obvious
39161         * modules/hash (Depends-on): Add bitrotate and stdint.
39162         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39163         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39164         (SIZE_MAX): Rely on headers for definition.
39165         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39166         (raw_hasher): Use rotr_sz.
39167         Suggested by Jim Meyering.
39168
39169         hash: fix memory leak in last patch
39170         * lib/hash.c (hash_rehash): Avoid memory leak.
39171
39172         hash: avoid no-op rehashing
39173         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39174
39175         hash: provide default callback functions
39176         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39177         (hash_initialize): Use them as defaults.
39178         * tests/test-hash.c (main): Test this.
39179
39180         hash: minor optimization
39181         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39182         when possible.
39183         (hash_initialize): Document this promise.
39184         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39185         * tests/test-hash.c (hash_compare_strings): Test this.
39186
39187 2009-06-18  Bruno Haible  <bruno@clisp.org>
39188
39189         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39190         going to be replaced anyway.
39191
39192 2009-06-18  Bruno Haible  <bruno@clisp.org>
39193
39194         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39195         in one place.
39196         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39197         be replaced anyway.
39198
39199 2009-06-18  Eric Blake  <ebb9@byu.net>
39200
39201         hash: check for resize before insertion
39202         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39203         threshold before insertion, so that a pathological hash_rehash
39204         that fills every bucket can still trigger another rehash.
39205
39206 2009-06-18  Jim Meyering  <meyering@redhat.com>
39207
39208         hash-tests: add a loop around the small tests
39209         * tests/test-hash.c (main): Repeat small tests with selected
39210         small initial table sizes.
39211
39212 2009-06-17  Eric Blake  <ebb9@byu.net>
39213
39214         hash: minor cleanups
39215         * lib/hash.h (hash_entry): Make opaque, by moving...
39216         * lib/hash.c (hash_entry): ...here.
39217         (hash_insert): Clarify restrictions on what can be inserted.
39218         (hash_get_next): Clarify when it is safe to remove an element
39219         during traversal.
39220         (check_tuning): Skip verification when tuning is known safe.
39221         (hash_initialize): Clarify restrictions on tuning.
39222
39223 2009-06-17  Jim Meyering  <jim@meyering.net>
39224         and Eric Blake  <ebb9@byu.net>
39225
39226         hash-tests: new module
39227         * modules/hash-tests: New file.
39228         * tests/test-hash.c: New file.
39229
39230 2009-06-17  Eric Blake  <ebb9@byu.net>
39231
39232         strstr-simple: document new module
39233         * MODULES.html.sh: Document new module.
39234
39235         strstr, strcasestr: replace on platforms with broken memchr
39236         * modules/strstr: Split into...
39237         * modules/strstr-simple: ...new module that does not care about
39238         performance, but does care about glibc bug.
39239         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39240         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39241         if platform memchr is broken, per Debian bug 521737.
39242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39243         memchr.
39244         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39245         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39246         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39247         * modules/mountlist (Depends-on): Add strstr-simple.
39248         * modules/gen-uni-tables (Depends-on): Likewise.
39249         * modules/argz (Depends-on): Add strstr.
39250
39251 2009-06-17  Bruno Haible  <bruno@clisp.org>
39252
39253         * modules/posix_spawn-internal (Depends-on): Add errno.
39254
39255 2009-06-17  Bruno Haible  <bruno@clisp.org>
39256
39257         Define missing ESTALE on Interix 3.5.
39258         * lib/errno.in.h (ESTALE): Assign a value if missing.
39259         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39260         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39261         missing.
39262         * doc/posix-headers/errno.texi: Mention the Interix bug.
39263         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39264
39265 2009-06-15  Eric Blake  <ebb9@byu.net>
39266
39267         memchr, memchr2: add valgrind exception
39268         * lib/memchr.valgrind: New file.
39269         * lib/memchr2.valgrind: New file.
39270         * modules/memchr (Files): Distribute valgrind file.
39271         * modules/memchr2 (Files): Likewise.
39272
39273         docs: memchr is no longer obsolete
39274         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39275         * lib/string.in.h (memchr): Simplify logic.
39276
39277 2009-06-14  Jim Meyering  <meyering@redhat.com>
39278
39279         link-follow: fix the "checking..." message to not mention trailing slash
39280         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39281         never considered trailing slashes.
39282
39283 2009-06-14  Bruno Haible  <bruno@clisp.org>
39284
39285         * m4/memchr.m4: Mention also the bug on IA-64.
39286         * doc/posix-functions/memchr.texi: Likewise.
39287
39288 2009-06-12  Eric Blake  <ebb9@byu.net>
39289
39290         memchr: detect broken x86_64 and alpha implementations
39291         * modules/memchr-tests (Depends-on): Move mmap detection...
39292         * modules/memchr (Depends-on): ...here.
39293         (configure.ac): Set indicator.
39294         * lib/string.in.h (memchr): Declare replacement.
39295         * modules/string (Makefile.am): Trigger replacement.
39296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39297         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39298         bugs.
39299         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39300         * modules/getpagesize (License): Relax license.
39301
39302 2009-06-11  Bruno Haible  <bruno@clisp.org>
39303
39304         * lib/idpriv.h: Add more references.
39305
39306 2009-06-08  Bruno Haible  <bruno@clisp.org>
39307
39308         Tests for module 'idpriv-droptemp'.
39309         * modules/idpriv-droptemp-tests: New file.
39310         * tests/test-idpriv-droptemp.sh: New file.
39311         * tests/test-idpriv-droptemp.su.sh: New file.
39312         * tests/test-idpriv-droptemp.c: New file.
39313
39314         New module 'idpriv-droptemp'.
39315         * lib/idpriv-droptemp.c: New file.
39316         * modules/idpriv-droptemp: New file.
39317
39318 2009-06-08  Bruno Haible  <bruno@clisp.org>
39319
39320         Tests for module 'idpriv-drop'.
39321         * modules/idpriv-drop-tests: New file.
39322         * tests/test-idpriv-drop.sh: New file.
39323         * tests/test-idpriv-drop.su.sh: New file.
39324         * tests/test-idpriv-drop.c: New file.
39325
39326         New module 'idpriv-drop'.
39327         * lib/idpriv.h: New file.
39328         * lib-idpriv-drop.c: New file.
39329         * m4/idpriv.m4: New file.
39330         * modules/idpriv-drop: New file.
39331
39332 2009-06-08  Bruno Haible  <bruno@clisp.org>
39333
39334         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39335         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39336         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39337         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39338         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39339         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39340         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39341
39342 2009-06-08  Eric Blake  <ebb9@byu.net>
39343
39344         test-strstr: use memory fence, when possible
39345         * tests/test-strstr.c (main): Use memory fence, in order to be
39346         more likely to trigger Debian bug 521737.
39347         * modules/strstr-tests (Files): Pull in additional files.
39348
39349         memchr: no longer obsolete, for wider field testing
39350         * modules/memchr (Status, Notice): Delete, this module is no
39351         longer obsolete.
39352         * modules/vasnprintf (Depends-on): Add memchr.
39353
39354 2009-06-07  Jim Meyering  <meyering@redhat.com>
39355
39356         hash: declare some functions with the warn_unused_result attribute
39357         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39358
39359 2009-06-07  Bruno Haible  <bruno@clisp.org>
39360
39361         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39362         Reported by Eric Blake.
39363
39364 2009-06-06  Eric Blake  <ebb9@byu.net>
39365
39366         test-alignof: fix typo with long double
39367         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39368         compiler error.
39369
39370 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39371
39372         Escape non-texinfo { and }s.
39373         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39374         markup error.
39375
39376 2009-06-04  Jim Meyering  <meyering@redhat.com>
39377
39378         gitlog-to-changelog: don't infloop on an empty commit log
39379         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39380         Reported by Boris Petersen <transacid@centerim.org>.
39381
39382 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39383
39384         version-etc: extend for packagers
39385         Add three new configure options, intended for packagers:
39386           --with-packager="packager name"
39387           --with-packager-version="packager-specific version"
39388           --with-packager-bug-reports="packager bug reporting"
39389         An example with coreutils:
39390           $ ./configure \
39391             --with-packager=Gentoo \
39392             --with-packager-bug-report=http://bugs.gentoo.org/ \
39393             --with-packager-version="patchset 1.6"
39394           $ ./src/ls --version | head -n2
39395           ls (GNU coreutils) 7.1-dirty
39396           Packaged by Gentoo (patchset 1.6)
39397         Note that the bug reporting info via --help doesn't show up because
39398         coreutils uses its own custom emit_bug_reporting_address() implementation
39399         in src/system.h.  If it didn't, it'd look like:
39400           $ ./src/ls --help | tail -n4
39401           Report bugs to <bug-coreutils@gnu.org>.
39402           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39403           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39404           General help using GNU software: <http://www.gnu.org/gethelp/>.
39405         * lib/version-etc.c: Print new information, if provided.
39406         * m4/version-etc.m4: New file.
39407         * modules/version-etc (Files): Add m4/version-etc.m4.
39408         (configure.ac): Add gl_VERSION_ETC.
39409
39410 2009-05-31  Bruno Haible  <bruno@clisp.org>
39411
39412         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39413         and 'int64_t'.
39414         * modules/alignof-tests (Dependencies): Add stdint.
39415         Reported by Eric Blake.
39416
39417 2009-05-31  Bruno Haible  <bruno@clisp.org>
39418
39419         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39420         restriction due to compiler bugs.
39421         Reported by Eric Blake.
39422
39423 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39424             Bruno Haible  <bruno@clisp.org>
39425
39426         Fix test-alignof failure.
39427         * lib/alignof.h (alignof_slot): New macro.
39428         (alignof_type): New macro, with the same semantics as the previous
39429         'alignof'.
39430         (alignof): Alias to alignof_slot.
39431         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39432         check that the results are usable as constant expressions.
39433
39434 2009-05-31  Bruno Haible  <bruno@clisp.org>
39435
39436         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39437         * tests/test-memchr.c (main): Check that memchr does not read past the
39438         first occurrence of the byte.
39439         * tests/test-strstr.c (main): Update comment.
39440         Suggested by Eric Blake.
39441
39442 2009-05-30  Bruno Haible  <bruno@clisp.org>
39443
39444         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39445         detail how to use dumpbin.
39446         Reported by David Byron <dbyron@dbyron.com>.
39447
39448 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39449
39450         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39451
39452 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39453
39454         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39455
39456 2009-05-28  Bruno Haible  <bruno@clisp.org>
39457
39458         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39459         build-aux/ files.
39460
39461 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39462
39463         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39464
39465 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39466
39467         * gnulib-tool (sed_transform_main_lib_file)
39468         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39469         regexps.
39470
39471 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39472
39473         * tests/test-strstr.c: Add another self-test.
39474         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39475         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39476
39477 2009-05-23  Bruno Haible  <bruno@clisp.org>
39478
39479         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39480         change.
39481
39482 2009-05-21  Bruno Haible  <bruno@clisp.org>
39483
39484         Simplify use of mode_t varargs.
39485         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39486         uses 'mode_t' or 'int'.
39487         * lib/openat.c (openat): Likewise.
39488         * lib/open-safer.c (open_safer): Likewise.
39489         * m4/mode_t.m4: New file.
39490         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39491         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39492         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39493         * modules/open (Files): Add m4/mode_t.m4.
39494         * modules/openat (Files): Likewise.
39495         * modules/fcntl-safer (Files): Likewise.
39496         Suggested by Eric Blake.
39497
39498 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39499
39500         * doc/glibc-functions/fallocate.texi: New file.
39501         * doc/gnulib.texi: Include it.
39502
39503 2009-05-21  Eric Blake  <ebb9@byu.net>
39504             Bruno Haible  <bruno@clisp.org>
39505
39506         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39507         invocations.
39508         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39509
39510 2009-05-21  Eric Blake  <ebb9@byu.net>
39511             Bruno Haible  <bruno@clisp.org>
39512
39513         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39514         include_next. Fix of 2008-11-20 commit.
39515         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39516         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39517         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39518         NEXT_MATH_H.
39519         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39520         instead of NEXT_MATH_H.
39521
39522 2009-05-21  Bruno Haible  <bruno@clisp.org>
39523
39524         Avoid redefinition warnings for SIZE_MAX.
39525         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39526         Reported by Simon Josefsson.
39527
39528 2009-05-21  Bruno Haible  <bruno@clisp.org>
39529
39530         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39531         AC_CACHE_VAL.
39532
39533 2009-05-20  Bruno Haible  <bruno@clisp.org>
39534
39535         Make zeroptr.h work on mingw.
39536         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39537         mprotect.
39538         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39539         * modules/memchr2-tests (configure.ac): Likewise.
39540         * modules/memcmp-tests (configure.ac): Likewise.
39541         * modules/memmem-tests (configure.ac): Likewise.
39542         * modules/memrchr-tests (configure.ac): Likewise.
39543         Reported by Simon Josefsson.
39544
39545 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39546
39547         * tests/test-glob.c: Include string.h for strcmp prototype.
39548
39549 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39550
39551         * modules/getdelim (Depends-on): Add explicit stdint, although it
39552         was implicitly already pulled in via realloc-posix.
39553         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39554
39555 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39556
39557         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39558         G. Christensen" <tgc@jupiterrise.com>.
39559         * m4/sys_socket_h.m4: Check for sa_family_t.
39560         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39561         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39562         * tests/test-sys_socket.c: Check that sa_family_t works.
39563
39564 2009-05-18  Eric Blake  <ebb9@byu.net>
39565
39566         maint.mk: allow gnulib_dir in VPATH build
39567         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39568
39569 2009-05-15  Jim Meyering  <meyering@redhat.com>
39570
39571         maint.mk: Give gnulib_dir a default definition.
39572         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39573         Thus, most packages no longer need to specify this variable in cfg.mk
39574
39575 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39576
39577         rename.m4: fix typos that would make non-mingw cross-configure fail
39578         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39579
39580 2009-05-13  Eric Blake  <ebb9@byu.net>
39581
39582         mmap-anon: avoid out-of-order autoconf expansion
39583         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39584         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39585         * modules/memchr-tests (Depends-on): Add extensions.
39586         * modules/memchr2-tests (Depends-on): Add extensions.
39587         * modules/memcmp-tests (Depends-on): Add extensions.
39588         * modules/memmem-tests (Depends-on): Add extensions.
39589         * modules/memrchr-tests (Depends-on): Add extensions.
39590
39591 2009-05-13  Bruno Haible  <bruno@clisp.org>
39592
39593         Make some tests ISO C 99 compliant.
39594         * tests/zerosize-ptr.h: New file.
39595         * tests/test-memchr.c: Include zerosize-ptr.h.
39596         (main): Use a zero-size object pointer instead of NULL.
39597         * tests/test-memchr2.c: Include zerosize-ptr.h.
39598         (main): Use a zero-size object pointer instead of NULL.
39599         * tests/test-memcmp.c: Include zerosize-ptr.h.
39600         (main): Use a zero-size object pointer instead of NULL.
39601         * tests/test-memmem.c: Include zerosize-ptr.h.
39602         (main): Use a zero-size object pointer instead of NULL.
39603         * tests/test-memrchr.c: Include zerosize-ptr.h.
39604         (main): Use a zero-size object pointer instead of NULL.
39605         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39606         m4/mmap-anon.m4.
39607         (Depends-on): Add getpagesize.
39608         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39609         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39610         m4/mmap-anon.m4.
39611         (Depends-on): Add getpagesize.
39612         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39613         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39614         m4/mmap-anon.m4.
39615         (Depends-on): Add getpagesize.
39616         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39617         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39618         m4/mmap-anon.m4.
39619         (Depends-on): Add getpagesize.
39620         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39621         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39622         m4/mmap-anon.m4.
39623         (Depends-on): Add getpagesize.
39624         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39625
39626 2009-05-12  Bruno Haible  <bruno@clisp.org>
39627
39628         Tests for module 'alignof'.
39629         * modules/alignof-tests: New file.
39630         * tests/test-alignof.c: New file.
39631
39632 2009-05-12  Bruno Haible  <bruno@clisp.org>
39633
39634         Fix alignof macro.
39635         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39636         vendor compilers that are always correct.
39637
39638 2009-05-12  Bruno Haible  <bruno@clisp.org>
39639
39640         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39641         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39642         not whether its fully works.
39643
39644 2009-05-12  Bruno Haible  <bruno@clisp.org>
39645
39646         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39647
39648 2009-05-12  Jim Meyering  <meyering@redhat.com>
39649
39650         * top/maint.mk: Adjust backslash alignment.
39651
39652 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39653
39654         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39655
39656 2009-05-11  Eric Blake  <ebb9@byu.net>
39657
39658         argp: avoid undefined behavior
39659         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39660         macros.
39661
39662 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39663
39664         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39665         user.name to prevent git commit from complaining.
39666
39667 2009-05-10  Bruno Haible  <bruno@clisp.org>
39668
39669         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39670         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39671         it rewrites every file name only once.
39672         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39673
39674 2009-05-08  Bruno Haible  <bruno@clisp.org>
39675
39676         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39677         instead of 'max'.
39678
39679 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39680
39681         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39682         sockaddr_storage test.
39683
39684 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39685
39686         * modules/sys_socket (Makefile.am): Substitute
39687         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39688         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39689         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39690         * tests/test-sys_socket.c: Check sockaddr_storage.
39691
39692 2009-05-08  Bruno Haible  <bruno@clisp.org>
39693
39694         New module 'alignof'.
39695         * lib/alignof.h: New file.
39696         * modules/alignof: New file.
39697
39698 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39699             Bruno Haible  <bruno@clisp.org>
39700
39701         Fix test-file-has-acl on FreeBSD.
39702         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39703         mask is implicitly added.
39704         * tests/test-file-has-acl.c: Include <signal.h>.
39705         (main): Terminate the test after 5 seconds.
39706         * modules/acl-tests (configure.ac): Check for alarm function.
39707
39708 2009-05-04  Bruno Haible  <bruno@clisp.org>
39709
39710         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39711         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39712         * modules/errno (configure.ac): Drop AC_REQUIRE.
39713         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39714         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39715
39716 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39717
39718         * modules/glob-tests: New module.
39719         * tests/test-glob.c: Add.
39720
39721 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39722
39723         * modules/fnmatch-tests: New module.
39724         * tests/test-fnmatch.c: Add.
39725
39726 2009-05-04  Eric Blake  <ebb9@byu.net>
39727
39728         maint: make the new no-submodule-changes rule VPATH-safe
39729         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39730
39731 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39732             Bruno Haible  <bruno@clisp.org>
39733
39734         acl: Fix infinite loop on FreeBSD.
39735         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39736         of return value from acl_get_entry.
39737         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39738         Likewise.
39739
39740 2009-05-03  Bruno Haible  <bruno@clisp.org>
39741
39742         * lib/acl-internal.h (acl_entries): Clarify return value.
39743         * lib/acl_entries.c (acl_entries): Likewise.
39744
39745 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39746
39747         Bug fix in acl module.
39748         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39749
39750 2009-05-03  Bruno Haible  <bruno@clisp.org>
39751
39752         Create gperf-generated file in the source dir, not in the build dir.
39753         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39754         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39755         * modules/unicase/locale-language (unicase/locale-languages.h):
39756         Likewise.
39757         * modules/unicase/special-casing (unicase/special-casing-table.h):
39758         Likewise.
39759         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39760         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39761         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39762         Reported by Ralf Wildenhues.
39763
39764 2009-05-03  Bruno Haible  <bruno@clisp.org>
39765
39766         * modules/fnmatch (Description, configure.ac): Taken from
39767         fnmatch-posix.
39768         * modules/fnmatch-posix: Turn into a symbolic reference to the
39769         'fnmatch' module, and deprecate.
39770         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39771
39772 2009-05-03  Bruno Haible  <bruno@clisp.org>
39773
39774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39775         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39776         Reported by Ralf Wildenhues.
39777
39778 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39779
39780         * m4/fnmatch.m4: Fix fnmatch re-define.
39781
39782 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39783
39784         priv-set: new module and tests; adapt write-any-file
39785         * lib/priv-set.c: New file.
39786         * lib/priv-set.h: New file.
39787         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39788         * lib/write-any-file.c: Simplify by using priv-set module.
39789         * m4/priv-set.m4: New file.
39790         * modules/priv-set: New file.
39791         * modules/unlinkdir: Add dependency on priv-set module.
39792         * modules/write-any-file: Likewise.
39793
39794         Tests for module 'priv-set'.
39795         * modules/priv-set-tests: New file.
39796         * tests/test-priv-set.c: New file.
39797
39798 2009-05-03  Jim Meyering  <meyering@redhat.com>
39799             Bruno Haible  <bruno@clisp.org>
39800
39801         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39802         use the converted UTF-8 variant of the name instead.
39803
39804 2009-05-03  Jim Meyering  <meyering@redhat.com>
39805
39806         tests: tighten some getdate tests
39807         * tests/test-getdate.c (main): Tighten tests: require equality,
39808         not just greater than.  Set TZ envvar to UTC0.
39809
39810 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39811
39812         getdate: correctly interpret "next monday" when run on a Monday
39813         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39814         that e.g., "next tues" (when run on a tuesday) results in a date
39815         that is one week in the future, and not today's date.
39816         I.e., add a week when the wday is the same as the current one.
39817         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39818         and earlier by Martin Bernreuther and Jan Minář.
39819         * tests/test-getdate.c (main): Check that "next DAY" is always in
39820         the future and that "last DAY" is always in the past.
39821
39822 2009-05-02  Jim Meyering  <meyering@redhat.com>
39823
39824         build: ensure that a release build fails when a submodule is unclean
39825         * top/maint.mk (no-submodule-changes): New rule.
39826         (alpha beta major): Depend on it.
39827
39828 2009-05-02  Bruno Haible  <bruno@clisp.org>
39829
39830         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39831         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39832         shell variable gl_fnmatch_required to detect which variant is
39833         requested.
39834         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39835         gl_FUNC_FNMATCH_POSIX.
39836         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39837         exclude fnmatch-posix.
39838
39839 2009-05-02  Bruno Haible  <bruno@clisp.org>
39840
39841         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39842         * modules/mbsrtowcs (License): Change to LGPLv2+.
39843         * modules/strnlen1 (License): Likewise.
39844         Reported by Simon Josefsson.
39845
39846 2009-05-02  Bruno Haible  <bruno@clisp.org>
39847
39848         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39849         "cross".
39850         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39851         gnulib-tool was called with option --source-base=lib.
39852
39853 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39854
39855         Use automake *-local hooks without commands, for extensibility.
39856         * modules/localcharset (Makefile.am): Rename install-exec-local
39857         rule to install-exec-localcharset, and make it a prerequisite of
39858         install-exec-local.  Likewise, rename the uninstall-local rule to
39859         uninstall-localcharset, and make it a prerequisite of the former.
39860
39861 2009-05-01  Bruno Haible  <bruno@clisp.org>
39862
39863         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39864         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39865         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39866         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39867         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39868         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39869         m4/locale-zh.m4, m4/codeset.m4.
39870
39871         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39872         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39873         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39874         m4/locale-zh.m4.
39875
39876         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39877         REPLACE_WCRTOMB if mbstate_t must be replaced.
39878         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39879         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39880
39881 2009-05-01  Bruno Haible  <bruno@clisp.org>
39882
39883         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39884         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39885         dngettext, dcngettext, textdomain, bindtextdomain,
39886         bind_textdomain_codeset): Undefine before redefining.
39887
39888 2009-04-30  Bruno Haible  <bruno@clisp.org>
39889
39890         Fix bug introduced on 2009-04-25.
39891         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39892         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39893         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39894         is defined.
39895         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39896         is defined.
39897         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39898         is defined.
39899         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39900
39901 2009-04-28  Bruno Haible  <bruno@clisp.org>
39902
39903         Comment tweaks.
39904         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39905         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39906         * lib/unicase.h (u*_casexfrm): Likewise.
39907         Reported by Paolo Bonzini.
39908
39909 2009-04-28  Bruno Haible  <bruno@clisp.org>
39910
39911         Fix a compilation error.
39912         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39913         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39914         Reported by Jim Meyering.
39915
39916 2009-04-27  Bruno Haible  <bruno@clisp.org>
39917
39918         New module 'libunistring'.
39919         * modules/libunistring: New file.
39920         * m4/libunistring.m4: New file.
39921         * MODULES.html.sh (Unicode string functions): Add it.
39922
39923 2009-04-27  Eric Blake  <ebb9@byu.net>
39924
39925         maint.mk: allow package-specific header to provide <config.h>
39926         * top/maint.mk (sc_require_config_h): New variable.
39927         (sc_require_config_h, sc_require_config_h_first): Use it.
39928
39929 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39930
39931         * top/maint.mk (sc_avoid_if_before_free): Except
39932         useless-if-before-free script.
39933
39934 2009-04-27  Eric Blake  <ebb9@byu.net>
39935
39936         maintainer-makefile: depend on all required helper scripts
39937         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39938         useless-if-before-free.
39939         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39940         version, rather than assuming gnulib checkout is available.
39941         Reported by Simen Josefsson.
39942
39943 2009-04-26  Bruno Haible  <bruno@clisp.org>
39944
39945         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39946         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39947         "../" or "..".
39948
39949 2009-04-26  Bruno Haible  <bruno@clisp.org>
39950
39951         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39952         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39953         AC_LIB_HAVE_LINKFLAGS.
39954
39955 2009-04-26  Bruno Haible  <bruno@clisp.org>
39956
39957         Simplify calling convention of u*_conv_from_encoding.
39958         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39959         u32_conv_from_encoding): Expect a resultbuf argument and return the
39960         result directly as a pointer.
39961         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39962         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39963         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39964         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39965         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39966         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39967         Update.
39968         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39969         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39970         * lib/vasnprintf.c (VASNPRINTF): Update.
39971         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39972         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39973         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39974         * NEWS: Mention the change.
39975
39976 2009-04-26  Bruno Haible  <bruno@clisp.org>
39977
39978         Simplify calling convention of u*_conv_to_encoding.
39979         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39980         u32_conv_to_encoding): Expect a resultbuf argument and return the
39981         result directly as a pointer.
39982         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39983         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39984         freeing scaled_offsets if mem_iconveha failed.
39985         * lib/unicase/u-casexfrm.h (FUNC): Update.
39986         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39987         * lib/vasnprintf.c (VASNPRINTF): Update.
39988         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39989         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39990         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39991         * NEWS: Mention the change.
39992
39993 2009-04-26  Bruno Haible  <bruno@clisp.org>
39994
39995         Avoid test failures on AIX and OSF/1.
39996         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39997         malloc(0).
39998         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39999         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40000         Likewise.
40001         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40002         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40003         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40004         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40005         * doc/posix-functions/malloc.texi: Document the portability problem
40006         related to malloc(0).
40007
40008 2009-04-26  Bruno Haible  <bruno@clisp.org>
40009
40010         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40011         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40012         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40013
40014 2009-04-25  Bruno Haible  <bruno@clisp.org>
40015
40016         Avoid link error when creating a namespace clean library.
40017         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40018         as macro with arguments if already defined as an alias.
40019         * lib/signbitf.c (gl_signbitf): Don't undefine.
40020         * lib/signbitd.c (gl_signbitd): Don't undefine.
40021         * lib/signbitl.c (gl_signbitl): Don't undefine.
40022
40023 2009-04-25  Jim Meyering  <meyering@redhat.com>
40024
40025         vc-list-files: fix another quoting bug
40026         * build-aux/vc-list-files: Avoid sed backslash expansion
40027         of pathological directory names.
40028
40029 2009-04-25  Eric Blake  <ebb9@byu.net>
40030
40031         vc-list-files: fix shell quoting error
40032         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40033         timestamp.
40034
40035 2009-04-25  Jim Meyering  <meyering@redhat.com>
40036
40037         vc-list-files: restore lost functionality with subdir argument
40038         * build-aux/vc-list-files: When given a non-"." sub-directory
40039         argument, substitute the $dir/ prefix back onto each resulting name.
40040         Otherwise, coreutils' root_tests check would fail.
40041
40042 2009-04-24  Eric Blake  <ebb9@byu.net>
40043
40044         vc-list-files: ignore git symlinks
40045         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40046         than ls-files, to ignore git symlinks.
40047
40048         maint.mk: import improvements from m4
40049         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40050         (move_if_change): Delete unused macro.
40051         (news-date-check, vc-diff-check): Support VPATH builds.
40052         (announcement): Likewise.  Split --bootstrap-tools list...
40053         (boostrap-tools): ...into separate list, which can be overridden
40054         in cfg.mk.
40055         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40056         requiring dependency on useless-if-before-free module.
40057         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40058         Support VPATH builds.
40059
40060 2009-04-24  Jim Meyering  <meyering@redhat.com>
40061
40062         maint.mk: remove coreutils-specific rules and variables
40063         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40064         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40065         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40066
40067         maint.mk: remove obsolete rule
40068         * top/maint.mk (rel-check): Remove rule.
40069         (WGET, WGETFLAGS): Remove now-unused variables.
40070
40071 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40072
40073         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40074         consistency.
40075
40076         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40077         '$(PATH_SEPARATOR)' instead of ':'.
40078
40079 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40080
40081         * lib/getopt1.c (main): Use 'const' for static array.
40082
40083 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40084
40085         * top/maint.mk: Sync with coreutils.
40086         * NEWS: Explain incompatibilities.
40087
40088 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40089             Bruno Haible  <bruno@clisp.org>
40090
40091         Fix cross-compilation results.
40092         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40093         statement, as third argument of AC_TRY_RUN.
40094         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40095         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40096         Likewise.
40097         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40098         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40099         Likewise.
40100         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40101         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40102         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40103
40104 2009-04-20  Bruno Haible  <bruno@clisp.org>
40105
40106         Avoid test failure on mingw.
40107         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40108
40109 2009-04-20  Bruno Haible  <bruno@clisp.org>
40110
40111         Avoid compilation error on mingw.
40112         * modules/localename-tests (Depends-on): Add locale.
40113
40114 2009-04-19  Bruno Haible  <bruno@clisp.org>
40115
40116         Support for building a shared library on Windows platforms.
40117         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40118         (main): Test the presence of UNINORM_NFC here.
40119         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40120         (main): Test the presence of UNINORM_NFD here.
40121         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40122         (main): Test the presence of UNINORM_NFKC here.
40123         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40124         (main): Test the presence of UNINORM_NFKD here.
40125
40126 2009-04-19  Bruno Haible  <bruno@clisp.org>
40127
40128         Avoid a compiler warning.
40129         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40130         Change type of variable 'sequence'.
40131
40132 2009-04-19  Bruno Haible  <bruno@clisp.org>
40133
40134         * modules/configmake (Makefile.am): When the contents of configmake.h
40135         does not change, arrange to preserve its modification time.
40136
40137 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40138
40139         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40140         gettext domain.
40141
40142 2009-04-16  Jim Meyering  <meyering@redhat.com>
40143
40144         useless-if-before-free: improve conversion code
40145         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40146         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40147
40148 2009-04-14  Bruno Haible  <bruno@clisp.org>
40149
40150         * modules/fcntl (Depends-on): Add extensions.
40151         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40152
40153 2009-04-12  Ben Pfaff  <blp@gnu.org>
40154
40155         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40156         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40157
40158 2009-03-20  Ben Pfaff  <blp@gnu.org>
40159
40160         Make rename replace existing destinations on Windows.
40161         * m4/rename.m4: Add test for Mingw.
40162         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40163         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40164         * doc/posix-functions/rename.texi: Document.
40165
40166 2009-04-10  Bruno Haible  <bruno@clisp.org>
40167
40168         New include file "iconveh.h".
40169         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40170         * lib/striconveh.h: Include it.
40171         (enum iconv_ilseq_handler): Remove definition.
40172         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40173         striconveh.h.
40174         * lib/striconveha.c: Include striconveh.h.
40175         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40176         * modules/striconveh (Files): Add lib/iconveh.h.
40177         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40178         lib/striconveh.h.
40179
40180 2009-04-10  Bruno Haible  <bruno@clisp.org>
40181
40182         * lib/uniconv.h: Update comment.
40183
40184 2009-04-10  Bruno Haible  <bruno@clisp.org>
40185
40186         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40187         always.
40188         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40189         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40190         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40191         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40192         "unistring-notinline.h", so that the function gets defined always.
40193         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40194         * lib/unistr/u8-uctomb.c: Likewise.
40195         * lib/unistr/u16-mbtouc.c: Likewise.
40196         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40197         * lib/unistr/u16-uctomb.c: Likewise.
40198         * lib/unistr/u32-mbtouc.c: Likewise.
40199         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40200         * lib/unistr/u32-uctomb.c: Likewise.
40201
40202 2009-04-10  Bruno Haible  <bruno@clisp.org>
40203
40204         Mark 'utime' obsolete.
40205         * modules/utime (Status, Notice): New sections.
40206         Suggested by Jim Meyering.
40207
40208         Fix cross-compile guess for utime test.
40209         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40210         autoconf.
40211         * doc/posix-functions/utime.texi: Give more precisions.
40212         Reported by Jan <ipif@ymail.com>.
40213
40214 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40215
40216         filevercmp: correct today's change
40217         * lib/filevercmp.c: Also handle coreutils' test inputs.
40218         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40219
40220         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40221         for reporting it.
40222         * lib/filevercmp.c: Special handle for "", "." and "..".
40223         * tests/test-filevercmp.c: Enlarge the set suite.
40224
40225 2009-04-07  Jim Meyering  <meyering@redhat.com>
40226
40227         useless-if-before-free: show how to remove braced useless free, too
40228         * build-aux/useless-if-before-free: still only in a comment, though.
40229
40230 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40231
40232         maint.mk: import changes to syntax-check macros from coreutils
40233         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40234         Use them in the relevant macros.
40235
40236 2009-04-06  Bruno Haible  <bruno@clisp.org>
40237
40238         Fix unportable use of bit-fields.
40239         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40240         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40241         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40242
40243 2009-04-06  Bruno Haible  <bruno@clisp.org>
40244
40245         Avoid test failures on AIX and OSF/1.
40246         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40247         that malloc(0) = NULL.
40248         * tests/unicase/test-u8-tolower.c (check): Likewise.
40249         * tests/unicase/test-u8-totitle.c (check): Likewise.
40250         * tests/unicase/test-u8-toupper.c (check): Likewise.
40251         * tests/unicase/test-u16-casefold.c (check): Likewise.
40252         * tests/unicase/test-u16-tolower.c (check): Likewise.
40253         * tests/unicase/test-u16-totitle.c (check): Likewise.
40254         * tests/unicase/test-u16-toupper.c (check): Likewise.
40255         * tests/unicase/test-u32-casefold.c (check): Likewise.
40256         * tests/unicase/test-u32-tolower.c (check): Likewise.
40257         * tests/unicase/test-u32-totitle.c (check): Likewise.
40258         * tests/unicase/test-u32-toupper.c (check): Likewise.
40259         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40260         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40261         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40262         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40263         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40264         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40265         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40266         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40267         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40268         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40269         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40270         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40271
40272 2009-04-05  Bruno Haible  <bruno@clisp.org>
40273
40274         Work around an autoconf limitation.
40275         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40276         comment line if it would be longer than 3 KB.
40277
40278 2009-04-05  Bruno Haible  <bruno@clisp.org>
40279
40280         Avoid test failure with libiconv-1.13.
40281         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40282         of the expected test results.
40283
40284 2009-04-05  Bruno Haible  <bruno@clisp.org>
40285
40286         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40287         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40288         that it should be installed.
40289
40290 2009-04-05  Bruno Haible  <bruno@clisp.org>
40291
40292         * gnulib-tool: New option --copy-file.
40293         (func_usage): Document it.
40294         (func_dest_tmpfilename): Moved out of func_import.
40295         (func_add_file, func_update_file): New functions, extracted from
40296         func_import.
40297         (func_import): Update.
40298
40299 2009-04-05  Karl Berry  <karl@gnu.org>
40300
40301         * README: prominently mention gnulib-tool.
40302         Rearrange sections so getting the code is near the top.
40303
40304 2009-04-05  Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/unicase.h: Mention u*_cmp2.
40307         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40308         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40309         * lib/unicase/ulc-casecmp.c: Likewise.
40310         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40311         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40312         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40313         unistr/u8-cmp.
40314         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40315         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40316         unistr/u16-cmp.
40317         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40318         unistr/u32-cmp.
40319
40320         * lib/uninorm.h: Mention u*_cmp2.
40321         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40322         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40323         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40324         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40325         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40326         unistr/u8-cmp.
40327         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40328         unistr/u16-cmp.
40329         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40330         unistr/u32-cmp.
40331
40332         New module 'unistr/u32-cmp2'.
40333         * lib/unistr/u32-cmp2.c: New file.
40334         * modules/unistr/u32-cmp2: New file.
40335
40336         New module 'unistr/u16-cmp2'.
40337         * lib/unistr/u16-cmp2.c: New file.
40338         * modules/unistr/u16-cmp2: New file.
40339
40340         New module 'unistr/u8-cmp2'.
40341         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40342         * lib/unistr/u8-cmp2.c: New file.
40343         * lib/unistr/u-cmp2.h: New file.
40344         * modules/unistr/u8-cmp2: New file.
40345
40346 2009-04-05  Bruno Haible  <bruno@clisp.org>
40347
40348         * lib/unictype.h (uc_property_is_valid): New macro.
40349         * tests/unictype/test-pr_byname.c (main): Use it.
40350
40351         * lib/unistr.h: Doc fixes.
40352         * lib/uniconv.h: Doc fixes.
40353         * lib/unictype.h: Doc fixes.
40354
40355 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40356
40357         Port coreutils 7.2 to Solaris 8.
40358
40359         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40360         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40361         for Solaris 8.  This is a bit of a hack, as it means it's the
40362         caller's responsibility to add -lnsl if needed, but most likely it
40363         won't be needed since only getaddrinfo uses this and getaddrinfo
40364         isn't needed on Solaris 8.
40365
40366         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40367         problem to Solaris 8 encountered with coreutils 7.2, which
40368         resulted in a message "fnmatch.c:292: warning: passing argument 4
40369         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40370         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40371
40372 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40373
40374         * m4/ld-version-script.m4: Add FIXME comment.
40375
40376 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40377
40378         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40379         SOVERSION variable.
40380
40381 2009-04-02  Bruno Haible  <bruno@clisp.org>
40382
40383         * Makefile (info, html, dvi, pdf): Combine the rules.
40384         Suggested by Jim Meyering.
40385
40386 2009-04-01  Bruno Haible  <bruno@clisp.org>
40387
40388         * Makefile (info, html, dvi, pdf): New targets.
40389         Reported by Reuben Thomas <rrt@sc3d.org>.
40390
40391 2009-04-01  Bruno Haible  <bruno@clisp.org>
40392
40393         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40394         can be put into PATH.
40395         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40396
40397 2009-04-01  Bruno Haible  <bruno@clisp.org>
40398
40399         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40400
40401 2009-04-01  Bruno Haible  <bruno@clisp.org>
40402
40403         Rename module 'visibility'.
40404         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40405         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40406         * doc/gnulib.texi: Update.
40407         * MODULES.html.sh (Misc): Update.
40408         * NEWS: Mention the change.
40409
40410 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40411
40412         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40413         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40414         Eric Blake <ebb9@byu.net> for review.
40415         * MODULES.html.sh: Add lib-msvc-compat.
40416         * doc/gnulib.texi: Link to new section.
40417         * m4/ld-output-def.m4: New file.
40418         * doc/ld-output-def.texi: New file.
40419
40420 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40421
40422         Rename ld-version-script to lib-symbol-versions.  Suggested by
40423         Bruno Haible <bruno@clisp.org>.
40424         * modules/ld-version-script: Renamed to lib-symbol-versions.
40425         * doc/ld-version-script.texi: Fix module name.
40426         * MODULES.html.sh: Add lib-symbol-versions.
40427
40428 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40429
40430         * modules/u64-tests: New file.
40431         * tests/test-u64.c: New file.
40432
40433 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40434
40435         * MODULES.html.sh: Mention u64.
40436         * modules/u64: New module.
40437         * modules/crypto/sha512: Depend on u64 module instead of providing
40438         u64.h.
40439
40440 2009-03-27  Eric Blake  <ebb9@byu.net>
40441
40442         test-strerror: make debugging EAI_SYSTEM easier
40443         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40444         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40445         failure was EAI_SYSTEM.
40446
40447 2009-03-25  Bruno Haible  <bruno@clisp.org>
40448
40449         Fix a problem with --enable-relocatable on Solaris 7.
40450         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40451         since 2008-02-24.
40452
40453 2009-03-25  Eric Blake  <ebb9@byu.net>
40454
40455         test-sockets: avoid gcc warning
40456         * tests/test-sockets.c (main): Silence compiler warning.
40457
40458 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40459
40460         New modules nproc, pthread, contributed by Glen Lenker.
40461
40462         * MODULES.html.sh: Add pthread, nproc.
40463         * lib/nproc.c: New file.
40464         * lib/nproc.h: New file.
40465         * lib/pthread.in.h: New file.
40466         * m4/pthread.m4: New file.
40467         * modules/nproc: New file.
40468         * modules/pthread: New file.
40469
40470 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40471
40472         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40473         New variable.
40474
40475 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40476
40477         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40478         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40479         * tests/test-filevercmp.c: Add tests for backup suffixes.
40480
40481 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40482
40483         * modules/stdlib (Depends-on): Add stdint, needed when defining
40484         struct random_data on, for example, HP-UX 10.20.  Reported by
40485         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40486
40487 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40488
40489         * lib/readline.c (readline): Call fflush on stdout after printing
40490         prompt.
40491
40492 2009-03-20  Bruno Haible  <bruno@clisp.org>
40493
40494         Remove dependency from 'close' module to -lws2_32 on native Windows.
40495         * lib/close-hook.h: New file.
40496         * lib/close-hook.c: New file.
40497         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40498         w32sock.h.
40499         (_gl_close_fd_maybe_socket): Remove function.
40500         (rpl_close): Invoke execute_all_close_hooks instead of
40501         _gl_close_fd_maybe_socket.
40502         * lib/sockets.c: Include close-hook.h, w32sock.h.
40503         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40504         (close_sockets_hook): New variable.
40505         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40506         (gl_sockets_cleanup): Unregister it.
40507         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40508         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40509         * modules/close-hook: New file.
40510         * modules/close (Files): Remove lib/w32sock.h.
40511         (Depends-on): Add close-hook.
40512         (Link): Remove section.
40513         * modules/sockets (Files): Add lib/w32sock.h.
40514         (Depends-on): Add close-hook.
40515         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40516         invocation.
40517         * NEWS: Mention that LIB_CLOSE is gone.
40518
40519 2009-03-23  Eric Blake  <ebb9@byu.net>
40520
40521         signal-tests: test previous patch
40522         * tests/test-signal.c: New file.
40523         * modules/signal-tests: Likewise.
40524
40525         signal.h: always support 'volatile sig_atomic_t'
40526         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40527         (gl_SIGNAL_H_DEFAULTS): Add a default.
40528         * modules/signal (Makefile.am): Substitute if needed.
40529         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40530         users can blindly add volatile.
40531         * doc/posix-headers/signal.texi (signal.h): Document it.
40532         Reported by Matthew Woehlke.
40533
40534 2009-03-23  Jim Meyering  <meyering@redhat.com>
40535
40536         pathmax: PATH_MAX: use pathconf only when available
40537         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40538         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40539         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40540         This avoids a link failure in a PSP cross-compilation environment
40541         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40542
40543         * lib/vasnprintf.c (divide): Fix typo in comment.
40544
40545 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40546
40547         * gnulib-tool (func_filter_filelist): Fix comment.
40548
40549 2009-03-20  Bruno Haible  <bruno@clisp.org>
40550
40551         Make sockets.h self-contained.
40552         * lib/sockets.c: Include sockets.h first.
40553         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40554
40555 2009-03-19  Eric Blake  <ebb9@byu.net>
40556
40557         doc: mention more functions added in cygwin 1.7.0
40558         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40559         addition.
40560         * doc/posix-functions/log2f.texi: Likewise.
40561
40562 2009-03-19  Jim Meyering  <meyering@redhat.com>
40563
40564         fsusage: avoid syntax error due to statement-before-declaration
40565         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40566         after all declarations.  Reported by Matthew Woehlke in
40567         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40568
40569 2009-03-18  Eric Blake  <ebb9@byu.net>
40570
40571         build-aux/compile: sync from automake
40572         * build-aux/compile: New file, from automake.
40573         * config/srclist.txt: Mention build-aux/compile.
40574
40575 2009-03-17  Bruno Haible  <bruno@clisp.org>
40576
40577         * lib/git-merge-changelog.c: Fix typo in comment.
40578         Reported by Reuben Thomas <rrt@sc3d.org>.
40579
40580 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40581
40582         * m4/regex.m4: update and improve help for
40583         --without-included-regex.
40584
40585 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40586
40587         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40588         failure on missing include files.
40589
40590 2009-03-17  Eric Blake  <ebb9@byu.net>
40591
40592         doc: mention more functions added in cygwin 1.7.0
40593         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40594         addition.
40595         * doc/posix-functions/fwscanf.texi: Likewise.
40596         * doc/posix-functions/swprintf.texi: Likewise.
40597         * doc/posix-functions/swscanf.texi: Likewise.
40598         * doc/posix-functions/vfwprintf.texi: Likewise.
40599         * doc/posix-functions/vfwscanf.texi: Likewise.
40600         * doc/posix-functions/vswprintf.texi: Likewise.
40601         * doc/posix-functions/vswscanf.texi: Likewise.
40602         * doc/posix-functions/vwprintf.texi: Likewise.
40603         * doc/posix-functions/vwscanf.texi: Likewise.
40604         * doc/posix-functions/wcscasecmp.texi: Likewise.
40605         * doc/posix-functions/wcsdup.texi: Likewise.
40606         * doc/posix-functions/wcsftime.texi: Likewise.
40607         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40608         * doc/posix-functions/wprintf.texi: Likewise.
40609         * doc/posix-functions/wscanf.texi: Likewise.
40610         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40611
40612 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40613
40614         maint.mk: really add $(AM_MAKEFLAGS)
40615         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40616         was inadvertently omitted in the last commit.
40617         Spotted by Bruno Haible.
40618
40619         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40620         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40621         $(AM_MAKEFLAGS)' rather than plain `make'.
40622
40623         gnulib-tool: execute $MAKE not make
40624         * gnulib-tool: Default $MAKE to 'make'.
40625         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40626         than make.  Initialize $MAKE in the do-autobuild script.
40627
40628         gnulib-tool: use $MAKE not make in generated files
40629         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40630         make, in generated files.  Initialize $MAKE in the do-autobuild
40631         script.
40632
40633         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40634
40635         GNUmakefile: disable parallelism only for multiple, recursive targets
40636         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40637         additions in the Makefile.
40638         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40639         by Automake.
40640         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40641         are listed on the command line and at least one of them is
40642         listed in $(ALL_RECURSIVE_TARGETS).
40643
40644 2009-03-14  Bruno Haible  <bruno@clisp.org>
40645
40646         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40647         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40648         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40649         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40650         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40651         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40652         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40653         unistr/u8-uctomb.
40654         * modules/unistr/u8-strchr (Depends-on): Likewise.
40655         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40656         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40657         unistr/u16-uctomb.
40658         * modules/unistr/u16-strchr (Depends-on): Likewise.
40659         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40660
40661 2009-03-12  Bruno Haible  <bruno@clisp.org>
40662
40663         Work around select() bug on Interix 3.5.
40664         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40665         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40666         * m4/select.m4: New file.
40667         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40668         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40669         * modules/select (Files): Add m4/select.m4.
40670         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40671         * modules/nanosleep (Depends-on): Add select.
40672         * modules/poll (Depends-on): Likewise.
40673         * doc/posix-functions/select.texi: Mention the Interix bug.
40674         Reported by Markus Duft <mduft@gentoo.org>.
40675
40676         * lib/select.c: Renamed from lib/winsock-select.c.
40677         * modules/select (Files): Add lib/select.c, remove
40678         lib/winsock-select.c.
40679         (configure.ac): Update.
40680
40681 2009-03-12  Jim Meyering  <meyering@redhat.com>
40682
40683         avoid gcc warnings about unused macro definitions
40684         * lib/readtokens.c (STREQ): Remove unused definition.
40685         * lib/xmalloc.c (SIZE_MAX): Likewise.
40686         * lib/openat-die.c (N_): Likewise.
40687         * lib/mountlist.c (SIZE_MAX): Remove definition.
40688         Instead, include <stdint.h>.
40689         * lib/readutmp.c: Likewise.
40690         * modules/readutmp (Depends-on): Add stdint.
40691         * modules/mountlist (Depends-on): Add stdint.
40692         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40693
40694 2009-03-10  Bruno Haible  <bruno@clisp.org>
40695
40696         Tests for module 'mbmemcasecoll'.
40697         * modules/mbmemcasecoll-tests: New file.
40698         * tests/test-mbmemcasecoll1.sh: New file.
40699         * tests/test-mbmemcasecoll2.sh: New file.
40700         * tests/test-mbmemcasecoll3.sh: New file.
40701         * tests/test-mbmemcasecoll.c: New file.
40702
40703         New module 'mbmemcasecoll'.
40704         * lib/mbmemcasecoll.h: New file.
40705         * lib/mbmemcasecoll.c: New file.
40706         * modules/mbmemcasecoll: New file.
40707
40708         * tests/test-mbmemcasecmp.h: New file, extracted from
40709         tests/test-mbmemcasecmp.c.
40710         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40711         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40712         (main): Update.
40713         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40714
40715 2009-03-09  Bruno Haible  <bruno@clisp.org>
40716
40717         Tests for module 'mbmemcasecmp'.
40718         * modules/mbmemcasecmp-tests: New file.
40719         * tests/test-mbmemcasecmp1.sh: New file.
40720         * tests/test-mbmemcasecmp2.sh: New file.
40721         * tests/test-mbmemcasecmp3.sh: New file.
40722         * tests/test-mbmemcasecmp.c: New file.
40723
40724         New module 'mbmemcasecmp'.
40725         * lib/mbmemcasecmp.h: New file.
40726         * lib/mbmemcasecmp.c: New file.
40727         * modules/mbmemcasecmp: New file.
40728
40729 2009-03-09  Bruno Haible  <bruno@clisp.org>
40730
40731         Tests for module 'unicase/ulc-casecoll'.
40732         * modules/unicase/ulc-casecoll-tests: New file.
40733         * tests/unicase/test-ulc-casecoll1.sh: New file.
40734         * tests/unicase/test-ulc-casecoll2.sh: New file.
40735         * tests/unicase/test-ulc-casecoll.c: New file.
40736
40737         New module 'unicase/ulc-casecoll'.
40738         * lib/unicase.h (ulc_casecoll): New declaration.
40739         * lib/unicase/ulc-casecoll.c: New file.
40740         * modules/unicase/ulc-casecoll: New file.
40741
40742         New module 'unicase/ulc-casexfrm'.
40743         * lib/unicase.h (ulc_casexfrm): New declaration.
40744         * lib/unicase/ulc-casexfrm.c: New file.
40745         * modules/unicase/ulc-casexfrm: New file.
40746
40747 2009-03-09  Bruno Haible  <bruno@clisp.org>
40748
40749         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40750         invocations.
40751
40752         * m4/mbscasecmp.m4: Remove file.
40753         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40754         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40755
40756         * m4/mbscasestr.m4: Remove file.
40757         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40758         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40759
40760         * m4/mbschr.m4: Remove file.
40761         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40762         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40763
40764         * m4/mbscspn.m4: Remove file.
40765         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40766         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40767
40768         * m4/mbslen.m4: Remove file.
40769         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40770         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40771
40772         * m4/mbsncasecmp.m4: Remove file.
40773         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40774         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40775
40776         * m4/mbsnlen.m4: Remove file.
40777         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40778         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40779
40780         * m4/mbspbrk.m4: Remove file.
40781         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40782         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40783
40784         * m4/mbspcasecmp.m4: Remove file.
40785         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40786         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40787
40788         * m4/mbsrchr.m4: Remove file.
40789         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40790         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40791
40792         * m4/mbssep.m4: Remove file.
40793         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40794         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40795
40796         * m4/mbsspn.m4: Remove file.
40797         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40798         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40799
40800         * m4/mbsstr.m4: Remove file.
40801         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40802         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40803
40804         * m4/mbstok_r.m4: Remove file.
40805         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40806         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40807
40808         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40809
40810         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40811         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40812
40813         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40814
40815 2009-03-08  Bruno Haible  <bruno@clisp.org>
40816
40817         Tests for module 'unicase/ulc-casecmp'.
40818         * modules/unicase/ulc-casecmp-tests: New file.
40819         * tests/unicase/test-ulc-casecmp1.sh: New file.
40820         * tests/unicase/test-ulc-casecmp2.sh: New file.
40821         * tests/unicase/test-ulc-casecmp.c: New file.
40822
40823         New module 'unicase/ulc-casecmp'.
40824         * lib/unicase.h (ulc_casecmp): New declaration.
40825         * lib/unicase/ulc-casecmp.c: New file.
40826         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40827         'const SRC_UNIT *'.
40828         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40829         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40830         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40831         * modules/unicase/ulc-casecmp: New file.
40832
40833         Tests for module 'unicase/u32-is-cased'.
40834         * modules/unicase/u32-is-cased-tests: New file.
40835         * tests/unicase/test-u32-is-cased.c: New file.
40836
40837         Tests for module 'unicase/u16-is-cased'.
40838         * modules/unicase/u16-is-cased-tests: New file.
40839         * tests/unicase/test-u16-is-cased.c: New file.
40840
40841         Tests for module 'unicase/u8-is-cased'.
40842         * modules/unicase/u8-is-cased-tests: New file.
40843         * tests/unicase/test-u8-is-cased.c: New file.
40844         * tests/unicase/test-is-cased.h: New file.
40845
40846         New module 'unicase/u32-is-cased'.
40847         * lib/unicase/u32-is-cased.c: New file.
40848         * modules/unicase/u32-is-cased: New file.
40849
40850         New module 'unicase/u16-is-cased'.
40851         * lib/unicase/u16-is-cased.c: New file.
40852         * modules/unicase/u16-is-cased: New file.
40853
40854         New module 'unicase/u8-is-cased'.
40855         * lib/unicase/u8-is-cased.c: New file.
40856         * lib/unicase/u-is-cased.h: New file.
40857         * modules/unicase/u8-is-cased: New file.
40858
40859         Tests for module 'unicase/u32-is-casefolded'.
40860         * modules/unicase/u32-is-casefolded-tests: New file.
40861         * tests/unicase/test-u32-is-casefolded.c: New file.
40862
40863         Tests for module 'unicase/u16-is-casefolded'.
40864         * modules/unicase/u16-is-casefolded-tests: New file.
40865         * tests/unicase/test-u16-is-casefolded.c: New file.
40866
40867         Tests for module 'unicase/u8-is-casefolded'.
40868         * modules/unicase/u8-is-casefolded-tests: New file.
40869         * tests/unicase/test-u8-is-casefolded.c: New file.
40870         * tests/unicase/test-is-casefolded.h: New file.
40871
40872         New module 'unicase/u32-is-casefolded'.
40873         * lib/unicase/u32-is-casefolded.c: New file.
40874         * modules/unicase/u32-is-casefolded: New file.
40875
40876         New module 'unicase/u16-is-casefolded'.
40877         * lib/unicase/u16-is-casefolded.c: New file.
40878         * modules/unicase/u16-is-casefolded: New file.
40879
40880         New module 'unicase/u8-is-casefolded'.
40881         * lib/unicase/u8-is-casefolded.c: New file.
40882         * modules/unicase/u8-is-casefolded: New file.
40883
40884         Tests for module 'unicase/u32-is-titlecase'.
40885         * modules/unicase/u32-is-titlecase-tests: New file.
40886         * tests/unicase/test-u32-is-titlecase.c: New file.
40887
40888         Tests for module 'unicase/u16-is-titlecase'.
40889         * modules/unicase/u16-is-titlecase-tests: New file.
40890         * tests/unicase/test-u16-is-titlecase.c: New file.
40891
40892         Tests for module 'unicase/u8-is-titlecase'.
40893         * modules/unicase/u8-is-titlecase-tests: New file.
40894         * tests/unicase/test-u8-is-titlecase.c: New file.
40895         * tests/unicase/test-is-titlecase.h: New file.
40896
40897         New module 'unicase/u32-is-titlecase'.
40898         * lib/unicase/u32-is-titlecase.c: New file.
40899         * modules/unicase/u32-is-titlecase: New file.
40900
40901         New module 'unicase/u16-is-titlecase'.
40902         * lib/unicase/u16-is-titlecase.c: New file.
40903         * modules/unicase/u16-is-titlecase: New file.
40904
40905         New module 'unicase/u8-is-titlecase'.
40906         * lib/unicase/u8-is-titlecase.c: New file.
40907         * modules/unicase/u8-is-titlecase: New file.
40908
40909         Tests for module 'unicase/u32-is-lowercase'.
40910         * modules/unicase/u32-is-lowercase-tests: New file.
40911         * tests/unicase/test-u32-is-lowercase.c: New file.
40912
40913         Tests for module 'unicase/u16-is-lowercase'.
40914         * modules/unicase/u16-is-lowercase-tests: New file.
40915         * tests/unicase/test-u16-is-lowercase.c: New file.
40916
40917         Tests for module 'unicase/u8-is-lowercase'.
40918         * modules/unicase/u8-is-lowercase-tests: New file.
40919         * tests/unicase/test-u8-is-lowercase.c: New file.
40920         * tests/unicase/test-is-lowercase.h: New file.
40921
40922         New module 'unicase/u32-is-lowercase'.
40923         * lib/unicase/u32-is-lowercase.c: New file.
40924         * modules/unicase/u32-is-lowercase: New file.
40925
40926         New module 'unicase/u16-is-lowercase'.
40927         * lib/unicase/u16-is-lowercase.c: New file.
40928         * modules/unicase/u16-is-lowercase: New file.
40929
40930         New module 'unicase/u8-is-lowercase'.
40931         * lib/unicase/u8-is-lowercase.c: New file.
40932         * modules/unicase/u8-is-lowercase: New file.
40933
40934         Tests for module 'unicase/u32-is-uppercase'.
40935         * modules/unicase/u32-is-uppercase-tests: New file.
40936         * tests/unicase/test-u32-is-uppercase.c: New file.
40937
40938         Tests for module 'unicase/u16-is-uppercase'.
40939         * modules/unicase/u16-is-uppercase-tests: New file.
40940         * tests/unicase/test-u16-is-uppercase.c: New file.
40941
40942         Tests for module 'unicase/u8-is-uppercase'.
40943         * modules/unicase/u8-is-uppercase-tests: New file.
40944         * tests/unicase/test-u8-is-uppercase.c: New file.
40945         * tests/unicase/test-is-uppercase.h: New file.
40946
40947         New module 'unicase/u32-is-uppercase'.
40948         * lib/unicase/u32-is-uppercase.c: New file.
40949         * modules/unicase/u32-is-uppercase: New file.
40950
40951         New module 'unicase/u16-is-uppercase'.
40952         * lib/unicase/u16-is-uppercase.c: New file.
40953         * modules/unicase/u16-is-uppercase: New file.
40954
40955         New module 'unicase/u8-is-uppercase'.
40956         * lib/unicase/u8-is-uppercase.c: New file.
40957         * modules/unicase/u8-is-uppercase: New file.
40958
40959         New module 'unicase/u32-is-invariant'.
40960         * lib/unicase/u32-is-invariant.c: New file.
40961         * modules/unicase/u32-is-invariant: New file.
40962
40963         New module 'unicase/u16-is-invariant'.
40964         * lib/unicase/u16-is-invariant.c: New file.
40965         * modules/unicase/u16-is-invariant: New file.
40966
40967         New module 'unicase/u8-is-invariant'.
40968         * lib/unicase/u8-is-invariant.c: New file.
40969         * lib/unicase/invariant.h: New file.
40970         * lib/unicase/u-is-invariant.h: New file.
40971         * modules/unicase/u8-is-invariant: New file.
40972
40973         Tests for module 'unicase/u32-casecoll'.
40974         * modules/unicase/u32-casecoll-tests: New file.
40975         * tests/unicase/test-u32-casecoll.c: New file.
40976
40977         Tests for module 'unicase/u16-casecoll'.
40978         * modules/unicase/u16-casecoll-tests: New file.
40979         * tests/unicase/test-u16-casecoll.c: New file.
40980
40981         Tests for module 'unicase/u8-casecoll'.
40982         * modules/unicase/u8-casecoll-tests: New file.
40983         * tests/unicase/test-u8-casecoll.c: New file.
40984
40985         New module 'unicase/u32-casecoll'.
40986         * lib/unicase/u32-casecoll.c: New file.
40987         * modules/unicase/u32-casecoll: New file.
40988
40989         New module 'unicase/u16-casecoll'.
40990         * lib/unicase/u16-casecoll.c: New file.
40991         * modules/unicase/u16-casecoll: New file.
40992
40993         New module 'unicase/u8-casecoll'.
40994         * lib/unicase/u8-casecoll.c: New file.
40995         * lib/unicase/u-casecoll.h: New file.
40996         * modules/unicase/u8-casecoll: New file.
40997
40998         New module 'unicase/u32-casexfrm'.
40999         * lib/unicase/u32-casexfrm.c: New file.
41000         * modules/unicase/u32-casexfrm: New file.
41001
41002         New module 'unicase/u16-casexfrm'.
41003         * lib/unicase/u16-casexfrm.c: New file.
41004         * modules/unicase/u16-casexfrm: New file.
41005
41006         New module 'unicase/u8-casexfrm'.
41007         * lib/unicase/u8-casexfrm.c: New file.
41008         * lib/unicase/u-casexfrm.h: New file.
41009         * modules/unicase/u8-casexfrm: New file.
41010
41011         Tests for module 'unicase/u32-casecmp'.
41012         * modules/unicase/u32-casecmp-tests: New file.
41013         * tests/unicase/test-u32-casecmp.c: New file.
41014
41015         Tests for module 'unicase/u16-casecmp'.
41016         * modules/unicase/u16-casecmp-tests: New file.
41017         * tests/unicase/test-u16-casecmp.c: New file.
41018
41019         Tests for module 'unicase/u8-casecmp'.
41020         * modules/unicase/u8-casecmp-tests: New file.
41021         * tests/unicase/test-u8-casecmp.c: New file.
41022         * tests/unicase/test-casecmp.h: New file.
41023
41024         New module 'unicase/u32-casecmp'.
41025         * lib/unicase/u32-casecmp.c: New file.
41026         * modules/unicase/u32-casecmp: New file.
41027
41028         New module 'unicase/u16-casecmp'.
41029         * lib/unicase/u16-casecmp.c: New file.
41030         * modules/unicase/u16-casecmp: New file.
41031
41032         New module 'unicase/u8-casecmp'.
41033         * lib/unicase/u8-casecmp.c: New file.
41034         * lib/unicase/u-casecmp.h: New file.
41035         * modules/unicase/u8-casecmp: New file.
41036
41037         Tests for module 'unicase/u32-casefold'.
41038         * modules/unicase/u32-casefold-tests: New file.
41039         * tests/unicase/test-u32-casefold.c: New file.
41040
41041         Tests for module 'unicase/u16-casefold'.
41042         * modules/unicase/u16-casefold-tests: New file.
41043         * tests/unicase/test-u16-casefold.c: New file.
41044
41045         Tests for module 'unicase/u8-casefold'.
41046         * modules/unicase/u8-casefold-tests: New file.
41047         * tests/unicase/test-u8-casefold.c: New file.
41048
41049         New module 'unicase/u32-casefold'.
41050         * lib/unicase/u32-casefold.c: New file.
41051         * modules/unicase/u32-casefold: New file.
41052
41053         New module 'unicase/u16-casefold'.
41054         * lib/unicase/u16-casefold.c: New file.
41055         * modules/unicase/u16-casefold: New file.
41056
41057         New module 'unicase/u8-casefold'.
41058         * lib/unicase/u8-casefold.c: New file.
41059         * lib/unicase/u-casefold.h: New file.
41060         * modules/unicase/u8-casefold: New file.
41061
41062         New module 'unicase/tocasefold'.
41063         * lib/unicase/casefold.h: New file.
41064         * lib/unicase/tocasefold.c: New file.
41065         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41066         * modules/unicase/tocasefold: New file.
41067
41068         Tests for module 'unicase/u32-totitle'.
41069         * modules/unicase/u32-totitle-tests: New file.
41070         * tests/unicase/test-u32-totitle.c: New file.
41071
41072         Tests for module 'unicase/u16-totitle'.
41073         * modules/unicase/u16-totitle-tests: New file.
41074         * tests/unicase/test-u16-totitle.c: New file.
41075
41076         Tests for module 'unicase/u8-totitle'.
41077         * modules/unicase/u8-totitle-tests: New file.
41078         * tests/unicase/test-u8-totitle.c: New file.
41079
41080         New module 'unicase/u32-totitle'.
41081         * lib/unicase/u32-totitle.c: New file.
41082         * modules/unicase/u32-totitle: New file.
41083
41084         New module 'unicase/u16-totitle'.
41085         * lib/unicase/u16-totitle.c: New file.
41086         * modules/unicase/u16-totitle: New file.
41087
41088         New module 'unicase/u8-totitle'.
41089         * lib/unicase/u8-totitle.c: New file.
41090         * lib/unicase/u-totitle.h: New file.
41091         * modules/unicase/u8-totitle: New file.
41092
41093         Tests for module 'unicase/u32-tolower'.
41094         * modules/unicase/u32-tolower-tests: New file.
41095         * tests/unicase/test-u32-tolower.c: New file.
41096
41097         Tests for module 'unicase/u16-tolower'.
41098         * modules/unicase/u16-tolower-tests: New file.
41099         * tests/unicase/test-u16-tolower.c: New file.
41100
41101         Tests for module 'unicase/u8-tolower'.
41102         * modules/unicase/u8-tolower-tests: New file.
41103         * tests/unicase/test-u8-tolower.c: New file.
41104
41105         New module 'unicase/u32-tolower'.
41106         * lib/unicase/u32-tolower.c: New file.
41107         * modules/unicase/u32-tolower: New file.
41108
41109         New module 'unicase/u16-tolower'.
41110         * lib/unicase/u16-tolower.c: New file.
41111         * modules/unicase/u16-tolower: New file.
41112
41113         New module 'unicase/u8-tolower'.
41114         * lib/unicase/u8-tolower.c: New file.
41115         * modules/unicase/u8-tolower: New file.
41116
41117         Tests for module 'unicase/u32-toupper'.
41118         * modules/unicase/u32-toupper-tests: New file.
41119         * tests/unicase/test-u32-toupper.c: New file.
41120
41121         Tests for module 'unicase/u16-toupper'.
41122         * modules/unicase/u16-toupper-tests: New file.
41123         * tests/unicase/test-u16-toupper.c: New file.
41124
41125         Tests for module 'unicase/u8-toupper'.
41126         * modules/unicase/u8-toupper-tests: New file.
41127         * tests/unicase/test-u8-toupper.c: New file.
41128
41129         New module 'unicase/u32-toupper'.
41130         * lib/unicase/u32-toupper.c: New file.
41131         * modules/unicase/u32-toupper: New file.
41132
41133         New module 'unicase/u16-toupper'.
41134         * lib/unicase/u16-toupper.c: New file.
41135         * modules/unicase/u16-toupper: New file.
41136
41137         New module 'unicase/u8-toupper'.
41138         * lib/unicase/u8-toupper.c: New file.
41139         * modules/unicase/u8-toupper: New file.
41140
41141         New module 'unicase/u32-casemap'.
41142         * lib/unicase/u32-casemap.c: New file.
41143         * modules/unicase/u32-casemap: New file.
41144
41145         New module 'unicase/u16-casemap'.
41146         * lib/unicase/u16-casemap.c: New file.
41147         * modules/unicase/u16-casemap: New file.
41148
41149         New module 'unicase/u8-casemap'.
41150         * lib/unicase/unicasemap.h: New file.
41151         * lib/unicase/u8-casemap.c: New file.
41152         * lib/unicase/u-casemap.h: New file.
41153         * modules/unicase/u8-casemap: New file.
41154
41155         New module 'unicase/special-casing'.
41156         * lib/unicase/special-casing.h: New file.
41157         * lib/unicase/special-casing.c: New file.
41158         * lib/unicase/special-casing-table.gperf: New file, generated by
41159         gen-uni-tables.c.
41160         * modules/unicase/special-casing: New file.
41161
41162         Tests for module 'unicase/locale-language'.
41163         * modules/unicase/locale-language-tests: New file.
41164         * tests/unicase/test-locale-language.sh: New file.
41165         * tests/unicase/test-locale-language.c: New file.
41166
41167         New module 'unicase/locale-language'.
41168         * lib/unicase/locale-language.c: New file.
41169         * lib/unicase/locale-languages.gperf: New file.
41170         * modules/unicase/locale-language: New file.
41171
41172         Generate more tables for case conversion and case folding.
41173         * lib/gen-uni-tables.c (SCC_*): New enum items.
41174         (struct special_casing_rule): New type.
41175         (casing_rules, num_casing_rules, allocated_casing_rules): New
41176         variables.
41177         (add_casing_rule, fill_casing_rules): New functions.
41178         (struct casefold_rule): New type.
41179         (casefolding_rules, num_casefolding_rules,
41180         allocated_casefolding_rules): New variables.
41181         (fill_casefolding_rules): New function.
41182         (unicode_casefold): New variable.
41183         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41184         sort_casing_rules, output_casing_rules): New functions.
41185         (main): Accept to more arguments: SpecialCasing.txt and
41186         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41187         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41188         Output mapping for casefolding.
41189
41190         * lib/unicase.h: Include stdbool.h, uninorm.h.
41191         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41192         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41193         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41194         arguments.
41195         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41196         resultp arguments.
41197         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41198         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41199         resultp arguments.
41200         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41201         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41202         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41203         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41204         declarations.
41205         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41206
41207 2009-03-08  Bruno Haible  <bruno@clisp.org>
41208
41209         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41210         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41211         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41212         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41213
41214 2009-03-07  Bruno Haible  <bruno@clisp.org>
41215
41216         Adjust u*_normcmp, u*_normcoll API.
41217         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41218         u16_normcoll, u32_normcoll): Change failure conventions.
41219         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41220         errno and return -1.
41221         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41222
41223 2009-03-07  Bruno Haible  <bruno@clisp.org>
41224
41225         Tests for module 'uninorm/u32-normcoll'.
41226         * modules/uninorm/u32-normcoll-tests: New file.
41227         * tests/uninorm/test-u32-normcoll.c: New file.
41228
41229         Tests for module 'uninorm/u16-normcoll'.
41230         * modules/uninorm/u16-normcoll-tests: New file.
41231         * tests/uninorm/test-u16-normcoll.c: New file.
41232
41233         Tests for module 'uninorm/u8-normcoll'.
41234         * modules/uninorm/u8-normcoll-tests: New file.
41235         * tests/uninorm/test-u8-normcoll.c: New file.
41236
41237 2009-03-07  Bruno Haible  <bruno@clisp.org>
41238
41239         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41240         tests/uninorm/test-u32-normcmp.c.
41241         * tests/uninorm/test-u32-normcmp.c: Include it.
41242         (test_nonascii): New function, extracted from main. Add some more
41243         tests.
41244         (main): Invoke test_ascii and test_nonascii.
41245         * modules/uninorm/u32-normcmp-tests (Files): Add
41246         tests/uninorm/test-u32-normcmp.h.
41247         (Depends-on): Remove uninorm/u32-normcmp.
41248
41249         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41250         tests/uninorm/test-u16-normcmp.c.
41251         * tests/uninorm/test-u16-normcmp.c: Include it.
41252         (test_nonascii): New function, extracted from main. Add some more
41253         tests.
41254         (main): Invoke test_ascii and test_nonascii.
41255         * modules/uninorm/u16-normcmp-tests (Files): Add
41256         tests/uninorm/test-u16-normcmp.h.
41257         (Depends-on): Remove uninorm/u16-normcmp.
41258
41259         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41260         tests/uninorm/test-u8-normcmp.c.
41261         * tests/uninorm/test-u8-normcmp.c: Include it.
41262         (test_nonascii): New function, extracted from main. Add some more
41263         tests.
41264         (main): Invoke test_ascii and test_nonascii.
41265         * modules/uninorm/u8-normcmp-tests (Files): Add
41266         tests/uninorm/test-u8-normcmp.h.
41267         (Depends-on): Remove uninorm/u8-normcmp.
41268
41269 2009-03-07  Bruno Haible  <bruno@clisp.org>
41270
41271         New module 'uninorm/u32-normcoll'.
41272         * lib/uninorm/u32-normcoll.c: New file.
41273         * modules/uninorm/u32-normcoll: New file.
41274
41275         New module 'uninorm/u16-normcoll'.
41276         * lib/uninorm/u16-normcoll.c: New file.
41277         * modules/uninorm/u16-normcoll: New file.
41278
41279         New module 'uninorm/u8-normcoll'.
41280         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41281         declarations.
41282         * lib/uninorm/u8-normcoll.c: New file.
41283         * lib/uninorm/u-normcoll.h: New file.
41284         * modules/uninorm/u8-normcoll: New file.
41285
41286         New module 'uninorm/u32-normxfrm'.
41287         * lib/uninorm/u32-normxfrm.c: New file.
41288         * modules/uninorm/u32-normxfrm: New file.
41289
41290         New module 'uninorm/u16-normxfrm'.
41291         * lib/uninorm/u16-normxfrm.c: New file.
41292         * modules/uninorm/u16-normxfrm: New file.
41293
41294         New module 'uninorm/u8-normxfrm'.
41295         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41296         declarations.
41297         * lib/uninorm/u8-normxfrm.c: New file.
41298         * lib/uninorm/u-normxfrm.h: New file.
41299         * modules/uninorm/u8-normxfrm: New file.
41300
41301 2009-03-07  Bruno Haible  <bruno@clisp.org>
41302
41303         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41304         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41305         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41306
41307 2009-03-07  Bruno Haible  <bruno@clisp.org>
41308
41309         New module 'memxfrm'.
41310         * lib/memxfrm.h: New file.
41311         * lib/memxfrm.c: New file.
41312         * modules/memxfrm: New file.
41313
41314 2009-03-07  Bruno Haible  <bruno@clisp.org>
41315
41316         New module 'memcmp2'.
41317         * lib/memcmp2.h: New file.
41318         * lib/memcmp2.c: New file.
41319         * modules/memcmp2: New file.
41320
41321 2009-03-07  Bruno Haible  <bruno@clisp.org>
41322
41323         Tests for module 'uninorm/decomposing-form'.
41324         * modules/uninorm/decomposing-form-tests: New file.
41325         * tests/uninorm/test-decomposing-form.c: New file.
41326
41327         New module 'uninorm/decomposing-form'.
41328         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41329         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41330         Add 'decomposing_variant' field.
41331         * lib/uninorm/decomposing-form.c: New file.
41332         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41333         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41334         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41335         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41336         * modules/uninorm/decomposing-form: New file.
41337         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41338         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41339
41340 2009-03-07  Bruno Haible  <bruno@clisp.org>
41341
41342         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41343         strings.
41344
41345 2009-03-06  Bruno Haible  <bruno@clisp.org>
41346
41347         Tests for module 'uninorm/u32-normcmp'.
41348         * tests/uninorm/test-u32-normcmp.c: New file.
41349         * modules/uninorm/u32-normcmp-tests: New file.
41350
41351         Tests for module 'uninorm/u16-normcmp'.
41352         * tests/uninorm/test-u16-normcmp.c: New file.
41353         * modules/uninorm/u16-normcmp-tests: New file.
41354
41355         Tests for module 'uninorm/u8-normcmp'.
41356         * tests/uninorm/test-u8-normcmp.c: New file.
41357         * modules/uninorm/u8-normcmp-tests: New file.
41358
41359         New module 'uninorm/u32-normcmp'.
41360         * lib/uninorm/u32-normcmp.c: New file.
41361         * modules/uninorm/u32-normcmp: New file.
41362
41363         New module 'uninorm/u16-normcmp'.
41364         * lib/uninorm/u16-normcmp.c: New file.
41365         * modules/uninorm/u16-normcmp: New file.
41366
41367         New module 'uninorm/u8-normcmp'.
41368         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41369         declarations.
41370         * lib/uninorm/u8-normcmp.c: New file.
41371         * lib/uninorm/u-normcmp.h: New file.
41372         * modules/uninorm/u8-normcmp: New file.
41373
41374 2009-03-06  Bruno Haible  <bruno@clisp.org>
41375
41376         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41377         Reported by Eric Blake.
41378
41379 2009-03-06  Eric Blake  <ebb9@byu.net>
41380             Bruno Haible  <bruno@clisp.org>
41381
41382         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41383         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41384         condition.
41385         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41386         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41387         condition.
41388         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41389
41390 2009-03-06  Eric Blake  <ebb9@byu.net>
41391
41392         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41393         to avoid compiler warnings.
41394         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41395
41396 2009-03-05  Bruno Haible  <bruno@clisp.org>
41397
41398         * tests/test-ftell.c (main): Disable test beyond end of file on
41399         FreeMiNT.
41400         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41401
41402 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41403
41404         * lib/filevercmp.c: Move hidden files up in ordering.
41405         * tests/test-filevercmp.c: Add tests for hidden files.
41406
41407 2009-03-04  Bruno Haible  <bruno@clisp.org>
41408
41409         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41410         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41411         AM_CFLAGS.
41412         Reported by Simon Josefsson.
41413
41414 2009-03-03  Bruno Haible  <bruno@clisp.org>
41415
41416         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41417         Reported by Simon Josefsson.
41418
41419         * doc/ld-version-script.texi: Update node reference.
41420
41421 2009-03-03  Bruno Haible  <bruno@clisp.org>
41422
41423         * modules/visibility (License): Change to 'unlimited'.
41424         Suggested by Simon Josefsson.
41425
41426 2009-03-03  Jim Meyering  <meyering@redhat.com>
41427
41428         unlinkdir: cannot_unlink_dir may modify process state
41429         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41430         it's neither thread-safe nor appropriate for use in a library.
41431
41432 2009-03-03  Eric Blake  <ebb9@byu.net>
41433
41434         test-closein: silence test under Darwin
41435         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41436         care if it dies from EPIPE or EBADF.
41437
41438 2009-03-03  Bruno Haible  <bruno@clisp.org>
41439
41440         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41441         earlier.
41442         * doc/visibility.texi: Fix @node and @section.
41443
41444 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41445
41446         * doc/gnulib.texi: Link to sections for ld version script and
41447         visibility.
41448         * doc/visibility.texi: Add @node and @section.
41449         * modules/ld-version-script: New module.
41450         * m4/ld-version-script.m4: New file.
41451         * doc/ld-version-script.texi: New file.
41452
41453 2009-03-02  David Lutterkort  <lutter@redhat.com>
41454
41455         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41457
41458 2009-03-02  Bruno Haible  <bruno@clisp.org>
41459
41460         * doc/visibility.texi: Mention libtool's -export-symbols option.
41461
41462 2009-03-02  Jim Meyering  <meyering@redhat.com>
41463
41464         announce-gen: new option: --no-print-checksums
41465         * build-aux/announce-gen (usage): Describe it.
41466         (print_checksums): Print a newline here, not in the [*] footnote.
41467         (main): Honor it.
41468
41469 2009-03-01  Bruno Haible  <bruno@clisp.org>
41470
41471         Use socklen_t in the native Windows replacements prototypes.
41472         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41473         instead of 'int'.
41474         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41475         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41476         * modules/getsockopt (Depends-on): Add socklen.
41477         * modules/setsockopt (Depends-on): Add socklen.
41478
41479 2009-03-01  Bruno Haible  <bruno@clisp.org>
41480
41481         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41482         least 4.2.
41483
41484 2009-03-01  Eric Blake  <ebb9@byu.net>
41485             Bruno Haible  <bruno@clisp.org>
41486
41487         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41488         error messages.
41489         * lib/wait-process.c (wait_subprocess): Omit error message about
41490         deadly signal sent to the child of termsigp != NULL.
41491
41492 2009-03-01  Eric Blake  <ebb9@byu.net>
41493
41494         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41495
41496 2009-03-01  Bruno Haible  <bruno@clisp.org>
41497
41498         Avoid a gcc warning.
41499         * tests/test-sched.c (b): Make global.
41500         Reported by Eric Blake.
41501
41502 2009-01-19  Martin Lambers  <marlam@marlam.de>
41503
41504         Provide POSIX semantics for socket timeout options on W32.
41505         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41506         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41507         * modules/setsockopt: Depend on sys_time module for struct timeval.
41508         * modules/getsockopt: Depend on sys_time module for struct timeval.
41509
41510 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41511
41512         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41513         __USE_GNU, for consistency with netdb.in.h.
41514         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41515
41516 2009-03-01  Bruno Haible  <bruno@clisp.org>
41517
41518         More support for FreeMiNT.
41519         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41520         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41521
41522 2009-03-01  Bruno Haible  <bruno@clisp.org>
41523
41524         More support for FreeMiNT.
41525         * lib/fpurge.c (fpurge): Correct last commit.
41526         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41527
41528 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41529
41530         Fix unportable awk script in vc-list-files.
41531         * build-aux/vc-list-files: In the replacement awk script, use
41532         substr with a second argument of 1, not zero.
41533         Report by Simon Josefsson.
41534
41535 2009-02-28  Bruno Haible  <bruno@clisp.org>
41536
41537         More support for FreeMiNT.
41538         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41539         to FreeMiNT today.
41540         * lib/fwriting.c (fwriting): Likewise.
41541         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41542
41543 2009-02-28  Bruno Haible  <bruno@clisp.org>
41544
41545         * tests/test-freadseek.c (main): Disable test beyond end of file on
41546         FreeMiNT.
41547         * tests/test-ftello.c (main): Likewise.
41548         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41549
41550 2009-02-28  Bruno Haible  <bruno@clisp.org>
41551
41552         Add tentative support for FreeMiNT.
41553         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41554         * lib/fpurge.c (fpurge): Likewise.
41555         * lib/freadable.c (freadable): Likewise.
41556         * lib/freading.c (freading): Likewise.
41557         * lib/freadptr.c (freadptr): Likewise.
41558         * lib/freadseek.c (freadptrinc): Likewise.
41559         * lib/fseeko.c (rpl_fseeko): Likewise.
41560         * lib/fseterr.c (fseterr): Likewise.
41561         * lib/fwritable.c (fwritable): Likewise.
41562         * lib/fwriting.c (fwriting): Likewise.
41563         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41564         Hourihane.
41565         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41566
41567 2009-02-28  Bruno Haible  <bruno@clisp.org>
41568
41569         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41570         SIGCHLD.
41571         Reported by Jim Meyering.
41572
41573 2009-02-28  Bruno Haible  <bruno@clisp.org>
41574
41575         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41576         Mention the results of these tests on various platforms.
41577         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41578         order.
41579         * doc/posix-functions/printf.texi: Likewise.
41580         * doc/posix-functions/snprintf.texi: Likewise.
41581         * doc/posix-functions/sprintf.texi: Likewise.
41582         * doc/posix-functions/vfprintf.texi: Likewise.
41583         * doc/posix-functions/vprintf.texi: Likewise.
41584         * doc/posix-functions/vsnprintf.texi: Likewise.
41585         * doc/posix-functions/vsprintf.texi: Likewise.
41586         * doc/glibc-functions/obstack_printf.texi: Likewise.
41587         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41588
41589 2009-02-28  Bruno Haible  <bruno@clisp.org>
41590
41591         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41592         Reported by Loïc Minier <lool@dooz.org>.
41593
41594 2009-02-27  Bruno Haible  <bruno@clisp.org>
41595
41596         * gnulib-tool (func_import): Make the sed expression used to create the
41597         sed script for updating the .gitignore file POSIX compliant.
41598         Reported by Eric Blake.
41599
41600 2009-02-27  Bruno Haible  <bruno@clisp.org>
41601
41602         * gnulib-tool (sed): Don't alias as "sed --posix".
41603         Reported by Eric Blake.
41604
41605 2009-02-27  Bruno Haible  <bruno@clisp.org>
41606
41607         Avoid test link errors.
41608         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41609         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41610         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41611         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41613
41614 2009-02-27  Bruno Haible  <bruno@clisp.org>
41615
41616         Avoid spurious "(cached)" in configure output.
41617         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41618         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41619         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41620         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41621         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41622         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41623         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41624         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41625         Reported by Eric Blake.
41626
41627 2009-02-27  Eric Blake  <ebb9@byu.net>
41628
41629         printf: fix regression in previous patch
41630         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41631
41632 2009-02-27  Bruno Haible  <bruno@clisp.org>
41633
41634         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41635         value.
41636         * lib/stdint.in.h: Likewise.
41637         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41638
41639 2009-02-27  Eric Blake  <ebb9@byu.net>
41640
41641         doc: mention more functions added in cygwin 1.7.0
41642         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41643         addition.
41644         * doc/posix-functions/open_wmemstream.texi: Likewise.
41645         * doc/posix-functions/wcsnlen.texi: Likewise.
41646         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41647         * doc/posix-functions/wcstod.texi: Likewise.
41648         * doc/posix-functions/wcstof.texi: Likewise.
41649         * doc/posix-functions/wcstoimax.texi: Likewise.
41650         * doc/posix-functions/wcstok.texi: Likewise.
41651         * doc/posix-functions/wcstoumax.texi: Likewise.
41652
41653         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41655         * doc/posix-functions/fprintf.texi: Update.
41656         * doc/posix-functions/printf.texi: Update.
41657         * doc/posix-functions/snprintf.texi: Update.
41658         * doc/posix-functions/sprintf.texi: Update.
41659         * doc/posix-functions/vfprintf.texi: Update.
41660         * doc/posix-functions/vprintf.texi: Update.
41661         * doc/posix-functions/vsnprintf.texi: Update.
41662         * doc/posix-functions/vsprintf.texi: Update.
41663         * doc/glibc-functions/obstack_printf.texi: Update.
41664         * doc/glibc-functions/obstack_vprintf.texi: Update.
41665
41666 2009-02-26  Eric Blake  <ebb9@byu.net>
41667
41668         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41669         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41670         compilation bug by using runtime conversion.
41671         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41672         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41673         * modules/ceill-tests (Files): Use nan.h.
41674         * modules/floorl-tests (Files): Likewise.
41675         * modules/frexpl-tests (Files): Likewise.
41676         * modules/isnanl-tests (Files): Likewise.
41677         * modules/ldexpl-tests (Files): Likewise.
41678         * modules/roundl-tests (Files): Likewise.
41679         * modules/truncl-tests (Files): Likewise.
41680         * tests/test-ceill.c (main): Use a working NaN.
41681         * tests/test-floorl.c (main): Likewise.
41682         * tests/test-frexpl.c (main): Likewise.
41683         * tests/test-isnan.c (test_long_double): Likewise.
41684         * tests/test-isnanl.h (main): Likewise.
41685         * tests/test-ldexpl.h (main): Likewise.
41686         * tests/test-roundl.h (main): Likewise.
41687         * tests/test-truncl.h (main): Likewise.
41688         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41689
41690 2009-02-26  Eric Blake  <ebb9@byu.net>
41691             Bruno Haible  <bruno@clisp.org>
41692
41693         Work around a *printf bug with %ls on Solaris.
41694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41695         precision is specified, sprintf stops converting the wide string
41696         argument when the number of bytes that have been produced by this
41697         conversion equals or exceeds the precision.
41698         * doc/posix-functions/fprintf.texi: Update.
41699         * doc/posix-functions/printf.texi: Update.
41700         * doc/posix-functions/snprintf.texi: Update.
41701         * doc/posix-functions/sprintf.texi: Update.
41702         * doc/posix-functions/vfprintf.texi: Update.
41703         * doc/posix-functions/vprintf.texi: Update.
41704         * doc/posix-functions/vsnprintf.texi: Update.
41705         * doc/posix-functions/vsprintf.texi: Update.
41706         * doc/glibc-functions/obstack_printf.texi: Update.
41707         * doc/glibc-functions/obstack_vprintf.texi: Update.
41708
41709 2009-02-26  Eric Blake  <ebb9@byu.net>
41710
41711         stdlib: favor compiler check of random.h
41712         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41713         to avoid an ObjC random.h installed by Swarm.
41714
41715 2009-02-26  Bruno Haible  <bruno@clisp.org>
41716
41717         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41718         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41719         Reported by Gary V. Vaughan <gary@gnu.org>.
41720
41721 2009-02-26  Bruno Haible  <bruno@clisp.org>
41722
41723         Fix *printf behaviour regarding the %ls directive.
41724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41725         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41726         NEED_PRINTF_DIRECTIVE_LS.
41727         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41728         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41729         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41730         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41731         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41732         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41733         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41734         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41735         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41736         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41737         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41738         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41739         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41740         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41741         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41742         * doc/posix-functions/fprintf.texi: Update.
41743         * doc/posix-functions/printf.texi: Update.
41744         * doc/posix-functions/snprintf.texi: Update.
41745         * doc/posix-functions/sprintf.texi: Update.
41746         * doc/posix-functions/vfprintf.texi: Update.
41747         * doc/posix-functions/vprintf.texi: Update.
41748         * doc/posix-functions/vsnprintf.texi: Update.
41749         * doc/posix-functions/vsprintf.texi: Update.
41750         * doc/glibc-functions/obstack_printf.texi: Update.
41751         * doc/glibc-functions/obstack_vprintf.texi: Update.
41752         Reported by Eric Blake.
41753
41754 2009-02-25  Bruno Haible  <bruno@clisp.org>
41755
41756         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41757         with known value.
41758         Reported by Gary V. Vaughan <gary@gnu.org>.
41759
41760 2009-02-25  Bruno Haible  <bruno@clisp.org>
41761
41762         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41763         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41764         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41765         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41766         Reported by Gary V. Vaughan <gary@gnu.org>.
41767
41768 2009-02-25  Bruno Haible  <bruno@clisp.org>
41769
41770         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41771         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41772         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41773         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41774         Reported by Gary V. Vaughan <gary@gnu.org>.
41775
41776 2009-02-25  Eric Blake  <ebb9@byu.net>
41777
41778         tests: skip fseek/ftell tests if ungetc is broken
41779         * m4/ungetc.m4: New file.
41780         * modules/fseek-tests: Split test, so ungetc dependency is
41781         separate from rest of test.
41782         * modules/fseeko-tests: Likewise.
41783         * modules/ftell-tests: Likewise.
41784         * modules/ftello-tests: Likewise.
41785         * tests/test-fseek.c (main): Isolate ungetc dependency.
41786         * tests/test-fseeko.c (main): Likewise.
41787         * tests/test-ftell.c (main): Likewise.
41788         * tests/test-ftello.c (main): Likewise.
41789         * tests/test-fseek2.sh: New file.
41790         * tests/test-fseeko2.sh: Likewise.
41791         * tests/test-ftell2.sh: Likewise.
41792         * tests/test-ftello2.sh: Likewise.
41793
41794 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41795
41796         test-getaddrinfo: fix usage of skip return code 77
41797         * tests/test-gettaddrinfo.c: Return skip code 77 only
41798         for first occurance of skip (4x77 is not 77)
41799
41800 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41801
41802         strtod: avoid C99 decl-after-statement
41803         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41804
41805 2009-02-24  Eric Blake  <ebb9@byu.net>
41806
41807         strtod: detect HP-UX 11.31 bug
41808         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41809         Reported by Gary V. Vaughan.
41810
41811 2009-02-23  Bruno Haible  <bruno@clisp.org>
41812
41813         Fix invalid read past end of memory block.
41814         * lib/vasnprintf.c (DCHAR_SET): Define.
41815         (local_wcslen): Define only when needed.
41816         (local_strnlen, local_wcsnlen): New functions.
41817         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41818         directives that involve a conversion ourselves.
41819         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41820         wcsnlen, mbrtowc, wcrtomb.
41821         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41822         * tests/test-vasprintf-posix.c (test_function): Likewise.
41823         * tests/test-snprintf-posix.h (test_function): Likewise.
41824         * tests/test-sprintf-posix.h (test_function): Likewise.
41825         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41826
41827 2009-02-22  Bruno Haible  <bruno@clisp.org>
41828
41829         Implement new clarified decomposition of Hangul syllables.
41830         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41831         of type LTV, return only a pairwise decomposition.
41832         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41833         Likewise.
41834         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41835         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41836         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41837
41838 2009-02-22  Bruno Haible  <bruno@clisp.org>
41839
41840         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41841         zero-length results and shrink excess allocated memory.
41842         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41843         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41844         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41845         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41846         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41847         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41848         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41849         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41850         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41851         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41852         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41853         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41854
41855 2009-02-21  Bruno Haible  <bruno@clisp.org>
41856
41857         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41858         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41859         spaces after a period. Put a space between a macro name and its
41860         argument list. Trivial rewordings.
41861         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41862         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41863         (main): Return 0 explicitly.
41864
41865 2009-02-21  Bruno Haible  <bruno@clisp.org>
41866
41867         Tests for module 'uninorm/filter'.
41868         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41869         * modules/uninorm/filter-tests: New file.
41870
41871         New module 'uninorm/filter'.
41872         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41873         uninorm_filter_flush, uninorm_filter_free): New declarations.
41874         * lib/uninorm/uninorm-filter.c: New file.
41875         * modules/uninorm/filter: New file.
41876
41877 2009-02-21  Bruno Haible  <bruno@clisp.org>
41878
41879         Tests for module 'uninorm/nfkc'.
41880         * tests/uninorm/test-nfkc.c: New file.
41881         * tests/uninorm/test-u8-nfkc.c: New file.
41882         * tests/uninorm/test-u16-nfkc.c: New file.
41883         * tests/uninorm/test-u32-nfkc.c: New file.
41884         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41885         * tests/uninorm/test-u32-nfkc-big.c: New file.
41886         * modules/uninorm/nfkc-tests: New file.
41887
41888         New module 'uninorm/nfkc'.
41889         * lib/uninorm/nfkc.c: New file.
41890         * modules/uninorm/nfkc: New file.
41891
41892         Tests for module 'uninorm/nfkd'.
41893         * tests/uninorm/test-nfkd.c: New file.
41894         * tests/uninorm/test-u8-nfkd.c: New file.
41895         * tests/uninorm/test-u16-nfkd.c: New file.
41896         * tests/uninorm/test-u32-nfkd.c: New file.
41897         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41898         * tests/uninorm/test-u32-nfkd-big.c: New file.
41899         * modules/uninorm/nfkd-tests: New file.
41900
41901         New module 'uninorm/nfkd'.
41902         * lib/uninorm/nfkd.c: New file.
41903         * modules/uninorm/nfkd: New file.
41904
41905         Tests for module 'uninorm/nfc'.
41906         * tests/uninorm/test-nfc.c: New file.
41907         * tests/uninorm/test-u8-nfc.c: New file.
41908         * tests/uninorm/test-u16-nfc.c: New file.
41909         * tests/uninorm/test-u32-nfc.c: New file.
41910         * tests/uninorm/test-u32-nfc-big.sh: New file.
41911         * tests/uninorm/test-u32-nfc-big.c: New file.
41912         * modules/uninorm/nfc-tests: New file.
41913
41914         New module 'uninorm/nfc'.
41915         * lib/uninorm/nfc.c: New file.
41916         * modules/uninorm/nfc: New file.
41917
41918         Tests for module 'uninorm/nfd'.
41919         * tests/uninorm/test-nfd.c: New file.
41920         * tests/uninorm/test-u8-nfd.c: New file.
41921         * tests/uninorm/test-u16-nfd.c: New file.
41922         * tests/uninorm/test-u32-nfd.c: New file.
41923         * tests/uninorm/test-u32-nfd-big.sh: New file.
41924         * tests/uninorm/test-u32-nfd-big.c: New file.
41925         * tests/uninorm/test-u32-normalize-big.h: New file.
41926         * tests/uninorm/test-u32-normalize-big.c: New file.
41927         * tests/uninorm/NormalizationTest.txt: New file, created from
41928         Unicode 5.1.0 NormalizationTest.txt.
41929         * modules/uninorm/nfd-tests: New file.
41930
41931         New module 'uninorm/nfd'.
41932         * lib/uninorm/nfd.c: New file.
41933         * modules/uninorm/nfd: New file.
41934
41935         New module 'uninorm/u32-normalize'.
41936         * lib/uninorm/u32-normalize.c: New file.
41937         * modules/uninorm/u32-normalize: New file.
41938
41939         New module 'uninorm/u16-normalize'.
41940         * lib/uninorm/u16-normalize.c: New file.
41941         * modules/uninorm/u16-normalize: New file.
41942
41943         New module 'uninorm/u8-normalize'.
41944         * lib/uninorm/u8-normalize.c: New file.
41945         * lib/uninorm/normalize-internal.h: New file.
41946         * lib/uninorm/u-normalize-internal.h: New file.
41947         * modules/uninorm/u8-normalize: New file.
41948
41949         New module 'uninorm/decompose-internal'.
41950         * lib/uninorm/decompose-internal.c: New file.
41951         * modules/uninorm/decompose-internal: New file.
41952
41953         Tests for module 'uninorm/composition'.
41954         * tests/uninorm/test-composition.c: New file.
41955         * modules/uninorm/composition-tests: New file.
41956
41957         New module 'uninorm/composition'.
41958         * lib/uninorm/composition.c: New file.
41959         * lib/uninorm/composition-table.gperf: New file, generated by
41960         gen-uni-tables.
41961         * modules/uninorm/composition: New file.
41962
41963         Tests for module 'uninorm/compat-decomposition'.
41964         * tests/uninorm/test-compat-decomposition.c: New file.
41965         * modules/uninorm/compat-decomposition-tests: New file.
41966
41967         New module 'uninorm/compat-decomposition'.
41968         * lib/uninorm/decompose-internal.h: New file.
41969         * lib/uninorm/compat-decomposition.c: New file.
41970         * modules/uninorm/compat-decomposition: New file.
41971
41972         Tests for module 'uninorm/canonical-decomposition'.
41973         * tests/uninorm/test-canonical-decomposition.c: New file.
41974         * modules/uninorm/canonical-decomposition-tests: New file.
41975
41976         New module 'uninorm/canonical-decomposition'.
41977         * lib/uninorm/canonical-decomposition.c: New file.
41978         * modules/uninorm/canonical-decomposition: New file.
41979
41980         Tests for module 'uninorm/decomposition'.
41981         * tests/uninorm/test-decomposition.c: New file.
41982         * modules/uninorm/decomposition-tests: New file.
41983
41984         New module 'uninorm/decomposition'.
41985         * lib/uninorm/decomposition.c: New file.
41986         * modules/uninorm/decomposition: New file.
41987
41988         New module 'uninorm/decomposition-table'.
41989         * lib/uninorm/decomposition-table.h: New file.
41990         * lib/uninorm/decomposition-table.c: New file.
41991         * lib/uninorm/decomposition-table1.h: New file, generated by
41992         gen-uni-tables.
41993         * lib/uninorm/decomposition-table2.h: New file, generated by
41994         gen-uni-tables.
41995         * modules/uninorm/decomposition-table: New file.
41996
41997         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41998         (UC_DECOMP_*): New enumeration items.
41999         (get_decomposition): New function.
42000         (struct decomp_table): New type.
42001         (output_decomposition, output_decomposition_tables): New functions.
42002         (unicode_composition_exclusions): New variable.
42003         (fill_composition_exclusions, debug_output_composition_tables): New
42004         functions.
42005         (main): Accept one more argument. Invoke fill_composition_exclusions.
42006         Output decomposition and composition tables.
42007
42008         New module 'uninorm/base'.
42009         * lib/uninorm.h: New file.
42010         * lib/unictype.h: Update comment.
42011         * modules/uninorm/base: New file.
42012
42013 2009-02-21  David Lutterkort  <lutter@redhat.com>
42014
42015         Tests for module 'safe-alloc'.
42016         * tests/test-safe-alloc.c: New file.
42017         * modules/safe-alloc-tests: New file.
42018
42019         New module 'safe-alloc'.
42020         * lib/safe-alloc.h: New file.
42021         * lib/safe-alloc.c: New file.
42022         * m4/safe-alloc.m4: New file.
42023         * modules/safe-alloc: New file.
42024         * doc/safe-alloc.texi: New file.
42025         * doc/gnulib.texi: Include it.
42026         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42027         safe-alloc.
42028
42029 2009-02-18  Bruno Haible  <bruno@clisp.org>
42030
42031         Fix link error on non-glibc systems.
42032         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42033         variable.
42034         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42035
42036 2009-02-18  Jim Meyering  <meyering@redhat.com>
42037
42038         fts: avoid used-uninitialized error due to recent change
42039         * lib/fts.c (fts_read): Guard uses of the new member,
42040         parent->fts_n_dirs_remaining, since it's not relevant for
42041         the parent of a directory specified on the command-line.
42042
42043 2009-02-17  James Youngman  <jay@gnu.org>
42044             Bruno Haible  <bruno@clisp.org>
42045
42046         * m4/include_next.m4: Reformulate comment.
42047
42048 2009-02-16  Jim Meyering  <meyering@redhat.com>
42049
42050         fts: add #if guards so that the fts_lgpl module still builds
42051         * lib/fts.c: Guard just-added hash-table-using parts with
42052         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42053         Reported by Simon Josefsson.
42054
42055 2009-02-15  Bruno Haible  <bruno@clisp.org>
42056
42057         * modules/array-mergesort-tests: New file.
42058         * tests/test-array-mergesort.c: New file.
42059
42060         New module 'array-mergesort'.
42061         * modules/array-mergesort: New file.
42062         * lib/array-mergesort.h: New file.
42063
42064 2009-02-15  Bruno Haible  <bruno@clisp.org>
42065
42066         Fix 2009-02-07 commit.
42067         * lib/gen-uni-tables.c (output_predicate, output_category,
42068         output_combclass, output_bidi_category, output_decimal_digit,
42069         output_digit, output_numeric, output_mirror, output_scripts,
42070         output_ident_category, output_simple_mapping): Fix format directives.
42071         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42072
42073 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42074
42075         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42076         fixes are available from IBM.
42077
42078 2009-02-13  Jim Meyering  <meyering@redhat.com>
42079
42080         fts: arrange not to stat non-directories in more cases
42081         This makes GNU find (when it doesn't need to stat each file)
42082         *much* more efficient at traversing reiserfs file systems.
42083         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42084         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42085         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42086         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42087         (leaf_optimization_applies): New function.
42088         (LCO_hash, LCO_compare): New helper functions.
42089         (link_count_optimize_ok): New function.
42090         (fts_stat): Initialize new member (if dir).
42091         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42092         we've just stat'ed a directory.  Skip the stat call when possible.
42093         ---
42094         Note this AFS-related exchange:
42095         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42096         and note find's pioctl call in find/fstype.c.
42097         But that is necessary only if you want to enable the
42098         optimization for AFS, and for now, I don't.
42099
42100         fts: move a function definition "up" (no semantic change)
42101         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42102         "up" to precede upcoming use of a related function.
42103
42104 2009-02-11  Jim Meyering  <meyering@redhat.com>
42105
42106         fts: correct internal computation of nlinks (optimization-related)
42107         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42108         whether the current entry is a directory, so don't test it.
42109
42110 2009-02-10  Bruno Haible  <bruno@clisp.org>
42111
42112         Tests for module 'uniwbrk/ulc-wordbreaks'.
42113         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42114         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42115         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42116
42117         Tests for module 'uniwbrk/u32-wordbreaks'.
42118         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42119         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42120
42121         Tests for module 'uniwbrk/u16-wordbreaks'.
42122         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42123         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42124
42125         Tests for module 'uniwbrk/u8-wordbreaks'.
42126         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42127         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42128
42129 2009-02-10  Bruno Haible  <bruno@clisp.org>
42130
42131         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42132         property.
42133         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42134         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42135         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42136
42137 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42138
42139         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42140         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42141
42142 2009-02-10  Bruno Haible  <bruno@clisp.org>
42143
42144         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42145         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42146         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42147         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42148         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42149         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42150
42151 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42152
42153         * lib/sockets.h (gl_fd_to_handle): New function.
42154
42155         * tests/test-sockets.c: Call gl_fd_to_handle.
42156
42157 2009-02-09  Bruno Haible  <bruno@clisp.org>
42158
42159         * doc/havelib.texi: Document the conventions on bi-arch systems.
42160
42161 2009-02-08  Bruno Haible  <bruno@clisp.org>
42162
42163         Document the AC_LIB_LINKFLAGS macro.
42164         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42165         * doc/gnulib.texi: Include it.
42166
42167 2009-02-08  Bruno Haible  <bruno@clisp.org>
42168
42169         Fix wrong order of sections, compared to TOC.
42170         * doc/gnulib.texi: Include relocatable-maint.texi after the
42171         "Regular expressions" node, not before.
42172
42173 2009-02-08  Bruno Haible  <bruno@clisp.org>
42174
42175         Tests for module 'unicase/totitle'.
42176         * modules/unicase/totitle-tests: New file.
42177
42178         Tests for module 'unicase/tolower'.
42179         * modules/unicase/tolower-tests: New file.
42180
42181         Tests for module 'unicase/toupper'.
42182         * modules/unicase/toupper-tests: New file.
42183         * tests/unicase/test-mapping-part1.h: New file.
42184         * tests/unicase/test-mapping-part2.h: New file.
42185
42186         New module 'unicase/totitle'.
42187         * modules/unicase/totitle: New file.
42188         * lib/unicase/totitle.c: New file.
42189
42190         New module 'unicase/tolower'.
42191         * modules/unicase/tolower: New file.
42192         * lib/unicase/tolower.c: New file.
42193
42194         New module 'unicase/toupper'.
42195         * modules/unicase/toupper: New file.
42196         * lib/unicase/toupper.c: New file.
42197         * lib/unicase/simple-mapping.h: New file.
42198
42199         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42200         (mapping_table): New structure.
42201         (output_simple_mapping): New function.
42202         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42203         * modules/gen-uni-tables (Description): Update.
42204         * lib/unicase/toupper.h: New file, automatically generated by
42205         gen-uni-tables.
42206         * lib/unicase/tolower.h: New file, automatically generated by
42207         gen-uni-tables.
42208         * lib/unicase/totitle.h: New file, automatically generated by
42209         gen-uni-tables.
42210         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42211         gen-uni-tables.
42212         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42213         gen-uni-tables.
42214         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42215         gen-uni-tables.
42216
42217         New module 'unicase/base'.
42218         * modules/unicase/base: New file.
42219         * lib/unicase.h: New file.
42220
42221 2009-02-08  Bruno Haible  <bruno@clisp.org>
42222
42223         New module 'uniwbrk/ulc-wordbreaks'.
42224         * modules/uniwbrk/ulc-wordbreaks: New file.
42225         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42226
42227         New module 'uniwbrk/u32-wordbreaks'.
42228         * modules/uniwbrk/u32-wordbreaks: New file.
42229         * lib/uniwbrk/u32-wordbreaks.c: New file.
42230
42231         New module 'uniwbrk/u16-wordbreaks'.
42232         * modules/uniwbrk/u16-wordbreaks: New file.
42233         * lib/uniwbrk/u16-wordbreaks.c: New file.
42234
42235         New module 'uniwbrk/u8-wordbreaks'.
42236         * modules/uniwbrk/u8-wordbreaks: New file.
42237         * lib/uniwbrk/u8-wordbreaks.c: New file.
42238         * lib/uniwbrk/u-wordbreaks.h: New file.
42239
42240         New module 'uniwbrk/table'.
42241         * modules/uniwbrk/table: New file.
42242         * lib/uniwbrk/wbrktable.h: New file.
42243         * lib/uniwbrk/wbrktable.c: New file.
42244
42245         New module 'uniwbrk/wordbreak-property'.
42246         * modules/uniwbrk/wordbreak-property: New file.
42247         * lib/uniwbrk/wordbreak-property.c: New file.
42248
42249         * lib/gen-uni-tables.c (WBP_*): New enum items.
42250         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42251         (unicode_org_wbp): New variable.
42252         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42253         New functions.
42254         (wbp_table): New structure.
42255         (output_wbp, output_wbrk_tables): New functions.
42256         (main): Accept additional argument. Invoke fill_org_wbp,
42257         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42258         output_wbrk_tables.
42259         * modules/gen-uni-tables (Description): Update.
42260         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42261         gen-uni-tables.
42262
42263         New module 'uniwbrk/base'.
42264         * modules/uniwbrk/base: New file.
42265         * lib/uniwbrk.h: New file.
42266
42267 2009-02-08  Bruno Haible  <bruno@clisp.org>
42268
42269         Update to Unicode 5.1.0.
42270         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42271         U+2185..U+2188.
42272         (is_property_default_ignorable_code_point): Don't include characters
42273         of category Cc or Cs and not-a-characters.
42274         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42275         U+0D79, U+109E, U+109F, U+A60C.
42276         * lib/unictype/bidi_of.h: Regenerated.
42277         * lib/unictype/blocks.h: Regenerated.
42278         * lib/unictype/categ_C.h: Regenerated.
42279         * lib/unictype/categ_Cf.h: Regenerated.
42280         * lib/unictype/categ_Cn.h: Regenerated.
42281         * lib/unictype/categ_L.h: Regenerated.
42282         * lib/unictype/categ_Ll.h: Regenerated.
42283         * lib/unictype/categ_Lm.h: Regenerated.
42284         * lib/unictype/categ_Lo.h: Regenerated.
42285         * lib/unictype/categ_Lu.h: Regenerated.
42286         * lib/unictype/categ_M.h: Regenerated.
42287         * lib/unictype/categ_Mc.h: Regenerated.
42288         * lib/unictype/categ_Me.h: Regenerated.
42289         * lib/unictype/categ_Mn.h: Regenerated.
42290         * lib/unictype/categ_N.h: Regenerated.
42291         * lib/unictype/categ_Nd.h: Regenerated.
42292         * lib/unictype/categ_Nl.h: Regenerated.
42293         * lib/unictype/categ_No.h: Regenerated.
42294         * lib/unictype/categ_P.h: Regenerated.
42295         * lib/unictype/categ_Pd.h: Regenerated.
42296         * lib/unictype/categ_Pe.h: Regenerated.
42297         * lib/unictype/categ_Pf.h: Regenerated.
42298         * lib/unictype/categ_Pi.h: Regenerated.
42299         * lib/unictype/categ_Po.h: Regenerated.
42300         * lib/unictype/categ_Ps.h: Regenerated.
42301         * lib/unictype/categ_S.h: Regenerated.
42302         * lib/unictype/categ_Sk.h: Regenerated.
42303         * lib/unictype/categ_Sm.h: Regenerated.
42304         * lib/unictype/categ_So.h: Regenerated.
42305         * lib/unictype/categ_of.h: Regenerated.
42306         * lib/unictype/combining.h: Regenerated.
42307         * lib/unictype/ctype_alnum.h: Regenerated.
42308         * lib/unictype/ctype_alpha.h: Regenerated.
42309         * lib/unictype/ctype_graph.h: Regenerated.
42310         * lib/unictype/ctype_lower.h: Regenerated.
42311         * lib/unictype/ctype_print.h: Regenerated.
42312         * lib/unictype/ctype_punct.h: Regenerated.
42313         * lib/unictype/ctype_upper.h: Regenerated.
42314         * lib/unictype/decdigit.h: Regenerated.
42315         * lib/unictype/digit.h: Regenerated.
42316         * lib/unictype/mirror.h: Regenerated.
42317         * lib/unictype/numeric.h: Regenerated.
42318         * lib/unictype/pr_alphabetic.h: Regenerated.
42319         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42320         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42321         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42322         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42323         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42324         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42325         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42326         * lib/unictype/pr_combining.h: Regenerated.
42327         * lib/unictype/pr_dash.h: Regenerated.
42328         * lib/unictype/pr_decimal_digit.h: Regenerated.
42329         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42330         * lib/unictype/pr_deprecated.h: Regenerated.
42331         * lib/unictype/pr_diacritic.h: Regenerated.
42332         * lib/unictype/pr_extender.h: Regenerated.
42333         * lib/unictype/pr_format_control.h: Regenerated.
42334         * lib/unictype/pr_grapheme_base.h: Regenerated.
42335         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42336         * lib/unictype/pr_grapheme_link.h: Regenerated.
42337         * lib/unictype/pr_id_continue.h: Regenerated.
42338         * lib/unictype/pr_id_start.h: Regenerated.
42339         * lib/unictype/pr_ideographic.h: Regenerated.
42340         * lib/unictype/pr_ignorable_control.h: Regenerated.
42341         * lib/unictype/pr_lowercase.h: Regenerated.
42342         * lib/unictype/pr_math.h: Regenerated.
42343         * lib/unictype/pr_numeric.h: Regenerated.
42344         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42345         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42346         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42347         * lib/unictype/pr_other_id_continue.h: Regenerated.
42348         * lib/unictype/pr_other_lowercase.h: Regenerated.
42349         * lib/unictype/pr_other_math.h: Regenerated.
42350         * lib/unictype/pr_punctuation.h: Regenerated.
42351         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42352         * lib/unictype/pr_soft_dotted.h: Regenerated.
42353         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42354         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42355         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42356         * lib/unictype/pr_uppercase.h: Regenerated.
42357         * lib/unictype/pr_xid_continue.h: Regenerated.
42358         * lib/unictype/pr_xid_start.h: Regenerated.
42359         * lib/unictype/pr_zero_width.h: Regenerated.
42360         * lib/unictype/scripts.h: Regenerated.
42361         * lib/unictype/scripts_byname.gperf: Regenerated.
42362         * lib/unictype/sy_java_ident.h: Regenerated.
42363         * lib/unilbrk/lbrkprop1.h: Regenerated.
42364         * lib/unilbrk/lbrkprop2.h: Regenerated.
42365         * tests/unictype/test-categ_C.c: Regenerated.
42366         * tests/unictype/test-categ_Cf.c: Regenerated.
42367         * tests/unictype/test-categ_Cn.c: Regenerated.
42368         * tests/unictype/test-categ_L.c: Regenerated.
42369         * tests/unictype/test-categ_Ll.c: Regenerated.
42370         * tests/unictype/test-categ_Lm.c: Regenerated.
42371         * tests/unictype/test-categ_Lo.c: Regenerated.
42372         * tests/unictype/test-categ_Lu.c: Regenerated.
42373         * tests/unictype/test-categ_M.c: Regenerated.
42374         * tests/unictype/test-categ_Mc.c: Regenerated.
42375         * tests/unictype/test-categ_Me.c: Regenerated.
42376         * tests/unictype/test-categ_Mn.c: Regenerated.
42377         * tests/unictype/test-categ_N.c: Regenerated.
42378         * tests/unictype/test-categ_Nd.c: Regenerated.
42379         * tests/unictype/test-categ_Nl.c: Regenerated.
42380         * tests/unictype/test-categ_No.c: Regenerated.
42381         * tests/unictype/test-categ_P.c: Regenerated.
42382         * tests/unictype/test-categ_Pd.c: Regenerated.
42383         * tests/unictype/test-categ_Pe.c: Regenerated.
42384         * tests/unictype/test-categ_Pf.c: Regenerated.
42385         * tests/unictype/test-categ_Pi.c: Regenerated.
42386         * tests/unictype/test-categ_Po.c: Regenerated.
42387         * tests/unictype/test-categ_Ps.c: Regenerated.
42388         * tests/unictype/test-categ_S.c: Regenerated.
42389         * tests/unictype/test-categ_Sk.c: Regenerated.
42390         * tests/unictype/test-categ_Sm.c: Regenerated.
42391         * tests/unictype/test-categ_So.c: Regenerated.
42392         * tests/unictype/test-ctype_alnum.c: Regenerated.
42393         * tests/unictype/test-ctype_alpha.c: Regenerated.
42394         * tests/unictype/test-ctype_graph.c: Regenerated.
42395         * tests/unictype/test-ctype_lower.c: Regenerated.
42396         * tests/unictype/test-ctype_print.c: Regenerated.
42397         * tests/unictype/test-ctype_punct.c: Regenerated.
42398         * tests/unictype/test-ctype_upper.c: Regenerated.
42399         * tests/unictype/test-decdigit.h: Regenerated.
42400         * tests/unictype/test-digit.h: Regenerated.
42401         * tests/unictype/test-numeric.h: Regenerated.
42402         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42403         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42404         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42405         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42406         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42407         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42408         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42409         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42410         * tests/unictype/test-pr_combining.c: Regenerated.
42411         * tests/unictype/test-pr_dash.c: Regenerated.
42412         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42413         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42414         * tests/unictype/test-pr_deprecated.c: Regenerated.
42415         * tests/unictype/test-pr_diacritic.c: Regenerated.
42416         * tests/unictype/test-pr_extender.c: Regenerated.
42417         * tests/unictype/test-pr_format_control.c: Regenerated.
42418         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42419         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42420         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42421         * tests/unictype/test-pr_id_continue.c: Regenerated.
42422         * tests/unictype/test-pr_id_start.c: Regenerated.
42423         * tests/unictype/test-pr_ideographic.c: Regenerated.
42424         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42425         * tests/unictype/test-pr_lowercase.c: Regenerated.
42426         * tests/unictype/test-pr_math.c: Regenerated.
42427         * tests/unictype/test-pr_numeric.c: Regenerated.
42428         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42429         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42430         Regenerated.
42431         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42432         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42433         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42434         * tests/unictype/test-pr_other_math.c: Regenerated.
42435         * tests/unictype/test-pr_punctuation.c: Regenerated.
42436         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42437         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42438         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42439         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42440         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42441         * tests/unictype/test-pr_uppercase.c: Regenerated.
42442         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42443         * tests/unictype/test-pr_xid_start.c: Regenerated.
42444         * tests/unictype/test-pr_zero_width.c: Regenerated.
42445
42446         Update to Unicode 5.1.0.
42447         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42448         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42449         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42450         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42451         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42452         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42453         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42454         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42455         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42456         (nonspacing_table_ind): Update.
42457         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42458
42459         Update to Unicode 5.1.0.
42460         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42461         code transform.
42462         * lib/uniname/uniname.c (unicode_character_name,
42463         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42464         * lib/uniname/uninames.h: Regenerated.
42465         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42466
42467 2009-02-07  Bruno Haible  <bruno@clisp.org>
42468
42469         Merge gen-ctype and gen-lbrk into a single program.
42470         * lib/gen-uni-tables.c: New file, incorporating
42471         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42472         Add directory prefixes to the names of the generated files.
42473         * lib/unictype/gen-ctype.c: Remove file.
42474         * lib/unilbrk/gen-lbrk.c: Remove file.
42475         * modules/gen-uni-tables: New file.
42476         * modules/unictype/gen-ctype: Remove file.
42477         * modules/unilbrk/gen-lbrk: Remove file.
42478
42479 2009-02-07  Bruno Haible  <bruno@clisp.org>
42480
42481         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42482
42483         New module 'unistr/u32-strcoll'.
42484         * modules/unistr/u32-strcoll: New file.
42485         * lib/unistr/u32-strcoll.c: New file.
42486
42487         New module 'unistr/u16-strcoll'.
42488         * modules/unistr/u16-strcoll: New file.
42489         * lib/unistr/u16-strcoll.c: New file.
42490
42491         New module 'unistr/u8-strcoll'.
42492         * modules/unistr/u8-strcoll: New file.
42493         * lib/unistr/u8-strcoll.c: New file.
42494         * lib/unistr/u-strcoll.h: New file.
42495
42496 2009-02-07  Bruno Haible  <bruno@clisp.org>
42497
42498         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42499         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42500         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42501         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42502         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42503         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42504
42505 2009-02-07  Bruno Haible  <bruno@clisp.org>
42506
42507         Make 64-bit clean.
42508         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42509         output_combclass, output_bidi_category, output_decimal_digit,
42510         output_digit, output_numeric, output_mirror, output_scripts,
42511         output_ident_category): Use proper width specifier in format strings.
42512
42513 2009-02-07  Bruno Haible  <bruno@clisp.org>
42514
42515         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42516         failure behaviour.
42517
42518 2009-02-07  Jim Meyering  <meyering@redhat.com>
42519
42520         regex: avoid compilation failure with upcoming gcc-4.4
42521         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42522         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42523         "... error: integer overflow in preprocessor expression".
42524
42525 2009-02-05  Ben Pfaff  <blp@gnu.org>
42526
42527         Fix link errors on Windows when close module is used.
42528         * modules/close: Add $(LIB_CLOSE) to Link section.
42529         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42530         $(LIB_CLOSE) on Windows.
42531
42532 2009-02-05  Jim Meyering  <meyering@redhat.com>
42533
42534         still avoid unused-parameter warnings, but do it cleanly
42535         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42536         (get_fs_usage): Cast to void instead.
42537         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42538         (dev_from_mount_options, read_file_system_list): Cast to void.
42539         Prompted by Bruno Haible.
42540
42541 2009-02-04  Jim Meyering  <meyering@redhat.com>
42542
42543         fsusage.c: correct copyright year
42544         * lib/fsusage.c: Reflect year in which the change is pushed into
42545
42546         avoid misc. warnings
42547         * lib/fsusage.c (UNUSED_PARAM): Define.
42548         (get_fs_usage): Mark parameter "disk" as unused.
42549         * lib/getugroups.c (getgrent): Use "void" in prototype.
42550         * lib/mountlist.c: Mark unused parameters.
42551         (read_file_system_list): Declare a local with "const".
42552         * lib/nanosleep.c (getnow): Declare static.
42553         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42554
42555         dirfd: set errno upon failure
42556         * lib/dirfd.c: Include <errno.h>.
42557         Set errno to ENOTSUP when returning -1.
42558         * modules/dirfd (Depends-on): Add errno.
42559         Suggested by John Kodis <kodis@comcast.net>.
42560
42561 2009-02-01  Bruno Haible  <bruno@clisp.org>
42562
42563         Don't assume sizeof (long) >= sizeof (void *).
42564         * lib/memcmp.c: Include stdint.h.
42565         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42566         srcp2 to 'const byte *'.
42567         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42568         types to uintptr_t.
42569         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42570         * modules/memcmp (Depends-on): Add stdint.
42571         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42572
42573 2009-01-30  Eric Blake  <ebb9@byu.net>
42574
42575         fix more require-before-expand issues
42576         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42577         expand, AC_PROG_AWK.
42578         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42579
42580 2009-01-28  Eric Blake  <ebb9@byu.net>
42581
42582         version-etc: use consistent URL formatting
42583         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42584         Improve formatting.  Use fputs for string without %.
42585
42586 2009-01-28  Jim Meyering  <meyering@redhat.com>
42587
42588         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42589         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42590         "underquoted definition of NAME" from autoconf-2.59.
42591
42592 2009-01-28  Bruno Haible  <bruno@clisp.org>
42593
42594         * doc/gnulib.texi: Add "Obsolete modules" to index.
42595
42596 2009-01-28  Jim Meyering  <meyering@redhat.com>
42597
42598         useless-if-before-free: recognize more variants
42599         * build-aux/useless-if-before-free: Also recognize e.g.,
42600         if (NULL != p) free (p);
42601
42602 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42603
42604         test-getaddrinfo: skip (don't fail) this test when there's no network
42605         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42606         on the presumption that it means you lack network access.
42607
42608 2009-01-26  Jim Meyering  <meyering@redhat.com>
42609
42610         fflush: avoid warnings on modern systems
42611         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42612         pos and result, into scopes where they're used.
42613
42614 2009-01-26  Eric Blake  <ebb9@byu.net>
42615
42616         Silence warning reintroduced by recent extensions patch.
42617         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42618         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42619         autoconf.
42620
42621         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42622         * m4/00gnulib.m4: New file.
42623         * gnulib-tool (func_get_filelist): Always use it.
42624         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42625         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42626
42627 2009-01-25  Bruno Haible  <bruno@clisp.org>
42628
42629         Make test-quotearg work on MacOS X and AIX.
42630         * tests/test-quotearg.sh: New file.
42631         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42632         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42633         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42634         include <libintl.h>.
42635         (fake_locale): Remove variable.
42636         (gettext, dgettext, dcgettext): Remove functions.
42637         (main): Instead of setting a fake locale, set a real locale. Call
42638         textdomain and bindtextdomain.
42639         * modules/quotearg-tests (Files): Add the new files.
42640         (Depends-on): Add gettext, setenv, unsetenv.
42641         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42642         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42643         Augment TESTS_ENVIRONMENT.
42644
42645 2009-01-25  Bruno Haible  <bruno@clisp.org>
42646
42647         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42648         fr_FR.ISO8859-1 locale on MacOS X.
42649         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42650         ja_JP.eucJP locale on MacOS X.
42651         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42652         zh_CN.GB18030 locale on MacOS X.
42653
42654 2009-01-25  Bruno Haible  <bruno@clisp.org>
42655
42656         Avoid link errors on MacOS X 10.3.
42657         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42658         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42659
42660 2009-01-25  Bruno Haible  <bruno@clisp.org>
42661
42662         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42663         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42664         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42665         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42666         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42667         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42668         posix_spawnattr_init, posix_spawnattr_setsigmask,
42669         posix_spawnattr_setflags, posix_spawnattr_destroy.
42670
42671         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42672         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42673         * modules/execute (Files): Remove m4/posix_spawn.m4.
42674         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42675         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42676         posix_spawnattr_init, posix_spawnattr_setsigmask,
42677         posix_spawnattr_setflags, posix_spawnattr_destroy.
42678
42679 2009-01-25  Bruno Haible  <bruno@clisp.org>
42680
42681         * lib/glthread/threadlib.c: Include <stdlib.h>.
42682
42683 2009-01-25  Bruno Haible  <bruno@clisp.org>
42684
42685         * lib/glthread/threadlib.c (dummy): New declaration.
42686
42687 2009-01-25  Bruno Haible  <bruno@clisp.org>
42688
42689         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42690         multibyte characters also for the GB18030 encoding. Don't crash when
42691         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42692
42693 2009-01-25  Bruno Haible  <bruno@clisp.org>
42694
42695         Avoid redefining 'struct random_data' on OSF/1 5.1.
42696         * lib/stdlib.in.h: Include <random.h> if it exists.
42697         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42698         HAVE_RANDOM_H. Include <random.h> when testing whether
42699         'struct random_data' exists.
42700         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42701
42702 2009-01-25  Bruno Haible  <bruno@clisp.org>
42703
42704         Don't install charset.alias on MacOS X >= 10.3.
42705         * lib/localcharset.c (DARWIN7): New macro.
42706         (get_charset_aliases): Hardcode the result for Darwin7.
42707         * modules/localcharset (install-exec-local): Don't install
42708         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42709
42710 2009-01-25  Bruno Haible  <bruno@clisp.org>
42711
42712         Don't install charset.alias on mingw and Cygwin.
42713         * modules/localcharset (install-exec-local): Don't install
42714         charset.alias on mingw and Cygwin, if the file does not yet exist.
42715         The result for these platforms is hardcoded in localcharset.c.
42716
42717 2009-01-25  Bruno Haible  <bruno@clisp.org>
42718
42719         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42720         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42721         before requiring AC_USE_SYSTEM_EXTENSIONS.
42722
42723 2009-01-25  Jim Meyering  <meyering@redhat.com>
42724
42725         c-strtod: avoid warnings
42726         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42727         "assignment discards qualifiers from pointer target type" warnings.
42728
42729 2009-01-24  Bruno Haible  <bruno@clisp.org>
42730
42731         Add support for non-UTF-8 locales on MacOS X.
42732         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42733         canonical encodings. For Darwin 7 and newer, don't map traditional
42734         encodings to UTF-8.
42735         Reported by Vincent Lefevre <vincent@vinc17.org>
42736         at <http://savannah.gnu.org/bugs/?25235>.
42737
42738 2009-01-24  Bruno Haible  <bruno@clisp.org>
42739
42740         * doc/gnulib.texi (Obsolete modules): New section.
42741         Reported by Mike Frysinger <vapier@gentoo.org>.
42742
42743 2009-01-24  Bruno Haible  <bruno@clisp.org>
42744
42745         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42746         (%.dvi): New rule.
42747
42748 2009-01-24  Bruno Haible  <bruno@clisp.org>
42749
42750         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42751         Reported by Eric Blake.
42752
42753 2009-01-24  Bruno Haible  <bruno@clisp.org>
42754
42755         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42756         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42757         Reported by Gary V. Vaughan <gary@gnu.org>.
42758
42759 2009-01-24  Bruno Haible  <bruno@clisp.org>
42760
42761         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42762
42763 2009-01-23  Bruno Haible  <bruno@clisp.org>
42764
42765         Make c-strtod, c-strtold usable in libraries.
42766         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42767         (C_STRTOD): Call strdup instead of xstrdup.
42768         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42769         * modules/c-strtold (Depends-on): Likewise.
42770         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42771         * NEWS: Mention the change.
42772         Reported by Michael Gold <mgold@ncf.ca>.
42773
42774 2009-01-23  Jim Meyering  <meyering@redhat.com>
42775
42776         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42777         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42778         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42779
42780 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42781
42782         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42783         GNU CoreUtils.
42784         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42785         * modules/version-etc (Description): Update.
42786
42787 2009-01-22  Bruno Haible  <bruno@clisp.org>
42788
42789         Cache the C locale object.
42790         * lib/c-strtod.c (c_locale_cache): New variable.
42791         (c_locale): New function.
42792         (C_STRTOD): Use it, and don't call freelocale.
42793         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42794         Suggested by Paolo Bonzini.
42795
42796 2009-01-21  Bruno Haible  <bruno@clisp.org>
42797
42798         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42799         conditions other than overflow.
42800
42801 2009-01-21  Bruno Haible  <bruno@clisp.org>
42802
42803         * lib/c-strtod.c: Include errno.h.
42804         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42805         value from STRTOD_L and STRTOD.
42806
42807 2009-01-21  Bruno Haible  <bruno@clisp.org>
42808         and Jim Meyering  <meyering@redhat.com>
42809
42810         nanosleep: skip configure test (fail it) for apple universal builds
42811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42812         universal builds, assume that nanosleep does not work.
42813         * modules/nanosleep (Depends-on): Add multiarch.
42814
42815         mktime: skip configure test (fail it) for apple universal builds
42816         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42817         universal builds, assume that mktime does not work.
42818         * modules/mktime (Depends-on): Add multiarch.
42819
42820 2009-01-21  Eric Blake  <ebb9@byu.net>
42821
42822         multiarch: avoid expand-before-require warning
42823         * modules/multiarch (configure.ac): Require, rather than expand,
42824         gl_MULTIARCH.
42825         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42826         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42827         enforce that all clients require it.  Partial reversion of
42828         2008-12-29 patch.
42829
42830         error: avoid expand-before-require warning
42831         * modules/errno (configure.ac): Require, rather than expand,
42832         gl_HEADER_ERRNO_H.
42833         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42834         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42835         enforce that all clients require it.
42836
42837         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42838         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42839         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42840         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42841
42842 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42843
42844         Revert:
42845         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42846
42847         regex: do not depend on obsolete modules.
42848         * modules/regex: Remove memcmp and memmove.
42849
42850 2009-01-20  Bruno Haible  <bruno@clisp.org>
42851
42852         Make the 'link' module link on Windows NT 4.
42853         * lib/link.c (_WIN32_WINNT): Don't define.
42854         (CreateHardLinkFuncType): New type.
42855         (CreateHardLinkFunc, initialized): New variables.
42856         (initialize): New function.
42857         (link): Invoke CreateHardLink indirectly through the function pointer.
42858
42859 2009-01-20  Bruno Haible  <bruno@clisp.org>
42860
42861         Fix compilation failure on mingw.
42862         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42863
42864 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42865
42866         * doc/c-strtod.texi: Mention a couple of restrictions.
42867
42868 2009-01-20  Jim Meyering  <meyering@redhat.com>
42869
42870         gettimeofday: move more declarations out of functions
42871         * lib/gettimeofday.c: Move extern declarations of tzset and
42872         gmtime out of containing functions.  Prompted by Bruno Haible.
42873
42874 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42875
42876         regex: do not depend on obsolete modules.
42877         * modules/regex: Remove memcmp and memmove.
42878
42879 2009-01-19  Bruno Haible  <bruno@clisp.org>
42880
42881         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42882         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42883         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42884         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42885         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42886
42887 2009-01-19  Bruno Haible  <bruno@clisp.org>
42888
42889         * tests/test-link.c: Include <errno.h>.
42890         (main): Exit with code 77 when a hard link cannot be created due to
42891         the file system.
42892         * tests/test-link.sh: Skip test when a hard link cannot be created due
42893         to the file system.
42894         Suggested by Eric Blake.
42895
42896 2009-01-19  Martin Lambers  <marlam@marlam.de>
42897
42898         * modules/link-tests: New file.
42899         * tests/test-link.sh: New file.
42900         * tests/test-link.c: New file.
42901
42902 2009-01-19  Eric Blake  <ebb9@byu.net>
42903
42904         doc: mention another function added in cygwin 1.7.0
42905         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42906         Another new function in cygwin 1.7.
42907
42908 2009-01-19  Bruno Haible  <bruno@clisp.org>
42909
42910         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42911         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42912         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42913         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42914         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42915         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42916         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42917         * m4/md4.m4 (gl_MD4): Likewise.
42918         * m4/md5.m4 (gl_MD5): Likewise.
42919         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42920         * m4/sha1.m4 (gl_SHA1): Likewise.
42921         * m4/sha256.m4 (gl_SHA256): Likewise.
42922         * m4/sha512.m4 (gl_SHA512): Likewise.
42923
42924 2009-01-19  Bruno Haible  <bruno@clisp.org>
42925
42926         * modules/uniname/uniname-tests (Depends-on): Add progname.
42927         * tests/uniname/test-uninames.c: Include progname.h.
42928         (main): Call set_program_name.
42929
42930         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42931         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42932         (main): Call set_program_name.
42933
42934         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42935         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42936         (main): Call set_program_name.
42937
42938         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42939         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42940         (main): Call set_program_name.
42941
42942         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42943         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42944         (main): Call set_program_name.
42945
42946         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42947         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42948         (main): Call set_program_name.
42949
42950         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42951         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42952         (main): Call set_program_name.
42953
42954         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42955         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42956         (main): Call set_program_name.
42957
42958         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42959         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42960         (main): Call set_program_name.
42961
42962 2009-01-19  Eric Blake  <ebb9@byu.net>
42963
42964         test-unistd: test previous patch
42965         * tests/test-unistd.c: Test *_FILENO macros.
42966
42967         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42968         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42969         Guarantee a definition.
42970         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42971         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42972         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42973         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42974         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42975         Likewise.
42976         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42977         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42978         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42979         Likewise.
42980         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42981         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42982         (STDERR_FILENO): Likewise.
42983         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42984         (STDERR_FILENO): Likewise.
42985         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42986         (STDERR_FILENO): Likewise.
42987         Reported by Elbert Pol.
42988
42989 2009-01-19  Eric Blake  <ebb9@byu.net>
42990
42991         doc: mention more functions added in cygwin 1.7.0
42992         * doc/posix-functions/abort.texi (abort): Update wording related
42993         to cygwin.
42994         * doc/posix-functions/daylight.texi (daylight): Likewise.
42995         * doc/posix-functions/optarg.texi (optarg): Likewise.
42996         * doc/posix-functions/optarg.texi (opterr): Likewise.
42997         * doc/posix-functions/optarg.texi (optind): Likewise.
42998         * doc/posix-functions/optarg.texi (optopt): Likewise.
42999         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43000         worked in 1.5.x, and was withdrawn in 1.7.
43001         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43002         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43003         cygwin versions.
43004         * doc/posix-functions/perror.texi (perror): Likewise.
43005         * doc/posix-functions/printf.texi (printf): Likewise.
43006         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43007         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43008         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43009         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43010         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43011         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43012         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43013         Likewise.
43014         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43015         Likewise.
43016         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43017         this function.
43018         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43019         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43020         Likewise.
43021         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43022         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43023         * doc/posix-functions/confstr.texi (confstr): Likewise.
43024         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43025         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43026         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43027         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43028         * doc/posix-functions/fputws.texi (fputws): Likewise.
43029         * doc/posix-functions/fwide.texi (fwide): Likewise.
43030         * doc/posix-functions/getwc.texi (getwc): Likewise.
43031         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43032         * doc/posix-functions/putwc.texi (putwc): Likewise.
43033         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43034         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43035         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43036         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43037         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43038         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43039         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43040         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43041         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43042         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43043         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43044
43045 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43046
43047         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43048         * lib/ioctl.c: Include <sys/ioctl.h>.
43049
43050 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43051
43052         * modules/getdate-tests (Depends-on): Add progname.
43053         * tests/test-getdate.c: Use progname module, to avoid link errors
43054         on non-glibc systems.
43055
43056 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43057
43058         * modules/filenamecat-tests (Depends-on): Add progname.
43059         * modules/fstrcmp-tests (Depends-on): Likewise.
43060
43061         * tests/test-filenamecat.c: Use progname module, to avoid link
43062         errors on non-glibc systems.
43063         * tests/test-fstrcmp.c: Likewise.
43064
43065 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43066
43067         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43068         * lib/gettimeofday.c: Move extern declaration out of function.
43069
43070 2009-01-18  Bruno Haible  <bruno@clisp.org>
43071
43072         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43073         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43074         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43075
43076 2009-01-18  Bruno Haible  <bruno@clisp.org>
43077
43078         * lib/strftime.c (MEMPCPY): Remove unused macro.
43079         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43080
43081 2009-01-18  Martin Lambers  <marlam@marlam.de>
43082
43083         New module 'link'.
43084         * lib/unistd.in.h (link): New declaration.
43085         * lib/link.c: New file.
43086         * m4/link.m4: New file.
43087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43088         HAVE_LINK.
43089         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43090         * modules/link: New file.
43091         * doc/posix-functions/link.texi: Mention the new module.
43092
43093 2009-01-18  Bruno Haible  <bruno@clisp.org>
43094
43095         * tests/test-avltree_list.c (main): Call set_program_name.
43096         * tests/test-avltree_oset.c (main): Likewise.
43097         * tests/test-obstack-printf.c: Include progname.h.
43098         (main): Call set_program_name.
43099         * tests/test-quotearg.c: Include progname.h.
43100         (main): Call set_program_name.
43101         * tests/test-xmemdup0.c: Include progname.h.
43102         (main): Call set_program_name.
43103
43104 2009-01-18  Bruno Haible  <bruno@clisp.org>
43105
43106         New module 'alphasort'.
43107         * lib/dirent.in.h (alphasort): New declaration.
43108         * lib/alphasort.c: New file, from glibc with modifications.
43109         * m4/alphasort.m4: New file.
43110         * modules/alphasort: New file.
43111         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43112         HAVE_ALPHASORT.
43113         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43114         HAVE_ALPHASORT.
43115         * doc/posix-functions/alphasort.texi: Mention the new module and the
43116         portability problems.
43117
43118 2009-01-18  Bruno Haible  <bruno@clisp.org>
43119
43120         New module 'scandir'.
43121         * lib/dirent.in.h (scandir): New declaration.
43122         * lib/scandir.c: New file, from glibc with modifications.
43123         * m4/scandir.m4: New file.
43124         * modules/scandir: New file.
43125         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43126         HAVE_SCANDIR.
43127         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43128         HAVE_SCANDIR.
43129         * doc/posix-functions/scandir.texi: Mention the new module and the
43130         portability problems.
43131
43132 2009-01-17  Bruno Haible  <bruno@clisp.org>
43133
43134         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43135         Update documentation.
43136         (func_remove_suffix): Escape all dots in the suffix. Update
43137         documentation.
43138         (func_filter_filelist): Update documentation.
43139         Reported by Ralf Wildenhues.
43140
43141 2009-01-17  Bruno Haible  <bruno@clisp.org>
43142
43143         * modules/dprintf-posix-tests: New file.
43144         * tests/test-dprintf-posix.sh: New file.
43145         * tests/test-dprintf-posix.c: New file.
43146
43147         New modules 'dprintf', 'dprintf-posix'.
43148         * lib/stdio.in.h (dprintf): New declaration.
43149         * lib/dprintf.c: New file.
43150         * m4/dprintf.m4: New file.
43151         * m4/dprintf-posix.m4: New file.
43152         * modules/dprintf: New file.
43153         * modules/dprintf-posix: New file.
43154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43155         HAVE_DPRINTF, REPLACE_DPRINTF.
43156         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43157         HAVE_DPRINTF, REPLACE_DPRINTF.
43158         * doc/posix-functions/dprintf.texi: Mention the new modules.
43159
43160 2009-01-17  Bruno Haible  <bruno@clisp.org>
43161
43162         * modules/vdprintf-posix-tests: New file.
43163         * tests/test-vdprintf-posix.sh: New file.
43164         * tests/test-vdprintf-posix.c: New file.
43165
43166         New modules 'vdprintf', 'vdprintf-posix'.
43167         * lib/stdio.in.h (vdprintf): New declaration.
43168         * lib/vdprintf.c: New file.
43169         * m4/vdprintf.m4: New file.
43170         * m4/vdprintf-posix.m4: New file.
43171         * modules/vdprintf: New file.
43172         * modules/vdprintf-posix: New file.
43173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43174         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43175         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43176         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43177         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43178
43179 2009-01-17  Bruno Haible  <bruno@clisp.org>
43180
43181         Fix replacement of fopen on mingw.
43182         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43183         mingw.
43184
43185 2009-01-17  Bruno Haible  <bruno@clisp.org>
43186
43187         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43188         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43189
43190 2009-01-17  Bruno Haible  <bruno@clisp.org>
43191
43192         Avoid test-fflush2.sh failure on mingw.
43193         * tests/test-fflush2.c: Include binary-io.h.
43194         (main): Put standard input into binary mode.
43195         * modules/fflush-tests (Depends-on): Add binary-io.
43196
43197 2009-01-17  Bruno Haible  <bruno@clisp.org>
43198
43199         * lib/wchar.in.h: In another particular situation, include only the
43200         system's <wchar.h> file.
43201         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43202         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43203         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43204
43205 2009-01-17  Bruno Haible  <bruno@clisp.org>
43206
43207         Support for stripping executables in --enable-relocatable.
43208         * build-aux/install-reloc: Expect one more argument, or an environment
43209         variable RELOC_STRIP_PROG. If set, strip the destination program and
43210         its wrapper.
43211         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43212         RELOC_STRIP_PROG.
43213         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43214         to set RELOCATABLE_STRIP.
43215         * NEWS: Mention the new Makefile requirement.
43216
43217 2009-01-17  Bruno Haible  <bruno@clisp.org>
43218
43219         * build-aux/install-reloc: Remove debugging information left over by
43220         C compiler on MacOS X.
43221
43222 2009-01-17  Bruno Haible  <bruno@clisp.org>
43223
43224         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43225         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43226         _NSGetExecutablePath.
43227
43228 2009-01-16  Jim Meyering  <meyering@redhat.com>
43229
43230         strerror: avoid warnings about discarding "const"
43231         * lib/strerror.c (rpl_strerror): Instead of returning a const
43232         string from each and every "case", use a variable, and add a single
43233         cast after the switch.
43234
43235 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43236
43237         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43238
43239 2009-01-16  Bruno Haible  <bruno@clisp.org>
43240
43241         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43242         array initializer syntax that also works in C++ mode.
43243         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43244
43245 2009-01-16  Jim Meyering  <meyering@redhat.com>
43246
43247         poll: suppress a warning
43248         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43249         to ignore "...unsigned expression < 0 is always false" warnings.
43250
43251 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43252
43253         poll: remove declarations of unused variables
43254         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43255         sockbuf and optlen.
43256
43257 2009-01-15  Bruno Haible  <bruno@clisp.org>
43258
43259         Make fflush-after-ungetc POSIX compliant on BSD systems.
43260         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43261         (clear_ungetc_buffer): Implement also for other systems.
43262         (rpl_fflush): On glibc systems, invoke
43263         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43264         clear_ungetc_buffer after fetching the stream's position, not before.
43265
43266 2009-01-15  Bruno Haible  <bruno@clisp.org>
43267
43268         Make fflush-after-ungetc POSIX compliant on glibc systems.
43269         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43270         after ungetc.
43271         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43272         (rpl_fflush): On glibc systems, simply call the system's fflush
43273         function after clearing the ungetc buffer.
43274         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43275         Instead, lseek only to the end of file, then use the system's fseeko
43276         for the rest. On glibc systems, reset the EOF indicator bit.
43277
43278 2009-01-15  Jim Meyering  <meyering@redhat.com>
43279
43280         openmp.m4: revert quote-adding change, for portability to older autoconf
43281         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43282         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43283         Simon Josefsson noticed the problem when using autoconf-2.61.
43284
43285 2009-01-15  Bruno Haible  <bruno@clisp.org>
43286
43287         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43288         * tests/test-fflush2.c (ASSERT): Always fail.
43289         (main): Add two tests for fflush() after ungetc(), taking into account
43290         the Austin Group's clarification.
43291         Suggested by Eric Blake.
43292
43293 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43294
43295         mktime.m4: remove K&R-style function prototypes
43296         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43297         for the Sun C++ compiler.
43298
43299 2009-01-14  Bruno Haible  <bruno@clisp.org>
43300
43301         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43302         while including <wchar.h>.
43303         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43304         the system's <wchar.h> file.
43305         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43306
43307 2009-01-14  Bruno Haible  <bruno@clisp.org>
43308
43309         * m4/csharp.m4: Don't mention gettext on the serial number line.
43310         * m4/csharpexec.m4: Likewise.
43311         * m4/eaccess.m4: Likewise.
43312         * m4/javaexec.m4: Likewise.
43313         * m4/sig_atomic_t.m4: Likewise.
43314         * m4/tmpdir.m4: Likewise.
43315         * m4/intldir.m4: Bump gettext version.
43316         * m4/lib-ld.m4: Likewise.
43317
43318 2009-01-14  Bruno Haible  <bruno@clisp.org>
43319
43320         * lib/progname.c (set_program_name): Add more comments.
43321         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43322
43323 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43324
43325         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43326         were sys/stat.h does not define it.
43327
43328 2009-01-14  Jim Meyering  <meyering@redhat.com>
43329
43330         many *.m4 files: improve m4 quoting
43331         99% of this change was performed by running the following commands:
43332         git ls-files | grep '\.m4$' | xargs perl -pi \
43333           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43334           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43335           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43336           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43337         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43338         The remainder were to add Copyright dates, increment serial numbers,
43339         undo some changes in comments, exclude m4/intl.m4, and add quotes
43340         around the "1" in ",1" where the unusual spacing prohibited the
43341         above regexps from doing the job.  For more details, see
43342         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43343         * m4/acl.m4: Modified.
43344         * m4/afs.m4: Likewise.
43345         * m4/alloca.m4: Likewise.
43346         * m4/argp.m4: Likewise.
43347         * m4/argz.m4: Likewise.
43348         * m4/atexit.m4: Likewise.
43349         * m4/bison-i18n.m4: Likewise.
43350         * m4/bison.m4: Likewise.
43351         * m4/byteswap.m4: Likewise.
43352         * m4/c-stack.m4: Likewise.
43353         * m4/c-strtod.m4: Likewise.
43354         * m4/calloc.m4: Likewise.
43355         * m4/canonicalize-lgpl.m4: Likewise.
43356         * m4/chown.m4: Likewise.
43357         * m4/clock_time.m4: Likewise.
43358         * m4/codeset.m4: Likewise.
43359         * m4/copy-file.m4: Likewise.
43360         * m4/csharp.m4: Likewise.
43361         * m4/csharpcomp.m4: Likewise.
43362         * m4/csharpexec.m4: Likewise.
43363         * m4/d-ino.m4: Likewise.
43364         * m4/d-type.m4: Likewise.
43365         * m4/dirfd.m4: Likewise.
43366         * m4/double-slash-root.m4: Likewise.
43367         * m4/eaccess.m4: Likewise.
43368         * m4/eealloc.m4: Likewise.
43369         * m4/environ.m4: Likewise.
43370         * m4/errno_h.m4: Likewise.
43371         * m4/euidaccess.m4: Likewise.
43372         * m4/execute.m4: Likewise.
43373         * m4/fatal-signal.m4: Likewise.
43374         * m4/fchdir.m4: Likewise.
43375         * m4/fcntl_h.m4: Likewise.
43376         * m4/fileblocks.m4: Likewise.
43377         * m4/filenamecat.m4: Likewise.
43378         * m4/findprog.m4: Likewise.
43379         * m4/flexmember.m4: Likewise.
43380         * m4/fnmatch.m4: Likewise.
43381         * m4/fopen.m4: Likewise.
43382         * m4/fpending.m4: Likewise.
43383         * m4/fprintf-posix.m4: Likewise.
43384         * m4/free.m4: Likewise.
43385         * m4/frexp.m4: Likewise.
43386         * m4/frexpl.m4: Likewise.
43387         * m4/fsusage.m4: Likewise.
43388         * m4/ftruncate.m4: Likewise.
43389         * m4/gc-camellia.m4: Likewise.
43390         * m4/gc-random.m4: Likewise.
43391         * m4/gc.m4: Likewise.
43392         * m4/getaddrinfo.m4: Likewise.
43393         * m4/getcwd-abort-bug.m4: Likewise.
43394         * m4/getcwd-path-max.m4: Likewise.
43395         * m4/getdate.m4: Likewise.
43396         * m4/getdomainname.m4: Likewise.
43397         * m4/getgroups.m4: Likewise.
43398         * m4/gethostname.m4: Likewise.
43399         * m4/gethrxtime.m4: Likewise.
43400         * m4/getline.m4: Likewise.
43401         * m4/getloadavg.m4: Likewise.
43402         * m4/getndelim2.m4: Likewise.
43403         * m4/getpass.m4: Likewise.
43404         * m4/gettext.m4: Likewise.
43405         * m4/gettime.m4: Likewise.
43406         * m4/gettimeofday.m4: Likewise.
43407         * m4/gnulib-common.m4: Likewise.
43408         * m4/group-member.m4: Likewise.
43409         * m4/host-os.m4: Likewise.
43410         * m4/iconv.m4: Likewise.
43411         * m4/iconv_open.m4: Likewise.
43412         * m4/inet_ntop.m4: Likewise.
43413         * m4/inet_pton.m4: Likewise.
43414         * m4/inline.m4: Likewise.
43415         * m4/intldir.m4: Likewise.
43416         * m4/intlmacosx.m4: Likewise.
43417         * m4/intmax.m4: Likewise.
43418         * m4/intmax_t.m4: Likewise.
43419         * m4/inttypes.m4: Likewise.
43420         * m4/inttypes_h.m4: Likewise.
43421         * m4/inttypes-pri.m4: Likewise.
43422         * m4/isapipe.m4: Likewise.
43423         * m4/isnand.m4: Likewise.
43424         * m4/isnanf.m4: Likewise.
43425         * m4/isnanl.m4: Likewise.
43426         * m4/javacomp.m4: Likewise.
43427         * m4/javaexec.m4: Likewise.
43428         * m4/jm-winsz1.m4: Likewise.
43429         * m4/jm-winsz2.m4: Likewise.
43430         * m4/lchown.m4: Likewise.
43431         * m4/lcmessage.m4: Likewise.
43432         * m4/ldexpl.m4: Likewise.
43433         * m4/lib-ld.m4: Likewise.
43434         * m4/lib-link.m4: Likewise.
43435         * m4/libsigsegv.m4: Likewise.
43436         * m4/link-follow.m4: Likewise.
43437         * m4/localcharset.m4: Likewise.
43438         * m4/locale-fr.m4: Likewise.
43439         * m4/locale-ja.m4: Likewise.
43440         * m4/locale-tr.m4: Likewise.
43441         * m4/locale-zh.m4: Likewise.
43442         * m4/lock.m4: Likewise.
43443         * m4/longlong.m4: Likewise.
43444         * m4/ls-mntd-fs.m4: Likewise.
43445         * m4/lstat.m4: Likewise.
43446         * m4/malloc.m4: Likewise.
43447         * m4/mathl.m4: Likewise.
43448         * m4/mbrtowc.m4: Likewise.
43449         * m4/mbstate_t.m4: Likewise.
43450         * m4/mbswidth.m4: Likewise.
43451         * m4/memchr.m4: Likewise.
43452         * m4/memcmp.m4: Likewise.
43453         * m4/memcpy.m4: Likewise.
43454         * m4/memmem.m4: Likewise.
43455         * m4/memmove.m4: Likewise.
43456         * m4/mempcpy.m4: Likewise.
43457         * m4/memrchr.m4: Likewise.
43458         * m4/memset.m4: Likewise.
43459         * m4/minmax.m4: Likewise.
43460         * m4/mkdir-slash.m4: Likewise.
43461         * m4/mkdtemp.m4: Likewise.
43462         * m4/mktime.m4: Likewise.
43463         * m4/mmap-anon.m4: Likewise.
43464         * m4/mountlist.m4: Likewise.
43465         * m4/nanosleep.m4: Likewise.
43466         * m4/nls.m4: Likewise.
43467         * m4/nocrash.m4: Likewise.
43468         * m4/open.m4: Likewise.
43469         * m4/openat.m4: Likewise.
43470         * m4/openmp.m4: Likewise.
43471         * m4/pathmax.m4: Likewise.
43472         * m4/perl.m4: Likewise.
43473         * m4/physmem.m4: Likewise.
43474         * m4/pipe.m4: Likewise.
43475         * m4/po.m4: Likewise.
43476         * m4/poll.m4: Likewise.
43477         * m4/posixtm.m4: Likewise.
43478         * m4/posixver.m4: Likewise.
43479         * m4/printf-frexp.m4: Likewise.
43480         * m4/printf-frexpl.m4: Likewise.
43481         * m4/printf-posix.m4: Likewise.
43482         * m4/printf-posix-rpl.m4: Likewise.
43483         * m4/printf.m4: Likewise.
43484         * m4/progtest.m4: Likewise.
43485         * m4/putenv.m4: Likewise.
43486         * m4/readline.m4: Likewise.
43487         * m4/readlink.m4: Likewise.
43488         * m4/readutmp.m4: Likewise.
43489         * m4/realloc.m4: Likewise.
43490         * m4/regex.m4: Likewise.
43491         * m4/relocatable.m4: Likewise.
43492         * m4/relocatable-lib.m4: Likewise.
43493         * m4/rename-dest-slash.m4: Likewise.
43494         * m4/rename.m4: Likewise.
43495         * m4/rmdir-errno.m4: Likewise.
43496         * m4/rmdir.m4: Likewise.
43497         * m4/roundf.m4: Likewise.
43498         * m4/roundl.m4: Likewise.
43499         * m4/rpmatch.m4: Likewise.
43500         * m4/save-cwd.m4: Likewise.
43501         * m4/selinux-selinux-h.m4: Likewise.
43502         * m4/setenv.m4: Likewise.
43503         * m4/settime.m4: Likewise.
43504         * m4/sig2str.m4: Likewise.
43505         * m4/sig_atomic_t.m4: Likewise.
43506         * m4/signalblocking.m4: Likewise.
43507         * m4/signbit.m4: Likewise.
43508         * m4/sigpipe.m4: Likewise.
43509         * m4/sockets.m4: Likewise.
43510         * m4/sockpfaf.m4: Likewise.
43511         * m4/st_dm_mode.m4: Likewise.
43512         * m4/stat-time.m4: Likewise.
43513         * m4/stdbool.m4: Likewise.
43514         * m4/stdint.m4: Likewise.
43515         * m4/stdint_h.m4: Likewise.
43516         * m4/stpcpy.m4: Likewise.
43517         * m4/stpncpy.m4: Likewise.
43518         * m4/strcase.m4: Likewise.
43519         * m4/strchrnul.m4: Likewise.
43520         * m4/strcspn.m4: Likewise.
43521         * m4/strdup.m4: Likewise.
43522         * m4/strftime.m4: Likewise.
43523         * m4/strndup.m4: Likewise.
43524         * m4/strnlen.m4: Likewise.
43525         * m4/strpbrk.m4: Likewise.
43526         * m4/strptime.m4: Likewise.
43527         * m4/strsep.m4: Likewise.
43528         * m4/strtod.m4: Likewise.
43529         * m4/strtoimax.m4: Likewise.
43530         * m4/strtok_r.m4: Likewise.
43531         * m4/strtol.m4: Likewise.
43532         * m4/strtoll.m4: Likewise.
43533         * m4/strtoul.m4: Likewise.
43534         * m4/strtoull.m4: Likewise.
43535         * m4/strtoumax.m4: Likewise.
43536         * m4/strverscmp.m4: Likewise.
43537         * m4/threadlib.m4: Likewise.
43538         * m4/timegm.m4: Likewise.
43539         * m4/tm_gmtoff.m4: Likewise.
43540         * m4/tmpdir.m4: Likewise.
43541         * m4/tmpfile.m4: Likewise.
43542         * m4/tzset.m4: Likewise.
43543         * m4/uintmax_t.m4: Likewise.
43544         * m4/unlinkdir.m4: Likewise.
43545         * m4/unlocked-io.m4: Likewise.
43546         * m4/uptime.m4: Likewise.
43547         * m4/userspec.m4: Likewise.
43548         * m4/utimbuf.m4: Likewise.
43549         * m4/utime.m4: Likewise.
43550         * m4/utimes-null.m4: Likewise.
43551         * m4/utimes.m4: Likewise.
43552         * m4/vararrays.m4: Likewise.
43553         * m4/vasnprintf.m4: Likewise.
43554         * m4/vfprintf-posix.m4: Likewise.
43555         * m4/vprintf-posix.m4: Likewise.
43556         * m4/wait-process.m4: Likewise.
43557         * m4/wchar_t.m4: Likewise.
43558         * m4/wint_t.m4: Likewise.
43559         * m4/write-any-file.m4: Likewise.
43560         * m4/yield.m4: Likewise.
43561
43562 2009-01-13  Bruno Haible  <bruno@clisp.org>
43563
43564         Avoid test-copy-file.sh failures when ACL support insufficient.
43565         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43566         TESTS_ENVIRONMENT.
43567         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43568         Reported by Jim Meyering.
43569
43570 2009-01-13  Bruno Haible  <bruno@clisp.org>
43571
43572         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43573         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43574         * modules/unistdio/u8-printf-parse (Files): Likewise.
43575         * modules/unistdio/u32-printf-parse (Files): Likewise.
43576         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43577
43578 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43579
43580         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43581         and m4/inttypes_h.m4 too.
43582
43583 2009-01-12  Eric Blake  <ebb9@byu.net>
43584
43585         tests: IRIX 6.2 cc can't compile -0.0 into .data
43586         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43587         rather than at compile-time.
43588         * tests/test-floorl.c (minus_zero): Likewise.
43589         * tests/test-frexpl.c (minus_zero): Likewise.
43590         * tests/test-isnan.c (minus_zerol): Likewise.
43591         * tests/test-isnanl.h (minus_zero): Likewise.
43592         * tests/test-ldexpl.c (minus_zero): Likewise.
43593         * tests/test-roundl.c (minus_zero): Likewise.
43594         * tests/test-signbit.c (minus_zerol): Likewise.
43595         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43596         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43597         * tests/test-truncl.c (minus_zero): Likewise.
43598         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43599         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43600         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43601
43602 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43603
43604         regex: fix glibc bug 9697
43605         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43606         handling.
43607
43608 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43609
43610         regex: fix glibc bug 697
43611         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43612         being NULL also if there are no backreferences.
43613
43614 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43615
43616         regex: merge glibc changes
43617         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43618         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43619         re_string_skip_chars, re_string_reconstruct): Likewise.
43620         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43621
43622 2009-01-07  Jim Meyering  <meyering@redhat.com>
43623
43624         poll: filter through cppi
43625         * lib/poll.c: Indent cpp directives to reflect nesting.
43626
43627 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43628
43629         poll: don't return uninitialized
43630         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43631
43632 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43633
43634         avoid compile failure on AIX 6.1
43635         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43636         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43637
43638 2009-01-04  Jim Meyering  <meyering@redhat.com>
43639
43640         remove duplicate inclusion of <stdio.h>
43641         * tests/test-fprintf-posix.c: Likewise.
43642         * tests/test-printf-posix.c: Likewise.
43643         * tests/test-snprintf-posix.c: Likewise.
43644         * tests/test-sprintf-posix.c: Likewise.
43645         * tests/test-vasprintf-posix.c: Likewise.
43646         * tests/test-vfprintf-posix.c: Likewise.
43647         * tests/test-vprintf-posix.c: Likewise.
43648         * tests/test-vsnprintf-posix.c: Likewise.
43649         * tests/test-vsprintf-posix.c: Likewise.
43650
43651 2009-01-03  Jim Meyering  <meyering@redhat.com>
43652
43653         gnulib-tool: fix sed-based filtering
43654         * gnulib-tool (func_filter_filelist): Remove extra backslash
43655         in sed_fff_filter definition.
43656
43657 2009-01-02  Jim Meyering  <meyering@redhat.com>
43658
43659         strftime: avoid compilation failure on Solaris 2.6
43660         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43661         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43662         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43663         be available.  Reported by Tom G. Christensen.  Details in
43664         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43665
43666 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43667             Bruno Haible  <bruno@clisp.org>
43668
43669         Speed up gnulib-tool by doing more string processing through shell
43670         built-ins.
43671         * gnulib-tool (fast_func_append): New variable.
43672         (func_remove_prefix, func_remove_suffix): New functions.
43673         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43674         (func_filter_filelist): New function.
43675         (func_get_dependencies): Use func_remove_suffix instead of sed.
43676         (func_get_automake_snippet): Use func_filter_filelist instead of a
43677         subshell and sed invocation.
43678
43679 2009-01-01  Bruno Haible  <bruno@clisp.org>
43680
43681         Fix a security bug.
43682         * gnulib-tool (func_import, import, update): Don't allow the characters
43683         '"', '$', '`', '\' in macro arguments that become part of commands that
43684         are evaluated.
43685
43686 2009-01-01  Bruno Haible  <bruno@clisp.org>
43687
43688         * gnulib-tool (func_reset_sigpipe): Add more comments.
43689
43690 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43691
43692         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43693         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43694         already know the answer.
43695
43696 2009-01-01  Jim Meyering  <meyering@redhat.com>
43697
43698         * lib/version-etc.c (version_etc_va): Update copyright year.
43699
43700 2008-12-30  Bruno Haible  <bruno@clisp.org>
43701
43702         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43703         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43704         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43705
43706 2008-12-29  Eric Blake  <ebb9@byu.net>
43707
43708         multiarch: avoid autoconf AC_REQUIRE bug
43709         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43710         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43711         2.63 and older.
43712         Reported by Bruno Haible, and analyzed in
43713         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43714
43715 2008-12-29  Bruno Haible  <bruno@clisp.org>
43716
43717         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43718         files in subdirectories correctly.
43719         Reported by Ralf Wildenhues.
43720
43721 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43722
43723         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43724         rather than 'join FILE -', for Solaris join.
43725
43726 2008-12-29  Bruno Haible  <bruno@clisp.org>
43727
43728         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43729         quoting.
43730         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43731         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43732         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43733         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43734         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43735         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43736         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43737         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43738         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43739         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43740         * m4/nls.m4 (AM_NLS): Likewise.
43741         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43742         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43743         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43744         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43745         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43746         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43747         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43748         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43749         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43750         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43751         * m4/xsize.m4 (gl_XSIZE): Likewise.
43752         Suggested by Jim Meyering.
43753
43754 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43755
43756         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43757         * lib/parse-duration.c: use a switch instead of cascading if's.
43758
43759 2008-12-29  Eric Blake  <ebb9@byu.net>
43760
43761         wchar.h: supply WEOF on Irix 5.3
43762         * lib/wchar.in.h (wint_t): Also supply WEOF.
43763         * lib/wctype.in.h (wint_t): Likewise.
43764         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43765         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43766         Reported by Tom G. Christensen.
43767
43768 2008-12-26  Bruno Haible  <bruno@clisp.org>
43769
43770         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43771         i486, i586, i686.
43772
43773 2008-12-26  Bruno Haible  <bruno@clisp.org>
43774
43775         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43776
43777 2008-12-26  Bruno Haible  <bruno@clisp.org>
43778
43779         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43780         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43781         not __STDC_CONSTANT_MACROS.
43782         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43783
43784 2008-12-25  Bruno Haible  <bruno@clisp.org>
43785
43786         Add support for universal builds to vasnprintf.
43787         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43788         universal builds, guess no.
43789         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43790         * modules/vasprintf-posix (Depends-on): Likewise.
43791         * modules/fprintf-posix (Depends-on): Likewise.
43792         * modules/vfprintf-posix (Depends-on): Likewise.
43793         * modules/snprintf-posix (Depends-on): Likewise.
43794         * modules/vsnprintf-posix (Depends-on): Likewise.
43795         * modules/sprintf-posix (Depends-on): Likewise.
43796         * modules/vsprintf-posix (Depends-on): Likewise.
43797         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43798         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43799         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43800         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43801         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43802         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43803         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43804
43805         Add support for universal builds to <inttypes.h>.
43806         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43807         _SCNu64_PREFIX): In Apple
43808         universal builds, define directly, using _LP64.
43809         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43810         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43811         * modules/inttypes (Depends-on): Add multiarch.
43812         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43813
43814         Add support for universal builds to <stdint.h>.
43815         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43816         universal builds, define directly, using _LP64.
43817         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43818         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43819         and size_t.
43820         * modules/stdint (Depends-on): Add multiarch.
43821         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43822
43823         New module 'multiarch'.
43824         * modules/multiarch: New file.
43825         * m4/multiarch.m4: New file.
43826
43827 2008-12-25  Bruno Haible  <bruno@clisp.org>
43828
43829         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43830
43831 2008-12-25  Bruno Haible  <bruno@clisp.org>
43832
43833         * modules/btowc (License): Relicense under LGPLv2+.
43834         * modules/mbsinit (License): Likewise.
43835         * modules/mbrtowc (License): Likewise.
43836         * modules/wcrtomb (License): Likewise.
43837         * modules/streq (License): Likewise.
43838         Reported by David Lutterkort <lutter@redhat.com>.
43839
43840 2008-12-23  Bruno Haible  <bruno@clisp.org>
43841
43842         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43843
43844 2008-12-23  Bruno Haible  <bruno@clisp.org>
43845
43846         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43847         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43848         GETADDRINFO_LIB, not in LIBS.
43849         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43850         * modules/canon-host (Link): Likewise.
43851         * NEWS: Mention the change.
43852         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43853         GETADDRINFO_LIB.
43854
43855 2008-12-22  Bruno Haible  <bruno@clisp.org>
43856
43857         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43858         * doc/posix-functions/iswalpha_l.texi: Likewise.
43859         * doc/posix-functions/iswblank_l.texi: Likewise.
43860         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43861         * doc/posix-functions/iswctype_l.texi: Likewise.
43862         * doc/posix-functions/iswdigit_l.texi: Likewise.
43863         * doc/posix-functions/iswgraph_l.texi: Likewise.
43864         * doc/posix-functions/iswlower_l.texi: Likewise.
43865         * doc/posix-functions/iswprint_l.texi: Likewise.
43866         * doc/posix-functions/iswpunct_l.texi: Likewise.
43867         * doc/posix-functions/iswspace_l.texi: Likewise.
43868         * doc/posix-functions/iswupper_l.texi: Likewise.
43869         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43870         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43871         * doc/posix-functions/open_wmemstream.texi: Likewise.
43872         * doc/posix-functions/swscanf.texi: Likewise.
43873         * doc/posix-functions/towctrans_l.texi: Likewise.
43874         * doc/posix-functions/towlower.texi: Likewise.
43875         * doc/posix-functions/towlower_l.texi: Likewise.
43876         * doc/posix-functions/towupper.texi: Likewise.
43877         * doc/posix-functions/towupper_l.texi: Likewise.
43878         * doc/posix-functions/vfwprintf.texi: Likewise.
43879         * doc/posix-functions/vfwscanf.texi: Likewise.
43880         * doc/posix-functions/vswscanf.texi: Likewise.
43881         * doc/posix-functions/vwprintf.texi: Likewise.
43882         * doc/posix-functions/vwscanf.texi: Likewise.
43883         * doc/posix-functions/wcpcpy.texi: Likewise.
43884         * doc/posix-functions/wcpncpy.texi: Likewise.
43885         * doc/posix-functions/wcscasecmp.texi: Likewise.
43886         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43887         * doc/posix-functions/wcscoll_l.texi: Likewise.
43888         * doc/posix-functions/wcsdup.texi: Likewise.
43889         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43890         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43891         * doc/posix-functions/wcsnlen.texi: Likewise.
43892         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43893         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43894         * doc/posix-functions/wctrans_l.texi: Likewise.
43895         * doc/posix-functions/wctype_l.texi: Likewise.
43896         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43897         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43898         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43899         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43900         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43901         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43902         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43903         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43904         * doc/glibc-functions/wcschrnul.texi: Likewise.
43905         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43906         * doc/glibc-functions/wcstod_l.texi: Likewise.
43907         * doc/glibc-functions/wcstof_l.texi: Likewise.
43908         * doc/glibc-functions/wcstol_l.texi: Likewise.
43909         * doc/glibc-functions/wcstold_l.texi: Likewise.
43910         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43911         * doc/glibc-functions/wcstoq.texi: Likewise.
43912         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43913         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43914         * doc/glibc-functions/wcstouq.texi: Likewise.
43915         * doc/glibc-functions/wmempcpy.texi: Likewise.
43916
43917 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43918             Eric Blake  <ebb9@byu.net>
43919             Paolo Bonzini  <bonzini@gnu.org>
43920             Bruno Haible  <bruno@clisp.org>
43921
43922         Make c-stack work on Haiku.
43923         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43924         (c_stack_action): Use SA_ONSTACK flag.
43925
43926 2008-12-22  Bruno Haible  <bruno@clisp.org>
43927
43928         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43929
43930 2008-12-22  Bruno Haible  <bruno@clisp.org>
43931
43932         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43933         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43934         being overridden.
43935         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43936         New macros.
43937         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43938         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43939         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43940         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43941
43942 2008-12-22  Bruno Haible  <bruno@clisp.org>
43943
43944         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43945         from test code.
43946
43947 2008-12-22  Eric Blake  <ebb9@byu.net>
43948
43949         Avoid gcc warnings on cygwin.
43950         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43951         Avoid unused variable.
43952         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43953         Likewise.
43954
43955 2008-12-22  Bruno Haible  <bruno@clisp.org>
43956
43957         Remove HAVE_MBRTOWC conditionals.
43958         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43959         (mbscasecmp): Assume mbrtowc function.
43960         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43961         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43962         * lib/mbschr.c: Include mbuiter.h unconditionally.
43963         (mbschr): Assume mbrtowc function.
43964         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43965         (mbscspn): Assume mbrtowc function.
43966         * lib/mbslen.c: Include mbuiter.h unconditionally.
43967         (mbslen): Assume mbrtowc function.
43968         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43969         (mbsncasecmp): Assume mbrtowc function.
43970         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43971         (mbsnlen): Assume mbrtowc function.
43972         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43973         (mbspbrk): Assume mbrtowc function.
43974         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43975         (mbspcasecmp): Assume mbrtowc function.
43976         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43977         (mbsrchr): Assume mbrtowc function.
43978         * lib/mbssep.c: Include mbuiter.h unconditionally.
43979         (mbssep): Assume mbrtowc function.
43980         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43981         (mbsspn): Assume mbrtowc function.
43982         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43983         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43984         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43985         (mbstok_r): Assume mbrtowc function.
43986         * lib/propername.c: Include mbuiter.h unconditionally.
43987         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43988         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43989         (trim2): Assume mbrtowc function.
43990         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43991         (mbsnwidth): Assume mbrtowc function.
43992         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43993         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43994         fallback definitions.
43995         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43996
43997 2008-12-22  Bruno Haible  <bruno@clisp.org>
43998
43999         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44000
44001 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44002
44003         * modules/regex: Request emulations for the mb*/wc* functions we need.
44004         * m4/regex.m4: Don't look for those functions here.
44005         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44006
44007 2008-12-22  Bruno Haible  <bruno@clisp.org>
44008
44009         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44010
44011 2008-12-21  Bruno Haible  <bruno@clisp.org>
44012
44013         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44014         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44015         (Include): Remove conditionalization.
44016         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44017         (Include): Remove conditionalization.
44018         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44019         (Include): Remove conditionalization.
44020         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44021         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44022         * NEWS: Mention the change.
44023         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44024         via Sergey Poznyakoff <gray@gnu.org.ua>.
44025
44026 2008-12-21  Bruno Haible  <bruno@clisp.org>
44027
44028         * MODULES.html.sh (Extended multibyte and wide character utilities
44029         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44030         wcrtomb, wcsrtombs.
44031         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44032         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44033         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44034         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44035
44036 2008-12-21  Bruno Haible  <bruno@clisp.org>
44037
44038         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44039
44040 2008-12-21  Bruno Haible  <bruno@clisp.org>
44041
44042         * modules/wcsnrtombs-tests: New file.
44043         * tests/test-wcsnrtombs1.sh: New file.
44044         * tests/test-wcsnrtombs2.sh: New file.
44045         * tests/test-wcsnrtombs3.sh: New file.
44046         * tests/test-wcsnrtombs4.sh: New file.
44047         * tests/test-wcsnrtombs.c: New file.
44048
44049         New module 'wcsnrtombs'.
44050         * lib/wchar.in.h (wcsnrtombs): New declaration.
44051         * lib/wcsnrtombs.c: New file.
44052         * lib/wcsrtombs-state.c: New file.
44053         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44054         (internal_state): Remove variable.
44055         * m4/wcsnrtombs.m4: New file.
44056         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44057         compilation units.
44058         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44059         HAVE_WCSNRTOMBS.
44060         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44061         HAVE_WCSNRTOMBS.
44062         * modules/wcsnrtombs: New file.
44063         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44064         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44065
44066 2008-12-21  Bruno Haible  <bruno@clisp.org>
44067
44068         * modules/wcsrtombs-tests: New file.
44069         * tests/test-wcsrtombs1.sh: New file.
44070         * tests/test-wcsrtombs2.sh: New file.
44071         * tests/test-wcsrtombs3.sh: New file.
44072         * tests/test-wcsrtombs4.sh: New file.
44073         * tests/test-wcsrtombs.c: New file.
44074
44075         New module 'wcsrtombs'.
44076         * lib/wchar.in.h (wcsrtombs): New declaration.
44077         * lib/wcsrtombs.c: New file.
44078         * m4/wcsrtombs.m4: New file.
44079         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44080         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44081         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44082         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44083         * modules/wcsrtombs: New file.
44084         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44085         bugs.
44086
44087 2008-12-21  Bruno Haible  <bruno@clisp.org>
44088
44089         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44090         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44091         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44092         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44093         if not correct.
44094         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44095         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44096         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44097         m4/locale-zh.m4, m4/codeset.m4.
44098         * doc/posix-functions/wcrtomb.texi: Document the bug.
44099
44100 2008-12-21  Bruno Haible  <bruno@clisp.org>
44101
44102         Work around a btowc() bug on IRIX 6.5.
44103         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44104         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44105         REPLACE_WTOBC if not.
44106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44107         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44108         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44109
44110 2008-12-21  Bruno Haible  <bruno@clisp.org>
44111
44112         * modules/wcrtomb-tests: New file.
44113         * tests/test-wcrtomb.sh: New file.
44114         * tests/test-wcrtomb.c: New file.
44115
44116         New module 'wcrtomb'.
44117         * lib/wchar.in.h (wcrtomb): New declaration.
44118         * lib/wcrtomb.c: New file.
44119         * m4/wcrtomb.m4: New file.
44120         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44121         HAVE_WCRTOMB.
44122         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44123         HAVE_WCRTOMB.
44124         * modules/wcrtomb: New file.
44125         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44126
44127 2008-12-21  Bruno Haible  <bruno@clisp.org>
44128
44129         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44130         * modules/mbsrtowcs (Files): Likewise.
44131         * modules/wctob (Files): Likewise.
44132         * modules/c-strcase-tests (Files): Likewise.
44133         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44134         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44135         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44136         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44137         * modules/vasnprintf-posix-tests (Files): Likewise.
44138
44139 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44140
44141         gitlog-to-changelog: pass all command-line arguments to git-log
44142         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44143         it is sometimes convenient to filter the commits in various ways.
44144         gitlog-to-changelog only allows --since to specify a start date,
44145         but git-log itself supports many other filtering mechanisms.
44146         At the moment, I want to filter by branch name.  Rather than
44147         adding a --branch option to gitlog-to-changelog, it seems more
44148         flexible to simply pass all options directly to git-log and let
44149         git do the work.  Notice that this effectively makes --since a
44150         redundant option for gitlog-to-changelog, but removing it would
44151         require current usage to change since calls would then require
44152         an additional '--'.
44153
44154 2008-12-21  Bruno Haible  <bruno@clisp.org>
44155
44156         * modules/mbsnrtowcs-tests: New file.
44157         * tests/test-mbsnrtowcs1.sh: New file.
44158         * tests/test-mbsnrtowcs2.sh: New file.
44159         * tests/test-mbsnrtowcs3.sh: New file.
44160         * tests/test-mbsnrtowcs4.sh: New file.
44161         * tests/test-mbsnrtowcs.c: New file.
44162
44163         New module 'mbsnrtowcs'.
44164         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44165         * lib/mbsnrtowcs.c: New file.
44166         * lib/mbsrtowcs-state.c: New file.
44167         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44168         (internal_state): Remove variable.
44169         * m4/mbsnrtowcs.m4: New file.
44170         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44171         compilation units.
44172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44173         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44174         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44175         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44176         * modules/mbsnrtowcs: New file.
44177         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44178         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44179         portability problem.
44180
44181 2008-12-21  Bruno Haible  <bruno@clisp.org>
44182
44183         Work around mbsrtowcs bug.
44184         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44185         (gl_FUNC_MBSRTOWCS): Invoke it.
44186         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44187         m4/locale-zh.m4.
44188         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44189
44190 2008-12-21  Bruno Haible  <bruno@clisp.org>
44191
44192         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44193
44194 2008-12-21  Bruno Haible  <bruno@clisp.org>
44195
44196         Update doc for AIX.
44197         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44198         16-bit wchar_t type.
44199         * doc/posix-functions/btowc.texi: Likewise.
44200         * doc/posix-functions/fgetwc.texi: Likewise.
44201         * doc/posix-functions/fgetws.texi: Likewise.
44202         * doc/posix-functions/fputwc.texi: Likewise.
44203         * doc/posix-functions/fputws.texi: Likewise.
44204         * doc/posix-functions/fwide.texi: Likewise.
44205         * doc/posix-functions/fwprintf.texi: Likewise.
44206         * doc/posix-functions/fwscanf.texi: Likewise.
44207         * doc/posix-functions/getwchar.texi: Likewise.
44208         * doc/posix-functions/getwc.texi: Likewise.
44209         * doc/posix-functions/iswalnum.texi: Likewise.
44210         * doc/posix-functions/iswalpha.texi: Likewise.
44211         * doc/posix-functions/iswblank.texi: Likewise.
44212         * doc/posix-functions/iswcntrl.texi: Likewise.
44213         * doc/posix-functions/iswctype.texi: Likewise.
44214         * doc/posix-functions/iswdigit.texi: Likewise.
44215         * doc/posix-functions/iswgraph.texi: Likewise.
44216         * doc/posix-functions/iswlower.texi: Likewise.
44217         * doc/posix-functions/iswprint.texi: Likewise.
44218         * doc/posix-functions/iswpunct.texi: Likewise.
44219         * doc/posix-functions/iswspace.texi: Likewise.
44220         * doc/posix-functions/iswupper.texi: Likewise.
44221         * doc/posix-functions/iswxdigit.texi: Likewise.
44222         * doc/posix-functions/mbrtowc.texi: Likewise.
44223         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44224         * doc/posix-functions/mbstowcs.texi: Likewise.
44225         * doc/posix-functions/mbtowc.texi: Likewise.
44226         * doc/posix-functions/putwchar.texi: Likewise.
44227         * doc/posix-functions/putwc.texi: Likewise.
44228         * doc/posix-functions/swprintf.texi: Likewise.
44229         * doc/posix-functions/tolower.texi: Likewise.
44230         * doc/posix-functions/toupper.texi: Likewise.
44231         * doc/posix-functions/towctrans.texi: Likewise.
44232         * doc/posix-functions/ungetwc.texi: Likewise.
44233         * doc/posix-functions/vswprintf.texi: Likewise.
44234         * doc/posix-functions/wcrtomb.texi: Likewise.
44235         * doc/posix-functions/wcscat.texi: Likewise.
44236         * doc/posix-functions/wcschr.texi: Likewise.
44237         * doc/posix-functions/wcscmp.texi: Likewise.
44238         * doc/posix-functions/wcscoll.texi: Likewise.
44239         * doc/posix-functions/wcscpy.texi: Likewise.
44240         * doc/posix-functions/wcscspn.texi: Likewise.
44241         * doc/posix-functions/wcsftime.texi: Likewise.
44242         * doc/posix-functions/wcslen.texi: Likewise.
44243         * doc/posix-functions/wcsncat.texi: Likewise.
44244         * doc/posix-functions/wcsncmp.texi: Likewise.
44245         * doc/posix-functions/wcsncpy.texi: Likewise.
44246         * doc/posix-functions/wcspbrk.texi: Likewise.
44247         * doc/posix-functions/wcsrchr.texi: Likewise.
44248         * doc/posix-functions/wcsrtombs.texi: Likewise.
44249         * doc/posix-functions/wcsspn.texi: Likewise.
44250         * doc/posix-functions/wcsstr.texi: Likewise.
44251         * doc/posix-functions/wcstod.texi: Likewise.
44252         * doc/posix-functions/wcstof.texi: Likewise.
44253         * doc/posix-functions/wcstoimax.texi: Likewise.
44254         * doc/posix-functions/wcstok.texi: Likewise.
44255         * doc/posix-functions/wcstold.texi: Likewise.
44256         * doc/posix-functions/wcstoll.texi: Likewise.
44257         * doc/posix-functions/wcstol.texi: Likewise.
44258         * doc/posix-functions/wcstombs.texi: Likewise.
44259         * doc/posix-functions/wcstoull.texi: Likewise.
44260         * doc/posix-functions/wcstoul.texi: Likewise.
44261         * doc/posix-functions/wcstoumax.texi: Likewise.
44262         * doc/posix-functions/wcswidth.texi: Likewise.
44263         * doc/posix-functions/wcsxfrm.texi: Likewise.
44264         * doc/posix-functions/wctob.texi: Likewise.
44265         * doc/posix-functions/wctomb.texi: Likewise.
44266         * doc/posix-functions/wctrans.texi: Likewise.
44267         * doc/posix-functions/wctype.texi: Likewise.
44268         * doc/posix-functions/wcwidth.texi: Likewise.
44269         * doc/posix-functions/wmemchr.texi: Likewise.
44270         * doc/posix-functions/wmemcmp.texi: Likewise.
44271         * doc/posix-functions/wmemcpy.texi: Likewise.
44272         * doc/posix-functions/wmemmove.texi: Likewise.
44273         * doc/posix-functions/wmemset.texi: Likewise.
44274         * doc/posix-functions/wprintf.texi: Likewise.
44275         * doc/posix-functions/wscanf.texi: Likewise.
44276
44277 2008-12-21  Bruno Haible  <bruno@clisp.org>
44278
44279         Update doc for HP-UX 11.11.
44280         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44281         in HP-UX version 11.00, not in all versions of HP-UX 11.
44282         * doc/posix-functions/fwide.texi: Likewise.
44283         * doc/posix-functions/fwprintf.texi: Likewise.
44284         * doc/posix-functions/fwscanf.texi: Likewise.
44285         * doc/posix-functions/inet_ntop.texi: Likewise.
44286         * doc/posix-functions/inet_pton.texi: Likewise.
44287         * doc/posix-functions/mbrlen.texi: Likewise.
44288         * doc/posix-functions/mbrtowc.texi: Likewise.
44289         * doc/posix-functions/mbsinit.texi: Likewise.
44290         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44291         * doc/posix-functions/swprintf.texi: Likewise.
44292         * doc/posix-functions/swscanf.texi: Likewise.
44293         * doc/posix-functions/towctrans.texi: Likewise.
44294         * doc/posix-functions/vfwprintf.texi: Likewise.
44295         * doc/posix-functions/vswprintf.texi: Likewise.
44296         * doc/posix-functions/vwprintf.texi: Likewise.
44297         * doc/posix-functions/wcrtomb.texi: Likewise.
44298         * doc/posix-functions/wcsrtombs.texi: Likewise.
44299         * doc/posix-functions/wcsstr.texi: Likewise.
44300         * doc/posix-functions/wctob.texi: Likewise.
44301         * doc/posix-functions/wctrans.texi: Likewise.
44302         * doc/posix-functions/wmemchr.texi: Likewise.
44303         * doc/posix-functions/wmemcmp.texi: Likewise.
44304         * doc/posix-functions/wmemcpy.texi: Likewise.
44305         * doc/posix-functions/wmemmove.texi: Likewise.
44306         * doc/posix-functions/wmemset.texi: Likewise.
44307         * doc/posix-functions/wprintf.texi: Likewise.
44308         * doc/posix-functions/wscanf.texi: Likewise.
44309
44310 2008-12-21  Bruno Haible  <bruno@clisp.org>
44311
44312         Work around a portability problem.
44313         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44314         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44315
44316 2008-12-20  Bruno Haible  <bruno@clisp.org>
44317
44318         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44319         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44320         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44322         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44323
44324         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44325         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44326         set.
44327         (GNULIB_defined_mbstate_t): New macro.
44328         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44329         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44330         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44331         reuses the system's mbrtowc function but works around the bugs.
44332         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44333         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44334         macros.
44335         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44336         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44337         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44338         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44339         REPLACE_MBSINIT if mbsinit needs to be overridden.
44340         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44341         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44342         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44343         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44344         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44345         m4/locale-zh.m4.
44346         (Depends): Add mbsinit.
44347         * modules/mbsinit (Depends): Add mbrtowc.
44348         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44349
44350 2008-12-20  Bruno Haible  <bruno@clisp.org>
44351
44352         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44353         so that there are no conversion errors on AIX.
44354         * tests/test-mbsrtowcs.c (main): LIkewise.
44355
44356 2008-12-20  Bruno Haible  <bruno@clisp.org>
44357
44358         Work around wctob bug on Solaris <= 9.
44359         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44360         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44361         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44362         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44363         * modules/wctob (Files): Add m4/locale-fr.m4.
44364         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44365
44366 2008-12-20  Bruno Haible  <bruno@clisp.org>
44367
44368         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44369         /dev/null.
44370         * tests/test-select-in.sh: Likewise.
44371         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44372
44373 2008-12-20  Bruno Haible  <bruno@clisp.org>
44374
44375         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44376         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44377         Cygwin 1.5.x.
44378
44379 2008-12-20  Bruno Haible  <bruno@clisp.org>
44380
44381         Ensure mbstate_t is defined on HP-UX 11.11.
44382         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44383         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44384         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44385         AC_USE_SYSTEM_EXTENSIONS.
44386         * modules/fnmatch (Depends-on): Add extensions.
44387         * modules/mbrlen (Depends-on): Likewise.
44388         * modules/mbrtowc (Depends-on): Likewise.
44389         * modules/mbsinit (Depends-on): Likewise.
44390         * modules/mbsrtowcs (Depends-on): Likewise.
44391         * modules/mbswidth (Depends-on): Likewise.
44392         * modules/quotearg (Depends-on): Likewise.
44393         * modules/strftime (Depends-on): Likewise.
44394
44395 2008-12-20  Bruno Haible  <bruno@clisp.org>
44396
44397         Ensure wctob is declared on IRIX 6.5.
44398         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44399         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44400         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44401         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44402         of HAVE_WCTOB.
44403         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44404         HAVE_WCTOB.
44405         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44406
44407 2008-12-19  Bruno Haible  <bruno@clisp.org>
44408
44409         * modules/mbsrtowcs-tests: New file.
44410         * tests/test-mbsrtowcs1.sh: New file.
44411         * tests/test-mbsrtowcs2.sh: New file.
44412         * tests/test-mbsrtowcs3.sh: New file.
44413         * tests/test-mbsrtowcs4.sh: New file.
44414         * tests/test-mbsrtowcs.c: New file.
44415
44416         New module 'mbsrtowcs'.
44417         * lib/wchar.in.h (mbsrtowcs): New declaration.
44418         * lib/mbsrtowcs.c: New file.
44419         * m4/mbsrtowcs.m4: New file.
44420         * modules/mbsrtowcs: New file.
44421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44422         HAVE_MBSRTOWCS.
44423         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44424         HAVE_MBSRTOWCS.
44425         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44426
44427 2008-12-19  Bruno Haible  <bruno@clisp.org>
44428
44429         New module 'mbrlen'.
44430         * lib/wchar.in.h (mbrlen): New declaration.
44431         * lib/mbrlen.c: New file.
44432         * m4/mbrlen.m4: New file.
44433         * modules/mbrlen: New file.
44434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44435         HAVE_MBRLEN.
44436         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44437         HAVE_MBRLEN.
44438         * doc/posix-functions/mbrlen.texi: Document the new module.
44439
44440 2008-12-19  Bruno Haible  <bruno@clisp.org>
44441
44442         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44443         * modules/mbrtowc (Depends-on): Add verify.
44444         Suggested by Paul Eggert.
44445
44446 2008-12-18  Bruno Haible  <bruno@clisp.org>
44447
44448         * modules/mbsinit-tests: New file.
44449         * tests/test-mbsinit.sh: New file.
44450         * tests/test-mbsinit.c: New file.
44451
44452 2008-12-18  Bruno Haible  <bruno@clisp.org>
44453
44454         * modules/mbrtowc-tests: New file.
44455         * tests/test-mbrtowc1.sh: New file.
44456         * tests/test-mbrtowc2.sh: New file.
44457         * tests/test-mbrtowc3.sh: New file.
44458         * tests/test-mbrtowc4.sh: New file.
44459         * tests/test-mbrtowc.c: New file.
44460
44461         New module 'mbrtowc'.
44462         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44463         mbsinit and mbrtowc.
44464         (mbrtowc): New declaration.
44465         * lib/mbrtowc.c: New file.
44466         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44467         * modules/mbrtowc: New file.
44468         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44469         HAVE_MBRTOWC.
44470         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44471         HAVE_MBRTOWC.
44472         * doc/posix-functions/mbrtowc.texi: Document the new module.
44473
44474 2008-12-18  Bruno Haible  <bruno@clisp.org>
44475
44476         New module 'wctob'.
44477         * lib/wchar.in.h (wctob): New declaration.
44478         * lib/wctob.c: New file.
44479         * m4/wctob.m4: New file.
44480         * modules/wctob: New file.
44481         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44482         HAVE_WCTOB.
44483         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44484         * doc/posix-functions/wctob.texi: Document the new module.
44485
44486 2008-12-18  Bruno Haible  <bruno@clisp.org>
44487
44488         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44489         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44490
44491 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44492
44493         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44494         G. Christensen" <tgc@jupiterrise.com>.
44495
44496         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44497         G. Christensen" <tgc@jupiterrise.com>.
44498
44499         * lib/flock.c: Need to include string.h.  Reported by "Tom
44500         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44501         <ebb9@byu.net>.
44502
44503 2008-12-18  Bruno Haible  <bruno@clisp.org>
44504
44505         * m4/locale-ja.m4: New file, from GNU gettext.
44506
44507 2008-12-17  Bruno Haible  <bruno@clisp.org>
44508
44509         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44510         Suggested by Eric Blake.
44511
44512 2008-12-17  Bruno Haible  <bruno@clisp.org>
44513
44514         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44515
44516 2008-12-17  Bruno Haible  <bruno@clisp.org>
44517
44518         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44519         * modules/mbsinit (Depends-on): Add verify.
44520         Suggested by Paul Eggert.
44521
44522 2008-12-17  Bruno Haible  <bruno@clisp.org>
44523
44524         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44525         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44526         gl_FUNC_MBRTOWC.
44527         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44528         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44529         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44530         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44531         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44532         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44533         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44534         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44535         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44536         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44537         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44538         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44539         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44540         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44541         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44542         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44543         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44544         * modules/trim (configure.ac): Likewise.
44545
44546 2008-12-17  Bruno Haible  <bruno@clisp.org>
44547
44548         * modules/btowc-tests: New file.
44549         * tests/test-btowc1.sh: New file.
44550         * tests/test-btowc2.sh: New file.
44551         * tests/test-btowc.c: New file.
44552
44553         New module 'btowc'.
44554         * lib/wchar.in.h (btowc): New declaration.
44555         * lib/btowc.c: New file.
44556         * m4/btowc.m4: New file.
44557         * modules/btowc: New file.
44558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44559         HAVE_BTOWC.
44560         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44561         * doc/posix-functions/btowc.texi: Document the new module.
44562
44563 2008-12-17  Bruno Haible  <bruno@clisp.org>
44564
44565         New module 'mbsinit'.
44566         * lib/wchar.in.h (mbsinit): New declaration.
44567         * lib/mbsinit.c: New file.
44568         * m4/mbsinit.m4: New file.
44569         * modules/mbsinit: New file.
44570         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44571         HAVE_MBSINIT.
44572         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44573         HAVE_MBSINIT.
44574         * doc/posix-functions/mbsinit.texi: Document the new module.
44575
44576 2008-12-16  Bruno Haible  <bruno@clisp.org>
44577
44578         * lib/unistd.in.h: Add comment.
44579         * tests/test-environ.c: Don't include <stdlib.h>.
44580
44581 2008-12-16  Bruno Haible  <bruno@clisp.org>
44582
44583         * lib/parse-duration.h (parse_duration): Document return value
44584         convention.
44585         * lib/parse-duration.c: Include specification header first. Add
44586         comments.
44587         (_): Remove macro.
44588         (parse_year_month_day, parse_hour_minute_second): Move side effects
44589         outside of strchr call.
44590         (parse_non_iso8601): Move side effects outside of isspace call.
44591         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44592         call.
44593
44594 2008-12-16  Bruno Haible  <bruno@clisp.org>
44595
44596         * tests/test-parse-duration.sh: Produce no output when the test
44597         succeeds.
44598
44599 2008-12-16  Bruno Haible  <bruno@clisp.org>
44600
44601         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44602         expressions.
44603
44604 2008-12-15  Bruno Haible  <bruno@clisp.org>
44605
44606         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44607         * doc/glibc-functions/flistxattr.texi: Likewise.
44608         * doc/glibc-functions/fopencookie.texi: Likewise.
44609         * doc/glibc-functions/fremovexattr.texi: Likewise.
44610         * doc/glibc-functions/fsetxattr.texi: Likewise.
44611         * doc/glibc-functions/getxattr.texi: Likewise.
44612         * doc/glibc-functions/lgetxattr.texi: Likewise.
44613         * doc/glibc-functions/listxattr.texi: Likewise.
44614         * doc/glibc-functions/llistxattr.texi: Likewise.
44615         * doc/glibc-functions/lremovexattr.texi: Likewise.
44616         * doc/glibc-functions/lsetxattr.texi: Likewise.
44617         * doc/glibc-functions/removexattr.texi: Likewise.
44618         * doc/glibc-functions/setxattr.texi: Likewise.
44619         * doc/posix-functions/open_memstream.texi: Likewise.
44620
44621 2008-12-15  Eric Blake  <ebb9@byu.net>
44622
44623         Update doc for cygwin 1.7.
44624         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44625         functions.
44626         * doc/posix-functions/fchmodat.texi: Likewise.
44627         * doc/posix-functions/fchownat.texi: Likewise.
44628         * doc/posix-functions/fdopendir.texi: Likewise.
44629         * doc/posix-functions/fmemopen.texi: Likewise.
44630         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44631         * doc/posix-functions/fstatat.texi: Likewise.
44632         * doc/posix-functions/futimens.texi: Likewise.
44633         * doc/posix-functions/gai_strerror.texi: Likewise.
44634         * doc/posix-functions/getaddrinfo.texi: Likewise.
44635         * doc/posix-functions/getnameinfo.texi: Likewise.
44636         * doc/posix-functions/if_freenameindex.texi: Likewise.
44637         * doc/posix-functions/if_indextoname.texi: Likewise.
44638         * doc/posix-functions/if_nameindex.texi: Likewise.
44639         * doc/posix-functions/if_nametoindex.texi: Likewise.
44640         * doc/posix-functions/insque.texi: Likewise.
44641         * doc/posix-functions/linkat.texi: Likewise.
44642         * doc/posix-functions/llrint.texi: Likewise.
44643         * doc/posix-functions/llrintf.texi: Likewise.
44644         * doc/posix-functions/llrintl.texi: Likewise.
44645         * doc/posix-functions/lockf.texi: Likewise.
44646         * doc/posix-functions/lrintl.texi: Likewise.
44647         * doc/posix-functions/mkdirat.texi: Likewise.
44648         * doc/posix-functions/mkfifoat.texi: Likewise.
44649         * doc/posix-functions/mknodat.texi: Likewise.
44650         * doc/posix-functions/mq_close.texi: Likewise.
44651         * doc/posix-functions/mq_getattr.texi: Likewise.
44652         * doc/posix-functions/mq_notify.texi: Likewise.
44653         * doc/posix-functions/mq_open.texi: Likewise.
44654         * doc/posix-functions/mq_receive.texi: Likewise.
44655         * doc/posix-functions/mq_send.texi: Likewise.
44656         * doc/posix-functions/mq_setattr.texi: Likewise.
44657         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44658         * doc/posix-functions/mq_timedsend.texi: Likewise.
44659         * doc/posix-functions/mq_unlink.texi: Likewise.
44660         * doc/posix-functions/open_memstream.texi: Likewise.
44661         * doc/posix-functions/openat.texi: Likewise.
44662         * doc/posix-functions/posix_fadvise.texi: Likewise.
44663         * doc/posix-functions/posix_fallocate.texi: Likewise.
44664         * doc/posix-functions/posix_madvise.texi: Likewise.
44665         * doc/posix-functions/posix_memalign.texi: Likewise.
44666         * doc/posix-functions/posix_openpt.texi: Likewise.
44667         * doc/posix-functions/readlinkat.texi: Likewise.
44668         * doc/posix-functions/remque.texi: Likewise.
44669         * doc/posix-functions/renameat.texi: Likewise.
44670         * doc/posix-functions/rintl.texi: Likewise.
44671         * doc/posix-functions/sem_unlink.texi: Likewise.
44672         * doc/posix-functions/shm_open.texi: Likewise.
44673         * doc/posix-functions/shm_unlink.texi: Likewise.
44674         * doc/posix-functions/signgam.texi: Likewise.
44675         * doc/posix-functions/sigset.texi: Likewise.
44676         * doc/posix-functions/stpcpy.texi: Likewise.
44677         * doc/posix-functions/stpncpy.texi: Likewise.
44678         * doc/posix-functions/strerror.texi: Likewise.
44679         * doc/posix-functions/strtod.texi: Likewise.
44680         * doc/posix-functions/symlinkat.texi: Likewise.
44681         * doc/posix-functions/unlinkat.texi: Likewise.
44682         * doc/posix-functions/utimensat.texi: Likewise.
44683         * doc/glibc-functions/bindresvport.texi: Likewise.
44684         * doc/glibc-functions/dn_expand.texi: Likewise.
44685         * doc/glibc-functions/exp10.texi: Likewise.
44686         * doc/glibc-functions/exp10f.texi: Likewise.
44687         * doc/glibc-functions/fgetxattr.texi: Likewise.
44688         * doc/glibc-functions/flistxattr.texi: Likewise.
44689         * doc/glibc-functions/fopencookie.texi: Likewise.
44690         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44691         * doc/glibc-functions/fremovexattr.texi: Likewise.
44692         * doc/glibc-functions/fsetxattr.texi: Likewise.
44693         * doc/glibc-functions/getifaddrs.texi: Likewise.
44694         * doc/glibc-functions/getxattr.texi: Likewise.
44695         * doc/glibc-functions/lgetxattr.texi: Likewise.
44696         * doc/glibc-functions/listxattr.texi: Likewise.
44697         * doc/glibc-functions/llistxattr.texi: Likewise.
44698         * doc/glibc-functions/lremovexattr.texi: Likewise.
44699         * doc/glibc-functions/lsetxattr.texi: Likewise.
44700         * doc/glibc-functions/pow10.texi: Likewise.
44701         * doc/glibc-functions/pow10f.texi: Likewise.
44702         * doc/glibc-functions/rcmd_af.texi: Likewise.
44703         * doc/glibc-functions/removexattr.texi: Likewise.
44704         * doc/glibc-functions/res_init.texi: Likewise.
44705         * doc/glibc-functions/res_mkquery.texi: Likewise.
44706         * doc/glibc-functions/res_query.texi: Likewise.
44707         * doc/glibc-functions/res_querydomain.texi: Likewise.
44708         * doc/glibc-functions/res_send.texi: Likewise.
44709         * doc/glibc-functions/rresvport_af.texi: Likewise.
44710         * doc/glibc-functions/setxattr.texi: Likewise.
44711         * doc/glibc-functions/strcasestr.texi: Likewise.
44712
44713 2008-12-15  Bruno Haible  <bruno@clisp.org>
44714
44715         Fix compilation error on OSF/1 4.0.
44716         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44717         <sys/time.h>, simply delegate to the system header.
44718         Reported by Daniel Richard G. <oss@teragram.com>.
44719
44720 2008-12-15  Bruno Haible  <bruno@clisp.org>
44721
44722         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44723         * doc/posix-functions/fchmodat.texi: Likewise.
44724         * doc/posix-functions/fchownat.texi: Likewise.
44725         * doc/posix-functions/fdopendir.texi: Likewise.
44726         * doc/posix-functions/fstatat.texi: Likewise.
44727         * doc/posix-functions/mkdirat.texi: Likewise.
44728         * doc/posix-functions/unlinkat.texi: Likewise.
44729
44730 2008-12-14  Bruno Haible  <bruno@clisp.org>
44731
44732         Update doc for POSIX:2008.
44733         * doc/posix-functions/faccessat.texi: New file.
44734         * doc/posix-functions/fchmodat.texi: New file.
44735         * doc/posix-functions/fchownat.texi: New file.
44736         * doc/posix-functions/fdopendir.texi: New file.
44737         * doc/posix-functions/fstatat.texi: New file.
44738         * doc/posix-functions/futimens.texi: New file.
44739         * doc/posix-functions/linkat.texi: New file.
44740         * doc/posix-functions/mkdirat.texi: New file.
44741         * doc/posix-functions/mkfifoat.texi: New file.
44742         * doc/posix-functions/mknodat.texi: New file.
44743         * doc/posix-functions/open_wmemstream.texi: New file.
44744         * doc/posix-functions/openat.texi: New file.
44745         * doc/posix-functions/psiginfo.texi: New file.
44746         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44747         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44748         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44749         * doc/posix-functions/readlinkat.texi: New file.
44750         * doc/posix-functions/renameat.texi: New file.
44751         * doc/posix-functions/strerror_l.texi: New file.
44752         * doc/posix-functions/symlinkat.texi: New file.
44753         * doc/posix-functions/unlinkat.texi: New file.
44754         * doc/posix-functions/utimensat.texi: New file.
44755         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44756
44757 2008-12-14  Bruno Haible  <bruno@clisp.org>
44758
44759         Update doc for POSIX:2008.
44760         * doc/posix-functions/alphasort.texi: Renamed from
44761         doc/glibc-functions/alphasort.texi.
44762         * doc/posix-functions/dirfd.texi: Renamed from
44763         doc/glibc-functions/dirfd.texi.
44764         * doc/posix-functions/dprintf.texi: Renamed from
44765         doc/glibc-functions/dprintf.texi.
44766         * doc/posix-functions/duplocale.texi: Renamed from
44767         doc/glibc-functions/duplocale.texi.
44768         * doc/posix-functions/fexecve.texi: Renamed from
44769         doc/glibc-functions/fexecve.texi.
44770         * doc/posix-functions/fmemopen.texi: Renamed from
44771         doc/glibc-functions/fmemopen.texi.
44772         * doc/posix-functions/freelocale.texi: Renamed from
44773         doc/glibc-functions/freelocale.texi.
44774         * doc/posix-functions/getdate_err.texi: Renamed from
44775         doc/glibc-functions/getdate_err.texi.
44776         * doc/posix-functions/isalnum_l.texi: Renamed from
44777         doc/glibc-functions/isalnum_l.texi.
44778         * doc/posix-functions/isalpha_l.texi: Renamed from
44779         doc/glibc-functions/isalpha_l.texi.
44780         * doc/posix-functions/isblank_l.texi: Renamed from
44781         doc/glibc-functions/isblank_l.texi.
44782         * doc/posix-functions/iscntrl_l.texi: Renamed from
44783         doc/glibc-functions/iscntrl_l.texi.
44784         * doc/posix-functions/isdigit_l.texi: Renamed from
44785         doc/glibc-functions/isdigit_l.texi.
44786         * doc/posix-functions/isgraph_l.texi: Renamed from
44787         doc/glibc-functions/isgraph_l.texi.
44788         * doc/posix-functions/islower_l.texi: Renamed from
44789         doc/glibc-functions/islower_l.texi.
44790         * doc/posix-functions/isprint_l.texi: Renamed from
44791         doc/glibc-functions/isprint_l.texi.
44792         * doc/posix-functions/ispunct_l.texi: Renamed from
44793         doc/glibc-functions/ispunct_l.texi.
44794         * doc/posix-functions/isspace_l.texi: Renamed from
44795         doc/glibc-functions/isspace_l.texi.
44796         * doc/posix-functions/isupper_l.texi: Renamed from
44797         doc/glibc-functions/isupper_l.texi.
44798         * doc/posix-functions/iswalnum_l.texi: Renamed from
44799         doc/glibc-functions/iswalnum_l.texi.
44800         * doc/posix-functions/iswalpha_l.texi: Renamed from
44801         doc/glibc-functions/iswalpha_l.texi.
44802         * doc/posix-functions/iswblank_l.texi: Renamed from
44803         doc/glibc-functions/iswblank_l.texi.
44804         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44805         doc/glibc-functions/iswcntrl_l.texi.
44806         * doc/posix-functions/iswctype_l.texi: Renamed from
44807         doc/glibc-functions/iswctype_l.texi.
44808         * doc/posix-functions/iswdigit_l.texi: Renamed from
44809         doc/glibc-functions/iswdigit_l.texi.
44810         * doc/posix-functions/iswgraph_l.texi: Renamed from
44811         doc/glibc-functions/iswgraph_l.texi.
44812         * doc/posix-functions/iswlower_l.texi: Renamed from
44813         doc/glibc-functions/iswlower_l.texi.
44814         * doc/posix-functions/iswprint_l.texi: Renamed from
44815         doc/glibc-functions/iswprint_l.texi.
44816         * doc/posix-functions/iswpunct_l.texi: Renamed from
44817         doc/glibc-functions/iswpunct_l.texi.
44818         * doc/posix-functions/iswspace_l.texi: Renamed from
44819         doc/glibc-functions/iswspace_l.texi.
44820         * doc/posix-functions/iswupper_l.texi: Renamed from
44821         doc/glibc-functions/iswupper_l.texi.
44822         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44823         doc/glibc-functions/iswxdigit_l.texi.
44824         * doc/posix-functions/isxdigit_l.texi: Renamed from
44825         doc/glibc-functions/isxdigit_l.texi.
44826         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44827         doc/glibc-functions/mbsnrtowcs.texi.
44828         * doc/posix-functions/mkdtemp.texi: Renamed from
44829         doc/glibc-functions/mkdtemp.texi.
44830         * doc/posix-functions/newlocale.texi: Renamed from
44831         doc/glibc-functions/newlocale.texi.
44832         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44833         doc/glibc-functions/nl_langinfo_l.texi.
44834         * doc/posix-functions/open_memstream.texi: Renamed from
44835         doc/glibc-functions/open_memstream.texi.
44836         * doc/posix-functions/opterr.texi: Renamed from
44837         doc/glibc-functions/opterr.texi.
44838         * doc/posix-functions/optind.texi: Renamed from
44839         doc/glibc-functions/optind.texi.
44840         * doc/posix-functions/optopt.texi: Renamed from
44841         doc/glibc-functions/optopt.texi.
44842         * doc/posix-functions/psignal.texi: Renamed from
44843         doc/glibc-functions/psignal.texi.
44844         * doc/posix-functions/scandir.texi: Renamed from
44845         doc/glibc-functions/scandir.texi.
44846         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44847         doc/glibc-functions/sched_get_priority_min.texi.
44848         * doc/posix-functions/signgam.texi: Renamed from
44849         doc/glibc-functions/signgam.texi.
44850         * doc/posix-functions/stpcpy.texi: Renamed from
44851         doc/glibc-functions/stpcpy.texi.
44852         * doc/posix-functions/stpncpy.texi: Renamed from
44853         doc/glibc-functions/stpncpy.texi.
44854         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44855         doc/glibc-functions/strcasecmp_l.texi.
44856         * doc/posix-functions/strcoll_l.texi: Renamed from
44857         doc/glibc-functions/strcoll_l.texi.
44858         * doc/posix-functions/strfmon_l.texi: Renamed from
44859         doc/glibc-functions/strfmon_l.texi.
44860         * doc/posix-functions/strftime_l.texi: Renamed from
44861         doc/glibc-functions/strftime_l.texi.
44862         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44863         doc/glibc-functions/strncasecmp_l.texi.
44864         * doc/posix-functions/strndup.texi: Renamed from
44865         doc/glibc-functions/strndup.texi.
44866         * doc/posix-functions/strnlen.texi: Renamed from
44867         doc/glibc-functions/strnlen.texi.
44868         * doc/posix-functions/strsignal.texi: Renamed from
44869         doc/glibc-functions/strsignal.texi.
44870         * doc/posix-functions/strxfrm_l.texi: Renamed from
44871         doc/glibc-functions/strxfrm_l.texi.
44872         * doc/posix-functions/timer_gettime.texi: Renamed from
44873         doc/glibc-functions/timer_gettime.texi.
44874         * doc/posix-functions/tolower_l.texi: Renamed from
44875         doc/glibc-functions/tolower_l.texi.
44876         * doc/posix-functions/toupper_l.texi: Renamed from
44877         doc/glibc-functions/toupper_l.texi.
44878         * doc/posix-functions/towctrans_l.texi: Renamed from
44879         doc/glibc-functions/towctrans_l.texi.
44880         * doc/posix-functions/towlower_l.texi: Renamed from
44881         doc/glibc-functions/towlower_l.texi.
44882         * doc/posix-functions/towupper_l.texi: Renamed from
44883         doc/glibc-functions/towupper_l.texi.
44884         * doc/posix-functions/uselocale.texi: Renamed from
44885         doc/glibc-functions/uselocale.texi.
44886         * doc/posix-functions/vdprintf.texi: Renamed from
44887         doc/glibc-functions/vdprintf.texi.
44888         * doc/posix-functions/wcpcpy.texi:
44889         Renamed from doc/glibc-functions/wcpcpy.texi.
44890         * doc/posix-functions/wcpncpy.texi: Renamed from
44891         doc/glibc-functions/wcpncpy.texi.
44892         * doc/posix-functions/wcscasecmp.texi: Renamed from
44893         doc/glibc-functions/wcscasecmp.texi.
44894         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44895         doc/glibc-functions/wcscasecmp_l.texi.
44896         * doc/posix-functions/wcscoll_l.texi: Renamed from
44897         doc/glibc-functions/wcscoll_l.texi.
44898         * doc/posix-functions/wcsdup.texi: Renamed from
44899         doc/glibc-functions/wcsdup.texi.
44900         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44901         doc/glibc-functions/wcsncasecmp.texi.
44902         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44903         doc/glibc-functions/wcsncasecmp_l.texi.
44904         * doc/posix-functions/wcsnlen.texi: Renamed from
44905         doc/glibc-functions/wcsnlen.texi.
44906         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44907         doc/glibc-functions/wcsnrtombs.texi.
44908         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44909         doc/glibc-functions/wcsxfrm_l.texi.
44910         * doc/posix-functions/wctrans_l.texi: Renamed from
44911         doc/glibc-functions/wctrans_l.texi.
44912         * doc/posix-functions/wctype_l.texi: Renamed from
44913         doc/glibc-functions/wctype_l.texi.
44914         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44915         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44916         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44917         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44918         these subsections.
44919         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44920         Remove sections.
44921
44922 2008-12-14  Bruno Haible  <bruno@clisp.org>
44923
44924         Update doc for POSIX:2008.
44925         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44926
44927 2008-12-14  Bruno Haible  <bruno@clisp.org>
44928
44929         Update doc for POSIX:2008.
44930         * doc/pastposix-functions/bcmp.texi: Renamed from
44931         doc/posix-functions/bcmp.texi.
44932         * doc/pastposix-functions/bcopy.texi: Renamed from
44933         doc/posix-functions/bcopy.texi.
44934         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44935         doc/posix-functions/bsd_signal.texi.
44936         * doc/pastposix-functions/bzero.texi: Renamed from
44937         doc/posix-functions/bzero.texi.
44938         * doc/pastposix-functions/ecvt.texi: Renamed from
44939         doc/posix-functions/ecvt.texi.
44940         * doc/pastposix-functions/fcvt.texi: Renamed from
44941         doc/posix-functions/fcvt.texi.
44942         * doc/pastposix-functions/ftime.texi: Renamed from
44943         doc/posix-functions/ftime.texi.
44944         * doc/pastposix-functions/gcvt.texi: Renamed from
44945         doc/posix-functions/gcvt.texi.
44946         * doc/pastposix-functions/getcontext.texi: Renamed from
44947         doc/posix-functions/getcontext.texi.
44948         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44949         doc/posix-functions/gethostbyaddr.texi.
44950         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44951         doc/posix-functions/gethostbyname.texi.
44952         * doc/pastposix-functions/getwd.texi: Renamed from
44953         doc/posix-functions/getwd.texi.
44954         * doc/pastposix-functions/h_errno.texi: Renamed from
44955         doc/posix-functions/h_errno.texi.
44956         * doc/pastposix-functions/index.texi: Renamed from
44957         doc/posix-functions/index.texi.
44958         * doc/pastposix-functions/makecontext.texi: Renamed from
44959         doc/posix-functions/makecontext.texi.
44960         * doc/pastposix-functions/mktemp.texi: Renamed from
44961         doc/posix-functions/mktemp.texi.
44962         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44963         doc/posix-functions/pthread_attr_getstackaddr.texi.
44964         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44965         doc/posix-functions/pthread_attr_setstackaddr.texi.
44966         * doc/pastposix-functions/rindex.texi: Renamed from
44967         doc/posix-functions/rindex.texi.
44968         * doc/pastposix-functions/scalb.texi: Renamed from
44969         doc/posix-functions/scalb.texi.
44970         * doc/pastposix-functions/setcontext.texi: Renamed from
44971         doc/posix-functions/setcontext.texi.
44972         * doc/pastposix-functions/swapcontext.texi: Renamed from
44973         doc/posix-functions/swapcontext.texi.
44974         * doc/pastposix-functions/ualarm.texi: Renamed from
44975         doc/posix-functions/ualarm.texi.
44976         * doc/pastposix-functions/usleep.texi: Renamed from
44977         doc/posix-functions/usleep.texi.
44978         * doc/pastposix-functions/vfork.texi: Renamed from
44979         doc/posix-functions/vfork.texi.
44980         * doc/pastposix-functions/wcswcs.texi: Renamed from
44981         doc/posix-functions/wcswcs.texi.
44982         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44983         (Function Substitutes): Update.
44984
44985 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44986
44987         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44988         m4/strerror.m4.
44989
44990 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44991             Bruno Haible  <bruno@clisp.org>
44992
44993         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44994
44995 2008-12-13  Bruno Haible  <bruno@clisp.org>
44996
44997         * modules/strtoull (Depends-on): Remove unistd.
44998
44999 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45000
45001         * modules/strtoull (Depends-on): Add stdlib.
45002
45003 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45004
45005         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45006
45007 2008-12-10  Jim Meyering  <meyering@redhat.com>
45008
45009         gl_ASSERT: don't say assertions are disabled when they're not
45010         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45011         "checking whether to enable assertions... no", when they are in
45012         fact enabled.  This is solely a bug in the output of configure.
45013         In spite of saying "no", NDEBUG was not defined in that case.
45014         Also, as noted by Eric Blake, leave assertions enabled upon
45015         --enable-assert=INVALID.
45016
45017 2008-12-10  Bruno Haible  <bruno@clisp.org>
45018
45019         Change MODULES.html to refer to POSIX:2008 where possible.
45020         * MODULES.html.sh (POSIX2008_URL): New variable.
45021         (posix_headers): Remove sys/timeb, ucontext.
45022         (posix2001_headers): New variable.
45023         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45024         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45025         index, makecontext, mktemp, pthread_attr_getstackaddr,
45026         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45027         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45028         (posix2001_functions): New variable.
45029         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45030         otherwise.
45031
45032 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45033
45034         add missing include to parse-duration.c
45035         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45036         * modules/parse-duration (Depends-on): Add xalloc.
45037
45038         fix sed script reading maint.mk
45039         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45040         (syntax-check-rules): Use it.
45041
45042 2008-12-09  Bruno Haible  <bruno@clisp.org>
45043
45044         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45045         MacOS X 10.4/PowerPC.
45046         Reported by Simon Josefsson.
45047
45048 2008-12-08  Jim Meyering  <meyering@redhat.com>
45049
45050         work around mingw's lack of some S_IF definitions
45051         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45052         Reported by Simon Josefsson.
45053
45054 2008-12-08  Bruno Haible  <bruno@clisp.org>
45055
45056         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45057         applied to variables. Needed on MacOS X 10.4/PowerPC.
45058         Reported by Simon Josefsson.
45059
45060 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45061         and Eric Blake  <ebb9@byu.net>
45062
45063         assert: honor --enable-assert
45064         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45065         order to honor --enable-assert, rather than treating it as a
45066         synonym for --disable-assert.
45067
45068 2008-12-08  Jim Meyering  <meyering@redhat.com>
45069
45070         * lib/posixtm.c: Remove now-useless declaration of mktime.
45071
45072         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45073
45074 2008-12-07  Bruno Haible  <bruno@clisp.org>
45075
45076         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45077         test_once): Mark functions as static.
45078         * tests/test-tls.c (test_tls): Likewise.
45079
45080 2008-12-07  Bruno Haible  <bruno@clisp.org>
45081
45082         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45083         iconv_register_autodetect.
45084
45085 2008-12-07  Jim Meyering  <meyering@redhat.com>
45086
45087         posixtm.c: avoid a warning
45088         * lib/posixtm.c (posixtime): Don't initialize tm0.
45089         It's no longer needed to placate gcc4's -Wuninitialized,
45090         and the attempt to placate would elicit a new warning.
45091
45092         unicodeio.c: mark unused parameters
45093         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45094         (fallback_failure_callback): Likewise.
45095
45096 2008-12-07  Bruno Haible  <bruno@clisp.org>
45097
45098         * gnulib-tool (func_create_testdir): When building the tests
45099         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45100         Reported by Simon Josefsson.
45101
45102 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45103
45104         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45105
45106 2008-12-06  Bruno Haible  <bruno@clisp.org>
45107
45108         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45109         Suggested by Eric Blake.
45110
45111 2008-12-06  Bruno Haible  <bruno@clisp.org>
45112
45113         Fix a c-stack test failure on MacOS X.
45114         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45115         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45116         handler for SIGBUS as well.
45117         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45118         install a signal handler for SIGBUS as well.
45119         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45120
45121 2008-12-06  Bruno Haible  <bruno@clisp.org>
45122
45123         Advocacy documentation.
45124         * doc/gnulib-intro.texi (Benefits): New section.
45125         * doc/gnulib.texi: Update.
45126
45127 2008-12-06  Bruno Haible  <bruno@clisp.org>
45128
45129         Document the 'manywarnings' module.
45130         * doc/manywarnings.texi: New file.
45131         * doc/gnulib.texi: Include it.
45132
45133 2008-12-05  Eric Blake  <ebb9@byu.net>
45134
45135         tests: silence some gcc warnings
45136         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45137         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45138         type mismatches.
45139
45140 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45141             Bruno Haible  <bruno@clisp.org>
45142
45143         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45144
45145 2008-11-29  Jim Meyering  <meyering@redhat.com>
45146
45147         unicodeio.c: mark unused parameters
45148         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45149         (fallback_failure_callback): Likewise.
45150
45151         fts: fix a thinko
45152         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45153         (set_stat_type): Return S_IF*-valued "type" directly.
45154         Prompted by James Youngman's spotting a related bug.
45155         Confirmed by further testing through find.
45156
45157         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45158         * lib/fts.c (D_TYPE): Define.
45159         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45160         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45161         (s_ifmt_shift_bits): New function.
45162         (set_stat_type): New function.
45163         (fts_build): When not calling fts_stat, call set_stat_type
45164         to propagate dirent.d_type info to fts_read caller.
45165         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45166         fts_statp->st_mode type information may be valid.
45167
45168 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45169
45170         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45171         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45172         <sds@gnu.org>.
45173
45174 2008-11-20  Bruno Haible  <bruno@clisp.org>
45175
45176         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45177         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45178         INCLUDE_NEXT.
45179         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45180         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45181         * modules/math (Makefile.am): Substitute
45182         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45183         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45184
45185 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45186             Bruno Haible  <bruno@clisp.org>
45187
45188         * lib/stdint.in.h: Define all type macros so that their expansion is
45189         a single typedef'ed token. Fixes a compilation failure in Boost which
45190         does "using ::int8_t;".
45191
45192 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45193
45194         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45195         gl_MANYWARN_ALL_GCC.
45196         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45197         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45198         * modules/manywarnings: New file.
45199         * MODULES.html.sh: Mention manywarnings module.
45200
45201 2008-11-18  Bruno Haible  <bruno@clisp.org>
45202
45203         * doc/gnulib-tool.texi (Unit tests): New section.
45204
45205 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45206
45207         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45208         paths like 'lib/po/foo.po'.
45209
45210 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45211
45212         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45213         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45214
45215 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45216
45217         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45218         parameter works.
45219
45220 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45221
45222         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45223
45224 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45225
45226         * modules/parse-duration-tests: New file.
45227         * tests/test-parse-duration.sh: New file.
45228         * tests/test-parse-duration.c: New file.
45229
45230         New module 'parse-duration'.
45231         * lib/parse-duration.h: New file.
45232         * lib/parse-duration.c: New file.
45233         * modules/parse-duration: New file.
45234
45235 2008-11-17  Bruno Haible  <bruno@clisp.org>
45236
45237         * tests/test-select-out.sh: Comment out the first pipe test.
45238         Reported by Simon Josefsson.
45239
45240 2008-11-17  Bruno Haible  <bruno@clisp.org>
45241
45242         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45243         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45244         gl_HOSTENT.
45245
45246 2008-11-17  Bruno Haible  <bruno@clisp.org>
45247
45248         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45249         -lnetwork and -lnet. Needed for Haiku and BeOS.
45250
45251 2008-11-16  Bruno Haible  <bruno@clisp.org>
45252
45253         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45254
45255 2008-11-16  Bruno Haible  <bruno@clisp.org>
45256
45257         Avoid test failure on Haiku.
45258         * tests/test-fsync.c: Include <errno.h>.
45259         (main): Don't require that fsync (0) fails.
45260
45261 2008-11-15  Bruno Haible  <bruno@clisp.org>
45262
45263         New module 'hostent'.
45264         * modules/hostent: New file.
45265         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45266
45267 2008-11-15  Bruno Haible  <bruno@clisp.org>
45268
45269         New module 'servent'.
45270         * modules/servent: New file.
45271         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45272
45273 2008-11-15  Bruno Haible  <bruno@clisp.org>
45274
45275         Avoid generating same test program with two different rules.
45276         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45277         test-frexp to test-frexp-nolibm.
45278         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45279         test-frexpl to test-frexpl-nolibm.
45280
45281 2008-11-15  Bruno Haible  <bruno@clisp.org>
45282
45283         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45284         $(FREXPL_LIBM).
45285
45286 2008-11-15  Bruno Haible  <bruno@clisp.org>
45287
45288         * lib/netdb.in.h: Activate the definitions also when the system's
45289         <netdb.h> has 'struct addrinfo'.
45290         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45291         EAI_OVERFLOW or AI_NUMERICSERV.
45292         * doc/posix-headers/netdb.texi: Document the problem.
45293
45294 2008-11-15  Bruno Haible  <bruno@clisp.org>
45295
45296         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45297
45298         Make the 'sched' module work on platforms where <sched.h> exists but
45299         is incomplete (such as Haiku).
45300         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45301         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45302         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45303         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45304         HAVE_STRUCT_SCHED_PARAM.
45305         * modules/sched (Depends-on): Add include_next.
45306         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45307         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45308         * doc/posix-headers/sched.texi: Document the issue.
45309
45310 2008-11-13  Jim Meyering  <meyering@redhat.com>
45311
45312         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45313         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45314         test would fail due to the difference in the Report bugs to ...
45315         line.  The expected address is empty, "<>", while the actual
45316         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45317
45318 2008-11-12  Bruno Haible  <bruno@clisp.org>
45319
45320         lstat: don't compile lstat.c on systems lacking lstat
45321         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45322         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45323         Reported by Daniel P. Berrange via Jim Meyering.
45324
45325 2008-11-12  Jim Meyering  <meyering@redhat.com>
45326
45327         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45328
45329 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45330
45331         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45332         instead.
45333
45334 2008-11-12  Bruno Haible  <bruno@clisp.org>
45335
45336         * lib/unicodeio.c: Include unistr.h.
45337         (utf8_wctomb): Remove function.
45338         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45339
45340 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45341
45342         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45343         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45344         <bruno@clisp.org>.
45345         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45346
45347 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45348
45349         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45350         * doc/gnulib.texi: Add section for warnings.
45351
45352 2008-11-11  Bruno Haible  <bruno@clisp.org>
45353
45354         * lib/sockets.h: Add a comment.
45355
45356 2008-11-11  Karl Berry  <karl@gnu.org>
45357
45358         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45359
45360 2008-11-11  Eric Blake  <ebb9@byu.net>
45361
45362         fdl.texi: avoid git symlinks
45363         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45364
45365 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45366
45367         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45368
45369 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45370
45371         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45372         (gl_WARN_ADD): Substitute $2 if literal.
45373
45374 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45375
45376         * m4/warning.m4: Remove.
45377
45378 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45379
45380         * m4/warnings.m4: Almost complete rewrite. :-)
45381
45382 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45383
45384         * modules/warnings: New module.
45385         * m4/warnings.m4: New file.
45386         * MODULES.html.sh: Mention warnings module.
45387         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45388         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45389
45390 2008-11-10  Eric Blake  <ebb9@byu.net>
45391
45392         fdl.texi: make a symlink to the latest version
45393         * doc/standards.texi: Revert today's earlier change.
45394         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45395         * doc/fdl.texi: ...and replace this with a symlink to the newer
45396         fdl-1.3.texi.
45397
45398 2008-11-10  Bruno Haible  <bruno@clisp.org>
45399
45400         * tests/test-select-fd.c (main): Accept the result file name as fourth
45401         argument.
45402         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45403         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45404
45405 2008-11-10  Bruno Haible  <bruno@clisp.org>
45406
45407         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45408         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45409         as autoconf-substituted macros.
45410         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45411         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45412         gl_NETDB_H_DEFAULTS. Set these variables.
45413         * modules/netdb (Makefile.am): Substitute these variables.
45414
45415 2008-11-10  Eric Blake  <ebb9@byu.net>
45416
45417         standards.texi: include correct file for FDL 1.3
45418         * doc/standards.texi (GNU Free Documentation License): Change
45419         include file to pull in FDL 1.3, not 1.2.
45420
45421         fdl.texi: revert accidental change to license
45422         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45423
45424 2008-11-10  Bruno Haible  <bruno@clisp.org>
45425
45426         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45427         cross-compiling guesses also when the native compile gives no result.
45428
45429 2008-11-10  Bruno Haible  <bruno@clisp.org>
45430
45431         * lib/spawni.c (__spawni): Force variable into the stack.
45432
45433 2008-11-10  Bruno Haible  <bruno@clisp.org>
45434
45435         Add support for Haiku.
45436         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45437         glibc and BeOS, but also on Haiku.
45438         * lib/fpurge.c (fpurge): Likewise.
45439         * lib/freadable.c (freadable): Likewise.
45440         * lib/freadahead.c (freadahead): Likewise.
45441         * lib/freading.c (freading): Likewise.
45442         * lib/freadptr.c (freadptr): Likewise.
45443         * lib/freadseek.c (freadptrinc): Likewise.
45444         * lib/fseeko.c (rpl_fseeko): Likewise.
45445         * lib/fseterr.c (fseterr): Likewise.
45446         * lib/fwritable.c (fwritable): Likewise.
45447         * lib/fwriting.c (fwriting): Likewise.
45448         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45449
45450 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45451
45452         * lib/config.charset: Treat Haiku like BeOS.
45453
45454 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45455
45456         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45457         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45458
45459 2008-11-08  Bruno Haible  <bruno@clisp.org>
45460
45461         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45462         AC_CACHE_CHECK.
45463
45464 2008-11-08  Bruno Haible  <bruno@clisp.org>
45465
45466         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45467
45468 2008-11-08  Bruno Haible  <bruno@clisp.org>
45469
45470         * tests/test-select-fd.c: New file.
45471         * tests/test-select-in.sh: New file.
45472         * tests/test-select-out.sh: New file.
45473         * tests/test-select-stdin.c: New file.
45474         * modules/select-tests (Files): Add the new files.
45475         (Depends-on): Add gettimeofday.
45476         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45477         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45478         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45479
45480 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45481             Bruno Haible  <bruno@clisp.org>
45482
45483         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45484
45485 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45486
45487         * build-aux/pmccabe2html: Added support for C++ source files.
45488
45489 2008-11-05  Ben Pfaff  <blp@gnu.org>
45490
45491         Fix lib/close.c build on Windows.
45492         * modules/close (Files): Add lib/w32sock.h.
45493
45494 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45495
45496         Accept Bison's NEWS format.
45497         * build-aux/announce-gen (print_news_deltas): Tweak
45498         $re_prefix.
45499
45500 2008-11-04  Bruno Haible  <bruno@clisp.org>
45501
45502         * modules/random_r (Maintainer): Add glibc.
45503
45504 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45505
45506         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45507         by karl@freefriends.org (Karl Berry).
45508         * doc/alloca.texi: Likewise.
45509         * doc/c-ctype.texi: Likewise.
45510         * doc/c-strcase.texi: Likewise.
45511         * doc/c-strcaseeq.texi: Likewise.
45512         * doc/c-strcasestr.texi: Likewise.
45513         * doc/c-strstr.texi: Likewise.
45514         * doc/c-strtod.texi: Likewise.
45515         * doc/c-strtold.texi: Likewise.
45516         * doc/ctime.texi: Likewise.
45517         * doc/error.texi: Likewise.
45518         * doc/fdl.texi: Likewise.
45519         * doc/gcd.texi: Likewise.
45520         * doc/getdate.texi: Likewise.
45521         * doc/gnulib-intro.texi: Likewise.
45522         * doc/gnulib-tool.texi: Likewise.
45523         * doc/gnulib.texi: Likewise.
45524         * doc/inet_ntoa.texi: Likewise.
45525         * doc/maintain.texi: Likewise.
45526         * doc/make-stds.texi: Likewise.
45527         * doc/quote.texi: Likewise.
45528         * doc/regexprops-generic.texi: Likewise.
45529         * doc/standards.texi: Likewise.
45530         * doc/verify.texi: Likewise.
45531         * doc/visibility.texi: Likewise.
45532         * doc/gnulib.texi (GNU Free Documentation License): Include
45533         fdl-1.3.texi instead of fdl.texi.
45534
45535 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45536
45537         * doc/fdl-1.3.texi: New file, from
45538         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45539         * modules/fdl-1.3: Add.
45540         * MODULES.html.sh: Add fdl-1.3.
45541
45542 2008-11-03  Bruno Haible  <bruno@clisp.org>
45543
45544         Make determination of absolute name of header file work with AIX xlc.
45545         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45546         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45547         preprocessing.
45548         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45549         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45550
45551 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45552
45553         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45554         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45555         <ludo@gnu.org>.
45556
45557 2008-11-02  Bruno Haible  <bruno@clisp.org>
45558
45559         Mark 'strpbrk' obsolete.
45560         * modules/strpbrk (Status, Notice): New sections.
45561         * modules/strtok_r (Depends-on): Add strpbrk.
45562
45563 2008-11-02  Bruno Haible  <bruno@clisp.org>
45564
45565         Mark 'strdup' obsolete.
45566         * modules/strdup (Status, Notice): New sections.
45567         * modules/findprog (Depends-on): Add strdup.
45568         * modules/getaddrinfo (Depends-on): Likewise.
45569         * modules/localename (Depends-on): Likewise.
45570         * modules/relocatable-lib (Depends-on): Likewise.
45571         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45572         * modules/relocatable-prog (Depends-on): Likewise.
45573         * modules/trim (Depends-on): Likewise.
45574         * modules/unictype/gen-ctype (Depends-on): Likewise.
45575         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45576
45577 2008-11-02  Bruno Haible  <bruno@clisp.org>
45578
45579         Mark 'strcspn' obsolete.
45580         * modules/strcspn (Status, Notice): New sections.
45581
45582 2008-11-02  Bruno Haible  <bruno@clisp.org>
45583
45584         Mark 'rmdir' obsolete.
45585         * modules/rmdir (Status, Notice): New sections.
45586         * modules/clean-temp (Depends-on): Add rmdir.
45587         * modules/openat (Depends-on): Likewise.
45588
45589 2008-11-02  Bruno Haible  <bruno@clisp.org>
45590
45591         Mark 'raise' obsolete.
45592         * modules/raise (Status, Notice): New sections.
45593         (Include): Specify <signal.h>.
45594         * modules/stdio (Depends-on): Add raise.
45595         * modules/write (Depends-on): Likewise.
45596
45597 2008-11-02  Bruno Haible  <bruno@clisp.org>
45598
45599         Mark 'memset' obsolete.
45600         * modules/memset (Status, Notice): New sections.
45601
45602 2008-11-02  Bruno Haible  <bruno@clisp.org>
45603
45604         Mark 'memmove' obsolete.
45605         * modules/memmove (Status, Notice): New sections.
45606         * modules/argp (Depends-on): Add memmove.
45607         * modules/argz (Depends-on): Likewise.
45608         * modules/canonicalize (Depends-on): Likewise.
45609         * modules/canonicalize-lgpl (Depends-on): Likewise.
45610         * modules/fts (Depends-on): Likewise.
45611         * modules/getcwd (Depends-on): Likewise.
45612         * modules/human (Depends-on): Likewise.
45613         * modules/regex (Depends-on): Likewise.
45614         * modules/striconveh (Depends-on): Likewise.
45615         * modules/trim (Depends-on): Likewise.
45616         * modules/unistr/u8-move (Depends-on): Likewise.
45617         * modules/unistr/u16-move (Depends-on): Likewise.
45618         * modules/unistr/u32-move (Depends-on): Likewise.
45619
45620 2008-11-02  Bruno Haible  <bruno@clisp.org>
45621
45622         Mark 'memcpy' obsolete.
45623         * modules/memcpy (Status, Notice): New sections.
45624
45625 2008-11-02  Bruno Haible  <bruno@clisp.org>
45626
45627         Mark 'memcmp' obsolete.
45628         * modules/memcmp (Status, Notice): New sections.
45629         * modules/argmatch (Depends-on): Add memchr.
45630         * modules/backupfile (Depends-on): Likewise.
45631         * modules/c-strcasestr (Depends-on): Likewise.
45632         * modules/crypto/des (Depends-on): Likewise.
45633         * modules/csharpcomp (Depends-on): Likewise.
45634         * modules/fnmatch (Depends-on): Likewise.
45635         * modules/git-merge-changelog (Depends-on): Likewise.
45636         * modules/isnand (Depends-on): Likewise.
45637         * modules/isnand-nolibm (Depends-on): Likewise.
45638         * modules/isnanf (Depends-on): Likewise.
45639         * modules/isnanf-nolibm (Depends-on): Likewise.
45640         * modules/isnanl (Depends-on): Likewise.
45641         * modules/isnanl-nolibm (Depends-on): Likewise.
45642         * modules/mbchar (Depends-on): Likewise.
45643         * modules/memcoll (Depends-on): Likewise.
45644         * modules/quotearg (Depends-on): Likewise.
45645         * modules/regex (Depends-on): Likewise.
45646         * modules/relocatable-prog (Depends-on): Likewise.
45647         * modules/same (Depends-on): Likewise.
45648         * modules/signbit (Depends-on): Likewise.
45649         * modules/strcasestr-simple (Depends-on): Likewise.
45650         * modules/unictype/gen-ctype (Depends-on): Likewise.
45651         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45652         * modules/uniname/uniname (Depends-on): Likewise.
45653         * modules/unistr/u8-cmp (Depends-on): Likewise.
45654
45655 2008-11-02  Bruno Haible  <bruno@clisp.org>
45656
45657         Mark 'memchr' obsolete.
45658         * modules/memchr (Status, Notice): New sections.
45659         * modules/argp (Depends-on): Add memchr.
45660         * modules/base64 (Depends-on): Likewise.
45661         * modules/c-strcasestr (Depends-on): Likewise.
45662         * modules/chdir-long (Depends-on): Likewise.
45663         * modules/fnmatch (Depends-on): Likewise.
45664         * modules/getsubopt (Depends-on): Likewise.
45665         * modules/git-merge-changelog (Depends-on): Likewise.
45666         * modules/glob (Depends-on): Likewise.
45667         * modules/strcasestr-simple (Depends-on): Likewise.
45668         * modules/strnlen (Depends-on): Likewise.
45669
45670 2008-11-02  Bruno Haible  <bruno@clisp.org>
45671
45672         Mark 'atexit' obsolete.
45673         * modules/atexit (Status, Notice): New sections.
45674         * modules/chdir-long (Depends-on): Add atexit.
45675         * modules/wait-process (Depends-on): Likewise.
45676
45677 2008-11-02  Bruno Haible  <bruno@clisp.org>
45678
45679         * gnulib-tool: New option --with-obsolete.
45680         (func_usage): Document it.
45681         (func_modules_transitive_closure): Drop obsolete dependencies if
45682         incobsolete is not true.
45683         (func_import): Read and save the incobsolete variable to the cache.
45684
45685 2008-11-02  Bruno Haible  <bruno@clisp.org>
45686
45687         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45688         * gnulib-tool: New option --extract-status.
45689         (func_usage): Document it.
45690         (sed_extract_prog): Recognize it.
45691         (func_get_status): New function.
45692
45693 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45694
45695         * modules/sockets (License): Change from LGPL to LGPLv2+.
45696
45697 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45698
45699         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45700
45701 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45702
45703         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45704         Mention times and sys_times.
45705         * modules/sys_times, modules/sys_times-tests: New modules.
45706         * modules/times, modules/times-tests: Likewise
45707         * m4/sys_times_h.m4: New file.
45708         * lib/sys_times.in.h: Likewise
45709         * lib/times.c: Likewise.
45710         * tests/test-sys_times.c: Likewise.
45711         * tests/test-times.c: Likewise.
45712         * doc/posix-headers/sys_times.texi: Update.
45713         * doc/posix-functions/times.texi: Update.
45714
45715 2008-10-28  Jim Meyering  <meyering@redhat.com>
45716
45717         * modules/tempname (Depends-on): Add lstat.
45718
45719         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45720
45721 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45722
45723         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45724         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45725         using idiom used elsewhere in gnulib.
45726
45727 2008-10-27  Jim Meyering  <meyering@redhat.com>
45728
45729         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45730
45731 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45732
45733         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45734         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45735         programs.
45736         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45737
45738 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45739
45740         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45741
45742 2008-10-27  Bruno Haible  <bruno@clisp.org>
45743
45744         * tests/test-lstat.c: Include <stdio.h>.
45745
45746 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45747
45748         * modules/lstat-tests: New module.
45749         * tests/test-lstat.c: New file.
45750
45751 2008-10-26  Jim Meyering  <meyering@redhat.com>
45752
45753         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45754
45755 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45756             Bruno Haible  <bruno@clisp.org>
45757
45758         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45759         * modules/configmake (Include): Add a note that the include must come
45760         after all system headers.
45761         * lib/javaversion.c: Include configmake.h after all other includes.
45762
45763 2008-10-26  Bruno Haible  <bruno@clisp.org>
45764
45765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45766         HAVE_STRUCT_RANDOM_DATA to 1.
45767         (gl_STDLIB_H): Simplify.
45768
45769 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45770
45771         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45772         substitute HAVE_STRUCT_RANDOM_DATA.
45773         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45774         random_data.
45775         * modules/stdlib (Makefile.am): Substitute
45776         HAVE_STRUCT_RANDOM_DATA.
45777
45778 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45779
45780         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45781         * doc/gnulib-intro.texi (Copyright): Likewise.
45782
45783 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45784
45785         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45786         findings.
45787
45788 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45789             Bruno Haible  <bruno@clisp.org>
45790
45791         * lib/unistd.in.h: Include <winsock2.h>.
45792         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45793         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45794         Provide dummy declarations.
45795         (gethostname): Override.
45796         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45797         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45798         gl_PREREQ_SYS_H_WINSOCK2.
45799         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45800         * doc/posix-functions/gethostname.texi: More details.
45801
45802 2008-10-25  Bruno Haible  <bruno@clisp.org>
45803
45804         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45805         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45806         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45807
45808         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45809         here ...
45810         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45811         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45812         gl_UNISTD_H_DEFAULTS.
45813
45814 2008-10-25  Eric Blake  <ebb9@byu.net>
45815
45816         signbit: avoid spurious compiler failure
45817         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45818         declarations inside function.
45819
45820 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45821             Bruno Haible  <bruno@clisp.org>
45822
45823         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45824         * modules/random_r (Depends-on): Add stdint.
45825
45826 2008-10-24  Bruno Haible  <bruno@clisp.org>
45827
45828         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45829         Eggert.
45830         * modules/strerror (License): Likewise.
45831
45832 2008-10-24  Jim Meyering  <meyering@redhat.com>
45833
45834         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45835         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45836
45837 2008-10-24  Eric Blake  <ebb9@byu.net>
45838
45839         getgroups: fix compilation when getgroups is available
45840         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45841         but with <config.h> override of getgroups disabled.
45842
45843 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45844
45845         * doc/gnulib.texi (Header files): Add note about C++ problems.
45846         Explained by Bruno Haible <bruno@clisp.org>.
45847
45848 2008-10-23  Bruno Haible  <bruno@clisp.org>
45849
45850         Define a dummy SA_NODEFER macro on Interix.
45851         * lib/signal.in.h (SA_NODEFER): Define fallback.
45852         Reported by Aleksey Cheusov <cheusov@tut.by> via
45853         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45854
45855 2008-10-23  Bruno Haible  <bruno@clisp.org>
45856
45857         * modules/freadahead (License): Change to LGPLv2+.
45858         Suggested by Simon Josefsson.
45859
45860 2008-10-23  Jim Meyering  <meyering@redhat.com>
45861
45862         random_r: new module
45863         * modules/random_r: New file.
45864         * m4/random_r.m4: New file.
45865         * lib/random_r.c: New file, from glibc.
45866         * modules/random_r-tests: New file.
45867         * tests/test-random_r.c: New file.
45868         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45869          Declare.
45870         (RAND_MAX): Define.
45871         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45872         * modules/stdlib: Substitute them, too.
45873         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45874         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45875         * doc/glibc-functions/random_r.texi: Likewise.
45876         * doc/glibc-functions/setstate_r.texi: Likewise.
45877         * doc/glibc-functions/srandom_r.texi: Likewise.
45878         * config/srclist.txt: Mention it.
45879
45880 2008-10-23  David Lutterkort  <lutter@redhat.com>
45881
45882         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45883         link requirement
45884
45885 2008-10-23  Jim Meyering  <meyering@redhat.com>
45886
45887         selinux-h: mark parameters of stub functions as intentionally unused
45888         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45889         * lib/se-context.in.h: Likewise.
45890
45891 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45892
45893         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45894
45895 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45896
45897         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45898
45899 2008-10-22  Eric Blake  <ebb9@byu.net>
45900
45901         glthread/thread: avoid compiler warning
45902         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45903         Add unreachable abort to silence compiler.
45904
45905 2008-10-22  Eric Blake  <ebb9@byu.net>
45906
45907         netdb: also supply struct addrinfo for cygwin 1.5.x
45908         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45909         older cygwin.
45910         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45911         cygwin.
45912         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45913
45914 2008-10-22  Bruno Haible  <bruno@clisp.org>
45915
45916         * users.txt: Update entry about pspp.
45917
45918 2008-10-21  Bruno Haible  <bruno@clisp.org>
45919
45920         Simplification.
45921         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45922         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45923
45924         Simplification.
45925         * lib/ioctl.c (ioctl): Don't undefine.
45926         * lib/socket.c (socket): Don't undefine.
45927
45928         Remove unused module indicator macros.
45929         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45930         GNULIB_$1 as a C macro.
45931
45932         * doc/posix-functions/close.texi: Undo last change.
45933         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45934         Windows platforms.
45935
45936 2008-10-21  Bruno Haible  <bruno@clisp.org>
45937
45938         Add gethostname() declaration to <unistd.h>.
45939         * lib/unistd.in.h (gethostname): New declaration.
45940         * lib/gethostname.c: Include <unistd.h>.
45941         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45942         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45944         and HAVE_GETHOSTNAME.
45945         * modules/gethostname (Depends-on): Add unistd.
45946         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45947         (Include): Specify <unistd.h>.
45948         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45949         HAVE_GETHOSTNAME.
45950         * tests/test-gethostname.c: Include <unistd.h> first.
45951
45952 2008-10-21  Bruno Haible  <bruno@clisp.org>
45953
45954         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45955         * modules/select-tests (Depends-on): Likewise.
45956         Reported by Simon Josefsson.
45957
45958 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45959
45960         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45961         * lib/accept.c: New file, based on winsock.c.
45962         * lib/bind.c: New file, based on winsock.c.
45963         * lib/connect.c: New file, based on winsock.c.
45964         * lib/getpeername.c: New file, based on winsock.c.
45965         * lib/getsockname.c: New file, based on winsock.c.
45966         * lib/getsockopt.c: New file, based on winsock.c.
45967         * lib/ioctl.c: New file, based on winsock.c.
45968         * lib/listen.c: New file, based on winsock.c.
45969         * lib/recv.c: New file, based on winsock.c.
45970         * lib/recvfrom.c: New file, based on winsock.c.
45971         * lib/send.c: New file, based on winsock.c.
45972         * lib/sendto.c: New file, based on winsock.c.
45973         * lib/setsockopt.c: New file, based on winsock.c.
45974         * lib/shutdown.c: New file, based on winsock.c.
45975         * lib/socket.c: New file, based on winsock.c.
45976         * lib/w32sock.h: New file, based on winsock.c.
45977         * lib/winsock.c: Remove file.
45978         * modules/accept: Likewise.
45979         * modules/bind: Likewise.
45980         * modules/connect: Likewise.
45981         * modules/getpeername: Likewise.
45982         * modules/getsockname: Likewise.
45983         * modules/getsockopt: Likewise.
45984         * modules/ioctl: Likewise.
45985         * modules/listen: Likewise.
45986         * modules/recv: Likewise.
45987         * modules/recvfrom: Likewise.
45988         * modules/send: Likewise.
45989         * modules/sendto: Likewise.
45990         * modules/setsockopt: Likewise.
45991         * modules/shutdown: Likewise.
45992         * modules/socket: Use socket.c instead of winsock.c.
45993         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45994         * doc/posix-functions/accept.texi: Doc fix.
45995         * doc/posix-functions/bind.texi: Doc fix.
45996         * doc/posix-functions/close.texi: Doc fix.
45997         * doc/posix-functions/connect.texi: Doc fix.
45998         * doc/posix-functions/getpeername.texi: Doc fix.
45999         * doc/posix-functions/getsockname.texi: Doc fix.
46000         * doc/posix-functions/getsockopt.texi: Doc fix.
46001         * doc/posix-functions/ioctl.texi: Doc fix.
46002         * doc/posix-functions/listen.texi: Doc fix.
46003         * doc/posix-functions/recv.texi: Doc fix.
46004         * doc/posix-functions/recvfrom.texi: Doc fix.
46005         * doc/posix-functions/send.texi: Doc fix.
46006         * doc/posix-functions/sendto.texi: Doc fix.
46007         * doc/posix-functions/setsockopt.texi: Doc fix.
46008         * doc/posix-functions/shutdown.texi: Doc fix.
46009         * doc/posix-functions/socket.texi: Doc fix.
46010
46011 2008-10-20  Bruno Haible  <bruno@clisp.org>
46012
46013         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46014         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46015         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46016         as an alias for SIGABRT.
46017         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46018         (sigaction): Map it to SIGABRT.
46019         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46020
46021 2008-10-20  Bruno Haible  <bruno@clisp.org>
46022
46023         * lib/fts.c: Don't include lstat.h.
46024         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46025
46026         Move the lstat() declaration to <sys/stat.h>.
46027         * lib/lstat.h: Remove file.
46028         * lib/sys_stat.in.h: Add special invocation convention.
46029         (lstat): New declaration.
46030         * lib/lstat.c (orig_lstat): New function.
46031         (rpl_lstat): Use orig_lstat instead of lstat.
46032         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46033         AC_C_INLINE. Set REPLACE_LSTAT.
46034         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46035         and REPLACE_LSTAT.
46036         * modules/lstat (Files): Remove lib/lstat.h.
46037         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46038         (Include): Specify <sys/stat.h> instead of lstat.h.
46039         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46040         REPLACE_LSTAT.
46041         * NEWS: Mention the change.
46042
46043 2008-10-20  Bruno Haible  <bruno@clisp.org>
46044
46045         * modules/posix_spawn-tests: New file.
46046         * tests/test-posix_spawn3.c: New file.
46047
46048 2008-10-20  Bruno Haible  <bruno@clisp.org>
46049
46050         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46051         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46052         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46053         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46054         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46055
46056 2008-10-20  Bruno Haible  <bruno@clisp.org>
46057
46058         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46059         of posix_spawn on AIX 5.3.
46060
46061 2008-10-20  Bruno Haible  <bruno@clisp.org>
46062
46063         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46064
46065 2008-10-20  Bruno Haible  <bruno@clisp.org>
46066
46067         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46068         of AC_LANG_PROGRAM.
46069
46070 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46071
46072         * lib/netdb.in.h: Don't define GNU specific constants until they
46073         are supported or needed.  Reported by Bruno Haible
46074         <bruno@clisp.org>.
46075
46076 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46077
46078         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46079
46080 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46081
46082         * lib/getaddrinfo.h: Remove file.
46083         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46084         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46085         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46086         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46087         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46088         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46089         * tests/test-getaddrinfo.c: Likewise.
46090         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46091         * NEWS: Mention change.
46092
46093 2008-10-19  Bruno Haible  <bruno@clisp.org>
46094
46095         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46096
46097 2008-10-19  Bruno Haible  <bruno@clisp.org>
46098
46099         * lib/wait-process.c: Include simply <sys/wait.h>.
46100         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46101         WIFSTOPPED): Remove fallback definitions.
46102         * modules/wait-process (Depends-on): Add sys_wait.
46103
46104         New module 'sys_wait'.
46105         * modules/sys_wait: New file.
46106         * lib/sys_wait.in.h: New file, partially copied from
46107         lib/wait-process.c.
46108         * m4/sys_wait_h.m4: New file.
46109         * doc/posix-headers/sys_wait.texi: Mention the new module.
46110
46111 2008-10-19  Bruno Haible  <bruno@clisp.org>
46112
46113         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46114
46115 2008-10-19  Bruno Haible  <bruno@clisp.org>
46116
46117         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46118         * lib/wait-process.c (WAIT_T): Remove type.
46119         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46120         (wait_subprocess): Update.
46121
46122 2008-10-19  Bruno Haible  <bruno@clisp.org>
46123
46124         New module 'atoll'.
46125         * modules/atoll: New file.
46126         * lib/stdlib.in.h (atoll): New declaration.
46127         * lib/atoll.c: New file, from glibc with modifications.
46128         * m4/atoll.m4: New file.
46129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46130         HAVE_ATOLL.
46131         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46132         * doc/posix-functions/atoll.texi: Mention the new module.
46133
46134 2008-10-19  Bruno Haible  <bruno@clisp.org>
46135
46136         Add strtoull() declaration to <stdlib.h>.
46137         * lib/stdlib.in.h (strtoull): New declaration.
46138         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46139         Set HAVE_STRTOULL.
46140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46141         HAVE_STRTOULL.
46142         * modules/strtoull (Depends-on): Add stdlib.
46143         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46144         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46145         HAVE_STRTOULL.
46146
46147 2008-10-19  Bruno Haible  <bruno@clisp.org>
46148
46149         Add strtoll() declaration to <stdlib.h>.
46150         * lib/stdlib.in.h (strtoll): New declaration.
46151         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46152         Set HAVE_STRTOLL.
46153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46154         HAVE_STRTOLL.
46155         * modules/strtoll (Depends-on): Add stdlib.
46156         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46157         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46158
46159 2008-10-19  Bruno Haible  <bruno@clisp.org>
46160
46161         * modules/bcopy (Depends-on): Add strings.
46162         (Include): Specify <strings.h>.
46163
46164 2008-10-19  Bruno Haible  <bruno@clisp.org>
46165
46166         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46167
46168 2008-10-19  Bruno Haible  <bruno@clisp.org>
46169
46170         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46171         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46172         mingw.
46173
46174 2008-10-19  Bruno Haible  <bruno@clisp.org>
46175
46176         * lib/atanl.c: Don't include isnanl.h.
46177         * lib/cosl.c: Likewise.
46178         * lib/ldexpl.c: Likewise.
46179         * lib/logl.c: Likewise.
46180         * lib/sinl.c: Likewise.
46181         * lib/sqrtl.c: Likewise.
46182         * lib/tanl.c: Likewise.
46183
46184         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46185         * lib/isnanf.h: Remove file.
46186         * lib/isnand.h: Remove file.
46187         * lib/isnanl.h: Remove file.
46188         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46189         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46190         macros.
46191         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46192         HAVE_ISNANF, don't define it as a C macro.
46193         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46194         HAVE_ISNAND, don't define it as a C macro.
46195         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46196         HAVE_ISNANL, don't define it as a C macro.
46197         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46198         HAVE_ISNAN[FDL].
46199         * modules/isnanf (Files): Remove lib/isnanf.h.
46200         (Depends-on): Add math.
46201         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46202         (Include): Specify <math.h> instead of isnanf.h.
46203         * modules/isnand (Files): Remove lib/isnand.h.
46204         (Depends-on): Add math.
46205         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46206         (Include): Specify <math.h> instead of isnand.h.
46207         * modules/isnanl (Files): Remove lib/isnanl.h.
46208         (Depends-on): Add math.
46209         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46210         (Include): Specify <math.h> instead of isnanl.h.
46211         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46212         HAVE_ISNAN[FDL].
46213         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46214         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46215         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46216         * NEWS: Mention the change.
46217
46218 2008-10-18  Bruno Haible  <bruno@clisp.org>
46219
46220         Add getusershell(), setusershell(), endusershell() declarations to
46221         <unistd.h>.
46222         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46223         declarations.
46224         * lib/getusershell.c: Include unistd.h.
46225         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46226         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46227         HAVE_GETUSERSHELL.
46228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46229         and HAVE_GETUSERSHELL.
46230         * modules/getusershell (Depends-on): Add unistd, extensions.
46231         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46232         (Include): Specify <unistd.h>.
46233         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46234         HAVE_GETUSERSHELL.
46235
46236 2008-10-18  Bruno Haible  <bruno@clisp.org>
46237
46238         Add a getloadavg() declaration to <stdlib.h>.
46239         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46240         getloadavg declaration.
46241         (getloadavg): New declaration.
46242         * lib/getloadavg.c: Include <stdlib.h> first.
46243         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46244         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46245         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46247         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46248         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46249         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46250         (Include): Specify <stdlib.h>.
46251         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46252         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46253
46254 2008-10-18  Bruno Haible  <bruno@clisp.org>
46255
46256         * lib/dirchownmod.c: Don't include lchmod.h.
46257
46258         Move the lchmod() declaration to <sys/stat.h>.
46259         * lib/lchmod.h: Remove file.
46260         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46261         (lchmod): New declaration, moved here from lib/lchown.h.
46262         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46263         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46264         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46265         and HAVE_LCHMOD.
46266         * modules/lchmod (Files): Remove lib/lchmod.h.
46267         (Depends-on): Add sys_stat, extensions.
46268         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46269         (Include): Specify <sys/stat.h> instead of lchmod.h.
46270         * modules/sys_stat (Depends-on): Add link-warning.
46271         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46272         definition of GL_LINK_WARNING.
46273         * NEWS: Mention the change.
46274
46275 2008-10-18  Bruno Haible  <bruno@clisp.org>
46276
46277         * lib/fchdir.c: Don't include dirfd.h.
46278         * lib/fts.c: Likewise.
46279         * lib/getcwd.c: Likewise.
46280         * lib/glob.c: Likewise.
46281
46282         Move the dirfd() declaration to <dirent.h>.
46283         * lib/dirfd.h: Remove file.
46284         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46285         (dirfd): New declaration.
46286         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46287         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46288         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46289         HAVE_DECL_DIRFD.
46290         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46291         HAVE_DECL_DIRFD.
46292         * modules/dirfd (Files): Remove lib/dirfd.h.
46293         (Depends-on): Add dirent, extensions.
46294         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46295         (Include): Specify <dirent.h> instead of dirfd.h.
46296         * modules/dirent (Depends-on): Add link-warning.
46297         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46298         definition of GL_LINK_WARNING.
46299         * NEWS: Mention the change.
46300
46301 2008-10-18  Bruno Haible  <bruno@clisp.org>
46302
46303         Move the euidaccess() declaration to <unistd.h>.
46304         * lib/euidaccess.h: Remove file.
46305         * lib/unistd.in.h (euidaccess): New declaration.
46306         * lib/euidaccess.c: Don't include euidaccess.h.
46307         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46308         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46310         and HAVE_EUIDACCESS.
46311         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46312         (Depends-on): Add unistd.
46313         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46314         (Include): Specify <unistd.h> instead of euidaccess.h.
46315         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46316         HAVE_EUIDACCESS.
46317         * NEWS: Mention the change.
46318
46319 2008-10-18  Bruno Haible  <bruno@clisp.org>
46320
46321         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46322
46323         Move the getdomainname() declaration to <unistd.h>.
46324         * lib/getdomainname.h: Remove file.
46325         * lib/unistd.in.h (getdomainname): New declaration.
46326         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46327         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46328         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46329         HAVE_GETDOMAINNAME.
46330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46331         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46332         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46333         (Depends-on): Add unistd, extensions.
46334         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46335         (Includes): Specify <unistd.h> instead of getdomainname.h.
46336         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46337         HAVE_GETDOMAINNAME.
46338         * NEWS: Mention the change.
46339
46340 2008-10-18  Bruno Haible  <bruno@clisp.org>
46341
46342         * modules/dirent: New file.
46343         * m4/dirent_h.m4: New file.
46344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46345         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46346         * modules/fchdir (Files): Remove lib/dirent.in.h.
46347         (Depends-on): Add dirent.
46348         (Makefile.am): Move rules to modules/dirent.
46349         * doc/posix-headers/dirent.texi: Mention the new module.
46350
46351 2008-10-18  Bruno Haible  <bruno@clisp.org>
46352
46353         Avoid -Wunused-parameter warnings in public gnulib header files.
46354         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46355         macro.
46356         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46357
46358 2008-10-18  Bruno Haible  <bruno@clisp.org>
46359
46360         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46361         * doc/glibc-functions/error.texi: Mention the module 'error'.
46362         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46363         * doc/glibc-functions/getdomainname.texi: Mention the module
46364         'getdomainname'.
46365         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46366         * doc/glibc-functions/getpagesize.texi: Mention the module
46367         'getpagesize'.
46368         * doc/glibc-functions/getusershell.texi: Mention the module
46369         'getusershell'.
46370         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46371         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46372         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46373         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46374         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46375         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46376         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46377         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46378         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46379         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46380         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46381         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46382         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46383         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46384
46385 2008-10-17  Bruno Haible  <bruno@clisp.org>
46386
46387         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46388         HP-UX and IRIX, use -0.0L.
46389         * tests/test-ceill.c (minus_zero): Likewise.
46390         * tests/test-floorl.c (minus_zero): Likewise.
46391         * tests/test-frexpl.c (minus_zero): Likewise.
46392         * tests/test-isnan.c (minus_zerol): Likewise.
46393         * tests/test-isnanl.h (minus_zero): Likewise.
46394         * tests/test-ldexpl.c (minus_zero): Likewise.
46395         * tests/test-roundl.c (minus_zero): Likewise.
46396         * tests/test-signbit.c (minus_zerol): Likewise.
46397         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46398         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46399         * tests/test-truncl.c (minus_zero): Likewise.
46400         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46401         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46402         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46403         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46404
46405 2008-10-17  Bruno Haible  <bruno@clisp.org>
46406
46407         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46408         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46409         that it gets activated only for gcc >= 3.0.
46410         * lib/dirent.in.h: Likewise.
46411         * lib/errno.in.h: Likewise.
46412         * lib/fcntl.in.h: Likewise.
46413         * lib/float.in.h: Likewise.
46414         * lib/iconv.in.h: Likewise.
46415         * lib/inttypes.in.h: Likewise.
46416         * lib/locale.in.h: Likewise.
46417         * lib/math.in.h: Likewise.
46418         * lib/netdb.in.h: Likewise.
46419         * lib/netinet_in.in.h: Likewise.
46420         * lib/search.in.h: Likewise.
46421         * lib/signal.in.h: Likewise.
46422         * lib/spawn.in.h: Likewise.
46423         * lib/stdarg.in.h: Likewise.
46424         * lib/stdint.in.h: Likewise.
46425         * lib/stdio.in.h: Likewise.
46426         * lib/stdlib.in.h: Likewise.
46427         * lib/string.in.h: Likewise.
46428         * lib/strings.in.h: Likewise.
46429         * lib/sys_file.in.h: Likewise.
46430         * lib/sys_ioctl.in.h: Likewise.
46431         * lib/sys_select.in.h: Likewise.
46432         * lib/sys_socket.in.h: Likewise.
46433         * lib/sys_stat.in.h: Likewise.
46434         * lib/sys_time.in.h: Likewise.
46435         * lib/sysexits.in.h: Likewise.
46436         * lib/time.in.h: Likewise.
46437         * lib/unistd.in.h: Likewise.
46438         * lib/wchar.in.h: Likewise.
46439         * lib/wctype.in.h: Likewise.
46440         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46441
46442 2008-10-17  Jim Meyering  <meyering@redhat.com>
46443
46444         ignore-value: don't depend on inline module
46445         * modules/ignore-value (Depends-on): Remove 'inline'.
46446         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46447         Suggestion from Bruno Haible.
46448
46449 2008-10-17  Bruno Haible  <bruno@clisp.org>
46450
46451         New implementation of condition variables for Win32.
46452         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46453         (gl_linked_waitqueue_t): New type.
46454         (gl_cond_t): Use it.
46455         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46456         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46457         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46458         (glthread_cond_init_func, glthread_cond_wait_func,
46459         glthread_cond_timedwait_func, glthread_cond_signal_func,
46460         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46461         Reimplemented on the basis of gl_linked_waitqueue_t.
46462         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46463         gl_waitqueue_t.
46464         (gl_rwlock_t): Update.
46465         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46466
46467 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46468
46469         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46470         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46471
46472 2008-10-17  Jim Meyering  <meyering@redhat.com>
46473
46474         ignore-value: new module
46475         * modules/ignore-value: New file.
46476         * lib/ignore-value.h: New file.
46477         * MODULES.html.sh (Compiler warning management): New section,
46478         just for this module.  More to come.
46479
46480 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46481
46482         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46483         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46484         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46485
46486 2008-10-16  Jim Meyering  <meyering@redhat.com>
46487
46488         openat-die.c: avoid 'no previous prototype' warning
46489         * lib/openat-die.c: Include "openat.h".
46490         Reported by Reuben Thomas <rrt@sc3d.org>.
46491
46492 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46493
46494         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46495         * lib/netdb.in.h: Fix typo.
46496         Reported by Bruno Haible  <bruno@clisp.org>
46497
46498         * lib/netdb.in.h: Include sys/socket.h for platforms without
46499         netdb.h, to get structures like hostent on MinGW.
46500         * modules/netdb (Depends-on): Add sys_socket.
46501
46502 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46503
46504         * modules/netdb, modules/netdb-tests: New file.
46505         * m4/netdb_h.m4: New file.
46506         * lib/netdb.in.h: Add, currently just an empty file pending
46507         definitions.
46508         * tests/test-netdb.c: New file.
46509         * doc/posix-headers/netdb.texi: Mention that we replace it if
46510         needed.
46511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46512         netdb.
46513
46514 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46515
46516         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46517         with code.
46518
46519 2008-10-13  Bruno Haible  <bruno@clisp.org>
46520
46521         * lib/glthread/cond.c (glthread_cond_wait_func,
46522         glthread_cond_timedwait_func): Add a comment.
46523
46524 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46525
46526         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46527         * tests/test-select.c: Likewise,
46528
46529 2008-10-13  Bruno Haible  <bruno@clisp.org>
46530
46531         * lib/glthread/cond.c (glthread_cond_wait_func,
46532         glthread_cond_timedwait_func): Fix variable name.
46533         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46534
46535 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46536
46537         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46538         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46539         struct sockaddr.sa_len.
46540         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46541
46542 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46543
46544         * build-aux/pmccabe2html: Add css and css_url parameters.
46545
46546 2008-10-12  Bruno Haible  <bruno@clisp.org>
46547
46548         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46549         calling aclx_get.
46550         Reported by Rainer Tammer <tammer@tammer.net>.
46551
46552 2008-10-12  Bruno Haible  <bruno@clisp.org>
46553
46554         Use msvcrt aware primitives for creation/termination of Win32 threads.
46555         * lib/glthread/thread.c: Include <process.h>.
46556         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46557         (wrapper_func): Update signature.
46558         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46559
46560 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46561             Bruno Haible  <bruno@clisp.org>
46562
46563         Provide a Win32 implementation of the 'cond' module.
46564         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46565         * lib/glthread/cond.c (glthread_cond_init_func,
46566         glthread_cond_wait_func, glthread_cond_timedwait_func,
46567         glthread_cond_signal_func, glthread_cond_broadcast_func,
46568         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46569         * modules/cond (Dependencies): Add gettimeofday.
46570
46571 2008-10-11  Bruno Haible  <bruno@clisp.org>
46572
46573         Make sleep work on older versions of mingw.
46574         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46575         only whether it exists.
46576         * doc/posix-functions/sleep.texi: Mention the problem with older
46577         versions of mingw.
46578
46579 2008-10-11  Bruno Haible  <bruno@clisp.org>
46580
46581         New module 'shutdown'.
46582         * modules/shutdown: New file.
46583         * lib/sys_socket.in.h (shutdown): New declaration.
46584         * lib/winsock.c (shutdown): New function.
46585         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46586         GNULIB_SHUTDOWN.
46587         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46588         * doc/posix-functions/shutdown.texi: Document the new module.
46589
46590 2008-10-11  Jim Meyering  <meyering@redhat.com>
46591
46592         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46593
46594 2008-10-11  Bruno Haible  <bruno@clisp.org>
46595
46596         New module 'fclose'.
46597         * modules/fclose: New file.
46598         * lib/stdio.in.h (fclose): New declaration.
46599         * lib/fclose.c: New file.
46600         * m4/fclose.m4: New file.
46601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46602         REPLACE_FCLOSE.
46603         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46604         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46605         REPLACE_FCLOSE.
46606         * modules/close (Depends-on): fclose.
46607         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46608
46609 2008-10-11  Bruno Haible  <bruno@clisp.org>
46610
46611         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46612         set errno and don't call _close.
46613
46614 2008-10-10  Bruno Haible  <bruno@clisp.org>
46615
46616         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46617         ACL, not afterwards. Fixes test failure on Cygwin.
46618
46619 2008-10-09  Ben Pfaff  <blp@gnu.org>
46620
46621         * build-aux/announce-gen: Fix gnulib version related part of usage
46622         message.  Die with a useful error message if no tarballs are
46623         found.
46624
46625 2008-10-10  Jim Meyering  <meyering@redhat.com>
46626
46627         bootstrap: use git's --depth=N option only if it's supported
46628         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46629         recognize the --depth option.  Reported by Pádraig Brady.
46630
46631 2008-10-09  Bruno Haible  <bruno@clisp.org>
46632
46633         New module 'ioctl'.
46634         * modules/ioctl: New file.
46635         * lib/sys_socket.in.h (ioctl): Remove declaration.
46636         * lib/winsock.c: Include <sys/ioctl.h>.
46637         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46638         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46639         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46640         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46641         * doc/posix-functions/ioctl.texi: Mention the new module.
46642
46643 2008-10-09  Bruno Haible  <bruno@clisp.org>
46644
46645         New module 'sys_ioctl'.
46646         * lib/sys_ioctl.in.h: New file.
46647         * m4/sys_ioctl_h.m4: New file.
46648         * modules/sys_ioctl: New file.
46649         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46650
46651 2008-10-09  Bruno Haible  <bruno@clisp.org>
46652
46653         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46654         * lib/winsock.c: Include <stdarg.h>.
46655         (rpl_ioctl): Change to second argument 'int' and then varargs.
46656
46657 2008-10-09  Bruno Haible  <bruno@clisp.org>
46658
46659         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46660         when the sys_socket module is present and the system has <winsock2.h>.
46661
46662 2008-10-09  Bruno Haible  <bruno@clisp.org>
46663
46664         * doc/posix-functions/close.texi: Mention module 'close' instead of
46665         module 'sys_socket'.
46666
46667 2008-10-09  Bruno Haible  <bruno@clisp.org>
46668
46669         * doc/glibc-headers/sys_ioctl.texi: New file.
46670         * doc/gnulib.texi: Include it.
46671
46672 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46673             Bruno Haible  <bruno@clisp.org>
46674
46675         Combine the two replacements of 'close'.
46676         * lib/sys_socket.in.h (close): Define to a reminder to include
46677         <unistd.h>.
46678         (_gl_close_fd_maybe_socket): New declaration.
46679         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46680         * lib/winsock.c (close): Remove undefinition.
46681         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46682         needed for the gnulib module 'close'.
46683         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46684         define to an error symbol or to a warning, if suitable.
46685         * lib/close.c: Include <sys/socket.h>.
46686         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46687         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46688         UNISTD_H_HAVE_WINSOCK2_H.
46689         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46691         UNISTD_H_HAVE_WINSOCK2_H.
46692         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46693         (configure.ac): Set a module indicator.
46694         (Makefile.am): Substitute GNULIB_CLOSE.
46695         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46696         * modules/poll-tests (Depends-on): Add close.
46697         * modules/select-tests (Depends-on): Likewise.
46698
46699 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46700             Bruno Haible  <bruno@clisp.org>
46701
46702         New module 'close'.
46703         * modules/close: New file.
46704         * lib/unistd.in.h (close): Move declaration out of the
46705         FCHDIR_REPLACEMENT scope.
46706         (_gl_unregister_fd): New declaration.
46707         * lib/close.c: New file.
46708         * lib/fchdir.c (rpl_close): Remove function.
46709         * m4/close.m4: New file.
46710         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46711         close.
46712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46713         REPLACE_CLOSE.
46714         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46715         REPLACE_CLOSE.
46716         * modules/fchdir (Depends-on): Add close.
46717
46718 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46719             Bruno Haible  <bruno@clisp.org>
46720
46721         * lib/fcntl.in.h (open): Simplify conditionals.
46722         (_gl_register_fd): New declaration.
46723         * lib/fchdir.c (rpl_open): Remove function.
46724         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46725         also.
46726         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46727         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46728         open.
46729
46730 2008-10-09  Jim Meyering  <meyering@redhat.com>
46731
46732         GNUmakefile: use the more name-space-friendly "_version"
46733         * top/GNUmakefile (_dummy): Update.
46734         (_version): Rename from "version".
46735
46736 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46737             Bruno Haible  <bruno@clisp.org>
46738
46739         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46740         rpl_close.
46741         (_gl_register_fd): New function, extracted from rpl_open.
46742         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46743         (rpl_open, rpl_opendir): Use _gl_register_fd.
46744
46745 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46746
46747         Fix organization of 'open' replacement.
46748         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46749         (gl_FUNC_OPEN): Use it.
46750         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46751
46752 2008-10-08  Bruno Haible  <bruno@clisp.org>
46753
46754         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46755
46756 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46757
46758         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46759         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46760         listen).
46761
46762 2008-10-08  Eric Blake  <ebb9@byu.net>
46763
46764         GNUmakefile: add 'make version' target
46765         * top/GNUmakefile (_curr-ver): Split version update rules...
46766         (version): ...into a target.
46767
46768 2008-10-07  Bruno Haible  <bruno@clisp.org>
46769
46770         Use a more portable replacement expression for -0.0L.
46771         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46772         instead of -0.0L. Fix m4 quotation.
46773
46774         * tests/test-signbit.c: Include <float.h>.
46775         (minus_zero): New variable.
46776         (test_signbitl): Use minus_zero instead of -zero.
46777         * modules/signbit-tests (Depends-on): Add float.
46778
46779         * tests/test-ceill.c: Include <float.h>.
46780         (zero): Remove variable.
46781         (minus_zero): New variable.
46782         (main): Use minus_zero instead of -zero.
46783         * modules/ceill-tests (Depends-on): Add float.
46784
46785         * tests/test-floorl.c: Include <float.h>.
46786         (zero): Remove variable.
46787         (minus_zero): New variable.
46788         (main): Use minus_zero instead of -zero.
46789         * modules/floorl-tests (Depends-on): Add float.
46790
46791         * tests/test-roundl.c: Include <float.h>.
46792         (zero): Remove variable.
46793         (minus_zero): New variable.
46794         (main): Use minus_zero instead of -zero.
46795         * modules/roundl-tests (Depends-on): Add float.
46796
46797         * tests/test-truncl.c: Include <float.h>.
46798         (zero): Remove variable.
46799         (minus_zero): New variable.
46800         (main): Use minus_zero instead of -zero.
46801         * modules/truncl-tests (Depends-on): Add float.
46802
46803         * tests/test-frexpl.c (zero): Remove variable.
46804         (minus_zero): New variable.
46805         (main): Use minus_zero instead of -zero.
46806         * modules/frexpl-tests (Depends-on): Add float.
46807
46808         * tests/test-isnan.c (zerol): Remove variable.
46809         (minus_zerol): New variable.
46810         (test_long_double): Use minus_zerol instead of -zerol.
46811         * modules/isnan-tests (Depends-on): Add float.
46812
46813         * tests/test-isnanl.h (zero): Remove variable.
46814         (minus_zero): New variable.
46815         (main): Use minus_zero instead of -zero.
46816         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46817         * modules/isnanl-tests (Depends-on): Add float.
46818
46819         * tests/test-ldexpl.c (zero): Remove variable.
46820         (minus_zero): New variable.
46821         (main): Use minus_zero instead of -zero.
46822         * modules/ldexpl-tests (Depends-on): Add float.
46823
46824         * tests/test-snprintf-posix.h (zerol): Remove variable.
46825         (minus_zerol): New variable.
46826         (test_function): Use minus_zerol instead of -zerol.
46827         * modules/snprintf-posix-tests (Depends-on): Add float.
46828         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46829
46830         * tests/test-sprintf-posix.h (zerol): Remove variable.
46831         (minus_zerol): New variable.
46832         (test_function): Use minus_zerol instead of -zerol.
46833         * modules/sprintf-posix-tests (Depends-on): Add float.
46834         * modules/vsprintf-posix-tests (Depends-on): Add float.
46835
46836         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46837         (minus_zerol): New variable.
46838         (test_function): Use minus_zerol instead of -zerol.
46839         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46840
46841         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46842         (minus_zerol): New variable.
46843         (test_function): Use minus_zerol instead of -zerol.
46844         * modules/vasprintf-posix-tests (Depends-on): Add float.
46845
46846 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46847
46848         * MODULES.html.sh (Support for building documentation): Mention
46849         pmccabe2html.  Sort entries.
46850
46851         Add pmccabe2html module, from gnupdf.
46852         * build-aux/pmccabe.css: New file.
46853         * build-aux/pmccabe2html: New file.
46854         * m4/pmccabe2html.m4: New file.
46855         * modules/pmccabe2html: New file.
46856
46857 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46858
46859         flock: new module
46860         * MODULES.html.sh: Add to list of modules.
46861         * lib/flock.c: flock implementation for Windows and Unix systems
46862         which have fcntl.
46863         * doc/glibc-functions/flock.texi: Update documentation.
46864         * lib/sys_file.in.h: <sys/file.h> header file.
46865         * m4/flock.m4: M4 macros.
46866         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46867         * modules/flock: flock module.
46868         * modules/flock-tests: flock tests module.
46869         * modules/sys_file: sys/file.h module.
46870         * tests/test-flock.c: test suite for flock.
46871
46872 2008-10-06  Jim Meyering  <meyering@redhat.com>
46873
46874         bootstrap: check for LT_INIT more portably still ;-)
46875         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46876         Spotted by Bruno Haible.
46877
46878 2008-10-06  Eric Blake  <ebb9@byu.net>
46879
46880         test-signbit: avoid tripping Irix cc bug on -0.0L
46881         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46882         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46883         entire testsuite consistent and avoids an Irix 6.2 bug.
46884
46885 2008-10-05  Bruno Haible  <bruno@clisp.org>
46886             Jim Meyering  <jim@meyering.net>
46887
46888         Add an option for ignoring EPIPE during close_stdout.
46889         * lib/closeout.h: Include <stdbool.h>.
46890         (close_stdout_set_ignore_EPIPE): New declaration.
46891         * lib/closeout.c: Include <stdbool.h>.
46892         (ignore_EPIPE): New variable.
46893         (close_stdout_set_ignore_EPIPE): New function.
46894         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46895         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46896         failure.
46897         * modules/closeout (Depends-on): Add stdbool.
46898
46899 2008-10-05  Bruno Haible  <bruno@clisp.org>
46900
46901         * modules/accept: New file.
46902         * modules/bind: New file.
46903         * modules/connect: New file.
46904         * modules/getpeername: New file.
46905         * modules/getsockname: New file.
46906         * modules/getsockopt: New file.
46907         * modules/listen: New file.
46908         * modules/recv: New file.
46909         * modules/recvfrom: New file.
46910         * modules/send: New file.
46911         * modules/sendto: New file.
46912         * modules/setsockopt: New file.
46913         * modules/socket: New file.
46914         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46915         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46916         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46917         the particular module is requested. Add a link warning when the
46918         particular module is not requested.
46919         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46920         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46921         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46922         the particular module is requested.
46923         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46924         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46925         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46926         * modules/sys_socket (Depends-on): Add link-warning.
46927         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46928         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46929         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46930         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46931         GL_LINK_WARNING.
46932         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46933         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46934         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46935         * doc/posix-functions/getpeername.texi: Mention the new module
46936         'getpeername'.
46937         * doc/posix-functions/getsockname.texi: Mention the new module
46938         'getsockname'.
46939         * doc/posix-functions/getsockopt.texi: Mention the new module
46940         'getsockopt'.
46941         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46942         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46943         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46944         * doc/posix-functions/send.texi: Mention the new module 'send'.
46945         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46946         * doc/posix-functions/setsockopt.texi: Mention the new module
46947         'setsockopt'.
46948         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46949         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46950         listen, connect, accept.
46951         * modules/select-tests (Depends-on): Likewise.
46952
46953 2008-10-05  Bruno Haible  <bruno@clisp.org>
46954
46955         * lib/winsock.c (strerror): Remove unused #undef.
46956         (rpl_close): Remove unused local variable.
46957
46958         * modules/sys_socket (Depends-on); Add errno.
46959
46960 2008-10-05  Bruno Haible  <bruno@clisp.org>
46961
46962         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46963         (select): Add a link warning when the 'select' module is not used.
46964         * modules/sys_select (Depends-on): Add link-warning.
46965         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46966         Suggested by Paolo Bonzini.
46967
46968 2008-10-05  Jim Meyering  <meyering@redhat.com>
46969
46970         bootstrap: check for LT_INIT more portably
46971         * build-aux/bootstrap: Avoid using grep -E, since it's not
46972         portable enough.  Suggestion from Bruno Haible.
46973
46974 2008-10-05  Bruno Haible  <bruno@clisp.org>
46975
46976         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46977         as being fixed by gnulib.
46978
46979 2008-10-05  Bruno Haible  <bruno@clisp.org>
46980
46981         * modules/select-tests: New file, mostly copied from
46982         modules/sys_select-tests.
46983         * tests/test-select.c: New file, mostly copied from
46984         tests/test-sys_select.c.
46985         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46986         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46987         (Makefile.am): Remove test_sys_select_LDADD.
46988
46989         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46990         to an undefined symbol, for an error message.
46991         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46992         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46993         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46994         winsock-select.c here.
46995         * modules/sys_select (Files): Remove lib/winsock-select.c.
46996         (Depends-on): Remove alloca.
46997         (Makefile.am): Substitute GNULIB_SELECT.
46998         * modules/select: New file.
46999         * doc/posix-functions/select.texi: Update.
47000
47001 2008-10-05  Bruno Haible  <bruno@clisp.org>
47002
47003         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47004         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47005         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47006         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47007         getdtablesize.
47008         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47009         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47010
47011 2008-10-05  Bruno Haible  <bruno@clisp.org>
47012
47013         * modules/getdtablesize-tests: New file.
47014         * tests/test-getdtablesize.c: New file.
47015
47016         New module 'getdtablesize'.
47017         * lib/unistd.in.h (getdtablesize): New declaration.
47018         * lib/getdtablesize.c: New file.
47019         * m4/getdtablesize.m4: New file.
47020         * modules/getdtablesize: New file.
47021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47022         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47023         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47024         HAVE_GETDTABLESIZE.
47025         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47026
47027 2008-10-05  Bruno Haible  <bruno@clisp.org>
47028
47029         * modules/sched (Makefile.am): Fix typo.
47030         Reported by Simon Josefsson.
47031
47032 2008-10-05  Jim Meyering  <meyering@redhat.com>
47033
47034         bootstrap: check for LT_INIT, too
47035         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47036         are deprecated.  Suggestion from Ralf Wildenhues.
47037
47038 2008-10-05  Bruno Haible  <bruno@clisp.org>
47039
47040         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47041         overriding them by ours.
47042         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47043
47044 2008-10-05  Jim Meyering  <meyering@redhat.com>
47045
47046         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47047         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47048         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47049
47050 2008-10-04  Bruno Haible  <bruno@clisp.org>
47051
47052         * modules/dup2 (License): Change to LGPLv2+.
47053         * modules/sleep (License): Likewise.
47054         * modules/perror (License): Likewise.
47055         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47056         Blake.
47057         * modules/signal (License): Likewise.
47058         * modules/sigprocmask (License): Likewise.
47059         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47060         Meyering.
47061
47062 2008-10-04  Bruno Haible  <bruno@clisp.org>
47063
47064         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47065         Reported by Rainer Tammer <tammer@tammer.net>.
47066
47067 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47068             Bruno Haible  <bruno@clisp.org>
47069
47070         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47071         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47072         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47073
47074 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47075
47076         filevercmp: new module
47077         * lib/filevercmp.h: New function filevercmp comparing version strings.
47078         * lib/filevercmp.c: Implementation of filevercmp function.
47079         * modules/filevercmp: Module metadata.
47080         * tests/test-filevercmp.c: Unit test for new module.
47081         * modules/filevercmp-tests: Unit test metadata.
47082         * MODULES.html.sh: Add filevercmp module.
47083
47084 2008-10-03  Bruno Haible  <bruno@clisp.org>
47085
47086         * lib/c-ctype.h: Add comment.
47087         Reported by Jim Meyering.
47088
47089 2008-10-02  Bruno Haible  <bruno@clisp.org>
47090
47091         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47092
47093 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47094
47095         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47096         name of bootstrap.conf accordingly.
47097
47098 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47099
47100         * build-aux/bootstrap: Install git-merge-changelog configuration
47101         items into .gitconfig if needed.
47102
47103 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47104
47105         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47106         git repository, and initialize/update it accordingly.
47107
47108 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47109
47110         * modules/fsync-tests: New file.
47111         * tests/test-fsync.c: New file.
47112
47113         New module 'fsync'.
47114         * lib/fsync.c: New file.
47115         * m4/fsync.m4: New file.
47116         * modules/fsync: New file.
47117         * lib/unistd.in.h (fsync): New declaration.
47118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47119         GNULIB_FSYNC and HAVE_FSYNC.
47120         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47121         * MODULES.html.sh (posix_functions): Add fsync.
47122         * doc/posix-functions/fsync.texi: Mention the new module.
47123
47124 2008-10-02  Jim Meyering  <meyering@redhat.com>
47125
47126         fts.c: sync with similar code from coreutils' remove.c
47127         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47128         Guard also with "#if defined __linux__", since for now at least,
47129         this code is Linux-kernel-specific.
47130
47131 2008-10-02  Jim Meyering  <meyering@redhat.com>
47132
47133         fts: bug fixes
47134         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47135         Include <sys/vfs.h>, not <sys/statfs.h>.
47136
47137         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47138         Include <sys/vfs.h>, not <sys/statfs.h>.
47139
47140 2008-10-01  Bruno Haible  <bruno@clisp.org>
47141
47142         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47143         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47144         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47145         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47146         * doc/posix-functions/posix_spawnp.texi: Likewise.
47147         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47148         whether posix_spawn actually works.
47149         * m4/pipe.m4 (gl_PIPE): Likewise.
47150         * modules/execute (Files): Add m4/posix_spawn.m4.
47151         * modules/pipe (Files): Add m4/posix_spawn.m4.
47152         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47153
47154 2008-10-01  Jim Meyering  <meyering@redhat.com>
47155
47156         remove trailing spaces
47157         * NEWS: Likewise.
47158         * lib/poll.c (poll): Likewise.
47159         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47160         * lib/winsock.c (rpl_close): Likewise.
47161         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47162         * modules/yield: Likewise.
47163         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47164         * tests/test-sys_select.c (connect_to_socket): Likewise.
47165
47166         fts.c: adjust a new interface to be more generally useful
47167         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47168         (fts_build): Adjust caller.
47169
47170 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47171
47172         * modules/cond-tests: New file.
47173         * tests/test-cond.c: New file.
47174
47175 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47176             Bruno Haible  <bruno@clisp.org>
47177
47178         * modules/cond (Dependencies): Add errno, time.
47179         * lib/glthread/cond.h: Include <time.h>.
47180         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47181         across platforms.
47182
47183 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47184             Bruno Haible  <bruno@clisp.org>
47185
47186         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47187
47188 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47189             Bruno Haible  <bruno@clisp.org>
47190
47191         * modules/tls-tests (Depends-on): Add thread, yield.
47192         (configure.ac): Remove all checks.
47193         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47194         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47195         gl_thread_self): Remove definitions. Include glthread/thread.h and
47196         glthread/yield.h instead.
47197         (test_tls): Pass an additional NULL argument to gl_thread_join.
47198
47199 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47200             Bruno Haible  <bruno@clisp.org>
47201
47202         * modules/lock-tests (Depends-on): Add thread, yield.
47203         (configure.ac): Remove all checks.
47204         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47205         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47206         gl_thread_self): Remove definitions. Include glthread/thread.h and
47207         glthread/yield.h instead.
47208         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47209         additional NULL argument to gl_thread_join.
47210
47211 2008-09-30  Bruno Haible  <bruno@clisp.org>
47212
47213         Fix the Win32 implementation of the 'thread' module.
47214         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47215         pointer type.
47216         (gl_thread_self): Invoke gl_thread_self_func.
47217         (gl_thread_self_func): New declaration.
47218         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47219         (do_init_self_key, init_self_key): New functions.
47220         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47221         Remove some fields.
47222         (running_threads, running_lock): Remove variables.
47223         (get_current_thread_handle): New function.
47224         (gl_thread_self_func, wrapper_func, glthread_create_func,
47225         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47226         simplified.
47227
47228 2008-09-30  Bruno Haible  <bruno@clisp.org>
47229
47230         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47231         files.
47232
47233 2008-09-30  Jim Meyering  <meyering@redhat.com>
47234
47235         fts.m4: correct the test for statfs.f_type
47236         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47237         when checking for statfs.f_type.
47238
47239 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47240
47241         tests: avoid some compiler warnings
47242         * tests/test-memchr.c (main): Pass NULL indirectly.
47243         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47244
47245 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
47246
47247         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47248         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47249         exactly specified dayshifts.
47250         (dayshift): New rule.
47251         (rel): Add dayshift.
47252         (relative_time_table) [tomorrow, yesterday, today, now]:
47253         Use tDAY_SHIFT in place of tDAY_UNIT.
47254         * tests/test-getdate.c: Add tests for now-disallowed countable
47255         dayshifts, e.g., "4 yesterday ago".
47256
47257 2008-09-29  Bruno Haible  <bruno@clisp.org>
47258
47259         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47260         * tests/test-posix_spawn1.in.sh: Renamed from
47261         tests/test-posix_spawn.in.sh.
47262         * tests/test-posix_spawn2.c: New file.
47263         * tests/test-posix_spawn2.in.sh: New file.
47264         * modules/posix_spawnp-tests (Files): Update.
47265         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47266
47267 2008-09-29  Bruno Haible  <bruno@clisp.org>
47268
47269         Propagate effects of putenv/setenv/unsetenv to child processes.
47270         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47271         * lib/pipe.c (create_pipe): Likewise.
47272
47273 2008-09-29  Bruno Haible  <bruno@clisp.org>
47274
47275         Enable use of shell scripts as executables in mingw.
47276         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47277         run the program as a shell script.
47278         * lib/pipe.c (create_pipe): Likewise.
47279         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47280         resulting array.
47281
47282 2008-09-29  Eric Blake  <ebb9@byu.net>
47283
47284         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47285
47286 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47287
47288         * doc/posix-functions/accept.texi: Update mingw problems.
47289         * doc/posix-functions/bind.texi: Update mingw problems.
47290         * doc/posix-functions/close.texi: Update mingw problems.
47291         * doc/posix-functions/connect.texi: Update mingw problems.
47292         * doc/posix-functions/getpeername.texi: Update mingw problems.
47293         * doc/posix-functions/getsockname.texi: Update mingw problems.
47294         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47295         * doc/posix-functions/ioctl.texi: Update mingw problems.
47296         * doc/posix-functions/listen.texi: Update mingw problems.
47297         * doc/posix-functions/recv.texi: Update mingw problems.
47298         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47299         * doc/posix-functions/select.texi: Update mingw problems.
47300         * doc/posix-functions/send.texi: Update mingw problems.
47301         * doc/posix-functions/sendto.texi: Update mingw problems.
47302         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47303         * doc/posix-functions/socket.texi: Update mingw problems.
47304
47305 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47306             Bruno Haible  <bruno@clisp.org>
47307
47308         * lib/sys_select.in.h: Include sys/time.h.
47309         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47310         * modules/sys_select: Depend on sys_time.
47311         * tests/test-sys_select.c: Test that sys/select.h defines struct
47312         timeval fully.
47313
47314 2008-09-29  Bruno Haible  <bruno@clisp.org>
47315
47316         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47317         * lib/sys_select.in.h: Likewise.
47318
47319 2008-09-29  Bruno Haible  <bruno@clisp.org>
47320
47321         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47322
47323 2008-09-29  Bruno Haible  <bruno@clisp.org>
47324
47325         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47326         Set LIBSOCKET instead of augmenting LIBS.
47327         * modules/sockets (Link): New section.
47328         * modules/sockets-tests (test_sockets_LDADD): New variable.
47329         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47330         * modules/poll-tests (test_poll_LDADD): New variable.
47331         * NEWS: Document the change.
47332
47333 2008-09-29  Bruno Haible  <bruno@clisp.org>
47334
47335         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47336         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47337         ARPA_INET_H directly.
47338         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47339
47340 2008-09-28  Bruno Haible  <bruno@clisp.org>
47341
47342         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47343         from gl_HEADER_SYS_SOCKET.
47344         (gl_HEADER_SYS_SOCKET): Invoke it.
47345         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47346
47347 2008-09-28  Bruno Haible  <bruno@clisp.org>
47348
47349         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47350         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47351         Needed on OSF/1 4.0.
47352
47353 2008-09-28  Bruno Haible  <bruno@clisp.org>
47354
47355         Override open more carefully.
47356         * lib/open.c (orig_open): New function.
47357         (rpl_open): Use orig_open instead of open.
47358         * lib/fcntl.in.h: Add special invocation convention.
47359         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47360         (gl_FUNC_OPEN): Invoke it.
47361
47362         Override freopen more carefully.
47363         * lib/freopen.c (orig_freopen): New function.
47364         (rpl_freopen): Use orig_freopen instead of freopen.
47365         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47366         (gl_FUNC_FREOPEN): Invoke it.
47367
47368         Override fopen more carefully.
47369         * lib/fopen.c (orig_fopen): New function.
47370         (rpl_fopen): Use orig_fopen instead of fopen.
47371         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47372         (gl_FUNC_FOPEN): Invoke it.
47373         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47374
47375 2008-09-28  Bruno Haible  <bruno@clisp.org>
47376
47377         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47378         SIGPIPE.
47379
47380 2008-09-28  Bruno Haible  <bruno@clisp.org>
47381
47382         * tests/test-sigaction.c (handler, main): Disable the check whether
47383         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47384         glibc systems with LinuxThreads.
47385
47386 2008-09-28  Bruno Haible  <bruno@clisp.org>
47387
47388         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47389
47390         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47391         with AIX xlc.
47392         * lib/fcntl.in.h (open): Likewise.
47393         Reported by Rainer Tammer <tammer@tammer.net>.
47394
47395 2008-09-28  Bruno Haible  <bruno@clisp.org>
47396
47397         * modules/posix_spawnp-tests: New file.
47398         * tests/test-posix_spawn.c: New file.
47399         * tests/test-posix_spawn.in.sh: New file.
47400
47401         New module 'posix_spawnp'.
47402         * modules/posix_spawnp: New file.
47403         * lib/spawnp.c: New file, from GNU libc with modifications.
47404         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47405
47406         New module 'posix_spawn'.
47407         * modules/posix_spawn: New file.
47408         * lib/spawn.c: New file, from GNU libc with modifications.
47409         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47410
47411         New module 'posix_spawnattr_destroy'.
47412         * modules/posix_spawnattr_destroy: New file.
47413         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47414         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47415         module.
47416
47417         New module 'posix_spawnattr_setsigmask'.
47418         * modules/posix_spawnattr_setsigmask: New file.
47419         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47420         modifications.
47421         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47422         new module.
47423
47424         New module 'posix_spawnattr_getsigmask'.
47425         * modules/posix_spawnattr_getsigmask: New file.
47426         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47427         modifications.
47428         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47429         new module.
47430
47431         New module 'posix_spawnattr_setsigdefault'.
47432         * modules/posix_spawnattr_setsigdefault: New file.
47433         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47434         modifications.
47435         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47436         new module.
47437
47438         New module 'posix_spawnattr_getsigdefault'.
47439         * modules/posix_spawnattr_getsigdefault: New file.
47440         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47441         modifications.
47442         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47443         new module.
47444
47445         New module 'posix_spawnattr_setschedpolicy'.
47446         * modules/posix_spawnattr_setschedpolicy: New file.
47447         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47448         modifications.
47449         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47450         new module.
47451
47452         New module 'posix_spawnattr_getschedpolicy'.
47453         * modules/posix_spawnattr_getschedpolicy: New file.
47454         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47455         modifications.
47456         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47457         new module.
47458
47459         New module 'posix_spawnattr_setschedparam'.
47460         * modules/posix_spawnattr_setschedparam: New file.
47461         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47462         modifications.
47463         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47464         new module.
47465
47466         New module 'posix_spawnattr_getschedparam'.
47467         * modules/posix_spawnattr_getschedparam: New file.
47468         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47469         modifications.
47470         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47471         new module.
47472
47473         New module 'posix_spawnattr_setpgroup'.
47474         * modules/posix_spawnattr_setpgroup: New file.
47475         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47476         modifications.
47477         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47478         module.
47479
47480         New module 'posix_spawnattr_getpgroup'.
47481         * modules/posix_spawnattr_getpgroup: New file.
47482         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47483         modifications.
47484         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47485         module.
47486
47487         New module 'posix_spawnattr_setflags'.
47488         * modules/posix_spawnattr_setflags: New file.
47489         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47490         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47491         module.
47492
47493         New module 'posix_spawnattr_getflags'.
47494         * modules/posix_spawnattr_getflags: New file.
47495         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47496         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47497         module.
47498
47499         New module 'posix_spawnattr_init'.
47500         * modules/posix_spawnattr_init: New file.
47501         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47502         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47503         module.
47504
47505         New module 'posix_spawn_file_actions_destroy'.
47506         * modules/posix_spawn_file_actions_destroy: New file.
47507         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47508         modifications.
47509         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47510         the new module.
47511
47512         New module 'posix_spawn_file_actions_addopen'.
47513         * modules/posix_spawn_file_actions_addopen: New file.
47514         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47515         modifications.
47516         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47517         the new module.
47518
47519         New module 'posix_spawn_file_actions_adddup2'.
47520         * modules/posix_spawn_file_actions_adddup2: New file.
47521         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47522         modifications.
47523         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47524         the new module.
47525
47526         New module 'posix_spawn_file_actions_addclose'.
47527         * modules/posix_spawn_file_actions_addclose: New file.
47528         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47529         modifications.
47530         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47531         the new module.
47532
47533         New module 'posix_spawn_file_actions_init'.
47534         * modules/posix_spawn_file_actions_init: New file.
47535         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47536         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47537         new module.
47538
47539         New module 'posix_spawn-internal'.
47540         * modules/posix_spawn-internal: New file.
47541         * lib/spawn_int.h: New file, from GNU libc with modifications.
47542         * lib/spawni.c: New file, from GNU libc with modifications.
47543         * m4/posix_spawn.m4: New file.
47544
47545         New module 'spawn'.
47546         * modules/spawn: New file.
47547         * lib/spawn.in.h: New file, from GNU libc with modifications.
47548         * m4/spawn_h.m4: New file.
47549         * doc/posix-headers/spawn.texi: Mention the new module.
47550
47551 2008-09-28  Bruno Haible  <bruno@clisp.org>
47552
47553         * modules/sched-tests: New file.
47554         * tests/test-sched.c: New file.
47555
47556         New module 'sched'.
47557         * modules/sched: New file.
47558         * lib/sched.in.h: New file.
47559         * m4/sched_h.m4: New file.
47560         * doc/posix-headers/sched.texi: Mention the new module.
47561
47562 2008-09-27  Eric Blake  <ebb9@byu.net>
47563
47564         Fix previous patch, and tweak references to $0.
47565         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47566         (func_version, func_gnulib_dir): Don't call this program
47567         gnulib-tool.
47568         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47569         with using $0 in function.
47570         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47571         (func_fatal_error): Reuse the name the user invoked us with.
47572
47573 2008-09-27  Bruno Haible  <bruno@clisp.org>
47574
47575         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47576         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47577         (gl_ICONV_H): Not here.
47578         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47579         instead of assigning ICONV_H directly.
47580
47581         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47582         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47583         WCHAR_H directly.
47584
47585 2008-09-27  Bruno Haible  <bruno@clisp.org>
47586
47587         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47588         * modules/arpa_inet (Depends-on): Add link-warning.
47589         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47590         * modules/unistd (Makefile.am): Likewise.
47591
47592 2008-09-26  Bruno Haible  <bruno@clisp.org>
47593
47594         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47595         variables.
47596         (func_version): Essentially copied from gnulib-tool.
47597         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47598         func_readlink): Copied from gnulib-tool.
47599
47600 2008-09-26  Bruno Haible  <bruno@clisp.org>
47601
47602         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47603         invoking git-version-gen.
47604
47605 2008-09-26  Bruno Haible  <bruno@clisp.org>
47606
47607         * posix-modules: Update to directory names changed on 2008-01-19.
47608         Remove commas in output before splitting into words. No more need to
47609         avoid 'ftruncate' since 2007-02-19.
47610
47611 2008-09-26  Bruno Haible  <bruno@clisp.org>
47612
47613         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47614
47615 2008-09-26  Bruno Haible  <bruno@clisp.org>
47616
47617         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47618         * modules/fwriteerror (Depends-on): Add errno.
47619
47620 2008-09-26  Bruno Haible  <bruno@clisp.org>
47621
47622         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47623         * tests/test-vc-list-files-cvs.sh: Likewise.
47624
47625 2008-09-26  Bruno Haible  <bruno@clisp.org>
47626
47627         * doc/posix-headers/sys_resource.texi: Reorder items.
47628
47629 2008-09-26  Jim Meyering  <meyering@redhat.com>
47630
47631         fts: tweak inode comparison function
47632         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47633         inode numbers, as documented.
47634
47635         fts: sort dirent entries on inode number before traversing
47636         This avoids a quadratic, seek-related performance penalty when
47637         operating on a directory containing many entries (measurable at 10k;
47638         3.5 hours at 2 million entries with a cold cache) on certain types
47639         of file systems, including ext3 and ext4, but not tmpfs.
47640         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47641         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47642         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47643         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47644         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47645         (fts_build): Set the stat.st_ino member from D_INO.
47646         If it is likely to be useful, sort dirent entries on inode number.
47647
47648         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47649         and the struct statfs.f_type member.
47650         * modules/fts (Depends-on): Add d-ino.
47651
47652 2008-09-26  Bruno Haible  <bruno@clisp.org>
47653
47654         * modules/sigpipe-die (Depends-on): Add sigpipe.
47655
47656         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47657         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47658         and GNULIB_STDIO_H_SIGPIPE are set.
47659         * lib/stdio-write.c: New file.
47660         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47661         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47662         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47663         REPLACE_STDIO_WRITE_FUNCS.
47664         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47665         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47666         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47667         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47668         * modules/stdio (Files): Add lib/stdio-write.c.
47669         (Makefile.am): Substitute 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         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47674         REPLACE_FPRINTF_POSIX.
47675         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47676         REPLACE_PRINTF_POSIX.
47677         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47678         REPLACE_VFPRINTF_POSIX.
47679         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47680         REPLACE_VPRINTF_POSIX.
47681         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47682         SIGPIPE issue.
47683         * doc/posix-functions/fputc.texi: Likewise.
47684         * doc/posix-functions/fputs.texi: Likewise.
47685         * doc/posix-functions/fwrite.texi: Likewise.
47686         * doc/posix-functions/printf.texi: Likewise.
47687         * doc/posix-functions/putc.texi: Likewise.
47688         * doc/posix-functions/putchar.texi: Likewise.
47689         * doc/posix-functions/puts.texi: Likewise.
47690         * doc/posix-functions/vfprintf.texi: Likewise.
47691         * doc/posix-functions/vprintf.texi: Likewise.
47692
47693         * modules/safe-write (Depends-on): Add write.
47694
47695         * modules/sigpipe-tests: New file.
47696         * tests/test-sigpipe.c: New file.
47697         * tests/test-sigpipe.sh: New file.
47698
47699         * modules/write: New file.
47700         * lib/unistd.in.h: Include <sys/types.h>.
47701         (write): New declaration.
47702         * lib/write.c: New file.
47703         * m4/write.m4: New file.
47704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47705         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47706         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47707         GNULIB_WRITE, REPLACE_WRITE.
47708         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47709         and the SIGPIPE issue.
47710
47711         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47712         (raise): New declaration.
47713         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47714         (ext_signal): New function.
47715         (rpl_raise): New function.
47716         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47717         GNULIB_SIGNAL_H_SIGPIPE.
47718         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47719         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47720
47721         * modules/sigpipe: New file.
47722         * m4/sigpipe.m4: New file.
47723
47724 2008-09-25  Derek Price  <derek@ximbiot.com>
47725             Bruno Haible  <bruno@clisp.org>
47726
47727         * gnulib-tool (func_import): Report all license incompatibilities, not
47728         just the first one.
47729
47730 2008-09-25  Bruno Haible  <bruno@clisp.org>
47731
47732         * gnulib-tool (func_import): When computing the edits, consider not
47733         only the Makefile.ams that exist but also those that will be generated.
47734
47735 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47736
47737         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47738         fixes gnulib-tool --test warning about duplicate dependency.
47739
47740 2008-09-25  Bruno Haible  <bruno@clisp.org>
47741
47742         * gnulib-tool: Don't ask the user to perform edits in the generated
47743         Makefile.ams.
47744         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47745         apply to the Makefile.am being generated.
47746         (func_emit_tests_Makefile_am): Execute edits that apply to the
47747         Makefile.am being generated.
47748         (func_import): Setup list of Makefile.am edits before emitting the
47749         Makefile.ams, not at the end.
47750         (func_create_testdir): Update.
47751         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47752
47753 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47754
47755         * gnulib-tool (func_import): Store the --tests-base option in the
47756         comment in gnulib-cache.m4.
47757
47758 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47759
47760         * NEWS: Document increased portability that sys_select now provides.
47761
47762         * lib/sys_select.in.h: Install select wrapper.
47763         * lib/sys_socket.in.h: Use more descriptive name when there is no
47764         select wrapper.
47765         * lib/winsock-select.c: New.
47766         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47767         Require gl_HEADER_SYS_SOCKET.
47768         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47769         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47770         * tests/test-sys_select.c: Add functional tests.
47771
47772 2008-09-24  Eric Blake  <ebb9@byu.net>
47773
47774         open, fopen: close fd leak in last patch
47775         * lib/open.c (rpl_open): Close fd before returning error.
47776         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47777         * doc/posix-functions/open.texi (open): Document that Irix also
47778         has the bug.
47779         * doc/posix-functions/fopen.texi (fopen): Likewise.
47780         Reported by Paolo Bonzini.
47781
47782 2008-09-24  Bruno Haible  <bruno@clisp.org>
47783
47784         Ensure that a filename ending in a slash cannot be used to access a
47785         non-directory.
47786         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47787         to check whether it's really a directory.
47788         * lib/fopen.c: Include fcntl.h, unistd.h.
47789         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47790         and fdopen().
47791         * modules/fopen (Depends-on): Add unistd.
47792         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47793         * tests/test-fopen.c (main): Likewise.
47794         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47795         * doc/posix-functions/fopen.texi: Likewise.
47796         Reported by Eric Blake.
47797
47798 2008-09-23  Eric Blake  <ebb9@byu.net>
47799
47800         c-stack: avoid compiler optimizations when provoking overflow
47801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47802         recursion harder to optimize, to ensure a stack overflow occurs.
47803         * tests/test-c-stack.c (recurse): Likewise.
47804         Borrowed from libsigsegv.
47805
47806         c-stack: work around Irix sigaltstack bug
47807         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47808         whether sigaltstack uses wrong end of stack_t (copied in part from
47809         libsigsegv).
47810         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47811         Irix bug, without requiring an over-allocation.
47812         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47813         bug.
47814
47815         fopen: document mingw bug on directories
47816         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47817         not allowing a stream visiting a directory, even though reading
47818         from such a stream is not portable.
47819
47820 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47821
47822         * lib/poll.c: Rewrite.
47823         * modules/poll: Depend on alloca.
47824
47825 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47826
47827         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47828         instead define prototypes for a full set of wrappers.  Ensure
47829         that Cygwin does not use the compatibility code, which is only
47830         for MinGW.
47831         * lib/winsock.c: New.
47832         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47833         * modules/sys_socket: Add lib/winsock.c.
47834
47835         * modules/poll-tests: Add errno and perror.
47836         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47837
47838 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47839
47840         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47841
47842 2008-09-23  Bruno Haible  <bruno@clisp.org>
47843
47844         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47845         * doc/glibc-functions/*: Likewise.
47846
47847 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47848
47849         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47850         success.
47851
47852 2008-09-22  Eric Blake  <ebb9@byu.net>
47853             Bruno Haible  <bruno@clisp.org>
47854
47855         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47856         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47857         supply %A but mishandle pseudo-NaN.
47858         Reported by Simon Josefsson.
47859
47860 2008-09-21  Bruno Haible  <bruno@clisp.org>
47861
47862         * tests/test-lock.c (main): Tweak skip message.
47863         * tests/test-tls.c (main): Likewise.
47864
47865 2008-09-21  Bruno Haible  <bruno@clisp.org>
47866
47867         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47868         whether 'struct sigaction' has sa_sigaction here...
47869         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47870         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47871
47872 2008-09-21  Bruno Haible  <bruno@clisp.org>
47873
47874         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47875         section.
47876         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47877         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47878         the new section.
47879         (Support for obsolete systems lacking POSIX:2001): New section.
47880         (String handling <string.h>): Move strdup to the new section.
47881         Suggested by Simon Josefsson and Paolo Bonzini.
47882
47883 2008-09-21  Bruno Haible  <bruno@clisp.org>
47884
47885         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47886         exponents in %e and %g results on 'long double'. Needed for mingw's
47887         improved *printf functions.
47888         * tests/test-vasprintf-posix.c (test_function): Likewise.
47889         * tests/test-snprintf-posix.h (test_function): Likewise.
47890         * tests/test-sprintf-posix.h (test_function): Likewise.
47891         Reported by Eric Blake.
47892
47893 2008-09-21  Bruno Haible  <bruno@clisp.org>
47894
47895         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47896         * tests/test-sprintf-posix.h (test_function): Likewise.
47897
47898 2008-09-21  Bruno Haible  <bruno@clisp.org>
47899
47900         * modules/getpass (Depends-on): Add strdup-posix.
47901
47902         New module 'strdup-posix'.
47903         * modules/strdup-posix: New file.
47904         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47905         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47906         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47907         REPLACE_STRDUP.
47908         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47909         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47911         strdup-posix.
47912
47913         * modules/strdup (Depends-on): Remove malloc-posix.
47914
47915 2008-09-20  Bruno Haible  <bruno@clisp.org>
47916
47917         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47918         Wildenhues.
47919
47920 2008-09-20  Bruno Haible  <bruno@clisp.org>
47921
47922         Ensure that wint_t gets defined on IRIX 5.3.
47923         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47924         * lib/wctype.in.h (wint_t): Likewise.
47925         (__wctype_wint_t): Remove type.
47926         (isw*): Use wint_t instead of __wctype_wint_t.
47927         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47928         * modules/wchar (Files): Add m4/wint_t.m4.
47929         (Makefile.am): Substitute HAVE_WINT_T.
47930         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47931         * tests/test-wctype.c: Check that wint_t is defined.
47932         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47933         * doc/posix-headers/wctype.texi: Likewise.
47934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47935
47936 2008-09-18  Bruno Haible  <bruno@clisp.org>
47937
47938         * gnulib-tool (func_exit): Update comment.
47939
47940 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47941
47942         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47943         assumes strdup exists and does not depend on strdup to return
47944         ENOMEM on out of memory conditions.
47945
47946 2008-09-18  Bruno Haible  <bruno@clisp.org>
47947
47948         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47949         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47950         digits for the exponent.
47951
47952 2008-09-18  Jim Meyering  <meyering@redhat.com>
47953             Bruno Haible  <bruno@clisp.org>
47954
47955         * lib/vasnprintf.c (decimal_point_char): Define also if
47956         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47957
47958 2008-09-16  Bruno Haible  <bruno@clisp.org>
47959         and Eric Blake  <ebb9@byu.net>
47960
47961         vasnprintf: support Irix 5.3
47962         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47963         that mishandle long double infinity.
47964         Reported by Tom G. Christensen.
47965
47966 2008-09-16  Bruno Haible  <bruno@clisp.org>
47967
47968         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47969         Solaris 9.
47970         * doc/glibc-functions/alphasort.texi: Likewise.
47971         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47972
47973 2008-09-16  Jim Meyering  <meyering@redhat.com>
47974
47975         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47976         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47977         a umask modification leak out of a subshell.  Otherwise, the
47978         opensolaris /bin/sh would be accepted and thus cause unwarranted
47979         failures in the coreutils test suite.
47980
47981 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47982
47983         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47984         to succeed.
47985
47986 2008-09-16  Jim Meyering  <meyering@redhat.com>
47987
47988         avoid spurious test failure when library is built without ACL support
47989         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47990         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47991         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47992         * tests/test-copy-acl.sh: Likewise.
47993
47994 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47995
47996         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47997         based on character occurrence counts.
47998
47999 2008-09-15  Eric Blake  <ebb9@byu.net>
48000
48001         tests: avoid some compiler warnings
48002         * tests/test-memchr.c (main): Pass NULL indirectly.
48003         * tests/test-closein.c (main): Avoid unused variable.
48004
48005 2008-09-15  Bruno Haible  <bruno@clisp.org>
48006
48007         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48008         are missing on OpenBSD 4.0 individually.
48009         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48010
48011 2008-09-15  Bruno Haible  <bruno@clisp.org>
48012
48013         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48014         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48015         * doc/posix-functions/perror.texi: Likewise.
48016         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48017         is missing.
48018         Reported by Eric Blake.
48019
48020         * lib/errno.in.h: Use replacement values >= 2000.
48021         Reported by Eric Blake.
48022
48023 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48024
48025         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48026         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48027         limit.
48028         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48029         compareseq was aborted.
48030
48031 2008-09-14  Bruno Haible  <bruno@clisp.org>
48032
48033         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48034         yvec_edit_count.
48035         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48036         (fstrcmp_bounded): Simplify result computation accordingly.
48037
48038 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48039
48040         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48041         (fstrcmp): Define in terms of fstrcmp_bounded.
48042         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48043         lower_bound argument.
48044         Return quickly if the result is certainly < lower_bound.
48045         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48046
48047 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48048
48049         * lib/diffseq.h (EARLY_ABORT): New macro.
48050         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48051         evaluates to true.
48052
48053 2008-09-14  Bruno Haible  <bruno@clisp.org>
48054
48055         * modules/perror-tests: New file.
48056         * tests/test-perror.sh: New file.
48057         * tests/test-perror.c: New file.
48058
48059         New module 'perror'.
48060         * lib/stdio.in.h (perror): New declaration.
48061         * lib/perror.c: New file.
48062         * m4/perror.m4: New file.
48063         * modules/perror: New file.
48064         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48065         * doc/posix-functions/perror.texi: Mention the perror module.
48066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48067         REPLACE_PERROR.
48068         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48069         REPLACE_PERROR.
48070
48071 2008-09-14  Bruno Haible  <bruno@clisp.org>
48072
48073         * modules/stdio (Makefile.am): Reorder to match the order in
48074         lib/stdio.in.h.
48075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48076
48077 2008-09-13  Bruno Haible  <bruno@clisp.org>
48078
48079         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48080
48081 2008-09-13  Bruno Haible  <bruno@clisp.org>
48082
48083         Extend strerror to cover the added errno values.
48084         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48085         (rpl_strerror): Provide error messages for the added errno values and
48086         for the WSA* values.
48087         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48088         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48089         strerror.
48090         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48091         * modules/strerror (Depends-on): Add errno.
48092         * doc/posix-functions/strerror.texi: Document the change.
48093         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48094         and EOVERFLOW.
48095
48096 2008-09-13  Bruno Haible  <bruno@clisp.org>
48097
48098         * modules/EOVERFLOW: Remove file.
48099         * m4/eoverflow.m4: Remove file.
48100         * modules/EOVERFLOW-tests: Remove file.
48101         * tests/test-EOVERFLOW.c: Remove file.
48102         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48103         * modules/ftell (Depends-on): Likewise.
48104         * modules/getdelim (Depends-on): Likewise.
48105         * modules/getugroups (Depends-on): Likewise.
48106         * modules/poll (Depends-on): Likewise.
48107         * modules/snprintf (Depends-on): Likewise.
48108         * modules/sprintf-posix (Depends-on): Likewise.
48109         * modules/vasnprintf (Depends-on): Likewise.
48110         * modules/vasprintf (Depends-on): Likewise.
48111         * modules/vfprintf-posix (Depends-on): Likewise.
48112         * modules/vsnprintf (Depends-on): Likewise.
48113         * modules/vsprintf-posix (Depends-on): Likewise.
48114         * modules/xvasprintf (Depends-on): Likewise.
48115         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48116         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48117         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48118         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48119         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48120         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48121         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48122         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48123         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48124         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48125         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48126         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48127         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48128         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48129         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48130         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48131         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48132         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48133         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48134         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48135         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48136         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48137         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48138         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48139         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48140         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48141         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48142         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48143         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48144         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48145         * MODULES.html.sh: Remove EOVERFLOW.
48146         * NEWS: Mention the change.
48147
48148 2008-09-13  Bruno Haible  <bruno@clisp.org>
48149
48150         * modules/errno-tests: New file.
48151         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48152
48153         * lib/errno.in.h: New file.
48154         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48155         * modules/errno: New file.
48156         * doc/posix-headers/errno.texi: Update documentation.
48157         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48158
48159 2008-09-13  Bruno Haible  <bruno@clisp.org>
48160
48161         * tests/test-poll.c: Use #if for native Windows, rather than testing
48162         __MSVCRT__.
48163
48164 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48165             Bruno Haible  <bruno@clisp.org>
48166
48167         * lib/glob.c: Don't include <pwd.h> on native Windows.
48168         (WINDOWS32): New macro.
48169         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48170
48171 2008-09-13  Bruno Haible  <bruno@clisp.org>
48172
48173         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48174         (ETIMEDOUT): Remove macro.
48175         (glthread_cond_timedwait_multithreaded): New declaration.
48176         (glthread_cond_timedwait): Use it.
48177         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48178         (glthread_cond_timedwait_multithreaded): New function.
48179
48180 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48181
48182         * modules/poll-tests: Do not check for io.h.
48183         * tests/test-poll.c: Check for __MSVCRT__ instead.
48184
48185 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48186
48187         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48188         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48189         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48190
48191 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48192
48193         * modules/poll-tests: New.
48194         * tests/test-poll.c: New.
48195
48196 2008-09-12  Eric Blake  <ebb9@byu.net>
48197
48198         frexp: test for NetBSD failure on -0.0
48199         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48200         not all, bugs from NetBSD 3.0 have been fixed.
48201         * doc/posix-functions/frexp.texi (frexp): Document bug.
48202         Reported by Thomas Klausner.
48203
48204         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48205         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48206         literal -0.0.
48207         Reported by Jonathan C. Patschke <jp@centtech.com>.
48208
48209 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48210
48211         * lib/glthread/cond.h: Use dummy implementation also if
48212         USE_WIN32_THREADS.
48213
48214 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48215
48216         * modules/fnmatch-posix (License): Change to LGPLv2+.
48217         * modules/fnmatch-gnu (License): Likewise.
48218
48219 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48220
48221         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48222
48223 2008-09-11  Jim Meyering  <meyering@redhat.com>
48224
48225         * users.txt: Add gtk-vnc.
48226
48227 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48228
48229         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48230         rotate amounts.
48231
48232         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48233         required for 16-bit and 8-bit rotates.
48234         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48235         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48236         UINT8_MAX instead of hard-coded constants.
48237         Suggested by Paul Eggert.
48238
48239 2008-09-07  Bruno Haible  <bruno@clisp.org>
48240
48241         * tests/test-striconveh.c (main): Check behaviour when converting from
48242         UTF-7.
48243
48244         Make striconveh work better with stateful encodings.
48245         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48246         that iconv does not increment the inptr when returning -1/EINVAL.
48247
48248 2008-09-07  Bruno Haible  <bruno@clisp.org>
48249
48250         * build-aux/config.rpath: Update according to libtool-2.2.6.
48251         * build-aux/config.libpath: Likewise.
48252
48253 2008-09-06  Bruno Haible  <bruno@clisp.org>
48254
48255         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48256         * lib/freadptr.c (freadptr): Likewise.
48257         * lib/freadseek.c (freadptrinc): Likewise.
48258         Reported by Simon Josefsson.
48259
48260 2008-09-06  Bruno Haible  <bruno@clisp.org>
48261
48262         * modules/freadptr (License): Change to LGPLv2+.
48263         * modules/freadseek (License): Likewise.
48264         Suggested by Eric Blake.
48265
48266         * modules/memchr2 (License): Change to LGPLv2+.
48267         Approved by Eric Blake.
48268
48269 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48270             Bruno Haible  <bruno@clisp.org>
48271
48272         Make gnulib-tool work with native 'sed' on AIX.
48273         * gnulib-tool (sed_noop): New variable.
48274         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48275         func_add_or_update, func_create_testdir): Use it to initialize sed
48276         script variables.
48277         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48278
48279 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48280             Bruno Haible  <bruno@clisp.org>
48281
48282         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48283         also works after #include directives.
48284
48285 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
48286
48287         getdate.y: reject an out-of-range timezone value
48288         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48289         the range [-24...+24].  When specified with only one or two digits,
48290         * tests/test-getdate.c: Tests for the fix.
48291         * doc/getdate.texi: Document this change.
48292
48293 2008-09-03  Bruno Haible  <bruno@clisp.org>
48294
48295         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48296
48297 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48298
48299         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48300         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48301         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48302         Blake <ebb9@byu.net>.
48303
48304         * tests/test-bitrotate.c: Add more test vectors.
48305
48306 2008-09-02  Eric Blake  <ebb9@byu.net>
48307
48308         vasnprintf-posix: handle large precision via %.*d
48309         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48310         when handling it ourselves.
48311         * tests/test-vasnprintf-posix.c (test_function): Add test.
48312         * tests/test-snprintf-posix.h (test_function): Likewise.
48313         * tests/test-sprintf-posix.h (test_function): Likewise.
48314         * tests/test-vasprintf-posix.c (test_function): Likewise.
48315         Reported by Alain Guibert.
48316
48317 2008-09-01  Eric Blake  <ebb9@byu.net>
48318
48319         c-stack: make configure-time check more robust
48320         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48321         successful sigaction call.
48322         Reported by Tom G. Christensen.
48323
48324 2008-09-01  Bruno Haible  <bruno@clisp.org>
48325
48326         New module 'findprog-lgpl'.
48327         * modules/findprog-lgpl: New file.
48328         * lib/findprog-lgpl.c: New file.
48329         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48330         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48331         to decide whether to use strdup or xstrdup, concatenated_filename or
48332         xconcatenated_filename.
48333
48334 2008-09-01  Bruno Haible  <bruno@clisp.org>
48335
48336         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48337         'xconcat-filename' (GPL).
48338         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48339         (License): Change to LGPLv2+.
48340         * modules/xconcat-filename: New file.
48341         * lib/concat-filename.h (concatenated_filename): Change specification.
48342         (xconcatenated_filename): New declaration.
48343         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48344         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48345         memory situations.
48346         * lib/xconcat-filename.c: New file.
48347         * NEWS: Mention the change.
48348         * lib/findprog.c: Include concat-filename.h, not filename.h.
48349         (find_in_path): Use xconcatenated_filename instead of
48350         concatenated_filename.
48351         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48352         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48353         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48354         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48355         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48356         instead of concatenated_filename.
48357         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48358         (execute_java_class): Use xconcatenated_filename instead of
48359         concatenated_filename.
48360         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48361         * modules/javacomp (Depends-on): Likewise.
48362         * modules/javaexec (Depends-on): Likewise.
48363
48364 2008-09-01  Bruno Haible  <bruno@clisp.org>
48365
48366         Split module 'filename' into 'filename' and 'concat-filename'.
48367         * modules/filename: Keep only lib/filename.h.
48368         (License): Change to LGPLv2+.
48369         * modules/concat-filename: New file, extracted from modules/filename.
48370         * lib/filename.h (concatenated_filename): Remove declaration.
48371         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48372         * lib/concat-filename.c: Include concat-filename.h.
48373         * NEWS: Mention the change.
48374
48375 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48376
48377         * lib/bitrotate.h (rotl8, rotr8): Add.
48378
48379         * modules/bitrotate (configure.ac): Need
48380         AC_REQUIRE([AC_C_INLINE]).
48381         (Description): Mention stdint.h.  Reported by Bruno Haible
48382         <bruno@clisp.org>.
48383
48384         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48385         Paolo Bonzini <bonzini@gnu.org>.
48386
48387 2008-08-31  Bruno Haible  <bruno@clisp.org>
48388
48389         Assume Solaris specific bi-arch conventions on Solaris systems.
48390         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48391         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48392         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48393         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48394         like acl_libdirstem.
48395         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48396         acl_libdirstem.
48397         * NEWS: Mention the change.
48398         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48399
48400 2008-08-31  Jim Meyering  <meyering@redhat.com>
48401
48402         * lib/strftime.h: Add comments describing the two added arguments.
48403
48404         remove duplicate #include directives
48405         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48406         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48407
48408 2008-08-31  Bruno Haible  <bruno@clisp.org>
48409
48410         New module 'sigpipe-die'.
48411         * modules/sigpipe-die: New file.
48412         * lib/sigpipe-die.h: New file.
48413         * lib/sigpipe-die.c: New file.
48414         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48415
48416 2008-08-31  Bruno Haible  <bruno@clisp.org>
48417
48418         Don't override previously installed signal handlers.
48419         * lib/fatal-signal.c (saved_sigactions): New variable.
48420         (uninstall_handlers): Reset the signal to the saved handler, not
48421         to SIG_DFL (except when ignored).
48422         (install_handlers): Save the previous handlers.
48423
48424 2008-08-30  Bruno Haible  <bruno@clisp.org>
48425
48426         * gnulib-tool (func_reset_sigpipe): New function.
48427         (func_get_automake_snippet, func_modules_transitive_closure,
48428         func_import): Invoke it before a join command that reads from stdin,
48429         to avoid "echo: write error: Broken pipe" error messages on stderr.
48430         Reported by Sam Steingold <sds@gnu.org>.
48431
48432 2008-08-30  Bruno Haible  <bruno@clisp.org>
48433
48434         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48435         Code copied from m4/open.m4.
48436         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48437         access and the filename ends in a slash. Code copied from lib/open.c.
48438         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48439         * tests/test-fopen.c (main): Check against bug with trailing slash.
48440
48441 2008-08-29  Bruno Haible  <bruno@clisp.org>
48442
48443         Avoid some "gcc -pedantic" warnings.
48444         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48445         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48446         * lib/dirent.in.h: Likewise.
48447         * lib/fcntl.in.h: Likewise.
48448         * lib/float.in.h: Likewise.
48449         * lib/iconv.in.h: Likewise.
48450         * lib/inttypes.in.h: Likewise.
48451         * lib/locale.in.h: Likewise.
48452         * lib/math.in.h: Likewise.
48453         * lib/netinet_in.in.h: Likewise.
48454         * lib/search.in.h: Likewise.
48455         * lib/signal.in.h: Likewise.
48456         * lib/stdarg.in.h: Likewise.
48457         * lib/stdint.in.h: Likewise.
48458         * lib/stdio.in.h: Likewise.
48459         * lib/stdlib.in.h: Likewise.
48460         * lib/string.in.h: Likewise.
48461         * lib/strings.in.h: Likewise.
48462         * lib/sys_select.in.h: Likewise.
48463         * lib/sys_socket.in.h: Likewise.
48464         * lib/sys_stat.in.h: Likewise.
48465         * lib/sys_time.in.h: Likewise.
48466         * lib/sysexits.in.h: Likewise.
48467         * lib/time.in.h: Likewise.
48468         * lib/unistd.in.h: Likewise.
48469         * lib/wchar.in.h: Likewise.
48470         * lib/wctype.in.h: Likewise.
48471         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48472         * modules/fchdir (Makefile.am): Likewise.
48473         * modules/fcntl (Makefile.am): Likewise.
48474         * modules/float (Makefile.am): Likewise.
48475         * modules/iconv_open (Makefile.am): Likewise.
48476         * modules/inttypes (Makefile.am): Likewise.
48477         * modules/locale (Makefile.am): Likewise.
48478         * modules/math (Makefile.am): Likewise.
48479         * modules/netinet_in (Makefile.am): Likewise.
48480         * modules/search (Makefile.am): Likewise.
48481         * modules/signal (Makefile.am): Likewise.
48482         * modules/stdarg (Makefile.am): Likewise.
48483         * modules/stdint (Makefile.am): Likewise.
48484         * modules/stdio (Makefile.am): Likewise.
48485         * modules/stdlib (Makefile.am): Likewise.
48486         * modules/string (Makefile.am): Likewise.
48487         * modules/strings (Makefile.am): Likewise.
48488         * modules/sys_select (Makefile.am): Likewise.
48489         * modules/sys_socket (Makefile.am): Likewise.
48490         * modules/sys_stat (Makefile.am): Likewise.
48491         * modules/sys_time (Makefile.am): Likewise.
48492         * modules/sysexits (Makefile.am): Likewise.
48493         * modules/time (Makefile.am): Likewise.
48494         * modules/unistd (Makefile.am): Likewise.
48495         * modules/wchar (Makefile.am): Likewise.
48496         * modules/wctype (Makefile.am): Likewise.
48497         Reported by Reuben Thomas <rrt@sc3d.org>.
48498
48499 2008-08-29  Bruno Haible  <bruno@clisp.org>
48500
48501         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48502         any more.
48503
48504 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48505
48506         * MODULES.html.sh (Misc): Add bitrotate.
48507
48508         * modules/bitrotate: New file.
48509
48510         * lib/bitrotate.h: New file.
48511
48512         * modules/bitrotate-tests: New file.
48513
48514         * tests/test-bitrotate.c: New file.
48515
48516         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48517         on the bitrotate module.
48518
48519         * lib/arctwo.c: Use new bitrotate module.
48520
48521 2008-08-29  Jim Meyering  <meyering@redhat.com>
48522
48523         bootstrap: merge changes from coreutils
48524         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48525         of copied files.  Remove a kludge, now that this is fixed.
48526         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48527         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48528         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48529
48530 2008-08-29  Bruno Haible  <bruno@clisp.org>
48531
48532         * MODULES.html.sh: Remove --cvs-urls option.
48533
48534 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48535
48536         maint.mk: adjust to file name change
48537         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48538
48539 2008-08-28  Jim Meyering  <meyering@redhat.com>
48540
48541         * modules/getndelim2 (License): Relicense to LGPLv2+.
48542         Approved by Richard Stallman for the version of 1995, and by
48543         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48544
48545 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48546
48547         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48548         dummy if one is not available.  Do not touch them if
48549         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48550         (getc_maybe_unlocked): New.
48551         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48552
48553 2008-08-26  Eric Blake  <ebb9@byu.net>
48554
48555         doc/INSTALL: resync from autoconf
48556         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48557         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48558         moving...
48559         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48560         * INSTALL: Regenerate.
48561         * INSTALL.ISO: New file.
48562         * INSTALL.UTF-8: Likewise.
48563
48564 2008-08-26  Jim Meyering  <meyering@redhat.com>
48565
48566         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48567         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48568         these definitions conditional, so that they may be overridden, too.
48569
48570 2008-08-26  Bruno Haible  <bruno@clisp.org>
48571
48572         Generate INSTALL file variants with prettier quotes.
48573         * doc/Makefile (INSTALL_PRELUDE): New macro.
48574         (INSTALL): Use it.
48575         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48576
48577 2008-08-26  Bruno Haible  <bruno@clisp.org>
48578
48579         Run makeinfo in an English locale.
48580         * doc/Makefile (MAKEINFO): New variable.
48581
48582 2008-08-26  Bruno Haible  <bruno@clisp.org>
48583
48584         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48585         Suggested by Eric Blake.
48586
48587 2008-08-25  Bruno Haible  <bruno@clisp.org>
48588
48589         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48590
48591 2008-08-25  Eric Blake  <ebb9@byu.net>
48592
48593         c-stack: test that stack overflow can be caught
48594         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48595         that platform allows handling stack overflow; at least OS/2 EMX
48596         has sigaltstack, but crashes before transferring control to
48597         handler on stack overflow.
48598         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48599         check for HAVE_STACK_OVERFLOW_HANDLING.
48600         Reported by Elbert Pol.
48601
48602 2008-08-25  Bruno Haible  <bruno@clisp.org>
48603
48604         * doc/posix-functions/strftime.texi: Fix description of strftime
48605         module.
48606
48607 2008-08-24  Bruno Haible  <bruno@clisp.org>
48608
48609         * tests/uniwidth/test-uc_width2.c: New file.
48610         * tests/uniwidth/test-uc_width2.sh: New file.
48611         * modules/uniwidth/width-tests (Files): Add the new files.
48612         (TESTS): Add uniwidth/test-uc_width2.sh.
48613         (TESTS_ENVIRONMENT): New variable.
48614         (check_PROGRAMS): Add test-uc_width2.
48615         (test_uc_width2_SOURCES): New variable.
48616
48617         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48618         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48619         not 0x00AB.
48620         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48621
48622 2008-08-22  Eric Blake  <ebb9@byu.net>
48623
48624         test-lock, test-tls: mention why a test is skipped
48625         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48626         skipped.
48627         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48628
48629         count-one-bits: relax license
48630         * modules/count-one-bits (License): Relicense to LGPLv2+.
48631         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48632
48633 2008-08-22  Andreas Schwab  <schwab@suse.de>
48634
48635         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48636         Remove spurious space in assignment.
48637
48638 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48639
48640         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48641         Paul Eggert <eggert@CS.UCLA.EDU>.
48642
48643 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48644
48645         * modules/gettext: Add m4/threadlib.m4.
48646
48647 2008-08-19  Eric Blake  <ebb9@byu.net>
48648
48649         test-c-stack: fix compilation failure on FreeBSD 5.0
48650         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48651         headers before <sys/resource.h>.
48652         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48653         the bug.
48654         Reported by Nelson H. F. Beebe.
48655
48656         strverscmp: migrate from "strverscmp.h" to <string.h>
48657         * modules/string (Makefile.am): Add new hooks.
48658         * modules/strverscmp (Files): Remove strverscmp.h.
48659         (Depends-on): Add string.
48660         (configure.ac): Add indicator.
48661         (Include): Mention new header.
48662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48663         defaults.
48664         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48665         results.
48666         * lib/strverscmp.h: Delete.
48667         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48668         * tests/test-strverscmp.c (includes): Adjust client.
48669         * lib/check-version.c (includes): Likewise.
48670         * NEWS: Document the change.
48671
48672         strverscmp: add unit test
48673         * modules/strverscmp-tests: New file.
48674         * tests/test-strverscmp.c: Likewise.
48675
48676 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48677
48678         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48679         regarding Windows crypto stuff, from Mono.
48680
48681 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48682
48683         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48684         if present, for intel RND.  Return error on failures.
48685
48686 2008-08-18  Ben Pfaff  <blp@gnu.org>
48687
48688         gitlog-to-changelog: give better diagnostic for failed pipe-open
48689         * build-aux/gitlog-to-changelog: Improve error message: suggest
48690         that the version of Git may be too old.
48691
48692 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48693
48694         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48695         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48696
48697 2008-08-18  Bruno Haible  <bruno@clisp.org>
48698
48699         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48700         pthread_in_use().
48701
48702 2008-08-18  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/glthread/threadlib.c: Include <pthread.h>.
48705
48706 2008-08-18  Bruno Haible  <bruno@clisp.org>
48707
48708         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48709         glthread_recursive_lock_* macros.
48710         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48711         Fix syntax error.
48712
48713 2008-08-18  Bruno Haible  <bruno@clisp.org>
48714
48715         * lib/glthread/thread.c: Avoid forcing a context switch right after
48716         thread creation.
48717
48718 2008-08-17  Bruno Haible  <bruno@clisp.org>
48719
48720         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48721         * lib/glthread/thread.h: Provide Win32 specific implementation.
48722         * modules/thread (Files): Add lib/glthread/thread.c.
48723         (Depends-on): Add lock.
48724         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48725
48726 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48727
48728         New module 'yield'.
48729         * modules/yield: New file.
48730         * lib/glthread/yield.h: New file.
48731         * m4/yield.m4: New file.
48732         * MODULES.html.sh (Multithreading): Add yield.
48733
48734 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48735
48736         New module 'thread'.
48737         * modules/thread: New file.
48738         * lib/glthread/thread.h: New file.
48739         * m4/thread.m4: New file.
48740         * MODULES.html.sh (Multithreading): Add thread.
48741
48742 2008-08-17  Bruno Haible  <bruno@clisp.org>
48743
48744         * lib/glthread/lock.h: Include <stdlib.h> always.
48745         * lib/glthread/tls.h: Likewise.
48746         * lib/glthread/cond.h: Likewise.
48747
48748 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48749
48750         New module 'cond'.
48751         * modules/cond: New file.
48752         * lib/glthread/cond.h: New file.
48753         * lib/glthread/cond.c: New file.
48754         * m4/cond.m4: New file.
48755         * MODULES.html.sh (Multithreading): Add cond.
48756
48757 2008-08-16  Eric Blake  <ebb9@byu.net>
48758
48759         c-stack: fix regression on Irix 5.3 from 2008-06-21
48760         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48761         sa_sigaction...
48762         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48763         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48764         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48765         * modules/signal (Makefile.am): Use the value.
48766         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48767         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48768         * doc/posix-headers/signal.texi (signal.h): Document this
48769         portability issue.
48770         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48771         Reported by Tom G. Christensen.
48772
48773 2008-08-17  Bruno Haible  <bruno@clisp.org>
48774
48775         New module 'threadlib'.
48776         * modules/threadlib: New file.
48777         * lib/glthread/threadlib.c: New file, extracted from
48778         lib/glthread/lock.c.
48779         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48780         functions.
48781         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48782         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48783         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48784         macros.
48785         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48786         (gl_DISABLE_THREADS): Remove macro.
48787         * modules/lock (Files): Remove build-aux/config.rpath.
48788         (Depends-on): Remove havelib. Add threadlib.
48789         (configure.ac-early): Remove section.
48790         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48791         * modules/tls (Depends-on): Remove lock. Add threadlib.
48792         (Link): New section, copied from threadlib.
48793         * MODULES.html.sh (Multithreading): Add threadlib.
48794
48795 2008-08-14  Bruno Haible  <bruno@clisp.org>
48796
48797         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48798         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48799         glthread_rwlock_unlock, glthread_rwlock_destroy,
48800         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48801         glthread_recursive_lock_destroy): Define as macros always.
48802         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48803         glthread_lock_lock.
48804         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48805         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48806         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48807         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48808         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48809         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48810         (glthread_recursive_lock_lock_func): Renamed from
48811         glthread_recursive_lock_lock.
48812         (glthread_recursive_lock_unlock_func): Renamed from
48813         glthread_recursive_lock_unlock.
48814         (glthread_recursive_lock_destroy_func): Renamed from
48815         glthread_recursive_lock_destroy.
48816
48817 2008-08-14  Bruno Haible  <bruno@clisp.org>
48818
48819         * lib/glthread/lock.h: Renamed from lib/lock.h.
48820         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48821         * lib/glthread/tls.h: Renamed from lib/tls.h.
48822         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48823         * lib/fstrcmp.c: Update includes.
48824         * lib/strsignal.c: Update includes.
48825         * modules/lock (Files, Makefile.am): Update.
48826         (Include): Change to "glthread/lock.h".
48827         * modules/tls (Files, Makefile.am): Update.
48828         (Include): Change to "glthread/tls.h".
48829         * tests/test-lock.c: Update includes.
48830         * tests/test-tls.c: Update includes.
48831         * NEWS: Mention the renamed header files.
48832
48833 2008-08-11  Jim Meyering  <meyering@redhat.com>
48834
48835         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48836
48837 2008-08-11  Eric Blake  <ebb9@byu.net>
48838
48839         test-c-stack: avoid C99-ism
48840         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48841         before statement.
48842         Reported by Alain Guibert.
48843
48844 2008-08-10  Jim Meyering  <meyering@redhat.com>
48845
48846         ensure that return value of uinttostr et al are not ignored
48847         * lib/inttostr.h (__GNUC_PREREQ): Define.
48848         (__attribute_warn_unused_result__): Define.
48849         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48850
48851 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48852
48853         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48854         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48855
48856 2008-08-07  Jim Meyering  <meyering@redhat.com>
48857
48858         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48859
48860         * modules/mkstemp (License): Relicense under LGPLv2+.
48861         * modules/tempname (License): Likewise.
48862
48863 2008-08-06  Bruno Haible  <bruno@clisp.org>
48864
48865         * lib/poll.c (poll): Further micro-optimization.
48866
48867 2008-08-06  Jim Meyering  <meyering@redhat.com>
48868
48869         inet_pton.c: use locale-independent tolower
48870         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48871         (inet_pton6): Use c_tolower rather than tolower.
48872         * modules/inet_pton (Depends-on): Add c-ctype.
48873
48874 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48875
48876         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48877         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48878
48879 2008-08-06  Jim Meyering  <meyering@redhat.com>
48880
48881         * modules/inet_pton (License): Relicense under LGPLv2+.
48882
48883 2008-08-03  Bruno Haible  <bruno@clisp.org>
48884
48885         Additional non-aborting API for lock and tls.
48886         * lib/lock.h: Include <errno.h>.
48887         (glthread_lock_init): New macro/function.
48888         (gl_lock_init): Define as wrapper around glthread_lock_init.
48889         (glthread_lock_lock): New macro/function.
48890         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48891         (glthread_lock_unlock): New macro/function.
48892         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48893         (glthread_lock_destroy): New macro/function.
48894         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48895         (glthread_rwlock_init): New macro/function.
48896         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48897         (glthread_rwlock_rdlock): New macro/function.
48898         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48899         (glthread_rwlock_wrlock): New macro/function.
48900         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48901         (glthread_rwlock_unlock): New macro/function.
48902         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48903         (glthread_rwlock_destroy): New macro/function.
48904         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48905         (glthread_recursive_lock_init): New macro/function.
48906         (gl_recursive_lock_init): Define as wrapper around
48907         glthread_recursive_lock_init.
48908         (glthread_recursive_lock_lock): New macro/function.
48909         (gl_recursive_lock_lock): Define as wrapper around
48910         glthread_recursive_lock_lock.
48911         (glthread_recursive_lock_unlock): New macro/function.
48912         (gl_recursive_lock_unlock): Define as wrapper around
48913         glthread_recursive_lock_unlock.
48914         (glthread_recursive_lock_destroy): New macro/function.
48915         (gl_recursive_lock_destroy): Define as wrapper around
48916         glthread_recursive_lock_destroy.
48917         (glthread_once): New macro/function.
48918         (gl_once): Define as wrapper around glthread_once.
48919         Update function declarations.
48920         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48921         glthread_rwlock_init. Return error code.
48922         (glthread_rwlock_rdlock_multithreaded): Renamed from
48923         glthread_rwlock_rdlock. Return error code.
48924         (glthread_rwlock_wrlock_multithreaded): Renamed from
48925         glthread_rwlock_wrlock. Return error code.
48926         (glthread_rwlock_unlock_multithreaded): Renamed from
48927         glthread_rwlock_unlock. Return error code.
48928         (glthread_rwlock_destroy_multithreaded): Renamed from
48929         glthread_rwlock_destroy. Return error code.
48930         (glthread_recursive_lock_init_multithreaded): Renamed from
48931         glthread_recursive_lock_init. Return error code.
48932         (glthread_recursive_lock_lock_multithreaded): Renamed from
48933         glthread_recursive_lock_lock. Return error code.
48934         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48935         glthread_recursive_lock_unlock. Return error code.
48936         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48937         glthread_recursive_lock_destroy. Return error code.
48938         (glthread_once_call): Make static.
48939         (glthread_once_multithreaded): Renamed from glthread_once.
48940         * lib/tls.h: Include <errno.h>.
48941         (glthread_tls_key_init): New macro/function.
48942         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48943         (glthread_tls_set): New macro/function.
48944         (gl_tls_set): Define as wrapper around glthread_tls_set.
48945         (glthread_tls_key_destroy): New macro/function.
48946         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48947         Update function declarations.
48948         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48949         glthread_tls_get.
48950         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48951
48952 2008-08-04  Eric Blake  <ebb9@byu.net>
48953
48954         gnumakefile: use space, not TAB, outside of targets
48955         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48956
48957 2008-08-02  Jim Meyering  <meyering@redhat.com>
48958
48959         getdate.y: avoid locale-dependent date parsing failure
48960         In Turkish locales, getdate would fail to recognize keywords
48961         containing a lowercase "i".  The solution is not to rely on
48962         locale-sensitive case-conversion.
48963         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48964         (lookup_word): Use c_toupper in place of toupper.
48965         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48966         Reported by Vefa Bicakci <bicave@superonline.com> in
48967         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48968         * modules/getdate (Depends-on): Add c-ctype.
48969
48970 2008-08-02  Bruno Haible  <bruno@clisp.org>
48971
48972         * gnulib-tool (func_import): When updating or creating a .gitignore
48973         file, prepend each added line with a slash, and ignore leading slashes
48974         from the existing lines.
48975         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48976
48977 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48978
48979         Portability fix for GNU make 3.79.1.
48980         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48981         versions do not understand.
48982
48983 2008-08-01  Bruno Haible  <bruno@clisp.org>
48984
48985         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48986         * tests/test-isnanf.h (zero): New variable.
48987         (main): Avoid literal -0.0f.
48988         * tests/test-isnand.h (zero): New variable.
48989         (main): Avoid literal -0.0.
48990         * tests/test-isnanl.h (zero): New variable.
48991         (main): Avoid literal -0.0L.
48992         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48993         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48994         -0.0, -0.0L.
48995         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48996         (test_signbitd): Avoid literal -0.0.
48997         (test_signbitl): Avoid literal -0.0L.
48998         * tests/test-ceilf1.c (zero): New variable.
48999         (main): Avoid literal -0.0f.
49000         * tests/test-ceill.c (zero): New variable.
49001         (main): Avoid literal -0.0L.
49002         * tests/test-floorf1.c (zero): New variable.
49003         (main): Avoid literal -0.0f.
49004         * tests/test-floorl.c (zero): New variable.
49005         (main): Avoid literal -0.0L.
49006         * tests/test-roundf1.c (zero): New variable.
49007         (main): Avoid literal -0.0f.
49008         * tests/test-round1.c (zero): New variable.
49009         (main): Avoid literal -0.0.
49010         * tests/test-roundl.c (zero): New variable.
49011         (main): Avoid literal -0.0L.
49012         * tests/test-truncf1.c (zero): New variable.
49013         (main): Avoid literal -0.0f.
49014         * tests/test-trunc1.c (zero): New variable.
49015         (main): Avoid literal -0.0.
49016         * tests/test-truncl.c (zero): New variable.
49017         (main): Avoid literal -0.0L.
49018         * tests/test-frexp.c (zero): New variable.
49019         (main): Avoid literal -0.0.
49020         * tests/test-frexpl.c (zero): New variable.
49021         (main): Avoid literal -0.0L.
49022         * tests/test-ldexpl.c (zero): New variable.
49023         (main): Avoid literal -0.0L.
49024         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49025         (zerod, zerol): New variables.
49026         (test_function): Avoid literals -0.0, -0.0L.
49027         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49028         (zerod, zerol): New variables.
49029         (test_function): Avoid literals -0.0, -0.0L.
49030         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49031         (zerod, zerol): New variables.
49032         (test_function): Avoid literals -0.0, -0.0L.
49033         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49034         (zerod, zerol): New variables.
49035         (test_function): Avoid literals -0.0, -0.0L.
49036         * tests/test-strtod.c (zero): New variable.
49037         (main): Avoid literal -0.0.
49038         Reported by Jonathan C. Patschke <jp@centtech.com>.
49039
49040 2008-07-31  Jim Meyering  <meyering@redhat.com>
49041
49042         sha256.h: correct definition of SHA224_DIGEST_SIZE
49043         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49044         Reported by Paulie Pena IV <paulie4@gmail.com>.
49045         Define as 224 / 8, rather than as a literal.
49046         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49047         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49048         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49049
49050 2008-07-31  Bruno Haible  <bruno@clisp.org>
49051
49052         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49053         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49054         Reported by Jonathan Patschke <jp@centtech.com>.
49055
49056 2008-07-31  Bruno Haible  <bruno@clisp.org>
49057
49058         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49059         Reported by Paolo Bonzini <bonzini@gnu.org>.
49060
49061 2008-07-30  Eric Blake  <ebb9@byu.net>
49062
49063         test-strtod: allow compilation without -lm
49064         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49065         Reported by Dennis Clarke <blastwave@gmail.com>.
49066
49067 2008-07-28  Jim Meyering  <meyering@redhat.com>
49068
49069         bootstrap: work also when there are no .po files in po/
49070         * build-aux/bootstrap (update_po_files): Complete the change
49071         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49072
49073 2008-07-27  Jim Meyering  <meyering@redhat.com>
49074
49075         * users.txt: Add zile.
49076
49077 2008-07-26  Ben Pfaff  <blp@gnu.org>
49078
49079         Add missing dependencies on new m4/exponent[fdl].m4 files.
49080         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49081         * modules/isnand-nolibm: Add m4/exponentd.m4.
49082         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49083         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49084         m4/isnan[fdl].m4, because the macros actually used moved.
49085         Reported by Jim Meyering.
49086
49087 2008-07-14  Ben Pfaff  <blp@gnu.org>
49088
49089         Add isinf module.
49090         * lib/isinf.c: New file.
49091         * lib/math.in.h: Define isinf macro if we have decided to replace
49092         it.
49093         * m4/isinf.m4: New file.
49094         * m4/math_h.m4: Initialize and substitute variables for isinf
49095         module.
49096         * modules/isinf: New file.
49097         * modules/isinf-tests: New file.
49098         * modules/math: Add substitutions for new module.
49099         * tests/test-isinf.c: New file.
49100         * doc/posix-functions/isinf.texi: Mention new module.
49101         * MODULES.html.sh: Mention new module.
49102
49103 2008-07-14  Ben Pfaff  <blp@gnu.org>
49104
49105         Factor out some macros for use by additional modules.
49106         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49107         exponentf.m4.
49108         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49109         exponentd.m4.
49110         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49111         file exponentl.m4.
49112         * m4/exponentf.m4: New file.
49113         * m4/exponentd.m4: New file.
49114         * m4/exponentl.m4: New file.
49115         * modules/isnanf: Use new file m4/exponentf.m4.
49116         * modules/isnand: Use new file m4/exponentd.m4.
49117         * modules/isnanl: Use new file m4/exponentl.m4.
49118
49119 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49120
49121         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49122         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49123         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49124         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49125
49126         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49127         readlink on platforms without PATH_MAX.
49128
49129 2008-07-21  Eric Blake  <ebb9@byu.net>
49130
49131         Warn, not fail, on stale version.
49132         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49133
49134         Don't allow installation with stale devel version number.
49135         * top/GNUmakefile (_is-install-target): New macro.
49136         (_curr-ver): Forbid installation with stale version number.
49137
49138 2008-07-20  Bruno Haible  <bruno@clisp.org>
49139
49140         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49141         TESTS_ENVIRONMENT.
49142         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49143
49144 2008-07-20  Bruno Haible  <bruno@clisp.org>
49145
49146         * lib/c-stack.h (c_stack_action): Add documentation.
49147         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49148
49149 2008-07-20  Bruno Haible  <bruno@clisp.org>
49150
49151         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49152         * modules/readlink (License): Likewise.
49153
49154 2008-07-17  Eric Blake  <ebb9@byu.net>
49155
49156         * modules/c-stack (Link): Fix typo.
49157
49158         Make c-stack use libsigsegv, when available.
49159         * modules/c-stack (Depends-on): Add libsigsegv.
49160         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49161         needed.
49162         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49163         (segv_handler, overflow_handler, c_stack_action)
49164         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49165         implementation when libsigsegv is available, but only when using
49166         the library is necessary.
49167         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49168         comment, explaining why XSI check fails on Linux.
49169         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49170         * tests/test-c-stack2.sh: Tweak skip message.
49171         * NEWS: Document new link-time requirements.
49172
49173 2008-07-16  Eric Blake  <ebb9@byu.net>
49174
49175         c-stack: Expose false positives when not using libsigsegv.
49176         * modules/c-stack-tests (Files): Expand test.
49177         * tests/test-c-stack.c (main): Add means to conditionally trigger
49178         non-overflow SIGSEGV.
49179         * tests/test-c-stack2.sh: New file.
49180
49181 2008-07-14  Bruno Haible  <bruno@clisp.org>
49182
49183         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49184         Reported by Eric Blake.
49185
49186 2008-07-14  Sam Steingold  <sds@gnu.org>
49187             Bruno Haible  <bruno@clisp.org>
49188
49189         New module libsigsegv.
49190         * modules/libsigsegv: New file.
49191         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49192         modifications.
49193         * MODULES.html.sh (Signal handling): New section.
49194
49195 2008-07-14  Bruno Haible  <bruno@clisp.org>
49196
49197         * modules/unictype/ctype-* (Description): Add the word "function".
49198         Improves the resulting doc in MODULES.html.
49199
49200 2008-07-12  Ben Pfaff  <blp@gnu.org>
49201
49202         Add longlong module.
49203         * modules/longlong: New file.
49204
49205 2008-07-12  Bruno Haible  <bruno@clisp.org>
49206
49207         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49208         to empty.
49209
49210 2008-07-10  Ben Pfaff  <blp@gnu.org>
49211
49212         Add isnan module.
49213         * doc/posix-functions/isnan.texi: Mention new module.
49214         * lib/math.in.h: Define isnan macro if we have decided to replace
49215         it.
49216         * m4/isnan.m4: New file.
49217         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49218         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49219         also.
49220         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49221         redundancy.
49222         * m4/math_h.m4: Initialize and substitute variables for isnan
49223         module.
49224         * modules/isnan: New file.
49225         * modules/isnan-tests: New file.
49226         * modules/math: Add substitutions for new module.
49227         * tests/test-isnan.c: New file.
49228         * MODULES.html.sh: Mention new module.
49229
49230 2008-07-10  Ben Pfaff  <blp@gnu.org>
49231
49232         Add isnanf module.
49233         * lib/isnanf.m4: New file.
49234         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49235         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49236         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49237         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49238         * modules/isnanf: New file.
49239         * modules/isnanf-tests: New file.
49240         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49241         files.
49242         * tests/test-isnanf-nolibm.c: factored most of its contents into
49243         new file tests/test-isnanf.h.
49244         * tests/test-isnanf.h: New file.
49245         * tests/test-isnanf.c: New file.
49246         * MODULES.html.sh: Mention new module.
49247         * doc/glibc-functions/isnanf.texi: Mention new module.
49248
49249 2008-07-10  Ben Pfaff  <blp@gnu.org>
49250
49251         Add isnand module.
49252         * lib/isnand.h: New file.
49253         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49254         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49255         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49256         functionality also.
49257         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49258         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49259         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49260         * modules/isnand: New file.
49261         * modules/isnand-tests: New file.
49262         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49263         files.
49264         * tests/test-isnand-nolibm.c: factored most of its contents into
49265         new file tests/test-isnand.h.
49266         * tests/test-isnand.h: New file.
49267         * tests/test-isnand.c: New file.
49268         * MODULES.html.sh: Mention new module.
49269
49270 2008-07-10  Ben Pfaff  <blp@gnu.org>
49271
49272         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49273         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49274         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49275         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49276         * modules/isnanf-nolibm: Update references to renamed files.
49277         * modules/isnand-nolibm: Likewise.
49278         * modules/isnanf-nolibm-tests: Likewise.
49279         * modules/isnand-nolibm-tests: Likewise.
49280         * lib/frexp.c: Likewise.
49281         * lib/isfinite.c: Likewise.
49282         * lib/signbitd.c: Likewise.
49283         * lib/signbitf.c: Likewise.
49284         * lib/vasnprintf.c: Likewise.
49285         * tests/test-ceilf1.c: Likewise.
49286         * tests/test-ceilf2.c: Likewise.
49287         * tests/test-floorf1.c: Likewise.
49288         * tests/test-floorf2.c: Likewise.
49289         * tests/test-frexp.c: Likewise.
49290         * tests/test-round1.c: Likewise.
49291         * tests/test-round2.c: Likewise.
49292         * tests/test-roundf1.c: Likewise.
49293         * tests/test-strtod.c: Likewise.
49294         * tests/test-trunc1.c: Likewise.
49295         * tests/test-trunc2.c: Likewise.
49296         * tests/test-truncf1.c: Likewise.
49297         * tests/test-truncf2.c: Likewise.
49298         * NEWS: Mention the renamed header files.
49299
49300 2008-07-11  Jim Meyering  <meyering@redhat.com>
49301
49302         vc-list-files: make the last-resort awk code more portable
49303         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49304         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49305         does not support it.
49306
49307 2008-07-10  Eric Blake  <ebb9@byu.net>
49308
49309         Work with tar's bootstrap.
49310         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49311         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49312         an m4 comment.
49313
49314 2008-07-09  Jim Meyering  <meyering@redhat.com>
49315
49316         posix-shell.m4: fix typo that made this test malfunction
49317         * m4/posix-shell.m4: Remove capitalization in variable name.
49318
49319 2008-07-08  Bruno Haible  <bruno@clisp.org>
49320
49321         * m4/onceonly.m4: Update comments.
49322         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49323
49324 2008-07-04  Jim Meyering  <meyering@redhat.com>
49325
49326         * users.txt: Add vc-dwim.
49327         (bison, coreutils): Use the gitweb URL.
49328
49329 2008-07-03  Jim Meyering  <meyering@redhat.com>
49330
49331         * users.txt: Add libffcall.  From Sam Steingold.
49332
49333 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
49334
49335         getdate.y: do not ignore TZ with relative day, month or year offset
49336         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49337         relative-date-handling, since otherwise, the latter would clobber the
49338         sole output (an updated Start value) of the tz-handling block.
49339         * tests/test-getdate.c: Tests for the fix
49340
49341 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49342
49343         Recognize 'foo_LIBRARIES += libgnu.a'.
49344         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49345         makefile snippet has already specified an installation location,
49346         also using '+='.
49347
49348 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
49349
49350         getdate.y: factor out common actions
49351         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49352         Use them in place of open-coded actions.
49353
49354 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49355
49356         Add self-test for getdate module.
49357         * modules/getdate-tests: New file.
49358         * tests/test-getdate.c: New file.
49359
49360 2008-06-29  Bruno Haible  <bruno@clisp.org>
49361
49362         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49363         .gitignore.
49364         Reported by Sylvain Beucler <beuc@beuc.net>.
49365
49366 2008-06-29  Bruno Haible  <bruno@clisp.org>
49367
49368         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49369         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49370
49371 2008-06-29  Bruno Haible  <bruno@clisp.org>
49372
49373         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49374         EXTRA_DIST.
49375         Reported by Sylvain Beucler <beuc@beuc.net>.
49376
49377 2008-06-26  Jim Meyering  <meyering@redhat.com>
49378
49379         make several modules depend on the "open" module
49380         This provides slightly increased consistency when opening-for-write
49381         the name of a non-directory spelled with a trailing slash.
49382         * modules/chdir-safer: Likewise.
49383         * modules/chown: Likewise.
49384         * modules/clean-temp: Likewise.
49385         * modules/copy-file: Likewise.
49386         * modules/fchdir: Likewise.
49387         * modules/fcntl-safer: Likewise.
49388         * modules/pipe: Likewise.
49389         * modules/utime: Likewise.
49390         Prompted by Eric Blake and Bruno Haible.
49391
49392 2008-06-24  Andreas Schwab  <schwab@suse.de>
49393
49394         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49395         literals can be used as initializers for global variables.
49396
49397 2008-06-23  Eric Blake  <ebb9@byu.net>
49398
49399         Make gnulib-cache.m4 easier to diff.
49400         * gnulib-tool (func_import): Allow newlines when reading cached
49401         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49402
49403 2008-06-23  Bruno Haible  <bruno@clisp.org>
49404
49405         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49406         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49407         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49408         m4/signalblocking.m4.
49409         (gl_PREREQ_SIGACTION): Don't invoke it.
49410         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49411         gl_PREREQ_SIG_HANDLER_H.
49412         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49413         Don't check for sigaction here.
49414
49415 2008-06-23  Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49418         (install_handlers): Don't set the SA_RESETHAND flag.
49419
49420 2008-06-23  Bruno Haible  <bruno@clisp.org>
49421
49422         * m4/sigaction.m4: Comment fixes.
49423         * lib/signal.in.h: Likewise.
49424
49425 2008-06-23  Eric Blake  <ebb9@byu.net>
49426
49427         Fix typo.
49428         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49429
49430         Avoid SA_ namespace.
49431         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49432         Reported by Ralf Wildenhues.
49433
49434         Avoid test failure due to SA_RESTORER.
49435         * tests/test-sigaction.c (SA_MASK): New macro.
49436         (main): Avoid failing due to extension flags being set.
49437         Reported by Jim Meyering.
49438
49439         Revert use of sig-handler.h in sigprocmask.c.
49440         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49441         it requires the existence of struct sigaction.
49442         * lib/sigprocmask.c (handler_t): Restore typedef.
49443         (rpl_signal, old_handlers): Use local type.
49444
49445 2008-06-22  Bruno Haible  <bruno@clisp.org>
49446
49447         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49448         conditionally.
49449         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49450
49451 2008-06-22  Bruno Haible  <bruno@clisp.org>
49452
49453         * doc/posix-functions/siginterrupt.texi: Move note.
49454
49455         * lib/signal.in.h (SA_RESTART): New macro.
49456         * lib/sigaction.c: Update comment.
49457
49458         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49459
49460         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49461         (gl_PREREQ_SIGPROCMASK): Invoke it.
49462         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49463
49464         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49465
49466         * lib/sigprocmask.c: Update a comment.
49467
49468 2008-06-21  Eric Blake  <ebb9@byu.net>
49469
49470         Use sigaction module rather than signal().
49471         * modules/c-stack (Depends-on): Add sigaction.
49472         * modules/fatal-signal (Depends-on): Likewise.
49473         * modules/nanosleep (Depends-on): Likewise.
49474         * modules/sigprocmask (Files): Add sig-handler.h.
49475         * modules/sigaction (Files): Likewise.
49476         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49477         Eggert.
49478         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49479         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49480         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49481         (init_fatal_signals): Likewise.
49482         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49483         (siginterrupt): Delete fallback.
49484         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49485         instead.
49486         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49487         siginterrupt.
49488
49489         New module sigaction, for mingw.
49490         * modules/sigaction: New module...
49491         * modules/sigaction-tests: ...and its test.
49492         * m4/sigaction.m4: New file.
49493         * lib/sigaction.c: Likewise.
49494         * tests/test-sigaction.c: Likewise.
49495         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49496         * modules/signal (Makefile.am): Likewise.
49497         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49498         needed.
49499         * doc/posix-headers/signal.texi (signal.h): Mention provided
49500         types.
49501         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49502         that sigaction is preferable.
49503         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49504         module.
49505         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49506         sigaction.
49507
49508         Improve robustness of sigprocmask by overriding signal.
49509         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49510         is in use.
49511         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49512         (SIGKILL, SIGSTOP): Provide fallbacks.
49513         (rpl_signal): Implement.
49514         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49515         signal can be called inside handlers.
49516
49517         Fix nanosleep module on mingw.
49518         * modules/nanosleep (Depends-on): Add sys_select.
49519         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49520
49521         Fix licensing of sigprocmask.
49522         * modules/raise (License): Relicense as LGPL.
49523
49524 2008-06-21  Bruno Haible  <bruno@clisp.org>
49525
49526         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49527         result if it contains question marks.
49528         Reported by Michael Geng <linux@michaelgeng.de>.
49529
49530 2008-06-19  Bruno Haible  <bruno@clisp.org>
49531
49532         Fix CVS-ism.
49533         * doc/gnulib.texi: Include updated-stamp.texi.
49534         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49535         (updated-stamp.texi): New rule.
49536         (gnulib.info): Depend on it.
49537         * doc/.gitignore: Add updated-stamp.texi.
49538         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49539
49540 2008-06-19  Bruno Haible  <bruno@clisp.org>
49541
49542         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49543         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49544
49545 2008-06-19  Eric Blake  <ebb9@byu.net>
49546
49547         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49548         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49549         Reported by Stepan Kasal.
49550
49551 2008-06-18  Bruno Haible  <bruno@clisp.org>
49552
49553         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49554         Reported by Eric Blake.
49555
49556 2008-06-18  Eric Blake  <ebb9@byu.net>
49557
49558         Work around cygwin 1.5.25 strsignal bug.
49559         * tests/test-strsignal.c: Allow for const char *.
49560         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49561
49562 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49563
49564         * users.txt: Update URL to article and add author/date
49565         information.
49566
49567 2008-06-17  Bruno Haible  <bruno@clisp.org>
49568
49569         New macro gl_DISABLE_THREADS.
49570         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49571         if the user did not pass --enable-threads or --disable-threads option.
49572         (gl_DISABLE_THREADS): New macro.
49573         Reported by Eric Blake <ebb9@byu.net>.
49574
49575 2008-06-17  Bruno Haible  <bruno@clisp.org>
49576
49577         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49578         when the macro ignores it.
49579         Based on a patch by Eric Blake <ebb9@byu.net>.
49580
49581 2008-06-17  Bruno Haible  <bruno@clisp.org>
49582
49583         * modules/tls (License): Change to LGPLv2+.
49584         Reported by Eric Blake.
49585
49586 2008-06-17  Eric Blake  <ebb9@byu.net>
49587
49588         Simplify c-stack prerequisites.
49589         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49591         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49592         check.
49593         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49594         <sys/resource.h>.
49595
49596         Move c-stack test into testsuite.
49597         * modules/c-stack-tests: New file.
49598         * lib/c-stack.c [DEBUG]: Move test program...
49599         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49600         fail test if sigaltstack is lacking.
49601         * tests/test-c-stack.sh: New driver file.
49602
49603 2008-06-16  Eric Blake  <ebb9@byu.net>
49604
49605         Use raise module consistently.
49606         * modules/fatal-signal (Depends-on): Add raise.
49607         * modules/sigprocmask (Depends-on): Likewise.
49608         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49609         * lib/sigprocmask.c (sigprocmask): Likewise.
49610         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49611         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49612
49613         Fix compliance bug in sigpending.
49614         * lib/sigprocmask.c (sigpending): Return pending array via
49615         parameter, not return value.
49616
49617 2008-06-14  Eric Blake  <ebb9@byu.net>
49618
49619         Improve obstack-printf test code.
49620         * tests/test-obstack-printf.c (test_function): Fix comment, and
49621         simplify usage of obstack_* in macros.  Add a test for coverage.
49622         Reported by Bruno Haible.
49623
49624 2008-06-14  Bruno Haible  <bruno@clisp.org>
49625
49626         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49627         array size as a constant, not as a const variable.
49628         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49629         AC_USE_SYSTEM_EXTENSIONS.
49630         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49631         Test whether the obstack_printf function actually exists.
49632         * modules/obstack-printf (Depends-on): Add extensions.
49633         (Include): Remove obstack.h.
49634         * modules/obstack-printf-posix (Depends-on): Add extensions.
49635         (Include): Remove obstack.h.
49636
49637 2008-06-13  Eric Blake  <ebb9@byu.net>
49638
49639         Add obstack-printf and obstack-printf-posix modules.
49640         * modules/obstack-printf: New file.
49641         * modules/obstack-printf-posix: Likewise.
49642         * MODULES.html.sh (Misc): Mention them.
49643         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49644         Likewise.
49645         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49646         Likewise.
49647         * modules/stdio (Makefile.am): Accomodate new modules.
49648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49649         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49650         Declare.
49651         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49652         functions.
49653         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49654         (gl_REPLACE_OBSTACK_PRINTF): New macros
49655         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49656         * tests/test-obstack-printf.c: New file.
49657         * modules/obstack-printf-tests: Likewise.
49658         * modules/obstack-printf-posix-tests: Likewise.
49659
49660 2008-06-11  Bruno Haible  <bruno@clisp.org>
49661
49662         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49663         * lib/open.c: Include errno.h.
49664         (open): Fail when attempting to write to a file that has a trailing
49665         slash.
49666         * tests/test-open.c (main): Test against trailing slash bug.
49667         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49668
49669 2008-06-10  Bruno Haible  <bruno@clisp.org>
49670
49671         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49672         for $? to work inside the trap command, with various /bin/sh-s.
49673         * tests/test-vc-list-files-cvs.sh: Likewise.
49674
49675 2008-06-10  Bruno Haible  <bruno@clisp.org>
49676
49677         * lib/acl-internal.h: Don't include gettext.h here.
49678         * lib/set-mode-acl.c: Include gettext.h here.
49679         * lib/copy-acl.c: Likewise.
49680
49681 2008-06-10  Bruno Haible  <bruno@clisp.org>
49682
49683         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49684         * lib/wait-process.c (wait_subprocess): Likewise.
49685         * lib/execute.h (execute): Add termsigp argument.
49686         * lib/execute.c (execute): Likewise.
49687         * lib/csharpcomp.c (compile_csharp_using_pnet,
49688         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49689         * lib/csharpexec.c (execute_csharp_using_pnet,
49690         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49691         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49692         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49693         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49694         is_jikes_present): Update.
49695         * lib/javaexec.c (execute_java_class): Update.
49696         * lib/javaversion.c (execute_and_read_line): Update.
49697         * NEWS: Document the changes.
49698         Reported by Eric Blake.
49699
49700 2008-06-10  Eric Blake  <ebb9@byu.net>
49701
49702         Add missing include.
49703         * tests/test-strstr.c (includes): Add <signal.h>.
49704         * tests/test-strcasestr.c (includes): Likewise.
49705         * tests/test-memmem.c (includes): Likewise.
49706
49707 2008-06-10  Bruno Haible  <bruno@clisp.org>
49708
49709         * lib/wait-process.c (wait_subprocess): Add an assertion.
49710
49711 2008-06-10  Bruno Haible  <bruno@clisp.org>
49712
49713         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49714
49715 2008-06-10  Bruno Haible  <bruno@clisp.org>
49716
49717         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49718         using alarm().
49719         * tests/test-strcasestr.c (main): Likewise.
49720         * tests/test-strstr.c (main): Likewise.
49721
49722 2008-06-09  Bruno Haible  <bruno@clisp.org>
49723
49724         Work around the Solaris 10 ACE ACLs ABI change.
49725         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49726         declare if ACL_NO_TRIVIAL is present.
49727         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49728         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49729         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49730         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49731         define if ACL_NO_TRIVIAL is present.
49732         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49733         and use the current ABI.
49734         (file_has_acl): Use same #if condition as elsewhere.
49735         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49736         in use, and use the current ABI.
49737         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49738         Reported by Jim Meyering.
49739
49740 2008-06-09  Eric Blake  <ebb9@byu.net>
49741
49742         Work around environments that (stupidly) ignore SIGALRM.
49743         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49744         before using alarm().
49745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49746         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49747         Reported by Ian Beckwith <ianb@erislabs.net>.
49748
49749         Produce autobuild blurb earlier in log.
49750         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49751
49752 2008-06-09  Jim Meyering  <meyering@redhat.com>
49753         and Ondřej Vašík  <ovasik@redhat.com>
49754
49755         utimens.c: correct kernel bug work-around
49756         Ondřej Vašík found that the invalid return value of 280 indicates
49757         failure, not success, and the kernel bug we're trying to work
49758         around affects not just the utimensat call, but also the fallback
49759         futimens call.
49760         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49761         not success.
49762         [HAVE_FUTIMENS]: Use the same work-around, here.
49763
49764 2008-06-09  Jim Meyering  <meyering@redhat.com>
49765
49766         add more guards around definition of ACE_-related code
49767         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49768         ALLOW and ACE_OWNER are also defined.
49769
49770 2008-06-08  Bruno Haible  <bruno@clisp.org>
49771
49772         * lib/acl-internal.h: Add me as co-author.
49773         * lib/file-has-acl.c: Likewise.
49774         * lib/set-mode-acl.c: Likewise.
49775         * lib/copy-acl.c: Likewise.
49776
49777 2008-06-08  Bruno Haible  <bruno@clisp.org>
49778
49779         Add support for AIX ACLs.
49780         * lib/acl-internal.h (acl_nontrivial): New declaration.
49781         * lib/file-has-acl.c (acl_nontrivial): New function.
49782         (file_has_acl): Add implementation using AIX 4 ACL API.
49783         * lib/set-mode-acl.c (qset_acl): Likewise.
49784         * lib/copy-acl.c (qcopy_acl): Likewise.
49785
49786 2008-06-08  Bruno Haible  <bruno@clisp.org>
49787
49788         Add support for HP-UX ACLs.
49789         * lib/acl-internal.h (acl_nontrivial): New declaration.
49790         * lib/file-has-acl.c (acl_nontrivial): New function.
49791         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49792         * lib/set-mode-acl.c (qset_acl): Likewise.
49793         * lib/copy-acl.c (qcopy_acl): Likewise.
49794
49795 2008-06-08  Bruno Haible  <bruno@clisp.org>
49796
49797         Add support for Cygwin ACLs.
49798         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49799         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49800         the chmod_or_fchmod call.
49801         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49802
49803 2008-06-08  Bruno Haible  <bruno@clisp.org>
49804
49805         Fix bug with setuid modes in Solaris 10+ code.
49806         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49807         succeeded, when the mode contains some special bits.
49808
49809 2008-06-08  Bruno Haible  <bruno@clisp.org>
49810
49811         Add support for Solaris 7..10 ACLs.
49812         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49813         declarations.
49814         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49815         functions.
49816         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49817         * lib/set-mode-acl.c (qset_acl): Likewise.
49818         * lib/copy-acl.c (qcopy_acl): Likewise.
49819
49820 2008-06-08  Bruno Haible  <bruno@clisp.org>
49821
49822         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49823         declaration.
49824         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49825         (acl_access_nontrivial): Remove MacOS X case.
49826         (file_has_acl): Use acl_extended_nontrivial.
49827         * lib/copy-acl.c (qcopy_acl): Likewise.
49828
49829 2008-06-08  Bruno Haible  <bruno@clisp.org>
49830
49831         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49832
49833 2008-06-08  Jim Meyering  <meyering@redhat.com>
49834
49835         * modules/acl (Maintainer): Add Bruno Haible.
49836
49837 2008-06-07  Bruno Haible  <bruno@clisp.org>
49838
49839         Improve support for Tru64 ACLs.
49840         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49841         ACL on OSF/1.
49842
49843 2008-06-07  Bruno Haible  <bruno@clisp.org>
49844
49845         Add support for MacOS X ACLs.
49846         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49847         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49848         * lib/set-mode-acl.c (qset_acl): Likewise.
49849         * lib/copy-acl.c (qcopy_acl): Likewise.
49850
49851 2008-06-07  Bruno Haible  <bruno@clisp.org>
49852
49853         Fix memory leak introduced on 2008-05-22.
49854         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49855         use.
49856
49857 2008-06-07  Bruno Haible  <bruno@clisp.org>
49858
49859         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49860         to construct an empty ACL.
49861
49862 2008-06-07  Bruno Haible  <bruno@clisp.org>
49863
49864         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49865         precisely.
49866         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49867
49868 2008-06-07  Bruno Haible  <bruno@clisp.org>
49869
49870         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49871         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49872
49873 2008-06-07  Bruno Haible  <bruno@clisp.org>
49874
49875         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49876         regardless of POSIX.
49877         * doc/posix-functions/_longjmp.texi: Likewise.
49878         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49879         SystemV platform in this case.
49880
49881 2008-06-06  Eric Blake  <ebb9@byu.net>
49882
49883         Document abort() bugs.
49884         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49885
49886         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49887         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49888         sigsetjmp.
49889         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49890         siglongjmp, but only as a macro.
49891         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49892         is obsolete.
49893         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49894
49895         Tweak documentation to cover cygwin argz bugs.
49896         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49897         argz bug fix; no code change needed since no cygwin releases
49898         occurred between the last fix and the bug being tested.
49899         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49900         module and recently fixed cygwin bugs.
49901         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49902         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49903         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49904         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49905         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49906         Likewise.
49907         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49908         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49909         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49910         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49911         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49912         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49913         Likewise.
49914
49915         Avoid gcc warning on cygwin.
49916         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49917         !ACL_NO_TRIVIAL]: Avoid unused variable.
49918
49919 2008-06-05  Eric Blake  <ebb9@byu.net>
49920
49921         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49922         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49923         git-version-gen fails to come up with a version.
49924         Reported by Simon Josefsson.
49925
49926 2008-06-05  Jim Meyering  <meyering@redhat.com>
49927             Paul Eggert  <eggert@cs.ucla.edu>
49928
49929         utimens.c: work around a probable Linux kernel bug
49930         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49931         appears to be a kernel bug that causes utimensat to return 280
49932         instead of 0, indicating success.
49933
49934 2008-06-04  Bruno Haible  <bruno@clisp.org>
49935
49936         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49937         2008-06-01 commit.
49938
49939 2008-06-04  Bruno Haible  <bruno@clisp.org>
49940
49941         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49942         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49943         (file_has_acl): Use it. Save errno afterwards.
49944         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49945
49946 2008-06-03  Bruno Haible  <bruno@clisp.org>
49947
49948         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49949         draft code. Simplify #ifs.
49950         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49951         Put Solaris code after POSIX-draft code. Fix comments regarding
49952         Solaris 10, HP-UX. Mention Cygwin.
49953         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49954
49955 2008-06-03  Eric Blake  <ebb9@byu.net>
49956
49957         Provide fallback for older kernels.
49958         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49959         Provide runtime fallback if kernel lacks support.
49960         Reported by Mike Frysinger.
49961
49962 2008-06-02  Bruno Haible  <bruno@clisp.org>
49963
49964         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49965         it exists.
49966
49967 2008-06-02  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49970         * lib/copy-acl.c (qcopy_acl): Update comment.
49971
49972 2008-06-02  Bruno Haible  <bruno@clisp.org>
49973
49974         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49975         like ACL APIs.
49976
49977 2008-06-02  Bruno Haible  <bruno@clisp.org>
49978
49979         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49980         * tests/test-set-mode-acl.sh: Likewise.
49981         * tests/test-copy-acl.sh: Likewise.
49982         * tests/test-copy-file.sh: Likewise.
49983
49984 2008-06-02  Bruno Haible  <bruno@clisp.org>
49985
49986         * tests/test-file-has-acl.sh: Remove unused code.
49987
49988 2008-06-01  Bruno Haible  <bruno@clisp.org>
49989
49990         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49991         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49992         messages.
49993         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49994
49995 2008-06-01  Bruno Haible  <bruno@clisp.org>
49996
49997         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49998         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49999         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50000         APIs.
50001         * modules/acl-tests (configure.ac): Remove tests now contained in
50002         m4/acl.m4.
50003
50004 2008-06-02  Jim Meyering  <meyering@redhat.com>
50005
50006         announce-gen: use a better key-server host name
50007         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50008         it may be more consistently reliable.  Suggested by Werner Koch
50009         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50010
50011 2008-06-01  Bruno Haible  <bruno@clisp.org>
50012
50013         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50014         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50015
50016 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50017
50018         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50019
50020 2008-06-01  Bruno Haible  <bruno@clisp.org>
50021
50022         New ACL tests.
50023         * tests/test-file-has-acl.sh: New file.
50024         * tests/test-file-has-acl.c: New file.
50025         * tests/test-set-mode-acl.sh: New file.
50026         * tests/test-set-mode-acl.c: New file.
50027         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50028         * tests/test-copy-acl.c: New file.
50029         * modules/acl-tests: New file, based on modules/copy-file-tests.
50030         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50031         (Depends-on): Add acl-tests.
50032         (configure.ac): Remove checks.
50033         (Makefile.am): Don't create test-sameacls program here any more.
50034
50035 2008-06-01  Bruno Haible  <bruno@clisp.org>
50036
50037         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50038         * tests/test-sameacls.c: Include progname.h.
50039         (main): Invoke set_program_name. Portability fixes for MacOS X,
50040         Solaris, HP-UX.
50041
50042 2008-06-01  Bruno Haible  <bruno@clisp.org>
50043
50044         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50045         function.
50046         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50047
50048 2008-06-01  Bruno Haible  <bruno@clisp.org>
50049
50050         * modules/rpmatch (Depends-on): Add strdup.
50051
50052 2008-06-01  Bruno Haible  <bruno@clisp.org>
50053
50054         * lib/pipe.c: Include unistd-safer.h.
50055         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50056         * modules/pipe (Depends-on): Add unistd-safer.
50057
50058 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50059
50060         * modules/autobuild (configure.ac): Call AB_INIT.
50061
50062 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50063
50064         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50065         Suggested by Bruno Haible <bruno@clisp.org>.
50066
50067 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50068
50069         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50070         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50071         <bruno@clisp.org>.
50072
50073 2008-05-29  Eric Blake  <ebb9@byu.net>
50074
50075         Prefer new POSIX 200x interfaces over futimesat.
50076         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50077         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50078         when available.
50079         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50080
50081 2008-05-28  Bruno Haible  <bruno@clisp.org>
50082
50083         * modules/stpcpy (License): Change to LGPLv2+.
50084         Requested by David Lutterkort <dlutter@redhat.com>.
50085
50086 2008-05-27  Bruno Haible  <bruno@clisp.org>
50087
50088         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50089         current mingw.
50090         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50091
50092 2008-05-27  Bruno Haible  <bruno@clisp.org>
50093
50094         * modules/iconv_open (Link): New section, from module 'iconv'.
50095         * modules/striconv (Link): Likewise.
50096         * modules/striconveh (Link): Likewise.
50097         * modules/xstriconv (Link): Likewise.
50098         * modules/unicodeio (Link): Likewise.
50099         * modules/propername (Link): Likewise.
50100         Reported by Jim Meyering.
50101
50102 2008-05-26  Jim Meyering  <meyering@redhat.com>
50103
50104         sha256: do not artificially restrict buffer length to be < 2^32
50105         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50106         uint32_t to size_t.
50107         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50108         to match.
50109
50110         avoid unaligned access errors, e.g., on sparc
50111         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50112         direct access through a possibly-unaligned uint64* pointer.
50113         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50114         direct access through a possibly-unaligned uint32* pointer.
50115         Prompted by this patch from Tom "spot" Callaway:
50116         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50117
50118         sha512.c: fix typo in comment
50119         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50120
50121 2008-05-25  Bruno Haible  <bruno@clisp.org>
50122
50123         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50124         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50125         (Makefile.am): Update lib_SOURCES.
50126
50127 2008-05-25  Bruno Haible  <bruno@clisp.org>
50128
50129         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50130
50131 2008-05-25  Jim Meyering  <meyering@redhat.com>
50132
50133         useless-if-before-free: freed expr may have white-space differences
50134         * build-aux/useless-if-before-free: Recognize cases in which the
50135         freed expression differs from the tested one in embedded white
50136         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50137         $1 was used, so we can't make any regexp shy.  Improved tests now
50138         detect this.
50139
50140         useless-if-before-free: accept white space in the expression.
50141         * build-aux/useless-if-before-free: For now, any white space
50142         in the expression must be identical in the free argument.
50143
50144         useless-if-before-free: efficiency tweak
50145         * build-aux/useless-if-before-free: Make the expression-matching
50146         regexp "shy".
50147         Make the *outer* regexp shy, not the expr-matching one.
50148
50149         update code-in-comment to accept cast of free arg
50150         * build-aux/useless-if-before-free: Update regexp.
50151
50152 2008-05-25  Bruno Haible  <bruno@clisp.org>
50153
50154         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50155         * modules/copy-file-tests (Files, Makefile.am): Update.
50156         * tests/test-copy-file.c (func_test_copy): Update.
50157
50158 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50159
50160         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50161
50162 2008-05-23  Bruno Haible  <bruno@clisp.org>
50163
50164         Improve support for ACLs on OSF/1.
50165         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50166         Remove fallback for unknown flavors of ACLs.
50167
50168 2008-05-22  Bruno Haible  <bruno@clisp.org>
50169
50170         Add support for ACLs on OSF/1.
50171         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50172         replacements.
50173         (acl_free_text): New macro fallback.
50174         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50175         acl_free.
50176         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50177         acl_free_text function. Require AC_C_INLINE.
50178
50179 2008-05-22  Bruno Haible  <bruno@clisp.org>
50180
50181         Make copy_acl work on MacOS X 10.5.
50182         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50183         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50184         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50185         If MODE_INSIDE_ACL, don't assume that every system has the same text
50186         representation for ACLs as FreeBSD.
50187         * lib/copy-acl.c (copy_acl): Add support for platforms with
50188         !MODE_INSIDE_ACL.
50189         * lib/file-has-acl.c (file_has_acl): Likewise.
50190         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50191         FreeBSD, MacOS X, or IRIX, respectively.
50192
50193 2008-05-22  Bruno Haible  <bruno@clisp.org>
50194
50195         * lib/acl.h: Don't include <sys/acl.h>.
50196         (GETACLCNT): Move fallback to lib/acl-internal.h.
50197         * lib/acl-internal.h: Include <sys/acl.h> here.
50198         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50199
50200 2008-05-22  Bruno Haible  <bruno@clisp.org>
50201
50202         Split off copy_acl function to separate file.
50203         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50204         * lib/acl.c (copy_acl): Moved function to separate file.
50205         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50206         * modules/acl (Files): Add lib/copy-acl.c.
50207         (Makefiles.am): Augment lib_SOURCES.
50208
50209 2008-05-22  Bruno Haible  <bruno@clisp.org>
50210
50211         * modules/copy-file-tests: New file.
50212         * tests/test-copy-file.sh: New file.
50213         * tests/test-copy-file.c: New file.
50214         * tests/test-copy-file-sameacls.c: New file.
50215
50216 2008-05-22  Eric Blake  <ebb9@byu.net>
50217
50218         Avoid gcc warning.
50219         * tests/test-memcmp.c (main): Pass NULL indirectly.
50220
50221 2008-05-21  Bruno Haible  <bruno@clisp.org>
50222
50223         Add reference doc about ACLs.
50224         * doc/acl-resources.txt: New file.
50225         * doc/acl-cygwin.txt: New file.
50226
50227 2008-05-21  Bruno Haible  <bruno@clisp.org>
50228
50229         Avoid one more warning from gcc.
50230         * lib/vasnprintf.c (IF_LINT): Update comments.
50231         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50232
50233 2008-05-21  Jim Meyering  <meyering@redhat.com>
50234
50235         avoid a warning from gcc
50236         * lib/vasnprintf.c (IF_LINT): Define.
50237         (scale10_round_decimal_long_double):
50238         Use it to avoid a "may be used uninitialized" warning.
50239         (scale10_round_decimal_double): Likewise.
50240
50241 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50242
50243         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50244         declared.
50245
50246 2008-05-20  Bruno Haible  <bruno@clisp.org>
50247
50248         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50249         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50250
50251 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50252
50253         * modules/memcmp-tests: New file.
50254         * tests/test-memcmp.c: New file.
50255
50256 2008-05-19  Bruno Haible  <bruno@clisp.org>
50257
50258         * modules/propername (Notice, configure.ac): Put quoted "..." into
50259         --keyword option.
50260         * lib/propername.h: Update comments accordingly.
50261         Reported by Eric Blake.
50262
50263 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50264
50265         * modules/getpass-gnu (Depends-on): Add fseeko.
50266
50267 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50268
50269         * modules/base64-tests: New file.
50270
50271 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50272
50273         * lib/base64.c (base64_decode_ctx): If a decode context structure
50274         was passed in use it to ignore newlines.  If a context structure
50275         was _not_ passed in, continue to treat newlines as garbage (this
50276         is the historical behavior).  Formerly base64_decode.
50277         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50278         takes a decode context structure.
50279         * lib/base64.h (base64_decode): Macro for four-argument calls.
50280         (base64_decode_alloc): Likewise.
50281         * lib/base64.c (base64_decode_ctx): If a decode context structure
50282         was passed in use it to ignore newlines.  If a context structure
50283         was _not_ passed in, continue to treat newlines as garbage (this
50284         is the historical behavior).  Formerly base64_decode.
50285         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50286         takes a decode context structure.
50287         * lib/base64.h (base64_decode): Macro for four-argument calls.
50288         (base64_decode_alloc): Likewise.
50289
50290 2008-05-19  Jim Meyering  <meyering@redhat.com>
50291
50292         avoid a warning from gcc
50293         * lib/trim.c (IF_LINT): Define.
50294         (trim2): Use it to avoid a "may be used uninitialized" warning.
50295
50296         Fix doc typo.
50297         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50298
50299 2008-05-19  Bruno Haible  <bruno@clisp.org>
50300
50301         * doc/glibc-functions/getpass.texi: Document limits of other
50302         implementations.
50303
50304 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50305             Bruno Haible <bruno@clisp.org>
50306
50307         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50308
50309 2008-05-18  Bruno Haible  <bruno@clisp.org>
50310
50311         * modules/propername: New file, from GNU gettext.
50312         * lib/propername.h: New file, from GNU gettext.
50313         * lib/propername.c: New file, from GNU gettext.
50314         * MODULES.html.sh (Internationalization functions): Add propername.
50315
50316 2008-05-16  Jim Meyering  <meyering@redhat.com>
50317             Bruno Haible  <bruno@clisp.org>
50318
50319         Avoid some warnings from "gcc -Wshadow".
50320         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50321
50322 2008-05-15  Eric Blake  <ebb9@byu.net>
50323
50324         Extend previous patch to cygwin 1.7.0.
50325         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50326         fast implementation in cygwin >= 1.7.0.
50327         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50328         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50329
50330 2008-05-15  Bruno Haible  <bruno@clisp.org>
50331
50332         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50333         implementation in glibc >= 2.9.
50334         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50335         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50336
50337 2008-05-15  Bruno Haible  <bruno@clisp.org>
50338
50339         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50340         (Unicode string functions): Add unilbrk/*.
50341         Reported by Karl Berry.
50342
50343 2008-05-15  Eric Blake  <ebb9@byu.net>
50344
50345         Fix violation of <stdbool.h> replacement in regex.
50346         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50347         * lib/regexec.c (re_search_internal): Likewise.
50348         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50349
50350 2008-05-15  Jim Meyering  <meyering@redhat.com>
50351
50352         avoid distracting test output when git or cvs is not found
50353         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50354         * tests/test-vc-list-files-git.sh: Likewise.
50355
50356 2008-05-15  Eric Blake  <ebb9@byu.net>
50357
50358         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50359         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50360         glibc version.
50361         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50362         * doc/posix-functions/strstr.texi (strstr): Likewise.
50363         * lib/str-two-way.h (MAX): Sychronize with glibc.
50364
50365 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50366
50367         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50368         opr.ctx_type.
50369         (calc_first): Initialize constraint field.
50370         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50371         Fix grammar.
50372         (duplicate_node): Merge constraint field for all node types.
50373         (calc_eclosure_iter): Look at constraint field for all node types.
50374         * lib/regex_internal.c (create_cd_newstate): Don't look at
50375         opr.ctx_type.
50376
50377 2008-05-14  Bruno Haible  <bruno@clisp.org>
50378
50379         Help GCC to do better code generation.
50380         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50381         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50382         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50383         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50384         Declare with attribute 'malloc' if supported.
50385
50386 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50387
50388         use "echo STR|wc -c" rather than unportable "expr length STR"
50389         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50390         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50391
50392 2008-05-14  Jim Meyering  <meyering@redhat.com>
50393
50394         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50395         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50396         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50397         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50398         via Collin Lasse.
50399
50400 2008-05-14  Eric Blake  <ebb9@byu.net>
50401
50402         Avoid quadratic growth in gl_LIBSOURCES.
50403         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50404         Suggested by Bruno Haible.
50405
50406         Test xmemdup0.
50407         * modules/xmemdup0-tests: New file.
50408         * tests/test-xmemdup0.c: Likewise.
50409
50410 2008-05-13  Eric Blake  <ebb9@byu.net>
50411
50412         Split xmemdup0 into its own module.
50413         * modules/xmemdup0: New file.
50414         * lib/xmemdup0.h: Likewise.
50415         * lib/xmemdup0.c: Likewise.
50416         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50417         * lib/xalloc.h (xmemdup0): Remove.
50418         * lib/xmalloc.c (xmemdup0): Likewise.
50419
50420 2008-05-13  Eric Blake  <ebb9@byu.net>
50421             Bruno Haible  <bruno@clisp.org>
50422
50423         Reduce number of forks required during autoconf.
50424         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50425         and gl_LIBSOURCES_DIR.
50426         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50427         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50428         m4_syscmd per file.
50429         <m4_foreach_w>: Move...
50430         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50431
50432 2008-05-13  Eric Blake  <ebb9@byu.net>
50433
50434         * gnulib-tool: Fix various comment typos.
50435
50436 2008-05-12  Bruno Haible  <bruno@clisp.org>
50437
50438         Tailor the linebreaking algorithm.
50439         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50440
50441 2008-05-12  Bruno Haible  <bruno@clisp.org>
50442
50443         Update to Unicode 5.0.0.
50444         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50445         LBP_JV, LBP_JT. Redistribute values.
50446         (unilbrk_table): Change size.
50447         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50448         Unicode TR#14 rev. 22.
50449         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50450         LBP_JV, LBP_JT. Redistribute values.
50451         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50452         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50453         Update.
50454         * lib/unilbrk/lbrkprop1.h: Regenerated.
50455         * lib/unilbrk/lbrkprop2.h: Regenerated.
50456         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50457         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50458         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50459         Likewise.
50460         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50461         Likewise.
50462         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50463         result.
50464         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50465         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50466         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50467         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50468         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50469         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50470
50471 2008-05-11  Bruno Haible  <bruno@clisp.org>
50472
50473         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50474
50475 2008-05-11  Bruno Haible  <bruno@clisp.org>
50476
50477         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50478         * modules/unilbrk/gen-lbrk: New file.
50479
50480 2008-05-11  Bruno Haible  <bruno@clisp.org>
50481
50482         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50483         * m4/sha512.m4 (gl_SHA512): Likewise.
50484
50485 2008-05-11  Jim Meyering  <meyering@redhat.com>
50486
50487         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50488         * modules/crypto/sha256: New file.
50489         * modules/crypto/sha512: Likewise.
50490         * lib/sha256.c: Likewise.
50491         * lib/sha256.h: Likewise.
50492         * lib/sha512.c: Likewise.
50493         * lib/sha512.h: Likewise.
50494         * lib/u64.h: Likewise.
50495         * m4/sha256.m4: Likewise.
50496         * m4/sha512.m4: Likewise.
50497         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50498
50499 2008-05-10  Bruno Haible  <bruno@clisp.org>
50500
50501         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50502         (Input/Output <stdio.h>): Add xprintf.
50503         (Signal handling <signal.h>): Add strsignal.
50504         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50505         (Core language properties): Add func.
50506         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50507         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50508         strings.
50509         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50510         (Input/output): New section.
50511         (File system functions): Add openat-die, stat-macros.
50512         (Networking functions): Add sockets.
50513         (Unicode string functions): Add unictype/*.
50514         (Support for building libraries and executables): Add gperf.
50515         (Support for building documentation): Add agpl-3.0.
50516         (Misc): Add nocrash.
50517
50518 2008-05-10  Bruno Haible  <bruno@clisp.org>
50519
50520         * modules/unictype/gen-ctype: New file.
50521
50522 2008-05-10  Jim Meyering  <meyering@redhat.com>
50523
50524         Make chdir-safer.c more efficient on a system with no symlinks.
50525         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50526         also if ELOOP is zero.  Suggested by Bruno Haible.
50527
50528         Make chdir-safer.c slightly safer.
50529         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50530         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50531
50532         Avoid compile failure on systems without ELOOP (like mingw).
50533         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50534         Reported by Bruno Haible.
50535
50536 2008-05-10  Bruno Haible  <bruno@clisp.org>
50537
50538         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50539         (is_utf8_encoding): Use a case-insensitive comparison.
50540         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50541         streq.
50542
50543 2008-05-10  Bruno Haible  <bruno@clisp.org>
50544
50545         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50546         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50547         * lib/unilbrk/ulc-common.h (iconv_string_length,
50548         iconv_string_keeping_offsets): Remove declarations.
50549         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50550         Don't include <iconv.h>, streq.h, xsize.h.
50551         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50552         conversion.
50553         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50554         <iconv.h>, streq.h, xsize.h.
50555         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50556         conversion.
50557         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50558         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50559         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50560         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50561
50562 2008-05-10  Bruno Haible  <bruno@clisp.org>
50563
50564         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50565         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50566
50567         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50568         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50569
50570         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50571         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50572
50573         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50574         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50575
50576         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50577         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50578
50579         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50580         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50581
50582         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50583         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50584
50585         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50586         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50587
50588 2008-05-10  Bruno Haible  <bruno@clisp.org>
50589
50590         Split up 'linebreak' module.
50591         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50592         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50593         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50594         modifications.
50595         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50596         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50597         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50598         lib/linebreak.c.
50599         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50600         lib/linebreak.c.
50601         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50602         lib/linebreak.c.
50603         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50604         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50605         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50606         lib/linebreak.c.
50607         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50608         lib/linebreak.c.
50609         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50610         lib/linebreak.c.
50611         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50612         lib/linebreak.c.
50613         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50614         lib/linebreak.c.
50615         * modules/unilbrk/base: New file.
50616         * modules/unilbrk/tables: New file.
50617         * modules/unilbrk/u8-possible-linebreaks: New file.
50618         * modules/unilbrk/u16-possible-linebreaks: New file.
50619         * modules/unilbrk/u32-possible-linebreaks: New file.
50620         * modules/unilbrk/ulc-common: New file.
50621         * modules/unilbrk/ulc-possible-linebreaks: New file.
50622         * modules/unilbrk/u8-width-linebreaks: New file.
50623         * modules/unilbrk/u16-width-linebreaks: New file.
50624         * modules/unilbrk/u32-width-linebreaks: New file.
50625         * modules/unilbrk/ulc-width-linebreaks: New file.
50626         * lib/linebreak.h: Remove file.
50627         * lib/linebreak.c: Remove file.
50628         * m4/linebreak.m4: Remove file.
50629         * modules/linebreak: Remove file.
50630         * NEWS: Mention the changes.
50631
50632 2008-05-09  Eric Blake  <ebb9@byu.net>
50633
50634         Add xmemdup0.
50635         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50636         implementation.
50637         * lib/xmalloc.c (xmemdup0): New C implementation.
50638
50639 2008-05-08  Bruno Haible  <bruno@clisp.org>
50640
50641         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50642
50643 2008-05-07  Eric Blake  <ebb9@byu.net>
50644
50645         Support cross-compilation of <wctype.h>.
50646         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50647         AC_CACHE_CHECK.
50648
50649 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50650
50651         * build-aux/vc-list-files: Add support for bzr.
50652
50653 2008-05-03  Jim Meyering  <meyering@redhat.com>
50654
50655         avoid failed assertion with tight malloc
50656         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50657
50658 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50659
50660         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50661         are needed from arpa/inet.h.
50662         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50663         Reported by Bruno Haible.
50664
50665 2008-05-02  Jim Meyering  <meyering@redhat.com>
50666
50667         avoid compilation error on FreeBSD 6
50668         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50669
50670 2008-05-01  Jim Meyering  <meyering@redhat.com>
50671
50672         useless-if-before-free: correct --help's exit status description
50673         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50674         for one or more matches, etc.  Reported by Bruno Haible.
50675
50676         vc-list-files: make the stand-alone gnulib test work
50677         * modules/vc-list-files-tests (configure.ac):
50678         Define and AC_SUBST abs_aux_dir.
50679         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50680         $(abs_top_srcdir) to each script and having each of them
50681         duplicate the work of setting PATH, set PATH here, using
50682         the new variable, abs_aux_dir instead.
50683         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50684         * tests/test-vc-list-files-git.sh: Likewise.
50685         Reported by Bruno Haible.
50686
50687 2008-05-01  Bruno Haible  <bruno@clisp.org>
50688
50689         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50690         reallocation. Rename 'done' to 'found_delimiter'.
50691
50692 2008-05-01  Jim Meyering  <meyering@redhat.com>
50693
50694         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50695         * build-aux/vc-list-files: Use `...`, not $(...).
50696
50697 2008-04-30  Jim Meyering  <meyering@redhat.com>
50698
50699         add tests for vc-list-files
50700         * modules/vc-list-files-tests: New module.
50701         * tests/test-vc-list-files-cvs.sh: New file.
50702         * tests/test-vc-list-files-git.sh: New file.
50703
50704         avoid a warning from gcc
50705         * lib/getndelim2.c (IF_LINT): Define.
50706         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50707
50708         vc-list-files: work properly with build-aux/cvsu, too
50709         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50710         to all cvs-based clauses.
50711
50712         vc-list-files: work properly in the CVS+awk case, too
50713         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50714
50715         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50716         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50717         take more than one file argument, so .  Add quotes, just in case $dir
50718         ever contains a shell meta-character.  Prompted by Soren Hansen in
50719         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50720
50721 2008-04-29  Eric Blake  <ebb9@byu.net>
50722
50723         Optimize getndelim2 to use block operations when possible.
50724         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50725         freadseek, and memchr2.
50726         * lib/getndelim2.c (getndelim2): Use them for block reads.
50727
50728 2008-04-29  Bruno Haible  <bruno@clisp.org>
50729
50730         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50731         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50732         * modules/inet_ntop (Depends-on): Add extensions.
50733         * modules/inet_pton (Depends-on): Likewise.
50734         Reported by Simon Josefsson.
50735
50736 2008-04-29  Jim Meyering  <meyering@redhat.com>
50737
50738         When the is more than one match in a block, match all of them.
50739         * build-aux/useless-if-before-free: Iterate through each block
50740         until there are no more matches.
50741
50742         Fix broken useless-if-before-free script.
50743         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50744         the expression to match cast of argument to free-like function.
50745
50746 2008-04-29  Eric Blake  <ebb9@byu.net>
50747
50748         Use new header.
50749         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50750
50751 2008-04-29  Jim Meyering  <meyering@redhat.com>
50752
50753         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50754         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50755         by gnulib to exist and to declare e.g., inet_ntop.
50756         Don't include "inet_ntop.h", now removed.
50757
50758         * m4/arpa_inet_h.m4: Remove trailing blanks.
50759
50760 2008-04-29  Eric Blake  <ebb9@byu.net>
50761
50762         Silence valgrind on safe reads beyond potential array bounds.
50763         * lib/rawmemchr.valgrind: New file.
50764         * lib/strchrnul.valgrind: Likewise.
50765         * modules/rawmemchr (Files): Distribute new file.
50766         * modules/strchrnul (Files): Likewise.
50767         Suggested by Bruno Haible.
50768
50769 2008-04-29  Bruno Haible  <bruno@clisp.org>
50770
50771         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50772         (inet_ntop, inet_pton): Change portability warning's wording.
50773         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50774         Invoke gl_CHECK_NEXT_HEADERS.
50775         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50776         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50777         set ARPA_INET_H.
50778         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50779         * modules/arpa_inet (Description): No longer only for systems that
50780         lack it.
50781         (Depends-on): Add include_next.
50782         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50783         HAVE_ARPA_INET_H.
50784
50785 2008-04-29  Jim Meyering  <meyering@redhat.com>
50786
50787         * modules/mkdir (License): Re-license as LGPLv2+.
50788
50789 2008-04-29  Bruno Haible  <bruno@clisp.org>
50790
50791         * modules/rawmemchr (Maintainer): Set to Eric.
50792         * modules/strchrnul (Maintainer): Likewise.
50793
50794 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50795
50796         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50797         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50798
50799         * modules/arpa_inet (arpa/inet.h): Use them.
50800
50801 2008-04-28  Eric Blake  <ebb9@byu.net>
50802
50803         Test getndelim2.
50804         * modules/getndelim2-tests: New file.
50805         * tests/test-getndelim2.c: Likewise.
50806         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50807         stream.
50808         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50809
50810         * MODULES.html.sh: Document new module.
50811
50812 2008-04-20  Bruno Haible  <bruno@clisp.org>
50813
50814         * lib/c-stack.c (die): Use raise.
50815         * modules/c-stack (Depends-on): Add raise.
50816
50817 2008-04-28  Bruno Haible  <bruno@clisp.org>
50818
50819         Expect rpmatch to be declared.
50820         * lib/yesno.c (rpmatch): Remove declaration.
50821
50822         Declare rpmatch.
50823         * lib/stdlib.in.h (rpmatch): New declaration.
50824         * lib/rpmatch.c: Include <stdlib.h> first.
50825         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50826         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50828         HAVE_RPMATCH.
50829         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50830         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50831         (Include): Set to <stdlib.h>.
50832         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50833         HAVE_RPMATCH.
50834         * NEWS: Document the change.
50835
50836 2008-04-28  Bruno Haible  <bruno@clisp.org>
50837
50838         Change rpmatch to use nl_langinfo when appropriate.
50839         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50840         (N_): New macro.
50841         (localized_pattern): New function/macro.
50842         (try): Remove match, nomatch arguments. Copy the pattern into safe
50843         memory before caching it.
50844         (rpmatch): Use localized_pattern. Add translator comments.
50845         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50846         Suggested by Eric Blake.
50847         * modules/rpmatch (Depends-on): Add stdbool.
50848
50849 2008-04-28  Eric Blake  <ebb9@byu.net>
50850
50851         Add rawmemchr module, matching glibc.
50852         * modules/string (Makefile.am): New indicator.
50853         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50854         * lib/string.in.h (rawmemchr): Declare when appropriate.
50855         * modules/rawmemchr: New file.
50856         * m4/rawmemchr.m4: Likewise.
50857         * lib/rawmemchr.c: Likewise.
50858         * modules/rawmemchr-tests: Likewise.
50859         * tests/test-rawmemchr.c: Likewise.
50860         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50861         module.
50862         * modules/strchrnul (Depends-on): Add rawmemchr.
50863         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50864
50865         Whitespace cleanup.
50866         * tests/test-strchrnul.c: Reindent.
50867         * lib/strchrnul.c: Likewise.
50868
50869         Optimize and test strchrnul.
50870         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50871         * modules/strchrnul-tests: New file.
50872         * tests/test-strchrnul.c: Likewise.
50873
50874         Remove intprops dependency.
50875         * modules/memchr (Depends-on): Remove intprops.
50876         * modules/memrchr (Depends-on): Likewise.
50877         * modules/memchr2 (Depends-on): Likewise.
50878         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50879         * lib/memrchr.c (__memrchr): Likewise.
50880         * lib/memrchr2.c (memchr2): Likewise.
50881         Reported by Simon Josefsson.
50882
50883 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50884
50885         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50886         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50887
50888 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50889
50890         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50891
50892         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50893
50894         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50895
50896         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50897         declarations.
50898         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50899
50900         * m4/inet_pton.m4: Don't check for header files.
50901
50902         * m4/inet_ntop.m4: Don't check for header files.
50903
50904 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50905
50906         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50907         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50908         trigger for cygwin).
50909         Reported by Bruno Haible  <bruno@clisp.org>.
50910
50911 2008-04-28  Bruno Haible  <bruno@clisp.org>
50912
50913         * doc/posix-functions/strdup.texi: Mention mingw problem.
50914
50915 2008-04-27  Bruno Haible  <bruno@clisp.org>
50916
50917         * modules/stat-time-tests (Depends-on): Add sleep.
50918         * tests/test-stat-time.c (force_unlink): New function.
50919         (cleanup): Use it.
50920         (test_mtime): Remove the ctime related tests.
50921         (test_ctime): New function, containing the ctime related tests.
50922         (main): Call test_ctime, except on native Windows platforms.
50923
50924 2008-04-27  Bruno Haible  <bruno@clisp.org>
50925
50926         * lib/rpmatch.c (rpmatch): Add some comments.
50927         Reported by James Youngman <jay@gnu.org>.
50928
50929 2008-04-27  Bruno Haible  <bruno@clisp.org>
50930
50931         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50932         quiet NaNs.
50933
50934 2008-04-27  Bruno Haible  <bruno@clisp.org>
50935
50936         Make test-yesno.sh work on mingw.
50937         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50938         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50939         (main): Set stdin to binary mode.
50940         * modules/yesno-tests (Depends-on): Add binary-io.
50941
50942 2008-04-27  Bruno Haible  <bruno@clisp.org>
50943
50944         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50945         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50946         argument that lie outside the IEEE 854 domain.
50947         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50948         (gl_ISFINITE): Use it.
50949         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50950
50951 2008-04-27  Bruno Haible  <bruno@clisp.org>
50952
50953         Allow local renaming in config.h.
50954         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50955
50956 2008-04-27  Bruno Haible  <bruno@clisp.org>
50957
50958         * lib/memchr.c (__memchr): Change type of 'i'.
50959         * lib/memchr2.c (memchr2): Likewise.
50960
50961 2008-04-26  Eric Blake  <ebb9@byu.net>
50962         and Bruno Haible  <bruno@clisp.org>
50963
50964         Optimize and test memrchr.
50965         * modules/memrchr (Depends-on): Add intprops.
50966         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50967         * modules/memrchr-tests: New file.
50968         * tests/test-memrchr.c: New file.
50969
50970 2008-04-26  Bruno Haible  <bruno@clisp.org>
50971
50972         Add tentative support for DragonFly BSD.
50973         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50974         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50975         fp.
50976         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50977         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50978         * lib/fpurge.c (fpurge): Likewise.
50979         * lib/freadable.c (freaadable): Likewise.
50980         * lib/freadahead.c (freadahead): Likewise.
50981         * lib/freading.c (freading): Likewise.
50982         * lib/freadptr.c (freadptr): Likewise.
50983         * lib/freadseek.c (freadptrinc): Likewise.
50984         * lib/fseeko.c (fseeko): Likewise.
50985         * lib/fseterr.c (fseterr): Likewise.
50986         * lib/fwritable.c (fwritable): Likewise.
50987         * lib/fwriting.c (fwriting): Likewise.
50988
50989 2008-04-26  Bruno Haible  <bruno@clisp.org>
50990
50991         * lib/stdio-impl.h: New file.
50992         * lib/fbufmode.c: Include stdio-impl.h.
50993         (fbufmode): Use fp_, remove redundant #defines.
50994         * lib/fflush.c: Include stdio-impl.h.
50995         (clear_ungetc_buffer): Remove redundant #defines.
50996         * lib/fpurge.c: Include stdio-impl.h.
50997         (fpurge): Remove redundant #defines.
50998         * lib/freadable.c: Include stdio-impl.h.
50999         (freadable): Remove redundant #defines.
51000         * lib/freadahead.c: Include stdio-impl.h.
51001         (freadahead): Remove redundant #defines.
51002         * lib/freading.c: Include stdio-impl.h.
51003         (freading): Remove redundant #defines.
51004         * lib/freadptr.c: Include stdio-impl.h.
51005         (freadptr): Remove redundant #defines.
51006         * lib/freadseek.c: Include stdio-impl.h.
51007         (freadptrinc): Remove redundant #defines.
51008         * lib/fseeko.c: Include stdio-impl.h.
51009         (rpl_fseeko): Remove redundant #defines.
51010         * lib/fseterr.c: Include stdio-impl.h.
51011         (fseterr): Remove redundant #defines.
51012         * lib/fwritable.c: Include stdio-impl.h.
51013         (fwritable: Remove redundant #defines.
51014         * lib/fwriting.c: Include stdio-impl.h.
51015         (fwriting): Remove redundant #defines.
51016         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51017         * modules/fflush (Files): Likewise.
51018         * modules/fpurge (Files): Likewise.
51019         * modules/freadable (Files): Likewise.
51020         * modules/freadahead (Files): Likewise.
51021         * modules/freading (Files): Likewise.
51022         * modules/freadptr (Files): Likewise.
51023         * modules/freadseek (Files): Likewise.
51024         * modules/fseeko (Files): Likewise.
51025         * modules/fseterr (Files): Likewise.
51026         * modules/fwritable (Files): Likewise.
51027         * modules/fwriting (Files): Likewise.
51028
51029 2008-04-26  Bruno Haible  <bruno@clisp.org>
51030
51031         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51032         restore_seek_optimization, update_fpos_cache): New functions, extracted
51033         from rpl_fflush.
51034         (rpl_fflush): Use them.
51035         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51036         (gl_REPLACE_FFLUSH): Use it.
51037
51038 2008-04-26  Bruno Haible  <bruno@clisp.org>
51039
51040         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51041         on Solaris.
51042         * tests/test-xstrtoimax.sh: Likewise.
51043         * tests/test-xstrtoumax.sh: Likewise.
51044         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51045
51046 2008-04-26  Bruno Haible  <bruno@clisp.org>
51047
51048         * modules/memchr-tests: New file.
51049         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51050
51051 2008-04-26  Eric Blake  <ebb9@byu.net>
51052             Bruno Haible  <bruno@clisp.org>
51053
51054         * lib/memchr.c: Include intprops.h.
51055         (__memchr): Optimize parallel detection of matching bytes. Rename local
51056         variables. Add explanatory comments.
51057
51058 2008-04-26  Bruno Haible  <bruno@clisp.org>
51059
51060         Fix module 'memchr', broken since 2000-10-28.
51061         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51062
51063 2008-04-26  Bruno Haible  <bruno@clisp.org>
51064
51065         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51066         comments.
51067
51068 2008-04-25  Eric Blake  <ebb9@byu.net>
51069
51070         Use native fstatat on cygwin 1.7.0.
51071         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51072         first.
51073
51074 2008-04-23  Eric Blake  <ebb9@byu.net>
51075
51076         Improve memchr2 performance.
51077         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51078         NUL bytes.
51079         * modules/memchr2 (Depends-on): Use intprops.h.
51080
51081 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51082
51083         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51084         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51085         <blp@cs.stanford.edu>.
51086
51087 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51088
51089         * lib/arpa_inet.in.h: New file.
51090
51091         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51092         (Makefile.am): Sed in substitute header file.
51093
51094         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51095         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51096
51097         * modules/inet_ntop (configure.ac): Use
51098         gl_ARPA_INET_MODULE_INDICATOR.
51099
51100         * modules/inet_pton (configure.ac): Use
51101         gl_ARPA_INET_MODULE_INDICATOR.
51102
51103 2008-04-22  Jim Meyering  <meyering@redhat.com>
51104
51105         * modules/verify (License): Re-license as LGPLv2+.
51106
51107 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51108
51109         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51110         parameter to void* as per POSIX standard (MinGW uses char*).
51111
51112 2008-04-21  Bruno Haible  <bruno@clisp.org>
51113
51114         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51115         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51116         Define to replacements if REPLACE_ISWCNTRL is 1.
51117         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51118         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51119         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51120         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51121         what it fixes.
51122         * doc/posix-functions/iswalpha.texi: Likewise.
51123         * doc/posix-functions/iswblank.texi: Likewise.
51124         * doc/posix-functions/iswcntrl.texi: Likewise.
51125         * doc/posix-functions/iswdigit.texi: Likewise.
51126         * doc/posix-functions/iswgraph.texi: Likewise.
51127         * doc/posix-functions/iswlower.texi: Likewise.
51128         * doc/posix-functions/iswprint.texi: Likewise.
51129         * doc/posix-functions/iswpunct.texi: Likewise.
51130         * doc/posix-functions/iswspace.texi: Likewise.
51131         * doc/posix-functions/iswupper.texi: Likewise.
51132         * doc/posix-functions/iswxdigit.texi: Likewise.
51133         Reported by Alain Guibert.
51134
51135 2008-04-21  Bruno Haible  <bruno@clisp.org>
51136
51137         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51138         Patch by Alain Guibert.
51139
51140 2008-04-21  Bruno Haible  <bruno@clisp.org>
51141
51142         Fix test failures on mingw.
51143         * tests/test-xstrtol.c (print_no_progname): New function.
51144         (main): Install it in error_print_progname hook.
51145         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51146         * tests/test-xstrtoimax.sh: Likewise.
51147         * tests/test-xstrtoumax.sh: Likewise.
51148
51149 2008-04-21  Bruno Haible  <bruno@clisp.org>
51150
51151         Fix test failure on mingw.
51152         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51153
51154 2008-04-21  Bruno Haible  <bruno@clisp.org>
51155
51156         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51157         Actually assign a value.
51158
51159 2008-04-20  Bruno Haible  <bruno@clisp.org>
51160
51161         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51162         take 2.
51163         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51164         'canonicalize-lgpl' module is also used.
51165         * lib/canonicalize-lgpl.c: Undo last change.
51166         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51167
51168 2008-04-20  Bruno Haible  <bruno@clisp.org>
51169
51170         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51171         config.h. Provide _mkdir based fallback for mingw.
51172         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51173         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51174         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51175         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51176         rather than defining mkdir in config.h.
51177         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51178         (gl_SYS_STAT_H_DEFAULTS): New macro.
51179         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51180         HAVE_IO_H any more.
51181         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51182         HAVE_DECL_MKDIR and HAVE_IO_H.
51183
51184 2008-04-20  Bruno Haible  <bruno@clisp.org>
51185
51186         * lib/isapipe.c: Port to native Windows platforms.
51187
51188 2008-04-20  Bruno Haible  <bruno@clisp.org>
51189
51190         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51191
51192 2008-04-21  Eric Blake  <ebb9@byu.net>
51193
51194         Work around preprocessors that don't handle UINTMAX_MAX.
51195         * lib/memchr2.c (memchr2): Avoid embedded #if.
51196         Reported by Alain Guibert, fix suggested by Bruno Haible.
51197
51198 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51199
51200         * doc/posix-functions/strftime.texi (strftime): Explain better
51201         Windows incompatibility.  Suggested by Micah Cowan
51202         <micah@cowan.name>.
51203
51204 2008-04-20  Bruno Haible  <bruno@clisp.org>
51205
51206         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51207         unistr/u8-mblen.
51208
51209 2008-04-20  Bruno Haible  <bruno@clisp.org>
51210
51211         Fix test failure on platforms with non-GNU iconv.
51212         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51213         (U_TO_U8): Use it, rather than u16_to_u8.
51214         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51215         units at the end of the input string.
51216         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51217
51218 2008-04-20  Bruno Haible  <bruno@clisp.org>
51219
51220         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51221         when the resulting length is 0.
51222         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51223
51224 2008-04-20  Bruno Haible  <bruno@clisp.org>
51225
51226         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51227         works.
51228         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51229
51230 2008-04-20  Bruno Haible  <bruno@clisp.org>
51231
51232         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51233         * modules/tsearch-tests (configure.ac): Test for initstate function.
51234
51235 2008-04-20  Bruno Haible  <bruno@clisp.org>
51236
51237         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51238         for nlink_t if missing.
51239         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51240
51241 2008-04-19  Bruno Haible  <bruno@clisp.org>
51242
51243         Work around snprintf bug on Linux libc5.
51244         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51245         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51246         gl_SNPRINTF_SIZE1.
51247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51248         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51249         that test failed.
51250         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51251         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51252         * modules/snprintf (Files): Add m4/printf.m4.
51253         * modules/vsnprintf (Files): Likewise.
51254         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51255         * doc/posix-functions/vsnprintf.texi: Likewise.
51256
51257 2008-04-19  Bruno Haible  <bruno@clisp.org>
51258
51259         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51260         from 0.0058 to less than 10^-7.
51261
51262 2008-04-19  Bruno Haible  <bruno@clisp.org>
51263
51264         Fix rounding when a precision is given.
51265         * lib/vasnprintf.c (is_borderline): New function.
51266         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51267         9...9x.
51268         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51269         %e, %g.
51270         * tests/test-vasprintf-posix.c (test_function): Likewise.
51271         * tests/test-snprintf-posix.h (test_function): Likewise.
51272         * tests/test-sprintf-posix.h (test_function): Likewise.
51273         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51274         * tests/test-printf-posix.h (test_function): Likewise.
51275         * tests/test-printf-posix.output: Update.
51276         Reported by John Darrington <john@darrington.wattle.id.au> via
51277         Ben Pfaff <blp@cs.stanford.edu>.
51278
51279 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51280
51281         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51282         Suggested by Bruno Haible <bruno@clisp.org>.
51283
51284 2008-04-17  Bruno Haible  <bruno@clisp.org>
51285
51286         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51287         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51288         implementation.
51289         Patch by Bruce Merry <bmerry@gmail.com>.
51290
51291 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51292
51293         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51294         doesn't work under Windows.
51295
51296 2008-04-16  Bruno Haible  <bruno@clisp.org>
51297
51298         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51299         New macros.
51300         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51301         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51302         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51303         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51304         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51305         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51306         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51307         macros.
51308         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51309         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51310         Northern Sotho, Uighur.
51311
51312 2008-04-16  Bruno Haible  <bruno@clisp.org>
51313
51314         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51315         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51316         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51317         Reported by Daniel Bergström <daniel@octocode.com>.
51318
51319 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51320             Bruno Haible  <bruno@clisp.org>
51321
51322         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51323         function.
51324         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51325         New functions, mostly extracted from gl_locale_name_default.
51326         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51327
51328 2008-04-16  Eric Blake  <ebb9@byu.net>
51329
51330         Adjust strtod detection to catch glibc 2.7 bug.
51331         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51332         Reported by John Gatewood Ham.
51333
51334 2008-04-16  Bruno Haible  <bruno@clisp.org>
51335
51336         Add tentative support for Linux libc5.
51337         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51338         * lib/fpurge.c (fpurge): Likewise.
51339         * lib/freadable.c (freadable): Likewise.
51340         * lib/freadahead.c (freadahead): Likewise.
51341         * lib/freading.c (freading): Likewise.
51342         * lib/freadptr.c (freadptr): Likewise.
51343         * lib/freadseek.c (freadptrinc): Likewise.
51344         * lib/fseeko.c (rpl_fseeko): Likewise.
51345         * lib/fseterr.c (fseterr): Likewise.
51346         * lib/fwritable.c (fwritable): Likewise.
51347         * lib/fwriting.c (fwriting): Likewise.
51348         Reported by Alain Guibert <alguibert+bts@free.fr>.
51349
51350 2008-04-15  Bruno Haible  <bruno@clisp.org>
51351
51352         * modules/mathl (configure.ac): Define module indicator.
51353
51354 2008-04-15  Bruno Haible  <bruno@clisp.org>
51355
51356         * lib/logl.c (logl): Remove unused variables.
51357
51358 2008-04-15  Bruno Haible  <bruno@clisp.org>
51359
51360         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51361         fails.
51362
51363 2008-04-15  Bruno Haible  <bruno@clisp.org>
51364
51365         * lib/trim.c (trim2): Fix argument of isspace() macro.
51366
51367 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51368
51369         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51370         to 0.
51371         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51372
51373 2008-04-14  Bruno Haible  <bruno@clisp.org>
51374
51375         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51376         AC_LANG_PROGRAM argument.
51377         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51378         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51380         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51381         * m4/math_h.m4 (gl_MATH_H): Likewise.
51382         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51383         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51384         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51385         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51386         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51387         * m4/regex.m4 (gl_REGEX): Likewise.
51388         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51389         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51391         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51392         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51393         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51394         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51395         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51396
51397 2008-04-14  Jim Meyering  <meyering@redhat.com>
51398
51399         test-strtod: fix typos: s/abs/fabs/
51400         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51401
51402 2008-04-13  Bruno Haible  <bruno@clisp.org>
51403
51404         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51405         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51406         module is also used and while not building the reloc-wrapper.
51407
51408 2008-04-13  Bruno Haible  <bruno@clisp.org>
51409
51410         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51411
51412 2008-04-13  Bruno Haible  <bruno@clisp.org>
51413
51414         Fix AIX compilation failure introduced on 2008-04-02.
51415         * tests/test-frexp.c (exp): Undefine before redefining.
51416         * tests/test-frexpl.c (exp): Likewise.
51417
51418 2008-04-13  Bruno Haible  <bruno@clisp.org>
51419
51420         Work around a HP-UX stdio bug.
51421         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51422         * tests/test-ftello.c (main): Likewise.
51423         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51424         * doc/posix-functions/ftello.texi: Likewise.
51425
51426 2008-04-13  Bruno Haible  <bruno@clisp.org>
51427
51428         Make test-signbit pass on HP-UX/hppa.
51429         * tests/test-signbit.c (minus_zerol): New variable.
51430         (test_signbitl): Use it.
51431
51432 2008-04-13  Bruno Haible  <bruno@clisp.org>
51433
51434         Make truncl work on OSF/1 4.0.
51435         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51436         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51437         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51439         HAVE_DECL_TRUNCL.
51440         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51441         HAVE_DECL_TRUNCL.
51442         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51443
51444 2008-04-13  Bruno Haible  <bruno@clisp.org>
51445
51446         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51447
51448 2008-04-13  Bruno Haible  <bruno@clisp.org>
51449
51450         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51451         expression, so as to avoid HP-UX 11 cc compiler bug.
51452
51453 2008-04-13  Bruno Haible  <bruno@clisp.org>
51454
51455         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51456
51457 2008-04-13  Bruno Haible  <bruno@clisp.org>
51458
51459         * lib/git-merge-changelog.c: Remove empty declaration outside of
51460         functions.
51461
51462 2008-04-13  Bruno Haible  <bruno@clisp.org>
51463
51464         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51465
51466 2008-04-13  Bruno Haible  <bruno@clisp.org>
51467
51468         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51469         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51470         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51471         also if it exists but lacks definitions of the SHUT_* macros.
51472         * modules/sys_socket (Description): Update.
51473         Reported by Elbert Pol <e.pol@chello.nl>.
51474
51475 2008-04-13  Bruno Haible  <bruno@clisp.org>
51476
51477         * lib/localcharset.c (OS2): Don't redefine if already defined.
51478         Reported by Elbert Pol <e.pol@chello.nl>.
51479
51480 2008-04-13  Bruno Haible  <bruno@clisp.org>
51481
51482         * lib/binary-io.h [__EMX__]: Include <io.h>.
51483         Reported by Elbert Pol <e.pol@chello.nl>.
51484
51485 2008-04-12  Bruno Haible  <bruno@clisp.org>
51486
51487         * lib/fpucw.h: Enable the definitions also for x86_64.
51488         Needed for NetBSD/x86_64.
51489         Reported by Thomas Klausner <tk@giga.or.at>.
51490
51491 2008-04-12  Bruno Haible  <bruno@clisp.org>
51492
51493         * tests/test-strtod.c: Include isnand.h.
51494         (main): Use isnand instead of isnan.
51495         Reported by Jim Meyering.
51496
51497 2008-04-12  Bruno Haible  <bruno@clisp.org>
51498
51499         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51500         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51501
51502 2008-04-12  Jim Meyering  <meyering@redhat.com>
51503
51504         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51505
51506 2008-04-12  Bruno Haible  <bruno@clisp.org>
51507
51508         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51509         Reported by Elbert Pol <e.pol@chello.nl>.
51510
51511 2008-04-12  Eric Blake  <ebb9@byu.net>
51512
51513         Work around Solaris 10 math.h bug.
51514         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51515         (gl_MATH_H_DEFAULTS): Set up default.
51516         * modules/math (Makefile.am): Replace new indicators.
51517         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51518         * tests/test-math.c (main): Test this.
51519         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51520         * doc/posix-headers/math.texi (math.h): Mention bug.
51521         Reported by Nelson H. F. Beebe and Jim Meyering.
51522
51523 2008-04-11  Bruno Haible  <bruno@clisp.org>
51524
51525         Adapt to future versions of Apple GCC.
51526         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51527         Reported by Peter O'Gorman <peter@pogma.com>.
51528
51529 2008-04-11  Bruno Haible  <bruno@clisp.org>
51530
51531         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51532
51533 2008-04-11  Bruno Haible  <bruno@clisp.org>
51534
51535         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51536
51537         * modules/getaddrinfo-tests (Makefile.am): Define
51538         test_getaddrinfo_LDADD.
51539
51540 2008-04-11  Bruno Haible  <bruno@clisp.org>
51541
51542         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51543         (init): Fix syntax error.
51544         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51545         is declared.
51546
51547 2008-04-11  Bruno Haible  <bruno@clisp.org>
51548
51549         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51550         * modules/glob (Depends-on): Add stdbool.
51551
51552 2008-04-11  Bruno Haible  <bruno@clisp.org>
51553
51554         * lib/trim.c: Include <string.h>.
51555
51556 2008-04-11  Eric Blake  <ebb9@byu.net>
51557
51558         Avoid compile failure on OS/2.
51559         * lib/regex_internal.h (internal_function): Disable optimization
51560         on OS/2 (__EMX__), where it caused compiler error.
51561         Reported by Elbert Pol.
51562
51563 2008-04-11  Bruno Haible  <bruno@clisp.org>
51564
51565         Flush the standard error stream before aborting. Needed on mingw.
51566         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51567         * tests/test-array_list.c (ASSERT): Likewise.
51568         * tests/test-array_oset.c (ASSERT): Likewise.
51569         * tests/test-avltree_list.c (ASSERT): Likewise.
51570         * tests/test-avltree_oset.c (ASSERT): Likewise.
51571         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51572         * tests/test-binary-io.c (ASSERT): Likewise.
51573         * tests/test-byteswap.c (ASSERT): Likewise.
51574         * tests/test-c-ctype.c (ASSERT): Likewise.
51575         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51576         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51577         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51578         * tests/test-c-strstr.c (ASSERT): Likewise.
51579         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51580         * tests/test-canonicalize.c (ASSERT): Likewise.
51581         * tests/test-carray_list.c (ASSERT): Likewise.
51582         * tests/test-ceilf1.c (ASSERT): Likewise.
51583         * tests/test-ceilf2.c (ASSERT): Likewise.
51584         * tests/test-ceill.c (ASSERT): Likewise.
51585         * tests/test-count-one-bits.c (ASSERT): Likewise.
51586         * tests/test-fbufmode.c (ASSERT): Likewise.
51587         * tests/test-fflush2.c (ASSERT): Likewise.
51588         * tests/test-floorf1.c (ASSERT): Likewise.
51589         * tests/test-floorf2.c (ASSERT): Likewise.
51590         * tests/test-floorl.c (ASSERT): Likewise.
51591         * tests/test-fopen.c (ASSERT): Likewise.
51592         * tests/test-fpending.c (ASSERT): Likewise.
51593         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51594         * tests/test-fpurge.c (ASSERT): Likewise.
51595         * tests/test-freadable.c (ASSERT): Likewise.
51596         * tests/test-freadahead.c (ASSERT): Likewise.
51597         * tests/test-freading.c (ASSERT): Likewise.
51598         * tests/test-freadptr.c (ASSERT): Likewise.
51599         * tests/test-freadptr2.c (ASSERT): Likewise.
51600         * tests/test-freadseek.c (ASSERT): Likewise.
51601         * tests/test-freopen.c (ASSERT): Likewise.
51602         * tests/test-frexp.c (ASSERT): Likewise.
51603         * tests/test-frexpl.c (ASSERT): Likewise.
51604         * tests/test-fseek.c (ASSERT): Likewise.
51605         * tests/test-fseeko.c (ASSERT): Likewise.
51606         * tests/test-fstrcmp.c (ASSERT): Likewise.
51607         * tests/test-ftell.c (ASSERT): Likewise.
51608         * tests/test-ftello.c (ASSERT): Likewise.
51609         * tests/test-func.c (ASSERT): Likewise.
51610         * tests/test-fwritable.c (ASSERT): Likewise.
51611         * tests/test-fwriting.c (ASSERT): Likewise.
51612         * tests/test-getdelim.c (ASSERT): Likewise.
51613         * tests/test-getline.c (ASSERT): Likewise.
51614         * tests/test-i-ring.c (ASSERT): Likewise.
51615         * tests/test-iconv-utf.c (ASSERT): Likewise.
51616         * tests/test-iconv.c (ASSERT): Likewise.
51617         * tests/test-isfinite.c (ASSERT): Likewise.
51618         * tests/test-isnand.c (ASSERT): Likewise.
51619         * tests/test-isnanf.c (ASSERT): Likewise.
51620         * tests/test-isnanl.h (ASSERT): Likewise.
51621         * tests/test-ldexpl.c (ASSERT): Likewise.
51622         * tests/test-linked_list.c (ASSERT): Likewise.
51623         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51624         * tests/test-localename.c (ASSERT): Likewise.
51625         * tests/test-lseek.c (ASSERT): Likewise.
51626         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51627         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51628         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51629         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51630         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51631         * tests/test-mbschr.c (ASSERT): Likewise.
51632         * tests/test-mbscspn.c (ASSERT): Likewise.
51633         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51634         * tests/test-mbspbrk.c (ASSERT): Likewise.
51635         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51636         * tests/test-mbsrchr.c (ASSERT): Likewise.
51637         * tests/test-mbsspn.c (ASSERT): Likewise.
51638         * tests/test-mbsstr1.c (ASSERT): Likewise.
51639         * tests/test-mbsstr2.c (ASSERT): Likewise.
51640         * tests/test-mbsstr3.c (ASSERT): Likewise.
51641         * tests/test-memchr2.c (ASSERT): Likewise.
51642         * tests/test-memmem.c (ASSERT): Likewise.
51643         * tests/test-open.c (ASSERT): Likewise.
51644         * tests/test-printf-frexp.c (ASSERT): Likewise.
51645         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51646         * tests/test-printf-posix.c (ASSERT): Likewise.
51647         * tests/test-quotearg.c (ASSERT): Likewise.
51648         * tests/test-rbtree_list.c (ASSERT): Likewise.
51649         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51650         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51651         * tests/test-round1.c (ASSERT): Likewise.
51652         * tests/test-roundf1.c (ASSERT): Likewise.
51653         * tests/test-roundl.c (ASSERT): Likewise.
51654         * tests/test-signbit.c (ASSERT): Likewise.
51655         * tests/test-sleep.c (ASSERT): Likewise.
51656         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51657         * tests/test-snprintf.c (ASSERT): Likewise.
51658         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51659         * tests/test-stat-time.c (ASSERT): Likewise.
51660         * tests/test-strcasestr.c (ASSERT): Likewise.
51661         * tests/test-strerror.c (ASSERT): Likewise.
51662         * tests/test-striconv.c (ASSERT): Likewise.
51663         * tests/test-striconveh.c (ASSERT): Likewise.
51664         * tests/test-striconveha.c (ASSERT): Likewise.
51665         * tests/test-strsignal.c (ASSERT): Likewise.
51666         * tests/test-strstr.c (ASSERT): Likewise.
51667         * tests/test-strtod.c (ASSERT): Likewise.
51668         * tests/test-trunc1.c (ASSERT): Likewise.
51669         * tests/test-trunc2.c (ASSERT): Likewise.
51670         * tests/test-truncf1.c (ASSERT): Likewise.
51671         * tests/test-truncf2.c (ASSERT): Likewise.
51672         * tests/test-truncl.c (ASSERT): Likewise.
51673         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51674         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51675         * tests/test-vasnprintf.c (ASSERT): Likewise.
51676         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51677         * tests/test-vasprintf.c (ASSERT): Likewise.
51678         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51679         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51680         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51681         * tests/test-vsnprintf.c (ASSERT): Likewise.
51682         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51683         * tests/test-wcwidth.c (ASSERT): Likewise.
51684         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51685         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51686         * tests/test-xvasprintf.c (ASSERT): Likewise.
51687         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51688         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51689         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51690         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51691         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51692         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51693         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51694         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51695         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51696         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51697         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51698         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51699         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51700         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51701         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51702         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51703         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51704         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51705         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51706         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51707         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51708         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51709         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51710         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51711         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51712         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51713         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51714         * tests/unictype/test-combining.c (ASSERT): Likewise.
51715         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51716         * tests/unictype/test-digit.c (ASSERT): Likewise.
51717         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51718         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51719         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51720         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51721         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51722         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51723         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51724         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51725         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51726         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51727         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51728         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51729         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51730         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51731         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51732         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51733         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51734         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51735         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51736         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51737         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51738         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51739         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51740         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51741         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51742         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51743         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51744         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51745         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51746         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51747         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51748         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51749         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51750         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51751         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51752         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51753         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51754         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51755         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51756         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51757         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51758         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51759         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51760         Reported by Eric Blake.
51761
51762 2008-04-11  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/wchar.in.h: Tweak comment.
51765
51766 2008-04-11  Bruno Haible  <bruno@clisp.org>
51767
51768         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51769         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51770         gl_COMMON.
51771         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51772
51773 2008-04-11  Bruno Haible  <bruno@clisp.org>
51774
51775         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51776
51777 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51778
51779         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51780         of attempting to use non-existing /dev/*random.  Based on patch
51781         from Adam Strzelecki <ono@java.pl> in
51782         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51783
51784 2008-04-08  Bruno Haible  <bruno@clisp.org>
51785
51786         Add tentative support for emx+gcc.
51787         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51788         * lib/fpurge.c (fpurge): Likewise.
51789         * lib/freadable.c (freadable): Likewise.
51790         * lib/freadahead.c (freadahead): Likewise.
51791         * lib/freading.c (freading): Likewise.
51792         * lib/freadptr.c (freadptr): Likewise.
51793         * lib/freadseek.c (freadptrinc): Likewise.
51794         * lib/fseeko.c (rpl_fseeko): Likewise.
51795         * lib/fseterr.c (fseterr): Likewise.
51796         * lib/fwritable.c (fwritable): Likewise.
51797         * lib/fwriting.c (fwriting): Likewise.
51798         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51799
51800 2008-04-09  Eric Blake  <ebb9@byu.net>
51801
51802         Avoid some autoconf warnings.
51803         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51804         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51805         * m4/afs.m4 (gl_AFS): Likewise.
51806         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51807         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51808         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51809         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51810         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51811         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51812         (AC_CHECK_DECLS_ONCE): Likewise.
51813         Rename file...
51814         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51815         gnulib-tool requires autoconf 2.59 or better.
51816         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51817
51818 2008-04-08  Eric Blake  <ebb9@byu.net>
51819
51820         Use 'git describe --match' if present (added in git 1.5.5).
51821         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51822         if possible.
51823
51824 2008-04-08  Bruno Haible  <bruno@clisp.org>
51825
51826         Add tentative support for OpenServer.
51827         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51828         _ptr, _cnt.
51829         * lib/fpurge.c (fpurge): Likewise.
51830         * lib/freadable.c (freadable): Likewise.
51831         * lib/freadahead.c (freadahead): Likewise.
51832         * lib/freading.c (freading): Likewise.
51833         * lib/freadptr.c (freadptr): Likewise.
51834         * lib/freadseek.c (freadptrinc): Likewise.
51835         * lib/fseeko.c (rpl_fseeko): Likewise.
51836         * lib/fseterr.c (fseterr): Likewise.
51837         * lib/fwritable.c (fwritable): Likewise.
51838         * lib/fwriting.c (fwriting): Likewise.
51839         Reported by Roger Cornelius <rac@tenzing.org> and
51840         Brian K. White <brian@aljex.com>.
51841
51842 2008-04-06  Jim Meyering  <meyering@redhat.com>
51843
51844         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51845
51846 2008-04-06  Bruno Haible  <bruno@clisp.org>
51847
51848         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51849         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51850         * tests/test-printf-posix.sh: Likewise.
51851         * tests/test-vfprintf-posix.sh: Likewise.
51852         * tests/test-vprintf-posix.sh: Likewise.
51853         * tests/test-xprintf-posix.sh: Likewise.
51854
51855 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51856
51857         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51858         hide error from 'ls', needed on OS/2.
51859         Report by Elbert Pol <elbert.pol@gmail.com>.
51860
51861 2008-04-04  Eric Blake  <ebb9@byu.net>
51862
51863         Make test-fseeko.c failures meaningful.
51864         * tests/test-fseeko.c: Print line number on failure.
51865         * tests/test-fseek.c: Likewise.
51866         Reported by Nelson H. F. Beebe.
51867
51868         Improve strtod bug detection check.
51869         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51870         required for Solaris 10.
51871         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51872
51873 2008-04-04  Bruno Haible  <bruno@clisp.org>
51874
51875         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51876         by m4/setenv.m4.
51877
51878 2008-04-03  Eric Blake  <ebb9@byu.net>
51879
51880         Ensure sane .version contents.
51881         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51882         version string.
51883         * build-aux/git-version-gen: Improve documentation.
51884
51885         Make GNU make output nicer.
51886         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51887         MAKECMDGOALS to enforce message for all command line targets.  Set
51888         srcdir for use in maint.mk.
51889
51890         Another maintainer tweak.
51891         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51892         a target that regenerates version.
51893
51894 2008-04-03  Jim Meyering  <meyering@redhat.com>
51895
51896         vc-list-files: don't cause coreutils "make po-check" failure
51897         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51898
51899 2008-04-03  Eric Blake  <ebb9@byu.net>
51900
51901         Allow VPATH usage of vc-list-files.
51902         * build-aux/vc-list-files (scriptversion): Add timestamp.
51903         (options): Add --help, --version, -C.
51904         (CVS): Support installed cvsu.
51905
51906 2008-04-02  Bruno Haible  <bruno@clisp.org>
51907
51908         Avoid some "statement with no effect" warnings from gcc.
51909         * tests/test-wctype.c (main): Explicitly ignore unused values.
51910         Reported by Jim Meyering.
51911
51912 2008-04-02  Jim Meyering  <meyering@redhat.com>
51913
51914         Avoid some warnings from "gcc -Wshadow".
51915         * tests/test-frexp.c (exp): Define to a different identifier.
51916         * tests/test-frexpl.c (exp): Likewise.
51917
51918 2008-04-03  Jim Meyering  <meyering@redhat.com>
51919
51920         bootstrap: remove dangling *.[ch] symlinks from lib
51921         * build-aux/bootstrap [dangling symlink removal]: Move find's
51922         -depth option to precede all others, to avoid a warning.
51923         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51924
51925 2008-04-02  Bruno Haible  <bruno@clisp.org>
51926
51927         Avoid some warnings from "gcc -Wshadow".
51928         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51929         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51930         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51931         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51932         Reported by Jim Meyering.
51933
51934 2008-04-01  Bruno Haible  <bruno@clisp.org>
51935
51936         Fix test to work on IRIX 6.5 with cc.
51937         * tests/test-math.c (numeric_equal): New function.
51938         (main): Use it.
51939
51940 2008-04-01  Bruno Haible  <bruno@clisp.org>
51941
51942         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51943
51944 2008-04-01  Bruno Haible  <bruno@clisp.org>
51945
51946         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51947         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51948         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51949         (Depends-on): Remove math.
51950
51951         * tests/test-vasprintf-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/vasprintf-posix-tests (Files): Add tests/nan.h.
51954         (Depends-on): Remove math.
51955
51956         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51957         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51958         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51959         (Depends-on): Remove math.
51960         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51961         (Depends-on): Remove math.
51962
51963         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51964         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51965         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51966         (Depends-on): Remove math.
51967         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51968         (Depends-on): Remove math.
51969
51970         * tests/test-round1.c: Include nan.h.
51971         (main): Use NaNd instead of NAN.
51972         * modules/round-tests (Files): Add tests/nan.h.
51973
51974         * tests/test-trunc1.c: Include nan.h.
51975         (main): Use NaNd instead of NAN.
51976         * modules/trunc-tests (Files): Add tests/nan.h.
51977
51978         * tests/test-roundf1.c: Include nan.h.
51979         (main): Use NaNf instead of NAN.
51980         * modules/roundf-tests (Files): Add tests/nan.h.
51981
51982         * tests/test-truncf1.c: Include nan.h.
51983         (main): Use NaNf instead of NAN.
51984         * modules/truncf-tests (Files): Add tests/nan.h.
51985
51986         * tests/test-ceilf1.c: Include nan.h.
51987         (main): Use NaNf instead of NAN.
51988         * modules/ceilf-tests (Files): Add tests/nan.h.
51989
51990         * tests/test-floorf1.c: Include nan.h.
51991         (main): Use NaNf instead of NAN.
51992         * modules/floorf-tests (Files): Add tests/nan.h.
51993
51994         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51995         (main): Use NaNf instead of NAN.
51996         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51997
51998         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51999         (main): Use NaNd instead of NAN.
52000         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52001
52002         * tests/test-frexp.c: Include nan.h.
52003         (main): Use NaNd instead of NAN.
52004         * modules/frexp-tests (Files): Add tests/nan.h.
52005
52006         * lib/isnan.c: Don't include <math.h>.
52007         (FUNC): Don't use NAN macro.
52008         * modules/isnand-nolibm (Depends-on): Remove math.
52009         * modules/isnanf-nolibm (Depends-on): Remove math.
52010         * modules/isnanl (Depends-on): Remove math.
52011         * modules/isnanl-nolibm (Depends-on): Remove math.
52012
52013         * tests/nan.h: New file.
52014
52015 2008-04-01  Eric Blake  <ebb9@byu.net>
52016
52017         Fix typos.
52018         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52019         values to be the right type.
52020
52021         For now, cater to gnulib strtod inaccuracies.
52022         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52023         fractional results.  While not as nice from a QoI perspective, it
52024         is a quicker patch than correctly implementing decimal to binary
52025         rounding.
52026
52027 2008-03-31  Eric Blake  <ebb9@byu.net>
52028
52029         Guarantee a definition of NAN.
52030         * lib/math.in.h (NAN): Define if missing.
52031         * tests/test-math.c (main): Test it.
52032         * doc/posix-headers/math.texi (math.h): Document this.
52033         * lib/isnan.c (rpl_isnand): Use it.
52034         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52035         * tests/test-floorf1.c (NaN): Likewise.
52036         * tests/test-frexp.c (NaN): Likewise.
52037         * tests/test-isnand.c (NaN): Likewise.
52038         * tests/test-isnanf.c (NaN): Likewise.
52039         * tests/test-round1.c (NaN): Likewise.
52040         * tests/test-roundf1.c (NaN): Likewise.
52041         * tests/test-snprintf-posix.h (NaN): Likewise.
52042         * tests/test-sprintf-posix.h (NaN): Likewise.
52043         * tests/test-trunc1.c (NaN): Likewise.
52044         * tests/test-truncf1.c (NaN): Likewise.
52045         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52046         * tests/test-vasprintf-posix.c (NaN): Likewise.
52047         * modules/isnand-nolibm (Depends-on): Add math.
52048         * modules/isnanf-nolibm (Depends-on): Likewise.
52049         * modules/isnanl (Depends-on): Likewise.
52050         * modules/isnanl-nolibm (Depends-on): Likewise.
52051         * modules/snprintf-posix-tests (Depends-on): Likewise.
52052         * modules/sprintf-posix-tests (Depends-on): Likewise.
52053         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52054         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52055         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52056         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52057
52058 2008-03-31  Bruno Haible  <bruno@clisp.org>
52059
52060         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52061         * doc/posix-functions/strtod.texi: Likewise.
52062
52063 2008-03-31  Bruno Haible  <bruno@clisp.org>
52064
52065         * tests/test-strtod.c (main): Don't use C99 syntax.
52066
52067 2008-03-31  Bruno Haible  <bruno@clisp.org>
52068
52069         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52070         Reported by Eric Blake.
52071
52072 2008-03-31  Jim Meyering  <meyering@redhat.com>
52073
52074         Don't compare actual signbit return values.
52075         * tests/test-strtod.c (main): Rather, compare only their
52076         zero/non-zero nature.
52077
52078 2008-03-31  Eric Blake  <ebb9@byu.net>
52079
52080         More strtod documentation.
52081         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52082         failures as distinct bugs.
52083
52084 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52085
52086         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52087         Problem reported by Erik Benada in
52088         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52089
52090 2008-03-30  Bruno Haible  <bruno@clisp.org>
52091
52092         * tests/test-strtod.c: Add comments about which assertion fails on which
52093         platform.
52094         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52095
52096 2008-03-30  Eric Blake  <ebb9@byu.net>
52097
52098         Test signbit behavior on zeros.
52099         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52100         (test_signbitd, test_signbitl): Likewise.
52101
52102         More strtod touchups.
52103         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52104         sign of negative underflow, for now.  Use .5, not .1.
52105         * doc/posix-functions/strtod.texi (strtod): Mention these
52106         limitations.
52107         Reported by Jim Meyering.
52108
52109 2008-03-30  Bruno Haible  <bruno@clisp.org>
52110
52111         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52112         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52113
52114 2008-03-30  Bruno Haible  <bruno@clisp.org>
52115
52116         Avoid failure when attempting to return empty iconv results on some
52117         platforms.
52118         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52119         allocation, don't report ENOMEM when the resulting string is empty.
52120
52121 2008-03-30  Bruno Haible  <bruno@clisp.org>
52122
52123         Fix buffer overrun.
52124         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52125         Don't consider the width for tmp_length. Check count against tmp_length
52126         before doing the padding. Ensure enough allocation during padding.
52127
52128 2008-03-30  Eric Blake  <ebb9@byu.net>
52129
52130         strtod touchups.
52131         * lib/strtod.c (strtod): Avoid compiler warnings.
52132         Reported by Jim Meyering.
52133
52134 2008-03-30  Bruno Haible  <bruno@clisp.org>
52135
52136         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52137         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52138         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52139         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52140         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52141         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52142         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52143         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52144
52145         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52146         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52147         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52148         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52149         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52150         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52151         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52152         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52153
52154         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52155         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52156         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52157         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52158         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52159         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52160         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52161         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52162
52163         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52164         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52165
52166         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52167         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52168
52169         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52170         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52171
52172         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52174         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52175
52176         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52178         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52179
52180         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52181         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52182         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52183
52184         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52186         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52187
52188         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52189         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52190         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52191         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52192         (Depends-on): Add EOVERFLOW.
52193         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52194         (Depends-on): Add EOVERFLOW.
52195         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52196         (Depends-on): Add EOVERFLOW.
52197         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52198         (Depends-on): Add EOVERFLOW.
52199         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52200         (Depends-on): Add EOVERFLOW.
52201         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52202         (Depends-on): Add EOVERFLOW.
52203         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52204         (Depends-on): Add EOVERFLOW.
52205         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52206         (Depends-on): Add EOVERFLOW.
52207
52208         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52209         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52210         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52211
52212         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52214         * modules/snprintf (Depends-on): Add EOVERFLOW.
52215
52216         * lib/poll.c (EOVERFLOW): Remove fallback.
52217         * modules/poll (Depends-on): Add EOVERFLOW.
52218
52219         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52220         * modules/getugroups (Depends-on): Add EOVERFLOW.
52221
52222         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52223         * modules/getdelim (Depends-on): Add EOVERFLOW.
52224
52225         * lib/ftell.c (EOVERFLOW): Remove fallback.
52226         * modules/ftell (Depends-on): Add EOVERFLOW.
52227
52228         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52229         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52230         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52231
52232         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52233
52234         * modules/EOVERFLOW-tests: New file.
52235         * tests/test-EOVERFLOW.c: New file.
52236
52237         * modules/EOVERFLOW: New file.
52238         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52239
52240 2008-03-30  Bruno Haible  <bruno@clisp.org>
52241
52242         Fix bug introduced on 2007-06-10.
52243         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52244         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52245
52246 2008-03-30  Bruno Haible  <bruno@clisp.org>
52247
52248         Improve freadseek's efficiency after ungetc.
52249         * lib/freadseek.c: Include freadahead.h.
52250         (freadptrinc): New function, extracted from freadseek.
52251         (freadseek): Use it in a loop. Use freadahead to determine the number
52252         of loop iterations.
52253         * modules/freadseek (Depends-on): Add freadahead.
52254         (configure.ac): Require AC_C_INLINE.
52255
52256 2008-03-30  Bruno Haible  <bruno@clisp.org>
52257
52258         * lib/freadseek.c (freadseek): Don't ignore the return value of
52259         freadptr.
52260
52261 2008-03-29  Eric Blake  <ebb9@byu.net>
52262
52263         Add hex float support.
52264         * modules/strtod (Depends-on): Add c-ctype.
52265         (Link): Mention POW_LIB.
52266         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52267         whitespace between 'e' and exponent.
52268         * tests/test-strtod.c (main): Enable hex float tests.
52269         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52270         now provides.
52271
52272         Document various strtod bugs, with some fixes.
52273         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52274         "-0x", "inf", "nan", and hex constants.
52275         * doc/posix-functions/atof.texi (atof): Likewise.
52276         * modules/stdlib (Makefile.am): Support strtod.
52277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52278         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52279         detect additional strtod bugs.
52280         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52281         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52282         bool where appropriate.  Parse 'inf' and 'nan'.
52283         * tests/test-strtod.c: New file.
52284         * modules/strtod (Depends-on): Add stdbool, stdlib.
52285         (configure.ac): Turn on module indicator.
52286         * modules/strtod-tests: New module.
52287
52288 2008-03-29  Eric Blake  <ebb9@byu.net>
52289
52290         Fix ftell on mingw.
52291         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52292         * modules/ftell-tests (Depends-on): Add binary-io.
52293         * modules/ftello-tests (Depends-on): Likewise.
52294         * tests/test-ftell.c (main): Enhance test to cover behavior after
52295         ungetc.  Enforce binary mode.
52296         * tests/test-ftello.c (main): Likewise.
52297
52298         Pass test-freadseek on cygwin.
52299         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52300         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52301         ungetc buffer.
52302
52303         * tests/test-fflush2.c (main): Fix typo.
52304
52305 2008-03-29  Bruno Haible  <bruno@clisp.org>
52306
52307         * tests/test-fflush2.c (main): Temporarily disable the contents of
52308         this test.
52309         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52310         Reported by Eric Blake.
52311
52312 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52313
52314         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52315         (GC_SHA224_DIGEST_SIZE): Add.
52316
52317         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52318         (gc_hash_digest_length): Likewise.
52319         (gc_hash_buffer): Likewise.
52320
52321 2008-03-25  Bruno Haible  <bruno@clisp.org>
52322
52323         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52324         detail which gettext release to use.
52325         Reported by Simon Josefsson.
52326
52327 2008-03-26  Jim Meyering  <meyering@redhat.com>
52328
52329         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52330         * modules/gnumakefile (clean-GNUmakefile): Also, use
52331         test ... && ... || : syntax rather than if-then ... fi.
52332
52333         gnumakefile: Don't double-quote-expand $(VPATH) value.
52334         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52335
52336 2008-03-24  Eric Blake  <ebb9@byu.net>
52337
52338         Alter GNUmakefile to install into top directory.
52339         * modules/maintainer-makefile: Split, and add dependency...
52340         * modules/gnumakefile: to this new module.
52341         * build-aux/GNUmakefile: Move...
52342         * top/GNUmakefile: ...here.
52343         * build-aux/maint.mk: Move...
52344         * top/maint.mk: ...here.
52345         * MODULES.html.sh (Support for maintaining...): Document new
52346         module.
52347
52348 2008-03-23  Bruno Haible  <bruno@clisp.org>
52349
52350         * gnulib-tool: New options --vc-files, --no-vc-files.
52351         (func_usage): Document them.
52352         (vc_files): New variable.
52353         (func_import): Consider vc_files.
52354         (func_create_testdir): Set vc_files to empty.
52355         Suggested by Jim Meyering and Karl Berry.
52356
52357 2008-03-23  Bruno Haible  <bruno@clisp.org>
52358
52359         Fix regex compilation error on HP-UX 11.
52360         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52361         * modules/regex (Files): Add m4/mbstate_t.m4.
52362         Reported by Ton Voon <ton.voon@altinity.com>.
52363
52364 2008-03-23  Bruno Haible  <bruno@clisp.org>
52365
52366         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52367
52368 2008-03-23  Eric Blake  <ebb9@byu.net>
52369             Bruno Haible  <bruno@clisp.org>
52370
52371         Install files from top/ in the destination directory.
52372         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52373         augmentation also for the files from top/.
52374         (func_import, func_create_testdir): Rewrite file names:
52375         top/filename -> filename.
52376
52377 2008-03-23  Bruno Haible  <bruno@clisp.org>
52378
52379         Tweak "gnulib --version" output.
52380         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52381
52382 2008-03-23  Bruno Haible  <bruno@clisp.org>
52383
52384         Tweak "gnulib --version" output.
52385         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52386         rather than contents of ChangeLog, when possible.
52387
52388 2008-03-21  Eric Blake  <ebb9@byu.net>
52389
52390         More --version tweaks.
52391         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52392         date of last ChangeLog entry.
52393
52394 2008-03-21  Jim Meyering  <meyering@redhat.com>
52395
52396         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52397
52398 2008-03-20  Eric Blake  <ebb9@byu.net>
52399
52400         VPATH fix.
52401         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52402
52403 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52404
52405         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52406         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52407
52408 2008-03-20  Eric Blake  <ebb9@byu.net>
52409
52410         Sync GNUmakefile with coreutils.
52411         * build-aux/GNUmakefile (have-Makefile): Rename...
52412         (_have-Makefile): ...to this, for namespace consideration.
52413         (GNUmakefile.cfg): Include, if present.
52414         (_autoreconf): Define a default.
52415         (_is-dist-target): New rule for rebuilds to pick up intra-release
52416         version.
52417         (maint-cfg.mk): Rename...
52418         (cfg.mk): ...to this.
52419
52420 2008-03-18  Jim Meyering  <meyering@redhat.com>
52421
52422         New script and module: mktempd
52423         * MODULES.html.sh (maint+release support): Add mktempd.
52424         * build-aux/mktempd: New file.
52425         * modules/mktempd: New file.
52426
52427 2008-03-15  Jim Meyering  <meyering@redhat.com>
52428
52429         Undo last change.
52430         * lib/sha1.c, lib/md5.c: 63 != ~63.
52431         Reported by Andreas Schwab.
52432
52433         sha1.c, md5.c: Hoist a redundant expression.
52434         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52435         "ctx->buflen" only once, before calling *_process_block.
52436         * lib/md5.c (md5_process_bytes): Likewise.
52437
52438 2008-03-14  Eric Blake  <ebb9@byu.net>
52439
52440         Bump copyright year in files generated by gnulib-tool.
52441         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52442         gnulib-tool, rather than hard-coding it.
52443
52444         Fix 'gnulib-tool --version' output to work with git.
52445         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52446         (startup): ...here.
52447         (func_version): Use it to invoke git-version-gen, rather than
52448         relying on CVS keyword expansion.  Modernize wording.
52449         (cvsdatestamp, last_checkin_date, version): Kill unused
52450         variables.
52451
52452 2008-03-12  Jim Meyering  <meyering@redhat.com>
52453
52454         Recognize optional cast of the argument to free.
52455         * build-aux/useless-if-before-free: Update regexps.
52456
52457         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52458
52459 2008-03-11  Bruno Haible  <bruno@clisp.org>
52460
52461         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52462         by a single package.
52463         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52464         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52465         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52466         Reported by Sam Steingold <sds@gnu.org>.
52467
52468 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52469
52470         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52471         repositories.
52472
52473 2008-03-11  Bruno Haible  <bruno@clisp.org>
52474
52475         Avoid conflicts between local macro definitions.
52476         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52477         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52478
52479 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52480             Bruno Haible  <bruno@clisp.org>
52481
52482         Make va_copy work with some version of xlc on AIX 5.1.
52483         * lib/stdarg.in.h: New file.
52484         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52485         On AIX, use a <stdarg.h> file substitute.
52486         * modules/stdarg (Files): Add lib/stdarg.in.h.
52487         (Depends-on): Add include_next.
52488         (Makefile.am): Build a stdarg.h substitute if requested.
52489         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52490
52491 2008-03-10  Bruno Haible  <bruno@clisp.org>
52492
52493         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52494         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52495         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52496
52497 2008-03-10  Bruno Haible  <bruno@clisp.org>
52498
52499         * modules/stdlib (Depends-on): Add include_next, remove
52500         absolute-header.
52501
52502 2008-03-09  Bruno Haible  <bruno@clisp.org>
52503
52504         * lib/freadahead.h (freadahead): Document more precisely.
52505         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52506         the sum of both buffer sizes.
52507         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52508         * NEWS: Document the change.
52509
52510 2008-03-09  Bruno Haible  <bruno@clisp.org>
52511
52512         Extend freadptr to return also the buffer size.
52513         * lib/freadptr.h (freadptr): Add sizep argument.
52514         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52515         (freadptr): Add sizep argument. Determine buffer size like freadahead
52516         does.
52517         * tests/test-freadptr.c: Don't include freadahead.h.
52518         (main): Adapt for new calling convention of freadptr.
52519         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52520         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52521         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52522         tests/test-freadptr2.sh.
52523         (Depends): Remove freadahead.
52524         (TESTS): Add test-freadptr2.sh.
52525         (check_PROGRAMS): Add test-freadptr2.
52526
52527 2008-03-09  Bruno Haible  <bruno@clisp.org>
52528
52529         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52530         Report and solution by Simon Josefsson.
52531
52532 2008-03-06  Bruno Haible  <bruno@clisp.org>
52533
52534         Make fflush after ungetc work on BSD platforms.
52535         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52536         * tests/test-fflush2.c: New file.
52537         * tests/test-fflush2.sh: New file.
52538         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52539         tests/test-fflush2.c.
52540         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52541         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52542
52543 2008-03-06  Eric Blake  <ebb9@byu.net>
52544
52545         Likewise for ftello.
52546         * modules/ftello (Dependencies): Add extensions.
52547         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52548
52549 2008-03-06  Bruno Haible  <bruno@clisp.org>
52550
52551         * modules/fseeko (Dependencies): Add extensions.
52552         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52553         Needed on glibc systems.
52554
52555 2008-03-06  Bruno Haible  <bruno@clisp.org>
52556
52557         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52558         email address.
52559         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52560
52561 2008-03-06  Bruno Haible  <bruno@clisp.org>
52562
52563         * users.txt: Add libgnupdf.
52564
52565 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52566
52567         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52568         (Header File Substitutes, Function Substitutes,
52569         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52570         (Build robot for gnulib): Fix typo.
52571
52572 2008-03-06  Bruno Haible  <bruno@clisp.org>
52573
52574         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52575         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52576
52577 2008-03-06  Bruno Haible  <bruno@clisp.org>
52578
52579         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52580         * doc/gnulib.texi: Include it.
52581
52582 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52583
52584         * modules/func (License): Change license to unlimited; there was
52585         no LGPL parts in the module anyway.
52586
52587 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52588
52589         * modules/__func__: Renamed to modules/func.
52590         * modules/__func__-tests: Renamed to modules/func-tests.
52591         * tests/test-__func__.c: Renamed to tests/test-func.c.
52592         * m4/__func__.m4: Renamed to m4/func.m4.
52593         * doc/gnulib.texi (__func__): Section renamed to func.
52594         Suggested by Eric Blake <ebb9@byu.net>.
52595
52596 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52597
52598         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52599         about __func__.  Make example self-contained.  Suggested by Eric
52600         Blake <ebb9@byu.net>.
52601
52602         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52603         Suggested by Eric Blake <ebb9@byu.net>.
52604
52605 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52606
52607         * modules/__func__: New file.
52608         * modules/__func__-tests: New file.
52609         * tests/test-__func__.c: New file.
52610         * m4/__func__.m4: New file.
52611         * doc/gnulib.texi (__func__): Document __func__ module.
52612
52613 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52614
52615         * modules/byteswap (License): Re-license as LGPLv2+.
52616
52617 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52618
52619         * doc/Makefile: Add pdf target.
52620
52621 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52622
52623         * modules/inline (License): Use 'unlimited', since there are only
52624         *.m4 files in this module.
52625
52626 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52627             Bruno Haible  <bruno@clisp.org>
52628
52629         Add support for HP C 7.1 on OpenVMS 8.3.
52630         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52631
52632 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52633
52634         Update VMS specifics.
52635         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52636
52637 2008-03-02  Jim Meyering  <meyering@redhat.com>
52638
52639         Remove the last dependency on the "free" module.
52640         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52641         Reported by Bob Proulx.
52642
52643         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52644
52645         Remove useless "if" tests before free.  Deprecate "free" module.
52646         * doc/posix-functions/free.texi: Mention that this
52647         module is no longer useful.
52648         * modules/free (Notice): Say this module is obsolete.
52649         * modules/readutmp (Depends-on): Remove free.
52650         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52651         * lib/putenv.c (putenv): Likewise.
52652         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52653         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52654         * tests/test-c-strcasestr.c (main): Likewise.
52655         * tests/test-c-strstr.c (main): Likewise.
52656         * tests/test-mbscasestr1.c (main): Likewise.
52657         * tests/test-mbscasestr2.c (main): Likewise.
52658         * tests/test-mbsstr1.c (main): Likewise.
52659         * tests/test-mbsstr2.c (main): Likewise.
52660         * tests/test-memmem.c (main): Likewise.
52661         * tests/test-strcasestr.c (main): Likewise.
52662         * tests/test-striconv.c (main): Likewise.
52663         * tests/test-striconveh.c (main): Likewise.
52664         * tests/test-striconveha.c (main): Likewise.
52665         * tests/test-strstr.c (main): Likewise.
52666
52667         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52668
52669         bootstrap: sync from coreutils again
52670         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52671
52672 2008-03-01  Jim Meyering  <meyering@redhat.com>
52673
52674         bootstrap: sync from coreutils
52675         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52676         also when the target doesn't exist.
52677
52678 2008-03-01  Eric Blake  <ebb9@byu.net>
52679
52680         Fix bugs in last patch.
52681         * lib/memchr2.c (memchr2): Fix typo.
52682         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52683         extension.
52684         Reported by Bruce Korb.
52685
52686         New module 'memchr2'.
52687         * modules/memchr2: New file.
52688         * modules/memchr2-tests: Likewise.
52689         * lib/memchr2.h: Likewise.
52690         * lib/memchr2.c: Likewise, based on memchr.c.
52691         * tests/test-memchr2.c: New test.
52692         * MODULES.html.sh (String handling): Add memchr2.
52693
52694 2008-02-29  Bruno Haible  <bruno@clisp.org>
52695
52696         * modules/freadseek-tests: New file.
52697         * tests/test-freadseek.sh: New file.
52698         * tests/test-freadseek.c: New file.
52699
52700         New module 'freadseek'.
52701         * modules/freadseek: New file.
52702         * lib/freadseek.h: New file.
52703         * lib/freadseek.c: New file.
52704         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52705
52706 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52707
52708         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52709         wydawca.
52710
52711         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52712         program_invocation_name and program_invocation_short_name are
52713         present.
52714
52715 2008-02-28  Bruno Haible  <bruno@clisp.org>
52716
52717         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52718         * tests/test-freadptr.sh: Also test non-seekable stdin.
52719
52720 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52721
52722         * build-aux/bootstrap (source_base, m4_base)
52723         (doc_base, tests_base): New variables.
52724         (gnulib_tool_options): Do not hardcode base directories, use
52725         the above variables instead.
52726
52727 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52728
52729         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52730
52731 2008-02-28  Bruno Haible  <bruno@clisp.org>
52732
52733         * modules/freadptr-tests: New file.
52734         * tests/test-freadptr.sh: New file.
52735         * tests/test-freadptr.c: New file.
52736
52737         New module 'freadptr'.
52738         * modules/freadptr: New file.
52739         * lib/freadptr.h: New file.
52740         * lib/freadptr.c: New file.
52741         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52742
52743 2008-02-26  Karl Berry  <karl@freefriends.org>
52744
52745         Sync from Libtool:
52746         * libltdl/argz.c (argz_add, argz_count): New functions.
52747         * libltdl/argz.in.h: Declare them.
52748         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52749
52750 2008-02-22  Bruno Haible  <bruno@clisp.org>
52751
52752         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52753         is a pointer type.  Needed for HP-UX 10.
52754         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52755         * doc/posix-functions/gmtime_r.texi: Likewise.
52756         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52757
52758 2008-02-24  Bruno Haible  <bruno@clisp.org>
52759
52760         * modules/environ-tests: New file.
52761         * tests/test-environ.c: New file.
52762
52763         New module 'environ'.
52764         * modules/environ: New file.
52765         * lib/unistd.in.h (environ): New declaration.
52766         * m4/environ.m4: New file.
52767         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52768         after use.
52769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52770         HAVE_DECL_ENVIRON.
52771         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52772         HAVE_DECL_ENVIRON.
52773         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52774         wrong claim that 'environ' is missing on some systems.
52775         * modules/execute (Depends-on): Add environ.
52776         * lib/execute.c (environ): Remove fallback declaration.
52777         * modules/pipe (Depends-on): Add environ.
52778         * lib/pipe.c (environ): Remove fallback declaration.
52779         * modules/setenv (Depends-on): Add environ.
52780         * lib/setenv.c (environ): Remove fallback declaration.
52781         * modules/unsetenv (Depends-on): Add environ.
52782         * lib/unsetenv.c (environ): Remove fallback declaration.
52783         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52784         m4/environ.m4.
52785         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52786         (gl_PREREQ_UNSETENV): Likewise.
52787
52788 2008-02-24  Bruno Haible  <bruno@clisp.org>
52789
52790         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52791
52792 2008-02-20  Bob Proulx  <bob@proulx.com>
52793
52794         Enable use of older two part flavor 'git describe'.
52795         * build-aux/git-version-gen: If using the older two part flavor of
52796         git version then recreate the third part now present in the
52797         newer three part flavor of git describe.
52798
52799 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52800
52801         * lib/fts.c (fts_build): Typo correction to comment.
52802
52803 2008-02-17  Bruno Haible  <bruno@clisp.org>
52804
52805         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52806         generating no-op conflicts.
52807
52808 2008-02-17  Bruno Haible  <bruno@clisp.org>
52809
52810         Speed up by 10%.
52811         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52812         result_entries, rather than an index-based loop.
52813
52814 2008-02-17  Bruno Haible  <bruno@clisp.org>
52815
52816         Speed up by 25%.
52817         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52818         'hashcode_cached'.
52819         (entry_create): New function.
52820         (entry_hashcode): Use the cached hashcode if possible.
52821         (read_changelog_file, try_split_merged_entry): Use entry_create.
52822
52823 2008-02-17  Bruno Haible  <bruno@clisp.org>
52824
52825         Speed up from O(n^2) to O(n) for long ChangeLog files.
52826         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52827         (read_changelog_file): Change implementation of entries_reversed list
52828         to rbtreehash.
52829         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52830
52831 2008-02-17  Bruno Haible  <bruno@clisp.org>
52832
52833         New option --split-merged-entry.
52834         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52835         (find_paragraph_end, try_split_merged_entry): New functions.
52836         (long_options): Add option --split-merged-entry.
52837         (usage): Document option --split-merged-entry.
52838         (main): Implement option --split-merged-entry.
52839         Reported by Eric Blake.
52840
52841 2008-02-17  Bruno Haible  <bruno@clisp.org>
52842
52843         * lib/git-merge-changelog.c: Include c-strstr.h.
52844         (main): Support the "git pull --rebase" situation.
52845         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52846         Reported by Eric Blake.
52847
52848 2008-02-16  Eric Blake  <ebb9@byu.net>
52849
52850         Avoid doubling \ in common case of "c-maybe" quoting style.
52851         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52852         eliding outer quotes.
52853         * lib/quotearg.h: Document this.
52854         * tests/test-quotearg.c (result_strings, inputs, results_g)
52855         (flag_results, locale_results): Test it by adding a new string to
52856         each test group.
52857         (compare_strings): Test new string.
52858
52859 2008-02-13  Eric Blake  <ebb9@byu.net>
52860
52861         Avoid trigraph quoting in default output.
52862         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52863         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52864         unless explicitly requested.
52865         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52866
52867 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52868
52869         Don't rely on signed integer overflowing to negative value.
52870         * lib/getugroups.c (getugroups): Include <limits.h>.
52871         Instead, compare against INT_MAX, and increment only if the test passes.
52872
52873 2008-02-13  Jim Meyering  <meyering@redhat.com>
52874         and Eric Blake  <ebb9@byu.net>
52875
52876         Avoid shadowing warning and compile errors on Linux.
52877         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52878         forwarding macros on Linux.
52879         (dcgettext): Define a stub, for Linux.
52880         (results_g, main): Avoid warnings.
52881
52882 2008-02-12  Eric Blake  <ebb9@byu.net>
52883
52884         Silence warning in last patch.
52885         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52886
52887         Quotearg part 4: add tests, fix c-maybe colon quoting.
52888         * lib/quotearg.h: Improve documentation.
52889         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52890         escapes when adding outer quotes.  When quoting trigraphs, use
52891         valid C notation.  When quoting NUL, omit extra characters if next
52892         character is not digit.  Alter prototype.
52893         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52894         callers.
52895         * modules/quotearg-tests: New module.
52896         * tests/test-quotearg.c: New test.
52897
52898 2008-02-07  Eric Blake  <ebb9@byu.net>
52899
52900         Quotearg part 3: add flag to control outer quote elision.
52901         * lib/quotearg.h (c_maybe_quoting_style): New style.
52902         (enum quoting_flags): Better documentation of flags.
52903         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52904         c-maybe style.
52905         (quotearg_buffer_restyled): Handle new flag to elide outer
52906         quotes.
52907
52908         Quotearg part 2: add flag that can control NUL elision.
52909         * lib/quotearg.h (set_quoting_flags): New prototype.
52910         * lib/quotearg.c (struct quoting_options): Add flag field.
52911         (set_quoting_flags): New function.
52912         (quotearg_buffer_restyled): Add flags parameter.
52913         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52914         (quotearg_n_options): Set the flag, since length cannot be
52915         returned.
52916         (quoting_options_from_style): Default flags correctly.
52917
52918         Quotearg part 1: more wrappers, restore quotearg_char state.
52919         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52920         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52921         (quotearg_colon_mem): New wrappers.
52922         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52923         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52924         functions.
52925         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52926         (quotearg_colon_mem): New functions.
52927
52928 2008-02-11  Bruno Haible  <bruno@clisp.org>
52929
52930         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52931         library in the current directory: it does not work with parallel make.
52932         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52933
52934 2008-02-11  Bruno Haible  <bruno@clisp.org>
52935
52936         * .gitattributes: New file.
52937
52938 2008-02-11  Jim Meyering  <meyering@redhat.com>
52939
52940         useless-if-before-free: Fix reversed exit values.
52941         * build-aux/useless-if-before-free: Use correct values
52942         for EXIT_MATCH and EXIT_NO_MATCH.
52943
52944         * build-aux/useless-if-before-free: Close stdout carefully.
52945
52946 2008-02-10  Bruno Haible  <bruno@clisp.org>
52947
52948         New module 'git-merge-changelog'.
52949         * modules/git-merge-changelog: New file.
52950         * lib/git-merge-changelog.c: New file.
52951
52952 2008-02-10  Jim Meyering  <meyering@redhat.com>
52953
52954         useless-if-before-free: New option: --list (-l).
52955
52956         useless-if-before-free: Don't exit immediately upon open failure.
52957         * build-aux/useless-if-before-free: Exit 2 for errors.
52958         Upon failure to open a file, don't exit immediately.
52959         Rather, just warn and continue with any remaining files.
52960
52961 2008-02-10  Bruno Haible  <bruno@clisp.org>
52962
52963         New abstract list operation 'node_set_value'.
52964         * lib/gl_list.h (gl_list_node_set_value): New function.
52965         (struct gl_list_implementation): New field node_set_value.
52966         * lib/gl_list.c (gl_list_node_set_value): New function.
52967         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52968         (gl_array_list_implementation): Update.
52969         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52970         (gl_carray_list_implementation): Update.
52971         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52972         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52973         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52974         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52975         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52976         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52977         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52978         Update.
52979         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52980         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52981         (gl_sublist_list_implementation): Update.
52982
52983 2008-02-10  Bruno Haible  <bruno@clisp.org>
52984
52985         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52986         Needed when ELEMENT is #defined to 'some_type *'.
52987
52988 2008-02-10  Jim Meyering  <meyering@redhat.com>
52989
52990         New script and module: useless-if-before-free
52991         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52992         * build-aux/useless-if-before-free: New file.
52993         * modules/useless-if-before-free: New file.
52994
52995         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52996
52997         xstrtol_error: Fix typo.
52998         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52999         s/exit_failure/exit_status/.
53000
53001 2008-02-09  Jim Meyering  <meyering@redhat.com>
53002
53003         New script and module: gitlog-to-changelog
53004         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53005         * modules/gitlog-to-changelog: New file.
53006         * build-aux/gitlog-to-changelog: New file.
53007
53008 2008-02-08  Jim Meyering  <meyering@redhat.com>
53009
53010         Avoid two "parameter unused" warnings.
53011         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53012         Mark "st" as used.
53013
53014         Use "git COMMAND", not "git-COMMAND".
53015         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53016         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53017         * build-aux/git-version-gen: Use "git status", not "git-status".
53018
53019 2008-02-07  Bruno Haible  <bruno@clisp.org>
53020
53021         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53022         Avoids a crash on Windows Vista.
53023         Reported by Adam Strzelecki <ono@java.pl> via
53024         Simon Josefsson <simon@josefsson.org>.
53025
53026 2008-02-06  Bruno Haible  <bruno@clisp.org>
53027
53028         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53029         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53030         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53032         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53033         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53034         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53035         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53036         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53037         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53038         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53039         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53040         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53041         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53042         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53043         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53044         left-adjust flag.
53045         * tests/test-snprintf-posix.h (test_function): Likewise.
53046         * tests/test-sprintf-posix.h (test_function): Likewise.
53047         * tests/test-vasprintf-posix.c (test_function): Likewise.
53048         * doc/posix-functions/fprintf.texi: Update.
53049         * doc/posix-functions/printf.texi: Update.
53050         * doc/posix-functions/snprintf.texi: Update.
53051         * doc/posix-functions/sprintf.texi: Update.
53052         * doc/posix-functions/vfprintf.texi: Update.
53053         * doc/posix-functions/vprintf.texi: Update.
53054         * doc/posix-functions/vsnprintf.texi: Update.
53055         * doc/posix-functions/vsprintf.texi: Update.
53056         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53057
53058 2008-02-06  Bruno Haible  <bruno@clisp.org>
53059
53060         Fix bug introduced on 2008-01-26.
53061         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53062
53063 2008-02-06  Bruno Haible  <bruno@clisp.org>
53064
53065         Fix bug introduced on 2007-06-10.
53066         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53067         !NEED_PRINTF_FLAG_ZERO.
53068
53069 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53070
53071         getloadavg: use libperfstat on AIX5
53072         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53073
53074 2008-02-03  Bruno Haible  <bruno@clisp.org>
53075
53076         * lib/diffseq.h: Add comments about required #includes.
53077         Reported by Michael Biggs <gnulib@doubleplum.net>.
53078
53079 2008-02-01  Bruno Haible  <bruno@clisp.org>
53080
53081         * users.txt: Add gnuit.
53082
53083 2008-01-31  Bruno Haible  <bruno@clisp.org>
53084
53085         * lib/md4.c (set_uint32): Mark as inline.
53086         * lib/md5.c (set_uint32): Likewise.
53087         * lib/sha1.c (set_uint32): Likewise.
53088         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53089         * m4/md5.m4 (gl_MD5): Likewise.
53090         * m4/sha1.m4 (gl_SHA1): Likewise.
53091
53092 2008-01-31  Jim Meyering  <meyering@redhat.com>
53093
53094         Use "sizeof VAR", rather than a literal "4".
53095         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53096         * lib/md4.c (md4_read_ctx): Likewise.
53097         * lib/sha1.c (sha1_read_ctx): Likewise.
53098
53099 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53100
53101         * tests/test-sha1.c: New file, based on test-md5.c.
53102
53103         * modules/crypto/sha1-tests: New file.
53104
53105 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53106
53107         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53108
53109 2008-01-31  Jim Meyering  <meyering@redhat.com>
53110
53111         Prefer "sizeof v" over the equivalent "4".
53112         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53113         * lib/md5.c (set_uint32): Likewise.
53114         * lib/sha1.c (set_uint32): Likewise.
53115
53116 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53117
53118         * lib/sha1.c (set_uint32): Mark function as static.
53119
53120 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53121
53122         md2: clarify comments to say that alignment is not required.
53123         * lib/md2.h: Remove warning about alignment in comment.
53124         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53125         never been required.
53126
53127 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53128
53129         md4: adapt alignment constraint fix from sha1.
53130         * lib/md4.c (set_uint32): New function, from sha1.c
53131         (md4_read_ctx): Use it.
53132         (md4_finish_ctx): Doc fix.
53133         * lib/md4.h: Doc fix.
53134
53135 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53136
53137         md5: adapt alignment constraint fix from sha1.
53138         * lib/md5.c (set_uint32): New function, from sha1.c
53139         (md5_read_ctx): Use it.
53140         (md5_finish_ctx): Doc fix.
53141         * lib/md5.h: Doc fix.
53142
53143 2008-01-30  Peter Palfrader  <weasel@debian.org>
53144
53145         sha1: remove the result buffer alignment constraint
53146         * lib/sha1.c (set_uint32): New function.
53147         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53148         constraint.
53149         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53150         * lib/sha1.h: Likewise.
53151
53152 2008-01-30  Andreas Schwab  <schwab@suse.de>
53153             Bruno Haible  <bruno@clisp.org>
53154
53155         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53156         correct definition of LDBL_MIN_EXP.
53157
53158 2008-01-30  Karl Berry  <karl@gnu.org>
53159
53160         * config/srclist-update: try to preserve x bit on updates.
53161         * config/srclistvars.sh: update for karl.
53162
53163 2008-01-29  Jim Meyering  <meyering@redhat.com>
53164
53165         vasnprintf.c: Avoid warning about unused label
53166         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53167         "overflow" label definition and associated code with the
53168         same cpp condition that guards the sole use of that label.
53169
53170 2008-01-26  Bruno Haible  <bruno@clisp.org>
53171
53172         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53173         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53174         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53175         * lib/isnanl-nolibm.h (isnanl): Likewise.
53176         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53177
53178 2008-01-26  Bruno Haible  <bruno@clisp.org>
53179
53180         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53181         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53182
53183 2008-01-26  Bruno Haible  <bruno@clisp.org>
53184
53185         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53186         GCC >= 4.0 built-in.
53187         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53188
53189 2008-01-26  Bruno Haible  <bruno@clisp.org>
53190
53191         Rename isnan, applicable to 'double' only, to isnand.
53192         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53193         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53194         (configure.ac): Update.
53195         (Include): Replace "isnan.h" with "isnand.h".
53196         * m4/isnand.m4: Renamed from m4/isnan.m4.
53197         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53198         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53199         instead of isnan.c.
53200         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53201         instead of HAVE_ISNAN_IN_LIBC.
53202         (isnand): Renamed from isnan.
53203         * lib/isnand.c: New file.
53204         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53205         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53206         (Makefile.am): Update.
53207         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53208         Include isnand.h instead of isnan.h.
53209         (main): Test isnand instead of isnan.
53210         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53211         isnan-nolibm.
53212         * modules/frexp (Depends-on): Likewise.
53213         * modules/frexp-tests (Depends-on): Likewise.
53214         * modules/frexp-nolibm (Depends-on): Likewise.
53215         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53216         * modules/isfinite (Depends-on): Likewise.
53217         * modules/round-tests (Depends-on): Likewise.
53218         * modules/signbit (Depends-on): Likewise.
53219         * modules/signbit-tests (Depends-on): Likewise.
53220         * modules/snprintf-posix (Depends-on): Likewise.
53221         * modules/sprintf-posix (Depends-on): Likewise.
53222         * modules/trunc-tests (Depends-on): Likewise.
53223         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53224         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53225         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53226         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53227         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53228         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53229         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53230         * modules/vasnprintf-posix (Depends-on): Likewise.
53231         * modules/vasprintf-posix (Depends-on): Likewise.
53232         * modules/vfprintf-posix (Depends-on): Likewise.
53233         * modules/vsnprintf-posix (Depends-on): Likewise.
53234         * modules/vsprintf-posix (Depends-on): Likewise.
53235         * lib/frexp.c: Include isnand.h instead of isnan.h.
53236         (ISNAN): Set to isnand instead of isnan.
53237         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53238         (gl_isfinited): Use isnand instead of isnan.
53239         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53240         (gl_signbitd): Use isnand instead of isnan.
53241         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53242         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53243         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53244         (main): Use isnand instead of isnan.
53245         * tests/test-round1.c: Include isnand.h.
53246         (main): Use isnand instead of isnan.
53247         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53248         (ISNAN): Set to isnand instead of isnan.
53249         * tests/test-trunc1.c: Include isnand.h.
53250         (main): Use isnand instead of isnan.
53251         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53252         (equal): Use isnand instead of isnan.
53253         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53254         isnand-nolibm.
53255         * NEWS: Mention the change.
53256
53257 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53258             Bruno Haible  <bruno@clisp.org>
53259
53260         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53261         the GCC builtins for signbits are present and set
53262         REPLACE_SIGNBIT_USING_GCC if so.
53263         * lib/math.in.h (signbit): Define using GCC builtins if
53264         REPLACE_SIGNBIT_USING_GCC is set.
53265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53266         REPLACE_SIGNBIT_USING_GCC.
53267         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53268
53269 2008-01-25  Jim Meyering  <meyering@redhat.com>
53270
53271         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53272         * lib/poll.c: Include <config.h>, not "config.h".
53273         * tests/test-getaddrinfo.c: Likewise.
53274
53275 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53276
53277         * modules/sockets-tests: New file.
53278
53279 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53280
53281         * modules/sockets: New module, can be used to call WSA_Startup and
53282         WSA_Cleanup when needed.
53283
53284         * lib/sockets.h, lib/sockets.c: New files.
53285
53286         * m4/sockets.m4: New file.
53287
53288         * tests/test-sockets.c: New file.
53289
53290 2008-01-19  Bruno Haible  <bruno@clisp.org>
53291
53292         * doc/posix-headers: Renamed from doc/headers.
53293         * doc/posix-functions: Renamed from doc/functions.
53294         * doc/gnulib.texi: Update.
53295
53296 2008-01-19  Bruno Haible  <bruno@clisp.org>
53297
53298         * doc/glibc-functions/strcasestr.texi: Include contents of
53299         doc/functions/strcasestr.texi, fixing the list of platforms.
53300         * doc/functions/strcasestr.texi: Remove file.
53301
53302 2008-01-19  Bruno Haible  <bruno@clisp.org>
53303
53304         * doc/glibc-functions/memmem.texi: Include contents of
53305         doc/functions/memmem.texi.
53306         * doc/functions/memmem.texi: Remove file.
53307
53308 2008-01-18  Bruno Haible  <bruno@clisp.org>
53309
53310         * doc/glibc-functions/*.texi: New files.
53311         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53312         to use the new files.
53313
53314 2008-01-17  Bruno Haible  <bruno@clisp.org>
53315
53316         * tests/test-gethostname.c (main): Fix printf statement.
53317
53318 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53319
53320         * modules/gethostname-tests: New file.
53321
53322         * tests/test-gethostname.c: New file.
53323
53324 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53325
53326         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53327         used by the UNAME case.  Reported by Bruno Haible
53328         <bruno@clisp.org>.
53329
53330 2008-01-17  Eric Blake  <ebb9@byu.net>
53331
53332         Convert c-strcasestr to be more efficient.
53333         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53334         (Depends-on): Add c-strcase, remove malloca, strnlen.
53335         * tests/test-c-strcasestr.c (main): Enhance test.
53336         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53337
53338 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53339
53340         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53341         Use it in creating po/Makevars.
53342
53343 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53344
53345         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53346         Applications that requires it should initialize libgcrypt
53347         manually.
53348
53349 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53350
53351         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53352
53353 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53354
53355         Fix problem with getdate on mingw32 reported by Simon Josefsson
53356         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53357         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53358         tzname", when deciding whether to declare tzname.
53359         * lib/strftime.c (tzname): Likewise.
53360
53361 2008-01-15  Bruno Haible  <bruno@clisp.org>
53362
53363         Work around a MacOS X 10.5 bug in frexpl().
53364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53365         * doc/functions/frexpl.texi: Document the bug.
53366         Reported by Elias Pipping <pipping@gentoo.org>.
53367
53368 2008-01-14  Eric Blake  <ebb9@byu.net>
53369
53370         Touch up previous patch.
53371         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53372         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53373
53374         Convert strcasestr module to use Two-Way algorithm.
53375         * modules/strcasestr-simple: New module, based on the old
53376         strcasestr, but with Two-Way rather than KMP.
53377         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53378         * lib/string.in.h (rpl_strcasestr): Declare.
53379         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53380         performance.
53381         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53382         * modules/string (Makefile.am): Support strcasestr.
53383         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53384         * modules/strcasestr-tests (Depends-on): Check for alarm.
53385         * tests/test-strcasestr.c: Augment test.
53386         * lib/str-two-way.h: Clean up stray macro.
53387         * NEWS: Document new module.
53388         * MODULES.html.sh (string handling): Likewise.
53389         * doc/functions/strcasestr.texi: New file.
53390         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53391         here, since it is not a POSIX function.
53392
53393 2008-01-14  Colin Watson  <cjwatson@debian.org>
53394             Bruno Haible  <bruno@clisp.org>
53395
53396         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53397         works fine; if not, set REPLACE_STRSIGNAL.
53398         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53400         REPLACE_STRSIGNAL.
53401         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53402         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53403         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53404
53405 2008-01-14  Bruno Haible  <bruno@clisp.org>
53406
53407         * modules/strsignal (Include): Change to <string.h>.
53408
53409 2008-01-14  Colin Watson  <cjwatson@debian.org>
53410
53411         * modules/argp (Notice): Add a notice recommending to change
53412         XGETTEXT_OPTIONS.
53413         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53414
53415 2008-01-13  Colin Watson  <cjwatson@debian.org>
53416
53417         * modules/strsignal-tests: New file.
53418         * tests/test-strsignal.c: New file.
53419
53420         * lib/strsignal.c: New file, from glibc with modifications.
53421         * lib/siglist.h: New file, from glibc with modifications.
53422         * lib/string.in.h (strsignal): New declaration.
53423         * m4/strsignal.m4: New file.
53424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53425         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53426         * modules/strsignal: New file.
53427         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53428         HAVE_DECL_STRSIGNAL.
53429
53430 2008-01-13  Bruno Haible  <bruno@clisp.org>
53431
53432         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53433         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53434         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53435         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53436
53437 2008-01-13  Bruno Haible  <bruno@clisp.org>
53438
53439         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53440         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53441         * lib/argp.h (__attribute__): Likewise.
53442         * lib/c-stack.c (__attribute__): Likewise.
53443         * lib/error.h (__attribute__): Likewise.
53444         * lib/fts.c (__attribute__): Likewise.
53445         * lib/openat.h (__attribute__): Likewise.
53446         * lib/stdio.in.h (__attribute__): Likewise.
53447         * lib/string.in.h (__attribute__): Likewise.
53448         * lib/utimens.c (__attribute__): Likewise.
53449         * lib/vasnprintf.h (__attribute__): Likewise.
53450         * lib/xalloc.h (__attribute__): Likewise.
53451         * lib/xprintf.h (__attribute__): Likewise.
53452         * lib/xstrtol.h (__attribute__): Likewise.
53453         * lib/xvasprintf.h (__attribute__): Likewise.
53454
53455 2008-01-12  Bruno Haible  <bruno@clisp.org>
53456
53457         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53458         * doc/glibc-headers/a.out.texi: New file.
53459         * doc/glibc-headers/aliases.texi: New file.
53460         * doc/glibc-headers/alloca.texi: New file.
53461         * doc/glibc-headers/ar.texi: New file.
53462         * doc/glibc-headers/argp.texi: New file.
53463         * doc/glibc-headers/argz.texi: New file.
53464         * doc/glibc-headers/byteswap.texi: New file.
53465         * doc/glibc-headers/crypt.texi: New file.
53466         * doc/glibc-headers/endian.texi: New file.
53467         * doc/glibc-headers/envz.texi: New file.
53468         * doc/glibc-headers/err.texi: New file.
53469         * doc/glibc-headers/error.texi: New file.
53470         * doc/glibc-headers/execinfo.texi: New file.
53471         * doc/glibc-headers/fpu_control.texi: New file.
53472         * doc/glibc-headers/fstab.texi: New file.
53473         * doc/glibc-headers/fts.texi: New file.
53474         * doc/glibc-headers/getopt.texi: New file.
53475         * doc/glibc-headers/ieee754.texi: New file.
53476         * doc/glibc-headers/ifaddrs.texi: New file.
53477         * doc/glibc-headers/libintl.texi: New file.
53478         * doc/glibc-headers/mcheck.texi: New file.
53479         * doc/glibc-headers/mntent.texi: New file.
53480         * doc/glibc-headers/obstack.texi: New file.
53481         * doc/glibc-headers/paths.texi: New file.
53482         * doc/glibc-headers/printf.texi: New file.
53483         * doc/glibc-headers/pty.texi: New file.
53484         * doc/glibc-headers/resolv.texi: New file.
53485         * doc/glibc-headers/shadow.texi: New file.
53486         * doc/glibc-headers/sysexits.texi: New file.
53487         * doc/glibc-headers/ttyent.texi: New file.
53488
53489 2008-01-12  Jim Meyering  <meyering@redhat.com>
53490
53491         announce-gen: emit Gnulib's git-based version string.
53492         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53493         New option --gnulib-version=V, where V is expected to be
53494         the output of running git describe in the gnulib directory.
53495         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53496         not useful, and plan to stop publishing an xdelta file with each
53497         coreutils release.
53498
53499         * build-aux/announce-gen: Also check for lzma-compressed files.
53500
53501 2008-01-11  Bruno Haible  <bruno@clisp.org>
53502
53503         * tests/test-memmem.c (main): Increase maximum allowed time.
53504         * tests/test-strstr.c (main): Likewise.
53505
53506 2008-01-11  Bruno Haible  <bruno@clisp.org>
53507
53508         * doc/functions/memmem.texi: Add more precisions about platforms.
53509         * doc/functions/strstr.texi: Likewise.
53510
53511 2008-01-10  Eric Blake  <ebb9@byu.net>
53512
53513         * m4/strstr.m4: Delete cruft from copy-n-paste.
53514         Reported by Bruno Haible.
53515
53516 2008-01-10  Bruno Haible  <bruno@clisp.org>
53517
53518         Make c-strstr rely on strstr.
53519         * lib/c-strstr.c: Don't include str-kmp.h.
53520         (c_strstr): Define in terms of strstr.
53521         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53522         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53523
53524 2008-01-10  Bruno Haible  <bruno@clisp.org>
53525
53526         * doc/gnulib.texi (String Functions in C Locale): New section.
53527         * doc/c-ctype.texi: New file.
53528         * doc/c-strcase.texi: New file.
53529         * doc/c-strcaseeq.texi: New file.
53530         * doc/c-strcasestr.texi: New file.
53531         * doc/c-strstr.texi: New file.
53532         * doc/c-strtod.texi: New file.
53533         * doc/c-strtold.texi: New file.
53534
53535 2008-01-10  Eric Blake  <ebb9@byu.net>
53536
53537         * lib/relocatable.h: Fix a comment.
53538
53539 2008-01-10  Eric Blake  <ebb9@byu.net>
53540
53541         Share two-way algorithm.
53542         * lib/str-two-way.h: New file, merged from...
53543         * lib/memmem.c: ...here...
53544         * lib/strstr.c: ...and here.
53545         * modules/memmem (Files): Use it.
53546         * modules/strstr (Files): Likewise.
53547
53548         Avoid quadratic strstr implementations.
53549         * lib/strstr.c: New file.
53550         * m4/strstr.m4: Likewise.
53551         * modules/strstr: Likewise.
53552         * modules/strstr-tests: Likewise.
53553         * tests/test-strstr.c: Likewise.
53554         * lib/string.in.h (rpl_strstr): Declare.
53555         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53557         * modules/string (Makefile.am): Likewise.
53558         * MODULES.html.sh (string handling): Mention new module.
53559         * doc/functions/strstr.texi (strstr): Document the bug.
53560
53561 2008-01-10  Bruno Haible  <bruno@clisp.org>
53562
53563         * lib/relocatable.h (relocate): State whether result is freshly
53564         allocated or not.
53565         * lib/relocatable.c (relocate): Return a freshly allocated string
53566         instead of a pointer to a privately held string.
53567         Reported by Sylvain Beucler <beuc@gnu.org>.
53568
53569 2008-01-10  Colin Watson  <cjwatson@debian.org>
53570
53571         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53572         s/S_ISNLK/S_ISLNK/.
53573
53574 2008-01-09  Bruno Haible  <bruno@clisp.org>
53575
53576         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53577         and other files.
53578         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53579         if it's only a guess.
53580         * modules/memmem: Simplify by depending on memmem-simple.
53581
53582 2008-01-09  Bruno Haible  <bruno@clisp.org>
53583
53584         Work around OpenBSD 4.0 tdelete() bug.
53585         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53586         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53587         macros and don't redefine the enum values.
53588         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53589         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53590         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53591
53592 2008-01-09  Bruno Haible  <bruno@clisp.org>
53593
53594         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53595         (main): Don't perform the tests if setlocale did not install a UTF-8
53596         locale. Needed on OpenBSD 4.0.
53597         * modules/wcwidth-tests (Depends-on): Add localcharset.
53598
53599 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53600
53601         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53602         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53603         * NEWS: announce this.
53604         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53605
53606 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53607         and Eric Blake  <ebb9@byu.net>
53608
53609         Add memmem-simple module.
53610         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53611         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53612         * modules/memmem-simple: New file.
53613         * modules/memmem (Description): Tweak.
53614         * MODULES.html.sh (string handling): Mention new module.
53615         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53616         addressed by memmem-simple.
53617         * NEWS: Document the difference.
53618
53619 2008-01-09  Eric Blake  <ebb9@byu.net>
53620
53621         Give gcc some memmem optimization hints.
53622         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53623         (strcasestr): Declare as pure.
53624         * modules/memmem (Maintainer): Claim my implementation.
53625
53626 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53627
53628         Support AIX 6.1 and higher.
53629         * build-aux/config.libpath: Likewise.
53630         * build-aux/config.rpath: Likewise.
53631
53632 2008-01-08  Jim Meyering  <meyering@redhat.com>
53633             Bruno Haible  <bruno@clisp.org>
53634
53635         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53636         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53637         Reported by Peter Fales in
53638         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53639
53640 2008-01-08  Bruno Haible  <bruno@clisp.org>
53641
53642         * modules/unictype/category-of (Depends-on): Add
53643         unictype/category-none.
53644         * modules/unictype/category-and-tests (Depends-on): Add
53645         unictype/category-{L,N,Lu,Nd}.
53646         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53647         * modules/unictype/category-or-tests (Depends-on): Add
53648         unictype/category-{L,N}.
53649         * modules/unictype/category-name-tests (Depends-on): Add
53650         unictype/category-{Z,Nl}.
53651         Reported by Simon Josefsson.
53652
53653 2008-01-08  Bruno Haible  <bruno@clisp.org>
53654
53655         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53656         convention better.
53657         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53658         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53659         Reported by Peter Miller <millerp@canb.auug.org.au>.
53660
53661 2008-01-08  Eric Blake  <ebb9@byu.net>
53662
53663         Rewrite memmem to guarantee linear complexity without malloc.
53664         * lib/memmem.c (memmem): Use Two-Way rather than
53665         Knuth-Morris-Pratt, to allow O(1) space usage.
53666         (critical_factorization, two_way_short_needle)
53667         (two_way_long_needle): New functions.
53668         (knuth_morris_pratt): Delete.
53669         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53670         Add stdint.
53671         * tests/test-memmem.c (main): Add tests for periodic needle and
53672         sublinear performance.
53673         * doc/functions/memmem.texi (memmem): Document other deficiencies
53674         in cygwin and older glibc.
53675
53676 2008-01-08  Bruno Haible  <bruno@clisp.org>
53677
53678         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53679         augmentation.
53680
53681 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53682
53683         Add a configure time option: --disable-acl.
53684         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53685         AC_ARG_ENABLE(acl).
53686
53687 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53688
53689         * tests/test-localename.c: Don't include obsolete "setenv.h".
53690
53691         * modules/localename-tests (Depends-on): Need unsetenv.
53692
53693 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53694
53695         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53696
53697 2008-01-06  Colin Watson  <cjwatson@debian.org>
53698
53699         * users.txt: Add man-db.
53700
53701 2008-01-07  Bruno Haible  <bruno@clisp.org>
53702
53703         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53704         previous section name.
53705
53706 2008-01-07  Bruno Haible  <bruno@clisp.org>
53707
53708         * lib/progname.c (set_program_name): Don't strip off a leading
53709         "lt-" prefix outside a .libs directory.
53710         Suggested by Paul Eggert.
53711
53712 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53713             Bruno Haible  <bruno@clisp.org>
53714
53715         Improve memory cleanup in 'relocatable' module.
53716         * lib/relocatable.h (compute_curr_prefix): Change return type to
53717         'char *'.
53718         * lib/relocatable.c (compute_curr_prefix): Change return type to
53719         'char *'. Free curr_installdir after use.
53720         (relocate): Free curr_prefix_better after use.
53721         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53722
53723 2008-01-01  Bruno Haible  <bruno@clisp.org>
53724
53725         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53726         failure on older glibc systems.
53727         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53728
53729 2008-01-05  Eric Blake  <ebb9@byu.net>
53730
53731         Avoid quadratic system memmem.
53732         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53733         Reported by Ralf Wildenhues.
53734
53735         Fix memmem test for mingw.
53736         * modules/memmem-tests (configure.ac): Check for alarm.
53737         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53738         it.
53739         * doc/functions/memmem.texi: New file.
53740         * doc/gnulib.texi (Function Substitutes): Add memmem.
53741         Reported by Bruno Haible.
53742
53743 2008-01-04  Bruno Haible  <bruno@clisp.org>
53744
53745         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53746         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53747         gl_HEADER_STRING_H_DEFAULTS.
53748
53749 2008-01-04  Eric Blake  <ebb9@byu.net>
53750
53751         Shorten duration of memmem test.
53752         * tests/test-memmem.c (main): Use alarm to declare failure if test
53753         is taking too long.
53754         Reported by Ralf Wildenhues.
53755
53756 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53757
53758         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53759         string, needed by strerror.
53760
53761 2008-01-03  Colin Watson  <cjwatson@debian.org>
53762             Bruno Haible  <bruno@clisp.org>
53763
53764         * doc/gnulib-tool.texi (Localization): New section.
53765
53766 2008-01-02  Bruno Haible  <bruno@clisp.org>
53767
53768         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53769         variables to 'unsigned char *' type.
53770         Reported by Paul Eggert.
53771
53772 2008-01-02  Jim Meyering  <jim@meyering.net>
53773
53774         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53775
53776 2007-12-31  Jim Meyering  <jim@meyering.net>
53777
53778         Avoid use of private FTS type name.
53779         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53780
53781 2007-12-30  Karl Berry  <karl@gnu.org>
53782
53783         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53784         work around defect in Texinfo and/or the standalone Info browser.
53785
53786 2007-12-30  Bruno Haible  <bruno@clisp.org>
53787
53788         Unify 5 copies of the KMP code.
53789         * lib/str-kmp.h: New file.
53790         * lib/c-strcasestr.c: Include str-kmp.h.
53791         (knuth_morris_pratt): Remove function.
53792         (c_strcasestr): Update.
53793         * lib/c-strstr.c: Include str-kmp.h.
53794         (knuth_morris_pratt): Remove function.
53795         (c_strcasestr): Update.
53796         * lib/mbscasestr.c: Include str-kmp.h.
53797         (knuth_morris_pratt_unibyte): Remove function.
53798         * lib/mbsstr.c: Include str-kmp.h.
53799         (knuth_morris_pratt_unibyte): Remove function.
53800         * lib/strcasestr.c: Include str-kmp.h.
53801         (knuth_morris_pratt): Remove function.
53802         (strcasestr): Update.
53803         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53804         * modules/c-strstr (Files): Likewise.
53805         * modules/mbscasestr (Files): Likewise.
53806         * modules/mbsstr (Files): Likewise.
53807         * modules/strcasestr (Files): Likewise.
53808         Suggested by Paul Eggert.
53809
53810 2007-12-30  Bruno Haible  <bruno@clisp.org>
53811
53812         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53813         defined.
53814
53815 2007-12-30  Bruno Haible  <bruno@clisp.org>
53816
53817         * lib/xmalloca.h: Include xalloc.h.
53818         (xnmalloca): New macro.
53819
53820 2007-12-30  Bruno Haible  <bruno@clisp.org>
53821
53822         * lib/malloca.h (nmalloca): New macro.
53823         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53824         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53825         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53826         knuth_morris_pratt_multibyte): Likewise.
53827         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53828         knuth_morris_pratt_multibyte): Likewise.
53829         * lib/memmem.c (knuth_morris_pratt): Likewise.
53830         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53831
53832 2007-12-25  Bruno Haible  <bruno@clisp.org>
53833
53834         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53835         * lib/glob.c: Don't include openat.h.
53836         (link_exists2_p): Add back the code that deals with the
53837         !GLOB_ALTDIRFUNC case.
53838         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53839         let it do the filename concatenation.
53840         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53841         * modules/glob (Depends-on): Remove openat.
53842
53843 2007-12-31  Bruno Haible  <bruno@clisp.org>
53844
53845         * modules/dirfd (License): Change to LGPLv2+.
53846         Approved by Jim Meyering.
53847
53848 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53849
53850         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53851         when multiplying M by sizeof (size_t).
53852
53853 2007-12-10  Martin Lambers  <marlam@marlam.de>
53854
53855         Override getpagesize on mingw.
53856         * lib/getpagesize.c: New file.
53857         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53858         * modules/getpagesize (Files): Add lib/getpagesize.c.
53859         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53861         REPLACE_GETPAGESIZE.
53862         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53863
53864 2007-12-25  Bruno Haible  <bruno@clisp.org>
53865
53866         * modules/localcharset (Notice): New field.
53867         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53868         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53869
53870 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53871             Bruno Haible  <bruno@clisp.org>
53872
53873         Avoid using the syntax symbol() in formatted documentation.
53874         * MODULES.html.sh (func_module): When replacing symbol() with a
53875         hyperlink, remove the parentheses. Show an error if some remain.
53876         Recognize and render the '...' syntax.
53877         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53878         Rework. Add paragraph about GCC's inlining.
53879         * doc/alloca.texi: Likewise.
53880         * doc/error.texi: Remove parentheses from symbol reference.
53881         * doc/gnulib-intro.texi: Likewise.
53882         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53883         * modules/fnmatch (Description): Reword to say "the ... function".
53884         * modules/full-read (Description): Likewise.
53885         * modules/full-write (Description): Likewise.
53886         * modules/safe-read (Description): Likewise.
53887         * modules/safe-write (Description): Likewise.
53888         * modules/strchrnul (Description): Likewise.
53889         * modules/trim (Description): Likewise.
53890         * modules/error (Description): Remove parentheses from symbol
53891         references.
53892         * modules/verror (Description): Likewise.
53893         Reported by Karl Berry.
53894
53895 2007-12-25  Bruno Haible  <bruno@clisp.org>
53896
53897         Fixup after 2007-10-16 commit.
53898         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53899
53900 2007-12-24  Bruno Haible  <bruno@clisp.org>
53901
53902         Make --enable-relocatable work with DESTDIR.
53903         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53904         to compute installdir from destprog.
53905         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53906         also set the RELOC_DESTDIR variable.
53907         Reported by Левашев Иван <octagram@bluebottle.com>.
53908
53909 2007-12-24  Bruno Haible  <bruno@clisp.org>
53910
53911         Fix link error due to xalloc_die().
53912         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53913         of xreadlink.
53914         * lib/relocwrapper.c: Update comments.
53915         * build-aux/install-reloc: Remove xreadlink.c from file list.
53916         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53917         xreadlink.c.
53918         Reported by Левашев Иван <octagram@bluebottle.com>.
53919
53920 2007-12-24  Bruno Haible  <bruno@clisp.org>
53921
53922         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53923         * lib/setenv.h: Remove file.
53924         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53925         lib/setenv.h.
53926         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53927         (Depends-on): Add stdlib.
53928         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53929         gl_FUNC_UNSETENV.
53930         (Include): Replace setenv.h with <stdlib.h>.
53931         * modules/unsetenv: New file.
53932         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53933         * lib/unsetenv.c: Include <stdlib.h> first.
53934         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53935         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53936         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53937         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53938         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53939         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53941         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53942         * doc/functions/unsetenv.texi: Update.
53943         * modules/xsetenv (Depends-on): Add unsetenv.
53944         * modules/getdate (Depends-on): Likewise.
53945         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53946         * lib/xsetenv.c: Don't include setenv.h.
53947         * lib/getdate.y: Likewise.
53948         * lib/relocwrapper.c: Likewise.
53949         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53950         (Depends-on): Add stdlib.
53951         * NEWS: Mention the changes.
53952         Reported by Левашев Иван <octagram@bluebottle.com>.
53953
53954 2007-12-23  Bruno Haible  <bruno@clisp.org>
53955
53956         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53957         indentation.
53958
53959 2007-12-23  Bruno Haible  <bruno@clisp.org>
53960
53961         * lib/c-strcasestr.c: Add more comments.
53962         * lib/c-strstr.c: Likewise.
53963         * lib/mbscasestr.c: Likewise.
53964         * lib/mbsstr.c: Likewise.
53965         * lib/strcasestr.c: Likewise.
53966         * lib/memmem.c: Likewise.
53967
53968 2007-12-23  Bruno Haible  <bruno@clisp.org>
53969
53970         * tests/test-memmem.c: Include <string.h> first.
53971
53972 2007-12-22  Bruno Haible  <bruno@clisp.org>
53973
53974         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53975         the contents of $testsbase.
53976         Reported by Ralf Wildenhues.
53977
53978 2007-12-22  Bruno Haible  <bruno@clisp.org>
53979
53980         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53981         two variables local_ldadd_before, local_ldadd_last.
53982
53983 2007-12-20  Eric Blake  <ebb9@byu.net>
53984
53985         Work around circular library issue when cross-compiling.
53986         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53987         that progname.o does not need to pull in rpl_memcmp.
53988
53989 2007-12-19  Eric Blake  <ebb9@byu.net>
53990
53991         Fix memmem to avoid O(n^2) worst-case complexity.
53992         * lib/memmem.c (knuth_morris_pratt): New function.
53993         (memmem): Use it if first few naive iterations fail.
53994         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53995         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53996         * modules/memchr (License): Likewise.
53997         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53998         malloca.
53999         * tests/test-memmem.c: Rewrite, borrowing ideas from
54000         test-mbsstr1.c; the old version wouldn't even compile!
54001         * modules/memmem-tests: New file.
54002         * lib/string.in.h (rpl_memmem): Add declaration.
54003         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54005         REPLACE_MEMMEM.
54006
54007 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54008
54009         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54010         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54011         before any system include files, and undef after them all.  This
54012         should fix a problem on VMS reported by John E. Malmberg in
54013         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54014
54015 2007-12-17  Eric Blake  <ebb9@byu.net>
54016
54017         Revert addition of verify, for BSD/OS.
54018         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54019         can't handle large files, for the sake of obsolete platforms.
54020         * modules/fseeko (Depends-on): Remove verify.
54021         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54022         * doc/functions/ftello.texi (ftello): Likewise.
54023         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54024         Reported by Larry Jones.
54025
54026 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54027
54028         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54029         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54030
54031 2007-12-17  Jim Meyering  <meyering@redhat.com>
54032
54033         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54034         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54035         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54036         * modules/getcwd (Depends-on): Add openat.
54037         Reported by Petr Salinger.
54038
54039 2007-12-17  Bruno Haible  <bruno@clisp.org>
54040
54041         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54042         avoid a segmentation fault of the configure test on x86_64 systems.
54043
54044 2007-12-15  Jim Meyering  <meyering@redhat.com>
54045
54046         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54047
54048 2007-12-13  Eric Blake  <ebb9@byu.net>
54049
54050         Another fseek test.
54051         * tests/test-fseek.c (main): Also test ungetc handling.
54052         * tests/test-fseeko.c (main): Likewise.
54053         * modules/fseeko (Depends-on): Add verify.
54054         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54055         large.
54056         Reported by Larry Jones.
54057
54058         Fix fseeko on mingw.
54059         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54060         seek.
54061
54062         Beef up fseek tests.
54063         * tests/test-fseek.c (main): Also test eof handling.
54064         * tests/test-fseeko.c (main): Likewise.
54065         Reported by Larry Jones.
54066
54067 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54068
54069         Fix fseeko on BSD-based platforms.
54070         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54071         successful seek.
54072
54073 2007-12-12  Eric Blake  <ebb9@byu.net>
54074
54075         Allow circular dependency of separate libtests.a
54076         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54077         when use_libtests.
54078
54079 2007-12-11  Eric Blake  <ebb9@byu.net>
54080
54081         Fix bug with -0.0L in previous patch.
54082         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54083         * tests/test-isnan.c (main): Also test on zeroes.
54084         * tests/test-isnanf.c (main): Likewise.
54085         * tests/test-isnanl.h (main): Likewise.
54086
54087         Detect pseudo-denormals on x86 even when cross-compiling.
54088         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54089         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54090         invalid bit patterns that happen to satisfy ==.
54091
54092         Avoid link failures with separate libtests.a.
54093         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54094         last, to satisfy circular dependencies.
54095
54096 2007-12-11  Eric Blake  <ebb9@byu.net>
54097         and Bruno Haible  <bruno@clisp.org>
54098
54099         Fix OpenBSD 4.0 <float.h> handling of long double.
54100         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54101         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54102         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54103
54104 2007-12-11  Jim Meyering  <meyering@redhat.com>
54105
54106         * users.txt: Add libvirt.
54107
54108         Support versions of autoconf prior to 2.59c.
54109         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54110         if it is not already defined.
54111
54112 2007-12-09  Bruno Haible  <bruno@clisp.org>
54113
54114         Let 'gnulib-tool --import' collect sources needed for the tests in
54115         tests/ rather than in lib/.
54116         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54117         argument. If true, add rules to generate libtests.a, and put libtests.a
54118         into $(LDADD). Consider source files in subdirectories and set
54119         uses_subdirs.
54120         (func_emit_initmacro_start, func_emit_initmacro_end,
54121         func_emit_initmacro_done): Pass all arguments explicitly.
54122         (func_import): Determine two module lists main_modules,
54123         testsrelated_modules. Determine use_libtests. Determine two variables
54124         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54125         instead of just sed_transform_lib_file. Determine two variables
54126         main_files and testsrelated_files. Compute 'files' as the union of
54127         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54128         func_add_or_update. In the generated gnulib-comp.m4, collect the
54129         object files for tests/ in different variables than those for lib/.
54130         Substitute LIBTESTS_LIBDEPS.
54131         (func_create_testdir): Combine the uses_subdirs results from
54132         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54133
54134 2007-12-09  Bruno Haible  <bruno@clisp.org>
54135
54136         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54137         the build-aux directory.
54138
54139 2007-12-09  Bruno Haible  <bruno@clisp.org>
54140
54141         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54142         introduced on 2006-09-09.
54143
54144 2007-12-07  Jim Meyering  <meyering@redhat.com>
54145
54146         Let these macros work also with autoconf-2.59.
54147         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54148         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54149         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54150
54151 2007-12-06  Jim Meyering  <meyering@redhat.com>
54152
54153         Avoid a configure-time syntax error in gl_FUNC_ACL.
54154         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54155         function in each branch, before testing the cache variable.
54156
54157 2007-12-04  Eric Blake  <ebb9@byu.net>
54158
54159         Make scripts executable.
54160         * build-aux/config.guess: Add execute permissions.
54161         * build-aux/config.sub: Likewise.
54162         * build-aux/gendocs.sh: Likewise.
54163
54164         Fix frexp on mingw.
54165         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54166         cross-compiling.
54167         * doc/functions/frexp.texi (frexp): Document the bug.
54168
54169         Make cygwin fseeko check more reliable.
54170         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54171         version numbers, rather than unrelated feature check.
54172         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54173         * doc/functions/ftello.texi (ftello): Likewise.
54174         Reported by Bruno Haible.
54175
54176         * m4/strerror.m4: Bump version number.
54177
54178 2007-12-03  Bruno Haible  <bruno@clisp.org>
54179
54180         * doc/functions/mprotect.texi: Mention the mingw problem.
54181
54182 2007-12-03  Eric Blake  <ebb9@byu.net>
54183
54184         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54185         REPLACE_STRERROR is initialized before this macro.
54186
54187 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54188
54189         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54190         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54191         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54192         put -lsec in even for programs other than 'ls'.  This fixes a problem
54193         for gettext reported by Bruno Haible in
54194         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54195         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54196         Add support for Solaris 10.  This isn't efficient, but should get the
54197         job done for now.
54198
54199 2007-12-03  James Youngman  <jay@gnu.org>
54200
54201         * doc/regexprops-generic.texi: change "an close-group" to "a
54202         close-group" and "illegal" to "not allowed".
54203
54204 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54205
54206         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54207         pr_byname.h. Needed for the rare case when the maintainer has done
54208         "make maintainer-clean" in the source directory and then attempts a
54209         build outside the source directory.
54210         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54211         scripts_byname.h.
54212
54213 2007-12-02  Martin Lambers <marlam@marlam.de>
54214             Bruno Haible  <bruno@clisp.org>
54215
54216         * lib/getpagesize.h: Remove file.
54217         * lib/unistd.in.h: Include declaration of getpagesize here.
54218         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54219         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54220         HAVE_SYS_PARAM_H.
54221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54222         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54223         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54224         (Depends-on): Add unistd.
54225         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54226         (Include): Use <unistd.h> instead of getpagesize.h.
54227         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54228         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54229         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54230         gl_GETPAGESIZE invocation, already handled by module dependency.
54231         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54232
54233 2007-12-02  Bruno Haible  <bruno@clisp.org>
54234
54235         * modules/strings-tests: New file.
54236         * tests/test-strings.c: New file.
54237
54238         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54239         * lib/strings.in.h: New file.
54240         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54241         * m4/strings_h.m4: New file.
54242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54243         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54244         * modules/strings: New file.
54245         * modules/string (Makefile.am): Update.
54246         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54247         Reported by Karl Berry.
54248
54249 2007-12-01  Eric Blake  <ebb9@byu.net>
54250
54251         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54252         accomodate fix in cygwin 1.5.25.
54253
54254 2007-12-01  Jim Meyering  <meyering@redhat.com>
54255
54256         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54257         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54258         that would inhibit utf8-optimization of a regexp containing line-
54259         or buffer-anchors, e.g., `^', `$'.
54260
54261 2007-11-30  Bruno Haible  <bruno@clisp.org>
54262
54263         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54264         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54265         glthread_recursive_lock_init.
54266         * lib/lock.c (glthread_recursive_lock_init)
54267         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54268         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54269
54270 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54271
54272         New function qset_acl, like set_acl but with syscall semantics.
54273         * lib/acl.h (qset_acl): New decl.
54274         * lib/acl.c (qset_acl): New function.
54275         (set_acl): Use new function.  Use more-consistent diagnostics.
54276
54277 2007-11-28  Jim Meyering  <meyering@redhat.com>
54278
54279         * modules/physmem (License): Change from GPL to LGPLv2+.
54280
54281 2007-11-26  Bruno Haible  <bruno@clisp.org>
54282
54283         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54284         'long double' type has excess precision.
54285         Reported by Jim Meyering in
54286         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54287
54288 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54289
54290         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54291         Sync from <http://gnu.org/licenses>.
54292         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54293         with license text from same location.
54294         * doc/maintain.texi, doc/standards.texi:  Sync from
54295         <http://savannah.gnu.org/projects/gnustandards>.
54296
54297 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
54298         and Jim Meyering  <meyering@redhat.com>
54299
54300         Adjust getdate' grammar to accept a slightly more regular language.
54301         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54302         Before, the former was rejected.
54303         * lib/getdate.y (digits_to_date_time): New function, factored
54304         out of ...
54305         (number): ...here.  Just call digits_to_date_time.
54306         (hybrid): New non-terminal to handle an <unsigned number,
54307         signed relative offset> sequence consistently.
54308
54309 2007-11-18  Jim Meyering  <meyering@redhat.com>
54310
54311         Pull my changes from coreutils:
54312         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54313         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54314         use of $gnulib_tool_option_extras, so that it's separated from the
54315         preceding argument.
54316
54317         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54318         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54319         parent destination directories before copying a file into place.
54320
54321 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54322
54323         bootstrap: work also with 4-argument variant of AC_INIT
54324         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54325
54326 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54327
54328         Port test-getaddrinfo to Solaris.
54329         Problem reported by Bruno Haible in
54330         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54331         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54332         explanation of setting 'hints'.
54333         Don't reject an implementation merely because it returns EAI_SERVICE.
54334         (EAI_SERVICE): Define to 0 if not defined.
54335
54336 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54337
54338         The license of gnu-make and posix-shell is now "GPLed build tool".
54339         * modules/gnu-make (License): Likewise.
54340         * modules/posix-shell (License): Likewise.
54341
54342         New module posix-shell, for determining a POSIX shell
54343         or perhaps something that is close enough to a POSIX shell.
54344         * m4/posix-shell.m4: New file.
54345         * modules/posix-shell: New file.
54346
54347         * MODULES.html.sh: Mention new module.
54348
54349         New module gnu-make, for determining whether we're using GNU Make.
54350         * m4/gnu-make.m4: New file.
54351         * modules/gnu-make: New file.
54352         * MODULES.html.sh: Mention new module.
54353
54354 2007-11-14  Jim Meyering  <meyering@redhat.com>
54355
54356         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54357         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54358         use this macro to create a function _definition_.
54359         Remove useless "#undef ARGMATCH_DIE".
54360
54361 2007-11-14  Bruno Haible  <bruno@clisp.org>
54362
54363         * lib/config.charset: Update for OpenBSD 4.1.
54364         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54365
54366 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54367
54368         Document 64-bit #if problems in stdint.texi.
54369         * doc/headers/stdint.texi (stdint.h): Mention problems with
54370         64-bit-#if, and how to work around them.
54371
54372         Don't insist on 'long long int' support in the preprocessor.  It
54373         breaks too many things.  For example, PRIdMAX still uses a 'long
54374         long int' format with the latest Sun compiler, even though
54375         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54376         preprocessor problem.  This causes the latest coreutils to dump
54377         core on Solaris 10 sparc with the Sun C compiler.
54378         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54379         the troublesome expressions at configure-time, not at #if-time.
54380         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54381         preprocessor.
54382         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54383         compile-time C checks, done at 'configure'-time.
54384         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54385         * modules/inttypes (Makefile): Substitute the new symbols that
54386         gl_INTTYPES_H now generates.
54387         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54388
54389 2007-11-12  Bruno Haible  <bruno@clisp.org>
54390
54391         Tests for Unicode character classification functions.
54392
54393         * modules/unictype/bidicategory-byname-tests: New file.
54394         * modules/unictype/bidicategory-name-tests: New file.
54395         * modules/unictype/bidicategory-of-tests: New file.
54396         * modules/unictype/bidicategory-test-tests: New file.
54397         * modules/unictype/block-list-tests: New file.
54398         * modules/unictype/block-of-tests: New file.
54399         * modules/unictype/block-test-tests: New file.
54400         * modules/unictype/category-C-tests: New file.
54401         * modules/unictype/category-Cc-tests: New file.
54402         * modules/unictype/category-Cf-tests: New file.
54403         * modules/unictype/category-Cn-tests: New file.
54404         * modules/unictype/category-Co-tests: New file.
54405         * modules/unictype/category-Cs-tests: New file.
54406         * modules/unictype/category-L-tests: New file.
54407         * modules/unictype/category-Ll-tests: New file.
54408         * modules/unictype/category-Lm-tests: New file.
54409         * modules/unictype/category-Lo-tests: New file.
54410         * modules/unictype/category-Lt-tests: New file.
54411         * modules/unictype/category-Lu-tests: New file.
54412         * modules/unictype/category-M-tests: New file.
54413         * modules/unictype/category-Mc-tests: New file.
54414         * modules/unictype/category-Me-tests: New file.
54415         * modules/unictype/category-Mn-tests: New file.
54416         * modules/unictype/category-N-tests: New file.
54417         * modules/unictype/category-Nd-tests: New file.
54418         * modules/unictype/category-Nl-tests: New file.
54419         * modules/unictype/category-No-tests: New file.
54420         * modules/unictype/category-P-tests: New file.
54421         * modules/unictype/category-Pc-tests: New file.
54422         * modules/unictype/category-Pd-tests: New file.
54423         * modules/unictype/category-Pe-tests: New file.
54424         * modules/unictype/category-Pf-tests: New file.
54425         * modules/unictype/category-Pi-tests: New file.
54426         * modules/unictype/category-Po-tests: New file.
54427         * modules/unictype/category-Ps-tests: New file.
54428         * modules/unictype/category-S-tests: New file.
54429         * modules/unictype/category-Sc-tests: New file.
54430         * modules/unictype/category-Sk-tests: New file.
54431         * modules/unictype/category-Sm-tests: New file.
54432         * modules/unictype/category-So-tests: New file.
54433         * modules/unictype/category-Z-tests: New file.
54434         * modules/unictype/category-Zl-tests: New file.
54435         * modules/unictype/category-Zp-tests: New file.
54436         * modules/unictype/category-Zs-tests: New file.
54437         * modules/unictype/category-and-not-tests: New file.
54438         * modules/unictype/category-and-tests: New file.
54439         * modules/unictype/category-byname-tests: New file.
54440         * modules/unictype/category-name-tests: New file.
54441         * modules/unictype/category-none-tests: New file.
54442         * modules/unictype/category-of-tests: New file.
54443         * modules/unictype/category-or-tests: New file.
54444         * modules/unictype/category-test-withtable-tests: New file.
54445         * modules/unictype/combining-class-tests: New file.
54446         * modules/unictype/ctype-alnum-tests: New file.
54447         * modules/unictype/ctype-alpha-tests: New file.
54448         * modules/unictype/ctype-blank-tests: New file.
54449         * modules/unictype/ctype-cntrl-tests: New file.
54450         * modules/unictype/ctype-digit-tests: New file.
54451         * modules/unictype/ctype-graph-tests: New file.
54452         * modules/unictype/ctype-lower-tests: New file.
54453         * modules/unictype/ctype-print-tests: New file.
54454         * modules/unictype/ctype-punct-tests: New file.
54455         * modules/unictype/ctype-space-tests: New file.
54456         * modules/unictype/ctype-upper-tests: New file.
54457         * modules/unictype/ctype-xdigit-tests: New file.
54458         * modules/unictype/decimal-digit-tests: New file.
54459         * modules/unictype/digit-tests: New file.
54460         * modules/unictype/mirror-tests: New file.
54461         * modules/unictype/numeric-tests: New file.
54462         * modules/unictype/property-alphabetic-tests: New file.
54463         * modules/unictype/property-ascii-hex-digit-tests: New file.
54464         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54465         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54466         * modules/unictype/property-bidi-block-separator-tests: New file.
54467         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54468         * modules/unictype/property-bidi-common-separator-tests: New file.
54469         * modules/unictype/property-bidi-control-tests: New file.
54470         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54471         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54472         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54473         * modules/unictype/property-bidi-european-digit-tests: New file.
54474         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54475         * modules/unictype/property-bidi-left-to-right-tests: New file.
54476         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54477         * modules/unictype/property-bidi-other-neutral-tests: New file.
54478         * modules/unictype/property-bidi-pdf-tests: New file.
54479         * modules/unictype/property-bidi-segment-separator-tests: New file.
54480         * modules/unictype/property-bidi-whitespace-tests: New file.
54481         * modules/unictype/property-byname-tests: New file.
54482         * modules/unictype/property-combining-tests: New file.
54483         * modules/unictype/property-composite-tests: New file.
54484         * modules/unictype/property-currency-symbol-tests: New file.
54485         * modules/unictype/property-dash-tests: New file.
54486         * modules/unictype/property-decimal-digit-tests: New file.
54487         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54488         * modules/unictype/property-deprecated-tests: New file.
54489         * modules/unictype/property-diacritic-tests: New file.
54490         * modules/unictype/property-extender-tests: New file.
54491         * modules/unictype/property-format-control-tests: New file.
54492         * modules/unictype/property-grapheme-base-tests: New file.
54493         * modules/unictype/property-grapheme-extend-tests: New file.
54494         * modules/unictype/property-grapheme-link-tests: New file.
54495         * modules/unictype/property-hex-digit-tests: New file.
54496         * modules/unictype/property-hyphen-tests: New file.
54497         * modules/unictype/property-id-continue-tests: New file.
54498         * modules/unictype/property-id-start-tests: New file.
54499         * modules/unictype/property-ideographic-tests: New file.
54500         * modules/unictype/property-ids-binary-operator-tests: New file.
54501         * modules/unictype/property-ids-trinary-operator-tests: New file.
54502         * modules/unictype/property-ignorable-control-tests: New file.
54503         * modules/unictype/property-iso-control-tests: New file.
54504         * modules/unictype/property-join-control-tests: New file.
54505         * modules/unictype/property-left-of-pair-tests: New file.
54506         * modules/unictype/property-line-separator-tests: New file.
54507         * modules/unictype/property-logical-order-exception-tests: New file.
54508         * modules/unictype/property-lowercase-tests: New file.
54509         * modules/unictype/property-math-tests: New file.
54510         * modules/unictype/property-non-break-tests: New file.
54511         * modules/unictype/property-not-a-character-tests: New file.
54512         * modules/unictype/property-numeric-tests: New file.
54513         * modules/unictype/property-other-alphabetic-tests: New file.
54514         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54515         * modules/unictype/property-other-grapheme-extend-tests: New file.
54516         * modules/unictype/property-other-id-continue-tests: New file.
54517         * modules/unictype/property-other-id-start-tests: New file.
54518         * modules/unictype/property-other-lowercase-tests: New file.
54519         * modules/unictype/property-other-math-tests: New file.
54520         * modules/unictype/property-other-uppercase-tests: New file.
54521         * modules/unictype/property-paired-punctuation-tests: New file.
54522         * modules/unictype/property-paragraph-separator-tests: New file.
54523         * modules/unictype/property-pattern-syntax-tests: New file.
54524         * modules/unictype/property-pattern-white-space-tests: New file.
54525         * modules/unictype/property-private-use-tests: New file.
54526         * modules/unictype/property-punctuation-tests: New file.
54527         * modules/unictype/property-quotation-mark-tests: New file.
54528         * modules/unictype/property-radical-tests: New file.
54529         * modules/unictype/property-sentence-terminal-tests: New file.
54530         * modules/unictype/property-soft-dotted-tests: New file.
54531         * modules/unictype/property-space-tests: New file.
54532         * modules/unictype/property-terminal-punctuation-tests: New file.
54533         * modules/unictype/property-test-tests: New file.
54534         * modules/unictype/property-titlecase-tests: New file.
54535         * modules/unictype/property-unassigned-code-value-tests: New file.
54536         * modules/unictype/property-unified-ideograph-tests: New file.
54537         * modules/unictype/property-uppercase-tests: New file.
54538         * modules/unictype/property-variation-selector-tests: New file.
54539         * modules/unictype/property-white-space-tests: New file.
54540         * modules/unictype/property-xid-continue-tests: New file.
54541         * modules/unictype/property-xid-start-tests: New file.
54542         * modules/unictype/property-zero-width-tests: New file.
54543         * modules/unictype/scripts-tests: New file.
54544         * modules/unictype/syntax-c-ident-tests: New file.
54545         * modules/unictype/syntax-c-whitespace-tests: New file.
54546         * modules/unictype/syntax-java-ident-tests: New file.
54547         * modules/unictype/syntax-java-whitespace-tests: New file.
54548         * tests/unictype/test-bidi_byname.c: New file.
54549         * tests/unictype/test-bidi_name.c: New file.
54550         * tests/unictype/test-bidi_of.c: New file.
54551         * tests/unictype/test-bidi_test.c: New file.
54552         * tests/unictype/test-block_list.c: New file.
54553         * tests/unictype/test-block_of.c: New file.
54554         * tests/unictype/test-block_test.c: New file.
54555         * tests/unictype/test-categ_and.c: New file.
54556         * tests/unictype/test-categ_and_not.c: New file.
54557         * tests/unictype/test-categ_byname.c: New file.
54558         * tests/unictype/test-categ_name.c: New file.
54559         * tests/unictype/test-categ_none.c: New file.
54560         * tests/unictype/test-categ_of.c: New file.
54561         * tests/unictype/test-categ_or.c: New file.
54562         * tests/unictype/test-categ_test_withtable.c: New file.
54563         * tests/unictype/test-combining.c: New file.
54564         * tests/unictype/test-decdigit.c: New file.
54565         * tests/unictype/test-digit.c: New file.
54566         * tests/unictype/test-mirror.c: New file.
54567         * tests/unictype/test-numeric.c: New file.
54568         * tests/unictype/test-pr_byname.c: New file.
54569         * tests/unictype/test-pr_test.c: New file.
54570         * tests/unictype/test-predicate-part1.h: New file.
54571         * tests/unictype/test-predicate-part2.h: New file.
54572         * tests/unictype/test-scripts.c: New file.
54573         * tests/unictype/test-sy_c_ident.c: New file.
54574         * tests/unictype/test-sy_java_ident.c: New file.
54575
54576         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54577         for Unicode 5.0.0.
54578         * tests/unictype/test-categ_Cc.c: Likewise.
54579         * tests/unictype/test-categ_Cf.c: Likewise.
54580         * tests/unictype/test-categ_Cn.c: Likewise.
54581         * tests/unictype/test-categ_Co.c: Likewise.
54582         * tests/unictype/test-categ_Cs.c: Likewise.
54583         * tests/unictype/test-categ_L.c: Likewise.
54584         * tests/unictype/test-categ_Ll.c: Likewise.
54585         * tests/unictype/test-categ_Lm.c: Likewise.
54586         * tests/unictype/test-categ_Lo.c: Likewise.
54587         * tests/unictype/test-categ_Lt.c: Likewise.
54588         * tests/unictype/test-categ_Lu.c: Likewise.
54589         * tests/unictype/test-categ_M.c: Likewise.
54590         * tests/unictype/test-categ_Mc.c: Likewise.
54591         * tests/unictype/test-categ_Me.c: Likewise.
54592         * tests/unictype/test-categ_Mn.c: Likewise.
54593         * tests/unictype/test-categ_N.c: Likewise.
54594         * tests/unictype/test-categ_Nd.c: Likewise.
54595         * tests/unictype/test-categ_Nl.c: Likewise.
54596         * tests/unictype/test-categ_No.c: Likewise.
54597         * tests/unictype/test-categ_P.c: Likewise.
54598         * tests/unictype/test-categ_Pc.c: Likewise.
54599         * tests/unictype/test-categ_Pd.c: Likewise.
54600         * tests/unictype/test-categ_Pe.c: Likewise.
54601         * tests/unictype/test-categ_Pf.c: Likewise.
54602         * tests/unictype/test-categ_Pi.c: Likewise.
54603         * tests/unictype/test-categ_Po.c: Likewise.
54604         * tests/unictype/test-categ_Ps.c: Likewise.
54605         * tests/unictype/test-categ_S.c: Likewise.
54606         * tests/unictype/test-categ_Sc.c: Likewise.
54607         * tests/unictype/test-categ_Sk.c: Likewise.
54608         * tests/unictype/test-categ_Sm.c: Likewise.
54609         * tests/unictype/test-categ_So.c: Likewise.
54610         * tests/unictype/test-categ_Z.c: Likewise.
54611         * tests/unictype/test-categ_Zl.c: Likewise.
54612         * tests/unictype/test-categ_Zp.c: Likewise.
54613         * tests/unictype/test-categ_Zs.c: Likewise.
54614         * tests/unictype/test-ctype_alnum.c: Likewise.
54615         * tests/unictype/test-ctype_alpha.c: Likewise.
54616         * tests/unictype/test-ctype_blank.c: Likewise.
54617         * tests/unictype/test-ctype_cntrl.c: Likewise.
54618         * tests/unictype/test-ctype_digit.c: Likewise.
54619         * tests/unictype/test-ctype_graph.c: Likewise.
54620         * tests/unictype/test-ctype_lower.c: Likewise.
54621         * tests/unictype/test-ctype_print.c: Likewise.
54622         * tests/unictype/test-ctype_punct.c: Likewise.
54623         * tests/unictype/test-ctype_space.c: Likewise.
54624         * tests/unictype/test-ctype_upper.c: Likewise.
54625         * tests/unictype/test-ctype_xdigit.c: Likewise.
54626         * tests/unictype/test-decdigit.h: Likewise.
54627         * tests/unictype/test-digit.h: Likewise.
54628         * tests/unictype/test-numeric.h: Likewise.
54629         * tests/unictype/test-pr_alphabetic.c: Likewise.
54630         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54631         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54632         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54633         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54634         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54635         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54636         * tests/unictype/test-pr_bidi_control.c: Likewise.
54637         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54638         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54639         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54640         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54641         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54642         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54643         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54644         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54645         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54646         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54647         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54648         * tests/unictype/test-pr_combining.c: Likewise.
54649         * tests/unictype/test-pr_composite.c: Likewise.
54650         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54651         * tests/unictype/test-pr_dash.c: Likewise.
54652         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54653         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54654         * tests/unictype/test-pr_deprecated.c: Likewise.
54655         * tests/unictype/test-pr_diacritic.c: Likewise.
54656         * tests/unictype/test-pr_extender.c: Likewise.
54657         * tests/unictype/test-pr_format_control.c: Likewise.
54658         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54659         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54660         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54661         * tests/unictype/test-pr_hex_digit.c: Likewise.
54662         * tests/unictype/test-pr_hyphen.c: Likewise.
54663         * tests/unictype/test-pr_id_continue.c: Likewise.
54664         * tests/unictype/test-pr_id_start.c: Likewise.
54665         * tests/unictype/test-pr_ideographic.c: Likewise.
54666         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54667         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54668         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54669         * tests/unictype/test-pr_iso_control.c: Likewise.
54670         * tests/unictype/test-pr_join_control.c: Likewise.
54671         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54672         * tests/unictype/test-pr_line_separator.c: Likewise.
54673         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54674         * tests/unictype/test-pr_lowercase.c: Likewise.
54675         * tests/unictype/test-pr_math.c: Likewise.
54676         * tests/unictype/test-pr_non_break.c: Likewise.
54677         * tests/unictype/test-pr_not_a_character.c: Likewise.
54678         * tests/unictype/test-pr_numeric.c: Likewise.
54679         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54680         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54681         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54682         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54683         * tests/unictype/test-pr_other_id_start.c: Likewise.
54684         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54685         * tests/unictype/test-pr_other_math.c: Likewise.
54686         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54687         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54688         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54689         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54690         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54691         * tests/unictype/test-pr_private_use.c: Likewise.
54692         * tests/unictype/test-pr_punctuation.c: Likewise.
54693         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54694         * tests/unictype/test-pr_radical.c: Likewise.
54695         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54696         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54697         * tests/unictype/test-pr_space.c: Likewise.
54698         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54699         * tests/unictype/test-pr_titlecase.c: Likewise.
54700         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54701         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54702         * tests/unictype/test-pr_uppercase.c: Likewise.
54703         * tests/unictype/test-pr_variation_selector.c: Likewise.
54704         * tests/unictype/test-pr_white_space.c: Likewise.
54705         * tests/unictype/test-pr_xid_continue.c: Likewise.
54706         * tests/unictype/test-pr_xid_start.c: Likewise.
54707         * tests/unictype/test-pr_zero_width.c: Likewise.
54708         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54709         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54710
54711 2007-11-12  Bruno Haible  <bruno@clisp.org>
54712
54713         Unicode character classification functions.
54714         * lib/unictype.h: New file.
54715         * modules/unictype/base: New file.
54716         * modules/unictype/category-L: New file.
54717         * modules/unictype/category-Lu: New file.
54718         * modules/unictype/category-Ll: New file.
54719         * modules/unictype/category-Lt: New file.
54720         * modules/unictype/category-Lm: New file.
54721         * modules/unictype/category-Lo: New file.
54722         * modules/unictype/category-M: New file.
54723         * modules/unictype/category-Mn: New file.
54724         * modules/unictype/category-Mc: New file.
54725         * modules/unictype/category-Me: New file.
54726         * modules/unictype/category-N: New file.
54727         * modules/unictype/category-Nd: New file.
54728         * modules/unictype/category-Nl: New file.
54729         * modules/unictype/category-No: New file.
54730         * modules/unictype/category-P: New file.
54731         * modules/unictype/category-Pc: New file.
54732         * modules/unictype/category-Pd: New file.
54733         * modules/unictype/category-Ps: New file.
54734         * modules/unictype/category-Pe: New file.
54735         * modules/unictype/category-Pi: New file.
54736         * modules/unictype/category-Pf: New file.
54737         * modules/unictype/category-Po: New file.
54738         * modules/unictype/category-S: New file.
54739         * modules/unictype/category-Sm: New file.
54740         * modules/unictype/category-Sc: New file.
54741         * modules/unictype/category-Sk: New file.
54742         * modules/unictype/category-So: New file.
54743         * modules/unictype/category-Z: New file.
54744         * modules/unictype/category-Zs: New file.
54745         * modules/unictype/category-Zl: New file.
54746         * modules/unictype/category-Zp: New file.
54747         * modules/unictype/category-C: New file.
54748         * modules/unictype/category-Cc: New file.
54749         * modules/unictype/category-Cf: New file.
54750         * modules/unictype/category-Cs: New file.
54751         * modules/unictype/category-Co: New file.
54752         * modules/unictype/category-Cn: New file.
54753         * modules/unictype/category-or: New file.
54754         * modules/unictype/category-of: New file.
54755         * modules/unictype/category-test: New file.
54756         * modules/unictype/category-test-withtable: New file.
54757         * modules/unictype/category-byname: New file.
54758         * modules/unictype/category-none: New file.
54759         * modules/unictype/category-and: New file.
54760         * modules/unictype/category-and-not: New file.
54761         * modules/unictype/category-name: New file.
54762         * modules/unictype/combining-class: New file.
54763         * modules/unictype/category-all: New file.
54764         * modules/unictype/bidicategory-all: New file.
54765         * modules/unictype/bidicategory-byname: New file.
54766         * modules/unictype/bidicategory-name: New file.
54767         * modules/unictype/bidicategory-of: New file.
54768         * modules/unictype/bidicategory-test: New file.
54769         * modules/unictype/decimal-digit: New file.
54770         * modules/unictype/digit: New file.
54771         * modules/unictype/numeric: New file.
54772         * modules/unictype/mirror: New file.
54773         * modules/unictype/property-white-space: New file.
54774         * modules/unictype/property-alphabetic: New file.
54775         * modules/unictype/property-other-alphabetic: New file.
54776         * modules/unictype/property-not-a-character: New file.
54777         * modules/unictype/property-default-ignorable-code-point: New file.
54778         * modules/unictype/property-other-default-ignorable-code-point: New
54779         file.
54780         * modules/unictype/property-deprecated: New file.
54781         * modules/unictype/property-logical-order-exception: New file.
54782         * modules/unictype/property-variation-selector: New file.
54783         * modules/unictype/property-private-use: New file.
54784         * modules/unictype/property-unassigned-code-value: New file.
54785         * modules/unictype/property-uppercase: New file.
54786         * modules/unictype/property-other-uppercase: New file.
54787         * modules/unictype/property-lowercase: New file.
54788         * modules/unictype/property-other-lowercase: New file.
54789         * modules/unictype/property-titlecase: New file.
54790         * modules/unictype/property-soft-dotted: New file.
54791         * modules/unictype/property-id-start: New file.
54792         * modules/unictype/property-other-id-start: New file.
54793         * modules/unictype/property-id-continue: New file.
54794         * modules/unictype/property-other-id-continue: New file.
54795         * modules/unictype/property-xid-start: New file.
54796         * modules/unictype/property-xid-continue: New file.
54797         * modules/unictype/property-pattern-white-space: New file.
54798         * modules/unictype/property-pattern-syntax: New file.
54799         * modules/unictype/property-join-control: New file.
54800         * modules/unictype/property-grapheme-base: New file.
54801         * modules/unictype/property-grapheme-extend: New file.
54802         * modules/unictype/property-other-grapheme-extend: New file.
54803         * modules/unictype/property-grapheme-link: New file.
54804         * modules/unictype/property-bidi-control: New file.
54805         * modules/unictype/property-bidi-left-to-right: New file.
54806         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54807         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54808         * modules/unictype/property-bidi-european-digit: New file.
54809         * modules/unictype/property-bidi-eur-num-separator: New file.
54810         * modules/unictype/property-bidi-eur-num-terminator: New file.
54811         * modules/unictype/property-bidi-arabic-digit: New file.
54812         * modules/unictype/property-bidi-common-separator: New file.
54813         * modules/unictype/property-bidi-block-separator: New file.
54814         * modules/unictype/property-bidi-segment-separator: New file.
54815         * modules/unictype/property-bidi-whitespace: New file.
54816         * modules/unictype/property-bidi-non-spacing-mark: New file.
54817         * modules/unictype/property-bidi-boundary-neutral: New file.
54818         * modules/unictype/property-bidi-pdf: New file.
54819         * modules/unictype/property-bidi-embedding-or-override: New file.
54820         * modules/unictype/property-bidi-other-neutral: New file.
54821         * modules/unictype/property-hex-digit: New file.
54822         * modules/unictype/property-ascii-hex-digit: New file.
54823         * modules/unictype/property-ideographic: New file.
54824         * modules/unictype/property-unified-ideograph: New file.
54825         * modules/unictype/property-radical: New file.
54826         * modules/unictype/property-ids-binary-operator: New file.
54827         * modules/unictype/property-ids-trinary-operator: New file.
54828         * modules/unictype/property-zero-width: New file.
54829         * modules/unictype/property-space: New file.
54830         * modules/unictype/property-non-break: New file.
54831         * modules/unictype/property-iso-control: New file.
54832         * modules/unictype/property-format-control: New file.
54833         * modules/unictype/property-dash: New file.
54834         * modules/unictype/property-hyphen: New file.
54835         * modules/unictype/property-punctuation: New file.
54836         * modules/unictype/property-line-separator: New file.
54837         * modules/unictype/property-paragraph-separator: New file.
54838         * modules/unictype/property-quotation-mark: New file.
54839         * modules/unictype/property-sentence-terminal: New file.
54840         * modules/unictype/property-terminal-punctuation: New file.
54841         * modules/unictype/property-currency-symbol: New file.
54842         * modules/unictype/property-math: New file.
54843         * modules/unictype/property-other-math: New file.
54844         * modules/unictype/property-paired-punctuation: New file.
54845         * modules/unictype/property-left-of-pair: New file.
54846         * modules/unictype/property-combining: New file.
54847         * modules/unictype/property-composite: New file.
54848         * modules/unictype/property-decimal-digit: New file.
54849         * modules/unictype/property-numeric: New file.
54850         * modules/unictype/property-diacritic: New file.
54851         * modules/unictype/property-extender: New file.
54852         * modules/unictype/property-ignorable-control: New file.
54853         * modules/unictype/property-test: New file.
54854         * modules/unictype/property-byname: New file.
54855         * modules/unictype/property-all: New file.
54856         * modules/unictype/scripts: New file.
54857         * modules/unictype/scripts-all: New file.
54858         * modules/unictype/block-of: New file.
54859         * modules/unictype/block-test: New file.
54860         * modules/unictype/block-list: New file.
54861         * modules/unictype/block-all: New file.
54862         * modules/unictype/syntax-c-whitespace: New file.
54863         * modules/unictype/syntax-java-whitespace: New file.
54864         * modules/unictype/syntax-c-ident: New file.
54865         * modules/unictype/syntax-java-ident: New file.
54866         * modules/unictype/ctype-alnum: New file.
54867         * modules/unictype/ctype-alpha: New file.
54868         * modules/unictype/ctype-cntrl: New file.
54869         * modules/unictype/ctype-digit: New file.
54870         * modules/unictype/ctype-graph: New file.
54871         * modules/unictype/ctype-lower: New file.
54872         * modules/unictype/ctype-print: New file.
54873         * modules/unictype/ctype-punct: New file.
54874         * modules/unictype/ctype-space: New file.
54875         * modules/unictype/ctype-upper: New file.
54876         * modules/unictype/ctype-xdigit: New file.
54877         * modules/unictype/ctype-blank: New file.
54878         * lib/unictype/bidi_byname.c: New file.
54879         * lib/unictype/bidi_name.c: New file.
54880         * lib/unictype/bidi_of.c: New file.
54881         * lib/unictype/bidi_test.c: New file.
54882         * lib/unictype/bitmap.h: New file.
54883         * lib/unictype/block_test.c: New file.
54884         * lib/unictype/blocks.c: New file.
54885         * lib/unictype/categ_C.c: New file.
54886         * lib/unictype/categ_Cc.c: New file.
54887         * lib/unictype/categ_Cf.c: New file.
54888         * lib/unictype/categ_Cn.c: New file.
54889         * lib/unictype/categ_Co.c: New file.
54890         * lib/unictype/categ_Cs.c: New file.
54891         * lib/unictype/categ_L.c: New file.
54892         * lib/unictype/categ_Ll.c: New file.
54893         * lib/unictype/categ_Lm.c: New file.
54894         * lib/unictype/categ_Lo.c: New file.
54895         * lib/unictype/categ_Lt.c: New file.
54896         * lib/unictype/categ_Lu.c: New file.
54897         * lib/unictype/categ_M.c: New file.
54898         * lib/unictype/categ_Mc.c: New file.
54899         * lib/unictype/categ_Me.c: New file.
54900         * lib/unictype/categ_Mn.c: New file.
54901         * lib/unictype/categ_N.c: New file.
54902         * lib/unictype/categ_Nd.c: New file.
54903         * lib/unictype/categ_Nl.c: New file.
54904         * lib/unictype/categ_No.c: New file.
54905         * lib/unictype/categ_P.c: New file.
54906         * lib/unictype/categ_Pc.c: New file.
54907         * lib/unictype/categ_Pd.c: New file.
54908         * lib/unictype/categ_Pe.c: New file.
54909         * lib/unictype/categ_Pf.c: New file.
54910         * lib/unictype/categ_Pi.c: New file.
54911         * lib/unictype/categ_Po.c: New file.
54912         * lib/unictype/categ_Ps.c: New file.
54913         * lib/unictype/categ_S.c: New file.
54914         * lib/unictype/categ_Sc.c: New file.
54915         * lib/unictype/categ_Sk.c: New file.
54916         * lib/unictype/categ_Sm.c: New file.
54917         * lib/unictype/categ_So.c: New file.
54918         * lib/unictype/categ_Z.c: New file.
54919         * lib/unictype/categ_Zl.c: New file.
54920         * lib/unictype/categ_Zp.c: New file.
54921         * lib/unictype/categ_Zs.c: New file.
54922         * lib/unictype/categ_and.c: New file.
54923         * lib/unictype/categ_and_not.c: New file.
54924         * lib/unictype/categ_byname.c: New file.
54925         * lib/unictype/categ_name.c: New file.
54926         * lib/unictype/categ_none.c: New file.
54927         * lib/unictype/categ_of.c: New file.
54928         * lib/unictype/categ_or.c: New file.
54929         * lib/unictype/categ_test.c: New file.
54930         * lib/unictype/combining.c: New file.
54931         * lib/unictype/ctype_alnum.c: New file.
54932         * lib/unictype/ctype_alpha.c: New file.
54933         * lib/unictype/ctype_blank.c: New file.
54934         * lib/unictype/ctype_cntrl.c: New file.
54935         * lib/unictype/ctype_digit.c: New file.
54936         * lib/unictype/ctype_graph.c: New file.
54937         * lib/unictype/ctype_lower.c: New file.
54938         * lib/unictype/ctype_print.c: New file.
54939         * lib/unictype/ctype_punct.c: New file.
54940         * lib/unictype/ctype_space.c: New file.
54941         * lib/unictype/ctype_upper.c: New file.
54942         * lib/unictype/ctype_xdigit.c: New file.
54943         * lib/unictype/decdigit.c: New file.
54944         * lib/unictype/digit.c: New file.
54945         * lib/unictype/identsyntaxmap.h: New file.
54946         * lib/unictype/mirror.c: New file.
54947         * lib/unictype/numeric.c: New file.
54948         * lib/unictype/pr_alphabetic.c: New file.
54949         * lib/unictype/pr_ascii_hex_digit.c: New file.
54950         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54951         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54952         * lib/unictype/pr_bidi_block_separator.c: New file.
54953         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54954         * lib/unictype/pr_bidi_common_separator.c: New file.
54955         * lib/unictype/pr_bidi_control.c: New file.
54956         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54957         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54958         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54959         * lib/unictype/pr_bidi_european_digit.c: New file.
54960         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54961         * lib/unictype/pr_bidi_left_to_right.c: New file.
54962         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54963         * lib/unictype/pr_bidi_other_neutral.c: New file.
54964         * lib/unictype/pr_bidi_pdf.c: New file.
54965         * lib/unictype/pr_bidi_segment_separator.c: New file.
54966         * lib/unictype/pr_bidi_whitespace.c: New file.
54967         * lib/unictype/pr_byname.c: New file.
54968         * lib/unictype/pr_byname.gperf: New file.
54969         * lib/unictype/pr_combining.c: New file.
54970         * lib/unictype/pr_composite.c: New file.
54971         * lib/unictype/pr_currency_symbol.c: New file.
54972         * lib/unictype/pr_dash.c: New file.
54973         * lib/unictype/pr_decimal_digit.c: New file.
54974         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54975         * lib/unictype/pr_deprecated.c: New file.
54976         * lib/unictype/pr_diacritic.c: New file.
54977         * lib/unictype/pr_extender.c: New file.
54978         * lib/unictype/pr_format_control.c: New file.
54979         * lib/unictype/pr_grapheme_base.c: New file.
54980         * lib/unictype/pr_grapheme_extend.c: New file.
54981         * lib/unictype/pr_grapheme_link.c: New file.
54982         * lib/unictype/pr_hex_digit.c: New file.
54983         * lib/unictype/pr_hyphen.c: New file.
54984         * lib/unictype/pr_id_continue.c: New file.
54985         * lib/unictype/pr_id_start.c: New file.
54986         * lib/unictype/pr_ideographic.c: New file.
54987         * lib/unictype/pr_ids_binary_operator.c: New file.
54988         * lib/unictype/pr_ids_trinary_operator.c: New file.
54989         * lib/unictype/pr_ignorable_control.c: New file.
54990         * lib/unictype/pr_iso_control.c: New file.
54991         * lib/unictype/pr_join_control.c: New file.
54992         * lib/unictype/pr_left_of_pair.c: New file.
54993         * lib/unictype/pr_line_separator.c: New file.
54994         * lib/unictype/pr_logical_order_exception.c: New file.
54995         * lib/unictype/pr_lowercase.c: New file.
54996         * lib/unictype/pr_math.c: New file.
54997         * lib/unictype/pr_non_break.c: New file.
54998         * lib/unictype/pr_not_a_character.c: New file.
54999         * lib/unictype/pr_numeric.c: New file.
55000         * lib/unictype/pr_other_alphabetic.c: New file.
55001         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55002         * lib/unictype/pr_other_grapheme_extend.c: New file.
55003         * lib/unictype/pr_other_id_continue.c: New file.
55004         * lib/unictype/pr_other_id_start.c: New file.
55005         * lib/unictype/pr_other_lowercase.c: New file.
55006         * lib/unictype/pr_other_math.c: New file.
55007         * lib/unictype/pr_other_uppercase.c: New file.
55008         * lib/unictype/pr_paired_punctuation.c: New file.
55009         * lib/unictype/pr_paragraph_separator.c: New file.
55010         * lib/unictype/pr_pattern_syntax.c: New file.
55011         * lib/unictype/pr_pattern_white_space.c: New file.
55012         * lib/unictype/pr_private_use.c: New file.
55013         * lib/unictype/pr_punctuation.c: New file.
55014         * lib/unictype/pr_quotation_mark.c: New file.
55015         * lib/unictype/pr_radical.c: New file.
55016         * lib/unictype/pr_sentence_terminal.c: New file.
55017         * lib/unictype/pr_soft_dotted.c: New file.
55018         * lib/unictype/pr_space.c: New file.
55019         * lib/unictype/pr_terminal_punctuation.c: New file.
55020         * lib/unictype/pr_test.c: New file.
55021         * lib/unictype/pr_titlecase.c: New file.
55022         * lib/unictype/pr_unassigned_code_value.c: New file.
55023         * lib/unictype/pr_unified_ideograph.c: New file.
55024         * lib/unictype/pr_uppercase.c: New file.
55025         * lib/unictype/pr_variation_selector.c: New file.
55026         * lib/unictype/pr_white_space.c: New file.
55027         * lib/unictype/pr_xid_continue.c: New file.
55028         * lib/unictype/pr_xid_start.c: New file.
55029         * lib/unictype/pr_zero_width.c: New file.
55030         * lib/unictype/scripts.c: New file.
55031         * lib/unictype/sy_c_ident.c: New file.
55032         * lib/unictype/sy_c_whitespace.c: New file.
55033         * lib/unictype/sy_java_ident.c: New file.
55034         * lib/unictype/sy_java_whitespace.c: New file.
55035
55036         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55037         Unicode 5.0.0.
55038         * lib/unictype/blocks.h: Likewise.
55039         * lib/unictype/categ_C.h: Likewise.
55040         * lib/unictype/categ_Cc.h: Likewise.
55041         * lib/unictype/categ_Cf.h: Likewise.
55042         * lib/unictype/categ_Cn.h: Likewise.
55043         * lib/unictype/categ_Co.h: Likewise.
55044         * lib/unictype/categ_Cs.h: Likewise.
55045         * lib/unictype/categ_L.h: Likewise.
55046         * lib/unictype/categ_Ll.h: Likewise.
55047         * lib/unictype/categ_Lm.h: Likewise.
55048         * lib/unictype/categ_Lo.h: Likewise.
55049         * lib/unictype/categ_Lt.h: Likewise.
55050         * lib/unictype/categ_Lu.h: Likewise.
55051         * lib/unictype/categ_M.h: Likewise.
55052         * lib/unictype/categ_Mc.h: Likewise.
55053         * lib/unictype/categ_Me.h: Likewise.
55054         * lib/unictype/categ_Mn.h: Likewise.
55055         * lib/unictype/categ_N.h: Likewise.
55056         * lib/unictype/categ_Nd.h: Likewise.
55057         * lib/unictype/categ_Nl.h: Likewise.
55058         * lib/unictype/categ_No.h: Likewise.
55059         * lib/unictype/categ_P.h: Likewise.
55060         * lib/unictype/categ_Pc.h: Likewise.
55061         * lib/unictype/categ_Pd.h: Likewise.
55062         * lib/unictype/categ_Pe.h: Likewise.
55063         * lib/unictype/categ_Pf.h: Likewise.
55064         * lib/unictype/categ_Pi.h: Likewise.
55065         * lib/unictype/categ_Po.h: Likewise.
55066         * lib/unictype/categ_Ps.h: Likewise.
55067         * lib/unictype/categ_S.h: Likewise.
55068         * lib/unictype/categ_Sc.h: Likewise.
55069         * lib/unictype/categ_Sk.h: Likewise.
55070         * lib/unictype/categ_Sm.h: Likewise.
55071         * lib/unictype/categ_So.h: Likewise.
55072         * lib/unictype/categ_Z.h: Likewise.
55073         * lib/unictype/categ_Zl.h: Likewise.
55074         * lib/unictype/categ_Zp.h: Likewise.
55075         * lib/unictype/categ_Zs.h: Likewise.
55076         * lib/unictype/categ_of.h: Likewise.
55077         * lib/unictype/combining.h: Likewise.
55078         * lib/unictype/ctype_alnum.h: Likewise.
55079         * lib/unictype/ctype_alpha.h: Likewise.
55080         * lib/unictype/ctype_blank.h: Likewise.
55081         * lib/unictype/ctype_cntrl.h: Likewise.
55082         * lib/unictype/ctype_digit.h: Likewise.
55083         * lib/unictype/ctype_graph.h: Likewise.
55084         * lib/unictype/ctype_lower.h: Likewise.
55085         * lib/unictype/ctype_print.h: Likewise.
55086         * lib/unictype/ctype_punct.h: Likewise.
55087         * lib/unictype/ctype_space.h: Likewise.
55088         * lib/unictype/ctype_upper.h: Likewise.
55089         * lib/unictype/ctype_xdigit.h: Likewise.
55090         * lib/unictype/decdigit.h: Likewise.
55091         * lib/unictype/digit.h: Likewise.
55092         * lib/unictype/mirror.h: Likewise.
55093         * lib/unictype/numeric.h: Likewise.
55094         * lib/unictype/pr_alphabetic.h: Likewise.
55095         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55096         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55097         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55098         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55099         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55100         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55101         * lib/unictype/pr_bidi_control.h: Likewise.
55102         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55103         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55104         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55105         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55106         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55107         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55108         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55109         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55110         * lib/unictype/pr_bidi_pdf.h: Likewise.
55111         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55112         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55113         * lib/unictype/pr_combining.h: Likewise.
55114         * lib/unictype/pr_composite.h: Likewise.
55115         * lib/unictype/pr_currency_symbol.h: Likewise.
55116         * lib/unictype/pr_dash.h: Likewise.
55117         * lib/unictype/pr_decimal_digit.h: Likewise.
55118         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55119         * lib/unictype/pr_deprecated.h: Likewise.
55120         * lib/unictype/pr_diacritic.h: Likewise.
55121         * lib/unictype/pr_extender.h: Likewise.
55122         * lib/unictype/pr_format_control.h: Likewise.
55123         * lib/unictype/pr_grapheme_base.h: Likewise.
55124         * lib/unictype/pr_grapheme_extend.h: Likewise.
55125         * lib/unictype/pr_grapheme_link.h: Likewise.
55126         * lib/unictype/pr_hex_digit.h: Likewise.
55127         * lib/unictype/pr_hyphen.h: Likewise.
55128         * lib/unictype/pr_id_continue.h: Likewise.
55129         * lib/unictype/pr_id_start.h: Likewise.
55130         * lib/unictype/pr_ideographic.h: Likewise.
55131         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55132         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55133         * lib/unictype/pr_ignorable_control.h: Likewise.
55134         * lib/unictype/pr_iso_control.h: Likewise.
55135         * lib/unictype/pr_join_control.h: Likewise.
55136         * lib/unictype/pr_left_of_pair.h: Likewise.
55137         * lib/unictype/pr_line_separator.h: Likewise.
55138         * lib/unictype/pr_logical_order_exception.h: Likewise.
55139         * lib/unictype/pr_lowercase.h: Likewise.
55140         * lib/unictype/pr_math.h: Likewise.
55141         * lib/unictype/pr_non_break.h: Likewise.
55142         * lib/unictype/pr_not_a_character.h: Likewise.
55143         * lib/unictype/pr_numeric.h: Likewise.
55144         * lib/unictype/pr_other_alphabetic.h: Likewise.
55145         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55146         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55147         * lib/unictype/pr_other_id_continue.h: Likewise.
55148         * lib/unictype/pr_other_id_start.h: Likewise.
55149         * lib/unictype/pr_other_lowercase.h: Likewise.
55150         * lib/unictype/pr_other_math.h: Likewise.
55151         * lib/unictype/pr_other_uppercase.h: Likewise.
55152         * lib/unictype/pr_paired_punctuation.h: Likewise.
55153         * lib/unictype/pr_paragraph_separator.h: Likewise.
55154         * lib/unictype/pr_pattern_syntax.h: Likewise.
55155         * lib/unictype/pr_pattern_white_space.h: Likewise.
55156         * lib/unictype/pr_private_use.h: Likewise.
55157         * lib/unictype/pr_punctuation.h: Likewise.
55158         * lib/unictype/pr_quotation_mark.h: Likewise.
55159         * lib/unictype/pr_radical.h: Likewise.
55160         * lib/unictype/pr_sentence_terminal.h: Likewise.
55161         * lib/unictype/pr_soft_dotted.h: Likewise.
55162         * lib/unictype/pr_space.h: Likewise.
55163         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55164         * lib/unictype/pr_titlecase.h: Likewise.
55165         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55166         * lib/unictype/pr_unified_ideograph.h: Likewise.
55167         * lib/unictype/pr_uppercase.h: Likewise.
55168         * lib/unictype/pr_variation_selector.h: Likewise.
55169         * lib/unictype/pr_white_space.h: Likewise.
55170         * lib/unictype/pr_xid_continue.h: Likewise.
55171         * lib/unictype/pr_xid_start.h: Likewise.
55172         * lib/unictype/pr_zero_width.h: Likewise.
55173         * lib/unictype/scripts.h: Likewise.
55174         * lib/unictype/scripts_byname.gperf: Likewise.
55175         * lib/unictype/sy_c_ident.h: Likewise.
55176         * lib/unictype/sy_c_whitespace.h: Likewise.
55177         * lib/unictype/sy_java_ident.h: Likewise.
55178         * lib/unictype/sy_java_whitespace.h: Likewise.
55179
55180         * lib/unictype/Makefile: New file.
55181         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55182         glibc.
55183         * lib/unictype/3level.h: New file, copied from glibc.
55184         * lib/unictype/3levelbit.h: New file.
55185
55186 2007-11-11  Bruno Haible  <bruno@clisp.org>
55187
55188         * modules/gperf: New file.
55189         * modules/iconv_open (Depends-on): Add it.
55190         (Makefile.am): Remove the GPERF definition.
55191
55192 2007-11-11  Bruno Haible  <bruno@clisp.org>
55193
55194         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55195         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55196
55197 2007-11-11  Bruno Haible  <bruno@clisp.org>
55198
55199         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55200         (usage): Remove function.
55201
55202 2007-11-11  Bruno Haible  <bruno@clisp.org>
55203
55204         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55205         gl_FUNC_CEILF_LIBS.
55206         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55207         gl_FUNC_CEIL_LIBS.
55208         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55209         gl_FUNC_CEILL_LIBS.
55210         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55211         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55212         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55213
55214 2007-11-11  Bruno Haible  <bruno@clisp.org>
55215
55216         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55217         roundf were declared but do not exist on functions.
55218         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55219         roundl were declared but do not exist on functions.
55220         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55221         HAVE_FLOORL_AND_CEILL, respectively.
55222         Needed for Sun C on Solaris 10.
55223
55224 2007-11-11  Bruno Haible  <bruno@clisp.org>
55225
55226         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55227         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55228         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55229         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55230         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55231         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55232         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55233         HAVE_DECL_ROUNDF.
55234         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55235         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55237         of HAVE_DECL_ROUND*.
55238         * modules/math (Makefile.am): Update.
55239
55240 2007-11-10  Bruno Haible  <bruno@clisp.org>
55241
55242         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55243         ptrdiff_t as m4/intl.m4.
55244
55245 2007-11-10  Jim Meyering  <meyering@redhat.com>
55246
55247         Avoid link failure for the argmatch test.
55248         * tests/test-argmatch.c (usage): Define function to avoid a link
55249         failure: argmatch_die requires a usage function.
55250
55251 2007-11-09  Bruno Haible  <bruno@clisp.org>
55252
55253         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55254         * doc/functions/vsnprintf.texi: Likewise.
55255         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55256         with a size argument < 2.
55257
55258 2007-11-09  Bruno Haible  <bruno@clisp.org>
55259
55260         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55261         buffer. Fixes an inefficiency introduced on 2007-11-03.
55262
55263 2007-11-09  Bruno Haible  <bruno@clisp.org>
55264
55265         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55266         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55267
55268 2007-11-08  Jim Meyering  <meyering@redhat.com>
55269
55270         Change cache variable name prefix "jm_" to "gl_" everywhere.
55271         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55272         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55273         * m4/uptime.m4: s/gl_/jm_/
55274
55275 2007-11-07  Bruno Haible  <bruno@clisp.org>
55276
55277         Update to GNU gettext 0.17.
55278         * m4/intl.m4: Update to GNU gettext 0.17.
55279         * m4/po.m4: Likewise.
55280         * modules/gettext (Files): Remove m4/ulonglong.m4.
55281         (configure.ac): Require gettext infrastructure from version 0.17.
55282
55283 2007-11-06  Bruno Haible  <bruno@clisp.org>
55284
55285         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55286         symbolic values are not defined in a public header.
55287         * lib/freadable.c (freadable) [QNX]: Likewise.
55288         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55289         * lib/freading.c (freading) [QNX]: Likewise.
55290         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55291         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55292         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55293         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55294         Reported by Alain Magloire.
55295
55296         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55297
55298 2007-11-05  Bruno Haible  <bruno@clisp.org>
55299
55300         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55301         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55302         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55303         Reported by Eric Blake.
55304
55305 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55306             Bruno Haible  <bruno@clisp.org>
55307
55308         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55309         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55310         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55311         (malloc): Undefine also before including <stdlib.h>.
55312         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55313         Needed on OSF/1 4.0.
55314
55315 2007-11-05  Jim Meyering  <meyering@redhat.com>
55316
55317         git-version-gen: sync from coreutils.
55318         * build-aux/git-version-gen: Add comments.
55319         Change the first '-' to '.' in the snapshot version string,
55320         e.g., 6.9-377-08144 -> 6.9.377-08144
55321         Remove first parameter.
55322         Don't declare a version "-dirty" merely because a time
55323         stamp has changed.
55324
55325 2007-11-04  Bruno Haible  <bruno@clisp.org>
55326
55327         * lib/lock.h: Protect all macro definitions containing an 'if'
55328         statement through a "do { ... } while (0)".
55329         * lib/tls.h: Likewise.
55330
55331 2007-11-04  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55334
55335 2007-11-04  Bruno Haible  <bruno@clisp.org>
55336
55337         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55338         * modules/fprintf-posix (Depends-on): Add nocrash.
55339         * modules/snprintf-posix (Depends-on): Likewise.
55340         * modules/sprintf-posix (Depends-on): Likewise.
55341         * modules/vasnprintf-posix (Depends-on): Likewise.
55342         * modules/vasprintf-posix (Depends-on): Likewise.
55343         * modules/vfprintf-posix (Depends-on): Likewise.
55344         * modules/vsnprintf-posix (Depends-on): Likewise.
55345         * modules/vsprintf-posix (Depends-on): Likewise.
55346         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55347         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55348         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55349         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55350         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55351         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55352         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55353
55354 2007-11-04  Bruno Haible  <bruno@clisp.org>
55355
55356         * modules/nocrash: New file.
55357         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55358         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55359
55360 2007-11-04  Bruno Haible  <bruno@clisp.org>
55361
55362         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55363         precision handling.
55364         * tests/test-vasprintf-posix.c (test_function): Likewise.
55365         * tests/test-snprintf-posix.h (test_function): Likewise.
55366         * tests/test-sprintf-posix.h (test_function): Likewise.
55367
55368         Fix *printf behaviour for large precisions on mingw and BeOS.
55369         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55370         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55371         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55372         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55373         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55374         gl_PRINTF_PRECISION and test its result. Invoke
55375         gl_PREREQ_VASNPRINTF_PRECISION.
55376         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55377         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55379         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55380         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55381         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55382         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55383         * doc/functions/fprintf.texi: Update.
55384         * doc/functions/printf.texi: Update.
55385         * doc/functions/snprintf.texi: Update.
55386         * doc/functions/sprintf.texi: Update.
55387         * doc/functions/vfprintf.texi: Update.
55388         * doc/functions/vprintf.texi: Update.
55389         * doc/functions/vsnprintf.texi: Update.
55390         * doc/functions/vsprintf.texi: Update.
55391
55392 2007-11-04  Bruno Haible  <bruno@clisp.org>
55393
55394         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55395
55396 2007-11-04  Bruno Haible  <bruno@clisp.org>
55397
55398         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55399         Reported by Sylvain Beucler <beuc@gnu.org>.
55400
55401 2007-11-03  Bruno Haible  <bruno@clisp.org>
55402
55403         * tests/test-fprintf-posix2.sh: New file.
55404         * tests/test-fprintf-posix2.c: New file.
55405         * modules/fprintf-posix-tests (Files): Add them.
55406         (TESTS): Add test-fprintf-posix2.sh.
55407         (configure.ac): Check for getrlimit and setrlimit.
55408         (check_PROGRAMS): Add test-fprintf-posix2.
55409
55410         * tests/test-printf-posix2.sh: New file.
55411         * tests/test-printf-posix2.c: New file.
55412         * modules/printf-posix-tests (Files): Add them.
55413         (TESTS): Add test-printf-posix2.sh.
55414         (configure.ac): Check for getrlimit and setrlimit.
55415         (check_PROGRAMS): Add test-printf-posix2.
55416
55417         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55418         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55419         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55420         (decode_double): New function, copied from decode_long_double.
55421         (scale10_round_decimal_decoded): New function, extracted from
55422         scale10_round_decimal_long_double.
55423         (scale10_round_decimal_long_double): Use it.
55424         (scale10_round_decimal_double): New function.
55425         (floorlog10): New function.
55426         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55428         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55429         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55430         gl_PRINTF_ENOMEM and test its result. Invoke
55431         gl_PREREQ_VASNPRINTF_ENOMEM.
55432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55433         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55439         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55440         * modules/snprintf-posix (Depends-on): Likewise.
55441         * modules/sprintf-posix (Depends-on): Likewise.
55442         * modules/vasnprintf-posix (Depends-on): Likewise.
55443         * modules/vasprintf-posix (Depends-on): Likewise.
55444         * modules/vfprintf-posix (Depends-on): Likewise.
55445         * modules/vsnprintf-posix (Depends-on): Likewise.
55446         * modules/vsprintf-posix (Depends-on): Likewise.
55447         * doc/functions/fprintf.texi: Update.
55448         * doc/functions/printf.texi: Update.
55449         * doc/functions/snprintf.texi: Update.
55450         * doc/functions/sprintf.texi: Update.
55451         * doc/functions/vfprintf.texi: Update.
55452         * doc/functions/vprintf.texi: Update.
55453         * doc/functions/vsnprintf.texi: Update.
55454         * doc/functions/vsprintf.texi: Update.
55455
55456 2007-11-03  Bruno Haible  <bruno@clisp.org>
55457
55458         * modules/frexp-nolibm-tests: New file.
55459
55460         * modules/frexp-nolibm: New file.
55461         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55462
55463 2007-11-03  Bruno Haible  <bruno@clisp.org>
55464
55465         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55466         value is C99 compliant.
55467         Needed for OSF/1 5.1.
55468
55469 2007-11-03  Bruno Haible  <bruno@clisp.org>
55470
55471         Fix out-of-memory handling of vasnprintf.
55472         * lib/printf-parse.c: Include <errno.h>.
55473         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55474         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55475         is already set.
55476
55477 2007-11-02  Eric Blake  <ebb9@byu.net>
55478
55479         Fix tests on cygwin.
55480         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55481
55482 2007-11-01  Bruno Haible  <bruno@clisp.org>
55483
55484         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55485         warning.
55486         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55487         needed for POSIX compatibility.
55488
55489 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55490
55491         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55492         for compatibility with GNU.
55493
55494 2007-11-01  Bruno Haible  <bruno@clisp.org>
55495
55496         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55497         (putenv): Renamed from rpl_putenv. Change argument type from
55498         'const char *' to 'char *'.
55499         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55500         of defining putenv in config.h, just set REPLACE_PUTENV.
55501         * modules/putenv (Depends-on): Add stdlib.
55502         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55503         (Include): Use <stdlib.h>.
55504         * lib/stdlib.in.h (putenv): New declaration.
55505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55506         REPLACE_PUTENV.
55507         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55508         REPLACE_PUTENV.
55509         Needed for MacOS X 10.5.0.
55510         Reported by Peter O'Gorman <peter@pogma.com>.
55511
55512 2007-11-01  Jim Meyering  <meyering@redhat.com>
55513
55514         Treat an empty date string exactly like "0".
55515         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55516         if the remaining date string (to be parsed) is empty, use "0".
55517         Reported by Mischa Molhoek and discussed in this thread:
55518         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55519
55520 2007-10-31  Bruno Haible  <bruno@clisp.org>
55521
55522         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55523         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55524         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55525         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55526         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55527         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55528
55529 2007-10-31  Bruno Haible  <bruno@clisp.org>
55530
55531         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55532         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55533         (AC_TYPE_LONG_LONG_INT): Use it.
55534         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55535         it as well.
55536         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55537         to m4/longlong.m4.
55538         * modules/stdint (Files): Remove m4/ulonglong.m4.
55539         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55540         m4/ulonglong.m4.
55541         * modules/strtoumax (Files): Likewise.
55542
55543 2007-10-30  Bruno Haible  <bruno@clisp.org>
55544
55545         * modules/xvasprintf-posix: New file.
55546         Suggested by Eric Blake.
55547
55548 2007-10-30  Bruno Haible  <bruno@clisp.org>
55549
55550         * modules/xprintf-posix-tests: New file.
55551         * tests/test-xprintf-posix.sh: New file.
55552         * tests/test-xprintf-posix.c: New file.
55553         * tests/test-xfprintf-posix.c: New file.
55554
55555         * modules/xprintf-posix: New file.
55556
55557 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55558
55559         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55560         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55561         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55562
55563 2007-10-29  Bruno Haible  <bruno@clisp.org>
55564
55565         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55566         contain the special marker '_cv_'.
55567         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55568         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55569         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55570         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55571         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55572         Reported by Ralf Wildenhues.
55573
55574 2007-10-29  Bruno Haible  <bruno@clisp.org>
55575
55576         * gnulib-tool (func_import): When --lgpl is not specified, set
55577         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55578         GPLv3.
55579         Reported by Simon Josefsson.
55580
55581 2007-10-28  Bruno Haible  <bruno@clisp.org>
55582
55583         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55584         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55585         HAVE_DECL_ISFINITE.
55586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55587         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55588         HAVE_DECL_ISFINITE.
55589
55590 2007-10-28  Bruno Haible  <bruno@clisp.org>
55591
55592         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55593         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55594
55595 2007-10-28  Bruno Haible  <bruno@clisp.org>
55596
55597         Fix link errors with Sun C 5.0 on Solaris 10.
55598         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55599         function is declared but not present in the compiler's libm.
55600         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55601         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55602         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55603         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55604         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55605         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55606         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55608         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55609         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55610         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55611         HAVE_DECL_FLOORL.
55612
55613 2007-10-28  Bruno Haible  <bruno@clisp.org>
55614
55615         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55616         gl_FUNC_FLOORL. Cache the result.
55617         (gl_FUNC_FLOORL): Use it.
55618         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55619         gl_FUNC_CEILL. Cache the result.
55620         (gl_FUNC_CEILL): Use it.
55621
55622         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55623         gl_FUNC_FLOOR. Cache the result.
55624         (gl_FUNC_FLOOR): Use it.
55625         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55626         gl_FUNC_CEIL. Cache the result.
55627         (gl_FUNC_CEIL): Use it.
55628
55629         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55630         gl_FUNC_FLOORF. Cache the result.
55631         (gl_FUNC_FLOORF): Use it.
55632         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55633         gl_FUNC_CEILF. Cache the result.
55634         (gl_FUNC_CEILF): Use it.
55635
55636 2007-10-28  Bruno Haible  <bruno@clisp.org>
55637
55638         * gnulib-tool: Allow specifying the LGPL version number through
55639         --lgpl=2 or --lgpl=3.
55640         (func_usage): Document --lgpl with argument.
55641         Handle --lgpl=... arguments.
55642         (func_import): Recognize also gl_LGPL calls with an argument. When
55643         --lgpl=2 is used and the module's license is just LGPL, report an
55644         error. Set sed_transform_lib_file according to the lgpl variable. In
55645         the generated files, use --lgpl or gl_LGPL invocations with argument,
55646         if necessary.
55647         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55648         an LGPv2+ license.
55649         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55650         gl_LGPL macro.
55651
55652 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55653             Bruno Haible  <bruno@clisp.org>
55654
55655         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55656         (u16_uctomb_aux): Likewise.
55657         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55658         !HAVE_INLINE.
55659         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55660
55661 2007-10-28  Bruno Haible  <bruno@clisp.org>
55662
55663         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55664         Invoke AM_GETTEXT_OPTION if it exists.
55665         * modules/vasprintf: Likewise.
55666         * modules/verror: Likewise.
55667         * modules/xprintf: Likewise.
55668         * modules/xvasprintf: Likewise.
55669
55670 2007-10-27  Ben Pfaff  <blp@gnu.org>
55671
55672         * lib/math.in.h: Define isfinite macro and prototypes for
55673         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55674         implementations.
55675         * m4/math_h.m4: New substitutions for isfinite module.
55676         * lib/isfinite.c: New file.
55677         * m4/isfinite.m4: New file.
55678         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55679         * modules/isfinite: New file.
55680         * modules/isfinite-tests: New file.
55681         * tests/tests-isfinite.c: New file.
55682         * doc/functions/isfinite.texi: Mention isfinite module.
55683         * MODULES.html.sh: Mention new module.
55684
55685 2007-10-27  Ben Pfaff  <blp@gnu.org>
55686
55687         Ralf Wildenhues reported that Tru64 4.0D declares the round
55688         functions but does not have definitions.
55689         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55690         cannot be found in any library, set the output variable to
55691         "missing" instead of "".
55692         * m4/round.m4: Also use our substitute if we cannot find round in
55693         any library, even if it is declared.
55694         * m4/roundf.m4: Likewise for roundf.
55695         * m4/roundl.m4: Likewise for roundl.
55696         * lib/math.in.h: Undefine roundf, round, roundl before defining
55697         their replacements, to allow for hypothetical systems where these
55698         may be defined as macros but not available in libraries.
55699
55700 2007-10-27  Bruno Haible  <bruno@clisp.org>
55701
55702         * doc/gnulib.texi: Invoke @firstparagraphindent.
55703         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55704         changes in gnulib.
55705         (Source changes): New section.
55706
55707 2007-10-26  Bruno Haible  <bruno@clisp.org>
55708
55709         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55710         borrowed from autoconf.
55711
55712 2007-10-26  Bruno Haible  <bruno@clisp.org>
55713
55714         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55715         strerror returned the empty string. Needed on HP-UX 11.00.
55716
55717 2007-10-24  Micah Cowan  <micah@cowan.name>
55718
55719         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55720         * build-aux/bootstrap: Remove support for now-unnecessary option,
55721         --cvs-user, and envvars CVS_USER, CVS_RSH.
55722
55723 2007-10-24  Jim Meyering  <meyering@redhat.com>
55724
55725         Avoid diagnostics from sha1sum when there is no cached checksum.
55726         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55727         if the po.s1 file hasn't been created yet.
55728
55729         * build-aux/bootstrap: Sync from coreutils:
55730         2007-10-24  Jim Meyering  <meyering@redhat.com>
55731         Get gnulib from the git repository, not from an obsolete cvs one.
55732         * build-aux/bootstrap: Suggestion from Micah Cowan.
55733         2007-10-04  Jim Meyering  <jim@meyering.net>
55734         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55735         (update_po_files): Work also when there are no .po files in po/.
55736
55737 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55738
55739         * README: Append ".git" to git and cg examples.
55740         Problem reported by Benoit Sigoure.
55741
55742 2007-10-23  Micah Cowan  <micah@cowan.name>
55743
55744         * users.txt: Add wget.
55745
55746 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55747
55748         Fix linking of some unistdio tests on FreeBSD.
55749         * modules/unistdio/u16-vsnprintf-tests
55750         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55751         * modules/unistdio/u16-vsprintf-tests
55752         (test_u16_vsnprintf1_LDADD): Likewise.
55753         * modules/unistdio/u32-vsnprintf-tests
55754         (test_u32_vsnprintf1_LDADD): Likewise.
55755         * modules/unistdio/u32-vsprintf-tests
55756         (test_u32_vsprintf1_LDADD): Likewise.
55757         * modules/unistdio/u8-vsnprintf-tests
55758         (test_u8_vsnprintf1_LDADD): Likewise.
55759         * modules/unistdio/u8-vsprintf-tests
55760         (test_u8_vsprintf1_LDADD): Likewise.
55761         * modules/unistdio/ulc-vsnprintf-tests
55762         (test_ulc_vsnprintf1_LDADD): Likewise.
55763         * modules/unistdio/ulc-vsprintf-tests
55764         (test_ulc_vsprintf1_LDADD): Likewise.
55765
55766         Fix linking of some uniconv tests on FreeBSD.
55767         * modules/uniconv/u16-conv-from-enc-tests
55768         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55769         * modules/uniconv/u16-conv-to-enc-tests
55770         (test_u16_conv_to_enc_LDADD): Likewise.
55771         * modules/uniconv/u16-strconv-from-enc-tests
55772         (test_u16_strconv_from_enc_LDADD): Likewise.
55773         * modules/uniconv/u16-strconv-to-enc-tests
55774         (test_u16_strconv_to_enc_LDADD): Likewise.
55775         * modules/uniconv/u32-conv-from-enc-tests
55776         (test_u32_conv_from_enc_LDADD): Likewise.
55777         * modules/uniconv/u32-conv-to-enc-tests
55778         (test_u32_conv_to_enc_LDADD): Likewise.
55779         * modules/uniconv/u32-strconv-from-enc-tests
55780         (test_u32_strconv_from_enc_LDADD): Likewise.
55781         * modules/uniconv/u32-strconv-to-enc-tests
55782         (test_u32_strconv_to_enc_LDADD): Likewise.
55783         * modules/uniconv/u8-conv-from-enc-tests
55784         (test_u8_conv_from_enc_LDADD): Likewise.
55785         * modules/uniconv/u8-conv-to-enc-tests
55786         (test_u8_conv_to_enc_LDADD): Likewise.
55787         * modules/uniconv/u8-strconv-from-enc-tests
55788         (test_u8_strconv_from_enc_LDADD): Likewise.
55789         * modules/uniconv/u8-strconv-to-enc-tests
55790         (test_u8_strconv_to_enc_LDADD): Likewise.
55791
55792 2007-10-22  Bruno Haible  <bruno@clisp.org>
55793
55794         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55795         size.
55796
55797 2007-10-22  Eric Blake  <ebb9@byu.net>
55798
55799         Tweak x*printf documentation.
55800         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55801         variable name and comments.
55802         Suggested by Bruno Haible.
55803
55804 2007-10-22  Bruno Haible  <bruno@clisp.org>
55805
55806         * lib/acl.c (copy_acl): Fix file name in comment.
55807
55808 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55809
55810         Fix Tru64 problem with stdbool.h.
55811         * lib/stdbool.in.h (false, true):
55812         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55813         Don't declare as an enum in this situation; it runs afoul of Tru64.
55814         Problem reported by Steven M. Schweda in
55815         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55816
55817 2007-10-22  Eric Blake  <ebb9@byu.net>
55818
55819         Also wrap vf?printf.
55820         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55821         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55822         (xvprintf, xvfprintf): New functions.
55823
55824 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55825
55826         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55827         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55828
55829         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55830         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55831
55832 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55833
55834         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55835         by Bruno Haible.
55836
55837 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55838
55839         * lib/getloadavg.c
55840         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55841         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55842
55843         * tests/test-i-ring.c: Work for C89.
55844
55845 2007-10-22  Bruno Haible  <bruno@clisp.org>
55846
55847         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55848         -1u, in preprocessor expression, so that we don't test for the bug
55849         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55850         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55851
55852 2007-10-22  Eric Blake  <ebb9@byu.net>
55853
55854         * tests/test-yesno.sh: Silence stderr during test.
55855
55856 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55857
55858         * modules/crypto/gc-camellia: New file.
55859
55860         * m4/gc-camellia.m4: New file.
55861
55862         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55863
55864         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55865
55866 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55867
55868         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55869         --help to stdout.  Reported by sms@antinode.org (Steven
55870         M. Schweda).
55871
55872 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55873
55874         * users.txt: Fix link to libksba.
55875
55876 2007-10-21  Ben Pfaff  <blp@gnu.org>
55877
55878         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55879         round.c roundf implementation that depends on floorf and ceilf to
55880         be tested unconditionally.
55881
55882 2007-10-21  Ben Pfaff  <blp@gnu.org>
55883
55884         * m4/check-libm-func.m4: Removed.
55885         * m4/check-math-lib.m4: New file.
55886         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55887         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55888         definition and lack of AC_LIBOBJ([roundf]).
55889         * m4/roundl.m4: Ditto, and similarly for roundl.
55890         * modules/round: Reference new m4 file.
55891         * modules/roundf: Ditto.
55892         * modules/roundl: Ditto.
55893         * tests/test-round2.c (main): Use ROUND instead of round.
55894         Bug report from Bruno Haible.
55895
55896 2007-10-21  Bruno Haible  <bruno@clisp.org>
55897
55898         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55899         context.
55900
55901 2007-10-21  Bruno Haible  <bruno@clisp.org>
55902
55903         * tests/test-wcwidth.c (main): Allow negative result for some control
55904         characters.
55905
55906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55907         Needed on OSF/1 5.1.
55908
55909 2007-10-21  Bruno Haible  <bruno@clisp.org>
55910
55911         * tests/test-floorf1.c: Include isnanf.h.
55912         (main): Use isnanf() instead of isnan().
55913         * tests/test-ceilf1.c: Include isnanf.h.
55914         (main): Use isnanf() instead of isnan().
55915         * tests/test-truncf1.c: Include isnanf.h.
55916         (main): Use isnanf() instead of isnan().
55917         * tests/test-roundf1.c: Include isnanf.h.
55918         (main): Use isnanf() instead of isnan().
55919
55920 2007-10-21  Eric Blake  <ebb9@byu.net>
55921
55922         * users.txt: Update URL for m4.
55923
55924 2007-10-21  Bruno Haible  <bruno@clisp.org>
55925
55926         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55927
55928 2007-10-21  Bruno Haible  <bruno@clisp.org>
55929
55930         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55931         Git's management files if the CVS files are not present.
55932
55933 2007-10-20  Bruno Haible  <bruno@clisp.org>
55934
55935         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55936         gcc-3.4.x.
55937
55938 2007-10-20  Ben Pfaff  <blp@gnu.org>
55939
55940         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55941         implementations.
55942         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55943         * lib/round.c: New file.
55944         * lib/roundf.c: New file.
55945         * lib/roundl.c: New file.
55946         * m4/round.m4: New file.
55947         * m4/roundf.m4: New file.
55948         * m4/roundl.m4: New file.
55949         * m4/check-libm-func-m4: New file.
55950         * modules/math: Replace round, roundf, roundl related @VARS@ in
55951         math.in.h.
55952         * modules/round: New file.
55953         * modules/round-tests: New file.
55954         * modules/roundf: New file.
55955         * modules/roundf-tests: New file.
55956         * modules/roundl: New file.
55957         * modules/roundl-tests: New file.
55958         * tests/test-round1.c: New file.
55959         * tests/test-round2.c: New file.
55960         * tests/test-roundf1.c: New file.
55961         * tests/test-roundf2.c: New file.
55962         * tests/test-roundl.c: New file.
55963         * doc/functions/round.texi: Mention round module.
55964         * doc/functions/roundf.texi: Mention roundf module.
55965         * doc/functions/roundl.texi: Mention roundl module.
55966         * MODULES.html.sh: Mention new modules.
55967         Thanks to Bruno Haible for suggestions.
55968
55969 2007-10-20  Jim Meyering  <meyering@redhat.com>
55970
55971         * lib/xprintf.c: Include <config.h> unconditionally.
55972
55973         Change xprintf's license to GPL.
55974         * modules/xprintf (License): s/LGPL/GPL/, since this module
55975         depends on modules (exit and exitfail) which are GPL.
55976         Suggestion from Bruno Haible.
55977
55978         xprintf fixes.
55979         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55980         Use a clearer diagnostic.
55981         Patch from Bruno Haible.
55982
55983 2007-10-20  Bruno Haible  <bruno@clisp.org>
55984
55985         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55986         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55987         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55988
55989 2007-10-20  Bruno Haible  <bruno@clisp.org>
55990
55991         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55992         precision in the comparison result > x - 1 or similar.
55993         * tests/test-ceilf2.c (correct_result_p): Likewise.
55994         * tests/test-truncf2.c (correct_result_p): Likewise.
55995         * tests/test-trunc2.c (correct_result_p): Likewise.
55996         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55997
55998 2007-10-20  Bruno Haible  <bruno@clisp.org>
55999
56000         * modules/ceil: New file.
56001         * m4/ceil.m4: New file.
56002         * doc/functions/ceil.texi: Mention the 'ceil' module.
56003
56004 2007-10-20  Bruno Haible  <bruno@clisp.org>
56005
56006         * modules/floor: New file.
56007         * m4/floor.m4: New file.
56008         * doc/functions/floor.texi: Mention the 'floor' module.
56009
56010 2007-10-20  Bruno Haible  <bruno@clisp.org>
56011
56012         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56013         of %a.
56014         * modules/floorf-tests (Depends-on): Likewise.
56015         * modules/truncf-tests (Depends-on): Likewise.
56016         * modules/trunc-tests (Depends-on): Likewise.
56017         Reported by Ben Pfaff.
56018
56019 2007-10-19  Jim Meyering  <meyering@redhat.com>
56020
56021         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56022         Don't bother testing specific errno values.  Just test ferror.
56023
56024         New module: xprintf
56025         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56026
56027 2007-10-19  Bruno Haible  <bruno@clisp.org>
56028
56029         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56030         syntax.
56031         * modules/javaexec (Makefile.am): Likewise.
56032         * modules/relocatable-prog (Makefile.am): Likewise.
56033         Suggested by Jim Meyering.
56034
56035 2007-10-18  Bruno Haible  <bruno@clisp.org>
56036
56037         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56038         Reported by Jim Meyering.
56039
56040 2007-10-18  Eric Blake  <ebb9@byu.net>
56041
56042         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56043
56044 2007-10-18  Bruno Haible  <bruno@clisp.org>
56045
56046         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56047         the format string into writable memory. Needed in Fortify conditions.
56048
56049 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56050             Bruno Haible  <bruno@clisp.org>
56051
56052         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56053         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56054         * modules/trim (Depends-on): Add mbchar.
56055         (configure.ac): Add gl_FUNC_MBRTOWC.
56056         (Makefile.am): Augment lib_SOURCES.
56057
56058 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56059
56060         Modify glob.c to use fstatat and dirfd, to simplify it.
56061         Suggested by Eric Blake.
56062         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56063         Don't include <stdbool.h>; not used.
56064         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56065         (link_exists_p): Simplify implementation, since we can now assume
56066         dirfd and fstatat.
56067         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56068
56069 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56070
56071         * gnulib-tool (func_get_dependencies): Fix sed script to
56072         match only tests.
56073
56074 2007-10-17  Bruno Haible  <bruno@clisp.org>
56075
56076         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56077         allow locale names without encoding suffix.
56078         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56079         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56080
56081 2007-10-16  Bruno Haible  <bruno@clisp.org>
56082
56083         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56084         * lib/getgroups.c (getgroups): Likewise.
56085         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56086
56087 2007-10-16  Bruno Haible  <bruno@clisp.org>
56088
56089         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56090         * modules/malloc-posix (License): Likewise.
56091         * modules/realloc-posix (License): Likewise.
56092         * modules/calloc-posix (License): Likewise.
56093         * modules/intprops (License): Change from GPL to LGPL, with
56094         Paul Eggert's approval.
56095
56096 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56097
56098         Merge glibc changes into lib/glob.c.
56099
56100         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56101         2007-10-15 04:59:03 UTC.  Here are the changes:
56102
56103         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56104
56105         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56106
56107         * lib/glob.c: Add some branch prediction throughout.
56108
56109         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56110
56111         [BZ #5103]
56112         * lib/glob.c (glob): Recognize patterns starting \/.
56113
56114         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56115
56116         [BZ #3996]
56117         * lib/glob.c (attribute_hidden): Define if not defined.
56118         (glob): Unescape dirname, filename or username when needed and not
56119         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56120         is NULL.  Handle unescaped [ in pattern without closing ].
56121         Don't pass GLOB_CHECK down to recursive glob for directories.
56122         (__glob_pattern_type): New function.
56123         (__glob_pattern_p): Implement using __glob_pattern_type.
56124         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56125         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56126         Remove unreachable code.
56127
56128         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56129
56130         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56131         explain why there are no leaks.
56132
56133         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56134
56135         [BZ #3253]
56136         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56137         time, rather allocate increasingly bigger arrays of pointers, if
56138         possible with alloca, if too large with malloc.
56139
56140 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56141
56142         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56143         Problem reported by H.Merijn Brand in
56144         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56145         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56146         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56147
56148 2007-10-15  Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56151         with explicit rpl_ prefix.
56152         * lib/fopen.c (fopen): Likewise.
56153         * lib/freopen.c (freopen): Likewise.
56154         * lib/iconv.c (iconv): Likewise.
56155         * lib/iconv_close.c (iconv_close): Likewise.
56156
56157 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56158
56159         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56160
56161 2007-10-15  Bruno Haible  <bruno@clisp.org>
56162
56163         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56164         <stddef.h> instead of <stdlib.h> since we only need NULL.
56165         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56166
56167 2007-10-15  Bruno Haible  <bruno@clisp.org>
56168
56169         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56170         Replace paragraph talking about LIBOBJS.
56171         Reported by Colin Watson <cjwatson@debian.org>.
56172
56173 2007-10-15  Bruno Haible  <bruno@clisp.org>
56174
56175         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56176         <stdlib.h> before using NULL.
56177
56178 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56179
56180         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56181         Reported by Albert Chin <china@thewrittenword.com>.
56182
56183 2007-10-14  Bruno Haible  <bruno@clisp.org>
56184
56185         * modules/iconv_open-utf-tests: New file.
56186         * tests/test-iconv-utf.c: New file.
56187
56188         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56189         * modules/iconv_open-utf: New file.
56190         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56191         (iconv, iconv_close): New declarations.
56192         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56193         be defined.
56194         (iconv_open): Add special handling of conversion between UTF-8 and
56195         UTF-{16,32}{BE,LE}.
56196         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56197         * lib/iconv_close.c: New file.
56198         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56199         gl_FUNC_ICONV_OPEN.
56200         (gl_FUNC_ICONV_OPEN): Use it.
56201         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56202         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56203         and REPLACE_ICONV_UTF.
56204         * modules/iconv_open (Depends-on): Add c-strcase.
56205         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56206         ICONV_CONST.
56207         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56208
56209 2007-10-13  Albert Chin  <china@thewrittenword.com>
56210             Bruno Haible  <bruno@clisp.org>
56211
56212         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56213         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56214
56215 2007-10-13  Bruno Haible  <bruno@clisp.org>
56216
56217         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56218         defined, use the ISO C99 inline semantics.
56219         * lib/argp.h (ARGP_EI): Likewise.
56220
56221 2007-10-13  Bruno Haible  <bruno@clisp.org>
56222
56223         Handle 'inline' change in gcc 4.3.0.
56224         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56225         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56226         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56227         argp_fmtstream_point): Disable 'extern' declaration if the function
56228         definition is going to be provided inline.
56229         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56230         semantics, not the ISO C99 inline semantics.
56231         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56232         'extern' declaration if the function definition is going to be provided
56233         inline.
56234         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56235         the GNU C inline semantics, not the ISO C99 inline semantics. With
56236         GCC 4.2, avoid a warning.
56237
56238 2007-10-13  Bruno Haible  <bruno@clisp.org>
56239
56240         * lib/freading.h (freading): Enable the use of __freading for
56241         glibc >= 2.7.
56242         * lib/freading.c (freading): Likewise.
56243
56244 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56245
56246         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56247         "warning: C99 inline functions are not supported; using GNU89".
56248
56249 2007-10-12  Bruno Haible  <bruno@clisp.org>
56250
56251         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56252         of 2.
56253         * tests/test-ceilf2.c: New file.
56254         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56255
56256         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56257         * modules/ceilf-tests: Update.
56258
56259 2007-10-12  Bruno Haible  <bruno@clisp.org>
56260
56261         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56262         of 2.
56263         * tests/test-floorf2.c: New file.
56264         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56265
56266         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56267         * modules/floorf-tests: Update.
56268
56269 2007-10-12  Bruno Haible  <bruno@clisp.org>
56270
56271         * tests/test-trunc2.c: New file.
56272         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56273
56274         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56275         * modules/trunc-tests: Update.
56276
56277 2007-10-12  Bruno Haible  <bruno@clisp.org>
56278
56279         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56280         of 2.
56281         * tests/test-truncf2.c: New file.
56282         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56283
56284         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56285         * modules/truncf-tests: Update.
56286
56287 2007-10-11  Eric Blake  <ebb9@byu.net>
56288
56289         Don't claim strerror is broken on Interix.
56290         * doc/functions/strerror.texi (strerror): Known broken systems are
56291         now Solaris 8, and not Interix.
56292         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56293         Interix on cross-compile.
56294         Reported by Martin Koeppe in
56295         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56296
56297 2007-10-11  Bruno Haible  <bruno@clisp.org>
56298
56299         * modules/i-ring-tests: New file.
56300         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56301         instead of assert.
56302
56303 2007-10-11  Bruno Haible  <bruno@clisp.org>
56304
56305         * modules/filenamecat-tests: New file.
56306         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56307         * lib/filenamecat.c: Remove test code.
56308
56309 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56310
56311         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56312
56313         * lib/strerror.c: Include <string.h> always, to test interface,
56314         and to remove the need for the dummy.
56315         Include intprops.h to compute width instead of doing it ourselves
56316         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56317         (strerror): Define it to return NULL if there's no system strerror.
56318         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56319         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56320         ancient pre-strerror Unix systems well any more.  Saying "unknown
56321         system error" is enough.
56322         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56323         simpler strerror.c implementation.
56324         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56325         Simplify the tests to reflect the simpler strerror implementation.
56326         * modules/strerror (Depends-on): Add intprops.
56327
56328 2007-10-09  Eric Blake  <ebb9@byu.net>
56329
56330         Silence test-fpending.
56331         * modules/fpending-tests (Files): Add wrapper script.
56332         * tests/test-fpending.sh: New file.
56333
56334 2007-10-09  Bruno Haible  <bruno@clisp.org>
56335
56336         * MODULES.html.sh (func_module): Don't create a hyperlink for
56337         function names like 'printf_frexp'.
56338         (Misc): Add crc, memxor.
56339         (Characteristics of floating types): New section.
56340         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56341         isnanf-nolibm, signbit, trunc, truncf, truncl.
56342         (Enhancements for ISO C 99 functions): New subsection Input/output.
56343         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56344         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56345         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56346         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56347         (Enhancements for POSIX:2001 functions): Add chdir-long.
56348         (File system functions): Add areadlink, chdir-safer, read-file.
56349         Remove cycle-check.
56350         (File system as inode set): New section.
56351         (Date and time): Add gethrxtime.
56352         (Multithreading): Add openmp.
56353         (Internationalization functions): Add localename.
56354         (Unicode string functions): Add unistr/u*-mbsnlen.
56355         (Support for maintaining and releasing projects): Add git-version-gen.
56356         (Lone files): Remove directories.
56357
56358 2007-10-08  Ben Pfaff  <blp@gnu.org>
56359
56360         * lib/xmalloca.h: Fix typo in comment.
56361
56362 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56363
56364         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56365         when avoiding problems with integer overflow.  Use a portable test
56366         instead.
56367
56368 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56369
56370         * modules/dummy (License): Change to LGPLv2+.
56371         * modules/float (License): Likewise
56372         * modules/realloc (License): Likewise
56373         * modules/stdlib (License): Likewise
56374
56375 2007-10-07  Bruno Haible  <bruno@clisp.org>
56376
56377         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56378         * floor.c (TWO_MANT_DIG): Likewise.
56379         * ceil.c (TWO_MANT_DIG): Likewise.
56380         Reported by Ben Pfaff.
56381
56382 2007-10-07  Bruno Haible  <bruno@clisp.org>
56383
56384         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56385         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56386         * lib/frexp.c (FUNC): Likewise.
56387         * lib/printf-frexp.h (printf_frexp): Likewise.
56388         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56389         * lib/printf-frexp.c (FUNC): Likewise.
56390         Suggested by Jim Meyering.
56391
56392 2007-10-07  Jim Meyering  <meyering@redhat.com>
56393
56394         Make xnanosleep's integer overflow test more robust.
56395         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56396         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56397
56398 2007-10-07  Bruno Haible  <bruno@clisp.org>
56399
56400         * NEWS: Mention the license change.
56401
56402         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56403         abbreviations in the modules files.
56404
56405         Change copyright notice from GPLv2+ to GPLv3+.
56406         * README: Change copyright notice.
56407         * MODULES.html.sh: Likewise.
56408         * build-aux/bootstrap.conf: Likewise.
56409         * build-aux/config.libpath: Likewise.
56410         * build-aux/csharpcomp.sh.in: Likewise.
56411         * build-aux/csharpexec.sh.in: Likewise.
56412         * build-aux/install-reloc: Likewise.
56413         * build-aux/javacomp.sh.in: Likewise.
56414         * build-aux/javaexec.sh.in: Likewise.
56415         * build-aux/ldd.sh.in: Likewise.
56416         * build-aux/reloc-ldflags: Likewise.
56417         * build-aux/relocatable.sh.in: Likewise.
56418         * build-aux/x-to-1.in: Likewise.
56419         * check-module: Likewise.
56420         * config/srclistvars.sh: Likewise.
56421         * gnulib-tool: Likewise.
56422         * lib/acl-internal.h: Likewise.
56423         * lib/acl.c: Likewise.
56424         * lib/acl.h: Likewise.
56425         * lib/acl_entries.c: Likewise.
56426         * lib/areadlink-with-size.c: Likewise.
56427         * lib/areadlink.c: Likewise.
56428         * lib/areadlink.h: Likewise.
56429         * lib/argmatch.c: Likewise.
56430         * lib/argmatch.h: Likewise.
56431         * lib/argp-ba.c: Likewise.
56432         * lib/argp-eexst.c: Likewise.
56433         * lib/argp-fmtstream.c: Likewise.
56434         * lib/argp-fmtstream.h: Likewise.
56435         * lib/argp-fs-xinl.c: Likewise.
56436         * lib/argp-help.c: Likewise.
56437         * lib/argp-namefrob.h: Likewise.
56438         * lib/argp-parse.c: Likewise.
56439         * lib/argp-pin.c: Likewise.
56440         * lib/argp-pv.c: Likewise.
56441         * lib/argp-pvh.c: Likewise.
56442         * lib/argp-xinl.c: Likewise.
56443         * lib/argp.h: Likewise.
56444         * lib/at-func.c: Likewise.
56445         * lib/atanl.c: Likewise.
56446         * lib/backupfile.c: Likewise.
56447         * lib/backupfile.h: Likewise.
56448         * lib/basename.c: Likewise.
56449         * lib/binary-io.h: Likewise.
56450         * lib/byteswap.in.h: Likewise.
56451         * lib/c-stack.c: Likewise.
56452         * lib/c-stack.h: Likewise.
56453         * lib/c-strcasestr.c: Likewise.
56454         * lib/c-strcasestr.h: Likewise.
56455         * lib/c-strstr.c: Likewise.
56456         * lib/c-strstr.h: Likewise.
56457         * lib/c-strtod.c: Likewise.
56458         * lib/calloc.c: Likewise.
56459         * lib/canon-host.c: Likewise.
56460         * lib/canon-host.h: Likewise.
56461         * lib/canonicalize-lgpl.c: Likewise.
56462         * lib/canonicalize.c: Likewise.
56463         * lib/canonicalize.h: Likewise.
56464         * lib/ceil.c: Likewise.
56465         * lib/ceilf.c: Likewise.
56466         * lib/ceill.c: Likewise.
56467         * lib/chdir-long.c: Likewise.
56468         * lib/chdir-long.h: Likewise.
56469         * lib/chdir-safer.c: Likewise.
56470         * lib/chdir-safer.h: Likewise.
56471         * lib/chown.c: Likewise.
56472         * lib/classpath.c: Likewise.
56473         * lib/classpath.h: Likewise.
56474         * lib/clean-temp.c: Likewise.
56475         * lib/clean-temp.h: Likewise.
56476         * lib/cloexec.c: Likewise.
56477         * lib/close-stream.c: Likewise.
56478         * lib/closein.c: Likewise.
56479         * lib/closein.h: Likewise.
56480         * lib/closeout.c: Likewise.
56481         * lib/closeout.h: Likewise.
56482         * lib/concat-filename.c: Likewise.
56483         * lib/copy-file.c: Likewise.
56484         * lib/copy-file.h: Likewise.
56485         * lib/count-one-bits.h: Likewise.
56486         * lib/crc.c: Likewise.
56487         * lib/crc.h: Likewise.
56488         * lib/creat-safer.c: Likewise.
56489         * lib/csharpcomp.c: Likewise.
56490         * lib/csharpcomp.h: Likewise.
56491         * lib/csharpexec.c: Likewise.
56492         * lib/csharpexec.h: Likewise.
56493         * lib/cycle-check.c: Likewise.
56494         * lib/cycle-check.h: Likewise.
56495         * lib/diacrit.c: Likewise.
56496         * lib/diacrit.h: Likewise.
56497         * lib/diffseq.h: Likewise.
56498         * lib/dirchownmod.c: Likewise.
56499         * lib/dirent.in.h: Likewise.
56500         * lib/dirfd.c: Likewise.
56501         * lib/dirfd.h: Likewise.
56502         * lib/dirname.c: Likewise.
56503         * lib/dirname.h: Likewise.
56504         * lib/dummy.c: Likewise.
56505         * lib/dup-safer.c: Likewise.
56506         * lib/dup2.c: Likewise.
56507         * lib/eealloc.h: Likewise.
56508         * lib/error.c: Likewise.
56509         * lib/error.h: Likewise.
56510         * lib/euidaccess.c: Likewise.
56511         * lib/exclude.c: Likewise.
56512         * lib/exclude.h: Likewise.
56513         * lib/execute.c: Likewise.
56514         * lib/execute.h: Likewise.
56515         * lib/exitfail.c: Likewise.
56516         * lib/exitfail.h: Likewise.
56517         * lib/expl.c: Likewise.
56518         * lib/fatal-signal.c: Likewise.
56519         * lib/fatal-signal.h: Likewise.
56520         * lib/fbufmode.c: Likewise.
56521         * lib/fbufmode.h: Likewise.
56522         * lib/fchdir.c: Likewise.
56523         * lib/fchmodat.c: Likewise.
56524         * lib/fchownat.c: Likewise.
56525         * lib/fcntl--.h: Likewise.
56526         * lib/fcntl-safer.h: Likewise.
56527         * lib/fcntl.in.h: Likewise.
56528         * lib/fd-safer.c: Likewise.
56529         * lib/fflush.c: Likewise.
56530         * lib/file-has-acl.c: Likewise.
56531         * lib/file-set.c: Likewise.
56532         * lib/file-type.c: Likewise.
56533         * lib/file-type.h: Likewise.
56534         * lib/fileblocks.c: Likewise.
56535         * lib/filemode.c: Likewise.
56536         * lib/filemode.h: Likewise.
56537         * lib/filename.h: Likewise.
56538         * lib/filenamecat.c: Likewise.
56539         * lib/filenamecat.h: Likewise.
56540         * lib/findprog.c: Likewise.
56541         * lib/findprog.h: Likewise.
56542         * lib/float.in.h: Likewise.
56543         * lib/floor.c: Likewise.
56544         * lib/floorf.c: Likewise.
56545         * lib/floorl.c: Likewise.
56546         * lib/fopen-safer.c: Likewise.
56547         * lib/fopen.c: Likewise.
56548         * lib/fpending.c: Likewise.
56549         * lib/fpending.h: Likewise.
56550         * lib/fprintf.c: Likewise.
56551         * lib/fprintftime.h: Likewise.
56552         * lib/fpucw.h: Likewise.
56553         * lib/fpurge.c: Likewise.
56554         * lib/fpurge.h: Likewise.
56555         * lib/freadable.c: Likewise.
56556         * lib/freadable.h: Likewise.
56557         * lib/freadahead.c: Likewise.
56558         * lib/freadahead.h: Likewise.
56559         * lib/freading.c: Likewise.
56560         * lib/freading.h: Likewise.
56561         * lib/free.c: Likewise.
56562         * lib/freopen.c: Likewise.
56563         * lib/frexp.c: Likewise.
56564         * lib/frexpl.c: Likewise.
56565         * lib/fseek.c: Likewise.
56566         * lib/fseterr.c: Likewise.
56567         * lib/fseterr.h: Likewise.
56568         * lib/fstatat.c: Likewise.
56569         * lib/fstrcmp.c: Likewise.
56570         * lib/fstrcmp.h: Likewise.
56571         * lib/fsusage.c: Likewise.
56572         * lib/fsusage.h: Likewise.
56573         * lib/ftell.c: Likewise.
56574         * lib/ftello.c: Likewise.
56575         * lib/fts-cycle.c: Likewise.
56576         * lib/fts.c: Likewise.
56577         * lib/fts_.h: Likewise.
56578         * lib/full-read.c: Likewise.
56579         * lib/full-read.h: Likewise.
56580         * lib/full-write.c: Likewise.
56581         * lib/full-write.h: Likewise.
56582         * lib/fwritable.c: Likewise.
56583         * lib/fwritable.h: Likewise.
56584         * lib/fwriteerror.c: Likewise.
56585         * lib/fwriteerror.h: Likewise.
56586         * lib/fwriting.c: Likewise.
56587         * lib/fwriting.h: Likewise.
56588         * lib/gcd.c: Likewise.
56589         * lib/gcd.h: Likewise.
56590         * lib/getcwd.c: Likewise.
56591         * lib/getdate.h: Likewise.
56592         * lib/getdate.y: Likewise.
56593         * lib/getdomainname.c: Likewise.
56594         * lib/getdomainname.h: Likewise.
56595         * lib/getgroups.c: Likewise.
56596         * lib/gethostname.c: Likewise.
56597         * lib/gethrxtime.c: Likewise.
56598         * lib/gethrxtime.h: Likewise.
56599         * lib/getloadavg.c: Likewise.
56600         * lib/getndelim2.c: Likewise.
56601         * lib/getndelim2.h: Likewise.
56602         * lib/getnline.c: Likewise.
56603         * lib/getnline.h: Likewise.
56604         * lib/getopt.c: Likewise.
56605         * lib/getopt.in.h: Likewise.
56606         * lib/getopt1.c: Likewise.
56607         * lib/getopt_int.h: Likewise.
56608         * lib/getpagesize.h: Likewise.
56609         * lib/getsubopt.c: Likewise.
56610         * lib/gettime.c: Likewise.
56611         * lib/getugroups.c: Likewise.
56612         * lib/getugroups.h: Likewise.
56613         * lib/getusershell.c: Likewise.
56614         * lib/gl_anyavltree_list1.h: Likewise.
56615         * lib/gl_anyavltree_list2.h: Likewise.
56616         * lib/gl_anyhash_list1.h: Likewise.
56617         * lib/gl_anyhash_list2.h: Likewise.
56618         * lib/gl_anylinked_list1.h: Likewise.
56619         * lib/gl_anylinked_list2.h: Likewise.
56620         * lib/gl_anyrbtree_list1.h: Likewise.
56621         * lib/gl_anyrbtree_list2.h: Likewise.
56622         * lib/gl_anytree_list1.h: Likewise.
56623         * lib/gl_anytree_list2.h: Likewise.
56624         * lib/gl_anytree_oset.h: Likewise.
56625         * lib/gl_anytreehash_list1.h: Likewise.
56626         * lib/gl_anytreehash_list2.h: Likewise.
56627         * lib/gl_array_list.c: Likewise.
56628         * lib/gl_array_list.h: Likewise.
56629         * lib/gl_array_oset.c: Likewise.
56630         * lib/gl_array_oset.h: Likewise.
56631         * lib/gl_avltree_list.c: Likewise.
56632         * lib/gl_avltree_list.h: Likewise.
56633         * lib/gl_avltree_oset.c: Likewise.
56634         * lib/gl_avltree_oset.h: Likewise.
56635         * lib/gl_avltreehash_list.c: Likewise.
56636         * lib/gl_avltreehash_list.h: Likewise.
56637         * lib/gl_carray_list.c: Likewise.
56638         * lib/gl_carray_list.h: Likewise.
56639         * lib/gl_linked_list.c: Likewise.
56640         * lib/gl_linked_list.h: Likewise.
56641         * lib/gl_linkedhash_list.c: Likewise.
56642         * lib/gl_linkedhash_list.h: Likewise.
56643         * lib/gl_list.c: Likewise.
56644         * lib/gl_list.h: Likewise.
56645         * lib/gl_oset.c: Likewise.
56646         * lib/gl_oset.h: Likewise.
56647         * lib/gl_rbtree_list.c: Likewise.
56648         * lib/gl_rbtree_list.h: Likewise.
56649         * lib/gl_rbtree_oset.c: Likewise.
56650         * lib/gl_rbtree_oset.h: Likewise.
56651         * lib/gl_rbtreehash_list.c: Likewise.
56652         * lib/gl_rbtreehash_list.h: Likewise.
56653         * lib/gl_sublist.c: Likewise.
56654         * lib/gl_sublist.h: Likewise.
56655         * lib/group-member.c: Likewise.
56656         * lib/group-member.h: Likewise.
56657         * lib/hard-locale.c: Likewise.
56658         * lib/hard-locale.h: Likewise.
56659         * lib/hash-pjw.c: Likewise.
56660         * lib/hash-pjw.h: Likewise.
56661         * lib/hash-triple.c: Likewise.
56662         * lib/hash.c: Likewise.
56663         * lib/hash.h: Likewise.
56664         * lib/human.c: Likewise.
56665         * lib/human.h: Likewise.
56666         * lib/i-ring.c: Likewise.
56667         * lib/i-ring.h: Likewise.
56668         * lib/idcache.c: Likewise.
56669         * lib/imaxabs.c: Likewise.
56670         * lib/imaxdiv.c: Likewise.
56671         * lib/inet_pton.c: Likewise.
56672         * lib/inet_pton.h: Likewise.
56673         * lib/intprops.h: Likewise.
56674         * lib/inttostr.c: Likewise.
56675         * lib/inttostr.h: Likewise.
56676         * lib/inttypes.in.h: Likewise.
56677         * lib/isapipe.c: Likewise.
56678         * lib/isdir.c: Likewise.
56679         * lib/isnan.c: Likewise.
56680         * lib/isnan.h: Likewise.
56681         * lib/isnanf.c: Likewise.
56682         * lib/isnanf.h: Likewise.
56683         * lib/isnanl-nolibm.h: Likewise.
56684         * lib/isnanl.c: Likewise.
56685         * lib/isnanl.h: Likewise.
56686         * lib/javacomp.c: Likewise.
56687         * lib/javacomp.h: Likewise.
56688         * lib/javaexec.c: Likewise.
56689         * lib/javaexec.h: Likewise.
56690         * lib/javaversion.c: Likewise.
56691         * lib/javaversion.h: Likewise.
56692         * lib/javaversion.java: Likewise.
56693         * lib/lbrkprop.h: Likewise.
56694         * lib/lchmod.h: Likewise.
56695         * lib/lchown.c: Likewise.
56696         * lib/ldexpl.c: Likewise.
56697         * lib/linebreak.c: Likewise.
56698         * lib/linebreak.h: Likewise.
56699         * lib/linebuffer.c: Likewise.
56700         * lib/linebuffer.h: Likewise.
56701         * lib/locale.in.h: Likewise.
56702         * lib/logl.c: Likewise.
56703         * lib/long-options.c: Likewise.
56704         * lib/long-options.h: Likewise.
56705         * lib/lstat.c: Likewise.
56706         * lib/lstat.h: Likewise.
56707         * lib/math.in.h: Likewise.
56708         * lib/mbchar.c: Likewise.
56709         * lib/mbchar.h: Likewise.
56710         * lib/mbfile.h: Likewise.
56711         * lib/mbiter.h: Likewise.
56712         * lib/mbscasecmp.c: Likewise.
56713         * lib/mbscasestr.c: Likewise.
56714         * lib/mbschr.c: Likewise.
56715         * lib/mbscspn.c: Likewise.
56716         * lib/mbslen.c: Likewise.
56717         * lib/mbsncasecmp.c: Likewise.
56718         * lib/mbsnlen.c: Likewise.
56719         * lib/mbspbrk.c: Likewise.
56720         * lib/mbspcasecmp.c: Likewise.
56721         * lib/mbsrchr.c: Likewise.
56722         * lib/mbssep.c: Likewise.
56723         * lib/mbsspn.c: Likewise.
56724         * lib/mbsstr.c: Likewise.
56725         * lib/mbstok_r.c: Likewise.
56726         * lib/mbswidth.c: Likewise.
56727         * lib/mbswidth.h: Likewise.
56728         * lib/mbuiter.h: Likewise.
56729         * lib/memcasecmp.c: Likewise.
56730         * lib/memcasecmp.h: Likewise.
56731         * lib/memchr.c: Likewise.
56732         * lib/memcmp.c: Likewise.
56733         * lib/memcoll.c: Likewise.
56734         * lib/memcoll.h: Likewise.
56735         * lib/memcpy.c: Likewise.
56736         * lib/memrchr.c: Likewise.
56737         * lib/mkancesdirs.c: Likewise.
56738         * lib/mkdir-p.c: Likewise.
56739         * lib/mkdir-p.h: Likewise.
56740         * lib/mkdir.c: Likewise.
56741         * lib/mkdirat.c: Likewise.
56742         * lib/mkdtemp.c: Likewise.
56743         * lib/mkstemp-safer.c: Likewise.
56744         * lib/mkstemp.c: Likewise.
56745         * lib/modechange.c: Likewise.
56746         * lib/modechange.h: Likewise.
56747         * lib/mountlist.c: Likewise.
56748         * lib/mountlist.h: Likewise.
56749         * lib/mpsort.c: Likewise.
56750         * lib/nanosleep.c: Likewise.
56751         * lib/obstack.c: Likewise.
56752         * lib/obstack.h: Likewise.
56753         * lib/open-safer.c: Likewise.
56754         * lib/open.c: Likewise.
56755         * lib/openat-die.c: Likewise.
56756         * lib/openat-priv.h: Likewise.
56757         * lib/openat-proc.c: Likewise.
56758         * lib/openat.c: Likewise.
56759         * lib/openat.h: Likewise.
56760         * lib/pagealign_alloc.c: Likewise.
56761         * lib/pagealign_alloc.h: Likewise.
56762         * lib/physmem.c: Likewise.
56763         * lib/physmem.h: Likewise.
56764         * lib/pipe-safer.c: Likewise.
56765         * lib/pipe.c: Likewise.
56766         * lib/pipe.h: Likewise.
56767         * lib/posixtm.c: Likewise.
56768         * lib/posixtm.h: Likewise.
56769         * lib/posixver.c: Likewise.
56770         * lib/printf-frexp.c: Likewise.
56771         * lib/printf-frexp.h: Likewise.
56772         * lib/printf-frexpl.c: Likewise.
56773         * lib/printf-frexpl.h: Likewise.
56774         * lib/printf.c: Likewise.
56775         * lib/progname.c: Likewise.
56776         * lib/progname.h: Likewise.
56777         * lib/progreloc.c: Likewise.
56778         * lib/putenv.c: Likewise.
56779         * lib/quote.c: Likewise.
56780         * lib/quote.h: Likewise.
56781         * lib/quotearg.c: Likewise.
56782         * lib/quotearg.h: Likewise.
56783         * lib/raise.c: Likewise.
56784         * lib/readline.c: Likewise.
56785         * lib/readline.h: Likewise.
56786         * lib/readlink.c: Likewise.
56787         * lib/readtokens.c: Likewise.
56788         * lib/readtokens.h: Likewise.
56789         * lib/readtokens0.c: Likewise.
56790         * lib/readtokens0.h: Likewise.
56791         * lib/readutmp.c: Likewise.
56792         * lib/readutmp.h: Likewise.
56793         * lib/realloc.c: Likewise.
56794         * lib/relocwrapper.c: Likewise.
56795         * lib/rename-dest-slash.c: Likewise.
56796         * lib/rename.c: Likewise.
56797         * lib/rmdir.c: Likewise.
56798         * lib/rpmatch.c: Likewise.
56799         * lib/safe-read.c: Likewise.
56800         * lib/safe-read.h: Likewise.
56801         * lib/safe-write.c: Likewise.
56802         * lib/safe-write.h: Likewise.
56803         * lib/same-inode.h: Likewise.
56804         * lib/same.c: Likewise.
56805         * lib/same.h: Likewise.
56806         * lib/save-cwd.c: Likewise.
56807         * lib/save-cwd.h: Likewise.
56808         * lib/savedir.c: Likewise.
56809         * lib/savedir.h: Likewise.
56810         * lib/savewd.c: Likewise.
56811         * lib/savewd.h: Likewise.
56812         * lib/search.in.h: Likewise.
56813         * lib/setenv.c: Likewise.
56814         * lib/setenv.h: Likewise.
56815         * lib/settime.c: Likewise.
56816         * lib/sh-quote.c: Likewise.
56817         * lib/sh-quote.h: Likewise.
56818         * lib/sig2str.c: Likewise.
56819         * lib/sig2str.h: Likewise.
56820         * lib/signal.in.h: Likewise.
56821         * lib/signbitd.c: Likewise.
56822         * lib/signbitf.c: Likewise.
56823         * lib/signbitl.c: Likewise.
56824         * lib/sigprocmask.c: Likewise.
56825         * lib/sincosl.c: Likewise.
56826         * lib/sleep.c: Likewise.
56827         * lib/sprintf.c: Likewise.
56828         * lib/sqrtl.c: Likewise.
56829         * lib/stat-time.h: Likewise.
56830         * lib/stdio--.h: Likewise.
56831         * lib/stdio-safer.h: Likewise.
56832         * lib/stdlib--.h: Likewise.
56833         * lib/stdlib-safer.h: Likewise.
56834         * lib/stdlib.in.h: Likewise.
56835         * lib/stpcpy.c: Likewise.
56836         * lib/stpncpy.c: Likewise.
56837         * lib/strchrnul.c: Likewise.
56838         * lib/strcspn.c: Likewise.
56839         * lib/strerror.c: Likewise.
56840         * lib/strftime.c: Likewise.
56841         * lib/strftime.h: Likewise.
56842         * lib/striconveh.c: Likewise.
56843         * lib/striconveh.h: Likewise.
56844         * lib/striconveha.c: Likewise.
56845         * lib/striconveha.h: Likewise.
56846         * lib/stripslash.c: Likewise.
56847         * lib/strnlen1.c: Likewise.
56848         * lib/strnlen1.h: Likewise.
56849         * lib/strtod.c: Likewise.
56850         * lib/strtoimax.c: Likewise.
56851         * lib/strtok_r.c: Likewise.
56852         * lib/strtol.c: Likewise.
56853         * lib/strtoll.c: Likewise.
56854         * lib/strtoul.c: Likewise.
56855         * lib/strtoull.c: Likewise.
56856         * lib/sysexits.in.h: Likewise.
56857         * lib/tempname.c: Likewise.
56858         * lib/tempname.h: Likewise.
56859         * lib/timespec.h: Likewise.
56860         * lib/tls.c: Likewise.
56861         * lib/tls.h: Likewise.
56862         * lib/tmpdir.c: Likewise.
56863         * lib/tmpdir.h: Likewise.
56864         * lib/tmpfile-safer.c: Likewise.
56865         * lib/tmpfile.c: Likewise.
56866         * lib/trigl.c: Likewise.
56867         * lib/trigl.h: Likewise.
56868         * lib/trim.c: Likewise.
56869         * lib/trim.h: Likewise.
56870         * lib/trunc.c: Likewise.
56871         * lib/truncf.c: Likewise.
56872         * lib/truncl.c: Likewise.
56873         * lib/tsearch.c: Likewise.
56874         * lib/unicodeio.c: Likewise.
56875         * lib/unicodeio.h: Likewise.
56876         * lib/unistd--.h: Likewise.
56877         * lib/unistd-safer.h: Likewise.
56878         * lib/unistdio/ulc-fprintf.c: Likewise.
56879         * lib/unistdio/ulc-vfprintf.c: Likewise.
56880         * lib/unlinkdir.c: Likewise.
56881         * lib/unlinkdir.h: Likewise.
56882         * lib/unlocked-io.h: Likewise.
56883         * lib/unsetenv.c: Likewise.
56884         * lib/userspec.c: Likewise.
56885         * lib/utime.c: Likewise.
56886         * lib/utimecmp.c: Likewise.
56887         * lib/utimecmp.h: Likewise.
56888         * lib/utimens.c: Likewise.
56889         * lib/verify.h: Likewise.
56890         * lib/verror.c: Likewise.
56891         * lib/verror.h: Likewise.
56892         * lib/version-etc-fsf.c: Likewise.
56893         * lib/version-etc.c: Likewise.
56894         * lib/version-etc.h: Likewise.
56895         * lib/vfprintf.c: Likewise.
56896         * lib/vprintf.c: Likewise.
56897         * lib/vsprintf.c: Likewise.
56898         * lib/w32spawn.h: Likewise.
56899         * lib/wait-process.c: Likewise.
56900         * lib/wait-process.h: Likewise.
56901         * lib/wcwidth.c: Likewise.
56902         * lib/write-any-file.c: Likewise.
56903         * lib/xalloc-die.c: Likewise.
56904         * lib/xalloc.h: Likewise.
56905         * lib/xasprintf.c: Likewise.
56906         * lib/xgetcwd.c: Likewise.
56907         * lib/xgetcwd.h: Likewise.
56908         * lib/xgetdomainname.c: Likewise.
56909         * lib/xgetdomainname.h: Likewise.
56910         * lib/xgethostname.c: Likewise.
56911         * lib/xmalloc.c: Likewise.
56912         * lib/xmalloca.c: Likewise.
56913         * lib/xmalloca.h: Likewise.
56914         * lib/xmemcoll.c: Likewise.
56915         * lib/xnanosleep.c: Likewise.
56916         * lib/xreadlink.c: Likewise.
56917         * lib/xreadlink.h: Likewise.
56918         * lib/xsetenv.c: Likewise.
56919         * lib/xsetenv.h: Likewise.
56920         * lib/xstriconv.c: Likewise.
56921         * lib/xstriconv.h: Likewise.
56922         * lib/xstrndup.c: Likewise.
56923         * lib/xstrndup.h: Likewise.
56924         * lib/xstrtod.c: Likewise.
56925         * lib/xstrtod.h: Likewise.
56926         * lib/xstrtol-error.c: Likewise.
56927         * lib/xstrtol.c: Likewise.
56928         * lib/xstrtol.h: Likewise.
56929         * lib/xtime.h: Likewise.
56930         * lib/xvasprintf.c: Likewise.
56931         * lib/xvasprintf.h: Likewise.
56932         * lib/yesno.c: Likewise.
56933         * lib/yesno.h: Likewise.
56934         * posix-modules: Likewise.
56935         * tests/test-alloca-opt.c: Likewise.
56936         * tests/test-arcfour.c: Likewise.
56937         * tests/test-arctwo.c: Likewise.
56938         * tests/test-argmatch.c: Likewise.
56939         * tests/test-argp-2.sh: Likewise.
56940         * tests/test-argp.c: Likewise.
56941         * tests/test-arpa_inet.c: Likewise.
56942         * tests/test-array_list.c: Likewise.
56943         * tests/test-array_oset.c: Likewise.
56944         * tests/test-atexit.c: Likewise.
56945         * tests/test-avltree_list.c: Likewise.
56946         * tests/test-avltree_oset.c: Likewise.
56947         * tests/test-avltreehash_list.c: Likewise.
56948         * tests/test-base64.c: Likewise.
56949         * tests/test-binary-io.c: Likewise.
56950         * tests/test-byteswap.c: Likewise.
56951         * tests/test-c-ctype.c: Likewise.
56952         * tests/test-c-strcasecmp.c: Likewise.
56953         * tests/test-c-strcasestr.c: Likewise.
56954         * tests/test-c-strncasecmp.c: Likewise.
56955         * tests/test-c-strstr.c: Likewise.
56956         * tests/test-canonicalize-lgpl.c: Likewise.
56957         * tests/test-canonicalize.c: Likewise.
56958         * tests/test-carray_list.c: Likewise.
56959         * tests/test-ceilf.c: Likewise.
56960         * tests/test-ceill.c: Likewise.
56961         * tests/test-count-one-bits.c: Likewise.
56962         * tests/test-crc.c: Likewise.
56963         * tests/test-dirname.c: Likewise.
56964         * tests/test-fbufmode.c: Likewise.
56965         * tests/test-fcntl.c: Likewise.
56966         * tests/test-fflush.c: Likewise.
56967         * tests/test-floorf.c: Likewise.
56968         * tests/test-floorl.c: Likewise.
56969         * tests/test-fopen.c: Likewise.
56970         * tests/test-fprintf-posix.c: Likewise.
56971         * tests/test-fprintf-posix.h: Likewise.
56972         * tests/test-fpurge.c: Likewise.
56973         * tests/test-freadable.c: Likewise.
56974         * tests/test-freadahead.c: Likewise.
56975         * tests/test-freading.c: Likewise.
56976         * tests/test-freopen.c: Likewise.
56977         * tests/test-frexp.c: Likewise.
56978         * tests/test-frexpl.c: Likewise.
56979         * tests/test-fseek.c: Likewise.
56980         * tests/test-fseeko.c: Likewise.
56981         * tests/test-fseterr.c: Likewise.
56982         * tests/test-fstrcmp.c: Likewise.
56983         * tests/test-ftell.c: Likewise.
56984         * tests/test-ftello.c: Likewise.
56985         * tests/test-fwritable.c: Likewise.
56986         * tests/test-fwriting.c: Likewise.
56987         * tests/test-getaddrinfo.c: Likewise.
56988         * tests/test-getpass.c: Likewise.
56989         * tests/test-gettimeofday.c: Likewise.
56990         * tests/test-hmac-md5.c: Likewise.
56991         * tests/test-hmac-sha1.c: Likewise.
56992         * tests/test-iconv.c: Likewise.
56993         * tests/test-iconvme.c: Likewise.
56994         * tests/test-inttypes.c: Likewise.
56995         * tests/test-isnan.c: Likewise.
56996         * tests/test-isnanf.c: Likewise.
56997         * tests/test-isnanl-nolibm.c: Likewise.
56998         * tests/test-isnanl.c: Likewise.
56999         * tests/test-isnanl.h: Likewise.
57000         * tests/test-ldexpl.c: Likewise.
57001         * tests/test-linked_list.c: Likewise.
57002         * tests/test-linkedhash_list.c: Likewise.
57003         * tests/test-locale.c: Likewise.
57004         * tests/test-localename.c: Likewise.
57005         * tests/test-lock.c: Likewise.
57006         * tests/test-lseek.c: Likewise.
57007         * tests/test-malloca.c: Likewise.
57008         * tests/test-math.c: Likewise.
57009         * tests/test-mbscasecmp.c: Likewise.
57010         * tests/test-mbscasestr1.c: Likewise.
57011         * tests/test-mbscasestr2.c: Likewise.
57012         * tests/test-mbscasestr3.c: Likewise.
57013         * tests/test-mbscasestr4.c: Likewise.
57014         * tests/test-mbschr.c: Likewise.
57015         * tests/test-mbscspn.c: Likewise.
57016         * tests/test-mbsncasecmp.c: Likewise.
57017         * tests/test-mbspbrk.c: Likewise.
57018         * tests/test-mbspcasecmp.c: Likewise.
57019         * tests/test-mbsrchr.c: Likewise.
57020         * tests/test-mbsspn.c: Likewise.
57021         * tests/test-mbsstr1.c: Likewise.
57022         * tests/test-mbsstr2.c: Likewise.
57023         * tests/test-mbsstr3.c: Likewise.
57024         * tests/test-md5.c: Likewise.
57025         * tests/test-memmem.c: Likewise.
57026         * tests/test-netinet_in.c: Likewise.
57027         * tests/test-open.c: Likewise.
57028         * tests/test-printf-frexp.c: Likewise.
57029         * tests/test-printf-frexpl.c: Likewise.
57030         * tests/test-printf-posix.c: Likewise.
57031         * tests/test-printf-posix.h: Likewise.
57032         * tests/test-rbtree_list.c: Likewise.
57033         * tests/test-rbtree_oset.c: Likewise.
57034         * tests/test-rbtreehash_list.c: Likewise.
57035         * tests/test-read-file.c: Likewise.
57036         * tests/test-rijndael.c: Likewise.
57037         * tests/test-search.c: Likewise.
57038         * tests/test-signbit.c: Likewise.
57039         * tests/test-sleep.c: Likewise.
57040         * tests/test-snprintf-posix.c: Likewise.
57041         * tests/test-snprintf-posix.h: Likewise.
57042         * tests/test-snprintf.c: Likewise.
57043         * tests/test-sprintf-posix.c: Likewise.
57044         * tests/test-sprintf-posix.h: Likewise.
57045         * tests/test-stat-time.c: Likewise.
57046         * tests/test-stdbool.c: Likewise.
57047         * tests/test-stdint.c: Likewise.
57048         * tests/test-stdio.c: Likewise.
57049         * tests/test-stdlib.c: Likewise.
57050         * tests/test-stpncpy.c: Likewise.
57051         * tests/test-strcasestr.c: Likewise.
57052         * tests/test-striconv.c: Likewise.
57053         * tests/test-striconveh.c: Likewise.
57054         * tests/test-striconveha.c: Likewise.
57055         * tests/test-string.c: Likewise.
57056         * tests/test-sys_select.c: Likewise.
57057         * tests/test-sys_socket.c: Likewise.
57058         * tests/test-sys_stat.c: Likewise.
57059         * tests/test-sys_time.c: Likewise.
57060         * tests/test-sysexits.c: Likewise.
57061         * tests/test-time.c: Likewise.
57062         * tests/test-tls.c: Likewise.
57063         * tests/test-trunc.c: Likewise.
57064         * tests/test-truncf.c: Likewise.
57065         * tests/test-truncl.c: Likewise.
57066         * tests/test-unistd.c: Likewise.
57067         * tests/test-vasnprintf-posix.c: Likewise.
57068         * tests/test-vasnprintf-posix2.c: Likewise.
57069         * tests/test-vasnprintf.c: Likewise.
57070         * tests/test-vasprintf-posix.c: Likewise.
57071         * tests/test-vasprintf.c: Likewise.
57072         * tests/test-verify.c: Likewise.
57073         * tests/test-vfprintf-posix.c: Likewise.
57074         * tests/test-vprintf-posix.c: Likewise.
57075         * tests/test-vsnprintf-posix.c: Likewise.
57076         * tests/test-vsnprintf.c: Likewise.
57077         * tests/test-vsprintf-posix.c: Likewise.
57078         * tests/test-wchar.c: Likewise.
57079         * tests/test-wctype.c: Likewise.
57080         * tests/test-wcwidth.c: Likewise.
57081         * tests/test-xstrtol.c: Likewise.
57082         * tests/test-xvasprintf.c: Likewise.
57083         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57084         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57085         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57086         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57087         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57088         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57089         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57090         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57091         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57092         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57093         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57094         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57095         * tests/uniname/test-uninames.c: Likewise.
57096         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57097         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57098         * tests/unistdio/test-u16-printf1.h: Likewise.
57099         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57100         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57101         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57102         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57103         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57104         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57105         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57106         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57107         * tests/unistdio/test-u32-printf1.h: Likewise.
57108         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57109         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57110         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57111         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57112         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57113         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57114         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57115         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57116         * tests/unistdio/test-u8-printf1.h: Likewise.
57117         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57118         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57119         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57120         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57121         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57122         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57123         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57124         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57125         * tests/unistdio/test-ulc-printf1.h: Likewise.
57126         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57127         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57128         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57129         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57130         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57131         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57132         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57133         * tests/uniwidth/test-u16-width.c: Likewise.
57134         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57135         * tests/uniwidth/test-u32-width.c: Likewise.
57136         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57137         * tests/uniwidth/test-u8-width.c: Likewise.
57138         * tests/uniwidth/test-uc_width.c: Likewise.
57139         * config/srclist-update: Likewise.
57140         (fixlicense): Update to GPLv3+.
57141
57142         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57143         * tests/test-tsearch.c: Change copyright notice.
57144
57145         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57146         * lib/c-strcaseeq.h: Change copyright notice.
57147         * lib/streq.h: Likewise.
57148         * lib/uniconv.h: Likewise.
57149         * lib/uniconv/u-conv-from-enc.h: Likewise.
57150         * lib/uniconv/u-conv-to-enc.h: Likewise.
57151         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57152         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57153         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57154         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57155         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57156         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57157         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57158         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57159         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57160         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57161         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57162         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57163         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57164         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57165         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57166         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57167         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57168         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57169         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57170         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57171         * lib/uniname.h: Likewise.
57172         * lib/uniname/uniname.c: Likewise.
57173         * lib/unistdio.h: Likewise.
57174         * lib/unistdio/u-asnprintf.h: Likewise.
57175         * lib/unistdio/u-asprintf.h: Likewise.
57176         * lib/unistdio/u-printf-args.c: Likewise.
57177         * lib/unistdio/u-printf-args.h: Likewise.
57178         * lib/unistdio/u-printf-parse.h: Likewise.
57179         * lib/unistdio/u-snprintf.h: Likewise.
57180         * lib/unistdio/u-sprintf.h: Likewise.
57181         * lib/unistdio/u-vasprintf.h: Likewise.
57182         * lib/unistdio/u-vsnprintf.h: Likewise.
57183         * lib/unistdio/u-vsprintf.h: Likewise.
57184         * lib/unistdio/u16-asnprintf.c: Likewise.
57185         * lib/unistdio/u16-asprintf.c: Likewise.
57186         * lib/unistdio/u16-printf-parse.c: Likewise.
57187         * lib/unistdio/u16-snprintf.c: Likewise.
57188         * lib/unistdio/u16-sprintf.c: Likewise.
57189         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57190         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57191         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57192         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57193         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57194         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57195         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57196         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57197         * lib/unistdio/u16-vasnprintf.c: Likewise.
57198         * lib/unistdio/u16-vasprintf.c: Likewise.
57199         * lib/unistdio/u16-vsnprintf.c: Likewise.
57200         * lib/unistdio/u16-vsprintf.c: Likewise.
57201         * lib/unistdio/u32-asnprintf.c: Likewise.
57202         * lib/unistdio/u32-asprintf.c: Likewise.
57203         * lib/unistdio/u32-printf-parse.c: Likewise.
57204         * lib/unistdio/u32-snprintf.c: Likewise.
57205         * lib/unistdio/u32-sprintf.c: Likewise.
57206         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57207         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57208         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57209         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57210         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57211         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57212         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57213         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57214         * lib/unistdio/u32-vasnprintf.c: Likewise.
57215         * lib/unistdio/u32-vasprintf.c: Likewise.
57216         * lib/unistdio/u32-vsnprintf.c: Likewise.
57217         * lib/unistdio/u32-vsprintf.c: Likewise.
57218         * lib/unistdio/u8-asnprintf.c: Likewise.
57219         * lib/unistdio/u8-asprintf.c: Likewise.
57220         * lib/unistdio/u8-printf-parse.c: Likewise.
57221         * lib/unistdio/u8-snprintf.c: Likewise.
57222         * lib/unistdio/u8-sprintf.c: Likewise.
57223         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57224         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57225         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57226         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57227         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57228         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57229         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57230         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57231         * lib/unistdio/u8-vasnprintf.c: Likewise.
57232         * lib/unistdio/u8-vasprintf.c: Likewise.
57233         * lib/unistdio/u8-vsnprintf.c: Likewise.
57234         * lib/unistdio/u8-vsprintf.c: Likewise.
57235         * lib/unistdio/ulc-asnprintf.c: Likewise.
57236         * lib/unistdio/ulc-asprintf.c: Likewise.
57237         * lib/unistdio/ulc-printf-parse.c: Likewise.
57238         * lib/unistdio/ulc-snprintf.c: Likewise.
57239         * lib/unistdio/ulc-sprintf.c: Likewise.
57240         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57241         * lib/unistdio/ulc-vasprintf.c: Likewise.
57242         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57243         * lib/unistdio/ulc-vsprintf.c: Likewise.
57244         * lib/unistr.h: Likewise.
57245         * lib/unistr/u-cpy-alloc.h: Likewise.
57246         * lib/unistr/u-cpy.h: Likewise.
57247         * lib/unistr/u-endswith.h: Likewise.
57248         * lib/unistr/u-move.h: Likewise.
57249         * lib/unistr/u-set.h: Likewise.
57250         * lib/unistr/u-startswith.h: Likewise.
57251         * lib/unistr/u-stpcpy.h: Likewise.
57252         * lib/unistr/u-stpncpy.h: Likewise.
57253         * lib/unistr/u-strcat.h: Likewise.
57254         * lib/unistr/u-strcpy.h: Likewise.
57255         * lib/unistr/u-strcspn.h: Likewise.
57256         * lib/unistr/u-strdup.h: Likewise.
57257         * lib/unistr/u-strlen.h: Likewise.
57258         * lib/unistr/u-strncat.h: Likewise.
57259         * lib/unistr/u-strncpy.h: Likewise.
57260         * lib/unistr/u-strnlen.h: Likewise.
57261         * lib/unistr/u-strpbrk.h: Likewise.
57262         * lib/unistr/u-strspn.h: Likewise.
57263         * lib/unistr/u-strstr.h: Likewise.
57264         * lib/unistr/u-strtok.h: Likewise.
57265         * lib/unistr/u16-check.c: Likewise.
57266         * lib/unistr/u16-chr.c: Likewise.
57267         * lib/unistr/u16-cmp.c: Likewise.
57268         * lib/unistr/u16-cpy-alloc.c: Likewise.
57269         * lib/unistr/u16-cpy.c: Likewise.
57270         * lib/unistr/u16-endswith.c: Likewise.
57271         * lib/unistr/u16-mblen.c: Likewise.
57272         * lib/unistr/u16-mbsnlen.c: Likewise.
57273         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57274         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57275         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57276         * lib/unistr/u16-mbtouc.c: Likewise.
57277         * lib/unistr/u16-mbtoucr.c: Likewise.
57278         * lib/unistr/u16-move.c: Likewise.
57279         * lib/unistr/u16-next.c: Likewise.
57280         * lib/unistr/u16-prev.c: Likewise.
57281         * lib/unistr/u16-set.c: Likewise.
57282         * lib/unistr/u16-startswith.c: Likewise.
57283         * lib/unistr/u16-stpcpy.c: Likewise.
57284         * lib/unistr/u16-stpncpy.c: Likewise.
57285         * lib/unistr/u16-strcat.c: Likewise.
57286         * lib/unistr/u16-strchr.c: Likewise.
57287         * lib/unistr/u16-strcmp.c: Likewise.
57288         * lib/unistr/u16-strcpy.c: Likewise.
57289         * lib/unistr/u16-strcspn.c: Likewise.
57290         * lib/unistr/u16-strdup.c: Likewise.
57291         * lib/unistr/u16-strlen.c: Likewise.
57292         * lib/unistr/u16-strmblen.c: Likewise.
57293         * lib/unistr/u16-strmbtouc.c: Likewise.
57294         * lib/unistr/u16-strncat.c: Likewise.
57295         * lib/unistr/u16-strncmp.c: Likewise.
57296         * lib/unistr/u16-strncpy.c: Likewise.
57297         * lib/unistr/u16-strnlen.c: Likewise.
57298         * lib/unistr/u16-strpbrk.c: Likewise.
57299         * lib/unistr/u16-strrchr.c: Likewise.
57300         * lib/unistr/u16-strspn.c: Likewise.
57301         * lib/unistr/u16-strstr.c: Likewise.
57302         * lib/unistr/u16-strtok.c: Likewise.
57303         * lib/unistr/u16-to-u32.c: Likewise.
57304         * lib/unistr/u16-to-u8.c: Likewise.
57305         * lib/unistr/u16-uctomb-aux.c: Likewise.
57306         * lib/unistr/u16-uctomb.c: Likewise.
57307         * lib/unistr/u32-check.c: Likewise.
57308         * lib/unistr/u32-chr.c: Likewise.
57309         * lib/unistr/u32-cmp.c: Likewise.
57310         * lib/unistr/u32-cpy-alloc.c: Likewise.
57311         * lib/unistr/u32-cpy.c: Likewise.
57312         * lib/unistr/u32-endswith.c: Likewise.
57313         * lib/unistr/u32-mblen.c: Likewise.
57314         * lib/unistr/u32-mbsnlen.c: Likewise.
57315         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57316         * lib/unistr/u32-mbtouc.c: Likewise.
57317         * lib/unistr/u32-mbtoucr.c: Likewise.
57318         * lib/unistr/u32-move.c: Likewise.
57319         * lib/unistr/u32-next.c: Likewise.
57320         * lib/unistr/u32-prev.c: Likewise.
57321         * lib/unistr/u32-set.c: Likewise.
57322         * lib/unistr/u32-startswith.c: Likewise.
57323         * lib/unistr/u32-stpcpy.c: Likewise.
57324         * lib/unistr/u32-stpncpy.c: Likewise.
57325         * lib/unistr/u32-strcat.c: Likewise.
57326         * lib/unistr/u32-strchr.c: Likewise.
57327         * lib/unistr/u32-strcmp.c: Likewise.
57328         * lib/unistr/u32-strcpy.c: Likewise.
57329         * lib/unistr/u32-strcspn.c: Likewise.
57330         * lib/unistr/u32-strdup.c: Likewise.
57331         * lib/unistr/u32-strlen.c: Likewise.
57332         * lib/unistr/u32-strmblen.c: Likewise.
57333         * lib/unistr/u32-strmbtouc.c: Likewise.
57334         * lib/unistr/u32-strncat.c: Likewise.
57335         * lib/unistr/u32-strncmp.c: Likewise.
57336         * lib/unistr/u32-strncpy.c: Likewise.
57337         * lib/unistr/u32-strnlen.c: Likewise.
57338         * lib/unistr/u32-strpbrk.c: Likewise.
57339         * lib/unistr/u32-strrchr.c: Likewise.
57340         * lib/unistr/u32-strspn.c: Likewise.
57341         * lib/unistr/u32-strstr.c: Likewise.
57342         * lib/unistr/u32-strtok.c: Likewise.
57343         * lib/unistr/u32-to-u16.c: Likewise.
57344         * lib/unistr/u32-to-u8.c: Likewise.
57345         * lib/unistr/u32-uctomb.c: Likewise.
57346         * lib/unistr/u8-check.c: Likewise.
57347         * lib/unistr/u8-chr.c: Likewise.
57348         * lib/unistr/u8-cmp.c: Likewise.
57349         * lib/unistr/u8-cpy-alloc.c: Likewise.
57350         * lib/unistr/u8-cpy.c: Likewise.
57351         * lib/unistr/u8-endswith.c: Likewise.
57352         * lib/unistr/u8-mblen.c: Likewise.
57353         * lib/unistr/u8-mbsnlen.c: Likewise.
57354         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57355         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57356         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57357         * lib/unistr/u8-mbtouc.c: Likewise.
57358         * lib/unistr/u8-mbtoucr.c: Likewise.
57359         * lib/unistr/u8-move.c: Likewise.
57360         * lib/unistr/u8-next.c: Likewise.
57361         * lib/unistr/u8-prev.c: Likewise.
57362         * lib/unistr/u8-set.c: Likewise.
57363         * lib/unistr/u8-startswith.c: Likewise.
57364         * lib/unistr/u8-stpcpy.c: Likewise.
57365         * lib/unistr/u8-stpncpy.c: Likewise.
57366         * lib/unistr/u8-strcat.c: Likewise.
57367         * lib/unistr/u8-strchr.c: Likewise.
57368         * lib/unistr/u8-strcmp.c: Likewise.
57369         * lib/unistr/u8-strcpy.c: Likewise.
57370         * lib/unistr/u8-strcspn.c: Likewise.
57371         * lib/unistr/u8-strdup.c: Likewise.
57372         * lib/unistr/u8-strlen.c: Likewise.
57373         * lib/unistr/u8-strmblen.c: Likewise.
57374         * lib/unistr/u8-strmbtouc.c: Likewise.
57375         * lib/unistr/u8-strncat.c: Likewise.
57376         * lib/unistr/u8-strncmp.c: Likewise.
57377         * lib/unistr/u8-strncpy.c: Likewise.
57378         * lib/unistr/u8-strnlen.c: Likewise.
57379         * lib/unistr/u8-strpbrk.c: Likewise.
57380         * lib/unistr/u8-strrchr.c: Likewise.
57381         * lib/unistr/u8-strspn.c: Likewise.
57382         * lib/unistr/u8-strstr.c: Likewise.
57383         * lib/unistr/u8-strtok.c: Likewise.
57384         * lib/unistr/u8-to-u16.c: Likewise.
57385         * lib/unistr/u8-to-u32.c: Likewise.
57386         * lib/unistr/u8-uctomb-aux.c: Likewise.
57387         * lib/unistr/u8-uctomb.c: Likewise.
57388         * lib/unitypes.h: Likewise.
57389         * lib/uniwidth.h: Likewise.
57390         * lib/uniwidth/cjk.h: Likewise.
57391         * lib/uniwidth/u16-strwidth.c: Likewise.
57392         * lib/uniwidth/u16-width.c: Likewise.
57393         * lib/uniwidth/u32-strwidth.c: Likewise.
57394         * lib/uniwidth/u32-width.c: Likewise.
57395         * lib/uniwidth/u8-strwidth.c: Likewise.
57396         * lib/uniwidth/u8-width.c: Likewise.
57397         * lib/uniwidth/width.c: Likewise.
57398
57399 2007-10-07  Bruno Haible  <bruno@clisp.org>
57400
57401         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57402         The file is still under LGPL (see modules/inttypes).
57403
57404 2007-10-06  Bruno Haible  <bruno@clisp.org>
57405
57406         * modules/trunc (Dependencies): Add 'extensions'.
57407         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57408         Reported by Ben Pfaff <blp@gnu.org>.
57409
57410 2007-10-06  Bruno Haible  <bruno@clisp.org>
57411
57412         * modules/freopen-tests: New file.
57413         * tests/test-freopen.c: New file.
57414
57415         * modules/fopen-tests: New file.
57416         * tests/test-fopen.c: New file.
57417
57418         * modules/fopen: New file.
57419         * lib/fopen.c: New file.
57420         * m4/fopen.m4: New file.
57421         * modules/freopen: New file.
57422         * lib/freopen.c: New file.
57423         * m4/freopen.m4: New file.
57424         * lib/stdio.in.h (fopen, freopen): New declarations.
57425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57426         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57427         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57428         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57429         * doc/functions/fopen.texi: Mention the 'fopen' module.
57430         * doc/functions/freopen.texi: Mention the 'freopen' module.
57431
57432 2007-10-06  Bruno Haible  <bruno@clisp.org>
57433
57434         * modules/open-tests: New file.
57435         * tests/test-open.c: New file.
57436
57437         * modules/open: New file.
57438         * lib/open.c: New file.
57439         * m4/open.m4: New file.
57440         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57441         lib/open.c does.
57442         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57443         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57444         macros.
57445         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57446         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57447         REPLACE_OPEN.
57448         * doc/functions/open.texi: Mention the 'open' module.
57449
57450 2007-10-04  Bruno Haible  <bruno@clisp.org>
57451
57452         * modules/ceill-tests: New file.
57453         * tests/test-ceill.c: New file.
57454
57455         * modules/ceill: New file.
57456         * lib/ceill.c: Replace entire file.
57457         * m4/ceill.m4: New file.
57458         * lib/math.in.h (ceill): Replace declaration.
57459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57460         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57461         * doc/functions/ceill.texi: Mention the 'ceill' module.
57462         * modules/mathl (Files): Remove lib/ceill.c.
57463         (Depends-on): Add ceill.
57464
57465 2007-10-04  Bruno Haible  <bruno@clisp.org>
57466
57467         * modules/ceilf-tests: New file.
57468         * tests/test-ceilf.c: New file.
57469
57470         * modules/ceilf: New file.
57471         * lib/ceil.c: New file.
57472         * lib/ceilf.c: New file.
57473         * m4/ceilf.m4: New file.
57474         * lib/math.in.h (ceilf): New declaration.
57475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57476         HAVE_DECL_CEILF.
57477         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57478         HAVE_DECL_CEILF.
57479         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57480
57481 2007-10-04  Bruno Haible  <bruno@clisp.org>
57482
57483         * modules/floorl-tests: New file.
57484         * tests/test-floorl.c: New file.
57485
57486         * modules/floorl: New file.
57487         * lib/floorl.c: Replace entire file.
57488         * m4/floorl.m4: New file.
57489         * lib/math.in.h (floorl): Replace declaration.
57490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57491         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57492         * doc/functions/floorl.texi: Mention the 'floorl' module.
57493         * modules/mathl (Files): Remove lib/floorl.c.
57494         (Depends-on): Add floorl.
57495
57496 2007-10-04  Bruno Haible  <bruno@clisp.org>
57497
57498         * modules/floorf-tests: New file.
57499         * tests/test-floorf.c: New file.
57500
57501         * modules/floorf: New file.
57502         * lib/floor.c: New file.
57503         * lib/floorf.c: New file.
57504         * m4/floorf.m4: New file.
57505         * lib/math.in.h (floorf): New declaration.
57506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57507         HAVE_DECL_FLOORF.
57508         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57509         HAVE_DECL_FLOORF.
57510         * doc/functions/floorf.texi: Mention the 'floorf' module.
57511
57512 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57513             Bruno Haible  <bruno@clisp.org>
57514
57515         Advertise for the Git server instead of the CVS server.
57516         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57517         repository instead of the CVS one.
57518         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57519         about all VCS systems generically.
57520         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57521
57522 2007-10-04  Bruno Haible  <bruno@clisp.org>
57523
57524         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57525         means.
57526         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57527
57528 2007-10-04  Bruno Haible  <bruno@clisp.org>
57529
57530         * modules/truncl-tests: New file.
57531         * tests/test-truncl.c: New file.
57532
57533         * modules/truncl: New file.
57534         * lib/truncl.c: New file.
57535         * m4/truncl.m4: New file.
57536         * lib/math.in.h (truncl): New declaration.
57537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57538         HAVE_DECL_TRUNCL.
57539         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57540         HAVE_DECL_TRUNCL.
57541         * doc/functions/truncl.texi: Mention the 'truncl' module.
57542
57543 2007-10-04  Bruno Haible  <bruno@clisp.org>
57544
57545         * modules/truncf-tests: New file.
57546         * tests/test-truncf.c: New file.
57547
57548         * modules/truncf: New file.
57549         * lib/trunc.c: Make paramerizable through USE_* macros.
57550         * lib/truncf.c: New file.
57551         * m4/truncf.m4: New file.
57552         * lib/math.in.h (truncf): New declaration.
57553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57554         HAVE_DECL_TRUNCF.
57555         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57556         HAVE_DECL_TRUNCF.
57557         * doc/functions/truncf.texi: Mention the 'truncf' module.
57558
57559 2007-10-03  Bruno Haible  <bruno@clisp.org>
57560
57561         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57562         augmentation also for tests modules.
57563         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57564         * modules/atexit-tests (Makefile.am): Likewise.
57565         * modules/binary-io-tests (Makefile.am): Likewise.
57566         * modules/c-strcase-tests (Makefile.am): Likewise.
57567         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57568         * modules/canonicalize-tests (Makefile.am): Likewise.
57569         * modules/closein-tests (Makefile.am): Likewise.
57570         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57571         * modules/freadahead-tests (Makefile.am): Likewise.
57572         * modules/fseek-tests (Makefile.am): Likewise.
57573         * modules/fseeko-tests (Makefile.am): Likewise.
57574         * modules/ftell-tests (Makefile.am): Likewise.
57575         * modules/ftello-tests (Makefile.am): Likewise.
57576         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57577         * modules/isnanl-tests (Makefile.am): Likewise.
57578         * modules/lseek-tests (Makefile.am): Likewise.
57579         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57580         * modules/mbscasestr-tests (Makefile.am): Likewise.
57581         * modules/mbschr-tests (Makefile.am): Likewise.
57582         * modules/mbscspn-tests (Makefile.am): Likewise.
57583         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57584         * modules/mbspbrk-tests (Makefile.am): Likewise.
57585         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57586         * modules/mbsrchr-tests (Makefile.am): Likewise.
57587         * modules/mbsspn-tests (Makefile.am): Likewise.
57588         * modules/mbsstr-tests (Makefile.am): Likewise.
57589         * modules/printf-posix-tests (Makefile.am): Likewise.
57590         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57591         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57592         * modules/tsearch-tests (Makefile.am): Likewise.
57593         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57594         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57595         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57596         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57597         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57598         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57599         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57600         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57601         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57602         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57603         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57604         * modules/xstrtol-tests (Makefile.am): Likewise.
57605         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57606         * modules/yesno-tests (Makefile.am): Likewise.
57607
57608 2007-10-03  Bruno Haible  <bruno@clisp.org>
57609
57610         * modules/trunc-tests: New file.
57611         * tests/test-trunc.c: New file.
57612
57613         * modules/trunc: New file.
57614         * lib/trunc.c: New file.
57615         * m4/trunc.m4: New file.
57616         * lib/math.in.h (trunc): New declaration.
57617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57618         HAVE_DECL_TRUNC.
57619         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57620         HAVE_DECL_TRUNC.
57621         * doc/functions/trunc.texi: Mention the 'trunc' module.
57622
57623 2007-10-03  Bruno Haible  <bruno@clisp.org>
57624
57625         * tests/test-fpending.c: New file, mostly copied
57626         from coreutils/lib/t-fpending.c.
57627         * modules/fpending-tests: New file.
57628
57629 2007-10-03  Bruno Haible  <bruno@clisp.org>
57630
57631         Port the stdio extensions to QNX (untested).
57632         * lib/fseterr.c (fseterr): Add support for QNX.
57633         * lib/fbufmode.c (fbufmode): Likewise.
57634         * lib/freadable.c (freadable): Likewise.
57635         * lib/fwritable.c (fwritable): Likewise.
57636         * lib/freading.c (freading): Likewise.
57637         * lib/fwriting.c (fwriting): Likewise.
57638         * lib/freadahead.c (freadahed): Likewise.
57639         * lib/fpurge.c (fpurge): Likewise.
57640         * lib/fseeko.c (rpl_fseeko): Likewise.
57641
57642 2007-10-03  Bruno Haible  <bruno@clisp.org>
57643             Jim Meyering  <jim@meyering.net>
57644             Eric Blake  <ebb9@byu.net>
57645
57646         * doc/relocatable.texi: Use @command instead of @program.
57647
57648 2007-10-02  Jim Meyering  <jim@meyering.net>
57649
57650         Perform one more "_.h" -> ".in.h" substitution.
57651         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57652         instead of unistd_.h here, too.
57653
57654 2007-10-01  Bruno Haible  <bruno@clisp.org>
57655
57656         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57657         Needed for the alloca-opt module.
57658
57659 2007-09-30  Bruno Haible  <bruno@clisp.org>
57660
57661         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57662         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57663         alloca_.h.
57664         * lib/argz.in.h: Renamed from lib/argz_.h.
57665         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57666         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57667         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57668         byteswap_.h.
57669         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57670         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57671         dirent_.h.
57672         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57673         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57674         fcntl_.h.
57675         * lib/float.in.h: Renamed from lib/float_.h.
57676         * modules/float (Files, Makefile.am): Use float.in.h instead of
57677         float_.h.
57678         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57679         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57680         fnmatch_.h.
57681         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57682         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57683         getopt_.h.
57684         * lib/glob.in.h: Renamed from lib/glob_.h.
57685         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57686         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57687         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57688         iconv_.h.
57689         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57690         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57691         inttypes_.h.
57692         * lib/locale.in.h: Renamed from lib/locale_.h.
57693         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57694         locale_.h.
57695         * lib/math.in.h: Renamed from lib/math_.h.
57696         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57697         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57698         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57699         of netinet_in_.h. Add dependency.
57700         * lib/poll.in.h: Renamed from lib/poll_.h.
57701         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57702         * lib/search.in.h: Renamed from lib/search_.h.
57703         * modules/search (Files, Makefile.am): Use search.in.h instead of
57704         search_.h.
57705         * lib/signal.in.h: Renamed from lib/signal_.h.
57706         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57707         _signal.h.
57708         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57709         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57710         stdbool_.h.
57711         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57712         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57713         stdint_.h.
57714         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57715         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57716         stdio_.h.
57717         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57718         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57719         stdlib_.h.
57720         * lib/string.in.h: Renamed from lib/string_.h.
57721         * modules/string (Files, Makefile.am): Use string.in.h instead of
57722         string_.h.
57723         * doc/gnulib-tool.texi (Initial import): Update.
57724         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57725         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57726         of sys_select_.h. Add dependency.
57727         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57728         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57729         of sys_socket_.h.
57730         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57731         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57732         sys_stat_.h.
57733         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57734         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57735         sys_time_.h.
57736         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57737         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57738         sysexits_.h.
57739         * lib/time.in.h: Renamed from lib/time_.h.
57740         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57741         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57742         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57743         unistd_.h.
57744         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57745         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57746         wchar_.h.
57747         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57748         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57749         wctype_.h.
57750         * build-aux/bootstrap (slurp): Update.
57751         * lib/.cppi-disable: Update.
57752
57753 2007-09-30  Bruno Haible  <bruno@clisp.org>
57754
57755         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57756         Needed on BeOS.
57757
57758 2007-09-30  Bruno Haible  <bruno@clisp.org>
57759
57760         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57761
57762 2007-09-29  Bruno Haible  <bruno@clisp.org>
57763
57764         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57765
57766 2007-09-29  Bruno Haible  <bruno@clisp.org>
57767
57768         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57769         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57770         * build-aux/install-reloc: Compile also areadlink.c.
57771         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57772
57773 2007-09-29  Bruno Haible  <bruno@clisp.org>
57774
57775         * gnulib-tool (func_emit_initmacro_done): Indentation.
57776
57777 2007-09-29  Bruno Haible  <bruno@clisp.org>
57778
57779         * README: Add CVS checkout update instructions.
57780         Info from Bob Proulx <bob@proulx.com>.
57781
57782 2007-09-28  Eric Blake  <ebb9@byu.net>
57783
57784         Provide move-if-change.
57785         * build-aux/move-if-change: New file, based on best practice
57786         rather than any canonical upstream location.
57787
57788 2007-09-28  Jim Meyering  <jim@meyering.net>
57789
57790         Fix canonicalize loop-detection corner case.
57791         Do not attempt to stat the symlink values stored via seen_triple.
57792         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57793         on linux-2.6.18, (but not 2.6.22).
57794         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57795         triple_compare.  The former compares dev,ino,filename, while the latter
57796         would actually stat dirname(filename) when dev and ino were equal.
57797         * lib/hash-triple.c: Install <string.h>.
57798         (STREQ): Define.
57799         (triple_compare_ino_str): New function.
57800         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57801
57802 2007-09-28  Eric Blake  <ebb9@byu.net>
57803
57804         Enforce that AC_REPLACE_FUNCS files exist.
57805         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57806         override check for typos.
57807
57808         Fix test-closein on Solaris 10.
57809         * tests/test-closein.c (main): Don't assume stdin can be inherited
57810         closed on all systems.
57811         * tests/test-closein.sh: Likewise.
57812         Reported by Piotr Tarnowski.
57813
57814 2007-09-28  Jim Meyering  <jim@meyering.net>
57815
57816         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57817
57818 2007-09-27  Jim Meyering  <jim@meyering.net>
57819
57820         canonicalize: Avoid a false-positive cycle failure.
57821         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57822         Sort.  Remove cycle-check.
57823         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57824         not cycle-check.h.
57825         (seen_triple): New function.
57826         (canonicalize_filename_mode): Use it instead of cycle-check.
57827         * tests/test-canonicalize.c: Add a test for this bug.
57828         * tests/test-canonicalize.sh: Set up and run the test.
57829
57830         New module, file-set, from coreutils.
57831         * modules/file-set: Define it.
57832         * lib/file-set.c, lib/file-set.h: Implement.
57833
57834         New module, hash-triple, from coreutils.
57835         * modules/hash-triple: Define it.
57836         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57837
57838 2007-09-25  Eric Blake  <ebb9@byu.net>
57839
57840         Fix strerror on Interix.
57841         * lib/string_.h (strerror): Declare replacement.
57842         * doc/functions/strerror.texi (strerror): Document the Interix
57843         shortcoming.
57844         * modules/string (Makefile.am): Support new hooks.
57845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57846         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57847         gl_FUNC_STRERROR_SEPARATE.
57848         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57849         * lib/strerror.c (rpl_strerror): Provide replacement.
57850         * modules/strerror (Depends-on): Add string.
57851         (configure.ac): Detect use of module.
57852         * tests/test-strerror.c: New file.
57853         * modules/strerror-tests: New test module.
57854         * modules/argp (Depends-on): Add strerror.
57855         * modules/error (Depends-on): Likewise.
57856         Reported by Martin Koeppe.
57857
57858 2007-09-24  Bruno Haible  <bruno@clisp.org>
57859
57860         * README: Update git instructions.
57861
57862 2007-09-24  Eric Blake  <ebb9@byu.net>
57863
57864         Revert fpending breakage from 2007-09-08.
57865         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57866         __fpending.c.
57867
57868 2007-09-24  Jim Meyering  <jim@meyering.net>
57869
57870         filenamecat.c: Add a test.
57871         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57872         showing how the function works when DIR is the empty string.
57873
57874 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57875
57876         * tests/test-canonicalize.sh: Turn on executable bit.
57877
57878 2007-09-19  Eric Blake  <ebb9@byu.net>
57879
57880         * README: Update CVS instructions.
57881
57882 2007-09-18  Bruno Haible  <bruno@clisp.org>
57883
57884         * modules/areadlink: New file.
57885         * lib/areadlink.h (areadlink): New declaration.
57886         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57887
57888 2007-09-17  Jim Meyering  <jim@meyering.net>
57889
57890         * lib/savewd.c (ESTALE) [!defined]: Define.
57891         Reported to be required on Interix by Martin Koeppe.
57892
57893 2007-09-17  Bruno Haible  <bruno@clisp.org>
57894
57895         * gnulib-tool (func_version): Use $version.
57896
57897 2007-09-16  Bruno Haible  <bruno@clisp.org>
57898
57899         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57900         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57901         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57902         Reported by Greg Schafer <gschafer@zip.com.au>.
57903
57904 2007-09-15  Bruno Haible  <bruno@clisp.org>
57905
57906         * gnulib-tool (sed): Try a little harder to make bash understand the
57907         alias.
57908         Reported by Bruce Korb <bruce.korb@gmail.com>.
57909
57910 2007-09-13  Eric Blake  <ebb9@byu.net>
57911
57912         * ChangeLog: Remove conflict markers.
57913
57914 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57915
57916         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57917         Reported by Bruno Haible <bruno@clisp.org>.
57918
57919 2007-09-12  Bruno Haible  <bruno@clisp.org>
57920
57921         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57922         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57923         is not defined.
57924
57925 2007-09-12  Eric Blake  <ebb9@byu.net>
57926
57927         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57928         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57929         Autoconf definition.
57930         * modules/euidaccess (Depends-on): Add extensions, for
57931         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57932         * modules/fnmatch (Depends-on): Likewise.
57933         * modules/getaddrinfo (Depends-on): Likewise.
57934         * modules/getdelim (Depends-on): Likewise.
57935         * modules/getline (Depends-on): Likewise.
57936         * modules/getsubopt (Depends-on): Likewise.
57937         * modules/gettext (Depends-on): Likewise.
57938         * modules/group-member (Depends-on): Likewise.
57939         * modules/mbchar (Depends-on): Likewise.
57940         * modules/memmem (Depends-on): Likewise.
57941         * modules/mempcpy (Depends-on): Likewise.
57942         * modules/memrchr (Depends-on): Likewise.
57943         * modules/pagealign_alloc (Depends-on): Likewise.
57944         * modules/readutmp (Depends-on): Likewise.
57945         * modules/stpcpy (Depends-on): Likewise.
57946         * modules/stpncpy (Depends-on): Likewise.
57947         * modules/strchrnul (Depends-on): Likewise.
57948         * modules/strndup (Depends-on): Likewise.
57949         * modules/strsep (Depends-on): Likewise.
57950         * modules/strverscmp (Depends-on): Likewise.
57951         * modules/vasprintf (Depends-on): Likewise.
57952         * modules/wcwidth (Depends-on): Likewise.
57953         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57954         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57955         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57956         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57957         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57958         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57959         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57960         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57961         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57962         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57963         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57964         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57965         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57966         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57967         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57968         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57969         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57970         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57971         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57972         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57973         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57974         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57975         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57976         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57977         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57978         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57979         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57980         so that lock.m4 can be used in gettext without extensions module.
57981
57982 2007-09-11  Bruno Haible  <bruno@clisp.org>
57983
57984         * m4/isc-posix.m4: Remove file.
57985         Suggested by Eric Blake.
57986
57987 2007-09-11  Eric Blake  <ebb9@byu.net>
57988
57989         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57990
57991 2007-09-10  Bruno Haible  <bruno@clisp.org>
57992
57993         * posix-modules: Fix typo in error message.
57994         Reported by Matt <mkraai@beckman.com>.
57995
57996 2007-09-09  Bruno Haible  <bruno@clisp.org>
57997
57998         * doc/functions/getdelim.texi: Update list of platforms lacking the
57999         function.
58000         * doc/functions/getline.texi: Likewise.
58001
58002 2007-09-09  Jim Meyering  <jim@meyering.net>
58003
58004         * lib/hash.c (hash_initialize): Detect calloc failure.
58005         Reported by Bruno Haible.
58006
58007 2007-09-09  Bruno Haible  <bruno@clisp.org>
58008
58009         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58010         malloc or realloc fails.
58011
58012 2007-09-09  Bruno Haible  <bruno@clisp.org>
58013
58014         * modules/getcwd (Depends-on): Add malloc-posix.
58015         * modules/glob (Depends-on): Likewise.
58016         * modules/putenv (Depends-on): Likewise.
58017         * modules/strdup (Depends-on): Likewise.
58018         * modules/getdelim (Depends-on): Add realloc-posix.
58019         * modules/read-file (Depends-on): Likewise.
58020
58021 2007-09-09  Bruno Haible  <bruno@clisp.org>
58022
58023         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58024         (gl_FUNC_MALLOC_POSIX): Require it.
58025         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58026         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58027         * modules/realloc (Files): Add m4/malloc.m4.
58028         * modules/calloc (Files): Likewise.
58029
58030 2007-09-09  Bruno Haible  <bruno@clisp.org>
58031
58032         * modules/malloc-posix: New file.
58033         * modules/malloc (Depends-on): Add malloc-posix.
58034         * lib/malloc.c: Include errno.h.
58035         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58036         and a POSIX-compatible malloc into a single function. Set ENOMEM
58037         when returning NULL.
58038         * m4/malloc.m4: New file.
58039         * doc/functions/malloc.texi: Mention the malloc-posix module.
58040         * lib/stdlib_.h (malloc): New declaration.
58041         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58042         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58043         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58044         and HAVE_MALLOC_POSIX.
58045
58046 2007-09-09  Bruno Haible  <bruno@clisp.org>
58047
58048         * modules/realloc-posix: New file.
58049         * modules/realloc (Depends-on): Add realloc-posix.
58050         * lib/realloc.c: Include errno.h.
58051         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58052         and a POSIX-compatible realloc into a single function. Set ENOMEM
58053         when returning NULL.
58054         * m4/realloc.m4: New file.
58055         * doc/functions/realloc.texi: Mention the realloc-posix module.
58056         * lib/stdlib_.h (realloc): New declaration.
58057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58058         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58059         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58060         and HAVE_REALLOC_POSIX.
58061
58062 2007-09-09  Bruno Haible  <bruno@clisp.org>
58063
58064         * modules/calloc-posix: New file.
58065         * modules/calloc (Depends-on): Add calloc-posix.
58066         * lib/calloc.c: Include errno.h.
58067         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58068         and a POSIX-compatible calloc into a single function. Set ENOMEM
58069         when returning NULL.
58070         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58071         * doc/functions/calloc.texi: Mention the calloc-posix module.
58072         * lib/stdlib_.h (calloc): New declaration.
58073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58074         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58075         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58076         and HAVE_CALLOC_POSIX.
58077
58078 2007-09-09  Bruno Haible  <bruno@clisp.org>
58079
58080         Allow for modules to show an arbitrary notice.
58081         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58082         * gnulib-tool: New option --extract-notice.
58083         (func_usage): Document it.
58084         (sed_extract_prog): Update.
58085         (func_get_notice): New function.
58086         (func_modules_notice): New function.
58087         (func_import, func_create_testdir): Invoke it.
58088         Suggested by Jim Meyering.
58089
58090 2007-09-09  Bruno Haible  <bruno@clisp.org>
58091
58092         * gnulib-tool: New options --verbose, --quiet.
58093         (func_usage): Document them.
58094         (verbose): New variable.
58095         (func_execute_command): New function.
58096         (func_import): Don't show the module list and the file list if
58097         $verbose < 0.
58098         (func_create_testdir): Likewise. Use func_execute_command.
58099         (func_create_megatestdir): Use func_execute_command.
58100
58101 2007-09-08  Bruno Haible  <bruno@clisp.org>
58102
58103         * gnulib-tool (func_import): Prefer rsync over wget when available,
58104         for fetching the PO files.
58105
58106 2007-09-08  Bruno Haible  <bruno@clisp.org>
58107
58108         * posix-modules: New file. Portions copied from gnulib-tool.
58109         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58110
58111 2007-09-08  Jim Meyering  <jim@meyering.net>
58112
58113         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58114         * lib/fpending.h: Rename from __fpending.h.
58115         * lib/fpending.c: Rename from __fpending.c.
58116         Include "fpending.h", not "__fpending.h".
58117         * lib/__fpending.h, lib/__fpending.c: Remove files.
58118         * modules/fpending (Files): Reflect new file names.
58119         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58120
58121 2007-09-08  Bruno Haible  <bruno@clisp.org>
58122
58123         * m4/inttypes-h.m4: Remove stub file.
58124
58125 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58126
58127         * doc/headers/stdint.texi: Discuss #include_next issue.
58128
58129 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58130
58131         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58132
58133 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58134
58135         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58136         in variable name.
58137
58138 2007-09-03  Jim Meyering  <jim@meyering.net>
58139
58140         New module: git-version-gen.
58141         * modules/git-version-gen: New file.
58142
58143         Import changes from coreutils for bootstrap script.
58144
58145         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58146
58147         bootstrap: uses rsync to download the .po files
58148         * build-aux/bootstrap (po_download_command_format): New global.
58149         (download_po_files): Use rsync.
58150         (update_po_files): Don't remove .po files after download,
58151         so future rsync runs can take advantage of the copies.
58152
58153         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58154
58155         Solve the unnecessary-.po-file-regeneration problem once and for all.
58156         * build-aux/bootstrap (download_po_files): New function, renamed from
58157         get_translations.  Now, downloads, but doesn't update LINGUAS.
58158         (update_po_files): New function.
58159
58160         bootstrap: Ignore more.
58161         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58162         uniwidth to e.g., lib/.gitignore.
58163         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58164
58165         * build-aux/bootstrap: New setting: vc_ignore.
58166         (insert_sorted_if_absent): Create $file if absent.
58167         Adapt to new, possibly empty, list: $vc_ignore.
58168
58169         bootstrap: generate more ignorable names
58170         * build-aux/bootstrap (slurp): When generating ignorable names,
58171         also map .sin to .sed, .gperf to .c, and .y to .c.
58172
58173 2007-09-03  Jim Meyering  <jim@meyering.net>
58174
58175         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58176         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58177
58178 2007-09-02  Bruno Haible  <bruno@clisp.org>
58179
58180         Fix mis-recognition of 'mcs' on QNX 6.
58181         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58182         output contains the string "Mono".
58183         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58184         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58185
58186 2007-09-01  Bruno Haible  <bruno@clisp.org>
58187
58188         Fix collision between uniwidth/* and linebreak modules.
58189         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58190         u32_width): Remove declarations.
58191         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58192         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58193         streq3, streq2, streq1, streq0): Remove functions.
58194         (STREQ): Remove macro.
58195         (is_cjk_encoding): Remove function.
58196         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58197         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58198         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58199         * NEWS: Document the change.
58200
58201 2007-09-01  Bruno Haible  <bruno@clisp.org>
58202
58203         * lib/streq.h: Add double-inclusion guard.
58204
58205 2007-09-01  Karl Berry  <karl@gnu.org>
58206
58207         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58208
58209 2007-08-28  Jim Meyering  <jim@meyering.net>
58210
58211         Rename mreadlink_with_size to areadlink_with_size.
58212         * NEWS: Document the change.
58213         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58214         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58215         * lib/mreadlink.h: Rename this to...
58216         * lib/areadlink.h: ...this.
58217         * modules/mreadlink-with-size: Rename this to...
58218         * modules/areadlink-with-size: ...this.
58219         * lib/canonicalize.c: Reflect the renaming.
58220         * modules/canonicalize: Likewise.
58221
58222 2007-08-26  Bruno Haible  <bruno@clisp.org>
58223
58224         * gnulib-tool (func_import): When deciding which files to remove,
58225         consider also dangling symbolic links.
58226         Reported by Eric Blake.
58227
58228 2007-08-26  Bruno Haible  <bruno@clisp.org>
58229
58230         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58231
58232 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58233
58234         * lib/readline.c: Don't include getline.h, the prototype is now
58235         found in stdio.h.
58236
58237 2007-08-23  Jim Meyering  <jim@meyering.net>
58238
58239         Getdelim touchup.
58240         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58241         around the funlockfile call, since funlockfile never sets errno.
58242         Don't set errno upon failed realloc.
58243
58244 2007-08-22  Eric Blake  <ebb9@byu.net>
58245
58246         Getline touchups.
58247         * lib/getdelim.c (getdelim): Revert regression that required *n to
58248         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58249         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58250         getdelim, rather than whether implementation is missing.
58251         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58252         * lib/stdio_.h (getline): Also declare if replacement is
58253         required.
58254         * doc/functions/getdelim.texi: New file.
58255         * doc/functions/getline.texi: Likewise.
58256         * doc/gnulib.texi (Function Substitutes): Add new files.
58257         Reported by Bruno Haible.
58258
58259 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58260
58261         * users.txt: Add Guile.
58262
58263 2007-08-22  Eric Blake  <ebb9@byu.net>
58264
58265         * tests/test-getdelim.c (main): Use remove, not unlink.
58266         * tests/test-getline.c (main): Likewise.
58267
58268         Move getline and getdelim into stdio.h, per POSIX 200x.
58269         * modules/getline (Files): Remove getline.h.
58270         (Depends-on): Add stdio.
58271         (configure.ac): Add module indicator.
58272         * modules/getdelim (Files): Remove getdelim.h.
58273         (Depends-on): Add stdio.
58274         (configure.ac): Add module indicator.
58275         * modules/stdio (Makefile.am): Work with new indicators.
58276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58277         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58278         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58279         * lib/getdelim.h: Delete.
58280         * lib/getline.h: Delete.
58281         * lib/stdio_.h (getdelim, getline): Declare.
58282         * modules/getdelim-tests: New module.
58283         * modules/getline-tests: Likewise.
58284         * tests/test-getdelim.c: New file.
58285         * tests/test-getline.c: Likewise.
58286         * NEWS: Document the change.
58287         * lib/getline.c: Update choice of header.
58288         * lib/csharpcomp.c: Likewise.
58289         * lib/getpass.c: Likewise.
58290         * lib/javacomp.c: Likewise.
58291         * lib/javaversion.c: Likewise.
58292         * lib/yesno.c: Likewise.
58293         * lib/getdelim.c: Likewise.
58294         (getdelim): Set errno on failure, and avoid memory leak.
58295
58296 2007-08-19  Bruno Haible  <bruno@clisp.org>
58297
58298         * modules/closein (Depends-on): Add freadahead.
58299         * lib/closein.c: Include freadahead.h.
58300         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58301         is zero.
58302
58303 2007-08-19  Bruno Haible  <bruno@clisp.org>
58304
58305         * modules/freadahead-tests: New file.
58306         * tests/test-freadahead.sh: New file.
58307         * tests/test-freadahead.c: New file.
58308
58309         * modules/freadahead: New file.
58310         * lib/freadahead.h: New file.
58311         * lib/freadahead.c: New file.
58312         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58313         fbufmode, fpurge, freadable, fwritable.
58314
58315 2007-08-19  Eric Blake  <ebb9@byu.net>
58316
58317         Test yesno in combination with closein.
58318         * lib/yesno.c (yesno): Document use of stdin.
58319         * modules/yesno-tests (Files): New module.
58320         * tests/test-yesno.c (main): New file.
58321         * tests/test-yesno.sh: Likewise.
58322
58323 2007-08-19  Bruno Haible  <bruno@clisp.org>
58324
58325         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58326         * lib/fseeko.c (rpl_fseeko): Likewise.
58327         * lib/fseterr.c (fseterr): Likewise.
58328
58329 2007-08-19  Bruno Haible  <bruno@clisp.org>
58330
58331         * tests/test-lseek.c (main): Disable a test for BeOS.
58332         * doc/functions/lseek.texi: Document the BeOS bug.
58333
58334 2007-08-19  Bruno Haible  <bruno@clisp.org>
58335             Eric Blake  <ebb9@byu.net>
58336
58337         * lib/lseek.c: Include <sys/stat.h>.
58338         (rpl_lseek): Add workaround code also for Unix platforms.
58339         Needed for BeOS.
58340         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58341         * doc/functions/lseek.texi: Document BeOS definiency.
58342
58343 2007-08-18  Bruno Haible  <bruno@clisp.org>
58344
58345         * modules/fstrcmp-tests: New file.
58346         * tests/test-fstrcmp.c: New file.
58347
58348 2007-08-18  Bruno Haible  <bruno@clisp.org>
58349
58350         * modules/fstrcmp: New file, from GNU gettext with modifications.
58351         * lib/fstrcmp.h: New file, from GNU gettext.
58352         * lib/fstrcmp.c: New file, from GNU gettext.
58353         * MODULES.html.sh (String handling): Add fstrcmp.
58354
58355 2007-08-18  Bruno Haible  <bruno@clisp.org>
58356
58357         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58358         'bool'.
58359         (diag, compareseq): Remove const from the ctxt argument.
58360         (USE_HEURISTIC): Undefine at the end.
58361
58362 2007-08-18  Jim Meyering  <jim@meyering.net>
58363
58364         New file: lib/idcache.h
58365         * NEWS: Mention the addition.
58366         * modules/idcache (Files): Add lib/idcache.h
58367         * lib/idcache.c: Include "idcache.h".
58368         Don't include <sys/types.h>.
58369         Add a FIXME comment.
58370         Move file-scoped "static" declarations to the top.
58371         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58372
58373 2007-08-17  Bruno Haible  <bruno@clisp.org>
58374         and Paul Eggert  <eggert@cs.ucla.edu>
58375
58376         * MODULES.html.sh: Add diffseq.
58377         * modules/diffseq: New file.
58378         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58379         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58380
58381 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58382
58383         Import changes from coreutils for bootstrap script.
58384
58385         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58386
58387         * build-aux/bootstrap (slurp): Work even in environments where
58388         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58389         current code does not slurp files whose names start with ".", and
58390         this looks like it might be a troublesome area.
58391
58392         2007-07-11  Jim Meyering  <jim@meyering.net>
58393
58394         If there's a GPL vN copyright comment, require that N == 3.
58395
58396         2007-07-08  Jim Meyering  <jim@meyering.net>
58397
58398         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58399         * build-aux/bootstrap (mam_template): Move definition out of loop.
58400
58401         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58402
58403         * build-aux/bootstrap (symlink_to_dir): Rename function from
58404         symlink_to_gnulib.  Add a directory parameter.  Update all
58405         callers.
58406         (cp_mark_as_generated): Also check for -- and link to -- files in
58407         gl/.
58408
58409         2007-07-08  Jim Meyering  <jim@meyering.net>
58410
58411         Adapt to deeper hierarchy in gnulib.
58412         * build-aux/bootstrap (symlink_to_dir): If the destination
58413         directory doesn't exist, create it. This is required at least for
58414         "lib/uniwidth/cjk.h".
58415
58416         2007-05-15  Jim Meyering  <jim@meyering.net>
58417
58418         * build-aux/bootstrap: Now that generated Makefile.am files
58419         are no longer under version control, they must be created at
58420         bootstrap time.
58421
58422 2007-08-14  Ben Pfaff  <blp@gnu.org>
58423
58424         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58425
58426 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58427
58428         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58429         given the changes below.
58430         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58431         even on hosts that have padding bits beyond the supported 64.
58432
58433 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58434
58435         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58436         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58437         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58438         depends on it.
58439         (xstrtol_error): Remove.
58440         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58441         but with a different signature.
58442         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58443         * lib/xstrtol-error.c: Include exitfail.h.
58444         (xstrtol_fatal): New function, with a different signature from the
58445         old xstrtol_error, so that the caller need not worry about passing
58446         in an exit status, or about storage management of the option argument.
58447         (xstrtol_error): Now a static function.  Redo signature to
58448         implement xstrtol_fatal.  Output the correct number of hyphens in
58449         front of the option so that the caller need not worry about
58450         storage management.
58451         (N_): New macro.
58452         (_): Remove; not used now.
58453         * modules/xstrtol: Depend on getopt.
58454         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58455         of old STRTOL_FATAL_ERROR macro.
58456         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58457         of test program.
58458         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58459         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58460
58461 2007-08-08  Eric Blake  <ebb9@byu.net>
58462
58463         * lib/xstrtol-error.c: Add missing include.
58464
58465         Move xstrtol messages into gnulib domain, when --pobase is used.
58466         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58467         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58468         * modules/xstrtol (Files): Distribute new file.
58469         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58470         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58471         * tests/test-xstrtol.c: ...into new file.
58472         * tests/test-xstrtoul.c: Also test xstrtoul.
58473         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58474         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58475         * tests/test-xstrtol.sh: Drive the tests.
58476         * tests/test-xstrtoimax.sh: Likewise.
58477         * tests/test-xstrtoumax.sh: Likewise.
58478         * modules/xstrtol-tests: New module.
58479         * modules/xstrtoimax-tests: Likewise.
58480         * modules/xstrtoumax-tests: Likewise.
58481
58482 2007-08-08  Jim Meyering  <jim@meyering.net>
58483
58484         New function: mfile_name_concat.
58485         * lib/filenamecat.c (mfile_name_concat): New function, just like
58486         file_name_concat, but return NULL upon failure rather than exiting
58487         with a diagnostic.
58488         * lib/filenamecat.h: Declare it.
58489
58490 2007-08-07  Bruno Haible  <bruno@clisp.org>
58491
58492         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58493         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58494         warning from gcc.
58495         Reported by Eric Blake.
58496
58497 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58498
58499         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58500         * modules/crypto/arcfour (License): Likewise.
58501         * modules/crypto/des-tests (License): Likewise.
58502         * modules/crypto/gc-arctwo-tests (License): Likewise.
58503         * modules/crypto/gc-des-tests (License): Likewise.
58504         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58505         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58506         * modules/crypto/gc-md2-tests (License): Likewise.
58507         * modules/crypto/gc-md4-tests (License): Likewise.
58508         * modules/crypto/gc-md5-tests (License): Likewise.
58509         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58510         * modules/crypto/gc-rijndael-tests (License): Likewise.
58511         * modules/crypto/gc-sha1-tests (License): Likewise.
58512         * modules/crypto/gc-tests (License): Likewise.
58513         * modules/crypto/hmac-md5 (License): Likewise.
58514         * modules/crypto/hmac-sha1 (License): Likewise.
58515         * modules/crypto/md2-tests (License): Likewise.
58516         * modules/crypto/md4-tests (License): Likewise.
58517         * modules/crypto/md5 (License): Likewise.
58518         * modules/crypto/rijndael (License): Likewise.
58519         * modules/crypto/sha1 (License): Likewise.
58520         * modules/memxor (License): Likewise.
58521
58522 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58523         and Bruno Haible  <bruno@clisp.org>
58524
58525         * NEWS: Describe interface changes to human, xstrtol.
58526         * lib/human.h: Include <xstrtol.h>.
58527         (human_options): Return enum strtol_error, not int.  Remove
58528         bool arg; take int * instead.
58529         * lib/human.c: Don't include "gettext.h".
58530         (_): Remove; no longer used.
58531         Don't include <xstrtol.h>, since human.h does it.
58532         (human_options): Adjust to abovementioned interface changes.
58533         Do not report error to stderr; that's now the caller's
58534         responsibility.
58535         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58536         interface change.
58537         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58538         Str, Argument_type_string.  All uses changed.  Put " argument"
58539         in diagnostics to make them clearer.  Change wording of suffix
58540         message for clarity.
58541         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58542         Argument_type_string.
58543         (STRTOL_FATAL_WARN): Remove; no longer used.
58544         * modules/human (Depends-on): Remove gettext-h.
58545
58546 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58547
58548         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58549
58550 2007-07-31  Bruno Haible  <bruno@clisp.org>
58551
58552         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58553         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58554         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58555
58556 2007-07-31  Bruno Haible  <bruno@clisp.org>
58557
58558         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58559         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58560
58561 2007-07-30  Bruno Haible  <bruno@clisp.org>
58562
58563         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58564         * modules/c-ctype (License): Likewise.
58565         * modules/c-strcase (License): Likewise.
58566         * modules/check-version (License): Likewise.
58567         * modules/iconv (License): Likewise.
58568         * modules/iconv_open (License): Likewise.
58569         * modules/read-file (License): Likewise.
58570         * modules/striconv (License): Likewise.
58571         * modules/strverscmp (License): Likewise.
58572         * modules/vasprintf (License): Likewise.
58573         * modules/crypto/des (License): Likewise.
58574         * modules/crypto/gc (License): Likewise.
58575         * modules/crypto/gc-arcfour (License): Likewise.
58576         * modules/crypto/gc-arctwo (License): Likewise.
58577         * modules/crypto/gc-des (License): Likewise.
58578         * modules/crypto/gc-hmac-md5 (License): Likewise.
58579         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58580         * modules/crypto/gc-md2 (License): Likewise.
58581         * modules/crypto/gc-md4 (License): Likewise.
58582         * modules/crypto/gc-md5 (License): Likewise.
58583         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58584         * modules/crypto/gc-random (License): Likewise.
58585         * modules/crypto/gc-rijndael (License): Likewise.
58586         * modules/crypto/gc-sha1 (License): Likewise.
58587         * modules/crypto/md2 (License): Likewise.
58588         * modules/crypto/md4 (License): Likewise.
58589
58590 2007-07-30  Jim Meyering  <jim@meyering.net>
58591
58592         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58593         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58594         it has valid stat data.  This bug would cause du not to count the
58595         sizes of inaccessible directories.
58596         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58597         in <http://bugzilla.redhat.com/250077>.
58598
58599 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58600             Bruno Haible  <bruno@clisp.org>
58601
58602         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58603         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58604         #include_next, gives a diagnostic about it, but reports no error in
58605         the exit code.
58606         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58607
58608 2007-07-24  Ben Pfaff  <blp@gnu.org>
58609
58610         Improve name: "count-one-bits" is better than "popcount".
58611         * MODULES.html.sh: Update name.
58612         * lib/popcount.h: Renamed lib/count-one-bits.h.
58613         (popcount): Renamed count_one_bits.
58614         (popcountl): Renamed count_one_bits_l.
58615         (popcountll): Renamed count_one_bits_ll.
58616         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58617         * modules/popcount: Renamed module/count-one-bits.
58618         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58619         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58620
58621 2007-07-23  Ben Pfaff  <blp@gnu.org>
58622
58623         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58624         better code generation, and add U to large constants to avoid
58625         warnings, in non-GCC case.
58626         Suggested by Bruno Haible.
58627
58628 2007-07-23  Ben Pfaff  <blp@gnu.org>
58629
58630         * lib/popcount.h: Use verify_true instead of if...abort.
58631         * modules/popcount: Depend on verify module.
58632         Suggested by Jim Meyering.
58633
58634 2007-07-23  Bruno Haible  <bruno@clisp.org>
58635
58636         * gnulib-tool (func_import): Create a .cvsignore file also when the
58637         directory is not yet in CVS but the toplevel directory is. When
58638         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58639         Reported by Karl Berry.
58640
58641 2007-07-22  Ben Pfaff  <blp@gnu.org>
58642
58643         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58644         case.
58645         Suggested by Eric Blake.
58646
58647 2007-07-22  Ben Pfaff  <blp@gnu.org>
58648
58649         New module: popcount.
58650         * MODULES.html.sh: Add popcount.
58651         * modules/popcount: New file.
58652         * modules/popcount-tests: New file.
58653         * tests/test-popcount.c: New file.
58654         * lib/popcount.h: New file.
58655         * m4/popcount.m4: New file.
58656
58657 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58658
58659         * build-aux/announce-gen: Update to GPLv3.
58660
58661         * build-aux/config.guess: Update from config.
58662
58663 2007-07-21  Bruno Haible  <bruno@clisp.org>
58664
58665         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58666         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58667
58668 2007-07-20  Jim Meyering  <jim@meyering.net>
58669
58670         * check-module: Diagnose a self-dependency.
58671
58672 2007-07-19  Bruno Haible  <bruno@clisp.org>
58673
58674         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58675         empty.
58676         Reported by Eric Blake.
58677
58678 2007-07-18  Bruno Haible  <bruno@clisp.org>
58679
58680         * gnulib-tool: New options --po-base, --po-domain.
58681         (func_usage): Document them.
58682         (pobase, po_domain): New variables.
58683         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58684         DEFAULT_TEXT_DOMAIN.
58685         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58686         (func_import): Consider pobase and po_domain. Create a po/ directory.
58687         (func_create_testdir): Set pobase and po_domain to empty.
58688         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58689         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58690
58691 2007-07-18  Bruno Haible  <bruno@clisp.org>
58692
58693         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58694         EXTRA_DIST augmentation for files in build-aux/.
58695
58696 2007-07-16  Bruno Haible  <bruno@clisp.org>
58697
58698         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58699         * modules/getdelim (License): Likewise.
58700
58701 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58702
58703         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58704         * modules/d-type (License): Likewise.
58705         * modules/extensions (License): Likewise.
58706         * modules/fnmatch (License): Likewise.
58707         * modules/fseeko (License): Likewise.
58708         * modules/getaddrinfo (License): Likewise.
58709         * modules/getline (License): Likewise.
58710         * modules/getlogin_r (License): Likewise.
58711         * modules/getpass (License): Likewise.
58712         * modules/gettimeofday (License): Likewise.
58713         * modules/glob (License): Likewise.
58714         * modules/inet_ntop (License): Likewise.
58715         * modules/malloc (License): Likewise.
58716         * modules/malloca (License): Likewise.
58717         * modules/memmem (License): Likewise.
58718         * modules/mempcpy (License): Likewise.
58719         * modules/memset (License): Likewise.
58720         * modules/minmax (License): Likewise.
58721         * modules/mktime (License): Likewise.
58722         * modules/netinet_in (License): Likewise.
58723         * modules/pathmax (License): Likewise.
58724         * modules/poll (License): Likewise.
58725         * modules/regex (License): Likewise.
58726         * modules/snprintf (License): Likewise.
58727         * modules/stdbool (License): Likewise.
58728         * modules/stdint (License): Likewise.
58729         * modules/stdio (License): Likewise.
58730         * modules/strcase (License): Likewise.
58731         * modules/strcasestr (License): Likewise.
58732         * modules/strdup (License): Likewise.
58733         * modules/string (License): Likewise.
58734         * modules/strndup (License): Likewise.
58735         * modules/strnlen (License): Likewise.
58736         * modules/strpbrk (License): Likewise.
58737         * modules/strptime (License): Likewise.
58738         * modules/strsep (License): Likewise.
58739         * modules/sys_select (License): Likewise.
58740         * modules/sys_socket (License): Likewise.
58741         * modules/sys_stat (License): Likewise.
58742         * modules/sys_time (License): Likewise.
58743         * modules/time (License): Likewise.
58744         * modules/time_r (License): Likewise.
58745         * modules/timegm (License): Likewise.
58746         * modules/unistd (License): Likewise.
58747         * modules/vsnprintf (License): Likewise.
58748         * modules/wctype (License): Likewise.
58749
58750 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58751
58752         * modules/argz (License): LGPLv2+.
58753
58754 2007-07-15  Karl Berry  <karl@gnu.org>
58755
58756         * doc/gnulib.texi: revise node structure per new fdl.texi.
58757
58758 2007-07-14  Bruno Haible  <bruno@clisp.org>
58759
58760         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58761         the output file.
58762         * lib/uniname/uninames.h: Regenerated.
58763
58764 2007-07-14  Karl Berry  <karl@gnu.org>
58765
58766         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58767         omitting sectioning and index commands.
58768
58769 2007-07-13  Bruno Haible  <bruno@clisp.org>
58770
58771         New gnulib-tool option --more-symlinks.
58772         * gnulib-tool (func_usage): Document --more-symlinks.
58773         (do_copyrights): New variable.
58774         Recognize option --more-symlinks.
58775         (func_import): Don't add a copyright notice transform to
58776         sed_transform_lib_file if do_copyrights is empty.
58777
58778 2007-07-13  Bruno Haible  <bruno@clisp.org>
58779
58780         * lib/vasnprintf.c (decimal_point_char): Define also if
58781         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58782         && !NEED_PRINTF_DIRECTIVE_A.
58783         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58784         Gary V. Vaughan <gary@gnu.org>.
58785
58786 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58787
58788         * lib/inttypes_.h: Undo previous change, since it was fixed
58789         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58790
58791 2007-07-13  Bruno Haible  <bruno@clisp.org>
58792
58793         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58794         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58795
58796 2007-07-13  Jim Meyering  <jim@meyering.net>
58797
58798         df: Don't fail for Tru64's "file-on-file mount".
58799         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58800         so we fall through and use statfs instead.  Details here:
58801         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58802         Reported by Albert Chin.
58803
58804 2007-07-13  Bruno Haible  <bruno@clisp.org>
58805
58806         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58807         * modules/configmake (License): Likewise.
58808         * modules/gettext (License): Likewise.
58809         * modules/gettext-h (License): Likewise.
58810         * modules/include_next (License): Likewise.
58811         * modules/link-warning (License): Likewise.
58812         * modules/localcharset (License): Likewise.
58813         * modules/localename (License): Likewise.
58814         * modules/lock (License): Likewise.
58815         * modules/relocatable-lib-lgpl (License): Likewise.
58816         * modules/size_max (License): Likewise.
58817         * modules/vasnprintf (License): Likewise.
58818         * modules/wchar (License): Likewise.
58819         * modules/xsize (License): Likewise.
58820
58821 2007-07-13  Bruno Haible  <bruno@clisp.org>
58822
58823         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58824         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58825
58826 2007-07-12  Bruno Haible  <bruno@clisp.org>
58827
58828         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58829         in the modules files.
58830
58831 2007-07-11  Karl Berry  <karl@gnu.org>
58832
58833         * MODULES.html.sh (func_module): use
58834          sed -e '\|^'"${includefile}"'$|d'
58835          instead of /.../d, to avoid errors on $includefile's containing /.
58836
58837 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58838
58839         * gnulib-tool (func_import): Avoid duplication of --avoid
58840         statements
58841         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58842         names to `_' in variable names.
58843
58844 2007-07-10  Eric Blake  <ebb9@byu.net>
58845
58846         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58847         * NEWS: Document this change.
58848
58849 2007-07-08  Bruno Haible  <bruno@clisp.org>
58850
58851         Update to Unicode 5.0.
58852         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58853         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58854         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58855         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58856         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58857         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58858         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58859         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58860         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58861         U+10A3F, U+1D242..U+1D244.
58862         (nonspacing_table_ind): Update.
58863         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58864         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58865
58866 2007-07-08  Bruno Haible  <bruno@clisp.org>
58867
58868         Update to Unicode 5.0.
58869         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58870         code transform. Extend the name index field of unicode_name_to_code and
58871         unicode_code_to_name from 16 to 24 bits.
58872         * lib/uniname/uniname.c (unicode_character_name,
58873         unicode_name_character): Add the range 0x12xxx to the code transform.
58874         * lib/uniname/uninames.h: Regenerated.
58875         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58876
58877 2007-07-07  Bruno Haible  <bruno@clisp.org>
58878
58879         * modules/wcwidth-tests: New file.
58880         * tests/test-wcwidth.c: New file.
58881
58882         Work around MacOS X wcwidth() bug.
58883         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58884         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58885         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58886         original wcwidth in non-UTF-8 locales.
58887         * modules/wcwidth (Depends-on): Add localcharset, streq,
58888         uniwidth/width.
58889         * doc/functions/wcwidth.texi: Update.
58890
58891 2007-07-07  Bruno Haible  <bruno@clisp.org>
58892
58893         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58894         (wcwidth): New declaration.
58895         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58896         macros.
58897         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58898         here. Prepare for creating <wchar.h> unconditionally.
58899         * modules/wchar (Depends-on): Add link-warning.
58900         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58901         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58902         * lib/wcwidth.h: Remove file.
58903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58904         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58905         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58906         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58907         (Include): Replace wcwidth.h with <wchar.h>.
58908         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58909         * lib/mbchar.h: Don't include wcwidth.h.
58910         * lib/mbswidth.c: Likewise.
58911         * NEWS: Mention the change.
58912
58913 2007-07-07  Bruno Haible  <bruno@clisp.org>
58914
58915         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58916         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58917         definition with an external declaration.
58918         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58919         defined as a function. Remove AC_C_INLINE requirement.
58920         * modules/wcwidth (Files): Add lib/wcwidth.c.
58921         (Makefile.am): Remove redundant statement.
58922
58923 2007-07-07  Bruno Haible  <bruno@clisp.org>
58924
58925         * MODULES.html.sh (Unicode string functions): Add the new modules.
58926
58927         * tests/uniwidth/test-u32-strwidth.c: New file.
58928         * modules/uniwidth/u32-strwidth-tests: New file.
58929
58930         * lib/uniwidth/u32-strwidth.c: New file.
58931         * modules/uniwidth/u32-strwidth: New file.
58932
58933         * tests/uniwidth/test-u16-strwidth.c: New file.
58934         * modules/uniwidth/u16-strwidth-tests: New file.
58935
58936         * lib/uniwidth/u16-strwidth.c: New file.
58937         * modules/uniwidth/u16-strwidth: New file.
58938
58939         * tests/uniwidth/test-u8-strwidth.c: New file.
58940         * modules/uniwidth/u8-strwidth-tests: New file.
58941
58942         * lib/uniwidth/u8-strwidth.c: New file.
58943         * modules/uniwidth/u8-strwidth: New file.
58944
58945         * tests/uniwidth/test-u32-width.c: New file.
58946         * modules/uniwidth/u32-width-tests: New file.
58947
58948         * lib/uniwidth/u32-width.c: New file.
58949         * modules/uniwidth/u32-width: New file.
58950
58951         * tests/uniwidth/test-u16-width.c: New file.
58952         * modules/uniwidth/u16-width-tests: New file.
58953
58954         * lib/uniwidth/u16-width.c: New file.
58955         * modules/uniwidth/u16-width: New file.
58956
58957         * tests/uniwidth/test-u8-width.c: New file.
58958         * modules/uniwidth/u8-width-tests: New file.
58959
58960         * lib/uniwidth/u8-width.c: New file.
58961         * modules/uniwidth/u8-width: New file.
58962
58963         * tests/uniwidth/test-uc_width.c: New file.
58964         * modules/uniwidth/width-tests: New file.
58965
58966         * lib/uniwidth/width.c: New file, from GNU libiconv.
58967         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58968         * modules/uniwidth/width: New file.
58969
58970         * lib/uniwidth.h: New file, from GNU libiconv.
58971         * modules/uniwidth/base: New file.
58972
58973 2007-07-07  Bruno Haible  <bruno@clisp.org>
58974
58975         * lib/uniname.h: New file, from GNU gettext.
58976         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58977         * lib/uniname/uninames.h: New file, from GNU gettext.
58978         * lib/uniname/uniname.c: New file, from GNU gettext.
58979         * tests/uniname/test-uninames.sh: New file.
58980         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58981         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58982         * modules/uniname/base: New file.
58983         * modules/uniname/uniname: New file.
58984         * modules/uniname/uniname-tests: New file.
58985         * MODULES.html.sh (Unicode string functions): Add the new modules.
58986
58987 2007-07-06  Bruno Haible  <bruno@clisp.org>
58988
58989         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58990
58991 2007-07-06  Bruno Haible  <bruno@clisp.org>
58992
58993         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58994         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58995         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58996         include <sys/time.h>.
58997         Reported by Eric Blake.
58998
58999 2007-07-06  Eric Blake  <ebb9@byu.net>
59000
59001         Fix testing canonicalize on cygwin.
59002         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59003         Revert patch from 2007-06-19.
59004         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59005         canonicalize module is also in use.
59006         * tests/test-canonicalize.c: New file.
59007         * tests/test-canonicalize.sh: Likewise.
59008         * modules/canonicalize-tests: Likewise.
59009
59010 2007-07-06  Jim Meyering  <jim@meyering.net>
59011
59012         * lib/getugroups.c (getugroups): Detect getgrent failure.
59013         Adjust comment to reflect reality: this function may return -1.
59014
59015 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59016
59017         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59018         the new TP address.
59019         (usage): Fix typo
59020         (gnulib_mk): New variable.
59021
59022 2007-07-05  Jim Meyering  <jim@meyering.net>
59023
59024         Don't let endgrent clobber errno, no matter how improbable.
59025         * lib/getugroups.c (getugroups): Save and restore errno around
59026         endgrent call.
59027
59028         Close the group DB even when failing with 2^31 or more members.
59029         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59030
59031 2007-07-04  Jim Meyering  <jim@meyering.net>
59032
59033         * lib/getugroups.h: New file.
59034         * lib/getugroups.c: Include "getugroups.h".
59035         Remove uses of "register" keyword.
59036         Move local variable, "cp", down into scope where used.
59037         Give "username" parameter the "const" attribute.
59038         * modules/getugroups (Files): Add lib/getugroups.h
59039
59040 2007-07-04  Karl Berry  <karl@gnu.org>
59041
59042         * MODULES.html.sh (func_all_modules): Complete rename of
59043         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59044
59045 2007-07-02  Bruno Haible  <bruno@clisp.org>
59046
59047         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59048         mode, when inttypes.h comes from gnulib.
59049         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59050
59051 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59052
59053         * NEWS: Mention lgpl module name change.
59054
59055         * modules/lgpl-2.1: Renamed from lgpl.
59056
59057         * NEWS: Mention gpl module name change.
59058
59059         * modules/gpl-3.0: New file, based on gpl-2.0.
59060
59061         * modules/gpl-2.0: Renamed from gpl.
59062
59063         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59064         doc/gpl-2.0.texi.
59065
59066 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59067
59068         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59069         #define __STDC_LIMIT_MACROS temporarily while including
59070         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59071         Problem reported by Joel E. Denny in
59072         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59073
59074 2007-07-01  Bruno Haible  <bruno@clisp.org>
59075
59076         * lib/unistdio.h: New file.
59077         * lib/unistdio/u-asnprintf.h: New file.
59078         * lib/unistdio/u-asprintf.h: New file.
59079         * lib/unistdio/u-printf-args.c: New file.
59080         * lib/unistdio/u-printf-args.h: New file.
59081         * lib/unistdio/u-printf-parse.h: New file.
59082         * lib/unistdio/u-snprintf.h: New file.
59083         * lib/unistdio/u-sprintf.h: New file.
59084         * lib/unistdio/u-vasprintf.h: New file.
59085         * lib/unistdio/u-vsnprintf.h: New file.
59086         * lib/unistdio/u-vsprintf.h: New file.
59087         * lib/unistdio/ulc-asnprintf.c: New file.
59088         * lib/unistdio/ulc-asprintf.c: New file.
59089         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59090         * lib/unistdio/ulc-printf-parse.c: New file.
59091         * lib/unistdio/ulc-snprintf.c: New file.
59092         * lib/unistdio/ulc-sprintf.c: New file.
59093         * lib/unistdio/ulc-vasnprintf.c: New file.
59094         * lib/unistdio/ulc-vasprintf.c: New file.
59095         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59096         * lib/unistdio/ulc-vsnprintf.c: New file.
59097         * lib/unistdio/ulc-vsprintf.c: New file.
59098         * lib/unistdio/u8-asnprintf.c: New file.
59099         * lib/unistdio/u8-asprintf.c: New file.
59100         * lib/unistdio/u8-printf-parse.c: New file.
59101         * lib/unistdio/u8-snprintf.c: New file.
59102         * lib/unistdio/u8-sprintf.c: New file.
59103         * lib/unistdio/u8-vasnprintf.c: New file.
59104         * lib/unistdio/u8-vasprintf.c: New file.
59105         * lib/unistdio/u8-vsnprintf.c: New file.
59106         * lib/unistdio/u8-vsprintf.c: New file.
59107         * lib/unistdio/u8-u8-asnprintf.c: New file.
59108         * lib/unistdio/u8-u8-asprintf.c: New file.
59109         * lib/unistdio/u8-u8-snprintf.c: New file.
59110         * lib/unistdio/u8-u8-sprintf.c: New file.
59111         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59112         * lib/unistdio/u8-u8-vasprintf.c: New file.
59113         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59114         * lib/unistdio/u8-u8-vsprintf.c: New file.
59115         * lib/unistdio/u16-asnprintf.c: New file.
59116         * lib/unistdio/u16-asprintf.c: New file.
59117         * lib/unistdio/u16-printf-parse.c: New file.
59118         * lib/unistdio/u16-snprintf.c: New file.
59119         * lib/unistdio/u16-sprintf.c: New file.
59120         * lib/unistdio/u16-vasnprintf.c: New file.
59121         * lib/unistdio/u16-vasprintf.c: New file.
59122         * lib/unistdio/u16-vsnprintf.c: New file.
59123         * lib/unistdio/u16-vsprintf.c: New file.
59124         * lib/unistdio/u16-u16-asnprintf.c: New file.
59125         * lib/unistdio/u16-u16-asprintf.c: New file.
59126         * lib/unistdio/u16-u16-snprintf.c: New file.
59127         * lib/unistdio/u16-u16-sprintf.c: New file.
59128         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59129         * lib/unistdio/u16-u16-vasprintf.c: New file.
59130         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59131         * lib/unistdio/u16-u16-vsprintf.c: New file.
59132         * lib/unistdio/u32-asnprintf.c: New file.
59133         * lib/unistdio/u32-asprintf.c: New file.
59134         * lib/unistdio/u32-printf-parse.c: New file.
59135         * lib/unistdio/u32-snprintf.c: New file.
59136         * lib/unistdio/u32-sprintf.c: New file.
59137         * lib/unistdio/u32-vasnprintf.c: New file.
59138         * lib/unistdio/u32-vasprintf.c: New file.
59139         * lib/unistdio/u32-vsnprintf.c: New file.
59140         * lib/unistdio/u32-vsprintf.c: New file.
59141         * lib/unistdio/u32-u32-asnprintf.c: New file.
59142         * lib/unistdio/u32-u32-asprintf.c: New file.
59143         * lib/unistdio/u32-u32-snprintf.c: New file.
59144         * lib/unistdio/u32-u32-sprintf.c: New file.
59145         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59146         * lib/unistdio/u32-u32-vasprintf.c: New file.
59147         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59148         * lib/unistdio/u32-u32-vsprintf.c: New file.
59149         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59150         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59151         * tests/unistdio/test-ulc-printf1.h: New file.
59152         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59153         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59154         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59155         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59156         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59157         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59158         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59159         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59160         * tests/unistdio/test-u8-asnprintf1.c: New file.
59161         * tests/unistdio/test-u8-asnprintf1.h: New file.
59162         * tests/unistdio/test-u8-printf1.h: New file.
59163         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59164         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59165         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59166         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59167         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59168         * tests/unistdio/test-u8-vasprintf1.c: New file.
59169         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59170         * tests/unistdio/test-u8-vsprintf1.c: New file.
59171         * tests/unistdio/test-u16-asnprintf1.c: New file.
59172         * tests/unistdio/test-u16-asnprintf1.h: New file.
59173         * tests/unistdio/test-u16-printf1.h: New file.
59174         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59175         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59176         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59177         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59178         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59179         * tests/unistdio/test-u16-vasprintf1.c: New file.
59180         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59181         * tests/unistdio/test-u16-vsprintf1.c: New file.
59182         * tests/unistdio/test-u32-asnprintf1.c: New file.
59183         * tests/unistdio/test-u32-asnprintf1.h: New file.
59184         * tests/unistdio/test-u32-printf1.h: New file.
59185         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59186         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59187         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59188         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59189         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59190         * tests/unistdio/test-u32-vasprintf1.c: New file.
59191         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59192         * tests/unistdio/test-u32-vsprintf1.c: New file.
59193         * modules/unistdio/base: New file.
59194         * modules/unistdio/u-printf-args: New file.
59195         * modules/unistdio/ulc-asnprintf: New file.
59196         * modules/unistdio/ulc-asprintf: New file.
59197         * modules/unistdio/ulc-fprintf: New file.
59198         * modules/unistdio/ulc-printf-parse: New file.
59199         * modules/unistdio/ulc-snprintf: New file.
59200         * modules/unistdio/ulc-sprintf: New file.
59201         * modules/unistdio/ulc-vasnprintf: New file.
59202         * modules/unistdio/ulc-vasprintf: New file.
59203         * modules/unistdio/ulc-vfprintf: New file.
59204         * modules/unistdio/ulc-vsnprintf: New file.
59205         * modules/unistdio/ulc-vsprintf: New file.
59206         * modules/unistdio/u8-asnprintf: New file.
59207         * modules/unistdio/u8-asprintf: New file.
59208         * modules/unistdio/u8-printf-parse: New file.
59209         * modules/unistdio/u8-snprintf: New file.
59210         * modules/unistdio/u8-sprintf: New file.
59211         * modules/unistdio/u8-vasnprintf: New file.
59212         * modules/unistdio/u8-vasprintf: New file.
59213         * modules/unistdio/u8-vsnprintf: New file.
59214         * modules/unistdio/u8-vsprintf: New file.
59215         * modules/unistdio/u8-u8-asnprintf: New file.
59216         * modules/unistdio/u8-u8-asprintf: New file.
59217         * modules/unistdio/u8-u8-snprintf: New file.
59218         * modules/unistdio/u8-u8-sprintf: New file.
59219         * modules/unistdio/u8-u8-vasnprintf: New file.
59220         * modules/unistdio/u8-u8-vasprintf: New file.
59221         * modules/unistdio/u8-u8-vsnprintf: New file.
59222         * modules/unistdio/u8-u8-vsprintf: New file.
59223         * modules/unistdio/u16-asnprintf: New file.
59224         * modules/unistdio/u16-asprintf: New file.
59225         * modules/unistdio/u16-printf-parse: New file.
59226         * modules/unistdio/u16-snprintf: New file.
59227         * modules/unistdio/u16-sprintf: New file.
59228         * modules/unistdio/u16-vasnprintf: New file.
59229         * modules/unistdio/u16-vasprintf: New file.
59230         * modules/unistdio/u16-vsnprintf: New file.
59231         * modules/unistdio/u16-vsprintf: New file.
59232         * modules/unistdio/u16-u16-asnprintf: New file.
59233         * modules/unistdio/u16-u16-asprintf: New file.
59234         * modules/unistdio/u16-u16-snprintf: New file.
59235         * modules/unistdio/u16-u16-sprintf: New file.
59236         * modules/unistdio/u16-u16-vasnprintf: New file.
59237         * modules/unistdio/u16-u16-vasprintf: New file.
59238         * modules/unistdio/u16-u16-vsnprintf: New file.
59239         * modules/unistdio/u16-u16-vsprintf: New file.
59240         * modules/unistdio/u32-asnprintf: New file.
59241         * modules/unistdio/u32-asprintf: New file.
59242         * modules/unistdio/u32-printf-parse: New file.
59243         * modules/unistdio/u32-snprintf: New file.
59244         * modules/unistdio/u32-sprintf: New file.
59245         * modules/unistdio/u32-vasnprintf: New file.
59246         * modules/unistdio/u32-vasprintf: New file.
59247         * modules/unistdio/u32-vsnprintf: New file.
59248         * modules/unistdio/u32-vsprintf: New file.
59249         * modules/unistdio/u32-u32-asnprintf: New file.
59250         * modules/unistdio/u32-u32-asprintf: New file.
59251         * modules/unistdio/u32-u32-snprintf: New file.
59252         * modules/unistdio/u32-u32-sprintf: New file.
59253         * modules/unistdio/u32-u32-vasnprintf: New file.
59254         * modules/unistdio/u32-u32-vasprintf: New file.
59255         * modules/unistdio/u32-u32-vsnprintf: New file.
59256         * modules/unistdio/u32-u32-vsprintf: New file.
59257         * modules/unistdio/ulc-asnprintf-tests: New file.
59258         * modules/unistdio/ulc-vasnprintf-tests: New file.
59259         * modules/unistdio/ulc-vasprintf-tests: New file.
59260         * modules/unistdio/ulc-vsnprintf-tests: New file.
59261         * modules/unistdio/ulc-vsprintf-tests: New file.
59262         * modules/unistdio/u8-asnprintf-tests: New file.
59263         * modules/unistdio/u8-vasnprintf-tests: New file.
59264         * modules/unistdio/u8-vasprintf-tests: New file.
59265         * modules/unistdio/u8-vsnprintf-tests: New file.
59266         * modules/unistdio/u8-vsprintf-tests: New file.
59267         * modules/unistdio/u16-asnprintf-tests: New file.
59268         * modules/unistdio/u16-vasnprintf-tests: New file.
59269         * modules/unistdio/u16-vasprintf-tests: New file.
59270         * modules/unistdio/u16-vsnprintf-tests: New file.
59271         * modules/unistdio/u16-vsprintf-tests: New file.
59272         * modules/unistdio/u32-asnprintf-tests: New file.
59273         * modules/unistdio/u32-vasnprintf-tests: New file.
59274         * modules/unistdio/u32-vasprintf-tests: New file.
59275         * modules/unistdio/u32-vsnprintf-tests: New file.
59276         * modules/unistdio/u32-vsprintf-tests: New file.
59277         * MODULES.html.sh (Unicode string functions): Add the new modules.
59278
59279 2007-07-01  Bruno Haible  <bruno@clisp.org>
59280
59281         * lib/sprintf.c (sprintf): Limit the available length estimation,
59282         to avoid address wraparound.
59283         * lib/vsprintf.c (vsprintf): Likewise.
59284         * modules/sprintf-posix (Dependencies): Add stdint.
59285         * modules/vsprintf-posix (Dependencies): Likewise.
59286
59287 2007-07-01  Bruno Haible  <bruno@clisp.org>
59288
59289         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59290         Windows PATH as well. Conservative double-quoting. Comments.
59291
59292 2007-07-01  Bruno Haible  <bruno@clisp.org>
59293             Eric Blake  <ebb9@byu.net>
59294             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59295
59296         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59297         empty components in $PATH, denoting '.'.
59298
59299 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59300
59301         * gnulib-tool: Fix indentation.
59302         (func_create_megatestdir): Likewise.
59303         Report by Bruno Haible.
59304
59305 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59306
59307         Sync from Automake.
59308         * build-aux/gnupload: Fix shell portability issues with for loops.
59309         Report by Karl Berry.
59310
59311 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59312
59313         * build-aux/maint.mk (POURL): Use translationproject.org.
59314
59315 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59316             Bruno Haible  <bruno@clisp.org>
59317
59318         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59319         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59320         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59321         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59322         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59323
59324 2007-06-27  Bruno Haible  <bruno@clisp.org>
59325
59326         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59327         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59328
59329 2007-06-26  Karl Berry  <karl@gnu.org>
59330
59331         * MODULES.html.sh: remove xreadlink-with-size.
59332
59333 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59334
59335         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59336         method that I hope also handles the double-include problem noted
59337         by Bruno Haible in
59338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59339
59340 2007-06-23  Bruno Haible  <bruno@clisp.org>
59341
59342         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59343         Don't let the 'mostlyclean' target fail if the last subdirectory could
59344         not be removed.
59345         Reported by Karl Berry.
59346
59347 2007-06-23  Bruno Haible  <bruno@clisp.org>
59348
59349         * gnulib-tool (echo): Add a speedier workaround for ksh.
59350         * tests/test-echo.sh: Likewise.
59351
59352 2007-06-23  Bruno Haible  <bruno@clisp.org>
59353
59354         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59355         * tests/test-echo.sh: Likewise.
59356
59357 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59358
59359         * gnulib-tool (IFS): Initialize early, so we don't set it to
59360         empty later.
59361         (self_abspathname): Rewrite algorithm to set it, reindent.
59362         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59363         (func_create_megatestdir): Merge some sed scripts.
59364
59365 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59366
59367         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59368         exposed by Sun Studio 11 cc on Solaris 8.
59369
59370 2007-06-22  Bruno Haible  <bruno@clisp.org>
59371
59372         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59373         backslashes.
59374         * tests/test-echo.sh: New file.
59375
59376 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59377
59378         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59379         simplify `sed_replace_build_aux' scripts, they are portable but
59380         echoing them with `echo' is not.
59381         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59382
59383 2007-06-21  Karl Berry  <karl@gnu.org>
59384
59385         * config/srclist.txt: guess we can't handle the licenses via
59386         srclist at the moment.
59387
59388 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59389
59390         * MODULES.html.sh: Add include_next.
59391         * modules/include_next: New file.
59392
59393 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59394
59395         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59396         INCLUDE_NEXT.
59397         (gl_CHECK_NEXT_HEADERS): New macro.
59398         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59399         the obsolescent gl_ABSOLUTE_HEADER.
59400         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59401         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59402         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59403         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59404         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59405         * m4/math_h.m4 (gl_MATH_H): Likewise.
59406         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59407         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59408         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59409         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59410         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59411         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59412         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59413         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59414         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59415         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59416         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59417         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59418         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59419         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59420         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59421         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59422         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59423         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59424         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59425         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59426         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59427         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59428         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59429         * lib/float_.h: Likewise.
59430         * lib/inttypes_.h: Likewise.
59431         * lib/math_.h: Likewise.
59432         * lib/search_.h: Likewise.
59433         * lib/signal_.h: Likewise.
59434         * lib/stdint_.h: Likewise.
59435         * lib/stdio_.h: Likewise.
59436         * lib/stdlib_.h: Likewise.
59437         * lib/string_.h: Likewise.
59438         * lib/sys_stat_.h: Likewise.
59439         * lib/sys_time_.h: Likewise.
59440         * lib/time_.h: Likewise.
59441         * lib/unistd_.h: Likewise.
59442         * lib/wchar_.h: Likewise.
59443         * lib/wctype_.h: Likewise.
59444         * lib/dirent_.h: Likewise.
59445         * lib/iconv_.h: Likewise.
59446         * lib/locale_.h: Likewise.
59447         * lib/netinet_in_.h: Likewise.
59448         * lib/sys_select_.h: Likewise.
59449         * lib/sys_socket_.h: Likewise.
59450         * lib/sysexits_.h: Likewise.
59451         * modules/fcntl (Depends-on): Depend on include_next, not
59452         absolute_header.
59453         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59454         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59455         * modules/fchdir: Likewise.
59456         * modules/float: Likewise.
59457         * modules/iconv_open: Likewise.
59458         * modules/inttypes: Likewise.
59459         * modules/locale: Likewise.
59460         * modules/math: Likewise.
59461         * modules/netinet_in: Likewise.
59462         * modules/search: Likewise.
59463         * modules/signal: Likewise.
59464         * modules/stdint: Likewise.
59465         * modules/stdio: Likewise.
59466         * modules/stdlib: Likewise.
59467         * modules/string: Likewise.
59468         * modules/sys_select: Likewise.
59469         * modules/sys_socket: Likewise.
59470         * modules/sys_stat: Likewise.
59471         * modules/sys_time: Likewise.
59472         * modules/sysexits: Likewise.
59473         * modules/time: Likewise.
59474         * modules/unistd: Likewise.
59475         * modules/wchar: Likewise.
59476         * modules/wctype: Likewise.
59477         * modules/sys_stat: Change maintainer to "all".
59478         * modules/unistd: Likewise.
59479
59480 2007-06-20  Karl Berry  <karl@gnu.org>
59481
59482         * config/srclist.txt: track www changes in license files.
59483
59484 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59485
59486         * build-aux/bootstrap: Remove stray dot.
59487         Make sure build_aux settings are honored when linking
59488         gnulib_extra_files.
59489
59490 2007-06-19  Eric Blake  <ebb9@byu.net>
59491
59492         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59493         Allow compilation on cygwin.
59494
59495 2007-06-19  Jim Meyering  <jim@meyering.net>
59496
59497         xreadlink-with-size: Remove module.  No longer used.
59498         Ex-callers now use xreadlink or mreadlink-with-size.
59499         * modules/xreadlink-with-size: Remove module.
59500         * lib/xreadlink-with-size.c: Remove file.
59501         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59502         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59503         just before the function definition *is* accurate.
59504
59505         Eliminate one way canonicalize_filename_mode could exit.
59506         * lib/canonicalize.c (canonicalize_filename_mode):
59507         Use mreadlink_with_size, not xreadlink_with_size.
59508
59509 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59510
59511         Detect porting problems to FreeBSD/arm, which has time_t wider than
59512         long int.  Original problem reported for GNU diff by Xin Li in
59513         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59514         * modules/getdate (Depends-on): Add intprops, verify.
59515         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59516         is an integer type no wider than long int.
59517
59518 2007-06-18  Jim Meyering  <jim@meyering.net>
59519
59520         New module: mreadlink-with-size.
59521         * MODULES.html.sh: Add mreadlink-with-size.
59522         * modules/mreadlink-with-size: New module
59523         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59524         not xreadlink-with-size.
59525         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59526
59527 2007-06-16  Bruno Haible  <bruno@clisp.org>
59528
59529         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59530         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59531         Reported by Gary V. Vaughan <gary@gnu.org>.
59532
59533 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59534
59535         Revamp lchown so that it lives in unistd.h where it belongs.
59536         * lib/lchown.h: Remove.
59537         * lib/dirchownmod.c: Don't include lib/lchown.h.
59538         * lib/fchownat.c: Likewise.
59539         * lib/openat.c: Likewise.
59540         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59541         does not follow symlinks.
59542         (EOPNOTSUPP): Define if not defined.
59543         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59544         is defined to 0.
59545         (lchown): New decl.
59546         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59547         Do not check for lchown decl.
59548         Set REPLACE_LCHOWN.
59549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59550         REPLACE_LCHOWN.
59551         * modules/chown: Make it clear it follows symlinks.
59552         * modules/lchown: Make it clear it doesn't follow symlinks.
59553         (Files): Remove lib/lchown.h
59554         (Depends-on): Add unistd.
59555         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59556         (Include): Include <unistd.h>, not "lchown.h".
59557         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59558         REPLACE_LCHOWN.
59559
59560 2007-06-15  Jim Meyering  <jim@meyering.net>
59561
59562         Change license (GPL to LGPL) of fsusage and dependents.
59563         * modules/fsusage (License): Change to LGPL.
59564         * modules/full-read (License): Likewise.
59565         * modules/full-write (License): Likewise.
59566         * modules/safe-read (License): Likewise.
59567         * modules/safe-write (License): Likewise.
59568
59569 2007-06-14  Ben Pfaff  <blp@gnu.org>
59570
59571         Missing part of allocsa -> malloca transition.
59572         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59573         gl_MALLOCA.
59574
59575 2007-06-12  Bruno Haible  <bruno@clisp.org>
59576
59577         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59578         to ia64, x86_64, i386.
59579         Reported by Eric Blake.
59580
59581 2007-06-12  Bruno Haible  <bruno@clisp.org>
59582
59583         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59584         cross-compiling to x86_64.
59585
59586 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59587
59588         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59589         glitch reported by Ralf Wildenhues in
59590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59591
59592         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59593         Vin Shelton.
59594
59595 2007-06-11  Bruno Haible  <bruno@clisp.org>
59596
59597         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59598         replacement string.
59599         Reported by Eric Blake.
59600
59601 2007-06-10  Bruno Haible  <bruno@clisp.org>
59602
59603         Prepare vasnprintf code for use with Unicode strings.
59604         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59605         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59606         TYPE_U32_STRING.
59607         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59608         a_u32_string variants.
59609         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59610         * lib/printf-args.c: Don't include config.h and the specification
59611         header if PRINTF_FETCHARGS is already defined.
59612         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59613         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59614         TYPE_U16_STRING, TYPE_U32_STRING.
59615         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59616         u16_directive, u16_directives, u32_directive, u32_directives): New
59617         types.
59618         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59619         New declarations.
59620         * lib/printf-parse.c: Don't include config.h and the specification
59621         header if PRINTF_PARSE is already defined. Eliminate the set of
59622         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59623         them now. Include c-ctype.h.
59624         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59625         directive and CHAR_T_ONLY_ASCII.
59626         * lib/vasnprintf.c: Don't include config.h and the specification header
59627         if VASNPRINTF is already defined.
59628         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59629         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59630         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59631         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59632         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59633         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59634         code accordingly.
59635         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59636         pad_ourselves also in this case, with the 'c' and 's' directives, and
59637         with a different notion of "width".
59638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59639
59640 2007-06-10  Bruno Haible  <bruno@clisp.org>
59641
59642         * modules/unistr/u32-mbsnlen: New file.
59643         * lib/unistr/u32-mbsnlen.c: New file.
59644
59645         * modules/unistr/u16-mbsnlen: New file.
59646         * lib/unistr/u16-mbsnlen.c: New file.
59647
59648         * modules/unistr/u8-mbsnlen: New file.
59649         * lib/unistr/u8-mbsnlen.c: New file.
59650
59651         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59652         declarations.
59653
59654 2007-06-10  Bruno Haible  <bruno@clisp.org>
59655
59656         * lib/string_.h (mbsnlen): New declaration.
59657         * lib/mbsnlen.c: New file.
59658         * m4/mbsnlen.m4: New file.
59659         * modules/mbsnlen: New file.
59660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59661         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59662         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59663
59664 2007-06-10  Bruno Haible  <bruno@clisp.org>
59665
59666         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59667
59668 2007-06-10  Bruno Haible  <bruno@clisp.org>
59669
59670         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59671         * lib/mbuiter.h: Likewise.
59672
59673 2007-06-10  Bruno Haible  <bruno@clisp.org>
59674
59675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59676         declaration.
59677
59678 2007-06-10  Karl Berry  <karl@gnu.org>
59679
59680         * config/srclist.txt: remove gettext entries, Bruno prefers
59681         to update individually.
59682
59683 2007-06-10  Bruno Haible  <bruno@clisp.org>
59684
59685         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59686         'maxlen'. Ensure only length + width bytes are allocated, not
59687         length + 1 + width.
59688
59689 2007-06-09  Bruno Haible  <bruno@clisp.org>
59690
59691         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59692         (CHAR_T): Remove macro.
59693         (VASNPRINTF): Update.
59694
59695 2007-06-09  Bruno Haible  <bruno@clisp.org>
59696
59697         * MODULES.html.sh (Unicode string functions): Add the new modules.
59698
59699         * modules/uniconv/u32-conv-to-enc: New file.
59700         * lib/uniconv/u32-conv-to-enc.c: New file.
59701         * modules/uniconv/u32-conv-to-enc-tests: New file.
59702         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59703
59704         * modules/uniconv/u16-conv-to-enc: New file.
59705         * lib/uniconv/u16-conv-to-enc.c: New file.
59706         * lib/uniconv/u-conv-to-enc.h: New file.
59707         * modules/uniconv/u16-conv-to-enc-tests: New file.
59708         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59709
59710         * modules/uniconv/u8-conv-to-enc: New file.
59711         * lib/uniconv/u8-conv-to-enc.c: New file.
59712         * modules/uniconv/u8-conv-to-enc-tests: New file.
59713         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59714
59715         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59716         u32_conv_to_encoding): New declarations.
59717
59718 2007-06-09  Bruno Haible  <bruno@clisp.org>
59719
59720         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59721
59722 2007-06-09  Bruno Haible  <bruno@clisp.org>
59723
59724         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59725         * modules/malloca: Renamed from modules/allocsa, updated.
59726         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59727         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59728         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59729         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59730         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59731         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59732         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59733         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59734         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59735         * modules/c-strcasestr (Depends-on): Update.
59736         * lib/c-strcasestr.c: Update.
59737         * modules/c-strstr (Depends-on): Update.
59738         * lib/c-strstr.c: Update.
59739         * modules/canonicalize-lgpl (Depends-on): Update.
59740         * lib/canonicalize-lgpl.c: Update.
59741         * modules/clean-temp (Depends-on): Update.
59742         * lib/clean-temp.c: Update.
59743         * modules/csharpcomp (Depends-on): Update.
59744         * lib/csharpcomp.c: Update.
59745         * modules/csharpexec (Depends-on): Update.
59746         * lib/csharpexec.c: Update.
59747         * modules/javacomp (Depends-on): Update.
59748         * lib/javacomp.c: Update.
59749         * modules/javaexec (Depends-on): Update.
59750         * lib/javaexec.c: Update.
59751         * modules/mbscasestr (Depends-on): Update.
59752         * lib/mbscasestr.c: Update.
59753         * modules/mbsstr (Depends-on): Update.
59754         * lib/mbsstr.c: Update.
59755         * modules/setenv (Depends-on): Update.
59756         * lib/setenv.c: Update.
59757         * modules/strcasestr (Depends-on): Update.
59758         * lib/strcasestr.c: Update.
59759         * modules/striconveha (Depends-on): Update.
59760         * lib/striconveha.c: Update.
59761         * modules/relocatable-prog-wrapper (Files): Update.
59762         * lib/relocwrapper.c: Update.
59763         * build-aux/install-reloc: Update.
59764         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59765
59766 2007-06-08  Bruno Haible  <bruno@clisp.org>
59767
59768         Port to uClibc.
59769         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59770         * lib/fpurge.c (fpurge): Likewise.
59771         * lib/freading.c (freading): Likewise.
59772         * lib/fseeko.c (rpl_fseeko): Likewise.
59773         * lib/fseterr.c (fseterr): Likewise.
59774         * lib/fwriting.c (fwriting): Likewise.
59775         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59776
59777 2007-06-08  Bruno Haible  <bruno@clisp.org>
59778
59779         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59780         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59781         * modules/gettext (Files): Add m4/intlmacosx.m4.
59782
59783 2007-06-07  Bruno Haible  <bruno@clisp.org>
59784
59785         * modules/localename-tests: New file.
59786         * tests/test-localename.c: New file.
59787
59788         New module 'localename'.
59789         * lib/localename.h: New file.
59790         * lib/localename.c: New file, from GNU gettext.
59791         * m4/localename.m4: New file.
59792         * modules/localename: New file.
59793
59794 2007-06-07  Bruno Haible  <bruno@clisp.org>
59795
59796         Work around the lack of <wchar.h> on some builds of uClibc.
59797         * doc/headers/wchar.texi: Update.
59798         * lib/wchar_.h: Include <wchar.h> only if it exists.
59799         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59800         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59801         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59802         doesn't exist.
59803         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59804         * modules/mbfile (Depends-on): Add wchar.
59805         * modules/mbiter (Depends-on): Likewise.
59806         * modules/mbuiter (Depends-on): Likewise.
59807         Reported by Simon Josefsson.
59808
59809 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59810
59811         Work around problem reported by Steven M. Schweda in
59812         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59813         Tru64 5.1B with the Compaq compiler environment installed declares
59814         an 'isblank' function but does not define it in the C library.
59815         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59816         * lib/regex_internal.h (isblank): Likewise.
59817         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59818         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59819
59820 2007-06-05  Bruno Haible  <bruno@clisp.org>
59821
59822         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59823         ia64.
59824         * modules/printf-safe: New file.
59825         * modules/fprintf-posix (Depends-on): Add printf-safe.
59826         * modules/printf-posix (Depends-on): Likewise.
59827         * modules/snprintf-posix (Depends-on): Likewise.
59828         * modules/sprintf-posix (Depends-on): Likewise.
59829         * modules/vasnprintf-posix (Depends-on): Likewise.
59830         * modules/vasprintf-posix (Depends-on): Likewise.
59831         * modules/vfprintf-posix (Depends-on): Likewise.
59832         * modules/vprintf-posix (Depends-on): Likewise.
59833         * modules/vsnprintf-posix (Depends-on): Likewise.
59834         * modules/vsprintf-posix (Depends-on): Likewise.
59835         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59836         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59837         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59838         "no" on i386, x86_64, ia64.
59839         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59840         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59841         on i386, x86_64, ia64.
59842         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59843         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59844         on i386, x86_64, ia64.
59845         * tests/test-vasnprintf-posix.c: Include float.h.
59846         (LDBL80_WORDS): New macro.
59847         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59848         on i386, x86_64, ia64.
59849         * tests/test-vasprintf-posix.c: Include float.h.
59850         (LDBL80_WORDS): New macro.
59851         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59852         on i386, x86_64, ia64.
59853         * tests/test-snprintf-posix.c: Include float.h.
59854         * tests/test-sprintf-posix.c: Likewise.
59855         * tests/test-vsnprintf-posix.c: Likewise.
59856         * tests/test-vsprintf-posix.c: Likewise.
59857
59858 2007-06-05  Bruno Haible  <bruno@clisp.org>
59859
59860         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59861         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59862         non-IEEE numbers on i386, x86_64, ia64.
59863         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59864         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59865         * tests/test-isnanl.h: Include float.h.
59866         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59867
59868 2007-06-05  Bruno Haible  <bruno@clisp.org>
59869
59870         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59871         also the %a / %A. Handle the %a / %A code before this extra handling.
59872
59873 2007-06-05  Bruno Haible  <bruno@clisp.org>
59874
59875         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59876         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59877
59878 2007-06-05  Bruno Haible  <bruno@clisp.org>
59879
59880         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59881         typo in variable name.
59882
59883 2007-06-05  Eric Blake  <ebb9@byu.net>
59884
59885         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59886         Reported by Simon Josefsson.
59887
59888 2007-06-04  Bruno Haible  <bruno@clisp.org>
59889
59890         Avoid test failures on some PowerPC platforms.
59891         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59892         Define differently for PowerPC.
59893         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59894         Reported by Gary V. Vaughan <gary@gnu.org>.
59895
59896 2007-06-02  Bruno Haible  <bruno@clisp.org>
59897
59898         Fix test-stdint failure on FreeBSD/ia64.
59899         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59900         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59901         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59902         * doc/headers/stdint.texi: Update.
59903
59904 2007-06-01  Bruno Haible  <bruno@clisp.org>
59905
59906         * tests/test-binary-io.c (main): Pass a third argument to open().
59907         Reported by Gary V. Vaughan <gary@gnu.org>.
59908
59909 2007-06-01  Bruno Haible  <bruno@clisp.org>
59910
59911         * doc/functions/frexpl.texi: Update for mingw.
59912
59913 2007-06-01  Bruno Haible  <bruno@clisp.org>
59914
59915         * tests/test-lseek.c (main): Disable test of errno for invalid third
59916         argument.
59917         * doc/functions/lseek.texi: Update.
59918         Reported by Gary V. Vaughan <gary@gnu.org>.
59919
59920 2007-05-28  Bruno Haible  <bruno@clisp.org>
59921
59922         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59923
59924 2007-05-31  Eric Blake  <ebb9@byu.net>
59925
59926         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59927         cross compiling.
59928
59929 2007-05-30  Eric Blake  <ebb9@byu.net>
59930         and Bruno Haible  <bruno@clisp.org>
59931
59932         Work around mingw test failures exposed by m4-1.4.9b.
59933         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59934         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59935         moment.
59936
59937 2007-05-30  Bruno Haible  <bruno@clisp.org>
59938
59939         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59940         assuming that they are closed. Needed on HP-UX 11.
59941
59942 2007-05-29  Bruno Haible  <bruno@clisp.org>
59943
59944         Fix a problem with #include_next.
59945         * lib/dirent_.h: Split the double-inclusion guard.
59946         * lib/fcntl_.h: Likewise.
59947         * lib/float_.h: Likewise.
59948         * lib/iconv_.h: Likewise.
59949         * lib/inttypes_.h: Likewise.
59950         * lib/locale_.h: Likewise.
59951         * lib/math_.h: Likewise.
59952         * lib/netinet_in_.h: Likewise.
59953         * lib/search_.h: Likewise.
59954         * lib/signal_.h: Likewise.
59955         * lib/stdint_.h: Likewise.
59956         * lib/stdio_.h: Likewise.
59957         * lib/stdlib_.h: Likewise.
59958         * lib/string_.h: Likewise.
59959         * lib/sys_select_.h: Likewise.
59960         * lib/sys_socket_.h: Likewise.
59961         * lib/sys_stat_.h: Likewise.
59962         * lib/sys_time_.h: Likewise.
59963         * lib/sysexits_.h: Likewise.
59964         * lib/time_.h: Likewise.
59965         * lib/unistd_.h: Likewise.
59966         * lib/wchar_.h: Likewise.
59967         * lib/wctype_.h: Likewise.
59968
59969 2007-05-29  Bruno Haible  <bruno@clisp.org>
59970
59971         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59972         for the moment.
59973
59974 2007-05-29  Bruno Haible  <bruno@clisp.org>
59975
59976         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59977         invocation.
59978         Reported by Eric Blake.
59979
59980 2007-05-29  Bruno Haible  <bruno@clisp.org>
59981
59982         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59983         compiling case.
59984
59985 2007-05-29  Eric Blake  <ebb9@byu.net>
59986             Bruno Haible  <bruno@clisp.org>
59987
59988         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59989         cross compiles.
59990
59991 2007-05-28  Eric Blake  <ebb9@byu.net>
59992
59993         * modules/closein-tests (test_closein_LDADD): Support test on
59994         cygwin with libtool.
59995
59996 2007-05-28  Bruno Haible  <bruno@clisp.org>
59997
59998         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59999         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60000         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60001         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60002         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60003         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60004         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60005         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60006         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60007
60008 2007-05-28  Eric Blake  <ebb9@byu.net>
60009
60010         Unconditionally include <config.h> in unit tests.
60011         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60012         * tests/test-allocsa.c, tests/test-arcfour.c,
60013         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60014         tests/test-array_list.c, tests/test-array_oset.c,
60015         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60016         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60017         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60018         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60019         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60020         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60021         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60022         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60023         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60024         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60025         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60026         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60027         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60028         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60029         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60030         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60031         test-md5.c, test-memmem.c, test-printf-posix.c,
60032         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60033         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60034         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60035         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60036         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60037         test-vasnprintf-posix2.c, test-vasnprintf.c,
60038         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60039         test-vfprintf-posix.c, test-vprintf-posix.c,
60040         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60041         test-xvasprintf.c: Likewise.
60042
60043 2007-05-28  Bruno Haible  <bruno@clisp.org>
60044
60045         * gnulib-tool (func_import): Remember the --with-tests command-line
60046         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60047         Reported by Eric Blake.
60048
60049 2007-05-28  Bruno Haible  <bruno@clisp.org>
60050
60051         * modules/ftell-tests: New file.
60052         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60053         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60054
60055         * lib/ftell.c: New file.
60056         * modules/ftell: New file.
60057         * m4/ftell.m4: New file.
60058         * doc/functions/ftell.texi: Update.
60059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60060         REPLACE_FTELL.
60061         * lib/stdio_.h (rpl_ftell): New declaration.
60062         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60063         REPLACE_FTELL.
60064
60065 2007-05-28  Eric Blake  <ebb9@byu.net>
60066
60067         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60068
60069 2007-05-28  Bruno Haible  <bruno@clisp.org>
60070
60071         * modules/fseek-tests: New file.
60072         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60073         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60074
60075         * lib/fseek.c: New file.
60076         * modules/fseek: New file.
60077         * m4/fseek.m4: New file.
60078         * doc/functions/fseek.texi: Update.
60079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60080         REPLACE_FSEEK.
60081         * lib/stdio_.h (rpl_fseek): New declaration.
60082         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60083         REPLACE_FSEEK.
60084
60085 2007-05-28  Bruno Haible  <bruno@clisp.org>
60086
60087         * lib/stdio_.h (fflush): More comments.
60088
60089 2007-05-28  Bruno Haible  <bruno@clisp.org>
60090
60091         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60092         runtime test.
60093
60094 2007-05-28  Eric Blake  <ebb9@byu.net>
60095
60096         Improve lseek module.
60097         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60098         * lib/unistd_.h (lseek): Scale back link warning message.
60099         * tests/test-lseek.c: Beef up test.
60100         * tests/test-lseek.sh: Exercise more facets of lseek.
60101         Reported by Bruno Haible.
60102
60103 2007-05-28  Bruno Haible  <bruno@clisp.org>
60104
60105         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60106         to define.
60107
60108 2007-05-27  Bruno Haible  <bruno@clisp.org>
60109
60110         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60111
60112 2007-05-27  Bruno Haible  <bruno@clisp.org>
60113
60114         * modules/openmp: New file.
60115         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60116         Noah Misch.
60117
60118 2007-05-26  Bruno Haible  <bruno@clisp.org>
60119
60120         * modules/chdir-long (Depends-on): Add fchdir.
60121         * modules/chdir-safer (Depends-on): Likewise.
60122         * modules/fts (Depends-on): Likewise.
60123         * modules/fts-lgpl (Depends-on): Likewise.
60124         * modules/openat (Depends-on): Likewise.
60125         * modules/savewd (Depends-on): Likewise.
60126
60127 2007-05-24  Eric Blake  <ebb9@byu.net>
60128
60129         Fix lseek on mingw.
60130         * modules/lseek: New module.
60131         * m4/lseek.m4: New file.
60132         * lib/lseek.c: New file.
60133         * modules/lseek-tests: New file.
60134         * tests/test-lseek.c: New file.
60135         * tests/test-lseek.sh: New file.
60136         * MODULES.html.sh: Document lseek module.
60137         * modules/fflush (Depends-on): Add lseek, fseeko.
60138         * modules/fseeko (Depends-on): Likewise.
60139         * modules/ftello (Depends-on): Likewise.
60140         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60141         broken.
60142         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60143         broken.
60144         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60145         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60146         * lib/ftello.c (rpl_ftello): Likewise.
60147         * tests/test-fseeko.c (main): Test this.
60148         * tests/test-fseeko.sh: Likewise.
60149         * tests/test-ftello.c (main): Likewise.
60150         * tests/test-ftello.sh: Likewise.
60151         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60152         implies replacing fseek.
60153         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60154         HAVE_FTELLO.
60155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60156         * modules/unistd (Makefile.am): Likewise.
60157         * lib/unistd_.h (lseek): Declare a replacement.
60158         * doc/functions/lseek.texi (lseek): Document this fix.
60159         * doc/functions/fseek.texi (fseek): Likewise.
60160         * doc/functions/ftell.texi (ftell): Likewise.
60161
60162 2007-05-24  Bruno Haible  <bruno@clisp.org>
60163
60164         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60165         in the printed representation of a NaN.
60166         * tests/test-vasprintf-posix.c (test_function): Likewise.
60167         * tests/test-snprintf-posix.h (test_function): Likewise.
60168         * tests/test-sprintf-posix.h (test_function): Likewise.
60169         Reported by Eric Blake.
60170
60171 2007-05-23  Eric Blake  <ebb9@byu.net>
60172
60173         Fix fseeko/ftello on cygwin 1.5.24.
60174         * doc/functions/fseeko.texi (fseeko): Document the fix.
60175         * doc/functions/ftello.texi (ftello): Document the fix.
60176         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60177         * doc/functions/stdout.text (stdout): New file.
60178         * doc/functions/stderr.text (stderr): New file.
60179         * doc/gnulib.texi (Function Substitutes): Use new files.
60180         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60181         prior to 1.7.0.
60182         * tests/test-ftello.c (main): Likewise for ftello.
60183         * tests/test-fseeko.sh: New file.
60184         * tests/test-ftello.sh: New file.
60185         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60186         with seekable stdin.
60187         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60188         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60189         (gl_REPLACE_FSEEKO): New macro.
60190         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60191         * modules/fseeko (Files): Distribute fseeko.c.
60192         * modules/ftello (Files): Distribute ftello.c.
60193         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60194         mode.
60195         * lib/ftello.c (rpl_ftello): New file.
60196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60197         fseeko, ftello.
60198         (gl_STDIN_LARGE_OFFSET): New macro.
60199         * modules/stdio (Makefile.am): Perform the replacement.
60200         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60201
60202 2007-05-23  Bruno Haible  <bruno@clisp.org>
60203
60204         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60205         GNULIB_POSIXCHECK is defined.
60206
60207 2007-05-21  Bruno Haible  <bruno@clisp.org>
60208
60209         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60210         Check also the output for NaN arguments. When cross-compiling, guess
60211         no on IRIX.
60212         * lib/vasnprintf.c: Update comments.
60213         * tests/test-vasnprintf-posix.c (strisnan): New function.
60214         (test_function): Use it.
60215         * tests/test-vasprintf-posix.c (strisnan): New function.
60216         (test_function): Use it.
60217         * tests/test-snprintf-posix.h (strisnan): New function.
60218         (test_function): Use it.
60219         * tests/test-sprintf-posix.h (strisnan): New function.
60220         (test_function): Use it.
60221         Reported by Eric Blake.
60222
60223 2007-05-20  Bruno Haible  <bruno@clisp.org>
60224
60225         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60226         numbers that fails on BeOS.
60227         * doc/functions/frexpl.texi: Update.
60228
60229 2007-05-20  Jim Meyering  <jim@meyering.net>
60230
60231         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60232         forced upon us by glibc-2.6.
60233
60234 2007-05-20  Bruno Haible  <bruno@clisp.org>
60235
60236         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60237         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60238         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60239         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60240         NEED_PRINTF_INFINITE.
60241         (is_infinitel): New function.
60242         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60243         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60244         gl_PREREQ_VASNPRINTF_INFINITE.
60245         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60246         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60247         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60248         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60249         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60250         gl_PREREQ_VASNPRINTF_INFINITE.
60251         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60252         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60253         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60254         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60255         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60256         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60257         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60258         * doc/functions/fprintf.texi: Update.
60259         * doc/functions/printf.texi: Update.
60260         * doc/functions/snprintf.texi: Update.
60261         * doc/functions/sprintf.texi: Update.
60262         * doc/functions/vfprintf.texi: Update.
60263         * doc/functions/vprintf.texi: Update.
60264         * doc/functions/vsnprintf.texi: Update.
60265         * doc/functions/vsprintf.texi: Update.
60266
60267 2007-05-20  Bruno Haible  <bruno@clisp.org>
60268
60269         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60270         was not found in libc.
60271         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60272
60273 2007-05-20  Bruno Haible  <bruno@clisp.org>
60274
60275         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60276         printed as "-nan" instead of "nan".
60277         * tests/test-vasprintf-posix.c (test_function): Likewise.
60278         * tests/test-snprintf-posix.h (test_function): Likewise.
60279         * tests/test-sprintf-posix.h (test_function): Likewise.
60280         Needed for HP-UX 11.
60281
60282 2007-05-20  Jim Meyering  <jim@meyering.net>
60283
60284         Fix buggy test for the fchownat-deref bug.
60285         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60286         symlink required for the run-test.  Without it, this test would
60287         always declare that fchownat doesn't work, and client code would
60288         unnecessarily use the replacement function with fixed libc.
60289         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60290         Reported by Greg Schafer.
60291
60292 2007-05-19  Bruno Haible  <bruno@clisp.org>
60293
60294         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60295         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60296         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60297         Needed for IRIX 6.5 and Solaris 2.5.1.
60298
60299 2007-05-19  Bruno Haible  <bruno@clisp.org>
60300
60301         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60302         (test_function): Skip tests involving -0.0 on platforms where
60303         -0.0 = 0.0.
60304         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60305         (test_function): Skip tests involving -0.0 on platforms where
60306         -0.0 = 0.0.
60307         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60308         (test_function): Skip tests involving -0.0 on platforms where
60309         -0.0 = 0.0.
60310         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60311         (test_function): Skip tests involving -0.0 on platforms where
60312         -0.0 = 0.0.
60313         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60314         tests.
60315         * tests/test-printf-posix.h (test_function): Likewise.
60316         * tests/test-printf-posix.output: Remove all -0.0 related results.
60317         Needed for IRIX 6.5.
60318
60319 2007-05-19  Bruno Haible  <bruno@clisp.org>
60320
60321         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60322         printed as "nan0x7fffffff" instead of "nan".
60323         * tests/test-vasprintf-posix.c (test_function): Likewise.
60324         * tests/test-snprintf-posix.h (test_function): Likewise.
60325         * tests/test-sprintf-posix.h (test_function): Likewise.
60326         * tests/test-fprintf-posix.h (NaN): Remove macro.
60327         (test_function): Remove all NaN related tests.
60328         * tests/test-printf-posix.h (NaN): Remove macro.
60329         (test_function): Remove all NaN related tests.
60330         * tests/test-printf-posix.output: Remove all NaN related results.
60331         Needed for IRIX 6.5.
60332
60333 2007-05-19  Bruno Haible  <bruno@clisp.org>
60334
60335         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60336         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60337
60338 2007-05-19  Bruno Haible  <bruno@clisp.org>
60339
60340         * lib/float_.h: New file.
60341         * m4/float_h.m4: New file.
60342         * modules/float: New file.
60343         * modules/isnanl (Dependencies): Add float.
60344         * modules/isnanl-nolibm (Dependencies): Likewise.
60345         * modules/mathl (Dependencies): Likewise.
60346         * modules/printf-frexpl (Dependencies): Likewise.
60347         * modules/signbit (Dependencies): Likewise.
60348         * modules/vasnprintf (Dependencies): Likewise.
60349         * doc/headers/float.texi: Update.
60350
60351 2007-05-19  Jim Meyering  <jim@meyering.net>
60352
60353         * lib/utimens.c (gl_futimens): Rename from futimens,
60354         now that glibc-2.6 declares futimens.
60355         * lib/utimens.h: Likewise.
60356
60357 2007-05-19  Bruno Haible  <bruno@clisp.org>
60358
60359         Avoid test failures on mingw.
60360         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60361         * tests/test-printf-posix.sh: Likewise.
60362         * tests/test-vfprintf-posix.sh: Likewise.
60363         * tests/test-vprintf-posix.sh: Likewise.
60364
60365 2007-05-19  Bruno Haible  <bruno@clisp.org>
60366
60367         Fix *printf result for NaN, Inf, -0.0 on mingw.
60368         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60369         * lib/vasnprintf.c: Include math.h and isnan.h.
60370         (is_infinite_or_zero): New function.
60371         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60372         values in the %f, %F, %e, %E, %g, %G directives.
60373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60374         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60375         gl_PRINTF_INFINITE and test its result. Invoke
60376         gl_PREREQ_VASNPRINTF_INFINITE.
60377         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60378         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60379         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60380         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60381         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60382         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60383         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60384         * doc/functions/fprintf.texi: Update.
60385         * doc/functions/printf.texi: Update.
60386         * doc/functions/snprintf.texi: Update.
60387         * doc/functions/sprintf.texi: Update.
60388         * doc/functions/vfprintf.texi: Update.
60389         * doc/functions/vprintf.texi: Update.
60390         * doc/functions/vsnprintf.texi: Update.
60391         * doc/functions/vsprintf.texi: Update.
60392
60393 2007-05-19  Bruno Haible  <bruno@clisp.org>
60394
60395         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60396         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60397         Instead of multiplying with 10^k, set extra_zeroes to k.
60398         (scale10_round_long_double): Remove function.
60399
60400 2007-05-18  Bruno Haible  <bruno@clisp.org>
60401
60402         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60403         introduced on 2007-05-06.
60404
60405 2007-05-18  Bruno Haible  <bruno@clisp.org>
60406
60407         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60408         %g directives.
60409         * tests/test-vasprintf-posix.c (test_function): Likewise.
60410         * tests/test-snprintf-posix.h (test_function): Likewise.
60411         * tests/test-sprintf-posix.h (test_function): Likewise.
60412
60413 2007-05-18  Bruno Haible  <bruno@clisp.org>
60414
60415         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60416         (strmatch): New function.
60417         (test_function): Test the %f directive on numbers of various exponents.
60418         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60419         (strmatch): New function.
60420         (test_function): Test the %f directive on numbers of various exponents.
60421         * tests/test-snprintf-posix.h (strmatch): New function.
60422         (test_function): Test the %f directive on numbers of various exponents.
60423         * tests/test-sprintf-posix.h (strmatch): New function.
60424         (test_function): Test the %f directive on numbers of various exponents.
60425         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60426         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60427         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60428         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60429
60430 2007-05-18  Bruno Haible  <bruno@clisp.org>
60431
60432         Add support for 'long double' number output.
60433         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60434         * lib/vasnprintf.c: Include math.h and float+.h.
60435         (mp_limb_t): New type.
60436         (GMP_LIMB_BITS): New macro.
60437         (mp_twolimb_t): New type.
60438         (GMP_TWOLIMB_BITS): New macro.
60439         (mpn_t): New type.
60440         (multiply, divide, convert_to_decimal, decode_long_double,
60441         scale10_round_long_double, scale10_round_decimal_long_double,
60442         floorlog10l): New functions.
60443         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60444         for the %f, %F, %e, %E, %g, %G directives.
60445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60446         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60447         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60448         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60449         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60450         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60451         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60452         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60453         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60456         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60457         * modules/snprintf-posix (Depends-on): Likewise.
60458         * modules/sprintf-posix (Depends-on): Likewise.
60459         * modules/vasnprintf-posix (Depends-on): Likewise.
60460         * modules/vasprintf-posix (Depends-on): Likewise.
60461         * modules/vfprintf-posix (Depends-on): Likewise.
60462         * modules/vsnprintf-posix (Depends-on): Likewise.
60463         * modules/vsprintf-posix (Depends-on): Likewise.
60464         * modules/vasnprintf (Files): Add lib/float+.h.
60465         * doc/functions/fprintf.texi: Update.
60466         * doc/functions/printf.texi: Update.
60467         * doc/functions/snprintf.texi: Update.
60468         * doc/functions/sprintf.texi: Update.
60469         * doc/functions/vfprintf.texi: Update.
60470         * doc/functions/vprintf.texi: Update.
60471         * doc/functions/vsnprintf.texi: Update.
60472         * doc/functions/vsprintf.texi: Update.
60473
60474 2007-05-18  Bruno Haible  <bruno@clisp.org>
60475
60476         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60477
60478 2007-05-18  Bruno Haible  <bruno@clisp.org>
60479
60480         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60481         for printing 64-bit integers. Needed for mingw.
60482
60483 2007-05-18  Bruno Haible  <bruno@clisp.org>
60484
60485         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60486         gl_FUNC_FREXPL_WORKS.
60487         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60488
60489 2007-05-18  Bruno Haible  <bruno@clisp.org>
60490
60491         * modules/frexpl-nolibm-tests: New file.
60492
60493         * modules/frexpl-nolibm: New file.
60494         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60495
60496 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60497
60498         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60499         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60500         GCC 4.2, which otherwise issues a lot of warnings.
60501         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60502         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60503         Likewise.
60504         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60505         * modules/iconv_open (iconv.h): Likewise.
60506         * modules/locale (locale.h): Likewise.
60507         * modules/netinet_in (netinet/in.h): Likewise.
60508         * modules/sys_select (sys_select.h): Likewise.
60509         * modules/sys_socket (sys/socket.h): Likewise.
60510         * modules/sys_stat (sys/stat.h): Likewise.
60511         * modules/sysexits (sysexits.h): Likewise.
60512         * modules/unistd (unistd.h): Likewise.
60513
60514 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60515
60516         * modules/closein-tests (Makefile.am): Distribute
60517         `test-closein.sh'.
60518
60519 2007-05-17  Bruno Haible  <bruno@clisp.org>
60520
60521         * tests/test-printf-posix.output: Renamed from
60522         tests/test-fprintf-posix.out.
60523         * modules/fprintf-posix-tests: Update.
60524         * modules/printf-posix-tests: Update.
60525         * modules/vfprintf-posix-tests: Update.
60526         * modules/vprintf-posix-tests: Update.
60527         * tests/test-fprintf-posix.sh: Update.
60528         * tests/test-printf-posix.sh: Update.
60529         * tests/test-vfprintf-posix.sh: Update.
60530         * tests/test-vprintf-posix.sh: Update.
60531         Reported by Ralf Wildenhues.
60532
60533 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60534
60535         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60536         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60537         GCC 4.2, which otherwise issues a lot of warnings.
60538         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60539         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60540         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60541         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60542         it should no longer be needed.
60543         * lib/string_.h: Likewise.
60544         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60545         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60546         * modules/inttypes (inttypes.h): Likewise.
60547         * modules/math (math.h): Likewise.
60548         * modules/search (search.h): Likewise.
60549         * modules/signal (signal.h): Likewise.
60550         * modules/stdint (stdint.h): Likewise.
60551         * modules/stdio (stdio.h): Likewise.
60552         * modules/stdlib (stdlib.h): Likewise.
60553         * modules/string (string.h): Likewise.
60554         * modules/sys_time (sys/time.h): Likewise.
60555         * modules/time (time.h): Likewise.
60556         * modules/wchar (wchar.h): Likewise.
60557         * modules/wctype (wtype.h): Likewise.
60558
60559 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60560
60561         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60562
60563 2007-05-13  Bruno Haible  <bruno@clisp.org>
60564
60565         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60566         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60567         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60568         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60569         (gl_PREREQ_STRTOK_R): Don't require it here.
60570
60571 2007-05-13  Bruno Haible  <bruno@clisp.org>
60572
60573         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60574         when used in C++ mode.
60575
60576 2007-05-12  Bruno Haible  <bruno@clisp.org>
60577
60578         * lib/linebuffer.h: Tweak doc.
60579         * lib/linebuffer.c: Likewise.
60580
60581 2007-05-12  James Youngman  <jay@gnu.org>
60582
60583         * lib/linebuffer.c (readlinebuffer_delim): New function,
60584         like readlinebuffer, but use a caller-specified delimiter.
60585         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60586         as the delimiter.
60587         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60588
60589 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60590
60591         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60592         * modules/openat (Files): Remove openat-die.c.
60593         (Depends-on): Add openat-die.
60594         * modules/openat-die: New module.
60595
60596 2007-05-06  Bruno Haible  <bruno@clisp.org>
60597
60598         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60599         Update with info about Cygwin.
60600         * doc/functions/fprintf.texi: Update.
60601         * doc/functions/printf.texi: Update.
60602         * doc/functions/snprintf.texi: Update.
60603         * doc/functions/sprintf.texi: Update.
60604         * doc/functions/vfprintf.texi: Update.
60605         * doc/functions/vprintf.texi: Update.
60606         * doc/functions/vsnprintf.texi: Update.
60607         * doc/functions/vsprintf.texi: Update.
60608         Reported by Eric Blake.
60609
60610 2007-05-06  Bruno Haible  <bruno@clisp.org>
60611
60612         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60613         padding ourselves for the floating-point directives.
60614         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60615         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60616         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60617         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60618         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60619         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60620         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60621         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60622         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60623         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60624         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60625         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60626         * tests/test-snprintf-posix.h (test_function): Also check the width
60627         and some flags in the %f directive.
60628         * tests/test-sprintf-posix.h (test_function): Likewise.
60629         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60630         * tests/test-vasprintf-posix.c (test_function): Likewise.
60631         * doc/functions/fprintf.texi: Update.
60632         * doc/functions/printf.texi: Update.
60633         * doc/functions/snprintf.texi: Update.
60634         * doc/functions/sprintf.texi: Update.
60635         * doc/functions/vfprintf.texi: Update.
60636         * doc/functions/vprintf.texi: Update.
60637         * doc/functions/vsnprintf.texi: Update.
60638         * doc/functions/vsprintf.texi: Update.
60639
60640 2007-05-06  Bruno Haible  <bruno@clisp.org>
60641
60642         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60643         pass the ' flag character to sprintf or snprintf.
60644         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60647         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60648         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60649         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60650         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60651         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60652         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60653         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60654         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60655         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60656         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60657         flag.
60658         * tests/test-sprintf-posix.h (test_function): Likewise.
60659         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60660         * tests/test-vasprintf-posix.c (test_function): Likewise.
60661         * doc/functions/fprintf.texi: Update.
60662         * doc/functions/printf.texi: Update.
60663         * doc/functions/snprintf.texi: Update.
60664         * doc/functions/sprintf.texi: Update.
60665         * doc/functions/vfprintf.texi: Update.
60666         * doc/functions/vprintf.texi: Update.
60667         * doc/functions/vsnprintf.texi: Update.
60668         * doc/functions/vsprintf.texi: Update.
60669
60670 2007-05-01  Bruno Haible  <bruno@clisp.org>
60671
60672         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60673
60674 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60675
60676         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60677         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60678
60679 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60680
60681         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60682         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60683         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60684
60685 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60686
60687         * lib/argp-help.c (struct hol_entry): New member `ord'.
60688         (HOL_ENTRY_PTRCMP): Use ord for comparison
60689         (hol_sort): Initialize ord.
60690
60691 2007-05-01  Bruno Haible  <bruno@clisp.org>
60692
60693         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60694         Reported by Eric Blake.
60695         * doc/gnulib.texi (Function Substitutes): Update.
60696
60697 2007-05-01  Bruno Haible  <bruno@clisp.org>
60698
60699         * doc/functions.texi: Remove file, now redundant through
60700         doc/functions/*.texi.
60701
60702 2007-05-01  Bruno Haible  <bruno@clisp.org>
60703
60704         * modules/argp (Depends-on): Add sleep.
60705
60706 2007-05-01  Bruno Haible  <bruno@clisp.org>
60707
60708         * modules/sleep-tests: New file.
60709         * tests/test-sleep.c: New file.
60710
60711         * modules/sleep: New file.
60712         * lib/sleep.c: New file.
60713         * m4/sleep.m4: New file.
60714         * lib/unistd_.h (sleep): New declaration.
60715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60716         HAVE_SLEEP.
60717         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60718         * doc/functions/sleep.texi: Document the sleep module.
60719
60720 2007-05-01  Bruno Haible  <bruno@clisp.org>
60721
60722         * lib/sigprocmask.h: Remove file.
60723         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60724         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60725         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60726         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60727         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60728         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60729         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60730         HAVE_SIGSET_T as a shell variable.
60731         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60732         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60733         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60734         (Depends-on): Add signal. Remove verify.
60735         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60736         (Include): Mention <signal.h> instead of sigprocmask.h.
60737         * NEWS: Mention the change.
60738         * lib/fatal-signal.c: Don't include sigprocmask.h.
60739
60740 2007-05-01  Bruno Haible  <bruno@clisp.org>
60741
60742         * modules/signal: New file.
60743         * lib/signal_.h: New file.
60744         * m4/signal_h.m4: New file.
60745
60746 2007-05-01  Bruno Haible  <bruno@clisp.org>
60747
60748         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60749         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60750         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60751         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60752
60753 2007-05-01  Bruno Haible  <bruno@clisp.org>
60754
60755         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60756         configure time.
60757         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60758         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60759         * modules/sys_stat (Makefile.am): Substitute their values into
60760         sys/stat.h.
60761
60762 2007-05-01  Bruno Haible  <bruno@clisp.org>
60763
60764         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60765         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60766         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60767
60768 2007-05-01  Bruno Haible  <bruno@clisp.org>
60769
60770         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60771         'assert' module here.
60772
60773 2007-05-01  Bruno Haible  <bruno@clisp.org>
60774
60775         * doc/functions/*.texi: New files.
60776         * doc/functions/google-ranking.txt: New file.
60777         * doc/gnulib.texi (Function Substitutes): New chapter.
60778         (ctime, inet_ntoa): Remove sections.
60779         * doc/ctime.texi: Remove file.
60780         * doc/inet_ntoa.texi: Remove file.
60781         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60782         dependencies.
60783         (%.info): New rule, specifying a --reference-limit.
60784
60785 2007-05-01  Bruno Haible  <bruno@clisp.org>
60786
60787         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60788
60789 2007-05-01  Bruno Haible  <bruno@clisp.org>
60790
60791         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60792         the portability of 'mkdir' to mingw systems.
60793
60794 2007-05-01  Bruno Haible  <bruno@clisp.org>
60795
60796         * doc/headers/google-ranking.txt: New file.
60797
60798 2007-04-30  Eric Blake  <ebb9@byu.net>
60799
60800         Prefer fseeko to fseek.
60801         * modules/getpass (Depends-on): Add fseeko.
60802         * lib/getpass.c (getpass): Use fseeko, not fseek.
60803
60804 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60805
60806         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60807         assumes the sorting is stable, while most qsort implementations
60808         are not.  Use argument addresses to ensure they never compare as
60809         equal.
60810
60811         * tests/test-argp-2.sh (usage-indent test): Fix output
60812         (func_compare): Restore diff options
60813         * tests/test-argp.c: Restore #include "progname.h"
60814
60815 2007-04-29  Bruno Haible  <bruno@clisp.org>
60816
60817         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60819         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60820         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60821         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60822         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60823         (TESTS, check_PROGRAMS): Add test-snprintf.
60824         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60825         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60826         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60827         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60828         assertions that fail on HP-UX, OSF/1, or IRIX.
60829         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60830
60831 2007-04-29  Bruno Haible  <bruno@clisp.org>
60832
60833         * MODULES.html.sh (posix_functions): Remove 'contents'.
60834
60835 2007-04-29  Karl Berry  <karl@gnu.org>
60836
60837         * config/srclist.txt (gendocs_template_min): new entry.
60838
60839 2007-04-29  Bruno Haible  <bruno@clisp.org>
60840
60841         Work around fpurge bug on BSD systems.
60842         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60843         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60844         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60845         fpurge to rpl_fpurge if the system already has this function.
60846         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60847         the case where the system already has this function. Correct invariants
60848         on BSD systems.
60849         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60850         BSD systems.
60851
60852 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60853
60854         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60855         proposed by Sven Verdoolaege.
60856
60857         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60858         options.
60859         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60860         (usage and help tests): Update
60861
60862 2007-04-29  Bruno Haible  <bruno@clisp.org>
60863
60864         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60865         Print more information in case of failure. Disable a test on BeOS.
60866
60867 2007-04-29  Bruno Haible  <bruno@clisp.org>
60868
60869         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60870         This helps debugging on systems on which no gdb is available.
60871
60872 2007-04-29  Bruno Haible  <bruno@clisp.org>
60873
60874         * lib/freading.h: Improve comments.
60875         * lib/fwriting.h: Likewise.
60876         * tests/test-freading.c (main): Don't check freading immediately after
60877         repositioning. Needed for glibc.
60878
60879 2007-04-29  Bruno Haible  <bruno@clisp.org>
60880
60881         * lib/freading.c (freading): Trivial simplification.
60882
60883 2007-04-28  Bruno Haible  <bruno@clisp.org>
60884
60885         * tests/test-fwriting.c (main): Also test the interaction between
60886         fflush and fwriting.
60887         * modules/fwriting-tests (Depends-on): Add fflush.
60888
60889         * tests/test-freading.c (main): Also test the interaction between
60890         fflush and freading.
60891         * modules/freading-tests (Depends-on): Add fflush.
60892
60893 2007-04-28  Bruno Haible  <bruno@clisp.org>
60894
60895         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60896         fseeko and ftello.
60897         Suggested by Eric Blake.
60898
60899 2007-04-28  Jim Meyering  <jim@meyering.net>
60900
60901         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60902         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60903         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60904
60905 2007-04-27  Eric Blake  <ebb9@byu.net>
60906
60907         * doc/headers/assert.texi (assert.h): Document assert module use.
60908
60909 2007-04-27  Bruno Haible  <bruno@clisp.org>
60910
60911         * doc/headers/*.texi: New files.
60912         * doc/gnulib.texi (Header File Substitutes): New chapter.
60913         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60914         dependencies.
60915         (standards.info ,standards.html, standards.dvi): Update dependencies.
60916         (mostlyclean, clean): New targets.
60917
60918 2007-04-27  Bruno Haible  <bruno@clisp.org>
60919
60920         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60921         * modules/sysexits (Files, Makefile.am): Update.
60922
60923         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60924         * modules/sys_socket (Files, Makefile.am): Update.
60925
60926         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60927         * modules/sys_stat (Files, Makefile.am): Update.
60928
60929 2007-04-27  Eric Blake  <ebb9@byu.net>
60930
60931         * lib/freading.h: Improve comments.
60932         * lib/fwriting.h: Likewise.
60933         * lib/fflush.c: Likewise.
60934
60935         Fix closein for mingw.
60936         * modules/closein-tests: Add tests for closein.
60937         * tests/test-closein.c: New file.
60938         * tests/test-closein.sh: Likewise.
60939         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60940         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60941
60942 2007-04-27  Bruno Haible  <bruno@clisp.org>
60943
60944         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60945         version is < 6.
60946         * lib/math_.h [__DECC]: Likewise.
60947         * lib/stdio_.h [__DECC]: Likewise.
60948         * lib/stdlib_.h [__DECC]: Likewise.
60949         * lib/string_.h [__DECC]: Likewise.
60950         * lib/time_.h [__DECC]: Likewise.
60951         * lib/wchar_.h [__DECC]: Likewise.
60952         * lib/wctype_.h [__DECC]: Likewise.
60953
60954 2007-04-27  Bruno Haible  <bruno@clisp.org>
60955
60956         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60957
60958 2007-04-27  Bruno Haible  <bruno@clisp.org>
60959
60960         * lib/fflush.c: Add comments.
60961         * modules/fpurge-tests (Depends-on): Add fflush.
60962         * modules/freadable-tests (Depends-on): Likewise.
60963         * modules/fwritable-tests (Depends-on): Likewise.
60964
60965 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60966
60967         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60968         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60969         Report by Bruno Haible <bruno@clisp.org>.
60970
60971 2007-04-26  Eric Blake  <ebb9@byu.net>
60972
60973         Fix fflush on mingw.
60974         * modules/fflush (Depends-on): Add freading.
60975         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60976         but unread data.
60977
60978 2007-04-26  Eric Blake  <ebb9@byu.net>
60979         and Bruno Haible  <bruno@clisp.org>
60980
60981         Implement freading and fwriting.
60982         * lib/freading.c: New file.
60983         * lib/freading.h: Likewise.
60984         * m4/freading.m4: Likewise.
60985         * modules/freading: Likewise.
60986         * modules/freading-tests: Likewise.
60987         * tests/test-freading.c: Likewise.
60988         * lib/fwriting.c: New file.
60989         * lib/fwriting.h: Likewise.
60990         * m4/fwriting.m4: Likewise.
60991         * modules/fwriting: Likewise.
60992         * modules/fwriting-tests: Likewise.
60993         * tests/test-fwriting.c: Likewise.
60994         * MODULES.html.sh (File stream based Input/Output): Mention them.
60995
60996 2007-04-26  Bruno Haible  <bruno@clisp.org>
60997
60998         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60999         'long' when we assume it.
61000         Suggested by Eric Blake.
61001
61002 2007-04-26  Bruno Haible  <bruno@clisp.org>
61003
61004         Ensure fseeko, ftello are declared on glibc systems.
61005         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61006         * modules/fseeko (configure.ac-early): Likewise.
61007         * modules/ftello (configure.ac-early): Likewise.
61008         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61009         AC_FUNC_FSEEKO for this.
61010         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61011         (gl_CHECK_FSEEKO): Remove macro.
61012
61013 2007-04-26  Bruno Haible  <bruno@clisp.org>
61014
61015         * tests/test-fflush.c (main): Also check the ftell result after
61016         fflush and fseek/fseeko.
61017         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61018         file descriptor position cache in the stream.
61019         * lib/fseeko.c (rpl_fseeko): Likewise.
61020
61021 2007-04-26  Bruno Haible  <bruno@clisp.org>
61022
61023         * modules/fflush-tests (Depends-on): Add fseeko.
61024
61025 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61026             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61027
61028         * lib/argz_.h: ensure error_t definition is obtained in same
61029         mechanism system argz.h would have.
61030         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61031         argz facilities are known bad.  Err on the side of caution if
61032         cross-compiling.
61033
61034 2007-04-25  Eric Blake  <ebb9@byu.net>
61035
61036         * lib/fpurge.c (includes): Use stdlib.h for free.
61037         * tests/test-fflush.c (main): Also test fflush-fseeko.
61038
61039 2007-04-25  Bruno Haible  <bruno@clisp.org>
61040
61041         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61042         * lib/fseeko.c: New file.
61043         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61044         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61045         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61046         gl_FUNC_FSEEKO.
61047         (gl_FUNC_FSEEKO): Invoke it.
61048         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61049         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61050         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61051
61052 2007-04-25  Bruno Haible  <bruno@clisp.org>
61053
61054         * modules/fflush (Depends-on): Add ftello.
61055
61056 2007-04-25  Bruno Haible  <bruno@clisp.org>
61057
61058         * modules/ftello-tests: New file.
61059         * tests/test-ftello.c: New file.
61060
61061         * modules/ftello: New file.
61062         * m4/ftello.m4: New file.
61063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61064         HAVE_FTELLO.
61065         * lib/stdio_.h (ftello): New declaration.
61066         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61067         HAVE_FTELLO.
61068
61069 2007-04-25  Bruno Haible  <bruno@clisp.org>
61070
61071         * modules/fseeko-tests: New file.
61072         * tests/test-fseeko.c: New file.
61073
61074         * modules/fseeko: New file.
61075         * m4/fseeko.m4: New file.
61076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61077         HAVE_FSEEKO.
61078         * lib/stdio_.h (fseeko): New declaration.
61079         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61080         HAVE_FSEEKO.
61081
61082 2007-04-25  Bruno Haible  <bruno@clisp.org>
61083
61084         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61085
61086 2007-04-25  Bruno Haible  <bruno@clisp.org>
61087
61088         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61089         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61090         * tests/test-unistd.c: Likewise.
61091         * tests/test-fcntl.c: Likewise.
61092
61093 2007-04-23  Eric Blake  <ebb9@byu.net>
61094
61095         * lib/fflush.c: Fix missing include.
61096         Reported by Bruno Haible.
61097
61098 2007-04-23  Bruno Haible  <bruno@clisp.org>
61099
61100         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61101         Reported by Eric Blake.
61102
61103 2007-04-23  Bruno Haible  <bruno@clisp.org>
61104
61105         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61106
61107 2007-04-23  Bruno Haible  <bruno@clisp.org>
61108
61109         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61110
61111 2007-04-23  Bruno Haible  <bruno@clisp.org>
61112
61113         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61114         Needed on HP-UX 11.
61115
61116 2007-04-16  Eric Blake  <ebb9@byu.net>
61117
61118         Make fflush rely on fpurge.
61119         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61120         open coding all variants.
61121         * modules/fflush (Depends-on): Add fpurge and unistd.
61122         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61123         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61124
61125         Fix --with-tests compilation on cygwin.
61126         * modules/argmatch-tests (Makefile.am): List gnulib library first
61127         in LDADD.
61128         * modules/argp-tests (Makefile.am): Likewise.
61129         * modules/array-list-tests (Makefile.am): Likewise.
61130         * modules/array-oset-tests (Makefile.am): Likewise.
61131         * modules/avltree-list-tests (Makefile.am): Likewise.
61132         * modules/avltree-oset-tests (Makefile.am): Likewise.
61133         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61134         * modules/carray-list-tests (Makefile.am): Likewise.
61135         * modules/dirname-tests (Makefile.am): Likewise.
61136         * modules/frexp-tests (Makefile.am): Likewise.
61137         * modules/isnanl-tests (Makefile.am): Likewise.
61138         * modules/linked-list-tests (Makefile.am): Likewise.
61139         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61140         * modules/lock-tests (Makefile.am): Likewise.
61141         * modules/rbtree-list-tests (Makefile.am): Likewise.
61142         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61143         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61144         * modules/tls-tests (Makefile.am): Likewise.
61145         * modules/tsearch-tests (Makefile.am): Likewise.
61146         * modules/xvasprintf-tests (Makefile.am): Likewise.
61147
61148         Fix fpurge for cygwin.
61149         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61150         value.
61151         * modules/fpurge-tests (Depends-on): Clean up trash.
61152
61153 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61154
61155         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61156
61157         * m4/autobuild.m4: Re-indent.
61158
61159 2007-04-13  Bruno Haible  <bruno@clisp.org>
61160
61161         * modules/fpurge-tests: New file.
61162         * tests/test-fpurge.c: New file.
61163
61164         * modules/fpurge: New file.
61165         * lib/fpurge.h: New file.
61166         * lib/fpurge.c: New file.
61167         * m4/fpurge.m4: New file.
61168
61169 2007-04-13  Bruno Haible  <bruno@clisp.org>
61170
61171         * modules/fbufmode-tests: New file.
61172         * tests/test-fbufmode.c: New file.
61173
61174         * modules/fbufmode: New file.
61175         * lib/fbufmode.h: New file.
61176         * lib/fbufmode.c: New file.
61177         * m4/fbufmode.m4: New file.
61178
61179 2007-04-13  Bruno Haible  <bruno@clisp.org>
61180
61181         * modules/fwritable-tests: New file.
61182         * tests/test-fwritable.c: New file.
61183
61184         * modules/fwritable: New file.
61185         * lib/fwritable.h: New file.
61186         * lib/fwritable.c: New file.
61187         * m4/fwritable.m4: New file.
61188
61189 2007-04-13  Bruno Haible  <bruno@clisp.org>
61190
61191         * modules/freadable-tests: New file.
61192         * tests/test-freadable.c: New file.
61193
61194         * modules/freadable: New file.
61195         * lib/freadable.h: New file.
61196         * lib/freadable.c: New file.
61197         * m4/freadable.m4: New file.
61198
61199 2007-04-13  Bruno Haible  <bruno@clisp.org>
61200
61201         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61202         MOSTLYCLEANFILES.
61203
61204 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61205
61206         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61207         gzip bootstrap.conf to avoid dragging in i18n machinery.
61208         (gnulib_tool_option): Use it.
61209
61210 2007-04-13  Bruno Haible  <bruno@clisp.org>
61211
61212         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61213         %F directives.
61214         * tests/test-vasprintf-posix.c (test_function): Likewise.
61215         * tests/test-snprintf-posix.h (test_function): Likewise.
61216         * tests/test-sprintf-posix.h (test_function): Likewise.
61217         * tests/test-fprintf-posix.h (test_function): Likewise.
61218         * tests/test-printf-posix.h (test_function): Likewise.
61219         * tests/test-fprintf-posix.out: Likewise.
61220
61221 2007-04-13  Bruno Haible  <bruno@clisp.org>
61222
61223         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61224         * modules/tls-tests (configure.ac): Likewise.
61225         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61226
61227 2007-04-13  Bruno Haible  <bruno@clisp.org>
61228
61229         * lib/tls.c (glthread_tls_get): Fix return type.
61230         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61231
61232 2007-04-12  Eric Blake  <ebb9@byu.net>
61233
61234         * modules/gettime (Depends-on): Remove gettime.
61235         Reported by Dmitry V. Levin.
61236
61237 2007-04-12  Bruno Haible  <bruno@clisp.org>
61238
61239         * modules/fflush (Include): Mention <stdio.h>.
61240         * modules/strtoimax (Include): Mention <inttypes.h>.
61241         * modules/strtoumax (Include): Likewise.
61242
61243 2007-04-12  Eric Blake  <ebb9@byu.net>
61244
61245         * .cvsignore: New file.
61246         * .gitignore: Likewise.
61247
61248 2007-04-12  Bruno Haible  <bruno@clisp.org>
61249
61250         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61251         not before, since $(LDADD) often contains libgnu.a.
61252         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61253         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61254         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61255         Needed on Cygwin.
61256
61257 2007-04-12  Eric Blake  <ebb9@byu.net>
61258
61259         Work around glibc's failure to flush stdin on fclose.
61260         * lib/closein.c (close_stdin): Flush stdin before closing.
61261
61262         Work around glibc's failure to reset seekable stdin on exit.
61263         * modules/closein: New module.
61264         * lib/closein.c: New file.
61265         * lib/closein.h: Likewise.
61266         * m4/closein.m4: Likewise.
61267         * MODULES.html.sh (File stream based Input/Output): Document it.
61268
61269 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61270
61271         * gnulib-tool: Rename generated 'autobuild' script to
61272         'do-autobuild' in --create-megatestdir output.
61273
61274         * doc/gnulib.texi (Build robot for gnulib): Fix.
61275
61276 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61277
61278         * modules/sysexits (Depends-on): Add absolute-header.
61279
61280 2007-04-12  Eric Blake  <ebb9@byu.net>
61281
61282         No need to preserve errno on success.
61283         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61284         Reported by Bruno Haible.
61285
61286 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61287
61288         * MODULES.html.sh (Support for maintaining and releasing
61289         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61290
61291 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61292
61293         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61294
61295 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61296
61297         * modules/autobuild: New module.
61298
61299         * m4/autobuild.m4: New file.
61300
61301 2007-04-11  Bruno Haible  <bruno@clisp.org>
61302
61303         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61304         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61305         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61307         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61308         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61309         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61311         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61312         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61313         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61314         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61315         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61316         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61317         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61318         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61319         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61320         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61321         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61322         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61323         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61324         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61325         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61326         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61327         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61328         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61329         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61330         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61331         Reported by Eric Blake.
61332
61333 2007-04-11  Bruno Haible  <bruno@clisp.org>
61334
61335         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61336
61337 2007-04-10  Bruno Haible  <bruno@clisp.org>
61338
61339         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61340         for NaN and Infinity. Needed on FreeBSD 6.1.
61341         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61342         regarding results for "%010a" of Infinity and NaN.
61343         * tests/test-vasprintf-posix.c (test_function): Likewise.
61344         * tests/test-snprintf-posix.h (test_function): Likewise.
61345         * tests/test-sprintf-posix.h (test_function): Likewise.
61346         * tests/test-fprintf-posix.h (test_function): Likewise.
61347         * tests/test-printf-posix.h (test_function): Likewise.
61348         * tests/test-fprintf-posix.out: Likewise.
61349
61350 2007-04-10  Bruno Haible  <bruno@clisp.org>
61351
61352         * modules/locale-tests: New file.
61353         * tests/test-locale.c: New file.
61354
61355         * modules/locale: New file.
61356         * lib/locale_.h: New file.
61357         * m4/locale_h.m4: New file.
61358
61359 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61360             Bruno Haible  <bruno@clisp.org>
61361
61362         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61363         be determined, test for availability of the copysignf, copysign,
61364         copysignl functions.
61365         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61366         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61367         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61368
61369 2007-04-09  Eric Blake  <ebb9@byu.net>
61370
61371         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61372         * modules/stdio (Makefile.am): Support fflush.
61373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61374         * modules/fflush: New file.
61375         * lib/fflush.c: Likewise.
61376         * m4/fflush.m4: Likewise.
61377         * modules/fflush-tests: New test.
61378         * tests/test-fflush.c: Likewise.
61379         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61380
61381 2007-04-06  Bruno Haible  <bruno@clisp.org>
61382
61383         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61384         (VASNPRINTF): Use signbit for faster determination whether to print a
61385         minus sign.
61386         * modules/vasnprintf (Files): Remove lib/float+.h.
61387         * modules/fprintf-posix (Depends-on): Add signbit.
61388         * modules/snprintf-posix (Depends-on): Likewise.
61389         * modules/sprintf-posix (Depends-on): Likewise.
61390         * modules/vasnprintf-posix (Depends-on): Likewise.
61391         * modules/vasprintf-posix (Depends-on): Likewise.
61392         * modules/vfprintf-posix (Depends-on): Likewise.
61393         * modules/vsnprintf-posix (Depends-on): Likewise.
61394         * modules/vsprintf-posix (Depends-on): Likewise.
61395
61396 2007-04-06  Bruno Haible  <bruno@clisp.org>
61397
61398         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61399         * tests/test-frexpl.c (main): Likewise.
61400         * tests/test-ldexpl.c (main): Likewise.
61401         * modules/frexp-tests (Depends-on): Add signbit.
61402         * modules/frexpl-tests (Depdends-on): Likewise.
61403         * modules/ldexpl-tests (Depdends-on): Likewise.
61404
61405 2007-04-06  Bruno Haible  <bruno@clisp.org>
61406
61407         * modules/signbit-tests: New file.
61408         * tests/test-signbit.c: New file.
61409
61410         * modules/signbit: New file.
61411         * lib/signbitf.c: New file.
61412         * lib/signbitd.c: New file.
61413         * lib/signbitl.c: New file.
61414         * m4/signbit.m4: New file.
61415         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61416         (signbit): New macro.
61417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61418         REPLACE_SIGNBIT.
61419         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61420         REPLACE_FREXPL into math.h.
61421
61422 2007-04-06  Bruno Haible  <bruno@clisp.org>
61423
61424         * modules/isnanf-nolibm-tests: New file.
61425         * tests/test-isnanf.c: New file.
61426
61427         * modules/isnanf-nolibm: New file.
61428         * lib/isnanf.h: New file.
61429         * lib/isnanf.c: New file.
61430         * lib/isnan.c: Consider the USE_FLOAT macro.
61431         * m4/isnanf.m4: New file.
61432
61433 2007-04-06  Bruno Haible  <bruno@clisp.org>
61434
61435         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61436         (Link): New section.
61437
61438         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61439
61440 2007-04-06  Bruno Haible  <bruno@clisp.org>
61441
61442         Assume the 'long double' type.
61443         * m4/longdouble.m4: Remove file.
61444         * config/srclist.txt: Don't mention longdouble.m4.
61445         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61446         * lib/float+.h: Likewise.
61447         * lib/frexp.c: Likewise.
61448         * lib/printf-args.h: Likewise.
61449         * lib/printf-args.c: Likewise.
61450         * lib/printf-frexp.c: Likewise.
61451         * lib/printf-parse.c: Likewise.
61452         * lib/vasnprintf.c: Likewise.
61453         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61454         * m4/intl.m4: Likewise.
61455         * m4/isnanl.m4: Likewise.
61456         * m4/printf.m4: Likewise.
61457         * m4/printf-frexpl.m4: Likewise.
61458         * m4/vasnprintf.m4: Likewise.
61459         * modules/allocsa (Files): Remove m4/longdouble.m4.
61460         * modules/gettext (Files): Likewise.
61461         * modules/relocatable-prog-wrapper (Files): Likewise.
61462         * modules/vasnprintf (Files): Likewise.
61463         * modules/isnanl (Files): Likewise.
61464         (Include): Simplify.
61465         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61466         (Include): Simplify.
61467         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61468         (Include): Simplify.
61469         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61470         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61471         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61472         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61473         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61474         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61475         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61476         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61477         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61478         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61479         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61480         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61481         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61482         * tests/test-isnanl.c: Likewise.
61483         * tests/test-snprintf-posix.h: Likewise.
61484         * tests/test-sprintf-posix.h: Likewise.
61485         * tests/test-vasnprintf-posix.c: Likewise.
61486         * tests/test-vasnprintf-posix2.c: Likewise.
61487         * tests/test-vasprintf-posix.c: Likewise.
61488
61489 2007-04-06  Bruno Haible  <bruno@clisp.org>
61490
61491         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61492         * lib/math_.h [__DECC]: Include the overridden include file through
61493         #include_next, outside the double-inclusion guard.
61494         * lib/stdio_.h [__DECC]: Likewise.
61495         * lib/stdlib_.h [__DECC]: Likewise.
61496         * lib/string_.h [__DECC]: Likewise.
61497         * lib/time_.h [__DECC]: Likewise.
61498         * lib/wchar_.h [__DECC]: Likewise.
61499         * lib/wctype_.h [__DECC]: Likewise.
61500         * lib/inttypes_.h [__DECC]: Likewise.
61501         Reported by Albert Chin <china@thewrittenword.com> in
61502         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61503
61504 2007-04-04  Eric Blake  <ebb9@byu.net>
61505
61506         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61507         1.5.x.
61508
61509 2007-04-04  Bruno Haible  <bruno@clisp.org>
61510
61511         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61512         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61513
61514 2007-04-04  Bruno Haible  <bruno@clisp.org>
61515
61516         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61517         results for "%010a" of Infinity and NaN.
61518         * tests/test-vasprintf-posix.c (test_function): Likewise.
61519         * tests/test-snprintf-posix.h (test_function): Likewise.
61520         * tests/test-sprintf-posix.h (test_function): Likewise.
61521         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61522         * tests/test-printf-posix.h (test_function): Likewise.
61523         * tests/test-fprintf-posix.out: Update.
61524         Needed for FreeBSD 6.1.
61525
61526 2007-04-04  Bruno Haible  <bruno@clisp.org>
61527
61528         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61529         directly used by the gnulib modules nor by gnulib-tool.
61530
61531 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61532
61533         * DEPENDENCIES: Give overall description of version dependency
61534         desirability.  Use more-typical names for apps.
61535         Add shell, coreutils, diffutils, grep, tar, gzip.
61536
61537 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61538
61539         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61540
61541 2007-04-04  Karl Berry  <karl@gnu.org>
61542
61543         * MODULES.html.sh (func_module): missing '.
61544
61545 2007-04-03  Bruno Haible  <bruno@clisp.org>
61546
61547         * modules/argmatch-tests (Makefile.am): New variable
61548         test_argmatch_LDADD.
61549         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61550         * modules/array-list-tests (Makefile.am): New variable
61551         test_array_list_LDADD.
61552         * modules/array-oset-tests (Makefile.am): New variable
61553         test_array_oset_LDADD.
61554         * modules/avltree-list-tests (Makefile.am): New variable
61555         test_avltree_list_LDADD.
61556         * modules/avltree-oset-tests (Makefile.am): New variable
61557         test_avltree_oset_LDADD.
61558         * modules/avltreehash-list-tests (Makefile.am): New variable
61559         test_avltreehash_list_LDADD.
61560         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61561         test_canonicalize_lgpl_LDADD.
61562         * modules/carray-list-tests (Makefile.am): New variable
61563         test_carray_list_LDADD.
61564         * modules/dirname-tests (Makefile.am): New variable
61565         test_dirname_LDADD.
61566         * modules/linked-list-tests (Makefile.am): New variable
61567         test_linked_list_LDADD.
61568         * modules/linkedhash-list-tests (Makefile.am): New variable
61569         test_linkedhash_list_LDADD.
61570         * modules/rbtree-list-tests (Makefile.am): New variable
61571         test_rbtree_list_LDADD.
61572         * modules/rbtree-oset-tests (Makefile.am): New variable
61573         test_rbtree_oset_LDADD.
61574         * modules/rbtreehash-list-tests (Makefile.am): New variable
61575         test_rbtreehash_list_LDADD.
61576         * modules/xvasprintf-tests (Makefile.am): New variable
61577         test_xvasprintf_LDADD.
61578         Reported by Eric Blake.
61579
61580 2007-04-03  Eric Blake  <ebb9@byu.net>
61581
61582         * DEPENDENCIES: Weaken m4 requirements.
61583
61584 2007-04-03  Bruno Haible  <bruno@clisp.org>
61585
61586         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61587         * modules/isnanl-tests (configure.ac): Likewise.
61588
61589 2007-04-03  Ben Pfaff  <blp@gnu.org>
61590
61591         * modules/iconv_open: Add $(srcdir)/ to source directory
61592         references in Makefile fragments that call gperf, to fix VPATH
61593         builds.
61594
61595 2007-04-03  Bruno Haible  <bruno@clisp.org>
61596
61597         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61598         * lib/ldexpl.c: Undo last change.
61599
61600 2007-04-03  Bruno Haible  <bruno@clisp.org>
61601
61602         * modules/printf-frexpl (Depends-on): Undo last change.
61603         (Files): Add m4/ldexpl.m4.
61604
61605 2007-04-03  Bruno Haible  <bruno@clisp.org>
61606
61607         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61608         * modules/isnanl (Link): New section.
61609
61610         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61611         * modules/frexp (Link): New section.
61612
61613         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61614         * modules/frexpl (Link): New section.
61615
61616         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61617         * modules/ldexpl (Link): New section.
61618
61619 2007-04-03  Bruno Haible  <bruno@clisp.org>
61620
61621         * modules/TEMPLATE-EXTENDED: New file.
61622         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61623
61624 2007-04-03  Bruno Haible  <bruno@clisp.org>
61625
61626         * DEPENDENCIES: New file.
61627         Suggested by Simon Josefsson.
61628
61629 2007-04-03  Bruno Haible  <bruno@clisp.org>
61630
61631         * doc/gnulib.texi: Escape @.
61632
61633 2007-04-03  James Youngman  <jay@gnu.org>
61634         and Paul Eggert  <eggert@cs.ucla.edu>
61635
61636         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61637         birthtime on all systems that have birthtime, not just those which
61638         use st_birthtimensec rather than st_birthtim.  Putting zero in
61639         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61640         that the birth time is not available for files on an NFS mount.
61641
61642 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61643
61644         * modules/memxor: Move back from crypto/, suggested by Bruno.
61645         * modules/crypto/hmac-sha1: Fix memxor dependency.
61646
61647         * modules/crypto/gc: Moved from ../.
61648
61649 2007-04-02  Eric Blake  <ebb9@byu.net>
61650
61651         * lib/ldexpl.c (includes): Avoid libm.
61652
61653         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61654
61655 2007-04-02  Bruno Haible  <bruno@clisp.org>
61656
61657         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61658         on IRIX.
61659
61660 2007-04-02  Bruno Haible  <bruno@clisp.org>
61661
61662         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61663         x86 or x86_64 platforms running MacOS X.
61664         Reported by Ryan Schmidt <@ryandesign.com>.
61665
61666 2007-04-02  Bruno Haible  <bruno@clisp.org>
61667
61668         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61669         i386.
61670
61671 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61672
61673         * modules/crypto/arcfour: Moved from ../.
61674         * modules/crypto/arcfour-tests: Moved from ../.
61675         * modules/crypto/arctwo: Moved from ../.
61676         * modules/crypto/arctwo-tests: Moved from ../.
61677         * modules/crypto/des: Moved from ../.
61678         * modules/crypto/des-tests: Moved from ../.
61679         * modules/crypto/gc-arcfour: Moved from ../.
61680         * modules/crypto/gc-arcfour-tests: Moved from ../.
61681         * modules/crypto/gc-arctwo: Moved from ../.
61682         * modules/crypto/gc-arctwo-tests: Moved from ../.
61683         * modules/crypto/gc-des: Moved from ../.
61684         * modules/crypto/gc-des-tests: Moved from ../.
61685         * modules/crypto/gc-hmac-md5: Moved from ../.
61686         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61687         * modules/crypto/gc-hmac-sha1: Moved from ../.
61688         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61689         * modules/crypto/gc-md2: Moved from ../.
61690         * modules/crypto/gc-md2-tests: Moved from ../.
61691         * modules/crypto/gc-md4: Moved from ../.
61692         * modules/crypto/gc-md4-tests: Moved from ../.
61693         * modules/crypto/gc-md5: Moved from ../.
61694         * modules/crypto/gc-md5-tests: Moved from ../.
61695         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61696         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61697         * modules/crypto/gc-random: Moved from ../.
61698         * modules/crypto/gc-rijndael: Moved from ../.
61699         * modules/crypto/gc-rijndael-tests: Moved from ../.
61700         * modules/crypto/gc-sha1: Moved from ../.
61701         * modules/crypto/gc-sha1-tests: Moved from ../.
61702         * modules/crypto/gc-tests: Moved from ../.
61703         * modules/crypto/hmac-md5: Moved from ../.
61704         * modules/crypto/hmac-md5-tests: Moved from ../.
61705         * modules/crypto/hmac-sha1: Moved from ../.
61706         * modules/crypto/hmac-sha1-tests: Moved from ../.
61707         * modules/crypto/md2: Moved from ../.
61708         * modules/crypto/md2-tests: Moved from ../.
61709         * modules/crypto/md4: Moved from ../.
61710         * modules/crypto/md4-tests: Moved from ../.
61711         * modules/crypto/md5: Moved from ../.
61712         * modules/crypto/md5-tests: Moved from ../.
61713         * modules/crypto/memxor: Moved from ../.
61714         * modules/crypto/rijndael: Moved from ../.
61715         * modules/crypto/rijndael-tests: Moved from ../.
61716         * modules/crypto/sha1: Moved from ../.
61717
61718 2007-03-30  James Youngman  <jay@gnu.org>
61719
61720         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61721         rename() to change the ctime of a file (because ctime is unaffected
61722         by rename on jfs2 on AIX 5.1).
61723         (main): Start by doing cleanup, in case a previous run failed leaving
61724         test files behind.
61725
61726 2007-03-31  Bruno Haible  <bruno@clisp.org>
61727
61728         Support old proprietary implementations of iconv.
61729         * modules/iconv_open: New file.
61730         * lib/iconv_.h: New file.
61731         * m4/iconv_h.m4: New file.
61732         * lib/iconv_open.c: New file.
61733         * lib/iconv_open-aix.gperf: New file.
61734         * lib/iconv_open-hpux.gperf: New file.
61735         * lib/iconv_open-irix.gperf: New file.
61736         * lib/iconv_open-osf.gperf: New file.
61737         * m4/iconv_open.m4: New file.
61738         * modules/linebreak (Depends-on): Add iconv_open.
61739         * modules/striconv (Depends-on): Likewise.
61740         * modules/striconveh (Depends-on): Likewise.
61741         * modules/unicodeio (Depends-on): Likewise.
61742         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61743         (iconv_t)(-1).
61744         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61745         conversion if cd is (iconv_t)(-1).
61746         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61747         is not possible.
61748
61749 2007-03-31  Bruno Haible  <bruno@clisp.org>
61750
61751         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61752         work on Solaris either. Protect also second use of "autodetect_jp".
61753
61754 2007-03-31  Bruno Haible  <bruno@clisp.org>
61755
61756         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61757         the function is not present.
61758
61759 2007-03-31  Bruno Haible  <bruno@clisp.org>
61760
61761         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61762         the function is not present.
61763
61764 2007-03-31  Bruno Haible  <bruno@clisp.org>
61765
61766         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61767         a bug in HP-UX iconv_open().
61768
61769 2007-03-31  Bruno Haible  <bruno@clisp.org>
61770
61771         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61772         (Mathematics <math.h>): New section, add fpieee.
61773         (Input/output <stdio.h>): Add fseterr.
61774         (Mathematics <math.h>): New section, add printf-frexp.
61775         (Container data structures): Add sublist.
61776         (Core language properties): Add fpucw, inline.
61777         (Functions for greatest-width integer types <inttypes.h>): Add
61778         imaxabs, imaxdiv, inttypes.
61779         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61780         isnanl-nolibm, ldexp.
61781         (Mathematics <math.h>): New section, add printf-frexpl.
61782         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61783         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61784         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61785         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61786         (Unicode string functions): Add unistr/u*-mbtoucr.
61787         (Java): Add javacomp-script, javaexec-script.
61788         (C#): Add csharpcomp-script, csharpexec-script.
61789         (Support for building libraries and executables): Add havelib,
61790         relocatable-*.
61791         (Support for maintaining and releasing projects): Renamed from
61792         'Support for maintaining and release projects'. Add announce-gen.
61793
61794 2007-03-31  Bruno Haible  <bruno@clisp.org>
61795
61796         * README: Talk primarily about git.
61797         (git and CVS): Renamed from CVS.
61798         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61799         gnulib is available through git.
61800         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61801
61802 2007-03-30  Bruno Haible  <bruno@clisp.org>
61803
61804         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61805         * lib/poll_.h: Likewise.
61806         * lib/stat_.h: Likewise.
61807         * lib/sys_time_.h: Likewise.
61808         * lib/sysexit_.h: Likewise.
61809         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61810         * lib/stdbool_.h: Likewise.
61811         * lib/byteswap_.h: Add double-inclusion guard.
61812
61813 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61814
61815         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61816
61817 2007-03-30  Karl Berry  <karl@gnu.org>
61818
61819         * config/srclist-update: double space after USA in the license
61820         substitution, since that's how it's usually (?) written.
61821
61822 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61823
61824         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61825         reported by Bruno Haible.
61826
61827 2007-03-29  Bruno Haible  <bruno@clisp.org>
61828
61829         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61830         a bug in AIX iconv().
61831
61832 2007-03-29  Bruno Haible  <bruno@clisp.org>
61833
61834         * modules/ldexpl-tests: New file.
61835         * tests/test-ldexpl.c: New file.
61836
61837 2007-03-29  Bruno Haible  <bruno@clisp.org>
61838
61839         * lib/ldexpl.c: Include fpucw.h.
61840         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61841         multiplication.
61842         * modules/ldexpl (Depends-on): Add fpucw.
61843
61844 2007-03-29  Bruno Haible  <bruno@clisp.org>
61845
61846         * modules/ldexpl: New file.
61847         * m4/ldexpl.m4: New file.
61848         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61849         set.
61850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61851         REPLACE_LDEXPL.
61852         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61853         REPLACE_LDEXPL.
61854         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61855         gl_FUNC_LDEXPL_WORKS.
61856         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61857         * modules/mathl (Files): Remove lib/ldexpl.c.
61858         (Depends-on): Add ldexpl.
61859
61860 2007-03-29  Bruno Haible  <bruno@clisp.org>
61861
61862         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61863
61864 2007-03-29  Bruno Haible  <bruno@clisp.org>
61865
61866         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61867         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61868         and possibly also HP-UX.
61869         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61870         work on AIX, IRIX, HP-UX, OSF/1.
61871         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61872         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61873         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61874         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61875         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61876         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61877
61878 2007-03-29  Bruno Haible  <bruno@clisp.org>
61879
61880         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61881
61882 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61883
61884         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61885         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61886
61887 2007-03-29  Eric Blake  <ebb9@byu.net>
61888
61889         * lib/acl-internal.h: Remove redundant include.
61890         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61891         Cygwin when a file is locked.
61892
61893 2007-03-29  Bruno Haible  <bruno@clisp.org>
61894
61895         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61896         file.
61897         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61898
61899 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61900
61901         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61902         try to remove a parent directory if the child couldn't be removed
61903         (except for the first rmdir, which could fail because the child
61904         doesn't exist).  Problem reported by Jeff Blaine in
61905         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61906
61907 2007-03-28  Bruno Haible  <bruno@clisp.org>
61908
61909         * lib/striconveh.c (utf8conv_carefully): New function.
61910         (mem_cd_iconveh_internal): Invoke it.
61911
61912 2007-03-28  Bruno Haible  <bruno@clisp.org>
61913
61914         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61915         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61916         input.
61917         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61918         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61919         unistr/u8-uctomb.
61920
61921 2007-03-28  Bruno Haible  <bruno@clisp.org>
61922
61923         * modules/unistr/u8-mbtoucr: New file.
61924         * lib/unistr/u8-mbtoucr.c: New file.
61925         * modules/unistr/u16-mbtoucr: New file.
61926         * lib/unistr/u16-mbtoucr.c: New file.
61927         * modules/unistr/u16-mbtoucr: New file.
61928         * lib/unistr/u16-mbtoucr.c: New file.
61929         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61930
61931 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61932             Bruno Haible  <bruno@clisp.org>
61933
61934         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61935         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61936         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61937
61938         * m4/stdio_h.m4: Add stubs for vasprintf too.
61939
61940         * modules/stdio: Support vasprintf in sed command.
61941
61942         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61943         vasprintf.h.  Add stdio module indicator.
61944
61945         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61946         vasprintf.h.
61947
61948         * lib/vasprintf.h: File removed.
61949
61950         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61951         * lib/vasprintf.c: Ditto.
61952         * lib/xvasprintf.c: Ditto.
61953         * tests/test-vasprintf-posix.c: Ditto.
61954         * tests/test-vasprintf.c: Ditto.
61955
61956 2007-03-27  Bruno Haible  <bruno@clisp.org>
61957
61958         Make vasnprintf multithread-safe.
61959         * lib/vasnprintf.c (decimal_point_char): New function.
61960         (VASNPRINTF): Use it.
61961         Suggested by Simon Josefsson.
61962
61963 2007-03-27  Eric Blake  <ebb9@byu.net>
61964
61965         Support sub-second birthtime on cygwin.
61966         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61967         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61968         (get_stat_birthtime): Also work with st_birthtim.
61969
61970 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61971
61972         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61973         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61974         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61975         (get_stat_birthtime_ns): Simplify compile-time tests.
61976         (get_stat_birthtime): Change the API to look like
61977         get_stat_mtime etc., except return a negative tv_nsec on error.
61978         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61979         Don't check for "spare" fields.
61980         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61981         or for struct stat.st_birthtime, as these tests aren't used.
61982         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61983
61984 2007-03-27  Bruno Haible  <bruno@clisp.org>
61985
61986         * lib/stat-time.h: Include <sys/stat.h>.
61987
61988 2007-03-27  James Youngman  <jay@gnu.org>
61989
61990         * lib/stat-time.h (get_stat_birthtime): New function for
61991           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61992         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61993           and its variants.
61994         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61995         * modules/stat-time-test: New file.
61996         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61997
61998 2007-03-26  Bruno Haible  <bruno@clisp.org>
61999
62000         Better support of signalling NaNs.
62001         * lib/atanl.c: Include isnanl.h.
62002         (atanl): Perform test for NaN at the beginning of the function and
62003         through a call to isnanl.
62004         * lib/cosl.c: Include isnanl.h.
62005         (cosl): Perform test for NaN at the beginning of the function and
62006         through a call to isnanl.
62007         * lib/ldexpl.c: Include isnanl.h.
62008         (ldexpl): Perform test for NaN through a call to isnanl.
62009         * lib/logl.c: Include isnanl.h.
62010         (logl): Perform test for NaN at the beginning of the function and
62011         through a call to isnanl.
62012         * lib/sinl.c: Include isnanl.h.
62013         (sinl): Perform test for NaN at the beginning of the function and
62014         through a call to isnanl.
62015         * lib/sqrtl.c: Include isnanl.h.
62016         (sqrtl): Perform test for NaN at the beginning of the function and
62017         through a call to isnanl.
62018         * lib/tanl.c: Include isnanl.h.
62019         (tanl): Perform test for NaN at the beginning of the function and
62020         through a call to isnanl.
62021         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62022         * modules/mathl (Depends-on): Add isnanl.
62023
62024 2007-03-26  Eric Blake  <ebb9@byu.net>
62025
62026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62027         regression in logic sense of previous patch.
62028
62029 2007-03-26  Bruno Haible  <bruno@clisp.org>
62030
62031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62032         unportable shell command "if ! ...".
62033         Reported by Ralf Wildenhues.
62034
62035 2007-03-25  Bruno Haible  <bruno@clisp.org>
62036
62037         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62038         <sysexits.h> file, and only add EX_CONFIG.
62039         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62040         absolute file name and whether it is sufficient. Substitute also
62041         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62042         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62043         ABSOLUTE_SYSEXITS_H into sysexits.h.
62044
62045 2007-03-25  Bruno Haible  <bruno@clisp.org>
62046
62047         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62048         hints is NULL.
62049
62050 2007-03-25  Bruno Haible  <bruno@clisp.org>
62051
62052         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62053         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62054
62055 2007-03-25  Bruno Haible  <bruno@clisp.org>
62056
62057         * lib/vasnprintf.c: Include langinfo.h.
62058         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62059         multithread-safe.
62060         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62061         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62062         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62063         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62064         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62065         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62066         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62067         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62068         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62069         Reported by Simon Josefsson.
62070
62071 2007-03-25  Bruno Haible  <bruno@clisp.org>
62072
62073         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62074         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62075         * modules/vasnprintf (Depends-on): Add stdint.
62076
62077 2007-03-25  Bruno Haible  <bruno@clisp.org>
62078
62079         * modules/fpieee: New file.
62080         * m4/fpieee.m4: New file.
62081         * modules/isnan-nolibm (Depends-on): Add fpieee.
62082         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62083         * modules/isnanl (Depends-on): Add fpieee.
62084
62085 2007-03-25  Bruno Haible  <bruno@clisp.org>
62086
62087         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62088
62089 2007-03-25  Bruno Haible  <bruno@clisp.org>
62090
62091         Avoid test failures on IRIX 6.5.
62092         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62093         (main): Use it.
62094         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62095         macros.
62096         (main): Use them.
62097
62098 2007-03-25  Bruno Haible  <bruno@clisp.org>
62099
62100         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62101         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62102         exists but doesn't work.
62103         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62104         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62106         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62107         math.h.
62108
62109 2007-03-25  Bruno Haible  <bruno@clisp.org>
62110
62111         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62112         returns inf. Needed on IRIX 6.5.
62113
62114 2007-03-25  Bruno Haible  <bruno@clisp.org>
62115
62116         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62117         (main): Use isnanl instead of x != x idiom.
62118         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62119
62120         * tests/test-frexp.c: Include isnan.h.
62121         (main): Use isnan instead of x != x idiom.
62122         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62123
62124 2007-03-25  Bruno Haible  <bruno@clisp.org>
62125
62126         * tests/test-frexp.c (NaN): New function/macro.
62127         (main): Use it instead of 0.0 / 0.0.
62128         * tests/test-isnan.c (NaN): New function/macro.
62129         (main): Use it instead of 0.0 / 0.0.
62130         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62131         (test_function): Use it instead of 0.0 / 0.0.
62132         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62133         (test_function): Use it instead of 0.0 / 0.0.
62134         * tests/test-snprintf-posix.h (NaN): New function/macro.
62135         (test_function): Use it instead of 0.0 / 0.0.
62136         * tests/test-sprintf-posix.h (NaN): New function/macro.
62137         (test_function): Use it instead of 0.0 / 0.0.
62138         * tests/test-fprintf-posix.h (NaN): New function/macro.
62139         (test_function): Use it instead of 0.0 / 0.0.
62140         * tests/test-printf-posix.h (NaN): New function/macro.
62141         (test_function): Use it instead of 0.0 / 0.0.
62142
62143         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62144
62145 2007-03-25  Bruno Haible  <bruno@clisp.org>
62146
62147         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62148
62149 2007-03-25  Bruno Haible  <bruno@clisp.org>
62150
62151         * lib/regexec.c (merge_state_with_log): Make static.
62152
62153 2007-03-25  Bruno Haible  <bruno@clisp.org>
62154
62155         * lib/trigl.c (kernel_rem_pio2): Make static.
62156
62157 2007-03-25  Bruno Haible  <bruno@clisp.org>
62158
62159         * lib/sincosl.c (sincosl_table): Make static.
62160
62161 2007-03-25  Bruno Haible  <bruno@clisp.org>
62162
62163         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62164         if the compiler does not support C99.
62165
62166 2007-03-25  Bruno Haible  <bruno@clisp.org>
62167
62168         * modules/time (Makefile.am): Ensure all rule action lines start with a
62169         tab.
62170
62171 2007-03-24  Bruno Haible  <bruno@clisp.org>
62172
62173         * modules/tsearch-tests: New file.
62174         * tests/test-tsearch.sh: New file.
62175         * tests/test-tsearch.c: New file, mostly copied from glibc.
62176
62177         * modules/search-tests: New file.
62178         * tests/test-search.c: New file.
62179
62180         * modules/search: New file.
62181         * lib/search_.h: New file, incorporating lib/tsearch.h.
62182         * m4/search_h.m4: New file.
62183         * lib/tsearch.h: Remove file.
62184         * lib/tsearch.c: Include search.h instead of tsearch.h.
62185         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62186         HAVE_TSEARCH.
62187         * modules/tsearch (Files): Remove lib/tsearch.h.
62188         (Depends-on): Add search.
62189         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62190         (Include): Change tsearch.h into search.h.
62191
62192 2007-03-24  Bruno Haible  <bruno@clisp.org>
62193
62194         * modules/fpucw: New file.
62195         * lib/fpucw.h: New file.
62196         * lib/frexp.c: Include fpucw.h.
62197         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62198         (FUNC): Use them.
62199         * lib/printf-frexp.c: Include fpucw.h.
62200         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62201         (FUNC): Use them.
62202         * lib/vasnprintf.c: Include fpucw.h.
62203         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62204         'long double' calculations.
62205         * tests/test-frexpl.c: Include fpucw.h.
62206         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62207         * tests/test-printf-frexpl.c: Include fpucw.h.
62208         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62209         * modules/frexpl (Depends-on): Add fpucw.
62210         * modules/printf-frexpl (Depends-on): Likewise.
62211         * modules/fprintf-posix (Depends-on): Likewise.
62212         * modules/snprintf-posix (Depends-on): Likewise.
62213         * modules/sprintf-posix (Depends-on): Likewise.
62214         * modules/vasnprintf-posix (Depends-on): Likewise.
62215         * modules/vasprintf-posix (Depends-on): Likewise.
62216         * modules/vfprintf-posix (Depends-on): Likewise.
62217         * modules/vsnprintf-posix (Depends-on): Likewise.
62218         * modules/vsprintf-posix (Depends-on): Likewise.
62219         * modules/frexpl-tests (Depends-on): Likewise.
62220         * modules/printf-frexpl-tests (Depends-on): Likewise.
62221
62222 2007-03-24  Bruno Haible  <bruno@clisp.org>
62223
62224         * lib/float+.h: New file.
62225         * lib/isnan.c: Include float+.h.
62226         (SIZE): New macro.
62227         (FUNC): Compare only SIZE bytes of the value.
62228         * lib/vasnprintf.c: Include float+.h.
62229         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62230         SIZEOF_LDBL or SIZEOF_DBL bytes.
62231         * modules/isnan-nolibm (Files): Add lib/float+.h.
62232         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62233         * modules/isnanl (Files): Add lib/float+.h.
62234         * modules/vasnprintf (Files): Add lib/float+.h.
62235
62236 2007-03-24  Bruno Haible  <bruno@clisp.org>
62237
62238         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62239         include isnanl-nolibm.h.
62240
62241 2007-03-24  Bruno Haible  <bruno@clisp.org>
62242
62243         * tests/test-read-file.c (main): Don't produce spurious output for
62244         expected situations. Make the test fail if it encountered unexpected
62245         results.
62246
62247 2007-03-24  Bruno Haible  <bruno@clisp.org>
62248
62249         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62250         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62251
62252 2007-03-24  Bruno Haible  <bruno@clisp.org>
62253
62254         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62255
62256 2007-03-24  Bruno Haible  <bruno@clisp.org>
62257
62258         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62259         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62260
62261         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62262         * modules/utf8-ucs4: Turn into a symbolic link to module
62263         unistr/u8-mbtouc.
62264
62265         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62266         utf8-ucs4-unsafe.
62267         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62268         unistr/u8-mbtouc-unsafe.
62269
62270         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62271         * modules/utf16-ucs4: Turn into a symbolic link to module
62272         unistr/u16-mbtouc.
62273
62274         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62275         utf16-ucs4-unsafe.
62276         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62277         unistr/u16-mbtouc-unsafe.
62278
62279         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62280         * modules/ucs4-utf8: Turn into a symbolic link to module
62281         unistr/u8-ubtomb.
62282
62283         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62284         * modules/ucs4-utf16: Turn into a symbolic link to module
62285         unistr/u16-ubtomb.
62286
62287 2007-03-24  Bruno Haible  <bruno@clisp.org>
62288
62289         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62290         Enable the function only if HAVE_INLINE.
62291         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62292         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62293         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62294         Enable the function only if HAVE_INLINE.
62295         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62296         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62297         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62298         Enable the function only if HAVE_INLINE.
62299         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62300         Enable the function only if HAVE_INLINE.
62301         * modules/utf8-ucs4: Update.
62302         * modules/utf8-ucs4-unsafe: Update.
62303         * modules/utf16-ucs4: Update.
62304         * modules/utf16-ucs4-unsafe: Update.
62305         * modules/ucs4-utf8: Update.
62306         * modules/ucs4-utf16: Update.
62307
62308 2007-03-24  Bruno Haible  <bruno@clisp.org>
62309
62310         * lib/utf8-ucs4.h: Remove file.
62311         * lib/utf8-ucs4-unsafe.h: Remove file.
62312         * lib/utf16-ucs4.h: Remove file.
62313         * lib/utf16-ucs4-unsafe.h: Remove file.
62314         * lib/ucs4-utf8.h: Remove file.
62315         * lib/ucs4-utf16.h: Remove file.
62316         * lib/unistr.h: Include their previous contents.
62317         * m4/utf-ucs4.m4: Remove file.
62318         * m4/ucs4-utf.m4: Remove file.
62319         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62320         (Depends-on): Add unistr/base.
62321         (configure.ac): Remove gl_UTF_UCS4.
62322         (Makefile.am): Update.
62323         (Include): Change to unistr.h.
62324         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.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/utf16-ucs4 (Files): Remove lib/utf16-ucs4.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-unsafe (Files): Remove lib/utf16-ucs4-unsafe.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/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62340         (Depends-on): Add unistr/base.
62341         (configure.ac): Remove gl_UCS4_UTF.
62342         (Makefile.am): Update.
62343         (Include): Change to unistr.h.
62344         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.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         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62350         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62351         utf8-ucs4-unsafe.h.
62352         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62353         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62354         utf16-ucs4-unsafe.h.
62355         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62356         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62357         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62358         * lib/unistr/u8-strchr.c: Likewise.
62359         * lib/unistr/u8-strrchr.c: Likewise.
62360         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62361         * lib/unistr/u16-strchr.c: Likewise.
62362         * lib/unistr/u16-strrchr.c: Likewise.
62363         * lib/striconveh.c: Update.
62364         * lib/linebreak.c: Update.
62365
62366 2007-03-24  Bruno Haible  <bruno@clisp.org>
62367
62368         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62369         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62370
62371 2007-03-22  Bruno Haible  <bruno@clisp.org>
62372
62373         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62374
62375 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62376
62377         * MODULES.html.sh (File system functions): New module write-any-file.
62378         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62379         * m4/write-any-file.m4: New files.
62380
62381 2007-03-23  Eric Blake  <ebb9@byu.net>
62382
62383         * gnulib-tool: Rearrange space-tab sequences, since some editors
62384         like to eat them.
62385
62386 2007-03-23  Eric Blake  <ebb9@byu.net>
62387
62388         * lib/version-etc.c (version_etc_va): Update license wording to
62389         be more concise.  Recommended by Richard Stallman.
62390
62391 2007-03-22  Bruno Haible  <bruno@clisp.org>
62392
62393         * lib/poll.c (MSG_PEEK): New fallback definition.
62394
62395 2007-03-22  Bruno Haible  <bruno@clisp.org>
62396
62397         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62398         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62399         (main): Update.
62400         Fixes a compilation error on BeOS.
62401
62402 2007-03-22  Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/frexpl-tests: New file.
62405         * tests/test-frexpl.c: New file.
62406
62407         * modules/frexpl: New file.
62408         * m4/frexpl.m4: New file.
62409         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62410         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62412         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62413         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62414         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62415
62416 2007-03-22  Bruno Haible  <bruno@clisp.org>
62417
62418         * lib/frexpl.c: Share code with lib/frexp.c.
62419         * modules/mathl (Files): Add lib/frexp.c.
62420         (Depends-on): Add isnanl-nolibm.
62421
62422 2007-03-22  Bruno Haible  <bruno@clisp.org>
62423
62424         * modules/printf-frexp (Files): Add m4/frexp.m4.
62425         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62426         only if the found frexp function actually works.
62427
62428 2007-03-22  Bruno Haible  <bruno@clisp.org>
62429
62430         * lib/frexp.c: Remove older implementation that uses divisions.
62431
62432 2007-03-21  Bruno Haible  <bruno@clisp.org>
62433
62434         * modules/frexp-tests: New file.
62435         * tests/test-frexp.c: New file.
62436
62437         * modules/frexp: New file.
62438         * lib/frexp.c: New file.
62439         * m4/frexp.m4: New file.
62440         * lib/math_.h (frexp): New declaration.
62441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62442         REPLACE_FREXP.
62443         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62444
62445 2007-03-21  Bruno Haible  <bruno@clisp.org>
62446
62447         * modules/isnanl-tests: New file.
62448         * tests/test-isnanl.c: New file.
62449
62450         * modules/isnanl: New file.
62451         * lib/isnanl.h: New file.
62452         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62453         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62454         gl_FUNC_ISNANL_WORKS.
62455         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62456         New macros.
62457
62458 2007-03-21  Bruno Haible  <bruno@clisp.org>
62459
62460         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62461         lib/isnanl.h.
62462         (Include): Update.
62463         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62464         * lib/vasnprintf.c: Update.
62465         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62466         tests/test-isnanl.h, remove tests/test-isnanl.c.
62467         (Makefile.am): Update.
62468         * tests/test-isnanl-nolibm.c: New file.
62469         * tests/test-isnanl.h: New file.
62470         * tests/test-isnanl.c: Remove file.
62471
62472 2007-03-21  Jim Meyering  <jim@meyering.net>
62473
62474         When trying to open ".", treat ESTALE like EACCES.
62475         * lib/savewd.c (savewd_save): Resort to forking not just upon
62476         failure with EACCES, but also when errno is ESTALE.
62477
62478 2007-03-20  Bruno Haible  <bruno@clisp.org>
62479
62480         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62481         Needed on AIX 5.1. Reported by Matthew Woehlke.
62482
62483 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62484
62485         Suggestions by Bruno Haible:
62486         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62487         our own.
62488         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62489         * modules/acl (Depends-on): Add gettext.
62490
62491 2007-03-19  Bruno Haible  <bruno@clisp.org>
62492
62493         * modules/iconvme: Remove file.
62494         * lib/iconvme.h: Remove file.
62495         * lib/iconvme.c: Remove file.
62496         * m4/iconvme.m4: Remove file.
62497
62498 2007-03-19  Bruno Haible  <bruno@clisp.org>
62499
62500         * doc/relocatable-maint.texi: Break long shell script line.
62501         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62502
62503 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62504
62505         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62506         handle file_has_acl.
62507         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62508         * lib/acl.c: Move header inclusions and related macro defns into
62509         lib/acl-internal.h.
62510         (S_ISLNK): Remove defn, since that's now done for us.
62511         (file_has_acl): Move to lib/file-has-acl.c.
62512         Call acl_trivial if available.  This is the crucial part of the fix.
62513         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62514         shared within the library.  Rewrite a bit, partly to make it compatible
62515         with the GNU coding style.
62516         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62517         Remove unnecessary double-quotes.
62518         Don't test for acl_to_text; the build will catch that.
62519         Replace acl_entries if it doesn't exist and it is needed.
62520         Check for -lsec and acl_trivial (as used on Solaris 10).
62521         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62522         lib/file-has-acl.c.
62523         (Depends-on): Add sys_stat, for S_ISLNK.
62524
62525 2007-03-19  Ben Pfaff  <blp@gnu.org>
62526
62527         * doc/gnulib.texi: Fix typos.
62528         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62529
62530 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62531
62532         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62533         If size is zero here, buf must be zero.
62534
62535 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62536
62537         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62538         <bruno@clisp.org>.
62539
62540 2007-03-18  Bruno Haible  <bruno@clisp.org>
62541
62542         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62543         Suggested by Eric Blake.
62544
62545 2007-03-18  Ben Pfaff  <blp@gnu.org>
62546
62547         * doc/relocatable.texi: Recommend using as prefix a directory
62548         that does not exist and will never be created.  Based on
62549         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62550         and others.
62551
62552 2007-03-17  Bruno Haible  <bruno@clisp.org>
62553
62554         * lib/fchownat.c: Include lchown.h.
62555
62556 2007-03-17  Bruno Haible  <bruno@clisp.org>
62557
62558         Fix endless loop when the given allocated size was > INT_MAX.
62559         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62560         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62561         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62562         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62563         * lib/sprintf.c (sprintf): Likewise.
62564
62565 2007-03-17  Bruno Haible  <bruno@clisp.org>
62566
62567         * tests/test-argp-2.sh (func_compare): Output a context diff.
62568
62569 2007-03-17  Bruno Haible  <bruno@clisp.org>
62570
62571         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62572         locale's decimal-point character.
62573
62574 2007-03-17  Bruno Haible  <bruno@clisp.org>
62575
62576         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62577         before comparing it. Needed because on some platforms (e.g. x86) a
62578         'long double' occupies less bytes than sizeof (long double).
62579
62580 2007-03-17  Bruno Haible  <bruno@clisp.org>
62581
62582         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62583         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62584         * tests/test-getaddrinfo.c (simple): Likewise.
62585         * tests/test-read-file.c (main): Likewise.
62586
62587 2007-03-17  Bruno Haible  <bruno@clisp.org>
62588
62589         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62590
62591 2007-03-17  Bruno Haible  <bruno@clisp.org>
62592
62593         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62594         unused variable.
62595
62596 2007-03-17  Bruno Haible  <bruno@clisp.org>
62597
62598         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62599         * tests/test-c-strncasecmp.c: Likewise.
62600
62601 2007-03-17  Bruno Haible  <bruno@clisp.org>
62602
62603         * modules/stdlib (Depends-on): Add unistd.
62604         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62605         Needed for MacOS X 10.3.
62606
62607 2007-03-17  Bruno Haible  <bruno@clisp.org>
62608
62609         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62610
62611 2007-03-17  Bruno Haible  <bruno@clisp.org>
62612
62613         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62614
62615 2007-03-17  Bruno Haible  <bruno@clisp.org>
62616
62617         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62618         to reflect files copied from gnulib (with or without modifications).
62619         Suggested by Jim Meyering.
62620
62621 2007-03-17  Eric Blake  <ebb9@byu.net>
62622
62623         * NEWS: Document stdlib change from 2007-02-18.
62624
62625 2007-03-17  Jim Meyering  <jim@meyering.net>
62626
62627         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62628         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62629         someone uses a name containing shell meta-characters.
62630         Reported by Alfred M. Szmidt.
62631
62632         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62633
62634 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62635
62636         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62637         and copy gettext configuration files only if configure.ac contains
62638         a use of AM_GNU_GETTEXT_VERSION.
62639
62640 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62641
62642         * build-aux/bootstrap (gnulib_name): New variable.
62643         (gnulib_tool_options): Use it.
62644
62645 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62646
62647         * tests/test-des.c: Use new namespace.
62648
62649 2007-03-15  Bruno Haible  <bruno@clisp.org>
62650
62651         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62652         Reported by James Youngman <jay@gnu.org>.
62653
62654 2007-03-15  Bruno Haible  <bruno@clisp.org>
62655
62656         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62657         declared prototype. Needed with cc on OSF/1 5.1.
62658
62659 2007-03-15  Bruno Haible  <bruno@clisp.org>
62660
62661         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62662         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62663         (struct gl_list_implementation): Add dispose_fn argument to the
62664         'create_empty', 'create' methods.
62665         (struct gl_list_impl_base): Add field 'dispose_fn'.
62666         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62667         argument.
62668         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62669         dispose_fn argument.
62670         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62671         dispose_fn on the dropped values.
62672         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62673         dispose_fn argument.
62674         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62675         dropped values.
62676         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62677         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62678         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62679         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62680         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62681         argument.
62682         (gl_tree_list_free): Call dispose_fn on the dropped values.
62683         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62684         the dropped values.
62685         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62686         Add dispose_fn argument.
62687         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62688         Call dispose_fn on the dropped values.
62689         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62690         Add dispose_fn argument.
62691         (gl_sublist_create): Initialize the 'dispose_fn' field.
62692         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62693         * tests/test-array_list.c (main): Update.
62694         * tests/test-carray_list.c (main): Update.
62695         * tests/test-avltree_list.c (main): Update.
62696         * tests/test-rbtree_list.c (main): Update.
62697         * tests/test-avltreehash_list.c (main): Update.
62698         * tests/test-rbtreehash_list.c (main): Update.
62699         * tests/test-linked_list.c (main): Update.
62700         * tests/test-linkedhash_list.c (main): Update.
62701         * tests/test-array_oset.c (main): Update.
62702
62703 2007-03-15  Bruno Haible  <bruno@clisp.org>
62704
62705         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62706         (gl_oset_create_empty): Add dispose_fn argument.
62707         (struct gl_oset_implementation): Add dispose_fn argument to
62708         'create_empty' method.
62709         (struct gl_oset_impl_base): Add dispose_fn field.
62710         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62711         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62712         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62713         values.
62714         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62715         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62716         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62717         dropped value.
62718         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62719         dropped value.
62720         * tests/test-array_oset.c (main): Update.
62721         * tests/test-avltree_oset.c (main): Update.
62722         * tests/test-rbtree_oset.c (main): Update.
62723         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62724
62725 2007-03-13  Bruno Haible  <bruno@clisp.org>
62726
62727         * tests/test-stdbool.c (i): Update after last patch.
62728
62729 2007-03-12  Bruno Haible  <bruno@clisp.org>
62730
62731         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62732         the iswprint macro. Needed on Solaris 2.5.1.
62733
62734 2007-03-12  Bruno Haible  <bruno@clisp.org>
62735
62736         * tests/test-printf-frexp.c (main): Declare x as volatile.
62737
62738 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62739
62740         * doc/gnulib.texi (Build robot for gnulib): New section.
62741
62742 2007-03-12  Jim Meyering  <jim@meyering.net>
62743
62744         * build-aux/bootstrap: New file.
62745         * build-aux/bootstrap.conf: New file, from coreutils.
62746
62747 2007-03-11  Bruno Haible  <bruno@clisp.org>
62748
62749         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62750
62751 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62752
62753         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62754         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62755         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62756
62757 2007-03-11  Bruno Haible  <bruno@clisp.org>
62758
62759         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62760         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62761
62762 2007-03-11  Bruno Haible  <bruno@clisp.org>
62763
62764         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62765         formula. Needed for SunPRO C 5.0.
62766
62767 2007-03-11  Bruno Haible  <bruno@clisp.org>
62768
62769         * modules/long-options (Depends-on): Add getopt.
62770
62771 2007-03-11  Bruno Haible  <bruno@clisp.org>
62772
62773         * modules/modechange (Depends-on): Add stdbool.
62774
62775 2007-03-11  Bruno Haible  <bruno@clisp.org>
62776
62777         * modules/i-ring (Depends-on): Add stdbool.
62778
62779 2007-03-11  Bruno Haible  <bruno@clisp.org>
62780
62781         * modules/gc-des (Depends-on): Add stdbool.
62782
62783 2007-03-11  Bruno Haible  <bruno@clisp.org>
62784
62785         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62786
62787 2007-03-11  Bruno Haible  <bruno@clisp.org>
62788
62789         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62790
62791 2007-03-11  Bruno Haible  <bruno@clisp.org>
62792
62793         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62794
62795 2007-03-11  Bruno Haible  <bruno@clisp.org>
62796
62797         * lib/vasnprintf.c (sprintf): Undefine.
62798
62799 2007-03-11  Bruno Haible  <bruno@clisp.org>
62800
62801         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62802         initializers in SunPRO C and Compaq C compilers.
62803
62804 2007-03-11  Bruno Haible  <bruno@clisp.org>
62805
62806         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62807         decrementing code ANSI C compliant.
62808
62809 2007-03-11  Bruno Haible  <bruno@clisp.org>
62810
62811         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62812         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62813
62814 2007-03-11  Bruno Haible  <bruno@clisp.org>
62815
62816         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62817         <stdbool.h> substitute doesn't pass.
62818
62819 2007-03-11  Bruno Haible  <bruno@clisp.org>
62820
62821         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62822
62823 2007-03-11  Bruno Haible  <bruno@clisp.org>
62824
62825         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62826         script, for submission to autobuild.josefsson.org.
62827
62828 2007-03-10  Bruno Haible  <bruno@clisp.org>
62829
62830         * modules/canonicalize-lgpl-tests: New file.
62831         * tests/test-canonicalize-lgpl.sh: New file.
62832         * tests/test-canonicalize-lgpl.c: New file.
62833
62834         * modules/c-strcase-tests: New file.
62835         * tests/test-c-strcase.sh: New file.
62836         * tests/test-c-strcasecmp.c: New file.
62837         * tests/test-c-strncasecmp.c: New file.
62838
62839         * modules/atexit-tests: New file.
62840         * tests/test-atexit.sh: New file.
62841         * tests/test-atexit.c: New file.
62842
62843 2007-03-10  Bruno Haible  <bruno@clisp.org>
62844
62845         * tests/test-binary-io.sh: Use temporary filenames that are not so
62846         likely to clash with those of other tests (in a parallel make).
62847         * tests/test-binary-io.c: Likewise.
62848
62849 2007-03-10  Bruno Haible  <bruno@clisp.org>
62850
62851         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62852         fallback; use #error instead.
62853         Suggested by Simon Josefsson.
62854
62855 2007-03-10  Bruno Haible  <bruno@clisp.org>
62856
62857         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62858         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62859         first and the last.
62860
62861 2007-03-10  Bruno Haible  <bruno@clisp.org>
62862
62863         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62864
62865 2007-03-10  Bruno Haible  <bruno@clisp.org>
62866
62867         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62868         "make distcheck".
62869         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62870         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62871         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62872
62873 2007-03-10  Bruno Haible  <bruno@clisp.org>
62874
62875         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62876         variable.
62877         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62878         variable.
62879
62880 2007-03-09  Eric Blake  <ebb9@byu.net>
62881         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62882
62883         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62884         types are not being provided by gnulib.
62885         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62886         types are supported.
62887
62888 2007-03-10  Bruno Haible  <bruno@clisp.org>
62889
62890         * lib/stdio_.h (__attribute__): New macro.
62891         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62892         vsprintf): Specify __attribute__ __format__ for GCC.
62893         Suggested by Eric Blake.
62894
62895 2007-03-09  Bruno Haible  <bruno@clisp.org>
62896
62897         * modules/printf-posix-tests: New file.
62898         * tests/test-printf-posix.sh: New file.
62899         * tests/test-printf-posix.c: New file.
62900
62901         * modules/printf-posix: New file.
62902         * lib/printf.c: New file.
62903         * m4/printf-posix-rpl.m4: New file.
62904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62905         REPLACE_PRINTF.
62906         * lib/stdio_.h (printf): New declaration.
62907         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62908         ____strfmon____): New macros.
62909         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62910         REPLACE_PRINTF.
62911
62912 2007-03-09  Bruno Haible  <bruno@clisp.org>
62913
62914         * tests/test-vasnprintf-posix2.sh: New file.
62915         * tests/test-vasnprintf-posix2.c: New file.
62916         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62917         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62918         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62919
62920         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62921         a locale dependent decimal point, rather than always '.'.
62922
62923 2007-03-09  Eric Blake  <ebb9@byu.net>
62924
62925         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62926         spite of platforms like Tandem/NSK that define it to -1.
62927
62928 2007-03-08  Bruno Haible  <bruno@clisp.org>
62929
62930         * modules/vprintf-posix-tests: New file.
62931         * tests/test-vprintf-posix.sh: New file.
62932         * tests/test-vprintf-posix.c: New file.
62933         * tests/test-printf-posix.h: New file.
62934
62935         * modules/vprintf-posix: New file.
62936         * lib/vprintf.c: New file.
62937         * m4/vprintf-posix.m4: New file.
62938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62939         REPLACE_VPRINTF.
62940         * lib/stdio_.h (vprintf): New declaration.
62941         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62942         REPLACE_VPRINTF.
62943
62944 2007-03-08  Bruno Haible  <bruno@clisp.org>
62945
62946         * modules/fprintf-posix-tests: New file.
62947         * tests/test-fprintf-posix.sh: New file.
62948         * tests/test-fprintf-posix.c: New file.
62949
62950         * modules/fprintf-posix: New file.
62951         * lib/fprintf.c: New file.
62952         * m4/fprintf-posix.m4: New file.
62953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62954         REPLACE_FPRINTF.
62955         * lib/stdio_.h (fprintf): New declaration.
62956         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62957         REPLACE_FPRINTF.
62958
62959 2007-03-08  Bruno Haible  <bruno@clisp.org>
62960
62961         * modules/vfprintf-posix-tests: New file.
62962         * tests/test-vfprintf-posix.sh: New file.
62963         * tests/test-vfprintf-posix.c: New file.
62964         * tests/test-fprintf-posix.h: New file.
62965         * tests/test-fprintf-posix.out: New file.
62966
62967         * modules/vfprintf-posix: New file.
62968         * lib/vfprintf.c: New file.
62969         * m4/vfprintf-posix.m4: New file.
62970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62971         REPLACE_VFPRINTF.
62972         * lib/stdio_.h (vfprintf): New declaration.
62973         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62974         REPLACE_VFPRINTF.
62975
62976 2007-03-08  Bruno Haible  <bruno@clisp.org>
62977
62978         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62979
62980 2007-03-08  Bruno Haible  <bruno@clisp.org>
62981
62982         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62983         instead of 'expr' invocations.
62984         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62985         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62986         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62988         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62989         Suggested by Paul Eggert.
62990
62991 2007-03-08  Bruno Haible  <bruno@clisp.org>
62992
62993         * modules/fseterr-tests: New file.
62994         * tests/test-fseterr.c: New file.
62995
62996         * modules/fseterr: New file.
62997         * lib/fseterr.h: New file.
62998         * lib/fseterr.c: New file.
62999
63000 2007-03-08  Bruno Haible  <bruno@clisp.org>
63001
63002         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63003         * lib/getopt_.h: Likewise.
63004         * lib/mbswidth.h: Likewise.
63005         * lib/setenv.h: Likewise.
63006         * lib/vasnprintf.h: Likewise.
63007         * lib/vasprintf.h: Likewise.
63008         * lib/verror.h: Likewise.
63009         * lib/xsetenv.h: Likewise.
63010         * lib/xvasprintf.h: Likewise.
63011
63012 2007-03-08  Jim Meyering  <jim@meyering.net>
63013
63014         * users.txt: Add parted.
63015
63016         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63017
63018 2007-03-07  Bruno Haible  <bruno@clisp.org>
63019
63020         * m4/printf.m4: Make the shell script snippets copy&pastable.
63021
63022 2007-03-02  Bruno Haible  <bruno@clisp.org>
63023
63024         * lib/netinet_in_.h: New file.
63025         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63026         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63027         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63028         (Depends-on): Add absolute-header.
63029         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63030         into netinet/in.h.
63031
63032 2007-03-03  Bruno Haible  <bruno@clisp.org>
63033
63034         * lib/sys_select_.h: New file.
63035         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63036         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63037         * modules/sys_select (Files): Add lib/sys_select_.h.
63038         (Depends-on): Add absolute-header.
63039         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63040         into sys/select.h.
63041
63042 2007-03-02  Bruno Haible  <bruno@clisp.org>
63043
63044         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63045         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63046         values.
63047         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63048         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63049         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63050         * modules/sys_socket (Depends-on): Add absolute-header.
63051         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63052         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63053         (Include): Remove requirement of inclusion of <sys/types.h>.
63054
63055 2007-03-02  Bruno Haible  <bruno@clisp.org>
63056
63057         * lib/byteswap_.h (bswap_32): Fix formula.
63058
63059 2007-03-06  Bruno Haible  <bruno@clisp.org>
63060
63061         * modules/sprintf-posix-tests: New file.
63062         * tests/test-sprintf-posix.c: New file.
63063
63064         * modules/sprintf-posix: New file.
63065         * lib/sprintf.c: New file.
63066         * m4/sprintf-posix.m4: New file.
63067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63068         REPLACE_SPRINTF.
63069         * lib/stdio_.h (sprintf): New declaration.
63070         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63071         REPLACE_SPRINTF.
63072
63073 2007-03-06  Bruno Haible  <bruno@clisp.org>
63074
63075         * modules/vsprintf-posix-tests: New file.
63076         * tests/test-vsprintf-posix.c: New file.
63077         * tests/test-sprintf-posix.h: New file.
63078
63079         * modules/vsprintf-posix: New file.
63080         * lib/vsprintf.c: New file.
63081         * m4/vsprintf-posix.m4: New file.
63082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63083         REPLACE_VSPRINTF.
63084         * lib/stdio_.h (vsprintf): New declaration.
63085         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63086         REPLACE_VSPRINTF.
63087
63088 2007-03-06  Bruno Haible  <bruno@clisp.org>
63089
63090         * modules/vsnprintf (Depend-on): Remove minmax.
63091
63092 2007-03-06  Bruno Haible  <bruno@clisp.org>
63093
63094         * modules/snprintf-posix-tests: New file.
63095         * tests/test-snprintf-posix.c: New file.
63096
63097         * modules/snprintf-posix: New file.
63098         * m4/snprintf-posix.m4: New file.
63099         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63100         gl_FUNC_SNPRINTF.
63101         (gl_FUNC_SNPRINTF): Invoke it.
63102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63103         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63104         is set.
63105         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63106
63107 2007-03-06  Bruno Haible  <bruno@clisp.org>
63108
63109         * modules/vsnprintf-posix-tests: New file.
63110         * tests/test-vsnprintf-posix.c: New file.
63111         * tests/test-snprintf-posix.h: New file.
63112
63113         * modules/vsnprintf-posix: New file.
63114         * m4/vsnprintf-posix.m4: New file.
63115         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63116         gl_FUNC_VSNPRINTF.
63117         (gl_FUNC_VSNPRINTF): Invoke it.
63118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63119         * lib/stdio_.h (vsnprintf): Define as a replacement if
63120         REPLACE_VSNPRINTF is set.
63121         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63122
63123 2007-03-06  Bruno Haible  <bruno@clisp.org>
63124
63125         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63126         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63127
63128 2007-03-06  Bruno Haible  <bruno@clisp.org>
63129
63130         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63131         (asinl): Declare also if HAVE_DECL_ASINL is set.
63132         (atanl): Declare also if HAVE_DECL_ATANL is set.
63133         (ceill): Declare also if HAVE_DECL_CEILL is set.
63134         (cosl): Declare also if HAVE_DECL_COSL is set.
63135         (expl): Declare also if HAVE_DECL_EXPL is set.
63136         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63137         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63138         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63139         (logl): Declare also if HAVE_DECL_LOGL is set.
63140         (sinl): Declare also if HAVE_DECL_SINL is set.
63141         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63142         (tanl): Declare also if HAVE_DECL_TANL is set.
63143         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63145         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63146         declaration of frexpl, ldexpl.
63147         * modules/printf-frexpl (Depends-on): Add math.
63148         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63149
63150 2007-03-05  Bruno Haible  <bruno@clisp.org>
63151
63152         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63153         frexpl and ldexpl are declared.
63154         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63155
63156 2007-03-05  Bruno Haible  <bruno@clisp.org>
63157
63158         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63159         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63160
63161 2007-03-05  Bruno Haible  <bruno@clisp.org>
63162
63163         * lib/stdio_.h: Include <stddef.h>.
63164
63165 2007-03-05  Bruno Haible  <bruno@clisp.org>
63166
63167         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63168
63169 2007-03-05  Bruno Haible  <bruno@clisp.org>
63170
63171         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63172         NetBSD 4, from Ralf Wildenhues.
63173
63174 2007-03-04  Bruno Haible  <bruno@clisp.org>
63175
63176         * lib/vasprintf.h: Update #if logic for the case when the functions
63177         exist but are overridden.
63178
63179 2007-03-04  Bruno Haible  <bruno@clisp.org>
63180
63181         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63182         implementations: glibc-2.4 and MacOS X 10.3.
63183         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63184         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63185         * tests/test-vasprintf-posix.c (test_function): Likewise.
63186
63187 2007-03-04  Bruno Haible  <bruno@clisp.org>
63188
63189         * modules/vasprintf-posix-tests: New file.
63190         * tests/test-vasprintf-posix.c: New file.
63191
63192         * modules/vasprintf-posix: New file.
63193         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63194         defined.
63195         * m4/vasprintf-posix.m4: New file.
63196         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63197         gl_FUNC_VASPRINTF.
63198         (gl_FUNC_VASPRINTF): Invoke it.
63199         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63200         here.
63201         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63202
63203 2007-03-04  Bruno Haible  <bruno@clisp.org>
63204
63205         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63206         REPLACE_GETTIMEOFDAY.
63207         * modules/sys_time (Makefile.am): Likewise.
63208         * m4/sys_time_h.m4: Likewise.
63209         * m4/gettimeofday.m4: Likewise.
63210
63211 2007-03-04  Bruno Haible  <bruno@clisp.org>
63212
63213         * modules/vasnprintf-posix-tests: New file.
63214         * tests/test-vasnprintf-posix.c: New file.
63215
63216         * modules/vasnprintf-posix: New file.
63217         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63218         printf-frexpl.h.
63219         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63220         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63221         REPLACE_VASNPRINTF is defined.
63222         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63223         gl_FUNC_VASNPRINTF.
63224         (gl_FUNC_VASNPRINTF): Invoke it.
63225         * m4/vasnprintf-posix.m4: New file.
63226         * m4/printf.m4: New file.
63227
63228 2007-03-04  Bruno Haible  <bruno@clisp.org>
63229
63230         Compile progreloc.c only if --enable-relocatable is specified.
63231         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63232         if --enable-relocatable was specified.
63233         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63234         lib_SOURCES.
63235
63236 2007-03-04  Jim Meyering  <jim@meyering.net>
63237
63238         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63239         Use it consistently, rather than enumerating errno constants.
63240
63241 2007-03-04  Bruno Haible  <bruno@clisp.org>
63242
63243         * modules/xvasprintf-tests: New file.
63244         * tests/test-xvasprintf.c: New file.
63245
63246         * modules/vasprintf-tests: New file.
63247         * tests/test-vasprintf.c: New file.
63248
63249         * modules/vasnprintf-tests: New file.
63250         * tests/test-vasnprintf.c: New file.
63251
63252         * modules/vsnprintf-tests: New file.
63253         * tests/test-vsnprintf.c: New file.
63254
63255         * modules/snprintf-tests: New file.
63256         * tests/test-snprintf.c: New file.
63257
63258 2007-03-04  Bruno Haible  <bruno@clisp.org>
63259
63260         Compile relocatable.c only if --enable-relocatable is specified.
63261         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63262         gl_RELOCATABLE_LIBRARY.
63263         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63264         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63265         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63266         gl_RELOCATABLE_LIBRARY.
63267         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63268         (Makefile.am): Remove lib_SOURCES.
63269         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63270         gl_RELOCATABLE_LIBRARY.
63271         (Makefile.am): Remove lib_SOURCES.
63272         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63273         always.
63274         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63275         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63276
63277 2007-03-04  Bruno Haible  <bruno@clisp.org>
63278
63279         * modules/argmatch-tests: New file.
63280         * tests/test-argmatch.c: New file.
63281
63282         * tests/test-allocsa.c (main): Halve the number of loop runs.
63283
63284         * modules/alloca-opt-tests: New file.
63285         * tests/test-alloca-opt.c: New file.
63286
63287 2007-03-04  Jim Meyering  <jim@meyering.net>
63288
63289         Work around difference between Linux ACLs and Solaris 10 ZFS.
63290         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63291         for EINVAL.
63292
63293 2007-03-03  Bruno Haible  <bruno@clisp.org>
63294
63295         * modules/relocatable-prog (Depends-on): Add back progreloc's
63296         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63297
63298 2007-03-03  Bruno Haible  <bruno@clisp.org>
63299
63300         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63301         * modules/relocatable-lib: New file.
63302
63303 2007-03-03  Bruno Haible  <bruno@clisp.org>
63304
63305         * modules/relocatable-prog: Renamed from modules/relocatable.
63306         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63307
63308 2007-03-03  Bruno Haible  <bruno@clisp.org>
63309
63310         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63311         m4/relocatable-lib.m4.
63312         (Depends-on): Remove 'relocatable'.
63313         (configure.ac): Add gl_RELOCATABLE_NOP.
63314
63315 2007-03-03  Bruno Haible  <bruno@clisp.org>
63316
63317         * modules/relocatable-prog-wrapper: New file.
63318         * modules/relocatable (Depends-on): Add it. Remove all other
63319         dependencies except progname.
63320         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63321
63322         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63323         (gl_FUNC_STRERROR): Nop.
63324         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63325
63326         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63327         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63328
63329         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63330         (gl_FUNC_READLINK): Update.
63331
63332         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63333
63334 2007-03-03  Bruno Haible  <bruno@clisp.org>
63335
63336         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63337         * modules/xreadlink (Depends-on): Add unistd.
63338         * modules/xreadlink-with-size (Depends-on): Likewise.
63339
63340 2007-03-03  Bruno Haible  <bruno@clisp.org>
63341
63342         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63343         extracted from gt_FUNC_SETENV.
63344         (gt_FUNC_SETENV): Remove macro.
63345         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63346         remove gt_FUNC_SETENV.
63347
63348 2007-03-03  Bruno Haible  <bruno@clisp.org>
63349
63350         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63351         ENABLE_RELOCATABLE here.
63352         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63353
63354 2007-03-03  Bruno Haible  <bruno@clisp.org>
63355
63356         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63357         * tests/test-rbtreehash_list.c: Include progname.h.
63358         (main): Call set_program_name.
63359
63360         * modules/rbtree-oset-tests (Depends-on): Add progname.
63361         * tests/test-rbtree_oset.c: Include progname.h.
63362         (main): Call set_program_name.
63363
63364         * modules/rbtree-list-tests (Depends-on): Add progname.
63365         * tests/test-rbtree_list.c: Include progname.h.
63366         (main): Call set_program_name.
63367
63368         * modules/linked-list-tests (Depends-on): Add progname.
63369         * tests/test-linked_list.c: Include progname.h.
63370         (main): Call set_program_name.
63371
63372 2007-03-03  Bruno Haible  <bruno@clisp.org>
63373
63374         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63375         All uses of __restrict changed to _Restrict_.
63376         * lib/glob_.h (__restrict): Remove macro.
63377
63378 2007-03-02  Bruno Haible  <bruno@clisp.org>
63379
63380         * modules/gettext (configure.ac): Require gettext infrastructure
63381         from version 0.16.1.
63382
63383 2007-03-02  Bruno Haible  <bruno@clisp.org>
63384
63385         * modules/linkedhash-list-tests (Depends-on): Add progname.
63386         * tests/test-linkedhash_list.c: Include progname.h.
63387         (main): Call set_program_name.
63388
63389         * modules/carray-list-tests (Depends-on): Add progname.
63390         * tests/test-carray_list.c: Include progname.h.
63391         (main): Call set_program_name.
63392
63393         * modules/avltreehash-list-tests (Depends-on): Add progname.
63394         * tests/test-avltreehash_list.c: Include progname.h.
63395         (main): Call set_program_name.
63396
63397         * modules/avltree-oset-tests (Depends-on): Add progname.
63398         * tests/test-avltree_oset.c: Include progname.h.
63399         (main): Call set_program_name.
63400
63401         * modules/avltree-list-tests (Depends-on): Add progname.
63402         * tests/test-avltree_list.c: Include progname.h.
63403         (main): Call set_program_name.
63404
63405         * modules/array-oset-tests (Depends-on): Add progname.
63406         * tests/test-array_oset.c: Include progname.h.
63407         (main): Call set_program_name.
63408
63409         * modules/array-list-tests (Depends-on): Add progname.
63410         * tests/test-array_list.c: Include progname.h.
63411         (main): Call set_program_name.
63412
63413         * modules/argp-tests (Depends-on): Add progname.
63414         * tests/test-argp.c: Include argp.h first. Include progname.h.
63415         (main): Call set_program_name.
63416
63417 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63418
63419         * doc/gnulib-tool.texi (Initial import): Reword description of
63420         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63421         limited effect even if defined after the first system include.
63422
63423 2007-03-01  Bruno Haible  <bruno@clisp.org>
63424
63425         * build-aux/config.libpath: Update to libtool-1.5.22.
63426         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63427
63428 2007-03-01  Bruno Haible  <bruno@clisp.org>
63429
63430         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63431         foo_CFLAGS.
63432         Reported by Ralf Wildenhues.
63433
63434 2007-03-01  Bruno Haible  <bruno@clisp.org>
63435
63436         * build-aux/install-reloc: Remove object files left over by some
63437         compilers.
63438         Reported by Ralf Wildenhues.
63439
63440 2007-03-01  Bruno Haible  <bruno@clisp.org>
63441
63442         * build-aux/install-reloc: Break long lines.
63443
63444 2007-03-01  Bruno Haible  <bruno@clisp.org>
63445
63446         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63447         Reported by Ralf Wildenhues.
63448
63449 2007-03-01  Bruno Haible  <bruno@clisp.org>
63450
63451         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63452         include ordering constraints.
63453
63454 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63455
63456         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63457         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63458         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63459         as another example.
63460         * lib/time_.h: Fix misspelling.
63461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63462         Require gl_HEADER_TIME_H_DEFAULTS.
63463         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63464         * m4/time_r.m4 (gl_TIME_R): Likewise.
63465         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63466
63467 2007-03-01  Bruno Haible  <bruno@clisp.org>
63468
63469         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63470         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63471
63472 2007-03-01  Jim Meyering  <jim@meyering.net>
63473
63474         * modules/xreadlink (Maintainer): Add my name.
63475         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63476
63477 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63478             Bruno Haible  <bruno@clisp.org>
63479
63480         * build-aux/install-reloc: Compile also c-ctype.c.
63481         * build-aux/relocatable.sh.in: New file.
63482         * doc/relocatable.texi: New file.
63483         * doc/relocatable-maint.texi: New file.
63484         * doc/gnulib.texi: Include relocatable-maint.texi.
63485         * lib/progreloc.c: Include unistd.h unconditionally.
63486         * lib/relocwrapper.c: Include unistd.h unconditionally.
63487         Include c-ctype.h.
63488         (add_dotbin): Use c_tolower.
63489         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63490         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63491         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63492         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63493         to m4/relocatable-lib.m4.
63494         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63495         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63496         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63497         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63498         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63499         * modules/relocatable: New file.
63500         * modules/relocatable-lib: New file.
63501         * modules/relocatable-script: New file.
63502
63503 2007-02-28  Bruno Haible  <bruno@clisp.org>
63504
63505         Import --enable-relocatable infrastructure.
63506         * build-aux/config.libpath: New file, from GNU gettext.
63507         * build-aux/install-reloc: New file, from GNU gettext.
63508         * build-aux/reloc-ldflags: New file, from GNU gettext.
63509         * lib/relocatable.h: New file, from GNU gettext.
63510         * lib/relocatable.c: New file, from GNU gettext.
63511         * lib/relocwrapper.c: New file, from GNU gettext.
63512         * m4/relocatable.m4: New file, from GNU gettext.
63513
63514 2007-02-28  Bruno Haible  <bruno@clisp.org>
63515
63516         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63517
63518         * modules/xreadlink: New file, from GNU gettext with modifications.
63519         * lib/xreadlink.c: New file, from GNU gettext.
63520         * lib/xreadlink.h: Add comments.
63521         (xreadlink): New declaration.
63522
63523         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63524         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63525         lib/xreadlink-with-size.c.
63526         (configure.ac): Remove gl_XREADLINK invocation.
63527         (Makefile.am): Augment lib_SOURCES.
63528         * m4/xreadlink.m4: Remove file.
63529         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63530         (xreadlink_with_size): Renamed from xreadink.
63531         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63532         * modules/canonicalize (Depends-on): Replace xreadlink with
63533         xreadlink-with-size.
63534         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63535
63536 2007-02-25  Jim Meyering  <jim@meyering.net>
63537
63538         * build-aux/announce-gen: When complaining about excess arguments,
63539         list them.
63540
63541 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63542
63543         * README: Document signed integer overflow situation more
63544         accurately.
63545
63546 2007-02-25  Bruno Haible  <bruno@clisp.org>
63547
63548         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63549         'a' or 'A' conversion.
63550
63551 2007-02-25  Bruno Haible  <bruno@clisp.org>
63552
63553         * modules/filename: Renamed from modules/pathname.
63554         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63555         lib/concatpath.c with lib/concat-filename.c.
63556         (Makefile.am): Update.
63557         (Include): Replace pathname.h with filename.h.
63558         * lib/filename.h: Renamed from lib/pathname.h.
63559         (concatenated_filename): Renamed from concatenated_pathname.
63560         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63561         (concatenated_filename): Renamed from concatenated_pathname.
63562         * lib/findprog.c: Include filename.h instead of pathname.h.
63563         (find_in_path): Update.
63564         * lib/javacomp.c: Include filename.h instead of pathname.h.
63565         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63566         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63567         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63568         is_oldgcj_14_13_usable, is_javac_usable): Update.
63569         * lib/javaexec.c: Include filename.h instead of pathname.h.
63570         (execute_java_class): Update.
63571         * modules/findprog: Update.
63572         * modules/javacomp: Update.
63573         * modules/javaexec: Update.
63574         * MODULES.html.sh (File system functions): Add 'filename', remove
63575         'pathname'.
63576
63577 2007-02-25  Bruno Haible  <bruno@clisp.org>
63578
63579         * modules/printf-frexpl-tests: New file.
63580         * tests/test-printf-frexpl.c: New file.
63581
63582         * modules/printf-frexpl: New file.
63583         * lib/printf-frexpl.h: New file.
63584         * lib/printf-frexpl.c: New file.
63585         * m4/printf-frexpl.m4: New file.
63586
63587 2007-02-25  Bruno Haible  <bruno@clisp.org>
63588
63589         * modules/printf-frexp-tests: New file.
63590         * tests/test-printf-frexp.c: New file.
63591
63592         * modules/printf-frexp: New file.
63593         * lib/printf-frexp.h: New file.
63594         * lib/printf-frexp.c: New file.
63595         * m4/printf-frexp.m4: New file.
63596
63597 2007-02-25  Bruno Haible  <bruno@clisp.org>
63598
63599         Assume automake >= 1.10 for the tests.
63600         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63601         * modules/arctwo-tests: Likewise.
63602         * modules/argp-tests: Likewise.
63603         * modules/avltree-list-tests: Likewise.
63604         * modules/avltree-oset-tests: Likewise.
63605         * modules/avltreehash-list-tests: Likewise.
63606         * modules/carray-list-tests: Likewise.
63607         * modules/crc-tests: Likewise.
63608         * modules/des-tests: Likewise.
63609         * modules/gc-arcfour-tests: Likewise.
63610         * modules/gc-arctwo-tests: Likewise.
63611         * modules/gc-des-tests: Likewise.
63612         * modules/gc-hmac-md5-tests: Likewise.
63613         * modules/gc-hmac-sha1-tests: Likewise.
63614         * modules/gc-md2-tests: Likewise.
63615         * modules/gc-md4-tests: Likewise.
63616         * modules/gc-md5-tests: Likewise.
63617         * modules/gc-pbkdf2-sha1-tests: Likewise.
63618         * modules/gc-rijndael-tests: Likewise.
63619         * modules/gc-sha1-tests: Likewise.
63620         * modules/gc-tests: Likewise.
63621         * modules/getaddrinfo-tests: Likewise.
63622         * modules/hmac-md5-tests: Likewise.
63623         * modules/hmac-sha1-tests: Likewise.
63624         * modules/linked-list-tests: Likewise.
63625         * modules/linkedhash-list-tests: Likewise.
63626         * modules/lock-tests: Likewise.
63627         * modules/md2-tests: Likewise.
63628         * modules/md4-tests: Likewise.
63629         * modules/md5-tests: Likewise.
63630         * modules/rbtree-list-tests: Likewise.
63631         * modules/rbtree-oset-tests: Likewise.
63632         * modules/rbtreehash-list-tests: Likewise.
63633         * modules/read-file-tests: Likewise.
63634         * modules/rijndael-tests: Likewise.
63635         * modules/stdint-tests: Likewise.
63636         * modules/tls-tests: Likewise.
63637
63638 2007-02-24  Bruno Haible  <bruno@clisp.org>
63639
63640         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63641         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63642         function; instead check whether isnan with a double argument links.
63643         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63644         function; instead check whether isnan with a 'long double' argument
63645         links.
63646         Reported by Eric Blake <ebb9@byu.net>.
63647
63648 2007-02-24  Bruno Haible  <bruno@clisp.org>
63649
63650         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63651         defined.
63652         * lib/isnanl.c: Remove all code. Just include isnan.c.
63653         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63654
63655 2007-02-25  Jim Meyering  <jim@meyering.net>
63656
63657         Avoid conflicting types for 'unsetenv' on FreeBSD.
63658         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63659         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63660         in stdlib.h.
63661
63662 2007-02-24  Bruno Haible  <bruno@clisp.org>
63663
63664         * modules/isnanl-nolibm-tests: New file.
63665         * tests/test-isnanl.c: New file.
63666
63667         * modules/isnanl-nolibm: New file.
63668         * lib/isnanl.h: New file.
63669         * lib/isnanl.c: New file.
63670         * m4/isnanl.m4: New file.
63671
63672 2007-02-24  Bruno Haible  <bruno@clisp.org>
63673
63674         * modules/isnan-nolibm-tests: New file.
63675         * tests/test-isnan.c: New file.
63676
63677         * modules/isnan-nolibm: New file.
63678         * lib/isnan.h: New file.
63679         * lib/isnan.c: New file.
63680         * m4/isnan.m4: New file.
63681
63682 2007-02-24  Bruno Haible  <bruno@clisp.org>
63683
63684         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63685         assume that an exponent fits in 20 bits.
63686
63687 2007-02-24  Jim Meyering  <jim@meyering.net>
63688
63689         * m4/regex.m4: Update the description of the configure-time option,
63690         --without-included-regex, to state accurately what the defaults are,
63691         and perhaps to give people an idea why using this option is risky.
63692
63693 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63694
63695         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63696         loops on small arguments.  This attempts to avoid the problem
63697         Bruno Haible reported for AIX 4.3.2 in
63698         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63699
63700 2007-02-23  Bruno Haible  <bruno@clisp.org>
63701
63702         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63703         Needed for help2man.
63704
63705 2007-02-23  Karl Berry  <karl@gnu.org>
63706
63707         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63708         exists, foo.h should be cvs-ignored, not committed.
63709
63710 2007-02-23  Eric Blake  <ebb9@byu.net>
63711
63712         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63713         * lib/stat-time.h (includes): Likewise.
63714         * lib/utimecmp.c (includes): Likewise.
63715         * lib/utimens.h (includes): Likewise.
63716         * lib/getdate.y (includes): Also include "timespec.h" for use
63717         internal to the module.
63718         * modules/utimens (Depends-on): Revert yesterday's patch.
63719         * modules/nanosleep (Depends-on): Add missing dependency.
63720
63721 2007-02-22  Bruno Haible  <bruno@clisp.org>
63722
63723         * lib/glob.c: Don't include getlogin_r.h.
63724
63725 2007-02-22  Jim Meyering  <jim@meyering.net>
63726
63727         * modules/utimens (Depends-on): Add timespec, required for
63728         utimens.h's inclusion of timespec.h.
63729
63730 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63731
63732         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63733         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63734         Schwab in
63735         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63736         I'll try to think of a better way to fix the Solaris problem.
63737
63738         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63739         like glibc; on Solaris 10, it fails with errno == EINVAL.
63740         POSIX says the behavior is unspecified if the first argument is NULL,
63741         so play it safe and never pass NULL to the system getcwd.
63742
63743 2007-02-21  Jim Meyering  <jim@meyering.net>
63744
63745         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63746         of gettimeofday.  It would conflict with the one now always
63747         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63748         an IRIX 6.5 build failure.
63749
63750 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63751
63752         Minor fixups to port to Solaris 10 with Sun C 5.8.
63753         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63754         * modules/getcwd (Depends-on): Add dirfd.
63755         * lib/putenv.c (putenv): #undef it.
63756         (rpl_putenv): New decl.
63757         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63758
63759 2007-02-20  Bruno Haible  <bruno@clisp.org>
63760
63761         * modules/stdio-tests: New file.
63762         * tests/test-stdio.c: New file.
63763
63764         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63765         (Depends-on): Add stdio.
63766         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63767         (Include): Use <stdio.h> instead of vsnprintf.h.
63768         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63769         HAVE_DECL_VSNPRINTF.
63770         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63771
63772         * modules/snprintf (Files): Remove lib/snprintf.h.
63773         (Depends-on): Add stdio.
63774         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63775         (Include): Use <stdio.h> instead of snprintf.h.
63776         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63777         HAVE_DECL_SNPRINTF.
63778         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63779         * lib/getaddrinfo.c: Likewise.
63780
63781         * modules/stdio: New file.
63782         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63783         * lib/snprintf.h: Remove file.
63784         * lib/vsnprintf.h: Remove file.
63785         * lib/.cppi-disable: Remove snprintf.h.
63786         * m4/stdio_h.m4: New file.
63787         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63788
63789 2007-02-20  Jim Meyering  <jim@meyering.net>
63790
63791         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63792         used by e.g., mingw.  From Bruno Haible.
63793
63794 2007-02-19  Bruno Haible  <bruno@clisp.org>
63795
63796         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63797         warnings.
63798         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63799
63800 2007-02-19  Bruno Haible  <bruno@clisp.org>
63801
63802         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63803         from mingw users.
63804
63805 2007-02-19  Bruno Haible  <bruno@clisp.org>
63806
63807         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63808         warnings.
63809         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63810
63811 2007-02-19  Jim Meyering  <jim@meyering.net>
63812
63813         Don't use FD after a successful "fdopendir (fd)".
63814         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63815         Reset it by calling dirfd on the just-obtained DIR*.
63816
63817         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63818         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63819
63820 2007-02-18  Bruno Haible  <bruno@clisp.org>
63821
63822         * lib/readlink.c: Include <unistd.h>.
63823         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63824         HAVE_READLINK.
63825         * modules/readlink (Depends-on): Add unistd.
63826         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63827         (Include): Add <unistd.h>.
63828
63829         * lib/getlogin_r.h: Remove file.
63830         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63831         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63832         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63833         HAVE_DECL_GETLOGIN_R.
63834         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63835         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63836         (Include): Use <unistd.h> instead of getlogin_r.h.
63837
63838         * lib/getcwd.h: Remove file.
63839         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63840         * lib/xgetcwd.c: Likewise.
63841         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63842         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63843         * modules/getcwd (Files): Remove lib/getcwd.h.
63844         (Depends-on): Add unistd.
63845         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63846         (Include): Use <unistd.h> instad of getcwd.h.
63847
63848         * lib/ftruncate.c: Include <unistd.h> first.
63849         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63850         Set HAVE_FTRUNCATE.
63851         * modules/ftruncate (Depends-on): Add unistd.
63852         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63853
63854         * lib/fchdir.c: Include <unistd.h> first.
63855         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63856         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63857         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63858         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63859         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63860
63861         * lib/dup2.c: Include <unistd.h> first.
63862         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63863         HAVE_DUP2.
63864         * modules/dup2 (Depends-on): Add unistd.
63865         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63866
63867         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63868         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63869         REPLACE_CHOWN. Don't define chown as a macro here.
63870         * modules/chown (Depends-on): Add unistd.
63871         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63872
63873         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63874         Add definition for GL_LINK_WARNING.
63875         (chown, dup2): New declarations.
63876         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63877         link warning.
63878         (ftruncate): New declaration.
63879         (getcwd): New declaration, taken from old getcwd.h.
63880         (getlogin_r): New declaration, taken from old getlogin_r.h.
63881         (readlink): New declaration.
63882         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63883         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63884         (gl_PREREQ_UNISTD): Remove macro.
63885         (gl_UNISTD_MODULE_INDICATOR): New macro.
63886         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63887         many new variables. Don't set UNISTD_H.
63888         * modules/unistd (Description): Change.
63889         (Depends-on): Add link-warning.
63890         (configure.ac): Update.
63891         (Makefile.am): Create unistd.h always. Substitute many new variables
63892         into it.
63893
63894 2007-02-18  Bruno Haible  <bruno@clisp.org>
63895
63896         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63897         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63898         HAVE_GETSUBOPT.
63899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63900         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63901         * lib/getsubopt.h: Remove file.
63902         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63903         (Depends-on): Add stdlib.
63904         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63905         (Includes): Use <stdlib.h> instead of getsubopt.h.
63906         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63907         Set HAVE_GETSUBOPT.
63908         * lib/getsubopt.c: Don't include getsubopt.h.
63909
63910 2007-02-18  Bruno Haible  <bruno@clisp.org>
63911
63912         * modules/fchdir (Depends-on): Add dup2.
63913
63914 2007-02-18  Bruno Haible  <bruno@clisp.org>
63915
63916         * lib/stdlib_.h: Handle glibc's special invocation convention
63917         specially.
63918
63919 2007-02-18  Bruno Haible  <bruno@clisp.org>
63920
63921         * modules/stdlib-tests: New file.
63922         * tests/test-stdlib.c: New file.
63923
63924         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63925         (Depends-on): Add stdlib.
63926         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63927         (Includes): Use <stdlib.h> instead of mkstemp.h.
63928         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63929         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63930         * lib/mkstemp.c: Don't include mkstemp.h.
63931         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63932         * lib/stdlib--.h: Don't include mkstemp.h.
63933
63934         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63935         (Depends-on): Add stdlib.
63936         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63937         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63938         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63939         HAVE_MKDTEMP.
63940         * lib/mkdtemp.c: Don't include mkdtemp.h.
63941         * lib/clean-temp.c: Don't include mkdtemp.h.
63942
63943         * modules/exit (Files): Remove lib/exit.h.
63944         (Depends-on): Add stdlib.
63945         (Makefile.am): Remove lib_SOURCES.
63946         (Include): Use <stdlib.h> instead of exit.h.
63947         * lib/argmatch.c: Don't include exit.h.
63948         * lib/execute.c: Likewise.
63949         * lib/pagealign_alloc.c: Likewise.
63950         * lib/pipe.c: Likewise.
63951         * lib/wait-process.c: Likewise.
63952         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63953         * lib/exitfail.c: Likewise.
63954         * lib/savewd.c: Likewise.
63955         * lib/xsetenv.c: Likewise.
63956
63957         * modules/stdlib: New file.
63958         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63959         and extra comments about mkstemp().
63960         * lib/exit.h: Remove file.
63961         * lib/mkdtemp.h: Remove file.
63962         * lib/mkstemp.h: Remove file.
63963         * m4/stdlib_h.m4: New file.
63964         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63965
63966 2007-02-18  Bruno Haible  <bruno@clisp.org>
63967
63968         * modules/math-tests: New file.
63969         * tests/test-math.c: New file.
63970
63971         * modules/math: New file.
63972         * modules/mathl (Files): Remove lib/mathl.h.
63973         (Depends-on): Add math.
63974         (Makefile.am): Don't mention mathl.h.
63975         (Include): Use <math.h> instead of mathl.h.
63976         * lib/math_.h: New file.
63977         * lib/mathl.h: Remove file.
63978         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63979         mathl.h.
63980         * lib/asinl.c: Likewise.
63981         * lib/atanl.c: Likewise.
63982         * lib/ceill.c: Likewise.
63983         * lib/cosl.c: Likewise.
63984         * lib/expl.c: Likewise.
63985         * lib/floorl.c: Likewise.
63986         * lib/frexpl.c: Likewise.
63987         * lib/ldexpl.c: Likewise.
63988         * lib/logl.c: Likewise.
63989         * lib/sincosl.c: Likewise.
63990         * lib/sinl.c: Likewise.
63991         * lib/sqrtl.c: Likewise.
63992         * lib/tanl.c: Likewise.
63993         * lib/trigl.c: Likewise.
63994         * m4/math_h.m4: New file.
63995         * MODULES.html.sh (Mathematics): Add math.
63996
63997 2007-02-17  Bruno Haible  <bruno@clisp.org>
63998
63999         * modules/wctype-tests: New file.
64000         * tests/test-wctype.c: New file.
64001
64002         * modules/wchar-tests: New file.
64003         * tests/test-wchar.c: New file.
64004
64005         * modules/unistd-tests: New file.
64006         * tests/test-unistd.c: New file.
64007
64008         * modules/time-tests: New file.
64009         * tests/test-time.c: New file.
64010
64011         * modules/sysexits-tests: New file.
64012         * tests/test-sysexits.c: New file.
64013
64014         * modules/sys_time-tests: New file.
64015         * tests/test-sys_time.c: New file.
64016
64017         * modules/sys_stat-tests: New file.
64018         * tests/test-sys_stat.c: New file.
64019
64020         * modules/sys_socket-tests: New file.
64021         * tests/test-sys_socket.c: New file.
64022
64023         * modules/sys_select-tests: New file.
64024         * tests/test-sys_select.c: New file.
64025
64026         * modules/string-tests: New file.
64027         * tests/test-string.c: New file.
64028
64029         * modules/stdbool-tests: New file.
64030         * tests/test-stdbool.c: New file.
64031
64032         * modules/netinet_in-tests: New file.
64033         * tests/test-netinet_in.c: New file.
64034
64035         * modules/inttypes-tests: New file.
64036         * tests/test-inttypes.c: New file.
64037
64038         * modules/fcntl-tests: New file.
64039         * tests/test-fcntl.c: New file.
64040
64041         * modules/byteswap-tests: New file.
64042         * tests/test-byteswap.c: New file.
64043
64044         * modules/arpa_inet-tests: New file.
64045         * tests/test-arpa_inet.c: New file.
64046
64047 2007-02-17  Bruno Haible  <bruno@clisp.org>
64048
64049         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64050         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64051         if the corresponding module is not enabled. Emit link warnings if
64052         the function is used nevertheless.
64053         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64054         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64055         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64056         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64057         * modules/inttypes (Depends-on): Add link-warning.
64058         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64059         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64060         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64061         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64062         * modules/imaxdiv (configure.ac): Likewise.
64063         * modules/strtoimax (configure.ac): Likewise.
64064         * modules/strtoumax (configure.ac): Likewise.
64065
64066 2007-02-17  Bruno Haible  <bruno@clisp.org>
64067
64068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64069         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64070         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64071         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64072
64073 2007-02-17  Bruno Haible  <bruno@clisp.org>
64074
64075         * modules/link-warning: New file.
64076         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64077         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64078         * modules/string (Depends-on): Add link-warning.
64079         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64080         string.h.
64081         * MODULES.html.sh (Support for building libraries and executables): Add
64082         link-warning.
64083
64084 2007-02-17  Bruno Haible  <bruno@clisp.org>
64085
64086         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64087         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64088         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64089         long lines.
64090
64091 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64092             Bruno Haible  <bruno@clisp.org>
64093
64094         * modules/tmpfile: New file.
64095         * lib/tmpfile.c: New file.
64096         * m4/tmpfile.m4: New file.
64097         * MODULES.html.sh (func_all_modules): New section "Input/output".
64098
64099 2007-02-15  Bruno Haible  <bruno@clisp.org>
64100
64101         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64102         (supports_delete_on_close): New function.
64103         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64104
64105 2007-02-14  Bruno Haible  <bruno@clisp.org>
64106
64107         * modules/mbspcasecmp-tests: New file.
64108         * tests/test-mbspcasecmp.sh: New file.
64109         * tests/test-mbspcasecmp.c: New file.
64110
64111         New module mbspcasecmp.
64112         * modules/mbspcasecmp: New file.
64113         * lib/mbspcasecmp.c: New file.
64114         * lib/string_.h (strncasecmp): Change warning message.
64115         (mbspcasecmp): New declaration.
64116         * m4/mbspcasecmp.m4: New file.
64117         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64118         GNULIB_MBSPCASECMP.
64119         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64120         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64121
64122 2007-02-14  Bruno Haible  <bruno@clisp.org>
64123
64124         * modules/mbsncasecmp-tests: New file.
64125         * tests/test-mbsncasecmp.sh: New file.
64126         * tests/test-mbsncasecmp.c: New file.
64127
64128         New module mbsncasecmp.
64129         * modules/mbsncasecmp: New file.
64130         * lib/mbsncasecmp.c: New file.
64131         * lib/string_.h (mbsncasecmp): New declaration.
64132         * m4/mbsncasecmp.m4: New file.
64133         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64134         GNULIB_MBSNCASECMP.
64135         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64136         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64137
64138 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64139
64140         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64141         Verify that it doesn't overlap with our flags.
64142         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64143         do not have the desired effect in multibyte locales; instead, use
64144         mbscasecmp.
64145         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64146         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64147         we don't require GNU fnmatch ourselves (if our users require it, they
64148         should do so explicitly).
64149
64150         Fix regex code so it doesn't rely on strcasecmp.
64151         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64152         Otherwise, include gnulib's langinfo.h.
64153         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64154         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64155         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64156         * modules/regex (FILES): Remove m4/codeset.m4.
64157         (Depends-on): Add localcharset.  Remove strcase.
64158
64159 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64160
64161         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64162         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64163
64164 2007-02-13  Bruno Haible  <bruno@clisp.org>
64165
64166         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64167         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64168
64169 2007-02-12  Bruno Haible  <bruno@clisp.org>
64170
64171         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64172         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64173         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64174         time warning rather than a link error.
64175
64176 2007-02-12  Bruno Haible  <bruno@clisp.org>
64177
64178         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64179         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64180         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64181
64182 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64183
64184         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64185         args, not 2.
64186
64187 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64188
64189         New module 'time', so that apps can include <time.h> as per
64190         POSIX and GNU instead of separate include files like time_r.h
64191         and timegm.h.  This implementation tries out a simpler approach
64192         for replacing decls in standard include files (as compared to
64193         the string module), somewhat as an experiment.
64194
64195         * config/srclist.txt: Comment out mktime.c for now.
64196         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64197         since it doesn't apply any more.  Use generic wording instead.
64198         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64199         'time'.
64200         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64201         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64202         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64203         Don't include <sys/types.h>; no longer needed since we assume C89.
64204         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64205         * lib/strftime.c: Likewise.
64206         * lib/time_r.c: Likewise.
64207         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64208         * lib/nanosleep.c: Include <time.h> first, to check interface.
64209         * lib/strptime.c: Likewise.
64210         * lib/time_r.c: Likewise.
64211         * lib/timegm.c: Likewise.
64212         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64213         needed.
64214         * lib/timegm.c: Don't include timegm.h; no longer needed.
64215         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64216         time.h now handles any problems in that area.
64217         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64218         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64219         that time.h defines struct timespec.
64220         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64221         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64222         handles that.
64223         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64224         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64225         needed.  Set REPLACE_LOCALTIME.
64226         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64227         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64228         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64229         nanosleep; time_h.m4 now does that.  Don't require
64230         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64231         module handles this now.
64232         * modules/getdate (Depends-on): Remove timespec.  Add time.
64233         * modules/nanosleep (Depends-on): Likewise.
64234         * modules/stat-time (Depends-on): Likewise.
64235         * modules/nanosleep (Include): Include time.h, not timespec.h.
64236         * modules/strptime (Files): Remove lib/strptime.h.
64237         (Depends-on): Add extensions, time.
64238         (Include): Include time.h, not strptime.h.
64239         * modules/time_r (Files): Remove lib/time_r.h.
64240         (Depends-on): Add time.
64241         (Include): Include time.h, not time_r.h.
64242         * modules/timegm: Likewise.
64243         * modules/timespec (Description): Now does timespec-related decls
64244         of our own, instead of struct timespec itself.
64245         (Depends-on): Add time; remove extensions.
64246         (Maintainer): Add self.
64247         * modules/utimecmp (Depends-on): Add time; remove timespec.
64248         * modules/utimens (Depends-on): Likewise.
64249         * modules/xnanosleep (Depends-on): Likewise.
64250
64251 2007-02-11  Bruno Haible  <bruno@clisp.org>
64252
64253         * lib/c-strstr.c: Include allocsa.h.
64254         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64255         * lib/c-strcasestr.c: Include allocsa.h.
64256         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64257         * lib/strcasestr.c: Include allocsa.h.
64258         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64259         * lib/mbsstr.c: Include allocsa.h.
64260         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64261         allocsa/freesa instead of malloc/free.
64262         * lib/mbscasestr.c: Include allocsa.h.
64263         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64264         allocsa/freesa instead of malloc/free.
64265         * modules/c-strstr (Depends-on): Add allocsa.
64266         * modules/c-strcasestr (Depends-on): Likewise.
64267         * modules/strcasestr (Depends-on): Likewise.
64268         * modules/mbsstr (Depends-on): Likewise.
64269         * modules/mbscasestr (Depends-on): Likewise.
64270
64271 2007-02-11  Bruno Haible  <bruno@clisp.org>
64272
64273         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64274
64275         * modules/mbsspn-tests: New file.
64276         * tests/test-mbsspn.sh: New file.
64277         * tests/test-mbsspn.c: New file.
64278
64279 2007-02-11  Bruno Haible  <bruno@clisp.org>
64280
64281         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64282
64283         * modules/mbspbrk-tests: New file.
64284         * tests/test-mbspbrk.sh: New file.
64285         * tests/test-mbspbrk.c: New file.
64286
64287 2007-02-11  Bruno Haible  <bruno@clisp.org>
64288
64289         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64290         unneeded cast.
64291
64292         * modules/mbscspn-tests: New file.
64293         * tests/test-mbscspn.sh: New file.
64294         * tests/test-mbscspn.c: New file.
64295
64296 2007-02-11  Bruno Haible  <bruno@clisp.org>
64297
64298         * modules/mbscasecmp-tests: New file.
64299         * tests/test-mbscasecmp.sh: New file.
64300         * tests/test-mbscasecmp.c: New file.
64301
64302 2007-02-11  Bruno Haible  <bruno@clisp.org>
64303
64304         Ensure O(n) worst-case complexity of mbscasestr.
64305         * lib/mbscasestr.c: Include stdbool.h.
64306         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64307         functions.
64308         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64309         the bookkeeping indicates that it's worth it.
64310         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64311
64312         * modules/mbscasestr-tests: New file.
64313         * tests/test-mbscasestr1.c: New file.
64314         * tests/test-mbscasestr2.sh: New file.
64315         * tests/test-mbscasestr2.c: New file.
64316         * tests/test-mbscasestr3.sh: New file.
64317         * tests/test-mbscasestr3.c: New file.
64318         * tests/test-mbscasestr4.sh: New file.
64319         * tests/test-mbscasestr4.c: New file.
64320         * m4/locale-tr.m4: New file.
64321
64322 2007-02-11  Bruno Haible  <bruno@clisp.org>
64323
64324         Ensure O(n) worst-case complexity of mbsstr.
64325         * lib/mbsstr.c: Include stdbool.h.
64326         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64327         functions.
64328         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64329         bookkeeping indicates that it's worth it.
64330         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64331
64332         * modules/mbsstr-tests: New file.
64333         * tests/test-mbsstr1.c: New file.
64334         * tests/test-mbsstr2.sh: New file.
64335         * tests/test-mbsstr2.c: New file.
64336         * tests/test-mbsstr3.sh: New file.
64337         * tests/test-mbsstr3.c: New file.
64338         * m4/locale-fr.m4: New file.
64339
64340 2007-02-11  Bruno Haible  <bruno@clisp.org>
64341
64342         * lib/mbsrchr.c (mbsrchr): Fix bug.
64343
64344         * modules/mbsrchr-tests: New file.
64345         * tests/test-mbsrchr.sh: New file.
64346         * tests/test-mbsrchr.c: New file.
64347
64348 2007-02-11  Bruno Haible  <bruno@clisp.org>
64349
64350         * lib/mbschr.c (mbschr): Fix bug.
64351
64352         * modules/mbschr-tests: New file.
64353         * tests/test-mbschr.sh: New file.
64354         * tests/test-mbschr.c: New file.
64355         * m4/locale-zh.m4: New file.
64356
64357 2007-02-11  Bruno Haible  <bruno@clisp.org>
64358
64359         Support for copying multibyte string iterators.
64360         * lib/mbiter.h: Include <string.h>.
64361         (mbiter_multi_copy): New function.
64362         (mbi_copy): New macro.
64363         * lib/mbuiter.h: Include <string.h>.
64364         (mbuiter_multi_copy): New function.
64365         (mbui_copy): New macro.
64366
64367 2007-02-11  Bruno Haible  <bruno@clisp.org>
64368
64369         New module mbslen.
64370         * modules/mbslen: New file.
64371         * lib/mbslen.c: New file.
64372         * lib/string_.h (mbslen): New declaration.
64373         * m4/mbslen.m4: New file.
64374         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64375         GNULIB_MBSLEN.
64376         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64377         * MODULES.html.sh (Internationalization functions): Add mbslen.
64378
64379 2007-02-11  Bruno Haible  <bruno@clisp.org>
64380
64381         Ensure O(n) worst-case complexity of strcasestr substitute.
64382         * lib/strcasestr.c: Include stdbool.h.
64383         (knuth_morris_pratt): New function.
64384         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64385         bookkeeping indicates that it's worth it.
64386         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64387
64388         * modules/strcasestr-tests: New file.
64389         * tests/test-strcasestr.c: New file.
64390
64391 2007-02-11  Bruno Haible  <bruno@clisp.org>
64392
64393         Ensure O(n) worst-case complexity of c_strcasestr.
64394         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64395         (knuth_morris_pratt): New function.
64396         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64397         the bookkeeping indicates that it's worth it.
64398         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64399
64400         * modules/c-strcasestr-tests: New file.
64401         * tests/test-c-strcasestr.c: New file.
64402
64403 2007-02-11  Bruno Haible  <bruno@clisp.org>
64404
64405         Ensure O(n) worst-case complexity of c_strstr.
64406         * lib/c-strstr.c: Include stdbool.h, string.h.
64407         (knuth_morris_pratt): New function.
64408         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64409         bookkeeping indicates that it's worth it.
64410         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64411
64412         * lib/c-strstr.c: Complete rewrite for maintainability.
64413
64414         * modules/c-strstr-tests: New file.
64415         * tests/test-c-strstr.c: New file.
64416
64417 2007-02-11  Bruno Haible  <bruno@clisp.org>
64418
64419         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64420         5.2.1 and earlier, whereby \055 was treated just like the range
64421         delimiter '-'.
64422         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64423
64424 2007-02-08  Bruno Haible  <bruno@clisp.org>
64425
64426         * modules/regex (Depends-on): Add stdbool.
64427         Reported by Dalibor Topic <robilad@kaffe.org>.
64428
64429 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64430
64431         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64432         Prefer returning from main to exiting from it.
64433         Remove unnecessary parens after sizeof.
64434
64435 2007-02-05  Bruno Haible  <bruno@clisp.org>
64436
64437         New module mbssep.
64438         * modules/mbssep: New file.
64439         * lib/mbssep.c: New file.
64440         * lib/string_.h (strsep): Add a conditional link warning.
64441         (mbssep): New declaration.
64442         * m4/mbssep.m4: New file.
64443         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64444         GNULIB_MBSSEP.
64445         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64446         * MODULES.html.sh (Internationalization functions): Add mbssep.
64447
64448 2007-02-05  Bruno Haible  <bruno@clisp.org>
64449
64450         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64451         Optimize search in case of 1 delimiter.
64452
64453 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64454
64455         * lib/acl.h: Include sys/types.h before sys/acl.h.
64456
64457 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64458
64459         Merge upstream fix for glibc bugzilla #3957:
64460
64461         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64462
64463         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64464         bit for RE_HAT_LISTS_NOT_NEWLINE.
64465         (build_charclass_op): Remove bogus comment.
64466
64467 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64468
64469         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64470
64471 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64472
64473         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64474         * lib/memmem.c [!defined _LIBC]: Include config.h.
64475
64476 2007-02-04  Bruno Haible  <bruno@clisp.org>
64477
64478         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64479         warning message.
64480
64481 2007-02-04  Bruno Haible  <bruno@clisp.org>
64482
64483         New module mbstok_r.
64484         * modules/mbstok_r: New file.
64485         * lib/mbstok_r.c: New file.
64486         * lib/string_.h (strtok_r): Change argument names to match the
64487         comments. Add a conditional link warning.
64488         (mbstok_r): New declaration.
64489         * m4/mbstok_r.m4: New file.
64490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64491         GNULIB_MBSTOK_R.
64492         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64493         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64494
64495 2007-02-04  Bruno Haible  <bruno@clisp.org>
64496
64497         New module mbsspn.
64498         * modules/mbsspn: New file.
64499         * lib/mbsspn.c: New file.
64500         * lib/string_.h (strspn): Add a conditional link warning.
64501         (mbsspn): New declaration.
64502         * m4/mbsspn.m4: New file.
64503         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64504         GNULIB_MBSSPN.
64505         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64506         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64507
64508 2007-02-04  Bruno Haible  <bruno@clisp.org>
64509
64510         New module mbspbrk.
64511         * modules/mbspbrk: New file.
64512         * lib/mbspbrk.c: New file.
64513         * lib/string_.h (strpbrk): Add a conditional link warning.
64514         (mbspbrk): New declaration.
64515         * m4/mbspbrk.m4: New file.
64516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64517         GNULIB_MBSPBRK.
64518         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64519         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64520
64521 2007-02-04  Bruno Haible  <bruno@clisp.org>
64522
64523         New module mbscspn.
64524         * modules/mbscspn: New file.
64525         * lib/mbscspn.c: New file.
64526         * lib/string_.h (strcspn): Add a conditional link warning.
64527         (mbscspn): New declaration.
64528         * m4/mbscspn.m4: New file.
64529         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64530         GNULIB_MBSCSPN.
64531         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64532         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64533
64534 2007-02-04  Bruno Haible  <bruno@clisp.org>
64535
64536         New module mbscasestr, reduced goal of strcasestr.
64537         * modules/mbscasestr: New file.
64538         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64539         (mbscasestr): Renamed from strcasestr.
64540         * lib/strcasestr.c: Don't include mbuiter.h.
64541         (strcasestr): Remove support for multibyte locales.
64542         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64543         Change the conditional link warning.
64544         (mbscasestr): New declaration.
64545         * m4/mbscasestr.m4: New file.
64546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64547         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64548         REPLACE_STRCASESTR.
64549         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64551         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64552         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64553         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64554         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64555         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64556         (Depends-on): Remove mbuiter.
64557         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64558
64559 2007-02-04  Bruno Haible  <bruno@clisp.org>
64560
64561         Simplify handling of strncasecmp.
64562         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64563         the conditional link warning.
64564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64565         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64566         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64567         * modules/strcase (configure.ac): Don't invoke
64568         gl_STRING_MODULE_INDICATOR.
64569         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64570
64571 2007-02-04  Bruno Haible  <bruno@clisp.org>
64572
64573         New module mbscasecmp, reduced goal of strcasecmp.
64574         * modules/mbscasecmp: New file.
64575         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64576         (mbscasecmp): Renamed from strcasecmp.
64577         * lib/strcasecmp.c: Don't include mbuiter.h.
64578         (strcasecmp): Remove support for multibyte locales.
64579         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64580         Change the conditional link warning.
64581         (mbscasecmp): New declaration.
64582         * m4/mbscasecmp.m4: New file.
64583         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64584         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64585         REPLACE_STRCASECMP.
64586         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64587         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64588         GNULIB_MBSCASECMP.
64589         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64590         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64591         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64592         (Depends-on): Remove mbuiter.
64593         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64594
64595 2007-02-04  Bruno Haible  <bruno@clisp.org>
64596
64597         New module mbsstr. Remove module strstr.
64598         * modules/mbsstr: New file.
64599         * modules/strstr: Remove file.
64600         * lib/mbsstr.c: Renamed from lib/strstr.c.
64601         (mbsstr): Renamed from strstr.
64602         * lib/string_.h (strstr): Remove declaration. Change the conditional
64603         link warning.
64604         (mbsstr): New declaration.
64605         * m4/mbsstr.m4: New file.
64606         * m4/strstr.m4: Remove file.
64607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64608         REPLACE_STRSTR.
64609         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64610         Don't initialize GNULIB_STRSTR.
64611         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64612         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64613         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64614         (Support for systems lacking ANSI C 89): Remove strstr.
64615
64616 2007-02-04  Bruno Haible  <bruno@clisp.org>
64617
64618         New module mbsrchr.
64619         * modules/mbsrchr: New file.
64620         * lib/mbsrchr.c: New file.
64621         * lib/string_.h (strrchr): Add a conditional link warning.
64622         (mbsrchr): New declaration.
64623         * m4/mbsrchr.m4: New file.
64624         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64625         GNULIB_MBSRCHR.
64626         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64627         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64628
64629 2007-02-04  Bruno Haible  <bruno@clisp.org>
64630
64631         New module mbschr.
64632         * modules/mbschr: New file.
64633         * lib/mbschr.c: New file.
64634         * lib/string_.h (strchr): Add a conditional link warning.
64635         (mbschr): New declaration.
64636         * m4/mbschr.m4: New file.
64637         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64638         GNULIB_MBSCHR.
64639         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64640         * MODULES.html.sh (Internationalization functions): Add mbschr.
64641
64642 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64643
64644         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64645
64646         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64647
64648 2007-02-04  Bruno Haible  <bruno@clisp.org>
64649
64650         New module description section 'configure.ac-early'.
64651         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64652         (func_get_autoconf_early_snippet): New function.
64653         (func_import, func_create_testdir): Use it. Remove special cases for
64654         modules 'extensions' and 'lock'.
64655         * modules/extensions (configure.ac-early): Require
64656         gl_USE_SYSTEM_EXTENSIONS.
64657         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64658
64659 2007-02-04  Bruno Haible  <bruno@clisp.org>
64660
64661         Make use of gcj-4.3's -fsource and -ftarget option.
64662         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64663         and if so try the options -fsource and -ftarget.
64664         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64665         source_version, ftarget_option, target_version arguments.
64666         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64667         (is_envjavac_oldgcj_14_14_usable): Renamed from
64668         is_envjavac_gcj_14_14_usable.
64669         (is_envjavac_oldgcj_14_13_usable): Renamed from
64670         is_envjavac_gcj_14_13_usable.
64671         (is_gcj_present): Update.
64672         (is_gcj_43, is_gcj43_usable): New functions.
64673         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64674         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64675         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64676         try the options -fsource and -ftarget.
64677
64678 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64679
64680         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64681         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64682         larger value.
64683
64684 2007-02-03  Jim Meyering  <jim@meyering.net>
64685
64686         Give tools a better chance to allocate space for very large buffers.
64687         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64688
64689         Make pwd and readlink work also when run with an unreadable parent dir
64690         on systems with openat support.
64691         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64692         provided getcwd function, even when we have openat support.
64693         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64694
64695 2007-02-02  Bruno Haible  <bruno@clisp.org>
64696
64697         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64698         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64699         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64700         portability problems if one of these functions is only used on specific
64701         platforms.
64702         Reported by Paul Eggert.
64703
64704 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64705
64706         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64707         is causing more trouble than it's curing.
64708         * lib/regex_internal.h (__mempcpy): Remove.
64709         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64710         (and make the code a tad smaller to boot).
64711         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64712
64713 2007-02-02  Jim Meyering  <jim@meyering.net>
64714
64715         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64716         section, not in the Makefile.am: one.
64717
64718 2007-02-02  Eric Blake  <ebb9@byu.net>
64719
64720         * lib/strchrnul.c: Always include config.h first.
64721
64722         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64723         gnulib strstr is not necessary here.
64724
64725 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64726
64727         * m4/socklen.m4: Fix typo.
64728
64729 2007-02-02  Eric Blake  <ebb9@byu.net>
64730
64731         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64732         * modules/netinet_in (Makefile.am): Likewise.
64733
64734 2007-02-01  Bruno Haible  <bruno@clisp.org>
64735
64736         * lib/string_.h (GL_LINK_WARNING): New macro.
64737         (strcasecmp, strstr, strcasestr): If provided by the system,
64738         conditionally define as a macro that leads to a warning instead of to
64739         an error.
64740         (strncasecmp): Conditionally define as a macro that leads to a warning.
64741
64742 2007-02-01  Karl Berry  <karl@gnu.org>
64743
64744         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64745
64746 2007-02-01  Bruno Haible  <bruno@clisp.org>
64747
64748         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64749         renamings.
64750
64751 2007-02-01  Eric Blake  <ebb9@byu.net>
64752
64753         * modules/regex (Depends-on): Revert dependence on mempcpy.
64754         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64755         module's definition of mempcpy.
64756         Reported by Paul Eggert.
64757
64758 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64759
64760         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64761         the symbol XYZ before redefining it.  This fixes a problem with
64762         programs that don't use XYZ, when compiled on systems that define
64763         XYZ to something else.
64764
64765 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64766
64767         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64768         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64769         writeable to group or other and (2) is intended to have a special
64770         mode bit that is set or cleared.  In such a case, the directory
64771         should be neither group- nor other-writeable until the special
64772         mode bits are right.
64773
64774 2007-01-31  Eric Blake  <ebb9@byu.net>
64775
64776         * modules/mountlist (Depends-on): Add strstr.
64777
64778         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64779         bug.
64780         * modules/string (Makefile.am): Remove redundant replacement.
64781         * modules/regex (Depends-on): Add mempcpy.
64782
64783 2007-01-31  Bruno Haible  <bruno@clisp.org>
64784
64785         New module description field 'Link'.
64786         * gnulib-tool (func_usage): Document --extract-link-directive.
64787         (sed_extract_prog): Recognize 'Link' directive.
64788         (func_get_link_directive): New function.
64789         (func_import): Show summary of link directives.
64790         Handle --extract-link-directive option.
64791         * modules/acl (Link): New section.
64792         * modules/clock-time (Link): New section.
64793         * modules/euidaccess (Link): New section.
64794         * modules/gettext (Link): New section.
64795         * modules/iconv (Link): New section.
64796         * modules/lock (Link): New section.
64797         * modules/nanosleep (Link): New section.
64798         * modules/readline (Link): New section.
64799
64800 2007-01-27  Bruno Haible  <bruno@clisp.org>
64801
64802         Enforce the use of gnulib modules for unportable <string.h> functions.
64803         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64804         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64805         (gl_HEADER_STRING_H_BODY): Require it.
64806         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64807         the symbol XYZ to one that gives a link error.
64808         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64809         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64810         * modules/mempcpy (configure.ac): Likewise.
64811         * modules/memrchr (configure.ac): Likewise.
64812         * modules/stpcpy (configure.ac): Likewise.
64813         * modules/stpncpy (configure.ac): Likewise.
64814         * modules/strcase (configure.ac): Likewise.
64815         * modules/strcasestr (configure.ac): Likewise.
64816         * modules/strchrnul (configure.ac): Likewise.
64817         * modules/strdup (configure.ac): Likewise.
64818         * modules/strndup (configure.ac): Likewise.
64819         * modules/strnlen (configure.ac): Likewise.
64820         * modules/strpbrk (configure.ac): Likewise.
64821         * modules/strsep (configure.ac): Likewise.
64822         * modules/strstr (configure.ac): Likewise.
64823         * modules/strtok_r (configure.ac): Likewise.
64824
64825 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64826
64827         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64828
64829 2007-01-30  Jim Meyering  <jim@meyering.net>
64830
64831         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64832
64833 2007-01-29  Bruno Haible  <bruno@clisp.org>
64834
64835         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64836         * lib/execute.c: Likewise.
64837         * lib/pipe.c: Likewise.
64838         * lib/printf-args.h: Likewise.
64839         * lib/printf-args.c: Likewise.
64840         * lib/printf-parse.c: Likewise.
64841         * lib/vasnprintf.c: Likewise.
64842
64843 2007-01-29  Eric Blake  <ebb9@byu.net>
64844
64845         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64846         declaration.
64847
64848 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64849
64850         * lib/strptime.h (strptime): Use 'restrict' for args where
64851         POSIX requires this.
64852         * lib/strptime.c (strptime): Likewise.
64853         Change license notice from LGPL to GPL, since gnulib-tool will
64854         change this as needed.
64855         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64856         defined.
64857         Include "strptime.h" first, to check interface.
64858         Do not #undef _LIBC and _NL_CURRENT.
64859         Do not include <stdlib.h>; no longer needed.
64860         Include "time_r.h" and declare ptime_locale_status
64861         only if _LIBC is not defined.
64862         (__P): Remove unused macro.
64863         (match_string): Bring back glibc version, but use it only if _LIBC
64864         is defined.
64865         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64866         Remove unnecessary assertion and abort() call.
64867         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64868         * m4/strptime.m4: Fix serial number comment.
64869         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64870         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64871         (Depends-on): Add time_r.
64872
64873 2007-01-29  Bruno Haible  <bruno@clisp.org>
64874
64875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64876         strptime.
64877         * modules/strptime (Depends-on): Add stdbool.
64878         * lib/strptime.h: Include <time.h> always. Add comments.
64879
64880 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64881
64882         * modules/strptime: New file.
64883         * lib/strptime.h: New file.
64884         * lib/strptime.c: New file.
64885         * m4/strptime.m4: New file.
64886
64887 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64888
64889         * MODULES.html.sh: New module mpsort.
64890         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64891
64892         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64893         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64895         All uses changed.
64896         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64897         All uses changed.
64898         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64899         to _Restrict_.
64900         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64901         the parameter matches the prototype.
64902
64903 2007-01-28  Jim Meyering  <jim@meyering.net>
64904
64905         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64906         sys/time.h here, reverting that part of the previous patch:
64907         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64908
64909 2007-01-28  Bruno Haible  <bruno@clisp.org>
64910
64911         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64912         value of $(SYS_TIME_H).
64913         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64914         remove it conditionally, too. [added by Jim Meyering]
64915         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64916         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64917         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64918         GETTIMEOFDAY_REPLACEMENT to 1.
64919
64920 2007-01-28  Bruno Haible  <bruno@clisp.org>
64921
64922         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64923         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64924         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64925         Set UNISTD_H instead of UNISTD_H2.
64926         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64927
64928 2007-01-28  Bruno Haible  <bruno@clisp.org>
64929
64930         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64931         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64932
64933 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64934
64935         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64936         (func_create_testdir): Ensure C locale for `grep' and `tr'
64937         character ranges.
64938         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64939         ACLOCAL_AMFLAGS parsing state machine.
64940
64941 2007-01-27  Bruno Haible  <bruno@clisp.org>
64942
64943         * modules/unistr/base: Update.
64944
64945 2007-01-27  Bruno Haible  <bruno@clisp.org>
64946
64947         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64948         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64949         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64950         modules/unistr/u32-mbtouc.
64951         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64952         * lib/unistr.h: Update.
64953         * lib/linebreak.c: Update.
64954         * modules/unistr/u32-mbtouc: Renamed from
64955         modules/unistr/u32-mbtouc-safe.
64956         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64957         * lib/unistr.h: Update.
64958         * lib/unistr/u32-to-u8.c: Update.
64959         * lib/unistr/u32-to-u16.c: Update.
64960
64961 2007-01-27  Bruno Haible  <bruno@clisp.org>
64962
64963         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64964         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64965         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64966         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64967         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64968         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64969         modules/unistr/u16-mbtouc.
64970         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64971         * lib/unistr.h: Update.
64972         * lib/linebreak.c: Update.
64973         * modules/linebreak: Update.
64974         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64975         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64976         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64977         * modules/unistr/u16-mbtouc: Renamed from
64978         modules/unistr/u16-mbtouc-safe.
64979         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64980         * lib/unistr.h: Update.
64981         * lib/unistr/u16-to-u8.c: Update.
64982         * modules/unistr/u16-to-u8: Update.
64983         * lib/unistr/u16-to-u32.c: Update.
64984         * modules/unistr/u16-to-u32: Update.
64985
64986 2007-01-27  Bruno Haible  <bruno@clisp.org>
64987
64988         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64989         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64990         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64991         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64992         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64993         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64994         modules/unistr/u8-mbtouc.
64995         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64996         * lib/unistr.h: Update.
64997         * lib/striconveh.c: Update.
64998         * modules/striconveh: Update.
64999         * lib/linebreak.c: Update.
65000         * modules/linebreak: Update.
65001         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65002         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65003         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65004         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65005         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65006         * lib/unistr.h: Update.
65007         * lib/striconveh.c: Update.
65008         * modules/striconveh: Update.
65009         * lib/unistr/u8-to-u16.c: Update.
65010         * modules/unistr/u8-to-u16: Update.
65011         * lib/unistr/u8-to-u32.c: Update.
65012         * modules/unistr/u8-to-u32: Update.
65013
65014 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65015
65016         Sync from Libtool.
65017         * lib/argz.c: Do not include strings.h nor memory.h, include
65018         string.h unconditionally.  Patch by Simon Josefsson.
65019
65020 2007-01-27  Bruno Haible  <bruno@clisp.org>
65021
65022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65023         from gl_HEADER_STRING_H_BODY.
65024         (gl_HEADER_STRING_H_BODY): Require it.
65025         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65026         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65027         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65028         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65029         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65030         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65031         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65032         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65033         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65034         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65035         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65036         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65037         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65038         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65039         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65040
65041 2007-01-27  Bruno Haible  <bruno@clisp.org>
65042
65043         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65044         check_PROGRAMS into noinst_PROGRAMS.
65045         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65046         check_PROGRAMS in this case.
65047         (func_import): Set for_test to false.
65048         (func_create_testdir): Set for_test to true.
65049
65050 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65051             Bruno Haible  <bruno@clisp.org>
65052
65053         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65054         (Depends-on): Add string.
65055         (Includes): Use <string.h> instead of strcasestr.h.
65056         * modules/string (Makefile.am): Also substitute the value of
65057         REPLACE_STRCASESTR.
65058         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65059         assume strcasestr is declared in <string.h> not <strings.h>. Also
65060         set REPLACE_STRCASESTR.
65061         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65062         REPLACE_STRCASESTR.
65063         * lib/strcasestr.h: Remove file.
65064         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65065         * lib/string_.h (strcasestr): New declaration.
65066
65067 2007-01-27  Bruno Haible  <bruno@clisp.org>
65068
65069         * lib/string_.h: Use 'extern'.
65070
65071 2007-01-27  Jim Meyering  <jim@meyering.net>
65072
65073         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65074         of set-but-not-used local, "q".
65075
65076         * lib/mempcpy.c: Include <config.h> before <string.h>.
65077         This fixes a compilation error on HP-UX, due to the system's
65078         "restrict"-using mempcpy prototype.
65079
65080 2007-01-26  Bruno Haible  <bruno@clisp.org>
65081
65082         Small optimization.
65083         * lib/javacomp.c: Include c-strstr.h.
65084          (is_envjavac_gcj): Use c_strstr instead of strstr.
65085         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65086
65087 2007-01-26  Bruno Haible  <bruno@clisp.org>
65088
65089         * MODULES.html.sh (Unicode string functions): Add the new modules.
65090
65091         * modules/uniconv/u32-strconv-to-locale: New file.
65092         * lib/uniconv/u32-strconv-to-locale.c: New file.
65093
65094         * modules/uniconv/u16-strconv-to-locale: New file.
65095         * lib/uniconv/u16-strconv-to-locale.c: New file.
65096
65097         * modules/uniconv/u8-strconv-to-locale: New file.
65098         * lib/uniconv/u8-strconv-to-locale.c: New file.
65099
65100         * modules/uniconv/u32-strconv-from-locale: New file.
65101         * lib/uniconv/u32-strconv-from-locale.c: New file.
65102
65103         * modules/uniconv/u16-strconv-from-locale: New file.
65104         * lib/uniconv/u16-strconv-from-locale.c: New file.
65105
65106         * modules/uniconv/u8-strconv-from-locale: New file.
65107         * lib/uniconv/u8-strconv-from-locale.c: New file.
65108
65109         * modules/uniconv/u32-strconv-to-enc: New file.
65110         * lib/uniconv/u32-strconv-to-enc.c: New file.
65111         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65112         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65113
65114         * modules/uniconv/u16-strconv-to-enc: New file.
65115         * lib/uniconv/u16-strconv-to-enc.c: New file.
65116         * lib/uniconv/u-strconv-to-enc.h: New file.
65117         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65118         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65119
65120         * modules/uniconv/u8-strconv-to-enc: New file.
65121         * lib/uniconv/u8-strconv-to-enc.c: New file.
65122         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65123         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65124
65125         * modules/uniconv/u32-strconv-from-enc: New file.
65126         * lib/uniconv/u32-strconv-from-enc.c: New file.
65127         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65128         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65129
65130         * modules/uniconv/u16-strconv-from-enc: New file.
65131         * lib/uniconv/u16-strconv-from-enc.c: New file.
65132         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65133         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65134
65135         * modules/uniconv/u8-strconv-from-enc: New file.
65136         * lib/uniconv/u8-strconv-from-enc.c: New file.
65137         * lib/uniconv/u-strconv-from-enc.h: New file.
65138         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65139         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65140
65141         * modules/uniconv/u32-conv-from-enc: New file.
65142         * lib/uniconv/u32-conv-from-enc.c: New file.
65143         * modules/uniconv/u32-conv-from-enc-tests: New file.
65144         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65145
65146         * modules/uniconv/u16-conv-from-enc: New file.
65147         * lib/uniconv/u16-conv-from-enc.c: New file.
65148         * lib/uniconv/u-conv-from-enc.h: New file.
65149         * modules/uniconv/u16-conv-from-enc-tests: New file.
65150         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65151
65152         * modules/uniconv/u8-conv-from-enc: New file.
65153         * lib/uniconv/u8-conv-from-enc.c: New file.
65154         * modules/uniconv/u8-conv-from-enc-tests: New file.
65155         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65156
65157         * modules/uniconv/base: New file.
65158         * lib/uniconv.h: New file.
65159
65160 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         * doc/gnulib-tool.texi (Initial import): Update to match current
65163         behavior with strdup module.
65164         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65165         * lib/memmem.h: Remove; all uses removed.  This is now done
65166         by <string.h>.
65167         * lib/mempcpy.h: Likewise.
65168         * lib/memrchr.h: Likewise.
65169         * lib/stpcpy.h: Likewise.
65170         * lib/stpncpy.h: Likewise.
65171         * lib/strcase.h: Likewise.
65172         * lib/strchrnul.h: Likewise.
65173         * lib/strdup.h: Likewise.
65174         * lib/strndup.h: Likewise.
65175         * lib/strnlen.h: Likewise.
65176         * lib/strpbrk.h: Likewise.
65177         * lib/strsep.h: Likewise.
65178         * lib/strstr.h: Likewise.
65179         * lib/strtok_r.h: Likewise.
65180         * lib/string_.h: New file.
65181         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65182         Rely on <string.h> instead.
65183         * lib/canon-host.c: Likewise.
65184         * lib/chdir-long.c: Likewise.
65185         * lib/concatpath.c: Likewise.
65186         * lib/exclude.c: Likewise.
65187         * lib/fchdir.c: Likewise.
65188         * lib/getaddrinfo.c: Likewise.
65189         * lib/getcwd.c: Likewise.
65190         * lib/getsubopt.c: Likewise.
65191         * lib/glob.c: Likewise.
65192         * lib/hard-locale.c: Likewise.
65193         * lib/iconvme.c: Likewise.
65194         * lib/javacomp.c: Likewise.
65195         * lib/mempcpy.c: Likewise.
65196         * lib/memrchr.c: Likewise.
65197         * lib/regex_internal.h: Likewise.
65198         * lib/stpncpy.c: Likewise.
65199         * lib/strcasecmp.c: Likewise.
65200         * lib/strchrnul.c: Likewise.
65201         * lib/strdup.c: Likewise.
65202         * lib/striconv.c: Likewise.
65203         * lib/striconveh.c: Likewise.
65204         * lib/striconveha.c: Likewise.
65205         * lib/strncasecmp.c: Likewise.
65206         * lib/strndup.c: Likewise.
65207         * lib/strnlen.c: Likewise.
65208         * lib/strsep.c: Likewise.
65209         * lib/strstr.c: Likewise.
65210         * lib/strtok_r.c: Likewise.
65211         * lib/userspec.c: Likewise.
65212         * lib/w32spawn.h: Likewise.
65213         * lib/xstrndup.c: Likewise.
65214         * lib/mountlist.c (strstr): Remove decl.
65215         * m4/string_h.m4: New file.
65216         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65217         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65218         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65219         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65220         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65221         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65222         Set REPLACE_STRCASECMP if necessary.
65223         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65224         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65225         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65226         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65227         HAVE_DECL_STRDUP if necessary.
65228         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65229         since gl_FUNC_STRNDUP does that now.
65230         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65231         Check for decl here...
65232         (gl_PREREQ_STRNLEN): ... not here.
65233         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65234         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65235         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65236         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65237         necessary.
65238         * modules/string: New file.
65239         * modules/memmem (Files): Remove special-purpose include file.
65240         (Depends-on): Add string.
65241         (Include): Include <string.h>, not the removed file.
65242         * modules/mempcpy: Likewise.
65243         * modules/memrchr: Likewise.
65244         * modules/stpcpy: Likewise.
65245         * modules/stpncpy: Likewise.
65246         * modules/strcase: Likewise.
65247         * modules/strchrnul: Likewise.
65248         * modules/strdup: Likewise.
65249         * modules/strndup: Likewise.
65250         * modules/strnlen: Likewise.
65251         * modules/strpbrk: Likewise.
65252         * modules/strsep: Likewise.
65253         * modules/strstr: Likewise.
65254         * modules/strtok_r: Likewise.
65255         * tests/test-dirname.c: Don't include "strdup.h", since
65256         <string.h> now suffices.
65257         * tests/test-memmem.c: Don't include "memmem.h", since
65258         <string.h> now suffices.
65259
65260 2007-01-25  Bruno Haible  <bruno@clisp.org>
65261
65262         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65263         *resultp is 0.
65264
65265         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65266         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65267         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65268         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65269
65270         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65271         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65272         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65273         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65274         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65275         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65276
65277 2007-01-24  Bruno Haible  <bruno@clisp.org>
65278
65279         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65280         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65281         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65282         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65283         gl_FUNC_FTS_CORE.
65284         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65285         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65286         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65287         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65288         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65289         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65290         gl_FUNC_FCHOWNAT.
65291         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65292         gl_FUNC_STRFTIME.
65293         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65294         Reported by Ralf Wildenhues.
65295
65296 2007-01-24  Bruno Haible  <bruno@clisp.org>
65297
65298         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65299         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65300         gl_GETADDRINFO.
65301         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65302         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65303         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65304
65305 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65306
65307         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65308         Don't use 'exit'; just return from 'main'.
65309         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65310
65311         * lib/fnmatch_.h: Readjust white space and comments to match
65312         glibc, to avoid spurious diffs.
65313
65314 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65315
65316         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65317         2004-12-01 change by Jakub Jelinek, since this code won't compile
65318         if !LIBC.  Problem reported by Bob Proulx.
65319
65320 2007-01-23  Bruno Haible  <bruno@clisp.org>
65321
65322         * lib/striconveh.c: Include c-strcaseeq.h.
65323         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65324         * modules/striconveh (Depends-on): Add c-strcaseeq.
65325
65326 2007-01-23  Bruno Haible  <bruno@clisp.org>
65327
65328         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65329
65330         * modules/c-strcaseeq: New file.
65331         * lib/c-strcaseeq.h: New file.
65332
65333         * modules/streq: New file.
65334         * lib/streq.h: New file.
65335
65336 2007-01-23  Bruno Haible  <bruno@clisp.org>
65337
65338         * modules/striconveha-tests: New file.
65339         * tests/test-striconveha.c: New file.
65340
65341         * lib/striconveha.h: Include <stdbool.h>.
65342         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65343         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65344         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65345         (mem_iconveha): New function.
65346         (str_iconveha_notranslit): Renamed from str_iconveha.
65347         (str_iconveha): New function.
65348         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65349         c-strcase.
65350
65351 2007-01-23  Bruno Haible  <bruno@clisp.org>
65352
65353         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65354         encodings without forgiving before trying any encoding with handler.
65355         (str_iconveha): Try all encodings without forgiving before trying any
65356         encoding with handler.
65357
65358 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65359
65360         Import the following changes from libc.
65361
65362         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65363
65364         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65365
65366         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65367
65368         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65369         normal_bracket label.
65370
65371         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65372
65373         [BZ #361]
65374         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65375         to normal_bracket after fetching the next character.
65376
65377 2007-01-22  Bruno Haible  <bruno@clisp.org>
65378
65379         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65380         argument.
65381         * lib/striconveh.c (iconv_carefully_1): New function.
65382         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65383         argument.
65384         (str_cd_iconveh): Update.
65385         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65386         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65387         * tests/test-striconveh.c (MAGIC): New macro.
65388         (new_offsets): New function.
65389         (main): Test call with and without offsets.
65390
65391 2007-01-22  Bruno Haible  <bruno@clisp.org>
65392
65393         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65394         * modules/sys_select (Makefile.am): Likewise.
65395         * modules/sys_socket (Makefile.am): Likewise.
65396         * modules/sys_time (Makefile.am): Likewise.
65397
65398 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65399
65400         * modules/gettimeofday (License): Change from GPL to LGPL, since
65401         gettimeofday is a library function.
65402
65403 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65404
65405         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65406
65407 2007-01-21  Bruno Haible  <bruno@clisp.org>
65408
65409         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65410
65411 2007-01-21  Bruno Haible  <bruno@clisp.org>
65412
65413         * modules/striconveha: New file.
65414         * lib/striconveha.h: New file.
65415         * lib/striconveha.c: New file.
65416         * MODULES.html.sh (Internationalization functions): Add striconveha.
65417         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65418         string.
65419         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65420
65421 2007-01-21  Bruno Haible  <bruno@clisp.org>
65422
65423         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65424         * lib/striconveh.c (str_iconveh): Likewise.
65425
65426 2007-01-21  Bruno Haible  <bruno@clisp.org>
65427
65428         * lib/striconveh.h (mem_iconveh): New declaration.
65429         * lib/striconveh.c (mem_iconveh): New function.
65430         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65431
65432 2007-01-21  Bruno Haible  <bruno@clisp.org>
65433
65434         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65435
65436         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65437         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65438         original result buffer.
65439         (str_cd_iconveh): Update.
65440         * tests/test-striconveh.c (main): Update.
65441
65442         * lib/striconv.h (mem_cd_iconv): Change specification.
65443         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65444         result buffer.
65445         (str_cd_iconv): Update.
65446         * tests/test-striconv.c (main): Update.
65447
65448 2007-01-21  Bruno Haible  <bruno@clisp.org>
65449
65450         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65451
65452 2007-01-20  Jim Meyering  <jim@meyering.net>
65453
65454         * lib/userspec.c (parse_with_separator): If a user or group string
65455         starts with "+", skip the corresponding name-to-ID look-up, since
65456         such a look-up must fail: user and group names may not include "+".
65457
65458 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65459
65460         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65461         since we now assume the sys_time module.
65462         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65463         check for sys/time.h; no longer needed.
65464         * modules/poll (Depends-on): Depend on sys_time.
65465
65466 2007-01-18  Bruno Haible  <bruno@clisp.org>
65467
65468         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65469         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65470
65471         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65472         gettimeofday.
65473
65474         * tests/test-gettimeofday.c: Include <time.h>.
65475         (dummy): Remove variable.
65476
65477         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65478         gl_HEADER_SYS_TIME_H.
65479         (gl_HEADER_SYS_TIME_H): New macro.
65480
65481         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65482         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65484         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65485         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65486         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65487         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65488         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65489         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65490         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65491         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65492
65493         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65494         last change; it caused a compilation error when cross-compiling to
65495         Cygwin.
65496
65497 2007-01-18  Jim Meyering  <jim@meyering.net>
65498
65499         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65500         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65501         than the race-prone "test -d sys || mkdir sys".
65502         (configure.ac): Use AC_PROG_MKDIR_P.
65503         * modules/sys_select: Likewise.
65504         * modules/sys_socket: Likewise.
65505         * modules/sys_time: Likewise.
65506
65507 2007-01-18  Eric Blake  <ebb9@byu.net>
65508
65509         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65510         replace gettimeofday.
65511         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65512         name, to avoid infinite recursion.
65513
65514 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65515
65516         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65517         module sys_time.
65518         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65519         assume timespec.h defines struct timeval.
65520         * lib/settime.c: Likewise.
65521         * lib/utimens.c: Likewise.
65522         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65523         since we now assume the gettimeofday module.
65524         * lib/tempname.c (__gen_tempname): Likewise.
65525         * lib/gettimeofday.h: Remove.
65526         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65527         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65528         Include <time.h>, for 'time()'.
65529         (localtime_buffer_addr): Also use this workaround if
65530         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65531         to simplify the uses.  All uses changed.
65532         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65533         that #undef is inside {}, and 'const' follows type name consistently.
65534         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65535         (gettimeofday): Do not use the maximum possible value for
65536         tv->tv_usec, since that might break usages other than ls.c.
65537         Instead, we'll leave ls.c alone.  This undoes today's patch
65538         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65539         we've never observed the problem but might as well keep the
65540         canary.
65541         * lib/nanosleep.c: Include timespec.h first, for interface check.
65542         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65543         now assume the sys_time module.
65544         * lib/tempname.c: Likewise.
65545         * lib/timespec.h: Likewise.
65546         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65547         needed.
65548         * lib/strftime.c: Likewise.
65549         * lib/timespec.h: Likewise.
65550         * lib/posixtm.c: Include posixtm.h first, for interface check.
65551         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65552         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65553         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65554         * lib/sys_time_.h: New file.
65555         * lib/timespec.h (struct timespec): Use long int, not long.
65556         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65557         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65558         Remove obsolescent call to AC_HEADER_TIME.
65559         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65561         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65562         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65563         Likewise.
65564         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65565         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65566         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65567         into the sys_time module.  Check for gettimeofday just once.
65568         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65569         for gettimeofday signature to just check the signature.  Merely
65570         compile it, since linking doesn't test signature.  Improve test for
65571         whether gettimeofday.o is actually needed.
65572         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65573         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65574         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65575         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65576         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65577         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65578         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65579         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65580         than worrying about sys/time.h.
65581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65582         Don't bother worrying about TIME_WITH_SYS_TIME.
65583         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65584         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65585         * m4/sys_time_h.m4: New file.
65586         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65587         Don't include sys/time.h.  Return from main rather than exiting.
65588         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65589         all uses changed.
65590         * modules/gethrxtime (Depends-on): Add sys_time.
65591         * modules/gettime (Depends-on): Likewise.
65592         * modules/gettimeofday (Depends-on): Likewise.
65593         * modules/nanosleep (Depends-on): Likewise.
65594         * modules/settime (Depends-on): Likewise.
65595         * modules/tempname (Depends-on): Likewise.
65596         * modules/utimens (Depends-on): Likewise.
65597         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65598         (Include): Change back to <sys/time.h>.
65599         (Maintainer): Add self.
65600         * modules/sys_time: New file.
65601         * modules/tempname (Depends-on): Add gettimeofday.
65602         * tests/test-gettimeofday.c: Include <sys/time.h>
65603         rather than gettimeofday.h.
65604
65605 2007-01-17  Bruno Haible  <bruno@clisp.org>
65606
65607         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65608         the license default to GPL.
65609         (func_create_testdir): Don't complain if a module is LGPL and its
65610         tests module depends on GPLed modules.
65611
65612 2007-01-17  Bruno Haible  <bruno@clisp.org>
65613
65614         * lib/gettimeofday.c (gettimeofday): Add code for the case
65615         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65616         maximum possible value for tv->tv_usec, rather than the minimum one.
65617
65618 2005-10-08  Martin Lambers  <marlam@marlam.de>
65619 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65620 2007-01-16  Bruno Haible  <bruno@clisp.org>
65621
65622         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65623         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65624         gl_FUNC_GETTIMEOFDAY.
65625         (Include): Add gettimeofday.h.
65626         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65627         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65628         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65629         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65630         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65631         * lib/gettimeofday.h: New file.
65632         * lib/gettimeofday.c: Include <sys/timeb.h>.
65633         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65634         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65635         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65636         fall back on time().
65637
65638         * tests/test-gettimeofday.c: New file.
65639         * modules/gettimeofday-tests: New file.
65640
65641 2007-01-16  Eric Blake  <ebb9@byu.net>
65642
65643         * modules/fnmatch (Depends-on): Depend on wchar.
65644         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65645         * m4/fnmatch.m4: Likewise.
65646         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65647         * m4/mbchar.m4: Likewise.
65648         * modules/mbswidth (Depends-on): Depend on wchar.
65649         * lib/mbswidth.c: Assume <wchar.h>.
65650         * m4/mbswidth.m4: Likewise.
65651         * modules/quotearg (Depends-on): Depend on wchar.
65652         * lib/quotearg.c: Assume <wchar.h>.
65653         * m4/quotearg.m4: Likewise.
65654         * modules/regex (Depends-on): Depend on wchar.
65655         * lib/regex_internal.h: Assume <wchar.h>.
65656         * m4/regex.m4: Likewise.
65657         * modules/stdint (Depends-on): Depend on wchar.
65658         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65659         * m4/stdint.m4: Likewise.
65660         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65661         * modules/strftime (Depends-on): Depend on wchar.
65662         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65663         * modules/strtol (Depends-on): Depend on wchar.
65664         * lib/strtol.c: Assume <wchar.h>.
65665         * modules/wcwidth (Depends-on): Depend on wchar.
65666         * lib/wcwidth.h: Assume <wchar.h>.
65667         * m4/wcwidth.m4: Likewise.
65668
65669 2007-01-16  Bruno Haible  <bruno@clisp.org>
65670
65671         * modules/csharpexec-script: New, created from...
65672         * modules/csharpexec: ... this.
65673
65674 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65675
65676         * modules/javaexec-script: New, created from...
65677         * modules/javaexec: ... this.
65678
65679 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65680
65681         * modules/poll (Dependencies): Add sys_select.
65682
65683 2007-01-15  Jim Meyering  <jim@meyering.net>
65684
65685         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65686         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65687         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65688         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65689
65690 2007-01-15  Bruno Haible  <bruno@clisp.org>
65691
65692         * modules/striconveh: New file.
65693         * lib/striconveh.h: New file.
65694         * lib/striconveh.c: New file.
65695         * MODULES.html.sh (Internationalization functions): Add striconveh.
65696
65697         * modules/striconveh-tests: New file.
65698         * tests/test-striconveh.c: New file.
65699
65700 2007-01-15  Bruno Haible  <bruno@clisp.org>
65701
65702         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65703         not from GNU libiconv or GNU libc.
65704
65705 2007-01-15  Bruno Haible  <bruno@clisp.org>
65706
65707         * doc/gnulib-intro.texi (Copyright): Explain the different license
65708         terms for module descriptions, autoconf macros, tests, documentation.
65709
65710 2007-01-14  Bruno Haible  <bruno@clisp.org>
65711
65712         * modules/striconv-tests: New file.
65713         * tests/test-striconv.c: New file.
65714
65715 2007-01-14  Bruno Haible  <bruno@clisp.org>
65716
65717         * modules/iconv-tests: New file.
65718         * tests/test-iconv.c: New file.
65719
65720 2007-01-14  Bruno Haible  <bruno@clisp.org>
65721
65722         * gnulib-tool (func_get_license): For test modules, use the license of
65723         the main module.
65724
65725 2007-01-14  Bruno Haible  <bruno@clisp.org>
65726
65727         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65728         if iconv is found to exist.
65729
65730 2007-01-14  Bruno Haible  <bruno@clisp.org>
65731
65732         * modules/c-ctype-tests: New file.
65733         * tests/test-c-ctype.c: New file.
65734
65735 2007-01-14  Bruno Haible  <bruno@clisp.org>
65736
65737         * modules/binary-io-tests: New file.
65738         * tests/test-binary-io.sh: New file.
65739         * tests/test-binary-io.c: New file.
65740
65741 2007-01-14  Bruno Haible  <bruno@clisp.org>
65742
65743         * modules/array-oset-tests: New file.
65744         * tests/test-array_oset.c: New file.
65745
65746 2007-01-14  Bruno Haible  <bruno@clisp.org>
65747
65748         * modules/array-list-tests: New file.
65749         * tests/test-array_list.c: New file.
65750
65751 2007-01-14  Bruno Haible  <bruno@clisp.org>
65752
65753         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65754         and make.
65755         Reported by Simon Josefsson in
65756         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65757
65758 2007-01-14  Bruno Haible  <bruno@clisp.org>
65759
65760         * modules/allocsa-tests: New file.
65761         * tests/test-allocsa.c: New file.
65762
65763 2007-01-14  Bruno Haible  <bruno@clisp.org>
65764
65765         * modules/fchdir (Depends-on): Add absolute-header.
65766         * modules/unistd (Depends-on): Likewise.
65767
65768 2006-12-30  Bruno Haible  <bruno@clisp.org>
65769
65770         * modules/fchdir: New file.
65771         * modules/unistd (Files): Add lib/unistd_.h.
65772         (Makefile.am): Generate unistd.h from unistd_.h.
65773         * lib/fchdir.c: New file.
65774         * lib/dirent_.h: New file.
65775         * lib/unistd_.h: New file.
65776         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65777         * m4/fchdir.m4: New file.
65778         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65779         (gl_HEADER_UNISTD): Invoke it.
65780         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65781         function.
65782         * lib/backupfile.c (opendir, closedir): Undefine.
65783         * lib/chown.c (open, close): Undefine.
65784         * lib/clean-temp.c (open, close): Undefine.
65785         * lib/copy-file.c (open, close): Undefine.
65786         * lib/execute.c (open, close): Undefine.
65787         * lib/fsusage.c (open, close): Undefine.
65788         * lib/gc-gnulib.c (open, close): Undefine.
65789         * lib/getcwd.c (opendir, closedir): Undefine.
65790         * lib/glob.c (opendir, closedir): Undefine.
65791         * lib/javacomp.c (open, close): Undefine.
65792         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65793         * lib/openat-proc.c (open, close): Undefine.
65794         * lib/pagealign_alloc.c (open, close): Undefine.
65795         * lib/pipe.c (open, close): Undefine.
65796         * lib/progreloc.c (open, close): Undefine.
65797         * lib/savedir.c (opendir, closedir): Undefine.
65798         * lib/utime.c (open, close): Undefine.
65799         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65800
65801 2007-01-10  Bruno Haible  <bruno@clisp.org>
65802
65803         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65804
65805 2007-01-12  Eric Blake  <ebb9@byu.net>
65806
65807         Provide a robust <wchar.h>.  Further simplifications are now
65808         possible in other modules, but not included here.
65809         * modules/wchar: New module.
65810         * m4/wchar.m4: New file.
65811         * lib/wchar_.h: Likewise.
65812         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65813         of the new module.
65814         * MODULES.html.sh (Extended multibyte and wide character utilities):
65815         New section.
65816
65817 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65820         to a reasonable default for memory allocation.
65821         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65822         file system that reports garbage st_size values for symlinks.
65823         Problem reported by Liyang Hu.
65824
65825 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65826
65827         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65828         Emacs .#* auto-save files).
65829
65830 2007-01-11  Bruno Haible  <bruno@clisp.org>
65831
65832         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65833         directory.
65834
65835 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65836
65837         Use @...@ consistently in lib/wctype_.h.
65838         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65839         on it being set to 1 or 0.
65840         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65841         go back to AC_SUBSTing it.
65842         * modules/wctype (Makefile.am): Undo previous change.
65843
65844 2007-01-10  Eric Blake  <ebb9@byu.net>
65845
65846         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65847         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65848         * modules/wctype (Makefile.am): Likewise.
65849         Reported by Chris McGuire.
65850
65851 2007-01-10  Jim Meyering  <jim@meyering.net>
65852
65853         fts.c: a small readability/maintainability improvement
65854         * lib/fts.c (fts_read): Make this code slightly more readable and
65855         maintainable by hoisting the "sp->fts_cur = p" assignments to
65856         immediately follow the statements that set P.  Derived from
65857         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65858
65859 2007-01-10  Eric Blake  <ebb9@byu.net>
65860
65861         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65862         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65864         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65865         Reported by Chris McGuire.
65866
65867 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65868
65869         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65870         in sed script.
65871
65872 2007-01-09  Bruno Haible  <bruno@clisp.org>
65873
65874         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65875         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65876         variables.
65877         (func_module): Use them.
65878
65879 2007-01-09  Bruno Haible  <bruno@clisp.org>
65880
65881         * modules/unistr/base: New file.
65882         * lib/unistr.h: New file.
65883
65884         * modules/unistr/u8-to-u16: New file.
65885         * lib/unistr/u8-to-u16.c: New file.
65886
65887         * modules/unistr/u8-to-u32: New file.
65888         * lib/unistr/u8-to-u32.c: New file.
65889
65890         * modules/unistr/u16-to-u8: New file.
65891         * lib/unistr/u16-to-u8.c: New file.
65892
65893         * modules/unistr/u16-to-u32: New file.
65894         * lib/unistr/u16-to-u32.c: New file.
65895
65896         * modules/unistr/u32-to-u8: New file.
65897         * lib/unistr/u32-to-u8.c: New file.
65898
65899         * modules/unistr/u32-to-u16: New file.
65900         * lib/unistr/u32-to-u16.c: New file.
65901
65902         * modules/unistr/u8-check: New file.
65903         * modules/unistr/u16-check: New file.
65904         * modules/unistr/u32-check: New file.
65905         * lib/unistr/u8-check.c: New file.
65906         * lib/unistr/u16-check.c: New file.
65907         * lib/unistr/u32-check.c: New file.
65908
65909         * modules/unistr/u8-chr: New file.
65910         * modules/unistr/u16-chr: New file.
65911         * modules/unistr/u32-chr: New file.
65912         * lib/unistr/u8-chr.c: New file.
65913         * lib/unistr/u16-chr.c: New file.
65914         * lib/unistr/u32-chr.c: New file.
65915
65916         * modules/unistr/u8-cmp: New file.
65917         * modules/unistr/u16-cmp: New file.
65918         * modules/unistr/u32-cmp: New file.
65919         * lib/unistr/u8-cmp.c: New file.
65920         * lib/unistr/u16-cmp.c: New file.
65921         * lib/unistr/u32-cmp.c: New file.
65922
65923         * modules/unistr/u8-cpy: New file.
65924         * modules/unistr/u16-cpy: New file.
65925         * modules/unistr/u32-cpy: New file.
65926         * lib/unistr/u8-cpy.c: New file.
65927         * lib/unistr/u16-cpy.c: New file.
65928         * lib/unistr/u32-cpy.c: New file.
65929         * lib/unistr/u-cpy.h: New file.
65930
65931         * modules/unistr/u8-cpy-alloc: New file.
65932         * modules/unistr/u16-cpy-alloc: New file.
65933         * modules/unistr/u32-cpy-alloc: New file.
65934         * lib/unistr/u8-cpy-alloc.c: New file.
65935         * lib/unistr/u16-cpy-alloc.c: New file.
65936         * lib/unistr/u32-cpy-alloc.c: New file.
65937         * lib/unistr/u-cpy-alloc.h: New file.
65938
65939         * modules/unistr/u8-endswith: New file.
65940         * modules/unistr/u16-endswith: New file.
65941         * modules/unistr/u32-endswith: New file.
65942         * lib/unistr/u8-endswith.c: New file.
65943         * lib/unistr/u16-endswith.c: New file.
65944         * lib/unistr/u32-endswith.c: New file.
65945         * lib/unistr/u-endswith.h: New file.
65946
65947         * modules/unistr/u8-mblen: New file.
65948         * modules/unistr/u16-mblen: New file.
65949         * modules/unistr/u32-mblen: New file.
65950         * lib/unistr/u8-mblen.c: New file.
65951         * lib/unistr/u16-mblen.c: New file.
65952         * lib/unistr/u32-mblen.c: New file.
65953
65954         * modules/unistr/u8-mbtouc: New file.
65955         * modules/unistr/u16-mbtouc: New file.
65956         * modules/unistr/u32-mbtouc: New file.
65957         * lib/unistr/u8-mbtouc.c: New file.
65958         * lib/unistr/u16-mbtouc.c: New file.
65959         * lib/unistr/u32-mbtouc.c: New file.
65960
65961         * modules/unistr/u8-mbtouc-safe: New file.
65962         * modules/unistr/u16-mbtouc-safe: New file.
65963         * modules/unistr/u32-mbtouc-safe: New file.
65964         * lib/unistr/u8-mbtouc-safe.c: New file.
65965         * lib/unistr/u16-mbtouc-safe.c: New file.
65966         * lib/unistr/u32-mbtouc-safe.c: New file.
65967
65968         * modules/unistr/u8-move: New file.
65969         * modules/unistr/u16-move: New file.
65970         * modules/unistr/u32-move: New file.
65971         * lib/unistr/u8-move.c: New file.
65972         * lib/unistr/u16-move.c: New file.
65973         * lib/unistr/u32-move.c: New file.
65974         * lib/unistr/u-move.h: New file.
65975
65976         * modules/unistr/u8-next: New file.
65977         * modules/unistr/u16-next: New file.
65978         * modules/unistr/u32-next: New file.
65979         * lib/unistr/u8-next.c: New file.
65980         * lib/unistr/u16-next.c: New file.
65981         * lib/unistr/u32-next.c: New file.
65982
65983         * modules/unistr/u8-prev: New file.
65984         * modules/unistr/u16-prev: New file.
65985         * modules/unistr/u32-prev: New file.
65986         * lib/unistr/u8-prev.c: New file.
65987         * lib/unistr/u16-prev.c: New file.
65988         * lib/unistr/u32-prev.c: New file.
65989
65990         * modules/unistr/u8-set: New file.
65991         * modules/unistr/u16-set: New file.
65992         * modules/unistr/u32-set: New file.
65993         * lib/unistr/u8-set.c: New file.
65994         * lib/unistr/u16-set.c: New file.
65995         * lib/unistr/u32-set.c: New file.
65996         * lib/unistr/u-set.h: New file.
65997
65998         * modules/unistr/u8-startswith: New file.
65999         * modules/unistr/u16-startswith: New file.
66000         * modules/unistr/u32-startswith: New file.
66001         * lib/unistr/u8-startswith.c: New file.
66002         * lib/unistr/u16-startswith.c: New file.
66003         * lib/unistr/u32-startswith.c: New file.
66004         * lib/unistr/u-startswith.h: New file.
66005
66006         * modules/unistr/u8-stpcpy: New file.
66007         * modules/unistr/u16-stpcpy: New file.
66008         * modules/unistr/u32-stpcpy: New file.
66009         * lib/unistr/u8-stpcpy.c: New file.
66010         * lib/unistr/u16-stpcpy.c: New file.
66011         * lib/unistr/u32-stpcpy.c: New file.
66012         * lib/unistr/u-stpcpy.h: New file.
66013
66014         * modules/unistr/u8-stpncpy: New file.
66015         * modules/unistr/u16-stpncpy: New file.
66016         * modules/unistr/u32-stpncpy: New file.
66017         * lib/unistr/u8-stpncpy.c: New file.
66018         * lib/unistr/u16-stpncpy.c: New file.
66019         * lib/unistr/u32-stpncpy.c: New file.
66020         * lib/unistr/u-stpncpy.h: New file.
66021
66022         * modules/unistr/u8-strcat: New file.
66023         * modules/unistr/u16-strcat: New file.
66024         * modules/unistr/u32-strcat: New file.
66025         * lib/unistr/u8-strcat.c: New file.
66026         * lib/unistr/u16-strcat.c: New file.
66027         * lib/unistr/u32-strcat.c: New file.
66028         * lib/unistr/u-strcat.h: New file.
66029
66030         * modules/unistr/u8-strchr: New file.
66031         * modules/unistr/u16-strchr: New file.
66032         * modules/unistr/u32-strchr: New file.
66033         * lib/unistr/u8-strchr.c: New file.
66034         * lib/unistr/u16-strchr.c: New file.
66035         * lib/unistr/u32-strchr.c: New file.
66036
66037         * modules/unistr/u8-strcmp: New file.
66038         * modules/unistr/u16-strcmp: New file.
66039         * modules/unistr/u32-strcmp: New file.
66040         * lib/unistr/u8-strcmp.c: New file.
66041         * lib/unistr/u16-strcmp.c: New file.
66042         * lib/unistr/u32-strcmp.c: New file.
66043
66044         * modules/unistr/u8-strcpy: New file.
66045         * modules/unistr/u16-strcpy: New file.
66046         * modules/unistr/u32-strcpy: New file.
66047         * lib/unistr/u8-strcpy.c: New file.
66048         * lib/unistr/u16-strcpy.c: New file.
66049         * lib/unistr/u32-strcpy.c: New file.
66050         * lib/unistr/u-strcpy.h: New file.
66051
66052         * modules/unistr/u8-strcspn: New file.
66053         * modules/unistr/u16-strcspn: New file.
66054         * modules/unistr/u32-strcspn: New file.
66055         * lib/unistr/u8-strcspn.c: New file.
66056         * lib/unistr/u16-strcspn.c: New file.
66057         * lib/unistr/u32-strcspn.c: New file.
66058         * lib/unistr/u-strcspn.h: New file.
66059
66060         * modules/unistr/u8-strdup: New file.
66061         * modules/unistr/u16-strdup: New file.
66062         * modules/unistr/u32-strdup: New file.
66063         * lib/unistr/u8-strdup.c: New file.
66064         * lib/unistr/u16-strdup.c: New file.
66065         * lib/unistr/u32-strdup.c: New file.
66066         * lib/unistr/u-strdup.h: New file.
66067
66068         * modules/unistr/u8-strlen: New file.
66069         * modules/unistr/u16-strlen: New file.
66070         * modules/unistr/u32-strlen: New file.
66071         * lib/unistr/u8-strlen.c: New file.
66072         * lib/unistr/u16-strlen.c: New file.
66073         * lib/unistr/u32-strlen.c: New file.
66074         * lib/unistr/u-strlen.h: New file.
66075
66076         * modules/unistr/u8-strmblen: New file.
66077         * modules/unistr/u16-strmblen: New file.
66078         * modules/unistr/u32-strmblen: New file.
66079         * lib/unistr/u8-strmblen.c: New file.
66080         * lib/unistr/u16-strmblen.c: New file.
66081         * lib/unistr/u32-strmblen.c: New file.
66082
66083         * modules/unistr/u8-strmbtouc: New file.
66084         * modules/unistr/u16-strmbtouc: New file.
66085         * modules/unistr/u32-strmbtouc: New file.
66086         * lib/unistr/u8-strmbtouc.c: New file.
66087         * lib/unistr/u16-strmbtouc.c: New file.
66088         * lib/unistr/u32-strmbtouc.c: New file.
66089
66090         * modules/unistr/u8-strncat: New file.
66091         * modules/unistr/u16-strncat: New file.
66092         * modules/unistr/u32-strncat: New file.
66093         * lib/unistr/u8-strncat.c: New file.
66094         * lib/unistr/u16-strncat.c: New file.
66095         * lib/unistr/u32-strncat.c: New file.
66096         * lib/unistr/u-strncat.h: New file.
66097
66098         * modules/unistr/u8-strncmp: New file.
66099         * modules/unistr/u16-strncmp: New file.
66100         * modules/unistr/u32-strncmp: New file.
66101         * lib/unistr/u8-strncmp.c: New file.
66102         * lib/unistr/u16-strncmp.c: New file.
66103         * lib/unistr/u32-strncmp.c: New file.
66104
66105         * modules/unistr/u8-strncpy: New file.
66106         * modules/unistr/u16-strncpy: New file.
66107         * modules/unistr/u32-strncpy: New file.
66108         * lib/unistr/u8-strncpy.c: New file.
66109         * lib/unistr/u16-strncpy.c: New file.
66110         * lib/unistr/u32-strncpy.c: New file.
66111         * lib/unistr/u-strncpy.h: New file.
66112
66113         * modules/unistr/u8-strnlen: New file.
66114         * modules/unistr/u16-strnlen: New file.
66115         * modules/unistr/u32-strnlen: New file.
66116         * lib/unistr/u8-strnlen.c: New file.
66117         * lib/unistr/u16-strnlen.c: New file.
66118         * lib/unistr/u32-strnlen.c: New file.
66119         * lib/unistr/u-strnlen.h: New file.
66120
66121         * modules/unistr/u8-strpbrk: New file.
66122         * modules/unistr/u16-strpbrk: New file.
66123         * modules/unistr/u32-strpbrk: New file.
66124         * lib/unistr/u8-strpbrk.c: New file.
66125         * lib/unistr/u16-strpbrk.c: New file.
66126         * lib/unistr/u32-strpbrk.c: New file.
66127         * lib/unistr/u-strpbrk.h: New file.
66128
66129         * modules/unistr/u8-strrchr: New file.
66130         * modules/unistr/u16-strrchr: New file.
66131         * modules/unistr/u32-strrchr: New file.
66132         * lib/unistr/u8-strrchr.c: New file.
66133         * lib/unistr/u16-strrchr.c: New file.
66134         * lib/unistr/u32-strrchr.c: New file.
66135
66136         * modules/unistr/u8-strspn: New file.
66137         * modules/unistr/u16-strspn: New file.
66138         * modules/unistr/u32-strspn: New file.
66139         * lib/unistr/u8-strspn.c: New file.
66140         * lib/unistr/u16-strspn.c: New file.
66141         * lib/unistr/u32-strspn.c: New file.
66142         * lib/unistr/u-strspn.h: New file.
66143
66144         * modules/unistr/u8-strstr: New file.
66145         * modules/unistr/u16-strstr: New file.
66146         * modules/unistr/u32-strstr: New file.
66147         * lib/unistr/u8-strstr.c: New file.
66148         * lib/unistr/u16-strstr.c: New file.
66149         * lib/unistr/u32-strstr.c: New file.
66150         * lib/unistr/u-strstr.h: New file.
66151
66152         * modules/unistr/u8-strtok: New file.
66153         * modules/unistr/u16-strtok: New file.
66154         * modules/unistr/u32-strtok: New file.
66155         * lib/unistr/u8-strtok.c: New file.
66156         * lib/unistr/u16-strtok.c: New file.
66157         * lib/unistr/u32-strtok.c: New file.
66158         * lib/unistr/u-strtok.h: New file.
66159
66160         * modules/unistr/u8-uctomb: New file.
66161         * modules/unistr/u16-uctomb: New file.
66162         * modules/unistr/u32-uctomb: New file.
66163         * lib/unistr/u8-uctomb.c: New file.
66164         * lib/unistr/u16-uctomb.c: New file.
66165         * lib/unistr/u32-uctomb.c: New file.
66166
66167         * MODULES.html.sh (Unicode string functions): Add the new modules.
66168
66169 2007-01-08  Bruno Haible  <bruno@clisp.org>
66170
66171         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66172         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66173         subdirectories.
66174
66175 2007-01-08  Karl Berry  <karl@gnu.org>
66176
66177         * doc/error.texi: mention that main() fns must set program_name
66178         when progname is used.
66179
66180 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66183         WCTYPE_H is empty, for the benefit of builds from non-distclean
66184         directories.  Problem reported by Eric Blake in
66185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66186
66187 2007-01-08  Bruno Haible  <bruno@clisp.org>
66188
66189         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66190         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66191         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66192         PROVIDE_CANONICALIZE_FILENAME_MODE.
66193         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66194
66195 2007-01-08  Bruno Haible  <bruno@clisp.org>
66196
66197         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66198         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66199         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66200         * lib/fts.c: Likewise.
66201         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66202
66203 2006-12-25  Bruno Haible  <bruno@clisp.org>
66204
66205         * modules/utf8-ucs4-safe: New file.
66206         * lib/utf8-ucs4-safe.h: New file.
66207         * lib/unistr/utf8-ucs4-safe.c: New file.
66208
66209         * modules/utf16-ucs4-safe: New file.
66210         * lib/utf16-ucs4-safe.h: New file.
66211         * lib/unistr/utf16-ucs4-safe.c: New file.
66212
66213         * MODULES.html.sh (Unicode string functions): Add the new modules.
66214
66215 2007-01-08  Bruno Haible  <bruno@clisp.org>
66216
66217         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66218         (Depends-on): Add unitypes.
66219         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66220         (u8_mbtouc_aux): Move out to separate file.
66221         (u8_mbtouc): Use ucs4_t, uint8_t types.
66222         * lib/unistr/utf8-ucs4.c: New file.
66223
66224         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66225         (Depends-on): Add unitypes.
66226         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66227         (u16_mbtouc_aux): Move out to separate file.
66228         (u16_mbtouc): Use ucs4_t, uint16_t types.
66229         * lib/unistr/utf16-ucs4.c: New file.
66230
66231         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66232         (Depends-on): Add unitypes.
66233         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66234         (u8_uctomb_aux): Move out to separate file.
66235         (u8_uctomb): Use ucs4_t, uint8_t types.
66236         * lib/unistr/ucs4-utf8.c: New file.
66237
66238         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66239         (Depends-on): Add unitypes.
66240         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66241         (u16_uctomb_aux): Move out to separate file.
66242         (u16_uctomb): Use ucs4_t, uint16_t types.
66243         * lib/unistr/ucs4-utf16.c: New file.
66244
66245 2006-12-25  Bruno Haible  <bruno@clisp.org>
66246
66247         * modules/unitypes: New file.
66248         * lib/unitypes.h: New file.
66249         * MODULES.html.sh (func_all_modules): New section "Unicode string
66250         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66251         this section. Add unitypes.
66252
66253 2007-01-08  Bruno Haible  <bruno@clisp.org>
66254
66255         Avoid variable names that conflict with those from libtool.
66256         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66257         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66258         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66259         library_names_spec to acl_library_names_spec, hardcode_* to
66260         acl_hardcode_*.
66261         Reported by Ralf Wildenhues.
66262
66263 2007-01-08  Bruno Haible  <bruno@clisp.org>
66264
66265         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66266         definition.
66267         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66268         definition.
66269         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66270         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66271         definition.
66272         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66273         definition.
66274         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66275         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66276         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66277         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66278         definition.
66279         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66280         definition.
66281         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66282         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66283         GC_USE_<algorithm>.
66284         * lib/gc-libgcrypt.c: Likewise.
66285         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66286         * modules/gc-arctwo (configure.ac): Likewise.
66287         * modules/gc-des (configure.ac): Likewise.
66288         * modules/gc-hmac-md5 (configure.ac): Likewise.
66289         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66290         * modules/gc-md2 (configure.ac): Likewise.
66291         * modules/gc-md4 (configure.ac): Likewise.
66292         * modules/gc-md5 (configure.ac): Likewise.
66293         * modules/gc-random (configure.ac): Likewise.
66294         * modules/gc-rijndael (configure.ac): Likewise.
66295         * modules/gc-sha1 (configure.ac): Likewise.
66296
66297 2007-01-08  Bruno Haible  <bruno@clisp.org>
66298
66299         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66300         macro definition.
66301         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66302         definition.
66303         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66304         definition.
66305         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66306         * modules/fcntl-safer (configure.ac): Likewise.
66307         * modules/fopen-safer (configure.ac): Likewise.
66308         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66309         GNULIB_FWRITEERROR macro definition.
66310
66311 2007-01-08  Bruno Haible  <bruno@clisp.org>
66312
66313         * m4/gnulib-common.m4: New file.
66314         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66315         (func_get_filelist): Add m4/gnulib-common.m4.
66316
66317 2007-01-08  Bruno Haible  <bruno@clisp.org>
66318
66319         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66320         command.
66321
66322 2007-01-08  Jim Meyering  <jim@meyering.net>
66323
66324         Use a more robust test for a "can't happen" condition.
66325         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66326         narrowed the st_size value.  Presuming the "can't happen" condition
66327         is true, that narrowing could conceivably convert an invalid st_size
66328         value into a valid one.  Instead, use a change based on Matthew
66329         Woehlke's original patch.
66330
66331         Slight readability improvement: use an assert-like macro
66332         in place of literal "abort ()" uses.
66333         * lib/fts.c (fts_assert): Define.
66334         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66335         Use this macro instead of a bare 'abort'.
66336
66337 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66338
66339         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66340         simply work around them.
66341         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66342         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66343         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66344         declaring.
66345         Don't bother to define as macros, since the standard doesn't require it.
66346         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66347         longer worry about IRIX 5.3.
66348         (HAVE_WCTYPE_CTMP_BUG): Remove.
66349
66350 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66351
66352         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66353         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66354         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66355         Problems reported by Georg Schwarz for IRIX 5.3.
66356
66357         * gnulib-tool (autoconf_minversion): Take the maximum version number
66358         found, not the minimum.  Problem reported by James Youngman.
66359
66360 2007-01-03  Karl Berry  <karl@gnu.org>
66361
66362         * doc/error.texi: new file, explaining interaction with progname.
66363         * doc/gnulib.texi: include it.  Update copyright.
66364
66365 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66366
66367         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66368         AC_CANONICAL_HOST, to improve autobuild outputs.
66369
66370 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66371             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66372
66373         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66374         sockets, server sockets, and other file descriptors.  Count errors
66375         to compute the return value.  Reorder the code a bit to be easier
66376         to follow.  Don't set event bits that were not requested (except
66377         POLLERR and POLLHUP).
66378
66379 2007-01-01  Bruno Haible  <bruno@clisp.org>
66380
66381         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66382
66383 2007-01-03  Jim Meyering  <jim@meyering.net>
66384
66385         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66386
66387 2007-01-02  Bruno Haible  <bruno@clisp.org>
66388
66389         * modules/settime (Include): Require timespec.h.
66390         * modules/nanosleep (Include): Likewise.
66391
66392 2007-01-01  Bruno Haible  <bruno@clisp.org>
66393
66394         * gnulib-tool (func_emit_copyright_notice): Bump year.
66395         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66396
66397 2007-01-01  Bruno Haible  <bruno@clisp.org>
66398
66399         Improve support for OpenBSD.
66400         * build-aux/config.rpath (libname_spec): Export.
66401         (library_names_spec): New variable. Export.
66402         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66403         library_names_spec from the config.rpath output. Locate shared library
66404         through the name pattern in library_names_spec.
66405
66406 2007-01-01  Eric Blake  <ebb9@byu.net>
66407
66408         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66409
66410 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66413         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66414         assume the C locale, and avoid an "eval" that could cause trouble.
66415         Problem with SORT reported by Bob Proulx.
66416
66417         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66418         Define.  Trivial patch from Henning Nielsen Lund, originally
66419         sent to bug-grep@gnu.org today.
66420
66421 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66422
66423         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66424         struct stat.  Problem reported by Henning Nielsen Lund.
66425         * lib/acl.c: Include acl.h first, to check interface.  Don't
66426         bother to include sys/types.h and sys/stat.h again.
66427
66428 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66429
66430         Import the following change from libc; problem reported by
66431         Sven Verdoolaege.
66432
66433         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66434
66435         [BZ #1373]
66436         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66437
66438 2006-12-28  Jim Meyering  <jim@meyering.net>
66439
66440         * build-aux/announce-gen: Do not assume that the package
66441         builds any of tar.gz, tar.bz2, and .xdelta files.
66442         Suggestion from Simon Josefsson.
66443
66444 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66445
66446         * modules/announce-gen: New file.
66447
66448 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66449
66450         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66451         handles its gotchas now.
66452         * lib/mbswidth.c: Likewise.
66453         * lib/wcwidth.h: Likewise.
66454         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66455         and iswcntrl; the wctype module does this stuff now.
66456         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66458         * modules/mbchar (Depends-on): Add wctype.
66459         * modules/mbswidth (Depends-on): Likewise.
66460         * modules/wcwidth (Depends-on): Likewise.
66461
66462 2006-12-27  Eric Blake  <ebb9@byu.net>
66463
66464         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66465         module uses more than what <wctype.h> is required to provide.
66466
66467 2006-12-26  Eric Blake  <ebb9@byu.net>
66468
66469         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66470
66471 2006-12-26  Eric Blake  <ebb9@byu.net>
66472
66473         * modules/absolute-header: New module.
66474         * modules/fcntl (Depends-on): Depend on it.
66475         * modules/inttypes (Depends-on): Likewise.
66476         * modules/stdint (Depends-on): Likewise.
66477         * modules/sys_stat (Depends-on): Likewise.
66478         * modules/wctype (Depends-on): Likewise.
66479         * MODULES.html.sh (Support for building libraries and
66480         executables): Document it.
66481
66482 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66483
66484         * gnulib-tool (SED): Remove, undoing previous change.
66485         The problem was that it broke coreutils on Solaris, because
66486         "sed --posix" leaked into a makefile.
66487         (sed): New alias, if 'alias' and GNU sed.
66488
66489 2006-12-24  Jim Meyering  <jim@meyering.net>
66490
66491         Work around an fchownat bug in glibc-2.4:
66492         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66493         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66494         in spite of the -P option.
66495         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66496         New macros.
66497         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66498         * modules/openat (Files): Add lib/fchownat.c.
66499         * lib/openat.c (fchownat): Don't define here.  Move to...
66500         * lib/fchownat.c: ...this new file.
66501
66502 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66503
66504         Fix bug reported by Bruno Haible in
66505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66506         where quotearg.c didn't compile on Mac OS X 10.2 because it
66507         lacks <wchar.h> and wint_t.
66508         * lib/wctype_.h (__wctype_wint_t): New type.
66509         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66510         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66511         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66512         Arg is now of type __wctype_wint_t, not wint_t.
66513         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66514         substitute HAVE_WINT_T.
66515         * modules/wctype (Files): Add m4/wint_t.m4.
66516         (wctype.h): Substitute HAVE_WINT_T.
66517
66518 2006-12-23  Bruno Haible  <bruno@clisp.org>
66519
66520         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66521
66522 2006-12-23  Bruno Haible  <bruno@clisp.org>
66523
66524         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66525         S_ISLNK.
66526         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66527         mingw.
66528
66529 2006-12-22  Bruno Haible  <bruno@clisp.org>
66530
66531         * lib/copy-file.c: Include acl.h.
66532         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66533         Close the file descriptors only after being done with copy_acl.
66534         * modules/copy-file (Depends-on): Add acl.
66535
66536 2006-12-22  Bruno Haible  <bruno@clisp.org>
66537
66538         * gnulib-tool (SED): New variable.
66539         Use $SED instead of sed everywhere.
66540
66541 2006-12-22  Bruno Haible  <bruno@clisp.org>
66542
66543         * modules/no-c++: New file.
66544         * m4/no-c++.m4: New file.
66545         * MODULES.html.sh (Support for building libraries and executables):
66546         Add no-c++.
66547
66548 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66549
66550         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66551         Include <limits.h>, and use its INT_MAX to rewrite the
66552         j loop so that it does not overflow 'int'.  Problem reported by
66553         Ralf Wildenhues in
66554         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66555         Play it safe by shifting left by 1 rather than multiplying by 2,
66556         as GCC is less likely to optimize this away when the value
66557         is signed (when it assumes overflow leads to undefined behavior).
66558         Also, don't assume time_t uses two's complement.
66559
66560 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66561
66562         * MODULES.html.sh: New module wctype.
66563         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66564         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66565         <wctype.h>, since the new wctype module should fix this.
66566         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66567         the wctype module should arrange for it.
66568         * lib/regex_internal.h: Likewise.
66569         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66570         since the wctype module should handle this now.
66571         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66572         * modules/fnmatch (Depends-on): Add wctype.
66573         * modules/quotearg (Depends-on): Likewise.
66574         * modules/regex (Depends-on): Likewise.
66575
66576 2006-12-19  Bruno Haible  <bruno@clisp.org>
66577
66578         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66579         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66580
66581 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66582
66583         * modules/savewd (Depends-on): Fix dependency on fcntl.
66584
66585 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66586
66587         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66588         conforms to C99, rather than relying on the user's environment
66589         setting of STDINT_H.
66590
66591 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66592         and Eric Blake  <ebb9@byu.net>
66593
66594         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66595         This is more consistent with the other defines here.
66596         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66597         Port to z/OS.  Problem reported by Paul Gilmartin.
66598         Change local vars to use gl_ prefix rather than ac_.
66599         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66600         with other defines.
66601         * modules/double-slash-root: New module.
66602         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66603         (Depends-on): Add double-slash-root.
66604         * MODULES.html.sh (File system functions): Mention new module.
66605
66606 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66607
66608         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66609         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66610         This is for the benefit of gzip, which doesn't do i18n.
66611
66612 2006-12-12  Jim Meyering  <jim@meyering.net>
66613
66614         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66615         Reported by Andreas Schwab <schwab@suse.de>.
66616
66617 2006-12-12  Bruno Haible  <bruno@clisp.org>
66618
66619         Merge these changes.
66620         2006-09-05  Bruno Haible  <bruno@clisp.org>
66621         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66622         iconv_alloc succeeded.
66623         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66624         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66625         test for " && dest " at the end - dest is always != NULL there. Call
66626         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66627         with 2xNULL arguments, also to flush the state storage. Handle the
66628         IRIX iconv behaviour. Realloc the final result, to throw away unused
66629         memory.
66630
66631 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66632
66633         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66634         and fchmodat unconditionally, since glibc 2.4 has them.
66635         Problem reported by Arkadiusz Miskiewicz.
66636
66637 2006-12-10  Bruno Haible  <bruno@clisp.org>
66638
66639         * gnulib-tool (func_import): Show the include files only for those
66640         modules that are copied and specified.
66641         Reported by Karl Berry.
66642
66643 2006-12-08  Jim Meyering  <jim@meyering.net>
66644
66645         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66646         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66647
66648         * build-aux/announce-gen: Add two new options, both optional:
66649         --bootstrap-tools=TOOL_LIST
66650               a comma-separated list of tools, e.g.,
66651               autoconf,automake,bison,gnulib
66652         --gnulib-snapshot-date=DATE
66653               if gnulib is in the bootstrap tool list,
66654               then report this as the snapshot date.
66655               If not specified, use the current date/time.
66656               If you specify a date here, be sure it's UTC.
66657
66658 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66659
66660         * tests/test-argp-2.sh: Fix test to match actual output.
66661         (func_compare): Fix sed script to be portable.
66662
66663 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66664
66665         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66666         workaround for this case.  It is not autoconfigured now; offhand
66667         it's hard to see how to autoconfigure it.
66668
66669 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66670
66671         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66672         a directory that is about to be chowned.  Such a directory's
66673         initial file permissions should permit the owner only and this
66674         should not be changed until after the chown, since the group and
66675         other bits would be incorrect if they granted permission before
66676         the chown.
66677
66678         Fix porting problem for iswctype reported by Georg Schwarz in:
66679         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66680         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66681         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66682         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66683         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66684
66685 2006-12-03  Jim Meyering  <jim@meyering.net>
66686
66687         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66688         p->fts_statp may not yet be defined.
66689         (fts_read): Instead, set it in the caller, once p->fts_statp is
66690         sure to be defined, and corresponds to a top-level directory.
66691         This bug made du -x fail.  Here's the coreutils test case:
66692         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66693         Reported by Mike Frysinger.
66694
66695 2006-12-01  Jim Meyering  <jim@meyering.net>
66696
66697         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66698         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66699         Reported by Simon Josefsson.
66700
66701 2006-11-30  Jim Meyering  <jim@meyering.net>
66702
66703         * m4/warning.m4: Use the all-permissive copyright notice
66704         recommended by RMS (rather than LGPL).
66705         * m4/vararrays.m4: Likewise.
66706         * m4/flexmember.m4: Likewise.
66707
66708 2006-11-29  Bruno Haible  <bruno@clisp.org>
66709
66710         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66711         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66712         using +=.
66713         Reported by Simon Josefsson <simon@josefsson.org>.
66714
66715 2006-11-28  James Youngman <jay@gnu.org>
66716
66717         * README: Advise users that they might find the bug-gnulib@gnu.org
66718         and autotools-announce@gnu.org mailing lists useful.
66719
66720 2006-11-28  Bruno Haible  <bruno@clisp.org>
66721
66722         * m4/ptrdiff_max.m4: Remove file.
66723
66724 2006-11-21  Bruno Haible  <bruno@clisp.org>
66725
66726         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66727         _AC_COMPUTE_INT.
66728         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66729         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66730         _AC_COMPUTE_INT.
66731         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66732         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66733         _AC_COMPUTE_INT.
66734         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66735
66736 2006-11-28  Jim Meyering  <jim@meyering.net>
66737
66738         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66739         warning from "gcc -Wshadow" about shadowing the builtin.
66740
66741 2006-11-27  Bruno Haible  <bruno@clisp.org>
66742
66743         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66744         _AC_COMPUTE_INT.
66745         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66746
66747 2006-11-27  Bruno Haible  <bruno@clisp.org>
66748             Paul Eggert  <eggert@cs.ucla.edu>
66749
66750         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66751
66752 2006-11-26  Bruno Haible  <bruno@clisp.org>
66753
66754         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66755         noinst_LTLIBRARIES.
66756
66757 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66758             Bruno Haible  <bruno@clisp.org>
66759
66760         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66761         if compiling with "gcc -ansi".
66762
66763 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66764
66765         Fix some incompatibilities with gcc -ansi -pedantic.
66766         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66767         if compiling pedantically with GCC, unless it's C99 or later.
66768         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66769         it mishandles gcc -ansi -pedantic as well.
66770         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66771         if gcc -pedantic.
66772         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66773         initializers for struct if -pedantic, unless it's C99 or later.
66774
66775 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66776
66777         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66778         Don't close an fd more than once. Identical atimes indicate
66779         success, not failure.
66780
66781 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66782
66783         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66784
66785 2006-11-23  Jim Meyering  <jim@meyering.net>
66786
66787         * build-aux/announce-gen: New file.  From coreutils.
66788
66789 2006-11-22  Jim Meyering  <jim@meyering.net>
66790
66791         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66792         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66793         (fts_read): Use a temporary to narrow the overused st_size member
66794         before using it in a switch statement.  Reported by Matthew Woehlke.
66795
66796         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66797         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66798
66799 2006-11-20  Bruno Haible  <bruno@clisp.org>
66800
66801         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66802         changequote instead of pairs of brackets.
66803         Reported by Andreas Schwab <schwab@suse.de>.
66804
66805 2006-11-21  Jim Meyering  <jim@meyering.net>
66806
66807         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66808         so as to remain compatible with older compilers.
66809         Patch from Michael Deutschmann.
66810
66811 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         * MODULES.html.sh (File system functions): Add openat.
66814
66815         * lib/openat.h (rpl_fstatat): New macro, if
66816         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66817         (fstatat): Define to rpl_fstatat under the same conditions,
66818         unless COMPILING_FSTATAT.
66819         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66820         seems to have the bug.
66821         * lib/fstatat.c: New file.
66822         * modules/openat (Files): Add it.
66823
66824 2006-11-20  Bruno Haible  <bruno@clisp.org>
66825
66826         * Makefile: New file.
66827
66828 2006-11-20  Jim Meyering  <jim@meyering.net>
66829
66830         The beginnings of syntax-related checks for gnulib.
66831         * lib/Makefile: New file.
66832         * lib/t-idcache: New script.  Ensure that the two halves of
66833         idcache.c stay in sync.
66834
66835         * lib/idcache.c: Adjust comments in user- and group- portions to
66836         be more accurate, and to be consistent with one another.
66837
66838 2006-11-20  Jim Meyering  <jim@meyering.net>
66839
66840         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66841         continue using the flexible array member (thus, this module performs
66842         half as many malloc calls), with the addition that...
66843         (getgroup, getuser): Consistently record a non-match via an empty
66844         "name" string, and map an empty string match to a NULL return value.
66845         * modules/idcache (Depends-on): Re-add flexmember.
66846
66847         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66848         (getuidbyname, getgroup, getgidbyname): Likewise.
66849
66850         Use cleaner syntax: NULL rather than 0.
66851         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66852
66853 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66854
66855         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66856         It mishandled the case where the group was missing.
66857         Problem reported by Greg Schafer.
66858         * modules/idcache: Likewise.
66859
66860 2006-11-18  Jim Meyering  <jim@meyering.net>
66861
66862         * check-module (%exempt_header): Add exception for some
66863         conditionally-included headers.
66864
66865         * modules/i-ring (Depends-on): Add verify.
66866         (License): Change to LGPL.
66867
66868 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66869
66870         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66871         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66872         and inttostr.h.  Use snprintf rather than uinttostr, so that
66873         LGPLed code doesn't depend on GPLed.
66874
66875 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66876
66877         * modules/inline (License): Change from GPL to LGPL.
66878
66879 2006-11-17  Jim Meyering  <jim@meyering.net>
66880
66881         * modules/d-type (License): Switch to LGPL.
66882
66883 2006-11-15  Bruno Haible  <bruno@clisp.org>
66884
66885         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66886
66887 2006-11-15  Eric Blake  <ebb9@byu.net>
66888
66889         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66890         the module dependency.
66891
66892 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66893             Bruno Haible  <bruno@clisp.org>
66894
66895         * gnulib-tool (func_create_testdir): Add license consistency check.
66896
66897 2006-11-15  Eric Blake  <ebb9@byu.net>
66898
66899         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66900         random "(cached)" in configure output.
66901
66902 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66903
66904         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66905         test for conforming inttypes.h is both announced and cached.
66906
66907         * MODULES.html.sh (seen_modules, seen_files): New variables.
66908         (func_module): Rewrite to use a few less gnulib-tool and sed
66909         invocations.  Avoid a couple of quadratic algorithms for ...
66910         (missed_modules, missed_files): ... these, with ...
66911         (func_append, func_tmpdir): ... these new functions, from
66912         gnulib-tool.  Analogously, install traps for cleanup.
66913
66914         * tests/test-gc.c (main): Remove unused variables.
66915         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66916
66917 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66918
66919         * modules/inttostr (License): Change to LGPL.
66920
66921 2006-11-14  Eric Blake  <ebb9@byu.net>
66922
66923         * modules/tempname (License): Change to LGPL.
66924
66925 2006-11-14  Eric Blake  <ebb9@byu.net>
66926
66927         * doc/functions.texi (Function Portability): *printf functions on
66928         Cygwin now understand all POSIX size specifiers.
66929
66930 2006-11-14  Bruno Haible  <bruno@clisp.org>
66931
66932         * modules/c-ctype (License): Change to LGPL.
66933
66934 2006-11-12  Bruno Haible  <bruno@clisp.org>
66935
66936         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66937         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66938         for GNOME libraries, for which the include files are installed in
66939         subdirectories of $prefix/include.
66940
66941 2006-11-12  Bruno Haible  <bruno@clisp.org>
66942
66943         * m4/lib-link.m4: Require at least autoconf-2.54.
66944         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66945         name to underscores for the --with option.
66946
66947 2006-11-13  Bruno Haible  <bruno@clisp.org>
66948
66949         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66950         the tests directory.
66951         Reported by Ralf Wildenhues.
66952
66953 2006-11-13  Bruno Haible  <bruno@clisp.org>
66954
66955         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66956         (func_emit_initmacro_end): Undo the override here.
66957         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66958         Works around the famous automake error in coreutils.
66959
66960 2006-11-13  Eric Blake  <ebb9@byu.net>
66961
66962         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66963         element, not its node.
66964
66965 2006-11-12  Bruno Haible  <bruno@clisp.org>
66966
66967         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66968         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66969
66970 2006-11-12  Bruno Haible  <bruno@clisp.org>
66971
66972         * gnulib-tool: New option --local-symlink.
66973         (func_usage): Document it.
66974         (lsymbolic): New variable.
66975         (func_import, func_create_testdir): If --symlink was not specified,
66976         test whether --local-symlink was specified and the file comes from
66977         the local_gnulib_dir.
66978
66979 2006-11-12  Bruno Haible  <bruno@clisp.org>
66980
66981         * gnulib-tool (func_ln): New function.
66982         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66983
66984 2006-11-12  Bruno Haible  <bruno@clisp.org>
66985
66986         Finish support for source files in subdirectories.
66987         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66988         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66989         AUTOMAKE_OPTIONS.
66990         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66991
66992 2006-11-12  Bruno Haible  <bruno@clisp.org>
66993
66994         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66995         EXTRA_lib_SOURCES augmentation.
66996         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66997
66998 2006-11-12  Jim Meyering  <jim@meyering.net>
66999
67000         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67001         file descriptors.  This also averts a failure on systems with
67002         native openat support when a traversed directory lacks "x" access.
67003         * lib/fts_.h: Include "i-ring.h"
67004         (struct FTS) [fts_fd_ring]: New member.
67005         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67006         (FCHDIR): Add parentheses.
67007         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67008         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67009         When descending, rather than simply closing the previous
67010         fts_cwd_fd value, push that file descriptor onto the ring.
67011         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67012         (fts_open): Initialize the new fd_ring member.
67013         (fts_close): Clear the ring.
67014         (fts_safe_changedir): When possible, use our new fd_ring to skip
67015         the diropen and fstat and dev/ino comparison that would normally
67016         accompany a virtual `chdir ("..")'.
67017
67018         * modules/fts (Depends-on): Add i-ring.
67019         * modules/i-ring: New module.
67020         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67021         * m4/i-ring.m4: New file.
67022
67023 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67024
67025         * gnulib-tool (func_create_testdir): Fix replacement of
67026         `build-aux' in configure.ac.  Run autotools in gltests
67027         subdirectory.
67028         (func_create_testdir, func_create_megatestdir, test): There is
67029         no need for '--force' in most autotool invocations in a new
67030         tree.  Actually fail the whole test if any of the tools, or the
67031         configure or make stages fail.
67032
67033         Sync from Automake.
67034         * build-aux/gnupload: Revert last change.  Add pointer to upload
67035         instructions of the GNU Maintenance Instructions.
67036         Suggestion by Karl Berry.
67037
67038 2006-11-10  Jim Meyering  <jim@meyering.net>
67039
67040         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67041
67042 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67043
67044         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67045         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67046         (bind_textdomain_codeset) [! ENABLE_NLS]:
67047         Evaluate all the arguments.  That way, callers get compatible behavior
67048         if the arguments have side effects.  Also, it avoids some GCC
67049         diagnostics in some cases; Joel E. Denny reported problems when Bison
67050         was configured with --enable-gcc-warnigs.
67051
67052 2006-11-10  Jim Meyering  <jim@meyering.net>
67053
67054         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67055         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67056         account.
67057
67058 2006-11-10  Jim Meyering  <jim@meyering.net>
67059
67060         * modules/inline: New file/module.
67061         * modules/xalloc (Files): Remove m4/inline.m4.
67062         (Depends-on): Add inline, instead.
67063         * modules/oset: Likewise.
67064         * modules/list: Likewise.
67065
67066 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67067
67068         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67069         Problem reported by Matthew Woehlke.
67070
67071 2006-11-09  Bruno Haible  <bruno@clisp.org>
67072
67073         * lib/tempname.c (gen_tempname): Remove variant that invokes
67074         __gen_tempname.
67075         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67076         __gen_tempname.
67077
67078 2006-11-08  Bruno Haible  <bruno@clisp.org>
67079
67080         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67081         to 'yes' instead of 'cross-compiling'.
67082
67083 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67084
67085         * lib/quotearg.h (quotearg_free): New decl.
67086         * lib/quotearg.c (quotearg_free): New function.
67087         (slot0, nslots, slotvec0, slotvec):
67088         Now file-scope so that quotearg_free can get at them.
67089
67090 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67091
67092         Sync from Automake.
67093         * build-aux/gnupload: Add missing 'gnu' to example URL.
67094         Report by Karl Berry.
67095
67096 2006-11-08  Bruno Haible  <bruno@clisp.org>
67097
67098         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67099         Suggested by Paul Eggert.
67100
67101 2006-11-08  Jim Meyering  <jim@meyering.net>
67102
67103         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67104         It's already included if !_LIBC.
67105         (fts_safe_changedir): Add a comment.
67106
67107 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67108
67109         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67110         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67111         Matthew Woehlke.
67112
67113         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67114         definitions up, to avoid colliding with change below.
67115         (static_inline) [HAVE_INLINE]: New macro.
67116         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67117         Provide extern decls when !HAVE_INLINE.  Do not define unless
67118         static_inline is defined, either by us or by xmalloc.c.  Use
67119         static_inline rather than static inline.
67120         (XCALLOC): Optimize sizeof(T) = 1 case.
67121         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67122
67123 2006-11-07  Bruno Haible  <bruno@clisp.org>
67124
67125         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67126         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67127         AC_C_INLINE.
67128         * modules/xalloc (Files): Add m4/inline.m4.
67129
67130 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67131
67132         * README: Fix typo.
67133         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67134         (Miscellanous Notes): ...from this.
67135
67136 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67137
67138         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67139         Mention that offsetof should be used instead of sizeof.
67140         From Bruno Haible.
67141
67142 2006-11-07  Bruno Haible  <bruno@clisp.org>
67143
67144         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67145
67146 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67147
67148         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67149         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67150         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67151         (gl_tree_add_before, gl_tree_add_after):
67152         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67153         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67154         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67155         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67156         (gl_linked_add_after, gl_linked_add_at): Likewise.
67157         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67158         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67159         (gl_tree_add_before, gl_tree_add_after): Likewise.
67160         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67161         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67162         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67163
67164 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67165
67166         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67167
67168 2006-11-06  Bruno Haible  <bruno@clisp.org>
67169
67170         * m4/inline.m4: New file.
67171         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67172         * modules/list (Files): Add m4/inline.m4.
67173         * modules/oset (Files): Likewise.
67174
67175 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67176
67177         * lib/idcache.c: Include <stddef.h>, for offsetof.
67178         (struct userid.name): Change from char * to a flexible array member.
67179         All uses changed.
67180         * modules/idcache (Depends-on): Add flexmember.
67181
67182         * MODULES.html.sh (Core language properties): New module flexmember.
67183         * modules/flexmember, m4/flexmember.m4: New files.
67184
67185         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67186         inline functions that are identical with the old xnmalloc_inline,
67187         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67188         that we can avoid some unnecessary integer multiplications and
67189         divisions in the common case where the element size is known at
67190         compile time.
67191         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67192         needed.
67193         (xnboundedmalloc): Remove.
67194         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67195         arguments, for consistency with rest of this header.
67196         (xcharalloc): Rewrite using XNMALLOC.
67197         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67198         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67199         versions have been moved to lib/xalloc.h and renamed to be the
67200         non-*_inline versions.
67201         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67202         and xnrealloc functions, since those functions are now inline and
67203         now call us.
67204         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67205         renaming described above.
67206         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67207         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67208         captures the dependency in AC_C_INLINE.
67209
67210         New module canonicalize-lgpl, proposed by Charles Wilson in
67211         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67212         with a few small changes afterwards.
67213         * MODULES.html.sh (File system functions): New module
67214         canonicalize-lgpl.
67215         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67216         and canonicalize_file_name.
67217         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67218         * modules/canonicalize-lgpl: New files.
67219
67220 2006-11-05  Bruno Haible  <bruno@clisp.org>
67221
67222         * gnulib-tool (func_import, func_create_testdir): Create directories
67223         also for files in subdirectories of lib/.
67224
67225 2006-11-05  Bruno Haible  <bruno@clisp.org>
67226
67227         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67228         ANSI C compliant.
67229
67230 2006-11-03  Bruno Haible  <bruno@clisp.org>
67231
67232         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67233         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67234         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67235         (xnboundedmalloc): New inline function.
67236         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67237         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67238         xmalloc.
67239         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67240         xmalloc.
67241         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67242         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67243         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67244         xmalloc.
67245         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67246         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67247         xmalloc.
67248         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67249         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67250         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67251         xmalloc.
67252         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67253         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67254         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67255         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67256         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67257         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67258         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67259
67260 2006-11-03  Bruno Haible  <bruno@clisp.org>
67261
67262         * lib/c-ctype.h [C++]: Define functions without name mangling.
67263         * lib/fwriteerror.h [C++]: Likewise.
67264         * lib/gcd.h [C++]: Likewise.
67265         * lib/linebreak.h [C++]: Likewise.
67266
67267 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67268
67269         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67270         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67271         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67272         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67273         Check for functions and headers just once.
67274         Check for declaration of canonicalize_file_name.
67275         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67276
67277 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67278
67279         * gnulib-tool (func_import): Fix typo in actioncmd.
67280
67281 2006-11-02  Bruno Haible  <bruno@clisp.org>
67282
67283         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67284         newline sequence in the Makefile.am snippet as a space, like "make"
67285         does.
67286         Reported by Roger Persson <perrog@gmail.com>.
67287
67288 2006-11-01  Bruno Haible  <bruno@clisp.org>
67289
67290         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67291         already declared in <string.h>.
67292         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67293
67294 2006-11-01  Bruno Haible  <bruno@clisp.org>
67295
67296         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67297         * lib/strcase.h: Include <string.h>.
67298         (strcasecmp): Define to rpl_strcasecmp here.
67299
67300 2006-11-01  Bruno Haible  <bruno@clisp.org>
67301
67302         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67303
67304 2006-11-01  Eric Blake  <ebb9@byu.net>
67305
67306         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67307
67308         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67309
67310 2006-10-29  Bruno Haible  <bruno@clisp.org>
67311
67312         Make it compile in C++ mode.
67313         * lib/full-write.c (full_rw): Add a cast.
67314
67315 2006-11-01  Bruno Haible  <bruno@clisp.org>
67316
67317         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67318         be POSIX compliant.
67319         Reported by Roger Persson <perrog@gmail.com>.
67320
67321 2006-11-01  Eric Blake  <ebb9@byu.net>
67322
67323         * lib/getopt_.h: Fix comments.
67324
67325 2006-10-31  Eric Blake  <ebb9@byu.net>
67326
67327         * modules/tmpdir (Depends-on): Add sys_stat.
67328         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67329         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67330         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67331         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67332         tempname.
67333
67334 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         Avoid some C++ diagnostics reported by Bruno Haible.
67337         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67338         xmalloc.
67339         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67340         (struct slotvec): Move to top level.
67341         (quotearg_n_options): Rewrite to avoid xmalloc.
67342         * lib/xalloc.h (xcharalloc): New function.
67343         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67344         [defined __cplusplus]: Add function template that provides result
67345         type propagation.  This part of the change is from Bruno Haible.
67346
67347 2006-10-29  Bruno Haible  <bruno@clisp.org>
67348
67349         Make it compile in C++ mode.
67350         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67351         * lib/strnlen1.c (strnlen1): Cast memchr result.
67352         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67353         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67354         (create_temp_dir): Rename local variable 'template'.
67355         (compile_csharp_using_sscli): Add cast.
67356         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67357         * lib/findprog.c (find_in_path): Likewise.
67358         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67359         * lib/wait-process.c (register_slave_subprocess): Likewise.
67360
67361 2006-10-22  Bruno Haible  <bruno@clisp.org>
67362
67363         * modules/tsearch: New file.
67364         * lib/tsearch.h: New file.
67365         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67366         * m4/tsearch.m4: New file.
67367         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67368
67369 2006-10-29  Eric Blake  <ebb9@byu.net>
67370
67371         * lib/arcfour.c: Assume config.h.
67372         * lib/arctwo.c: Likewise.
67373         * lib/base64.c: Likewise.
67374         * lib/check-version.c: Likewise.
67375         * lib/crc.c: Likewise.
67376         * lib/des.c: Likewise.
67377         * lib/gc-gnulib.c: Likewise.
67378         * lib/gc-libgcrypt.c: Likewise.
67379         * lib/gc-pbkdf2-sha1.c: Likewise.
67380         * lib/getaddrinfo.c: Likewise.
67381         * lib/getdelim.c: Likewise.
67382         * lib/getline.c: Likewise.
67383         * lib/hmac-md5.c: Likewise.
67384         * lib/hmac-sha1.c: Likewise.
67385         * lib/iconvme.c: Likewise.
67386         * lib/md2.c: Likewise.
67387         * lib/md4.c: Likewise.
67388         * lib/memxor.c: Likewise.
67389         * lib/read-file.c: Likewise.
67390         * lib/readline.c: Likewise.
67391         * lib/rijndael-alg-fst.c: Likewise.
67392         * lib/rijndael-api-fst.c: Likewise.
67393         * lib/xgetdomainname.c: Likewise.
67394
67395 2006-10-28  Eric Blake  <ebb9@byu.net>
67396
67397         * lib/xstrndup.c: Assume config.h.
67398
67399 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67400
67401         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67402         stat-macros.h is now for our own macros, whereas stat_h is for
67403         macros in the <sys/stat.h> name space.
67404         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67405         (STAT_MACROS_H): Remove.
67406         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67407         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67408         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67409         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67410         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67411         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67412         Move these macros to ...
67413         * lib/stat_.h: here.  Don't include stat-macros.h.
67414         * lib/canonicalize.c: Don't include stat-macros.h.
67415         * lib/chown.c: Likewise.
67416         * lib/euidaccess.c: Likewise.
67417         * lib/file-type.c: Likewise.
67418         * lib/filemode.c: Likewise.
67419         * lib/glob.c: Likewise.
67420         * lib/isapipe.c: Likewise.
67421         * lib/lchown.c: Likewise.
67422         * lib/lstat.c: Likewise.
67423         * lib/mkdir-p.c: Likewise.
67424         * lib/rmdir.c: Likewise.
67425         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67426         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67427         unless mkdir isn't declared, to speed up 'configure'.
67428         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67429         would define all the S_* symbols.
67430         * modules/canonicalize (Depends-on):
67431         Depend on sys_stat, not stat-macros.
67432         * modules/chown: Likewise.
67433         * modules/euidaccess: Likewise.
67434         * modules/filemode: Likewise.
67435         * modules/file-type: Likewise.
67436         * modules/glob: Likewise.
67437         * modules/isapipe: Likewise.
67438         * modules/lchown: Likewise.
67439         * modules/lstat: Likewise.
67440         * modules/mkancesdirs: Likewise.
67441         * modules/rmdir: Likewise.
67442         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67443         * modules/modechange: Likewise.
67444         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67445         (configure.ac): Remove gl_STAT_MACROS.
67446         * modules/sys_stat (Depends-on): Remove stat-macros.
67447
67448 2006-10-27  Bruno Haible  <bruno@clisp.org>
67449
67450         * m4/signed.m4: Remove file.
67451         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67452         invocation.
67453         * modules/vasnprintf (Files): Remove m4/signed.m4.
67454
67455 2006-10-27  Bruno Haible  <bruno@clisp.org>
67456
67457         Update to GNU gettext 0.16.
67458         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67459         m4/inttypes-h.m4, m4/signed.m4.
67460         * m4/gettext.m4: Update to GNU gettext 0.16.
67461         * m4/intl.m4: New file, from GNU gettext.
67462         * m4/intldir.m4: New file, from GNU gettext.
67463         * config/srclist.txt: Update
67464
67465 2006-10-27  Eric Blake  <ebb9@byu.net>
67466
67467         * MODULES.html.sh: Document tempname.
67468         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67469         dependencies.
67470         (Files): Move lib/tempname.c...
67471         * modules/tempname: ...to this new module.
67472         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67473         (gl_PREREQ_TEMPNAME): Move...
67474         * m4/tempname.m4: ...to this new file.
67475         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67476         * modules/sys_stat (Depends-on): Add stat-macros.
67477         * lib/stat_.h (includes): Pick up stat macros.
67478         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67479         if stat macros are broken.
67480         * lib/tempname.c (includes): No need to include "stat-macros.h".
67481         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67482         (direxists, __path_search) [!_LIBC]: Don't compile these in
67483         gnulib; the tmpdir module covers that.
67484         * lib/tempname.h: New file.
67485
67486 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67487
67488         * COPYING: Explain how gnulib-tool converts licence headers.
67489         Almost all wording by Eric Blake.
67490
67491 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67492
67493         * lib/mbchar.h (is_basic_table): Make read-only.
67494         * lib/mbchar.c (is_basic_table): Likewise.
67495         Reported by John Darrington.
67496
67497 2006-10-25  Bruno Haible  <bruno@clisp.org>
67498
67499         * lib/progname.h (set_program_name): Undefine before defining.
67500
67501 2006-10-25  Bruno Haible  <bruno@clisp.org>
67502
67503         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67504         false for non-gcc C++ compilers.
67505         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67506
67507 2006-10-24  Bruno Haible  <bruno@clisp.org>
67508
67509         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67510         iconv implementations like Irix iconv.
67511
67512 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67513
67514         * modules/vararrays: New file.
67515         * m4/vararrays.m4: New file, taken from diffutils.
67516         * MODULES.html.sh: New module vararrays.
67517
67518 2006-10-24  Karl Berry  <karl@gnu.org>
67519
67520         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67521         Don't call GNU Unix.
67522
67523 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67524
67525         * users.txt: Add Libtool.
67526
67527         Sync from Libtool:
67528
67529         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67530
67531         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67532         to gnulib's policy of including config.h unconditionally.
67533
67534 2006-10-24  Bruno Haible  <bruno@clisp.org>
67535
67536         * modules/wcwidth (Files): Add m4/wint_t.m4.
67537         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67538         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67539
67540 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67541
67542         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67543         to pacify GCC with some -W flags enabled.  Problem reported by
67544         Bruno Haible.
67545
67546 2006-10-24  Jim Meyering  <jim@meyering.net>
67547
67548         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67549         Reported by Karl Berry.
67550
67551 2006-10-23  Bruno Haible  <bruno@clisp.org>
67552
67553         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67554
67555 2006-10-24  Bruno Haible  <bruno@clisp.org>
67556
67557         * lib/gl_list.h: Use C comment style, not C++ comment style.
67558
67559 2006-10-23  Eric Blake  <ebb9@byu.net>
67560
67561         * lib/getaddrinfo.c (includes): Add missing include.
67562
67563 2006-10-23  Bruno Haible  <bruno@clisp.org>
67564             Paul Eggert  <eggert@cs.ucla.edu>
67565
67566         Ability to rename obstack_free.
67567         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67568         obstack_free.
67569         (obstack_free): Invoke the __obstack_free macro.
67570         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67571
67572 2006-10-23  Bruno Haible  <bruno@clisp.org>
67573             Paul Eggert  <eggert@cs.ucla.edu>
67574
67575         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67576         __argc, __argv from the declaration. (They are defined as macros on
67577         mingw.)
67578
67579 2006-10-22  Bruno Haible  <bruno@clisp.org>
67580
67581         * doc/gnulib-intro.texi: New file.
67582         * doc/gnulib.texi: Include it.
67583
67584 2006-10-21  Bruno Haible  <bruno@clisp.org>
67585
67586         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67587         "Introduction", "Miscellanous Notes", "Particular Modules".
67588
67589 2006-10-21  Bruno Haible  <bruno@clisp.org>
67590
67591         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67592         Change mostlyclean-local rule to avoid sh syntax error from bash
67593         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67594
67595 2006-10-23  Jim Meyering  <jim@meyering.net>
67596
67597         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67598         in place of snprintf.
67599
67600         * modules/inttostr (Files): Add lib/uinttostr.c.
67601         * lib/uinttostr.c (inttostr): New file/function.
67602         * lib/inttostr.h (uinttostr): Declare.
67603         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67604         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67605         Add uinttostr.
67606         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67607
67608 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67609
67610         * lib/canonicalize.c (ELOOP): Define if not already defined.
67611         Problem reported by Bruno Haible in
67612         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67613
67614 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67615
67616         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67617         Problem reported by Perry Smith and Ville Laurikari.
67618
67619         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67620         uses.
67621
67622 2006-10-19  Bruno Haible  <bruno@clisp.org>
67623
67624         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67625         for mingw.
67626
67627 2006-10-19  Bruno Haible  <bruno@clisp.org>
67628
67629         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67630         Needed for mingw.
67631
67632 2006-10-19  Bruno Haible  <bruno@clisp.org>
67633
67634         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67635
67636 2006-10-19  Bruno Haible  <bruno@clisp.org>
67637
67638         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67639         it.
67640
67641 2006-10-19  Bruno Haible  <bruno@clisp.org>
67642
67643         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67644         invocation.
67645
67646 2006-10-19  Bruno Haible  <bruno@clisp.org>
67647
67648         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67649         mountlist by default.
67650
67651 2006-10-16  Bruno Haible  <bruno@clisp.org>
67652
67653         * lib/c-strstr.c: Include c-strstr.h.
67654
67655 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67656
67657         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67658         in a slash.
67659
67660 2006-10-18  Bruno Haible  <bruno@clisp.org>
67661
67662         * lib/lock.h [C++]: Wrap definitions in extern "C".
67663
67664 2006-10-18  Bruno Haible  <bruno@clisp.org>
67665
67666         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67667         gl_LIBOBJS list.
67668
67669 2006-10-18  Bruno Haible  <bruno@clisp.org>
67670
67671         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67672
67673 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67674
67675         * lib/xstrtol.h: Include gettext.h.
67676         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67677         Problem reported by Eric Blake.
67678         * modules/xstrtol (Depends-on): Add gettext-h.
67679
67680 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67681
67682         * lib/strftime.c (advance): New macro.
67683         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67684         incomplete type, so you can't add 0 to it.  Problem and patch
67685         reported by Eelco Dolstra for dietlibc.
67686
67687 2006-10-18  Jim Meyering  <jim@meyering.net>
67688
67689         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67690         type for a local, and rename it: s/up/user_proc/.
67691
67692 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67693
67694         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67695         READ_UTMP_USER_PROCESS.
67696         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67697
67698 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67699
67700         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67701         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67702
67703 2006-10-17  Eric Blake  <ebb9@byu.net>
67704
67705         * lib/sigprocmask.c (sigprocmask): Fix typo.
67706
67707         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67708
67709         * modules/clean-temp (Makefile.am): Don't add to make output...
67710         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67711         config.h.
67712
67713 2006-10-17  Bruno Haible  <bruno@clisp.org>
67714
67715         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67716         differently if DEFAULT_TEXT_DOMAIN is set.
67717
67718 2006-10-16  Bruno Haible  <bruno@clisp.org>
67719
67720         * lib/clean-temp.c: Include fwriteerror.h.
67721
67722 2006-10-16  Bruno Haible  <bruno@clisp.org>
67723
67724         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67725
67726 2006-10-16  Bruno Haible  <bruno@clisp.org>
67727
67728         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67729         * lib/sigprocmask.h: Include <sys/types.h>.
67730         (sigset_t): Use the system's definition if present.
67731
67732 2006-10-17  Eric Blake  <ebb9@byu.net>
67733
67734         * lib/xvasprintf.c (includes): Assume config.h.
67735         * lib/xasprintf.c (includes): Likewise.
67736
67737 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67738
67739         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67740         at least as wide as intmax_t.
67741
67742 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67743
67744         (Imported from Automake.)
67745         * build-aux/gnupload: Update to version 1.1 of directive file.
67746
67747 2006-10-16  Eric Blake  <ebb9@byu.net>
67748
67749         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67750         match Automake 1.10a.
67751
67752 2006-10-14  Bruno Haible  <bruno@clisp.org>
67753
67754         * modules/sigprocmask: New file.
67755         * lib/sigprocmask.h: New file.
67756         * lib/sigprocmask.c: New file.
67757         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67758         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67759         request sigprocmask.o.
67760         (gl_PREREQ_SIGPROCMASK): New macro.
67761         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67762         (Depends-on): Add sigprocmask.
67763         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67764         gt_SIGNALBLOCKING. Test for 'raise' only once.
67765         * lib/fatal-signal.c: Include sigprocmask.h.
67766         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67767         unblock_fatal_signals): Define always.
67768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67769         sigprocmask.
67770
67771 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67772
67773         Sync from Automake.
67774         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67775         which incorrectly sets the mode of an existing destination
67776         directory.  In some cases the unpatched install-sh could do the
67777         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67778         system.  We hope this is rare in practice, but it's clearly worth
67779         fixing.  Problem reported by Alex Unleashed in
67780         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67781         Also, don't bother to check for -m bugs unless we're using -m;
67782         suggested by Stepan Kasal.
67783
67784 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67785
67786         Sync from Automake.
67787         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67788         `-c' flag, so they appear at the same position as in %FASTDEP%
67789         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67790         which ignores unknown options only after the first non-option.
67791         Bug report against M4 by Nelson H. F. Beebe.
67792
67793 2006-10-13  Jim Meyering  <jim@meyering.net>
67794
67795         Fix a bug in yesterday's change.
67796         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67797         p->fts_statp->st_dev would be used uninitialized.
67798         Ensures that we always call fts_stat on the very first entry.
67799         Miklos Szeredi reported that find -xdev stopped working.
67800
67801 2006-10-12  Bruno Haible  <bruno@clisp.org>
67802
67803         * gnulib-tool (func_get_automake_snippet): Append an automatically
67804         computed EXTRA_DIST augmentation.
67805         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67806         * modules/alloca-opt (Makefile.am): Likewise.
67807         * modules/allocsa (Makefile.am): Likewise.
67808         * modules/arcfour (Makefile.am): Likewise.
67809         * modules/arctwo (Makefile.am): Likewise.
67810         * modules/argmatch (Makefile.am): Likewise.
67811         * modules/argz (Makefile.am): Likewise.
67812         * modules/atexit (Makefile.am): Likewise.
67813         * modules/backupfile (Makefile.am): Likewise.
67814         * modules/byteswap (Makefile.am): Likewise.
67815         * modules/c-strtod (Makefile.am): Likewise.
67816         * modules/c-strtold (Makefile.am): Likewise.
67817         * modules/calloc (Makefile.am): Likewise.
67818         * modules/canon-host (Makefile.am): Likewise.
67819         * modules/canonicalize (Makefile.am): Likewise.
67820         * modules/chdir-long (Makefile.am): Likewise.
67821         * modules/chdir-safer (Makefile.am): Likewise.
67822         * modules/check-version (Makefile.am): Likewise.
67823         * modules/chown (Makefile.am): Likewise.
67824         * modules/cloexec (Makefile.am): Likewise.
67825         * modules/close-stream (Makefile.am): Likewise.
67826         * modules/closeout (Makefile.am): Likewise.
67827         * modules/crc (Makefile.am): Likewise.
67828         * modules/csharpexec (Makefile.am): Likewise.
67829         * modules/cycle-check (Makefile.am): Likewise.
67830         * modules/des (Makefile.am): Likewise.
67831         * modules/dev-ino (Makefile.am): Likewise.
67832         * modules/dirfd (Makefile.am): Likewise.
67833         * modules/dirname (Makefile.am): Likewise.
67834         * modules/dup2 (Makefile.am): Likewise.
67835         * modules/eealloc (Makefile.am): Likewise.
67836         * modules/error (Makefile.am): Likewise.
67837         * modules/euidaccess (Makefile.am): Likewise.
67838         * modules/exclude (Makefile.am): Likewise.
67839         * modules/exitfail (Makefile.am): Likewise.
67840         * modules/fcntl-safer (Makefile.am): Likewise.
67841         * modules/fcntl (Makefile.am): Likewise.
67842         * modules/file-type (Makefile.am): Likewise.
67843         * modules/fileblocks (Makefile.am): Likewise.
67844         * modules/filemode (Makefile.am): Likewise.
67845         * modules/filenamecat (Makefile.am): Likewise.
67846         * modules/fnmatch (Makefile.am): Likewise.
67847         * modules/fopen-safer (Makefile.am): Likewise.
67848         * modules/fpending (Makefile.am): Likewise.
67849         * modules/fprintftime (Makefile.am): Likewise.
67850         * modules/free (Makefile.am): Likewise.
67851         * modules/fsusage (Makefile.am): Likewise.
67852         * modules/ftruncate (Makefile.am): Likewise.
67853         * modules/fts (Makefile.am): Likewise.
67854         * modules/gc-arcfour (Makefile.am): Likewise.
67855         * modules/gc-des (Makefile.am): Likewise.
67856         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67857         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67858         * modules/gc-md4 (Makefile.am): Likewise.
67859         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67860         * modules/gc-sha1 (Makefile.am): Likewise.
67861         * modules/gc (Makefile.am): Likewise.
67862         * modules/getaddrinfo (Makefile.am): Likewise.
67863         * modules/getcwd (Makefile.am): Likewise.
67864         * modules/getdelim (Makefile.am): Likewise.
67865         * modules/getdomainname (Makefile.am): Likewise.
67866         * modules/getgroups (Makefile.am): Likewise.
67867         * modules/gethostname (Makefile.am): Likewise.
67868         * modules/gethrxtime (Makefile.am): Likewise.
67869         * modules/getline (Makefile.am): Likewise.
67870         * modules/getloadavg (Makefile.am): Likewise.
67871         * modules/getlogin_r (Makefile.am): Likewise.
67872         * modules/getndelim2 (Makefile.am): Likewise.
67873         * modules/getopt (Makefile.am): Likewise.
67874         * modules/getpagesize (Makefile.am): Likewise.
67875         * modules/getpass-gnu (Makefile.am): Likewise.
67876         * modules/getpass (Makefile.am): Likewise.
67877         * modules/getsubopt (Makefile.am): Likewise.
67878         * modules/gettime (Makefile.am): Likewise.
67879         * modules/gettimeofday (Makefile.am): Likewise.
67880         * modules/getugroups (Makefile.am): Likewise.
67881         * modules/getusershell (Makefile.am): Likewise.
67882         * modules/glob (Makefile.am): Likewise.
67883         * modules/group-member (Makefile.am): Likewise.
67884         * modules/hard-locale (Makefile.am): Likewise.
67885         * modules/hash (Makefile.am): Likewise.
67886         * modules/hmac-md5 (Makefile.am): Likewise.
67887         * modules/hmac-sha1 (Makefile.am): Likewise.
67888         * modules/human (Makefile.am): Likewise.
67889         * modules/idcache (Makefile.am): Likewise.
67890         * modules/imaxabs (Makefile.am): Likewise.
67891         * modules/imaxdiv (Makefile.am): Likewise.
67892         * modules/inet_ntop (Makefile.am): Likewise.
67893         * modules/inet_pton (Makefile.am): Likewise.
67894         * modules/intprops (Makefile.am): Likewise.
67895         * modules/inttostr (Makefile.am): Likewise.
67896         * modules/inttypes (Makefile.am): Likewise.
67897         * modules/isapipe (Makefile.am): Likewise.
67898         * modules/javaversion (Makefile.am): Likewise.
67899         * modules/lchmod (Makefile.am): Likewise.
67900         * modules/lchown (Makefile.am): Likewise.
67901         * modules/localcharset (Makefile.am): Likewise.
67902         * modules/long-options (Makefile.am): Likewise.
67903         * modules/lstat (Makefile.am): Likewise.
67904         * modules/malloc (Makefile.am): Likewise.
67905         * modules/mathl (Makefile.am): Likewise.
67906         * modules/mbchar (Makefile.am): Likewise.
67907         * modules/md2 (Makefile.am): Likewise.
67908         * modules/md4 (Makefile.am): Likewise.
67909         * modules/md5 (Makefile.am): Likewise.
67910         * modules/memcasecmp (Makefile.am): Likewise.
67911         * modules/memchr (Makefile.am): Likewise.
67912         * modules/memcmp (Makefile.am): Likewise.
67913         * modules/memcoll (Makefile.am): Likewise.
67914         * modules/memcpy (Makefile.am): Likewise.
67915         * modules/memmem (Makefile.am): Likewise.
67916         * modules/memmove (Makefile.am): Likewise.
67917         * modules/mempcpy (Makefile.am): Likewise.
67918         * modules/memrchr (Makefile.am): Likewise.
67919         * modules/memset (Makefile.am): Likewise.
67920         * modules/memxor (Makefile.am): Likewise.
67921         * modules/mkancesdirs (Makefile.am): Likewise.
67922         * modules/mkdir-p (Makefile.am): Likewise.
67923         * modules/mkdir (Makefile.am): Likewise.
67924         * modules/mkdtemp (Makefile.am): Likewise.
67925         * modules/mkstemp (Makefile.am): Likewise.
67926         * modules/mktime (Makefile.am): Likewise.
67927         * modules/modechange (Makefile.am): Likewise.
67928         * modules/mountlist (Makefile.am): Likewise.
67929         * modules/nanosleep (Makefile.am): Likewise.
67930         * modules/obstack (Makefile.am): Likewise.
67931         * modules/openat (Makefile.am): Likewise.
67932         * modules/pagealign_alloc (Makefile.am): Likewise.
67933         * modules/pathmax (Makefile.am): Likewise.
67934         * modules/physmem (Makefile.am): Likewise.
67935         * modules/poll (Makefile.am): Likewise.
67936         * modules/posixtm (Makefile.am): Likewise.
67937         * modules/posixver (Makefile.am): Likewise.
67938         * modules/putenv (Makefile.am): Likewise.
67939         * modules/quote (Makefile.am): Likewise.
67940         * modules/quotearg (Makefile.am): Likewise.
67941         * modules/raise (Makefile.am): Likewise.
67942         * modules/read-file (Makefile.am): Likewise.
67943         * modules/readline (Makefile.am): Likewise.
67944         * modules/readlink (Makefile.am): Likewise.
67945         * modules/readtokens (Makefile.am): Likewise.
67946         * modules/readutmp (Makefile.am): Likewise.
67947         * modules/realloc (Makefile.am): Likewise.
67948         * modules/regex (Makefile.am): Likewise.
67949         * modules/rename-dest-slash (Makefile.am): Likewise.
67950         * modules/rename (Makefile.am): Likewise.
67951         * modules/rijndael (Makefile.am): Likewise.
67952         * modules/rmdir (Makefile.am): Likewise.
67953         * modules/rpmatch (Makefile.am): Likewise.
67954         * modules/safe-read (Makefile.am): Likewise.
67955         * modules/safe-write (Makefile.am): Likewise.
67956         * modules/same-inode (Makefile.am): Likewise.
67957         * modules/same (Makefile.am): Likewise.
67958         * modules/save-cwd (Makefile.am): Likewise.
67959         * modules/savedir (Makefile.am): Likewise.
67960         * modules/setenv (Makefile.am): Likewise.
67961         * modules/settime (Makefile.am): Likewise.
67962         * modules/sha1 (Makefile.am): Likewise.
67963         * modules/sig2str (Makefile.am): Likewise.
67964         * modules/snprintf (Makefile.am): Likewise.
67965         * modules/stat-macros (Makefile.am): Likewise.
67966         * modules/stat-time (Makefile.am): Likewise.
67967         * modules/stdbool (Makefile.am): Likewise.
67968         * modules/stdint (Makefile.am): Likewise.
67969         * modules/stdlib-safer (Makefile.am): Likewise.
67970         * modules/stpcpy (Makefile.am): Likewise.
67971         * modules/stpncpy (Makefile.am): Likewise.
67972         * modules/strcase (Makefile.am): Likewise.
67973         * modules/strcasestr (Makefile.am): Likewise.
67974         * modules/strchrnul (Makefile.am): Likewise.
67975         * modules/strcspn (Makefile.am): Likewise.
67976         * modules/strdup (Makefile.am): Likewise.
67977         * modules/strerror (Makefile.am): Likewise.
67978         * modules/strftime (Makefile.am): Likewise.
67979         * modules/strndup (Makefile.am): Likewise.
67980         * modules/strnlen (Makefile.am): Likewise.
67981         * modules/strpbrk (Makefile.am): Likewise.
67982         * modules/strsep (Makefile.am): Likewise.
67983         * modules/strstr (Makefile.am): Likewise.
67984         * modules/strtod (Makefile.am): Likewise.
67985         * modules/strtoimax (Makefile.am): Likewise.
67986         * modules/strtok_r (Makefile.am): Likewise.
67987         * modules/strtol (Makefile.am): Likewise.
67988         * modules/strtoll (Makefile.am): Likewise.
67989         * modules/strtoul (Makefile.am): Likewise.
67990         * modules/strtoull (Makefile.am): Likewise.
67991         * modules/strtoumax (Makefile.am): Likewise.
67992         * modules/strverscmp (Makefile.am): Likewise.
67993         * modules/sys_socket (Makefile.am): Likewise.
67994         * modules/sys_stat (Makefile.am): Likewise.
67995         * modules/sysexits (Makefile.am): Likewise.
67996         * modules/time_r (Makefile.am): Likewise.
67997         * modules/timegm (Makefile.am): Likewise.
67998         * modules/timespec (Makefile.am): Likewise.
67999         * modules/tmpfile-safer (Makefile.am): Likewise.
68000         * modules/trim (Makefile.am): Likewise.
68001         * modules/unistd-safer (Makefile.am): Likewise.
68002         * modules/unlinkdir (Makefile.am): Likewise.
68003         * modules/unlocked-io (Makefile.am): Likewise.
68004         * modules/userspec (Makefile.am): Likewise.
68005         * modules/utime (Makefile.am): Likewise.
68006         * modules/utimecmp (Makefile.am): Likewise.
68007         * modules/utimens (Makefile.am): Likewise.
68008         * modules/vasnprintf (Makefile.am): Likewise.
68009         * modules/vasprintf (Makefile.am): Likewise.
68010         * modules/vsnprintf (Makefile.am): Likewise.
68011         * modules/xalloc (Makefile.am): Likewise.
68012         * modules/xgetcwd (Makefile.am): Likewise.
68013         * modules/xnanosleep (Makefile.am): Likewise.
68014         * modules/xreadlink (Makefile.am): Likewise.
68015         * modules/xstrtod (Makefile.am): Likewise.
68016         * modules/xstrtol (Makefile.am): Likewise.
68017         * modules/xstrtold (Makefile.am): Likewise.
68018         * modules/yesno (Makefile.am): Likewise.
68019         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68020
68021 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68022
68023         * modules/error (Makefile.am): Distribute files through
68024         EXTRA_DIST, not lib_SOURCES.
68025
68026 2006-10-12  Eric Blake  <ebb9@byu.net>
68027
68028         * modules/error (Makefile.am): Distribute files in /lib.
68029         * modules/obstack (Makefile.am): Likewise.
68030
68031 2006-10-12  Bruno Haible  <bruno@clisp.org>
68032
68033         * modules/acl (Makefile.am): Distribute all files in lib/ through
68034         EXTRA_DIST.
68035         * modules/arcfour (Makefile.am): Likewise.
68036         * modules/arctwo (Makefile.am): Likewise.
68037         * modules/argmatch (Makefile.am): Likewise.
68038         * modules/argz (Makefile.am): Likewise.
68039         * modules/atexit (Makefile.am): Likewise.
68040         * modules/backupfile (Makefile.am): Likewise.
68041         * modules/c-strtod (Makefile.am): Likewise.
68042         * modules/c-strtold (Makefile.am): Likewise.
68043         * modules/calloc (Makefile.am): Likewise.
68044         * modules/canon-host (Makefile.am): Likewise.
68045         * modules/canonicalize (Makefile.am): Likewise.
68046         * modules/chdir-long (Makefile.am): Likewise.
68047         * modules/chdir-safer (Makefile.am): Likewise.
68048         * modules/check-version (Makefile.am): Likewise.
68049         * modules/chown (Makefile.am): Likewise.
68050         * modules/cloexec (Makefile.am): Likewise.
68051         * modules/close-stream (Makefile.am): Likewise.
68052         * modules/closeout (Makefile.am): Likewise.
68053         * modules/crc (Makefile.am): Likewise.
68054         * modules/cycle-check (Makefile.am): Likewise.
68055         * modules/des (Makefile.am): Likewise.
68056         * modules/dirfd (Makefile.am): Likewise.
68057         * modules/dirname (Makefile.am): Likewise.
68058         * modules/dup2 (Makefile.am): Likewise.
68059         * modules/euidaccess (Makefile.am): Likewise.
68060         * modules/exclude (Makefile.am): Likewise.
68061         * modules/exitfail (Makefile.am): Likewise.
68062         * modules/fcntl-safer (Makefile.am): Likewise.
68063         * modules/file-type (Makefile.am): Likewise.
68064         * modules/fileblocks (Makefile.am): Likewise.
68065         * modules/filemode (Makefile.am): Likewise.
68066         * modules/filenamecat (Makefile.am): Likewise.
68067         * modules/fnmatch (Makefile.am): Likewise.
68068         * modules/fopen-safer (Makefile.am): Likewise.
68069         * modules/fpending (Makefile.am): Likewise.
68070         * modules/fprintftime (Makefile.am): Likewise.
68071         * modules/free (Makefile.am): Likewise.
68072         * modules/fsusage (Makefile.am): Likewise.
68073         * modules/ftruncate (Makefile.am): Likewise.
68074         * modules/fts (Makefile.am): Likewise.
68075         * modules/gc (Makefile.am): Likewise.
68076         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68077         * modules/getaddrinfo (Makefile.am): Likewise.
68078         * modules/getcwd (Makefile.am): Likewise.
68079         * modules/getdelim (Makefile.am): Likewise.
68080         * modules/getdomainname (Makefile.am): Likewise.
68081         * modules/getgroups (Makefile.am): Likewise.
68082         * modules/gethostname (Makefile.am): Likewise.
68083         * modules/gethrxtime (Makefile.am): Likewise.
68084         * modules/getline (Makefile.am): Likewise.
68085         * modules/getloadavg (Makefile.am): Likewise.
68086         * modules/getlogin_r (Makefile.am): Likewise.
68087         * modules/getopt (Makefile.am): Likewise.
68088         * modules/getpass (Makefile.am): Likewise.
68089         * modules/getpass-gnu (Makefile.am): Likewise.
68090         * modules/getsubopt (Makefile.am): Likewise.
68091         * modules/gettime (Makefile.am): Likewise.
68092         * modules/gettimeofday (Makefile.am): Likewise.
68093         * modules/getugroups (Makefile.am): Likewise.
68094         * modules/getusershell (Makefile.am): Likewise.
68095         * modules/glob (Makefile.am): Likewise.
68096         * modules/group-member (Makefile.am): Likewise.
68097         * modules/hard-locale (Makefile.am): Likewise.
68098         * modules/hash (Makefile.am): Likewise.
68099         * modules/hmac-md5 (Makefile.am): Likewise.
68100         * modules/hmac-sha1 (Makefile.am): Likewise.
68101         * modules/human (Makefile.am): Likewise.
68102         * modules/idcache (Makefile.am): Likewise.
68103         * modules/imaxabs (Makefile.am): Likewise.
68104         * modules/imaxdiv (Makefile.am): Likewise.
68105         * modules/inet_ntop (Makefile.am): Likewise.
68106         * modules/inet_pton (Makefile.am): Likewise.
68107         * modules/inttostr (Makefile.am): Likewise.
68108         * modules/isapipe (Makefile.am): Likewise.
68109         * modules/lchown (Makefile.am): Likewise.
68110         * modules/long-options (Makefile.am): Likewise.
68111         * modules/lstat (Makefile.am): Likewise.
68112         * modules/malloc (Makefile.am): Likewise.
68113         * modules/mathl (Makefile.am): Likewise.
68114         * modules/mbchar (Makefile.am): Likewise.
68115         * modules/md2 (Makefile.am): Likewise.
68116         * modules/md4 (Makefile.am): Likewise.
68117         * modules/md5 (Makefile.am): Likewise.
68118         * modules/memcasecmp (Makefile.am): Likewise.
68119         * modules/memchr (Makefile.am): Likewise.
68120         * modules/memcmp (Makefile.am): Likewise.
68121         * modules/memcoll (Makefile.am): Likewise.
68122         * modules/memcpy (Makefile.am): Likewise.
68123         * modules/memmem (Makefile.am): Likewise.
68124         * modules/memmove (Makefile.am): Likewise.
68125         * modules/mempcpy (Makefile.am): Likewise.
68126         * modules/memrchr (Makefile.am): Likewise.
68127         * modules/memset (Makefile.am): Likewise.
68128         * modules/memxor (Makefile.am): Likewise.
68129         * modules/mkancesdirs (Makefile.am): Likewise.
68130         * modules/mkdir (Makefile.am): Likewise.
68131         * modules/mkdir-p (Makefile.am): Likewise.
68132         * modules/mkdtemp (Makefile.am): Likewise.
68133         * modules/mkstemp (Makefile.am): Likewise.
68134         * modules/mktime (Makefile.am): Likewise.
68135         * modules/modechange (Makefile.am): Likewise.
68136         * modules/mountlist (Makefile.am): Likewise.
68137         * modules/nanosleep (Makefile.am): Likewise.
68138         * modules/openat (Makefile.am): Likewise.
68139         * modules/pagealign_alloc (Makefile.am): Likewise.
68140         * modules/physmem (Makefile.am): Likewise.
68141         * modules/poll (Makefile.am): Likewise.
68142         * modules/posixtm (Makefile.am): Likewise.
68143         * modules/posixver (Makefile.am): Likewise.
68144         * modules/putenv (Makefile.am): Likewise.
68145         * modules/quote (Makefile.am): Likewise.
68146         * modules/quotearg (Makefile.am): Likewise.
68147         * modules/raise (Makefile.am): Likewise.
68148         * modules/read-file (Makefile.am): Likewise.
68149         * modules/readline (Makefile.am): Likewise.
68150         * modules/readlink (Makefile.am): Likewise.
68151         * modules/readtokens (Makefile.am): Likewise.
68152         * modules/readutmp (Makefile.am): Likewise.
68153         * modules/realloc (Makefile.am): Likewise.
68154         * modules/regex (Makefile.am): Likewise.
68155         * modules/rename (Makefile.am): Likewise.
68156         * modules/rename-dest-slash (Makefile.am): Likewise.
68157         * modules/rijndael (Makefile.am): Likewise.
68158         * modules/rmdir (Makefile.am): Likewise.
68159         * modules/rpmatch (Makefile.am): Likewise.
68160         * modules/safe-read (Makefile.am): Likewise.
68161         * modules/safe-write (Makefile.am): Likewise.
68162         * modules/same (Makefile.am): Likewise.
68163         * modules/save-cwd (Makefile.am): Likewise.
68164         * modules/savedir (Makefile.am): Likewise.
68165         * modules/setenv (Makefile.am): Likewise.
68166         * modules/settime (Makefile.am): Likewise.
68167         * modules/sha1 (Makefile.am): Likewise.
68168         * modules/sig2str (Makefile.am): Likewise.
68169         * modules/snprintf (Makefile.am): Likewise.
68170         * modules/stdlib-safer (Makefile.am): Likewise.
68171         * modules/stpcpy (Makefile.am): Likewise.
68172         * modules/stpncpy (Makefile.am): Likewise.
68173         * modules/strcase (Makefile.am): Likewise.
68174         * modules/strcasestr (Makefile.am): Likewise.
68175         * modules/strchrnul (Makefile.am): Likewise.
68176         * modules/strcspn (Makefile.am): Likewise.
68177         * modules/strdup (Makefile.am): Likewise.
68178         * modules/strerror (Makefile.am): Likewise.
68179         * modules/strftime (Makefile.am): Likewise.
68180         * modules/strndup (Makefile.am): Likewise.
68181         * modules/strnlen (Makefile.am): Likewise.
68182         * modules/strpbrk (Makefile.am): Likewise.
68183         * modules/strsep (Makefile.am): Likewise.
68184         * modules/strstr (Makefile.am): Likewise.
68185         * modules/strtod (Makefile.am): Likewise.
68186         * modules/strtoimax (Makefile.am): Likewise.
68187         * modules/strtok_r (Makefile.am): Likewise.
68188         * modules/strtol (Makefile.am): Likewise.
68189         * modules/strtoll (Makefile.am): Likewise.
68190         * modules/strtoul (Makefile.am): Likewise.
68191         * modules/strtoull (Makefile.am): Likewise.
68192         * modules/strtoumax (Makefile.am): Likewise.
68193         * modules/strverscmp (Makefile.am): Likewise.
68194         * modules/time_r (Makefile.am): Likewise.
68195         * modules/timegm (Makefile.am): Likewise.
68196         * modules/tmpfile-safer (Makefile.am): Likewise.
68197         * modules/unistd-safer (Makefile.am): Likewise.
68198         * modules/unlinkdir (Makefile.am): Likewise.
68199         * modules/userspec (Makefile.am): Likewise.
68200         * modules/utime (Makefile.am): Likewise.
68201         * modules/utimecmp (Makefile.am): Likewise.
68202         * modules/utimens (Makefile.am): Likewise.
68203         * modules/vasnprintf (Makefile.am): Likewise.
68204         * modules/vasprintf (Makefile.am): Likewise.
68205         * modules/vsnprintf (Makefile.am): Likewise.
68206         * modules/xalloc (Makefile.am): Likewise.
68207         * modules/xgetcwd (Makefile.am): Likewise.
68208         * modules/xnanosleep (Makefile.am): Likewise.
68209         * modules/xreadlink (Makefile.am): Likewise.
68210         * modules/xstrtod (Makefile.am): Likewise.
68211         * modules/xstrtol (Makefile.am): Likewise.
68212         * modules/xstrtold (Makefile.am): Likewise.
68213         * modules/yesno (Makefile.am): Likewise.
68214
68215 2006-10-12  Jim Meyering  <jim@meyering.net>
68216
68217         * m4/getloadavg.m4: Revert the change below.
68218
68219         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68220         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68221         fail with a symlink, which is what coreutils' ./bootstrap now
68222         creates by default.
68223
68224 2006-10-12  Bruno Haible  <bruno@clisp.org>
68225
68226         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68227         mingw.
68228         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68229         MSVC and mingw explicitly.
68230
68231 2006-10-11  Simon Josefsson  <jas@extundo.com>
68232             Bruno Haible  <bruno@clisp.org>
68233
68234         Add support for multiple gnulib-tool invocations in the scope of a
68235         single configure.ac file.
68236         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68237         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68238         with the same contents as the _LIBADD variable.
68239         (func_emit_initmacro_start, func_emit_initmacro_end,
68240         func_emit_initmacro_done): New functions.
68241         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68242         gl_LIBOBJS and gl_LTLIBOBJS.
68243
68244 2006-10-11  Bruno Haible  <bruno@clisp.org>
68245
68246         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68247         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68248         autoreconf. Instead, invoke autopoint explicitly but move back the
68249         *.m4 files from gnulib.
68250
68251 2006-10-11  Bruno Haible  <bruno@clisp.org>
68252
68253         * gnulib-tool (func_usage): Make module names after --create-testdir
68254         optional.
68255         (func_create_testdir): If no module was specified, use nearly all
68256         modules.
68257
68258 2006-10-12  Jim Meyering  <jim@meyering.net>
68259
68260         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68261         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68262         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68263         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68264         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68265         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68266         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68267         (fts_set_stat_required): New function.
68268         (fts_open): Defer the calls to fts_stat, if possible or requested.
68269         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68270         into fts_stat itself.
68271         (fts_read): Perform any required (deferred) fts_stat call.
68272         (fts_build): Likewise, for the directory we're about to open and read.
68273         In the readdir loop, carefully decide whether each entry will require
68274         an eventual call to fts_stat, using dirent.d_type info if available.
68275         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68276         a command line argument into this function.  Update all callers.
68277         Map a return value of FTS_DOT to FTS_D for a command line argument.
68278         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68279         Thanks to Miklos Szeredi for his tenacity and for the initial
68280         bug report about "find" failing on a FUSE-based file system.
68281
68282         * lib/fts.c (fts_open): Use consistent indentation.
68283
68284 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68285
68286         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68287         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68288         reported by Jim Meyering.  All uses of cache variables renamed
68289         to match Autoconf's.
68290         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68291         the other one.
68292
68293         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68294         Fix misspelling in diagnostic.
68295
68296 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68297
68298         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68299         defined.  Problem reported by Matthew Woehlke.
68300
68301         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68302         Add support for Tandem NonStop R series.
68303         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68304         Use new macro.
68305
68306         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68307         (has_trailing_slash): Omit size arg; all callers changed.
68308         Omit 'inline', since it doesn't help performance and we'd
68309         need to configure it.
68310         Don't count //, ///, etc. as having a trailing slash.
68311         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68312         (rpl_rename_dest_slash): On failure, use rename's errno rather
68313         than (in some cases) an incorrect or junk errno.
68314         Simplify code by removing need to compute length; this does
68315         cause it to make two passes instead of one over the file name,
68316         but it's worth it.
68317
68318         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68319         change, since Autoconf's version may no longer be appropriate now
68320         that we are using CVS Autoconf's version.  Add support for Tandem.
68321
68322 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68323             Bruno Haible  <bruno@clisp.org>
68324
68325         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68326         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68327         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68328         gl_AC_TYPE_LONG_LONG.
68329
68330         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68331         instead of HAVE_LONG_LONG.
68332         * lib/printf-args.c (printf_fetchargs): Likewise.
68333         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68334         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68335         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68336         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68337         gl_AC_TYPE_LONG_LONG.
68338
68339 2006-10-11  Bruno Haible  <bruno@clisp.org>
68340
68341         * m4/longlong.m4: Add comments.
68342         * m4/ulonglong.m4: Likewise.
68343
68344 2006-10-10  Bruno Haible  <bruno@clisp.org>
68345
68346         Make it possible to #define stpcpy, strdup to aliases.
68347         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68348         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68349
68350 2006-10-10  Bruno Haible  <bruno@clisp.org>
68351
68352         Make it possible to #define gcd to an alias.
68353         * lib/gcd.c: Include config.h.
68354
68355 2006-10-10  Bruno Haible  <bruno@clisp.org>
68356
68357         Make it possible to #define c_isascii to an alias.
68358         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68359         defined. Undefine the macros before defining them, to avoid gcc
68360         warnings.
68361         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68362         define NO_C_CTYPE_MACROS early.
68363
68364 2006-10-10  Bruno Haible  <bruno@clisp.org>
68365
68366         Make it possible to #define set_program_name to an alias.
68367         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68368         ENABLE_RELOCATABLE early.
68369
68370 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68371
68372         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68373         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68374         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68375         More generally, don't assume that 64-bit signed int is available
68376         if unsigned int is, and vice versa.
68377         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68378         unsigned symbols, not on their signed counterparts.
68379         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68380         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68381         (UINT64_C, UINTMAX_C):
68382         Likewise.
68383         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68384         unsigned counterparts.
68385         (Have_long_long, Unsigned): New macros.
68386         (Int): Renamed from INT.
68387         (strtoimax): Use the new macros.
68388         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68389         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68390         * modules/inttypes (inttypes.h): Substitute
68391         HAVE_UNSIGNED_LONG_LONG_INT.
68392         * modules/stdint (stdint.h): Likewise.
68393         (Files): Add m4/ulonglong.m4.
68394
68395 2006-10-10  Bruno Haible  <bruno@clisp.org>
68396
68397         Fix a gcc -Wshadow warning.
68398         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68399         to 'bucket'.
68400         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68401         gl_linked_indexof_from_to): Likewise.
68402         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68403         Likewise.
68404         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68405         Likewise.
68406         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68407         Reported by Eric Blake.
68408
68409 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68410
68411         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68412         for NetBSD.  Problem reported by Bruno Haible.
68413
68414 2006-10-09  Jim Meyering  <jim@meyering.net>
68415
68416         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68417         Patch from Bruno Haible.
68418
68419 2006-10-09  Jim Meyering  <jim@meyering.net>
68420
68421         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68422         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68423         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68424
68425 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68426
68427         Don't include <config.h> twice; this doesn't work in some cases,
68428         e.g., when config.h has "#define intmax_t long long int" and
68429         we include <config.h>, <inttypes.h>, <config.h> in that order.
68430         Problem reported by Matthew Woehlke in:
68431         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68432         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68433         * lib/fts-cycle.c: Don't include config.h.
68434         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68435         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68436         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68437         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68438         inttypes.h.
68439         * lib/xstrtoumax.c: Likewise.
68440         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68441         __strtol and the like, so that this module is more like its siblings.
68442         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68443         Remove; no longer needed now that we assume gnulib inttypes.h.
68444
68445 2006-10-08  Bruno Haible  <bruno@clisp.org>
68446
68447         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68448         option.
68449
68450 2006-10-07  Jim Meyering  <jim@meyering.net>
68451
68452         * modules/inttypes (inttypes.h): Revert what seems to have been
68453         an inadvertent part of today's change: use "|", not "/" in the
68454         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68455
68456 2006-10-07  Bruno Haible  <bruno@clisp.org>
68457
68458         * modules/sublist: New file.
68459
68460 2006-10-07  Bruno Haible  <bruno@clisp.org>
68461
68462         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68463         * modules/argz (argz.h): Likewise.
68464         * modules/arpa_inet (arpa/inet.h): Likewise.
68465         * modules/byteswap (byteswap.h): Likewise.
68466         * modules/configmake (configmake.h): Likewise.
68467         * modules/fcntl (fcntl.h): Likewise.
68468         * modules/fnmatch (fnmatch.h): Likewise.
68469         * modules/getopt (getopt.h): Likewise.
68470         * modules/glob (glob.h): Likewise.
68471         * modules/inttypes (inttypes.h): Likewise.
68472         * modules/netinet_in (netinet/in.h): Likewise.
68473         * modules/poll (poll.h): Likewise.
68474         * modules/stdbool (stdbool.h): Likewise.
68475         * modules/stdint (stdint.h): Likewise.
68476         * modules/sys_select (sys/select.h): Likewise.
68477         * modules/sys_socket (sys/socket.h): Likewise.
68478         * modules/sys_stat (sys/stat.h): Likewise.
68479         * modules/sysexits (sysexits.h): Likewise.
68480         * modules/unistd (unistd.h): Likewise.
68481         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68482         Add a "DO NOT EDIT" comment to the generated file.
68483         (func_import): Likewise for gnulib-comp.m4.
68484
68485 2006-10-07  Bruno Haible  <bruno@clisp.org>
68486
68487         * lib/gl_sublist.h: New file.
68488         * lib/gl_sublist.c: New file.
68489
68490 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68491
68492         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68493         name (relative to the original working directory) and the file
68494         name component (relative to the temporary working directory).  All
68495         callers changed.
68496         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68497         * lib/mkdir-p.c (make_dir_parents): Likewise.
68498         * lib/mkdir-p.h (make_dir_parents): Likewise.
68499
68500 2006-10-06  Eric Blake  <ebb9@byu.net>
68501
68502         Define several macros for use by the clean-temp module.
68503         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68504         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68505         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68506
68507         * lib/clean-temp.h (close_stream_temp): New declaration.
68508         * lib/clean-temp.c (includes): Pull in headers according to what
68509         other modules are in use.
68510         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68511
68512 2006-10-06  Bruno Haible  <bruno@clisp.org>
68513
68514         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68515         instead of fopen, fwriteerror.
68516
68517 2006-10-06  Bruno Haible  <bruno@clisp.org>
68518
68519         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68520         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68521         int.
68522         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68523         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68524         Return an error indicator.
68525         Suggested by Eric Blake.
68526
68527 2006-10-06  Bruno Haible  <bruno@clisp.org>
68528
68529         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68530         Reported by Eric Blake.
68531
68532 2006-10-06  Bruno Haible  <bruno@clisp.org>
68533
68534         * modules/closeout (Description): Mention stderr too.
68535
68536 2006-10-06  Bruno Haible  <bruno@clisp.org>
68537         and Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * lib/closeout.c (close_stdout): Also close stderr.
68540         * lib/closeout.h: Update comment.
68541
68542 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68543
68544         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68545         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68546         * lib/dirchownmod.c: Include lchown.h.
68547         * lib/lchown.c: Don't include files that lchown.h now includes.
68548         Don't declare chown, since lchown.h now does that.
68549         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68550         (lchown): Define to rpl_chown if lchown is declared but
68551         does not exist.  Declare using a prototype if lchown is not
68552         declared.  Add a copyright notice.
68553         * lib/mkstemp.h: Include <unistd.h>.
68554         * lib/openat.c: Include lchown.h.
68555
68556         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68557         we now test for that separately.
68558         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68559         rather than O_NOFOLLOW, when testing whether it's possible to
68560         avoid a race condition reliably.
68561         * lib/savewd.c (savewd_chdir): Likewise.
68562
68563         Remove macros that are no longer needed now that stdint.h is
68564         reliable.
68565         * lib/fsusage.c (UINTMAX_MAX): Remove.
68566         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68567         * lib/utimecmp.c (SIZE_MAX): Remove.
68568
68569         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68570
68571         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68572         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68573         O_NOATIME works.
68574
68575 2006-10-05  Bruno Haible  <bruno@clisp.org>
68576
68577         * lib/gl_list.h (gl_sortedlist_search_from_to,
68578         gl_sortedlist_indexof_from_to): New declarations.
68579         (gl_list_implementation): New fields sortedlist_search_from_to,
68580         sortedlist_indexof_from_to.
68581         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68582         inline functions.
68583         * lib/gl_list.c (gl_sortedlist_search_from_to,
68584         gl_sortedlist_indexof_from_to): New functions.
68585         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68586         function.
68587         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68588         (gl_array_sortedlist_search_from_to): New function.
68589         (gl_array_list_implementation): Update.
68590         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68591         function.
68592         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68593         (gl_carray_sortedlist_search_from_to): New function.
68594         (gl_carray_list_implementation): Update.
68595         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68596         gl_linked_sortedlist_indexof_from_to): New functions.
68597         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68598         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68599         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68600         gl_tree_sortedlist_indexof_from_to): New functions.
68601         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68602         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68603         Update.
68604         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68605         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68606         Update.
68607
68608 2006-10-05  Bruno Haible  <bruno@clisp.org>
68609
68610         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68611         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68612         (struct gl_list_implementation): Add fields search_from_to,
68613         indexof_from_to. Remove fields search, indexof.
68614         (gl_list_search): Use the search_from_to method.
68615         (gl_list_search_from, gl_list_search_from_to): New functions.
68616         (gl_list_indexof): Use the indexof_from_to method.
68617         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68618         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68619         (gl_list_search_from, gl_list_search_from_to): New functions.
68620         (gl_list_indexof): Use the indexof_from_to method.
68621         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68622         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68623         gl_array_indexof. Add start_index, end_index arguments.
68624         (gl_array_search_from_to): Renamed from gl_array_search. Add
68625         start_index, end_index arguments.
68626         (gl_array_remove, gl_array_list_implementation): Update.
68627         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68628         gl_carray_indexof. Add start_index, end_index arguments.
68629         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68630         start_index, end_index arguments.
68631         (gl_carray_remove, gl_carray_list_implementation): Update.
68632         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68633         gl_linked_search. Add start_index, end_index arguments.
68634         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68635         start_index, end_index arguments.
68636         (gl_linked_remove): Update.
68637         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68638         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68639         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68640         field to 'size_t'.
68641         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68642         gl_tree_search. Add start_index, end_index arguments.
68643         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68644         start_index, end_index arguments.
68645         (gl_tree_remove): Update.
68646         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68647         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68648         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68649         function.
68650         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68651         gl_tree_search. Add start_index, end_index arguments.
68652         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68653         start_index, end_index arguments.
68654         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68655         Update.
68656         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68657
68658 2006-10-05  Bruno Haible  <bruno@clisp.org>
68659
68660         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68661
68662         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68663         fwriteerror_temp): New declarations.
68664         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68665         (descriptors): New variable.
68666         (cleanup): First, close the descriptors.
68667         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68668         fclose_temp, fwriteerror_temp): New functions.
68669
68670 2006-10-04  Jim Meyering  <jim@meyering.net>
68671
68672         * lib/fts.c (fts_open): Tiny comment change.
68673
68674 2006-10-04  Bruno Haible  <bruno@clisp.org>
68675
68676         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68677         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68678         gl_LOCK_BODY.
68679         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68680         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68681         gl_LOCK_EARLY_BODY.
68682         (gl_LOCK): Require gl_LOCK_BODY.
68683
68684 2006-10-04  Bruno Haible  <bruno@clisp.org>
68685
68686         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68687         (gl_oset_search_atleast): New declaration.
68688         (struct gl_oset_implementation): Add field 'search_atleast'.
68689         (gl_oset_search_atleast): New inline function.
68690         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68691         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68692         (gl_array_oset_implementation): Update.
68693         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68694         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68695         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68696
68697 2006-10-04  Bruno Haible  <bruno@clisp.org>
68698
68699         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68700
68701 2006-10-03  Bruno Haible  <bruno@clisp.org>
68702
68703         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68704         from gl_avltreehash_list_implementation.
68705
68706 2006-10-03  Bruno Haible  <bruno@clisp.org>
68707
68708         * lib/gl_oset.c (gl_oset_add): Fix return type.
68709
68710 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68711
68712         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68713
68714 2006-10-02  Eric Blake  <ebb9@byu.net>
68715
68716         * modules/strnlen (Depends-on): Add extensions.
68717
68718 2006-10-02  Eric Blake  <ebb9@byu.net>
68719
68720         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68721         definition in 2.60+.
68722
68723 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68724
68725         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68726         checks.
68727
68728 2006-10-02  Bruno Haible  <bruno@clisp.org>
68729
68730         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68731         to the AUTOMAKE_OPTIONS.
68732         Reported by Jim Meyering.
68733
68734 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68735
68736         Work around bug in Solaris 10 /proc file system:
68737         /proc/self/fd/NNN/.. isn't the parent directory of
68738         the directory whose file descriptor is NNN.  This needs to
68739         be worked around at run time, not compile time, since a
68740         program might be built on Solaris 8, where things work, and
68741         run on Solaris 10.
68742         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68743         to use the following interface instead:
68744         (OPENAT_BUFFER_SIZE): New macro.
68745         (openat_proc_name): New function.
68746         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68747         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68748         Likewise.
68749         * lib/openat-proc.c: New file.
68750         * modules/openat (Files): Add lib/openat-proc.c.
68751         (Depends-on): Add same-inode, stdbool.
68752         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68753
68754 2006-09-29  Bruno Haible  <bruno@clisp.org>
68755
68756         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68757         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68758         argument. Set stdout_closed before testing for ferror, not after.
68759         (fwriteerror, fwriteerror_no_ebadf): New functions.
68760
68761 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68762
68763         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68764
68765 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68766
68767         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68768         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68769
68770 2006-09-28  Jim Meyering  <jim@meyering.net>
68771
68772         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68773         Include <unistd.h>.
68774
68775 2006-09-28  Bruno Haible  <bruno@clisp.org>
68776
68777         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68778         * modules/linkedhash-list (Depends-on): Likewise.
68779         * modules/rbtreehash-list (Depends-on): Likewise.
68780
68781 2006-09-28  Bruno Haible  <bruno@clisp.org>
68782
68783         * lib/strndup.h: Simplify the redefinition of strndup.
68784         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68785         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68786
68787 2006-09-28  Bruno Haible  <bruno@clisp.org>
68788
68789         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68790         * lib/gl_linkedhash_list.c: Likewise.
68791         * lib/gl_rbtreehash_list.c: Likewise.
68792
68793 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68796         getaddrinfo.
68797
68798         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68799         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68800         it causes <stdio_ext.h> to cause a compile-time error.
68801         Problem reported by Nelson H. F. Beebe.
68802         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68803         of HAVE_DECL___PENDING.
68804
68805         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68806         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68807         declaration.
68808
68809 2006-09-27  Jim Meyering  <jim@meyering.net>
68810
68811         This file could end up with a definition for a function
68812         named __strndup, rather than rpl_strndup on a system with
68813         incomplete weak_alias support.
68814         * lib/strndup.c (strndup): Rename from __strndup.
68815         Remove #defines that used to map __strndup to strndup.
68816         Don't use K&R prototypes.
68817         Remove LIBC-related code, since this file is not sync'd with glibc.
68818         * lib/strndup.h: Revamp, accordingly.
68819         * m4/strndup.m4: Modernize.
68820
68821 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68822
68823         * modules/savewd (Depends-on): Add 'raise'.
68824         * lib/savewd.c: Include <signal.h>, for 'raise'.
68825
68826 2006-09-26  Jim Meyering  <jim@meyering.net>
68827
68828         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68829         when we detect Darwin 8.7.0's acl_get_file bug.
68830         Rearrange to perform the new (below) run-test while $LIBS
68831         contains any acl-related library.  Set USE_ACL at the end.
68832         (gl_ACL_GET_FILE): New function.
68833
68834 2006-09-26  Eric Blake  <ebb9@byu.net>
68835
68836         * lib/verror.c: Include <config.h> unconditionally.
68837
68838 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68839
68840         * modules/clock-time (Maintainer): Add self.
68841         * modules/getlogin_r (Depends-on): Add extensions.
68842
68843 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68844
68845         * modules/clock-time: New module.
68846         * modules/nanosleep (Depends-on): Add clock-time.
68847         * modules/gethrxtime (Depends-on): Likewise.
68848         * modules/gettime (Depends-on): Likewise.
68849         * modules/settime (Depends-on): Likewise.
68850
68851         * modules/fts-lgpl: Depend on openat.
68852         * modules/mkancesdirs: Depend on savewd.
68853         * modules/mkdir-p: Likewise.
68854
68855 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68856
68857         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68858
68859         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68860         `gl_have_arbitrary_file_name_length_limit' to
68861         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68862         actually works between configure runs.
68863
68864 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68865             Bruno Haible  <bruno@clisp.org>
68866
68867         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68868
68869 2006-09-25  Jim Meyering  <jim@meyering.net>
68870
68871         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68872         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68873
68874 2006-09-25  Eric Blake  <ebb9@byu.net>
68875
68876         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68877         exec's in 2006-09-18 patch when shuffling fds.
68878
68879 2006-09-25  Bruno Haible  <bruno@clisp.org>
68880
68881         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68882         Reported by Jim Meyering.
68883
68884 2006-09-24  Jim Meyering  <jim@meyering.net>
68885
68886         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68887         compare a pointer against a literal "0".  That caused failures with
68888         at least HP-UX's hpcc.
68889
68890 2006-09-22  Simon Josefsson  <jas@extundo.com>
68891
68892         * modules/gc-sha1:
68893         * modules/gc-md4:
68894         * modules/gc-hmac-sha1:
68895         * modules/gc-hmac-md5:
68896         * modules/gc-des:
68897         * modules/gc-arcfour: Distribute more files.
68898
68899 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68900
68901         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68902         (gl_linked_iterator_from_to): Initialize struct completely.
68903         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68904         (gl_tree_iterator_from_to): Likewise
68905         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68906         * lib/gl_array_list.c [lint] (gl_array_iterator)
68907         (gl_array_iterator_from_to): Likewise.
68908         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68909         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68910         (gl_carray_iterator_from_to): Likewise.
68911
68912         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68913         * lib/md4.c (md4_process_block): Remove unused variable.
68914         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68915         parentheses for clarity.
68916
68917 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68918
68919         * modules/bison-i18n (Depends-on): Add gettext.
68920
68921 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68922
68923         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68924         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68925         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68926         also add missing comma that caused broken test.
68927         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68928         stdlib.h, for `abort'.
68929         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68930         variables.
68931         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68932         include unistd.h if present, for `rmdir'.
68933         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68934         variables.
68935         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68936         in the process include standard headers for prototypes.
68937         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68938         gets declared on GNU/Linux.
68939         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68940         unistd.h, for `rmdir'.
68941         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68942
68943         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68944         always true.
68945         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68946
68947         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68948
68949 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68950
68951         * gnulib-tool (func_version): Create output all at once.  This
68952         may help avoid triggering unnecessary SIGPIPEs, and at any
68953         rate it doesn't hurt.
68954
68955 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68956             Bruno Haible  <bruno@clisp.org>
68957
68958         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68959         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68960         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68961
68962         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68963         (gl_FUNC_VASPRINTF): Invoke it.
68964
68965 2006-09-22  Bruno Haible  <bruno@clisp.org>
68966
68967         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68968         getloadavg.c as first argument.
68969
68970 2006-09-22  Bruno Haible  <bruno@clisp.org>
68971
68972         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68973         at the beginning of the gl_INIT macro.
68974         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68975         gl_GETLOADAVG.
68976
68977 2006-09-22  Bruno Haible  <bruno@clisp.org>
68978
68979         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68980         module.
68981         Suggested by Ralf Wildenhues.
68982
68983 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68984
68985         Import this patch from libc:
68986
68987         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68988
68989         * lib/regex_internal.c (re_string_reconstruct): Handle
68990         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68991         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68992         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68993         re_string_context_at.
68994
68995         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68996         now requires it.
68997         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68998         gl_REGEX now does it for us.
68999         (gl_REGEX): Add test taken from
69000         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69001
69002         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69003         Check that large offsets work.  Modernize Autoconf usages.
69004         Prefer "yes" to mean a good thing rather than a bad.
69005         Don't put "#define mkstemp" in config.h, as this might interfere
69006         with standard system headers that "#define mkstemp mkstemp64".
69007
69008         * modules/mkstemp (Depends-on): Add extensions, so that
69009         mkstemp is visible on some platforms.
69010         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69011         (Include): Change to "mkstemp.h" from <stdlib.h>.
69012         (Files): Add mkstemp.h.
69013
69014         * lib/mkstemp.h: New file, since some standard headers
69015         #define mkstemp.
69016         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69017         Include "mkstemp.h".
69018         Make the _LIBC code resemble glibc original more,
69019         e.g., use K&R style.
69020         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69021         (mkstemp): Remove, since mkstemp.h does this for us.
69022         * lib/stdlib--.h: Include mkstemp.h.
69023
69024         Import this patch from libc:
69025
69026         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69027
69028         * lib/tempname.c (__gen_tempname): Change attempts_min
69029         into a macro.  Use preprocessor to decide how to initialize
69030         attempts [Coverity CID 67].
69031
69032 2006-09-20  Bruno Haible  <bruno@clisp.org>
69033
69034         * lib/mkdtemp.c: Import from libc.
69035         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69036                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69037                 attempts_min into a macro.  Use preprocessor to decide how to
69038                 initialize attempts [Coverity CID 67].
69039         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69040                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69041                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69042
69043 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69044
69045         * gnulib-tool (func_exit): New function, to allow to pass the
69046         exit status portably through the trap.  Use everywhere.
69047         (--help, --version): Signal a write error.
69048         (trap): catch SIGPIPE, for write errors.
69049         Exit at the end of the trap, with the correct exit status.
69050
69051 2006-09-19  Karl Berry  <karl@gnu.org>
69052
69053         * doc/gnulib.texi: note about the license texinfo files.
69054
69055 2006-09-19  Eric Blake  <ebb9@byu.net>
69056
69057         * gnulib-tool: Avoid space-tab.
69058
69059 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69060
69061         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69062         that prevented coreutils 6.1 from building.  Problem reported
69063         by Petter Reinholdtsen.
69064
69065 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69066
69067         * gnulib-tool (avoidlist): Fix typo that broke options like
69068         --avoid=lock that are used by coreutils bootstrap.
69069
69070 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69071
69072         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69073         more systematically.
69074
69075 2006-09-18  Jim Meyering  <jim@meyering.net>
69076
69077         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69078
69079 2006-09-18  Bruno Haible  <bruno@clisp.org>
69080
69081         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69082
69083 2006-09-18  Bruno Haible  <bruno@clisp.org>
69084
69085         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69086         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69087         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69088         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69089         * m4/gettext.m4: Require autoconf >= 2.52.
69090         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69091         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69092         of gl_cv_header_inttypes_h.
69093
69094 2006-09-18  Bruno Haible  <bruno@clisp.org>
69095
69096         * lib/javaversion.c: Include configmake.h.
69097
69098 2006-09-18  Bruno Haible  <bruno@clisp.org>
69099
69100         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69101         avoid that the while loops be executed in a subshell.
69102
69103 2006-09-18  Bruno Haible  <bruno@clisp.org>
69104
69105         * MODULES.html.sh (func_module): Break long lines.
69106         Suggested by Bruce Korb <bkorb@gnu.org>.
69107
69108 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69109
69110         Speed up by a factor of 1.12.
69111         * gnulib-tool (nl): New variable.
69112         (func_import): Rewrite include directive extraction to only read each
69113         directive once.
69114
69115 2006-09-17  Bruno Haible  <bruno@clisp.org>
69116
69117         * modules/javaversion (Makefile.am): Remove DEFS setting.
69118         (Depends-on): Add configmake, for PKGDATADIR definition.
69119
69120 2006-09-17  Bruno Haible  <bruno@clisp.org>
69121
69122         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69123
69124 2006-09-17  Bruno Haible  <bruno@clisp.org>
69125
69126         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69127         (func_modules_transitive_closure, func_modules_add_dummy,
69128         func_modules_to_filelist, func_import, func_create_testdir,
69129         func_create_megatestdir, ...): Use it wherever possible.
69130         Suggested by Ralf Wildenhues.
69131
69132 2006-09-16  Karl Berry  <karl@gnu.org>
69133
69134         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69135         to avoid sectioning errors.
69136         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69137         [ifinfo]: blank line after @center-ed titles.
69138         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69139         Spell FSF address consistently with others.
69140         (These changes approved by rms.)
69141
69142 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69143
69144         Speed up by a factor of 1.61.
69145         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69146         already checked module names again.
69147
69148 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69149
69150         Speed up by a factor of 1.13.
69151         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69152         for new_files, and the input to func_add_or_update.
69153
69154 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69155
69156         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69157         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69158
69159 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * modules/mkancesdirs (Depends-on): Add fcntl.
69162         * modules/savewd: New file.
69163         * MODULES.html.sh (File system functions): Add savewd.
69164
69165         * modules/configmake (Makefile.am): Add support for the
69166         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69167
69168 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69169
69170         * m4/savewd.m4: New file.
69171
69172 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69175         (dirchownmod): New arg FD.  All callers changed.
69176         Use FD rather than opening the directory ourself, as opening is
69177         now the caller's responsibility.
69178         * lib/dirchownmod.h: Likewise.
69179         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69180         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69181         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69182         (test_dir): Remove.
69183         (mkancesdirs): Return length of prefix of FILE that has already
69184         been made, or -2 if there is a child doing the work.  Redo
69185         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69186         ".", and treat ".." specially since it might stray back into
69187         already-created areas.  Use a subprocess if necessary.  New arg
69188         WD; all users changed.  MAKE_DIR function should now return 1
69189         if it creates a directory that is not readable.  Return -2 if
69190         a child process is spun off.
69191         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69192         Adjust signature to match code.
69193         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69194         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69195         all users changed.
69196         * lib/savewd.c, lib/savewd.h: New files.
69197
69198 2006-09-15  Jim Meyering  <jim@meyering.net>
69199
69200         * modules/rename-dest-slash: New module.
69201         * MODULES.html.sh (posix_compat): Add it here.
69202
69203         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69204
69205 2006-09-15  Jim Meyering  <jim@meyering.net>
69206
69207         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69208         file.
69209
69210         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69211
69212 2006-09-15  Jim Meyering  <jim@meyering.net>
69213
69214         * lib/rename-dest-slash.c (has_trailing_slash): Use
69215         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69216         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69217         test before testing whether SRC is a directory.
69218         Suggestions from Bruno Haible.
69219
69220         Avoid a warning about an unused variable.
69221         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69222         into the #ifdef block where it's used.
69223
69224         * lib/rename-dest-slash.c: New file.
69225
69226 2006-09-14  Bruno Haible  <bruno@clisp.org>
69227
69228         * lib/allocsa.c: Include <config.h> unconditionally.
69229         * lib/asnprintf.c: Likewise.
69230         * lib/asprintf.c: Likewise.
69231         * lib/c-strcasecmp.c: Likewise.
69232         * lib/c-strcasestr.c: Likewise.
69233         * lib/c-strncasecmp.c: Likewise.
69234         * lib/c-strstr.c: Likewise.
69235         * lib/classpath.c: Likewise.
69236         * lib/clean-temp.c: Likewise.
69237         * lib/concatpath.c: Likewise.
69238         * lib/copy-file.c: Likewise.
69239         * lib/csharpcomp.c: Likewise.
69240         * lib/csharpexec.c: Likewise.
69241         * lib/execute.c: Likewise.
69242         * lib/fatal-signal.c: Likewise.
69243         * lib/findprog.c: Likewise.
69244         * lib/fwriteerror.c: Likewise.
69245         * lib/gl_array_list.c: Likewise.
69246         * lib/gl_array_oset.c: Likewise.
69247         * lib/gl_avltree_list.c: Likewise.
69248         * lib/gl_avltree_oset.c: Likewise.
69249         * lib/gl_avltreehash_list.c: Likewise.
69250         * lib/gl_carray_list.c: Likewise.
69251         * lib/gl_linked_list.c: Likewise.
69252         * lib/gl_linkedhash_list.c: Likewise.
69253         * lib/gl_list.c: Likewise.
69254         * lib/gl_oset.c: Likewise.
69255         * lib/gl_rbtree_list.c: Likewise.
69256         * lib/gl_rbtree_oset.c: Likewise.
69257         * lib/gl_rbtreehash_list.c: Likewise.
69258         * lib/imaxabs.c: Likewise.
69259         * lib/imaxdiv.c: Likewise.
69260         * lib/javacomp.c: Likewise.
69261         * lib/javaexec.c: Likewise.
69262         * lib/javaversion.c: Likewise.
69263         * lib/linebreak.c: Likewise.
69264         * lib/localcharset.c: Likewise.
69265         * lib/lock.c: Likewise.
69266         * lib/mbchar.c: Likewise.
69267         * lib/mbswidth.c: Likewise.
69268         * lib/mkdtemp.c: Likewise.
69269         * lib/pipe.c: Likewise.
69270         * lib/printf-args.c: Likewise.
69271         * lib/printf-parse.c: Likewise.
69272         * lib/progname.c: Likewise.
69273         * lib/progreloc.c: Likewise.
69274         * lib/readlink.c: Likewise.
69275         * lib/sh-quote.c: Likewise.
69276         * lib/stpcpy.c: Likewise.
69277         * lib/stpncpy.c: Likewise.
69278         * lib/strcasecmp.c: Likewise.
69279         * lib/strcasestr.c: Likewise.
69280         * lib/strcspn.c: Likewise.
69281         * lib/striconv.c: Likewise.
69282         * lib/strncasecmp.c: Likewise.
69283         * lib/strnlen1.c: Likewise.
69284         * lib/strstr.c: Likewise.
69285         * lib/strtok_r.c: Likewise.
69286         * lib/tls.c: Likewise.
69287         * lib/tmpdir.c: Likewise.
69288         * lib/unicodeio.c: Likewise.
69289         * lib/unsetenv.c: Likewise.
69290         * lib/vasnprintf.c: Likewise.
69291         * lib/vasprintf.c: Likewise.
69292         * lib/wait-process.c: Likewise.
69293         * lib/xallocsa.c: Likewise.
69294         * lib/xsetenv.c: Likewise.
69295         * lib/xstriconv.c: Likewise.
69296
69297 2006-09-13  Simon Josefsson  <jas@extundo.com>
69298
69299         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69300         that internally, suggested by Ralf Wildenhues
69301         <Ralf.Wildenhues@gmx.de>.
69302
69303 2006-09-13  Simon Josefsson  <jas@extundo.com>
69304
69305         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69306         @LIBOBJS@.
69307         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69308
69309 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69310
69311         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69312         longer worry about uses that don't define HAVE_CONFIG_H.
69313         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69314         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69315         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69316         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69317         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69318         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69319         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69320         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69321         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69322         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69323         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69324         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69325         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69326         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69327         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69328         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69329         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69330         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69331         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69332         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69333         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69334         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69335         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69336         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69337         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69338         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69339         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69340         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69341         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69342         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69343         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69344         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69345         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69346         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69347         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69348         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69349         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69350         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69351         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69352         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69353         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69354         Likewise.
69355
69356 2006-09-13  Eric Blake  <ebb9@byu.net>
69357
69358         * lib/getopt.c: Fix typo in last commit.
69359
69360 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69361
69362         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69363         dgettext.
69364
69365 2006-09-12  Jim Meyering  <jim@meyering.net>
69366
69367         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69368         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69369         Reported by Nelson H. F. Beebe.
69370
69371 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69372
69373         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69374         program_invocation_name and program_invocation_short_name are
69375         initialized.
69376         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69377         and program_invocation_short_name to argp.h, so they are visible
69378         to user programs.
69379         * lib/argp.h: Likewise
69380
69381 2006-09-10  Bruno Haible  <bruno@clisp.org>
69382
69383         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69384         m4/inttypes_h.m4, m4/uintmax_t.m4.
69385
69386 2006-09-10  Bruno Haible  <bruno@clisp.org>
69387
69388         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69389         gl_AC_TYPE_UINTMAX_T.
69390
69391 2006-09-10  Bruno Haible  <bruno@clisp.org>
69392
69393         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69394
69395 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69396
69397         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69398         convention.  Text proposed by Bruno Haible.
69399         (struct argp_option): Document the use of N_() wrappers.
69400
69401         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69402         '\v', and translate the two parts separately, instead of feeding
69403         the whole string to gettext.  This allows to exclude
69404         '\v' from the strings visible to the translator by writing doc
69405         strings as N_("..") "\v" N_("..").
69406
69407 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69408
69409         * config/srclist.txt: Undo latest change; the bug was fixed.
69410
69411 2006-09-09  Bruno Haible  <bruno@clisp.org>
69412
69413         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69414         assignments if building a library without libtool.
69415         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69416         in func_emit_lib_Makefile_am.
69417         (func_import): When building a static library libfoo.a, arrange to
69418         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69419         (func_create_testdir): Likewise.
69420         * modules/gc (configure.ac, Makefile.am): If building statically,
69421         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69422         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69423         * modules/striconv (configure.ac, Makefile.am): Likewise.
69424         Based on a suggestion by Ralf Wildenhues.
69425
69426 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69427
69428         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69429         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69430         Also:
69431
69432         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69433         Add year_2050_test to catch glibc bug 2821
69434         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69435
69436         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69437         Prefer #ifdef to #if.
69438
69439         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69440         Return from 'main' instead of calling 'exit'.
69441
69442 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69443
69444         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69445         returned the maximum time_t value rather than (time_t) -1.
69446         Problem originally reported by William Bardwell
69447         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69448
69449         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69450         Moved to here ...
69451         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69452         ... from here.
69453
69454 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69457         2821 is fixed.
69458
69459 2006-09-08  Jim Meyering  <jim@meyering.net>
69460
69461         Don't make generated files read-only.  That would bother too many
69462         people.  However, do retain the ability to work when targets are
69463         read-only: remove the destination and temporary files before writing
69464         them (when generated via sed or echo), or by using the -f option for
69465         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69466         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69467         * modules/byteswap, modules/configmake, modules/fcntl:
69468         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69469         * modules/localcharset, modules/netinet_in, modules/poll:
69470         * modules/stdbool, modules/stdint, modules/sys_select:
69471         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69472
69473 2006-09-08  Jim Meyering  <jim@meyering.net>
69474
69475         Avoid new build failure on FreeBSD 6.0.
69476         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69477         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69478         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69479
69480 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69481
69482         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69483
69484 2006-09-07  Jim Meyering  <jim@meyering.net>
69485
69486         Fix global typo in last change: use chmod u-w, not chmod u-x.
69487         Spotted by Paul Eggert and Bruce Korb.
69488         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69489         * modules/byteswap, modules/configmake, modules/fcntl:
69490         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69491         * modules/localcharset, modules/netinet_in, modules/poll:
69492         * modules/stdbool, modules/stdint, modules/sys_select:
69493         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69494
69495 2006-09-06  Jim Meyering  <jim@meyering.net>
69496
69497         Make generated files be read-only.
69498         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69499         Ensure that each generated file is now read-only.
69500         * modules/argz: Likewise.
69501         * modules/arpa_inet: Likewise.
69502         * modules/byteswap: Likewise.
69503         * modules/configmake: Likewise.
69504         * modules/fcntl: Likewise.
69505         * modules/fnmatch: Likewise.
69506         * modules/getopt: Likewise.
69507         * modules/glob: Likewise.
69508         * modules/inttypes: Likewise.
69509         * modules/netinet_in: Likewise.
69510         * modules/poll: Likewise.
69511         * modules/stdbool: Likewise.
69512         * modules/stdint: Likewise.
69513         * modules/sys_select: Likewise.
69514         * modules/sys_socket: Likewise.
69515         * modules/sys_stat: Likewise.
69516         * modules/sysexits: Likewise.
69517         * modules/localcharset: Same as above, but continue using temporary
69518         file named "t-$@" (why different?) rather than the "$@-t" used
69519         everywhere else.
69520
69521         * modules/sysexits (Makefile.am): Replace literal occurrences
69522         of "sysexit.h" more readable, and more consistent, "$@".
69523
69524 2006-09-06  Bruno Haible  <bruno@clisp.org>
69525
69526         * modules/striconv: New file.
69527         * modules/xstriconv: New file.
69528         * MODULES.html.sh (Internationalization functions): Add striconv,
69529         xstriconv.
69530
69531 2006-09-06  Bruno Haible  <bruno@clisp.org>
69532
69533         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69534         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69535         not using libtool correctly.
69536
69537 2006-09-06  Bruno Haible  <bruno@clisp.org>
69538
69539         * lib/striconv.h: New file.
69540         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69541         iconvstring.c.
69542         * lib/xstriconv.h: New file.
69543         * lib/xstriconv.c: New file.
69544
69545 2006-09-06  Bruno Haible  <bruno@clisp.org>
69546
69547         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69548         lib_..._LDFLAGS.
69549
69550 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69551
69552         * lib/argz_.h: Sync from Libtool.
69553
69554         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69555                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69556
69557         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69558
69559 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69560
69561         * modules/trim: New file.
69562
69563 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69564
69565         * lib/trim.h: New file.
69566         * lib/trim.c: New file.
69567
69568 2006-09-05  Bruno Haible  <bruno@clisp.org>
69569
69570         * MODULES.html.sh (String handling): Add trim.
69571
69572 2006-09-04  Karl Berry  <karl@gnu.org>
69573
69574         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69575         until next release.
69576
69577 2006-09-03  Bruno Haible  <bruno@clisp.org>
69578
69579         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69580         correctly.
69581
69582 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69585         not gl_GETLOADAVG.  Omit unneeded semicolons.
69586         Problems reported by Ralf Wildenhues in
69587         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69588         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69589         at the end, which is the usual gnulib style.
69590
69591         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69592         of doing all the work ourselves.
69593         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69594         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69595
69596 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69597
69598         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69599         Problem reported by Ralf Wildenhues in
69600         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69601
69602         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69603         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69604
69605 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69608         yesterday's patch by changing test -n to test -z.
69609
69610 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69611
69612         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69613         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69614         the former is now obsolescent.
69615
69616         * modules/chdir-long (Depends-on): Add fcntl.
69617
69618 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69619
69620         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69621         obsolescent, and programs should use gnulib instead.
69622         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69623         but with prefixes changed.
69624
69625 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69626
69627         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69628         or stdbool.h, because they might not exist while configuring.
69629
69630         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69631         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69632         does that for us.
69633         (O_DIRECTORY): Remove.
69634
69635 2006-08-31  Eric Blake  <ebb9@byu.net>
69636
69637         * gnulib-tool: Don't let emacs change spaces to TAB.
69638
69639 2006-08-31  Bruno Haible  <bruno@clisp.org>
69640
69641         * gnulib-tool: When calling func_import more than once, do it in a
69642         subshell.
69643         Reported by Eric Blake <ebb9@byu.net>.
69644
69645 2006-08-31  Bruno Haible  <bruno@clisp.org>
69646
69647         * gnulib-tool (nl): Remove variable.
69648         (sed_transform_lib_file): Use more robust test for config-h module.
69649         (func_import): Fix typo in 2006-08-25 patch.
69650
69651 2006-08-31  Bruno Haible  <bruno@clisp.org>
69652
69653         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69654         specified, augment Makefile.am variables instead of assigning them.
69655
69656 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69657
69658         Work around a bug in both the Linux and SunOS 64-bit kernels:
69659         nanosleep mishandles sleeps for longer than 2**31 seconds.
69660         Problem reported by Frank v Waveren in
69661         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69663         Check for nanosleep bug.
69664         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69665
69666 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69667
69668         Work around a bug in both the Linux and SunOS 64-bit kernels:
69669         nanosleep mishandles sleeps for longer than 2**31 seconds.
69670         Problem reported by Frank v Waveren in
69671         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69672         * lib/nanosleep.c (BILLION): New constant.
69673         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69674         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69675         implementation.
69676
69677 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         * modules/nanosleep (Depends-on): Add gettime.
69680
69681 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69682         and Simon Josefsson  <jas@extundo.com>
69683         and Oskar Liljeblad  <oskar@osk.mine.nu>
69684
69685         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69686         * gnulib-tool (func_import): New license type 'unmodifiable license
69687         text'.
69688         * modules/fdl: Use it.  Longer description.
69689         * module/gpl, module/lgpl: New files.
69690
69691 2006-08-30  Jim Meyering  <jim@meyering.net>
69692
69693         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69694         shadowing the parameter.
69695
69696 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69697
69698         Sync from Libtool:
69699
69700         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69701
69702         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69703         sharing with gnulib.  Report by Eric Blake.
69704
69705 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69706
69707         * modules/isapipe: New file.
69708         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69709
69710 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         * modules/configmake (Makefile.am): Add a comment, and omit
69713         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69714         by Bruno Haible.
69715
69716 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69717
69718         * m4/isapipe.m4: New file.
69719
69720 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69721
69722         * lib/isapipe.c, lib/isapipe.h: New files.
69723
69724 2006-08-29  Jim Meyering  <jim@meyering.net>
69725
69726         * modules/configmake (Makefile.am): Make configmake.h depend on
69727         Makefile.  Otherwise, a stale configmake.h could hang around.
69728
69729 2006-08-29  Eric Blake  <ebb9@byu.net>
69730
69731         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69732         resolution of upstream bug 3044.
69733
69734 2006-08-29  Bruno Haible  <bruno@clisp.org>
69735
69736         * modules/localcharset (Depends-on): Add configmake.
69737         (Makefile.am): Remove setting of LIBDIR through DEFS.
69738
69739 2006-08-29  Bruno Haible  <bruno@clisp.org>
69740
69741         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69742         defined.
69743
69744 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69745
69746         * modules/fcntl: New file.
69747         * modules/chdir-safer (Depends-on): Add fcntl.
69748         * modules/fts: Likewise.
69749         * modules/mkdir-p: Likewise.
69750
69751         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69752         This undoes the most recent change, since we're now addressing the
69753         problem in a different way.
69754
69755         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69756         into output, since the output might be called Makefile.am even
69757         if $makefile_name is something different.
69758         (func_import): Use $makefile_am rather than
69759         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69760         empty.
69761
69762         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69763
69764 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69765
69766         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69767         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69768         recent change to stdint.m4, since we're now addressing the problem in a
69769         different way.
69770
69771 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69772
69773         * m4/fcntl_h.m4: New file.
69774
69775 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69776
69777         * lib/fcntl_.h: New file.
69778         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69779         the fcntl module.
69780         * lib/dirchownmod.c: Likewise.
69781         * lib/fts.c: Likewise.
69782
69783         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69784         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69785         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69786         just before including <inttypes.h>, to avoid circular inclusion.
69787
69788 2006-08-28  Jim Meyering  <jim@meyering.net>
69789
69790         * doc/visibility.texi: Actually read and correct the grammar of the
69791         sentence affected by yesterday's change.
69792
69793 2006-08-28  Eric Blake  <ebb9@byu.net>
69794
69795         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69796         needs wrapper.
69797
69798 2006-08-28  Eric Blake  <ebb9@byu.net>
69799
69800         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69801
69802 2006-08-28  Eric Blake  <ebb9@byu.net>
69803
69804         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69805
69806 2006-08-28  Bruno Haible  <bruno@clisp.org>
69807
69808         * modules/c-strstr: New file, from GNU gettext.
69809         * MODULES.html.sh (String handling): Add c-strstr.
69810
69811 2006-08-28  Bruno Haible  <bruno@clisp.org>
69812
69813         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69814         macros.
69815         Reported by Eric Blake.
69816
69817 2006-08-28  Bruno Haible  <bruno@clisp.org>
69818
69819         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69820         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69821         * lib/vasprintf.c: Include errno.h, limits.h.
69822         (EOVERFLOW): New fallback definition.
69823         (vasprintf): Test here whether the string length is > INT_MAX.
69824         * lib/vsnprintf.c: Include errno.h, limits.h.
69825         (EOVERFLOW): New fallback definition.
69826         (vsnprintf): Fix bug when generated string was too long for the buffer.
69827         Test here whether the string length is > INT_MAX.
69828
69829 2006-08-28  Bruno Haible  <bruno@clisp.org>
69830
69831         * lib/inttypes_.h (SCNX*): Remove definitions.
69832         Reported by Eric Blake.
69833
69834 2006-08-28  Bruno Haible  <bruno@clisp.org>
69835
69836         * lib/c-strstr.h: New file, from GNU gettext.
69837         * lib/c-strstr.c: New file, from GNU gettext.
69838
69839 2006-08-28  Bruno Haible  <bruno@clisp.org>
69840
69841         * gnulib-tool: Reorder some statements.
69842
69843 2006-08-28  Bruno Haible  <bruno@clisp.org>
69844
69845         * gnulib-tool: New option --makefile-name.
69846         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69847         $makefile_name.
69848         (func_import): Write $makefile_name to the cache file, and read it from
69849         there unless explicitly specified. Use $makefile_name as file name
69850         instead of Makefile.am. Adjust the recommendations accordingly.
69851
69852 2006-08-28  Bruno Haible  <bruno@clisp.org>
69853
69854         * gnulib-tool (func_verify_module): Check against misapplying patch.
69855
69856 2006-08-28  Bruno Haible  <bruno@clisp.org>
69857
69858         * gnulib-tool (func_relativize, func_relconcat): New functions.
69859         Give an error if --local-dir is given with --update.
69860         Remove trailing slashes from $local_gnulib_dir.
69861         (func_import): Store the relativized $local_gnulib_dir in
69862         gnulib-cache.m4, and read it from there if not specified explicitly.
69863
69864 2006-08-28  Bruno Haible  <bruno@clisp.org>
69865
69866         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69867         is the current directory. Respect also $local_gnulib_dir.
69868
69869 2006-08-28  Bruno Haible  <bruno@clisp.org>
69870             Simon Josefsson  <jas@extundo.com>
69871
69872         BeOS portability.
69873         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69874
69875 2006-08-27  Jim Meyering  <jim@meyering.net>
69876
69877         * doc/visibility.texi: Remove duplicate word: "pointer".
69878
69879 2006-08-26  Bruno Haible  <bruno@clisp.org>
69880
69881         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69882         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69883         (Makefile.am): Create inttypes.h from inttypes_.h.
69884         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69885
69886         * modules/imaxabs: New file.
69887
69888         * modules/imaxdiv: New file.
69889
69890 2006-08-26  Bruno Haible  <bruno@clisp.org>
69891
69892         * m4/inttypes.m4: New file.
69893         * m4/_inttypes_h.m4: Remove file.
69894         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69895         PRI_MACROS_BROKEN.
69896         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69897
69898         * m4/imaxabs.m4: New file.
69899
69900         * m4/imaxdiv.m4: New file.
69901
69902 2006-08-26  Bruno Haible  <bruno@clisp.org>
69903
69904         * lib/inttypes_.h: New file.
69905         * lib/inttypes.h: Remove file.
69906         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69907
69908         * lib/imaxabs.c: New file.
69909
69910         * lib/imaxdiv.c: New file.
69911
69912 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69913
69914         New config-h module, so that "make" output needn't be cluttered
69915         by -DHAVE_CONFIG_H.
69916         * MODULES.html.sh (Support for building libraries and executables):
69917         Add config-h.
69918         * modules/config-h: New file.
69919         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69920         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69921         the config-h module is used.
69922
69923         New configmake module, so that "make" output needn't be cluttered
69924         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69925         * MODULES.html.sh (Support for building libraries and executables):
69926         Add configmake.
69927         * modules/configmake: New file.
69928
69929 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69930
69931         * m4/config-h.m4: New file.
69932
69933 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69934
69935         * config/srclist.txt: Add elisp-comp.
69936
69937 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         * MODULES.html.sh (Support for building libraries and executables):
69940         Add elisp-comp.
69941         * build-aux/elisp-comp: New file.
69942         * modules/elisp-comp: New file.
69943
69944 2006-08-24  Bruno Haible  <bruno@clisp.org>
69945
69946         * gnulib-tool (func_create_testdir): Use non-default values of
69947         sourcebase and m4base.
69948
69949 2006-08-24  Bruno Haible  <bruno@clisp.org>
69950
69951         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69952         HTML structure.
69953
69954 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69955
69956         * modules/openat (Depends-on): Add lchown.
69957
69958 2006-08-23  Bruno Haible  <bruno@clisp.org>
69959
69960         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69961         of gl_LOCK_EARLY instead of gl_LOCK.
69962
69963 2006-08-23  Bruno Haible  <bruno@clisp.org>
69964
69965         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69966         on OSF/1 to no.
69967         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69968
69969 2006-08-23  Bruno Haible  <bruno@clisp.org>
69970
69971         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69972         as unusable.
69973
69974         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69975         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69976         (gl_LOCK): New macro.
69977
69978 2006-08-22  Simon Josefsson  <jas@extundo.com>
69979
69980         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69981         to md5 module.
69982
69983 2006-08-22  Simon Josefsson  <jas@extundo.com>
69984
69985         * MODULES.html.sh: Add "Support for maintaining and release
69986         projects".
69987
69988         * build-aux/gnupload: New file, from coreutils.
69989
69990 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69991
69992         Avoid the need for AC_LIBSOURCES in m4 macros.
69993         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69994         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69995         * modules/check-version (EXTRA_DIST): Add check-version.h.
69996         * modules/crc (EXTRA_DIST): Add crc.h.
69997         * modules/des (EXTRA_DIST): Add des.h.
69998         * modules/gc (EXTRA_DIST): Add gc.h.
69999         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70000         * modules/getline (EXTRA_DIST): Add getline.h.
70001         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70002         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70003         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70004         * modules/md2 (EXTRA_DIST): Add md2.h.
70005         * modules/md4 (EXTRA_DIST): Add md4.h.
70006         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70007         * modules/read-file (EXTRA_DIST): Add read-file.h.
70008         * modules/readline (EXTRA_DIST): Add readline.h.
70009         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70010         rijndael-api-fst.h.
70011
70012 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70013
70014         * m4/rijndael.m4 (gl_ARCFOUR):
70015         * m4/arctwo.m4 (gl_ARCTWO):
70016         * m4/check-version.m4 (gl_CHECK_VERSION):
70017         * m4/crc.m4 (gl_CRC):
70018         * m4/des.m4 (gl_DES):
70019         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70020         * m4/gc.m4 (gl_GC):
70021         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70022         * m4/getline.m4 (gl_FUNC_GETLINE):
70023         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70024         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70025         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70026         * m4/md2.m4 (gl_MD2):
70027         * m4/md4.m4 (gl_MD4):
70028         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70029         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70030         * m4/readline.m4 (gl_FUNC_READLINE):
70031         * m4/rijndael.m4 (gl_RIJNDAEL):
70032         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70033         to get the necessary .h files and whatnot.
70034
70035 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70036
70037         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70038         gnulib rather than the other way around.
70039         * config/srclistvars.sh (COREUTILS): Remove.
70040
70041 2006-08-22  Jim Meyering  <jim@meyering.net>
70042
70043         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70044
70045         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70046
70047 2006-08-22  Eric Blake  <ebb9@byu.net>
70048
70049         * modules/regexprops-generic: New file.
70050         * MODULES.html.sh (Support for building documentation): List it.
70051
70052 2006-08-22  Eric Blake  <ebb9@byu.net>
70053
70054         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70055         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70056         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70057         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70058
70059 2006-08-22  Bruno Haible  <bruno@clisp.org>
70060
70061         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70062         and lib_LTLIBRARIES like the other lib_* variables.
70063
70064 2006-08-22  Bruno Haible  <bruno@clisp.org>
70065
70066         * build-aux/x-to-1.in: New file, from GNU gettext.
70067
70068 2006-08-22  Bruno Haible  <bruno@clisp.org>
70069
70070         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70071         <utmpx.h> exists.
70072
70073 2006-08-22  Bruno Haible  <bruno@clisp.org>
70074
70075         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70076         <utmpx.h> exists.
70077
70078 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70079
70080         BeOS portability.
70081         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70082         exist.
70083         Problem reported by Bruno Haible.
70084
70085 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         Avoid the need for AC_LIBSOURCES in m4 macros.
70088         * modules/acl (EXTRA_DIST): Add acl.h.
70089         * modules/argmatch (Files): Add m4/argmatch.m4.
70090         (configure.ac): Add gl_ARGMATCH.
70091         (EXTRA_DIST): Renamed from lib_SOURCES, for
70092         consistency with the other modules.  Remove argmatch.c.
70093         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70094         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70095         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70096         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70097         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70098         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70099         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70100         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70101         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70102         * modules/closeout (EXTRA_DIST): Add closeout.h.
70103         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70104         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70105         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70106         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70107         dirname.h; remove basename.c and stripslash.c.
70108         * modules/exclude (EXTRA_DIST): Add exclude.h.
70109         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70110         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70111         * modules/file-type (EXTRA_DIST): Add file-type.h.
70112         * modules/filemode (EXTRA_DIST): Add filemode.h.
70113         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70114         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70115         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70116         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70117         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70118         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70119         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70120         * modules/getdate (EXTRA_DIST): Add getdate.c.
70121         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70122         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70123         * modules/getpass (EXTRA_DIST): Add getpass.h.
70124         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70125         * modules/group-member (EXTRA_DIST): Add group-member.h.
70126         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70127         * modules/hash (EXTRA_DIST): Add hash.h.
70128         * modules/human (EXTRA_DIST): Add human.h.
70129         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70130         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70131         * modules/lchown (EXTRA_DIST): Add lchown.h.
70132         * modules/long-options (EXTRA_DIST): Add long-options.h.
70133         * modules/lstat (EXTRA_DIST): Add lstat.h.
70134         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70135         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70136         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70137         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70138         * modules/memxor (EXTRA_DIST): Add memxor.h.
70139         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70140         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70141         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70142         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70143         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70144         * modules/physmem (EXTRA_DIST): Add physmem.h.
70145         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70146         * modules/posixver (EXTRA_DIST): Add posixver.h.
70147         * modules/quote (EXTRA_DIST): Add quote.h.
70148         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70149         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70150         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70151         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70152         regex_internal.h regexec.c.
70153         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70154         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70155         * modules/same (EXTRA_DIST): Add same.h.
70156         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70157         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70158         * modules/savedir (EXTRA_DIST): Add savedir.h.
70159         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70160         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70161         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70162         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70163         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70164         * modules/strdup (EXTRA_DIST): Add strdup.h.
70165         * modules/strftime (EXTRA_DIST): Add strftime.h.
70166         * modules/strndup (EXTRA_DIST): Add strndup.h.
70167         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70168         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70169         * modules/time_r (EXTRA_DIST): Add time_r.h.
70170         * modules/timespec (EXTRA_DIST): Add timespec.h.
70171         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70172         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70173         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70174         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70175         * modules/userspec (EXTRA_DIST): Add userspec.h.
70176         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70177         * modules/utimens (EXTRA_DIST): Add utimens.h.
70178         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70179         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70180         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70181         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70182         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70183         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70184         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70185         * modules/yesno (EXTRA_DIST): Add yesno.h.
70186
70187 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70188
70189         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70190
70191         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70192         * m4/dev-ino.m4, same-inode.m4: Remove.
70193
70194         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70195         * m4/acl.m4 (AC_FUNC_ACL):
70196         * m4/backupfile.m4 (gl_BACKUPFILE):
70197         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70198         * m4/canon-host.m4 (gl_CANON_HOST):
70199         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70200         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70201         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70202         * m4/cloexec.m4 (gl_CLOEXEC):
70203         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70204         * m4/closeout.m4 (gl_CLOSEOUT):
70205         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70206         * m4/dirname.m4 (gl_DIRNAME):
70207         * m4/exclude.m4 (gl_EXCLUDE):
70208         * m4/exitfail.m4 (gl_EXITFAIL):
70209         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70210         * m4/file-type.m4 (gl_FILE_TYPE):
70211         * m4/filemode.m4 (gl_FILEMODE):
70212         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70213         * m4/fpending.m4 (gl_FUNC_FPENDING):
70214         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70215         * m4/fts.m4 (gl_FUNC_FTS):
70216         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70217         * m4/getdate.m4 (gl_GETDATE):
70218         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70219         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70220         * m4/getpass.m4 (gl_FUNC_GETPASS):
70221         * m4/gettime.m4 (gl_GETTIME):
70222         * m4/getugroups.m4 (gl_GETUGROUPS):
70223         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70224         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70225         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70226         * m4/hash.m4 (gl_HASH):
70227         * m4/idcache.m4 (gl_IDCACHE):
70228         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70229         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70230         * m4/long-options.m4 (gl_LONG_OPTIONS):
70231         * m4/lstat.m4 (gl_FUNC_LSTAT):
70232         * m4/md5.m4 (gl_MD5):
70233         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70234         * m4/memcoll.m4 (gl_MEMCOLL):
70235         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70236         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70237         * m4/memxor.m4 (gl_MEMXOR):
70238         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70239         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70240         * m4/modechange.m4 (gl_MODECHANGE):
70241         * m4/mountlist.m4 (gl_MOUNTLIST):
70242         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70243         * m4/openat.m4 (gl_FUNC_OPENAT):
70244         * m4/pathmax.m4 (gl_PATHMAX):
70245         * m4/physmem.m4 (gl_PHYSMEM):
70246         * m4/posixtm.m4 (gl_POSIXTM):
70247         * m4/posixver.m4 (gl_POSIXVER):
70248         * m4/quote.m4 (gl_QUOTE):
70249         * m4/quotearg.m4 (gl_QUOTEARG):
70250         * m4/readtokens.m4 (gl_READTOKENS):
70251         * m4/readutmp.m4 (gl_READUTMP):
70252         * m4/regex.m4 (gl_REGEX):
70253         * m4/safe-read.m4 (gl_SAFE_READ):
70254         * m4/safe-write.m4 (gl_SAFE_WRITE):
70255         * m4/same.m4 (gl_SAME):
70256         * m4/save-cwd.m4 (gl_SAVE_CWD):
70257         * m4/savedir.m4 (gl_SAVEDIR):
70258         * m4/settime.m4 (gl_SETTIME):
70259         * m4/sha1.m4 (gl_SHA1):
70260         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70261         * m4/stat-macros.m4 (gl_STAT_MACROS):
70262         * m4/stat-time.m4 (gl_STAT_TIME):
70263         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70264         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70265         * m4/strdup.m4 (gl_FUNC_STRDUP):
70266         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70267         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70268         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70269         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70270         * m4/time_r.m4 (gl_TIME_R):
70271         * m4/timespec.m4 (gl_TIMESPEC):
70272         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70273         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70274         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70275         * m4/userspec.m4 (gl_USERSPEC):
70276         * m4/utimecmp.m4 (gl_UTIMECMP):
70277         * m4/utimens.m4 (gl_UTIMENS):
70278         * m4/xalloc.m4 (gl_XALLOC):
70279         * m4/xgetcwd.m4 (gl_XGETCWD):
70280         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70281         * m4/xreadlink.m4 (gl_XREADLINK):
70282         * m4/xstrtod.m4 (gl_XSTRTOD):
70283         * m4/yesno.m4 (gl_YESNO):
70284         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70285         to get the necessary .h files and whatnot.
70286
70287 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70288             Bruno Haible  <bruno@clisp.org>
70289
70290         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70291         /bin/sh understanding of '!' conditional negation.
70292
70293 2006-08-21  Jim Meyering  <jim@meyering.net>
70294
70295         * modules/openat (Depends-on): Really alphabetize.
70296
70297         * modules/acl (Depends-on): Add error and quote.
70298
70299         * check-module (find_included_lib_files): Add at-func.c to the
70300         ok-to-include-more-than-once white list.
70301
70302         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70303
70304 2006-08-21  Bruno Haible  <bruno@clisp.org>
70305
70306         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70307         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70308         Reported by Martin Lambers <marlam@marlam.de>.
70309
70310 2006-08-21  Bruno Haible  <bruno@clisp.org>
70311
70312         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70313         specify an installation location, don't emit a noinst_LIBRARIES or
70314         noinst_LTLIBRARIES assignment.
70315
70316 2006-08-21  Bruno Haible  <bruno@clisp.org>
70317
70318         BeOS portability.
70319         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70320         BeOS has mbrtowc() but no <wctype.h>.
70321
70322 2006-08-21  Bruno Haible  <bruno@clisp.org>
70323
70324         BeOS portability.
70325         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70326         exist.
70327
70328 2006-08-21  Bruno Haible  <bruno@clisp.org>
70329
70330         BeOS portability.
70331         * lib/mbchar.h: Include <wctype.h> only if it exists.
70332
70333 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70334
70335         Remove files that are no longer needed by their respective modules.
70336         * m4/obstack.m4: Remove.
70337         * m4/strerror_r.m4: Remove.
70338         * m4/uint32_t.m4: Remove.
70339         * m4/uintptr_t.m4: Remove.
70340         * m4/ullong_max.m4: Remove.
70341         * m4/xstrtoimax.m4: Remove.
70342         * m4/xstrtoumax.m4: Remove.
70343
70344         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70345         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70346         dependencies now capture this.
70347
70348         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70349         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70350         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70351         * m4/human.m4 (gl_HUMAN): Likewise.
70352         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70353         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70354
70355         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70356
70357         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70358         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70359         stdint.
70360         * m4/human.m4 (gl_HUMAN): Likewise.
70361         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70362         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70363         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70364         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70365         * m4/xstrtol (gl_XSTRTOL): Likewise.
70366
70367         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70368         AC_TYPE_LONG_LONG_INT.
70369         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70370         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70371         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70372         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70373
70374         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70375         on stdbool.
70376
70377         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70378         (gl_PREREQ_XSTRTOUL): Remove.
70379
70380         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70381
70382         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70383         mode.
70384
70385 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70386
70387         Add and change modules to make it easier for coreutils to use
70388         gnulib-tool.
70389         * modules/backupfile (Files): Remove m4/d-ino.m4.
70390         (Depends-on): Add d-ino.
70391         * modules/cycle-check (Depends-on): Add stdint.
70392         (lib_SOURCES): Add cycle-check.h.
70393         * modules/d-ino: New module.
70394         * modules/d-type: New module.
70395         * modules/error (Files): Remove m4/strerror_r.m4.
70396         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70397         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70398         m4/inttypes_h.m4, m4/uintmax_t.m4.
70399         (Depends-on): Add stdint.
70400         (lib_SOURCES): Add fsusage.h.
70401         * modules/getcwd (Files): Remove d-ino.m4.
70402         (Depends-on): Add d-ino.
70403         * modules/getndelim2 (Depends-on): Add stdint.
70404         * modules/glob (Files): Remove m4/d-type.m4.
70405         (Depends-on): Add d-type.
70406         * modules/host-os: New module.
70407         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70408         m4/inttypes_h.m4, m4/uintmax_t.m4.
70409         * Depends-on: Add stdint.
70410         (lib_SOURCES): Add human.h.
70411         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70412         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70413         m4/uintmax_t.m4, m4/ulonglong.m4.
70414         (Depends-on): Add stdint.
70415         (EXTRA_DIST): Add inttostr.h.
70416         * modules/lchmod: New module.
70417         * modules/link-follow: New module.
70418         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70419         (Depends-on): Add lchmod.
70420         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70421         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70422         (Depends-on): Add stdint.
70423         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70424         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70425         (Depends-on): Add stdint.
70426         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70427         * modules/perl: New module.
70428         * modules/regex (Depends-on): Add stdint.
70429         * modules/rmdir-errno: New module.
70430         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70431         m4/intmax_t.m4.
70432         (Depends-on): Add stdint.
70433         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70434         m4/uintmax_t.m4.
70435         (Depends-on): Add stdint.
70436         * modules/unlink-busy: New module.
70437         * modules/utimecmp (Depends-on): Add stdint.
70438         * modules/uptime: New module.
70439         * modules/winsz-ioctl: New module.
70440         * modules/winsz-termios: New module.
70441         * modules/xnanosleep (Depends-on): Add nanosleep.
70442         * modules/ullong_max: Remove.
70443         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70444         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70445         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70446         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70447         (Depends-on): Add inttypes.
70448         (lib_SOURCES): Add xstrtol.h.
70449         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70450         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70451         * MODULES.html.sh: Move 'assert' into the assert section.
70452         Move 'dummy' into the linking section.
70453         Remove ullong_max.
70454         Add section for compatibility checks for POSIX:2001 functions,
70455         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70456         winsz-ioctl, and winsz-termios into it.
70457         Add lchmod.
70458         Add top-level Misc section and put host-os, perl, and uptime
70459         into it.
70460
70461 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70462
70463         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70464         now assume the stdint module.  Do not include inttypes.h.
70465         * lib/fsusage.h: Likewise.
70466         * lib/getndelim2.c: Likewise.
70467         * lib/human.h: Likewise.
70468         * lib/inttostr.h: Likewise.
70469         * lib/obstack.c: Likewise.
70470         * lib/regex_internal.h: Likewise.
70471         * lib/tempname.c: Likewise.
70472         * lib/utimecmp.c: Likewise.
70473         * lib/xstrtol.h: Likewise.
70474
70475         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70476
70477         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70478         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70479         * lib/xtime.h: Likewise.
70480
70481 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70482
70483         * modules/openat (Files): Add lib/fchmodat.c.
70484         Fixes problem reported by Jay Youngman.
70485
70486 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70487
70488         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70489         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70490
70491 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70492             Bruno Haible  <bruno@clisp.org>
70493
70494         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70495         and is a script that invokes bison. Tighten the code. Add comments.
70496
70497 2006-08-18  Jim Meyering  <jim@meyering.net>
70498
70499         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70500         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70501         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70502         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70503
70504 2006-08-18  Bruno Haible  <bruno@clisp.org>
70505
70506         * modules/bison-i18n: New file.
70507         * MODULES.html.sh (Internationalization functions): Add it.
70508
70509 2006-08-18  Bruno Haible  <bruno@clisp.org>
70510
70511         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70512         sys/statvfs.h. When getmntinfo was found, check its declaration and
70513         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70514
70515 2006-08-18  Bruno Haible  <bruno@clisp.org>
70516
70517         * m4/bison-i18n.m4: New file, from bison.
70518
70519 2006-08-18  Bruno Haible  <bruno@clisp.org>
70520
70521         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70522         (ME_DUMMY): Treat "kernfs" as a dummy.
70523         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70524
70525 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70526
70527         Update from coreutils.
70528
70529         2006-08-15  Jim Meyering  <jim@meyering.net>
70530
70531         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70532
70533         2006-01-17  Jim Meyering  <jim@meyering.net>
70534
70535         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70536
70537         2006-01-11  Jim Meyering  <jim@meyering.net>
70538
70539         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70540         Check for the lchmod function.
70541
70542 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70543
70544         Update from coreutils.
70545
70546         * lib/__fpending.h: Add copyright notice.
70547         * lib/fprintftime.h: Likewise.
70548         * lib/savedir.c: Use (C) in copyright notice.
70549         * lib/savedir.h: Likewise.
70550
70551         2006-08-15  Jim Meyering  <jim@meyering.net>
70552
70553         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70554         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70555         in support of the EXPECTED_ERRNO macro.
70556         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70557         definitions.  Instead, define the appropriate symbols and include
70558         "at-func.c".
70559         * lib/mkdirat.c (mkdirat): Likewise.
70560         * lib/fchmodat.c (fchmodat): Likewise.
70561         (ENOSYS): Remove definition.
70562         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70563         it.  Don't include "unistd--.h" -- it wasn't ever used.
70564
70565         2006-01-17  Jim Meyering  <jim@meyering.net>
70566
70567         Rewrite fts.c not to change the current working directory,
70568         by using openat, fstatat, fdopendir, etc..
70569
70570         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70571         (HAVE_OPENAT_SUPPORT): Define.
70572         [_LIBC] (fchdir): Don't undef or define; no longer used.
70573         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70574         Now, this `function' always succeeds, and consumes its file descriptor
70575         parameter -- so callers must not close such FDs.  Update callers.
70576         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70577         (diropen): Add parameter, SP.  Adjust all callers.
70578         Implement using diropen_fd, rather than open.
70579         (fts_open): Initialize new member, fts_cwd_fd.
70580         Remove fts_rft-setting code.
70581         (fts_close): Close fts_cwd_fd, if necessary.
70582         (__opendir2): Define in terms of opendir or opendirat,
70583         depending on whether the FST_NOCHDIR flag is set.
70584         (fts_build): Since fts_safe_changedir consumes its FD, and since
70585         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70586         and close the dup'd file descriptor upon failure.
70587         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70588         (fts_safe_changedir): Tweak semantics to reflect that this function
70589         now calls cwd_advance_fd and hence consumes its FD argument.
70590         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70591         [struct FTS] (fts_rft): Remove now-unused member.
70592         [struct FTS] (fts_cycle.state): Improve comment.
70593
70594         * lib/openat.c (openat_needs_fchdir): New function.
70595         * lib/openat.h (openat_needs_fchdir): Declare it.
70596
70597 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70598
70599         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70600         Problem and fix reported by Pádraig Brady in
70601         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70602
70603 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70604
70605         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70606
70607 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70608
70609         * lib/memcoll.c (memcoll): Optimize for the common case where the
70610         arguments are bytewise equal.
70611
70612 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70613
70614         * doc/regexprops-generic.texi: Add a copyright notice.
70615
70616 2006-08-15  Bruno Haible  <bruno@clisp.org>
70617
70618         * modules/tmpdir (License): Change to LGPL.
70619
70620 2006-08-15  Bruno Haible  <bruno@clisp.org>
70621
70622         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70623         module.
70624
70625 2006-08-14  Simon Josefsson  <jas@extundo.com>
70626
70627         * config/srclist.txt: Add gnupload.
70628
70629 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70630
70631         Change copyright notice from LGPL 2 to GPL 2, since that's the
70632         standard form used in the gnulib repository.
70633         * tests/test-lock.c: Likewise.
70634         * tests/test-stdint.c: Likewise.
70635         * tests/test-tls.c: Likewise.
70636
70637         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70638         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70639         Add copyright notice.
70640
70641         * check-module: Add copyright notice.  Output a copyright
70642         notice if "--version" is specified.
70643         * modules/COPYING: New file.
70644         * tests/test-getaddrinfo.c: Add copyright notice.
70645         * tests/test-verify.c: Likewise.
70646
70647 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70648
70649         Change copyright notice from LGPL 2 to GPL 2, since that's the
70650         standard form used in the gnulib repository.
70651         * lib/lock.c: LGPL -> GPL.
70652         * lib/lock.h: Likewise.
70653         * lib/strnlen1.c: Likewise.
70654         * lib/strnlen1.h: Likewise.
70655         * lib/tls.c: Likewise.
70656         * lib/tls.h: Likewise.
70657         * lib/tmpdir.c: Likewise.
70658
70659         * lib/TODO: Remove; this belongs only in coreutils.
70660
70661 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70662
70663         Add copyright notices to long-enough files that lack them, since
70664         otherwise the files aren't clearly free.  Use the same notice that
70665         getdate.texi already uses.
70666         * doc/alloca-opt.texi: Add copyright notice.
70667         * doc/alloca.texi: Likewise.
70668         * doc/ctime.texi: Likewise.
70669         * doc/functions.texi: Likewise.
70670         * doc/gcd.texi: Likewise.
70671         * doc/gnulib-tool.texi: Likewise.
70672         * doc/inet_ntoa.texi: Likewise.
70673         * doc/visibility.texi: Likewise.
70674
70675         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70676         * doc/quote.texi: Add copyright notice.
70677
70678         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70679         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70680         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70681         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70682         is now obsolete, and give a pointer to the Sun list.
70683         Add copyright notice.
70684
70685 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70686
70687         * config/srclistvars.sh: Add copyright notice.
70688
70689 2006-08-14  Eric Blake  <ebb9@byu.net>
70690
70691         Import the following change from libc:
70692
70693         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70694
70695         Upstream bug 2997.
70696         * lib/misc/error.c: Add space between program name and message if file
70697         name is missing.
70698
70699 2006-08-12  Karl Berry  <karl@gnu.org>
70700
70701         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70702         remove, these originate in gnulib now.
70703
70704 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70705
70706         * doc/Makefile (standards.info standards.html standards.dvi):
70707         Also depend on make-stds.texi.
70708
70709 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70710
70711         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70712         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70713
70714         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70715         in wchar_t.  Problem reported by Eric Blake.
70716
70717         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70718         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70719         Also, help the compiler to keep LEN in a register.
70720
70721 2006-08-11  Eric Blake  <ebb9@byu.net>
70722
70723         * users.txt: Sort.  Add tar.
70724
70725 2006-08-11  Bruno Haible  <bruno@clisp.org>
70726
70727         * users.txt: New file.
70728
70729 2006-08-11  Bruno Haible  <bruno@clisp.org>
70730
70731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70732         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70733
70734 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70735
70736         * modules/snprintf (Depends-on): Remove minmax.
70737         (Maintainer): Add self and Bruno.
70738
70739 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70740
70741         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70742         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70743         (EOVERFLOW): Define if the system does not.
70744         Do not include "minmax.h"; it wasn't used.
70745         (snprintf): Don't assume size_t promotes to an unsigned type.
70746         Fix bug when generated string was too long for the buffer: the
70747         buffer's contents are supposed to be the initial prefix of the
70748         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70749         exceeds INT_MAX; do the check ourselves.
70750
70751         Import the following changes from libc:
70752
70753         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70754
70755         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70756         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70757         set wc to the byte which couldn't be converted.
70758         (re_string_reconstruct): Don't clear valid_raw_len before calling
70759         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70760         tip_context using re_string_context_at.
70761
70762         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70763
70764         * lib/posix/regex.h: g++ still cannot handled [restrict].
70765
70766         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70767
70768         * lib/posix/regex.h: Remove special handling for VMS.
70769
70770 2006-08-10  Jim Meyering  <jim@meyering.net>
70771
70772         * modules/same-inode: New module.
70773         * modules/dev-ino: New module.
70774         * modules/cycle-check: Depend on these modules, rather than simply
70775         including their .h files.
70776         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70777         required via m4/cycle-check.m4.
70778         * modules/same: Depend on new same-inode module, rather than
70779         including same-inode.h.
70780         * modules/chdir-safer: New file.
70781
70782         * modules/chown (Depends-on): Add stat-macros.
70783
70784 2006-08-10  Jim Meyering  <jim@meyering.net>
70785
70786         * m4/cycle-check.m4: New file.
70787         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70788         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70789
70790 2006-08-10  Eric Blake  <ebb9@byu.net>
70791
70792         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70793         in from original proposal.
70794
70795 2006-08-10  Eric Blake  <ebb9@byu.net>
70796         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70797
70798         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70799         namespace.
70800
70801 2006-08-10  Bruno Haible  <bruno@clisp.org>
70802
70803         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70804         as well.
70805
70806 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70807
70808         Sync from coreutils.
70809
70810         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70811
70812         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70813         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70814
70815 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * modules/restrict: Remove; no longer needed now that we assume
70818         Autoconf 2.59 or later.
70819         * MODULES.html.sh: Remove 'restrict'.
70820         * modules/argp (Depends-on): Remove 'restrict'.
70821         * modules/base64 (Depends-on): Likewise.
70822         * modules/gc (Depends-on): Likewise.
70823         * modules/getaddrinfo (Depends-on): Likewise.
70824         * modules/glob (Depends-on): Likewise.
70825         * modules/inet_ntop (Depends-on): Likewise.
70826         * modules/inet_pton (Depends-on): Likewise.
70827         * modules/memxor (Depends-on): Likewise.
70828         * modules/regex (Depends-on): Likewise.
70829         * modules/strtok_r (Depends-on): Likewise.
70830         * modules/time_r (Depends-on): Likewise.
70831
70832 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70833
70834         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70835         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70836         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70837         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70838         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70839         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70840         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70841         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70842
70843         Merge from coreutils.
70844         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70845         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70846         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70847         * m4/time_r.m4 (gl_TIME_R): Likewise.
70848
70849 2006-08-09  Karl Berry  <karl@gnu.org>
70850
70851         * config/srclist.txt: no more gettext-tools, per Bruno.
70852
70853 2006-08-08  Eric Blake  <ebb9@byu.net>
70854
70855         * modules/verror: New module.
70856         * MODULES.html.sh: Document it.
70857
70858 2006-08-08  Eric Blake  <ebb9@byu.net>
70859
70860         * lib/verror.h, lib/verror.c: New files.
70861
70862 2006-08-08  Eric Blake  <ebb9@byu.net>
70863
70864         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70865         verror_at_line output complies with GNU Coding Standards even when
70866         file is NULL.
70867
70868 2006-08-07  Bruno Haible  <bruno@clisp.org>
70869
70870         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70871         versions of AIX.
70872         Reported by Ralf Wildenhues.
70873
70874 2006-08-07  Bruno Haible  <bruno@clisp.org>
70875
70876         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70877         in an AC_DEFUN. Needed so that the autoconf snippets can use
70878         AC_REQUIRE.
70879
70880 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70881
70882         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70883         Initialize pkgdata_DATA.
70884         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70885         overriding it.
70886
70887 2006-08-06  Eric Blake  <ebb9@byu.net>
70888
70889         * lib/error.h: Fold in some upstream changes from glibc.
70890         * lib/error.c: Likewise.
70891
70892 2006-08-04  Bruno Haible  <bruno@clisp.org>
70893
70894         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70895         Make the mostlyclean-local rule depend on mostlyclean-generic.
70896         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70897
70898 2006-07-31  Bruno Haible  <bruno@clisp.org>
70899
70900         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70901         <stdlib.h>, <string.h>.
70902
70903 2006-07-30  Bruno Haible  <bruno@clisp.org>
70904
70905         * modules/readlink (License): Change to LGPL.
70906
70907 2006-07-30  Bruno Haible  <bruno@clisp.org>
70908
70909         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70910         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70911         set PKGDATADIR to point to it.
70912
70913 2006-07-30  Bruno Haible  <bruno@clisp.org>
70914
70915         * modules/csharpexec (configure.ac): Comment out macro invocation.
70916         * modules/javaexec (configure.ac): Likewise.
70917         * modules/javacomp-script (configure.ac): Likewise.
70918
70919         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70920
70921 2006-07-30  Bruno Haible  <bruno@clisp.org>
70922
70923         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70924         linked-list.
70925
70926 2006-07-30  Bruno Haible  <bruno@clisp.org>
70927
70928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70929
70930 2006-07-30  Bruno Haible  <bruno@clisp.org>
70931
70932         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70933         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70934         get removed.
70935
70936 2006-07-29  Bruno Haible  <bruno@clisp.org>
70937
70938         Make it possible for gnulib-tool to work with locally modified or
70939         augmented gnulib repositories.
70940         * gnulib-tool (func_usage): Document --local-dir option.
70941         (local_gnulib_dir): New variable.
70942         Handle --local-dir option.
70943         (func_lookup_file): New function.
70944         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70945         (func_get_description, func_get_filelist, func_get_description,
70946         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70947         func_get_automake_snippet, func_get_include_directive,
70948         func_get_license, func_get_maintainer): Use func_lookup_file.
70949         (func_import, func_create_testdir): Use func_lookup_file.
70950
70951 2006-07-29  Bruno Haible  <bruno@clisp.org>
70952
70953         * modules/setenv (Depends-on): Add unistd.
70954
70955 2006-07-29  Bruno Haible  <bruno@clisp.org>
70956
70957         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70958
70959 2006-07-29  Bruno Haible  <bruno@clisp.org>
70960
70961         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70962
70963 2006-07-29  Bruno Haible  <bruno@clisp.org>
70964
70965         * gnulib-tool (import, update): If there is no Makefile.am, look at
70966         aclocal.m4, instead of bailing out.
70967
70968 2006-07-29  Bruno Haible  <bruno@clisp.org>
70969
70970         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70971         Categorize the options by when they are useful.
70972
70973 2006-07-29  Bruno Haible  <bruno@clisp.org>
70974
70975         * gnulib-tool (func_usage): Document option --no-libtool.
70976         Handle option --no-libtool.
70977         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70978         for changed semantics of $libtool variable.
70979         (func_import): Likewise. If libtool is not used, show this through
70980         an option --no-libtool.
70981         (func_create_testdir): Update.
70982
70983 2006-07-29  Bruno Haible  <bruno@clisp.org>
70984
70985         * gnulib-tool (func_import): Extend error message about missing
70986         --doc-base.
70987
70988 2006-07-29  Bruno Haible  <bruno@clisp.org>
70989
70990         * gnulib-tool (func_import): Don't create the $docbase directory if
70991         there is no file to store there.
70992
70993 2006-07-29  Bruno Haible  <bruno@clisp.org>
70994
70995         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70996         relevant, look for configure.ac there, not in the current directory.
70997         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70998
70999 2006-07-29  Bruno Haible  <bruno@clisp.org>
71000
71001         * gnulib-tool (SORT): New variable.
71002         (func_usage): Undocument --assume-autoconf option.
71003         Remove --assume-autoconf option handling.
71004         (autoconf_minversion): Determine from the contents of configure.ac.
71005         (func_import): Remove autoconf_minversion handling.
71006         Suggested by Eric Blake.
71007
71008 2006-07-29  Bruno Haible  <bruno@clisp.org>
71009
71010         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71011
71012 2006-07-29  Bruno Haible  <bruno@clisp.org>
71013
71014         * config/srclist.txt (*setenv.[ch]): Remove rules.
71015
71016 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71017
71018         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71019
71020 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71021
71022         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71023         arpa/inet.h.
71024
71025 2006-07-28  Simon Josefsson  <jas@extundo.com>
71026
71027         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71028         * modules/inet_pton (Depends-on): Likewise.
71029
71030 2006-07-28  Simon Josefsson  <jas@extundo.com>
71031
71032         * m4/netinet_in_h.m4: New file.
71033
71034 2006-07-28  Simon Josefsson  <jas@extundo.com>
71035
71036         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71037         #include's.
71038
71039 2006-07-28  Simon Josefsson  <jas@extundo.com>
71040
71041         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71042         #include's.
71043
71044 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71045
71046         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71047         setgid on directories only if they set these bits.
71048         * lib/modechange.h: Remove obsolete comment about masks.
71049
71050 2006-07-28  Eric Blake  <ebb9@byu.net>
71051
71052         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71053         macro expansion.
71054
71055 2006-07-28  Bruno Haible  <bruno@clisp.org>
71056
71057         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71058
71059 2006-07-28  Bruno Haible  <bruno@clisp.org>
71060
71061         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71062
71063 2006-07-28  Bruno Haible  <bruno@clisp.org>
71064
71065         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71066         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71067         Define fallbacks.
71068         Avoids link error on FreeBSD 4.x.
71069         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71070
71071         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71072         encoding.
71073         * lib/mbswidth.c (iswcntrl): Likewise.
71074
71075 2006-07-27  Bruno Haible  <bruno@clisp.org>
71076
71077         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71078         test.
71079
71080 2006-07-27  Bruno Haible  <bruno@clisp.org>
71081
71082         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71083         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71084         defined.
71085
71086 2006-07-26  Eric Blake  <ebb9@byu.net>
71087
71088         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71089
71090 2006-07-26  Eric Blake  <ebb9@byu.net>
71091
71092         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71093         like mingw that lack mkstemp.
71094         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71095         avoid compilation warning on mingw.
71096
71097 2006-07-26  Bruno Haible  <bruno@clisp.org>
71098
71099         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71100         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71101         INT_FAST*_MIN, INTPTR_MIN.
71102
71103 2006-07-25  Bruno Haible  <bruno@clisp.org>
71104
71105         * modules/version-etc (Depends-on): Add stdarg.
71106
71107 2006-07-25  Bruno Haible  <bruno@clisp.org>
71108
71109         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71110         complex commands.
71111
71112 2006-07-25  Bruno Haible  <bruno@clisp.org>
71113
71114         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71115         defined in <stdarg.h> or config.h.
71116
71117 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71118
71119         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71120         (gl_STDIO_SAFER): Remove.
71121
71122 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71123
71124         * MODULES.html.sh (File stream based Input/Output):
71125         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71126         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71127         * modules/fopen-safer, modules/tmpfile-safer: New files.
71128         * modules/stdio-safer: Remove.
71129
71130 2006-07-24  Bruno Haible  <bruno@clisp.org>
71131
71132         * modules/tmpdir: New file.
71133         * MODULES.html.sh (File system functions): Add it.
71134
71135 2006-07-24  Bruno Haible  <bruno@clisp.org>
71136
71137         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71138         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71139
71140 2006-07-24  Bruno Haible  <bruno@clisp.org>
71141
71142         * modules/clean-temp: New file.
71143
71144 2006-07-24  Bruno Haible  <bruno@clisp.org>
71145
71146         * m4/tmpdir.m4: New file, from GNU gettext.
71147
71148 2006-07-24  Bruno Haible  <bruno@clisp.org>
71149
71150         * lib/tmpdir.h: New file, from GNU gettext.
71151         * lib/tmpdir.c: New file, from GNU gettext.
71152
71153 2006-07-24  Bruno Haible  <bruno@clisp.org>
71154
71155         * lib/clean-temp.h: New file, from GNU gettext.
71156         * lib/clean-temp.c: New file, from GNU gettext.
71157
71158 2006-07-23  Eric Blake  <ebb9@byu.net>
71159
71160         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71161         (Depends-on): Add binary-io.
71162
71163 2006-07-23  Eric Blake  <ebb9@byu.net>
71164
71165         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71166
71167 2006-07-23  Eric Blake  <ebb9@byu.net>
71168
71169         * lib/tmpfile-safer.c: New file.
71170         * lib/stdio-safer.h (fopen_safer): Add prototype.
71171         * lib/stdio--.h (tmpfile): Make safer.
71172
71173 2006-07-23  Bruno Haible  <bruno@clisp.org>
71174
71175         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71176         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71177         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71178         gl_linked_remove_at): Use it.
71179
71180 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71181         and Simon Josefsson <jas@extundo.com>
71182
71183         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71184
71185         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71186
71187 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71188
71189         * modules/close-stream: New file.
71190         * modules/closeout (Description): Make it clear that it exits
71191         with a diagnostic on error.
71192         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71193         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71194
71195 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * m4/close-stream.m4: New file.
71198
71199 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71200
71201         * lib/close-stream.c, lib/close-stream.h: New files.
71202
71203 2006-07-22  Bruno Haible  <bruno@clisp.org>
71204
71205         Merge from GNU gettext 0.15.
71206
71207         2006-05-01  Bruno Haible  <bruno@clisp.org>
71208
71209                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71210
71211         2006-07-22  Bruno Haible  <bruno@clisp.org>
71212
71213                 * modules/javaversion: New file.
71214                 * MODULES.html.sh (Java): Add javaversion.
71215
71216         2006-03-12  Bruno Haible  <bruno@clisp.org>
71217
71218                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71219
71220         2005-12-04  Bruno Haible  <bruno@clisp.org>
71221
71222                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71223                 (untested).
71224
71225         2006-06-21  Bruno Haible  <bruno@clisp.org>
71226
71227                 Avoid warnings from recent versions of mcs.
71228                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71229                 -o, -L, -r any more. Use options documented since mcs-1.0
71230                 instead. Similarly for -g.
71231
71232         2005-12-04  Bruno Haible  <bruno@clisp.org>
71233
71234                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71235                 .resources, not .resource.
71236
71237         2005-07-09  Bruno Haible  <bruno@clisp.org>
71238
71239                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71240                 add a .dll suffix.
71241                 Reported by Mark Junker <mjscod@gmx.de>.
71242
71243         2006-07-22  Bruno Haible  <bruno@clisp.org>
71244
71245                 * modules/gettext: Upgrade to gettext-0.15.
71246                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71247                 m4/visibility.m4.
71248                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71249
71250 2006-07-22  Bruno Haible  <bruno@clisp.org>
71251
71252         Merge from GNU gettext 0.15.
71253
71254         2006-03-25  Bruno Haible  <bruno@clisp.org>
71255
71256                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71257
71258         2006-07-21  Bruno Haible  <bruno@clisp.org>
71259
71260                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71261                 "1.1".
71262
71263         2006-05-09  Bruno Haible  <bruno@clisp.org>
71264
71265                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71266                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71267                 for the conftestver execution.
71268
71269         2006-05-01  Bruno Haible  <bruno@clisp.org>
71270
71271                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71272                 optional target-version argument. Verify that the compiler
71273                 groks source of the specified source-version, or add -source
71274                 option as necessary. Verify that the compiler produces
71275                 bytecode in the specified target-version, or add -target and
71276                 -source options as necessary. Make the result of the test
71277                 available as variable CONF_JAVAC. Also log error output in
71278                 config.log.
71279
71280         2006-03-11  Bruno Haible  <bruno@clisp.org>
71281
71282                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71283
71284         2006-05-09  Bruno Haible  <bruno@clisp.org>
71285
71286                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71287                 CLASSPATH_SEPARATOR to a semicolon.
71288
71289         2006-03-12  Bruno Haible  <bruno@clisp.org>
71290
71291                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71292                 available as variable CONF_JAVA, for subsequent autoconf
71293                 tests. Also log error output in config.log.
71294
71295         2006-07-19  Bruno Haible  <bruno@clisp.org>
71296
71297                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71298                 that getline works on glibc2 systems. Needed to avoid trouble
71299                 in relocatable.c.
71300                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71301
71302         2005-12-04  Bruno Haible  <bruno@clisp.org>
71303
71304                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71305                 launcher (untested).
71306
71307         2005-12-04  Bruno Haible  <bruno@clisp.org>
71308
71309                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71310
71311         2006-07-22  Bruno Haible  <bruno@clisp.org>
71312
71313                 * gettext.m4: Update from GNU gettext-0.15.
71314                 * nls.m4: Likewise.
71315                 * po.m4: Likewise.
71316                 * inttypes-pri.m4: Likewise.
71317                 * inttypes-h.m4: Renamed from inttypes.m4.
71318                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71319
71320 2006-07-22  Bruno Haible  <bruno@clisp.org>
71321
71322         Merge from GNU gettext 0.15.
71323
71324         2005-07-05  Bruno Haible  <bruno@clisp.org>
71325
71326                 * printf-args.c (printf_fetchargs): Work around broken
71327                 definition of wint_t on mingw.
71328
71329         2005-02-12  Bruno Haible  <bruno@clisp.org>
71330
71331                 * xallocsa.h: Add extern "C" for C++.
71332
71333         2006-05-17  Bruno Haible  <bruno@clisp.org>
71334
71335                 Cygwin portability.
71336                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71337
71338         2006-04-30  Bruno Haible  <bruno@clisp.org>
71339
71340                 * progreloc.c: Include <mach-o/dyld.h> if available.
71341                 (find_executable): Use _NSGetExecutablePath when possible.
71342
71343         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71344
71345                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71346                 function.
71347
71348         2005-12-29  Bruno Haible  <bruno@clisp.org>
71349
71350                 * progreloc.c (set_program_name_and_installdir): Fix
71351                 compilation error.
71352
71353         2005-12-04  Bruno Haible  <bruno@clisp.org>
71354
71355                 Cygwin portability.
71356                 * progreloc.c: Include <windows.h> also on Cygwin.
71357                 (find_executable): Add support for Cygwin.
71358                 (set_program_name_and_installdir): Handle also platforms with
71359                 nonempty EXEEXT.
71360
71361         2006-07-11  Bruno Haible  <bruno@clisp.org>
71362
71363                 * javacomp.c: Fix a comment.
71364                 Reported by Jim Meyering.
71365
71366         2006-04-30  Bruno Haible  <bruno@clisp.org>
71367
71368                 * javacomp.h (compile_java_class): Add source_version,
71369                 target_version arguments.
71370                 * javacomp.c: Rewritten to choose only a compiler that
71371                 respects the specified source_version and target_version.
71372
71373         2006-06-27  Bruno Haible  <bruno@clisp.org>
71374
71375                 Assume correct S_ISDIR macro.
71376                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71377
71378         2006-07-22  Bruno Haible  <bruno@clisp.org>
71379
71380                 * javaversion.h: New file, from GNU gettext.
71381                 * javaversion.c: New file, from GNU gettext.
71382                 * javaversion.java: New file, from GNU gettext.
71383                 * javaversion.class: New file, from GNU gettext.
71384
71385         2006-05-17  Bruno Haible  <bruno@clisp.org>
71386
71387                 Cygwin portability.
71388                 * javaexec.c (execute_java_class): Test for jview program
71389                 also on Cygwin.
71390
71391         2006-04-09  Bruno Haible  <bruno@clisp.org>
71392
71393                 * fatal-signal.c: Don't include string.h.
71394                 (at_fatal_signal): Use a copying loop instead of memcpy.
71395
71396         2005-12-04  Bruno Haible  <bruno@clisp.org>
71397
71398                 * csharpexec.c: Add support for 'clix' launcher (untested).
71399                 (execute_csharp_using_sscli): New function.
71400                 (execute_csharp_program): Call it.
71401
71402         2006-06-21  Bruno Haible  <bruno@clisp.org>
71403
71404                 Avoid warnings from recent versions of mcs.
71405                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71406                 -o, -L, -r any more. Use options documented since mcs-1.0
71407                 instead. Similarly for -g.
71408
71409         2005-07-09  Bruno Haible  <bruno@clisp.org>
71410
71411                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71412                 add a .dll suffix.
71413                 Reported by Mark Junker <mjscod@gmx.de>.
71414
71415         2006-06-17  Bruno Haible  <bruno@clisp.org>
71416
71417                 * config.charset: Update for NetBSD 3.0.
71418
71419         2006-05-17  Bruno Haible  <bruno@clisp.org>
71420
71421                 Cygwin portability.
71422                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71423
71424         2006-05-16  Bruno Haible  <bruno@clisp.org>
71425
71426                 * localcharset.c [CYGWIN]: Include <windows.h>.
71427                 (get_charset_aliases): For Cygwin, return the same CPxxx
71428                 aliases list as under WIN32.
71429                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71430                 the environment variables. Fall back to GetACP().
71431
71432         2006-04-05  Bruno Haible  <bruno@clisp.org>
71433
71434                 * config.charset: Update Juan Manuel Guerrero's address.
71435
71436         2005-02-12  Bruno Haible  <bruno@clisp.org>
71437
71438                 * allocsa.h: Add extern "C" for C++.
71439
71440         2005-02-10  Bruno Haible  <bruno@clisp.org>
71441
71442                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71443                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71444
71445         2006-07-22  Bruno Haible  <bruno@clisp.org>
71446
71447                 * gettext.h: Update to GNU gettext-0.15.
71448
71449 2006-07-22  Bruno Haible  <bruno@clisp.org>
71450
71451         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71452         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71453         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71454
71455 2006-07-21  Eric Blake  <ebb9@byu.net>
71456
71457         * modules/stdlib-safer: New file.
71458         * MODULES.html.sh (File stream based Input/Output): Add
71459         stdlib-safer.
71460
71461 2006-07-21  Eric Blake  <ebb9@byu.net>
71462
71463         * lib/stdlib-safer.h: New file from coreutils, required by
71464         stdlib--.h.
71465
71466 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71469
71470 2006-07-20  Bruno Haible  <bruno@clisp.org>
71471
71472         * gnulib-tool: Recognize new option --assume-autoconf.
71473         (autoconf_minversion): New variable.
71474         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71475
71476 2006-07-20  Bruno Haible  <bruno@clisp.org>
71477
71478         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71479
71480 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71481
71482         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71483         Reindent and repaginate.
71484
71485 2006-07-19  Derek Price  <derek@ximbiot.com>
71486
71487         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71488         Correct grammar.
71489
71490 2006-07-17  Bruno Haible  <bruno@clisp.org>
71491
71492         * modules/list: New file.
71493         * modules/array-list: New file.
71494         * modules/carray-list, modules/carray-list-tests: New files.
71495         * modules/linked-list, modules/linked-list-tests: New files.
71496         * modules/avltree-list, modules/avltree-list-tests: New files.
71497         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71498         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71499         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71500         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71501         * modules/oset: New file.
71502         * modules/array-oset: New file.
71503         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71504         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71505         * tests/test-carray_list.c: New file.
71506         * tests/test-linked_list.c: New file.
71507         * tests/test-avltree_list.c: New file.
71508         * tests/test-rbtree_list.c: New file.
71509         * tests/test-linkedhash_list.c: New file.
71510         * tests/test-avltreehash_list.c: New file.
71511         * tests/test-rbtreehash_list.c: New file.
71512         * tests/test-avltree_oset.c: New file.
71513         * tests/test-rbtree_oset.c: New file.
71514         * MODULES.html.sh (Container data structures): New section.
71515
71516 2006-07-17  Bruno Haible  <bruno@clisp.org>
71517
71518         * m4/gl_list.m4: New file.
71519
71520 2006-07-17  Bruno Haible  <bruno@clisp.org>
71521
71522         * lib/gl_list.h: New file.
71523         * lib/gl_list.c: New file.
71524         * lib/gl_array_list.h: New file.
71525         * lib/gl_array_list.c: New file.
71526         * lib/gl_carray_list.h: New file.
71527         * lib/gl_carray_list.c: New file.
71528         * lib/gl_linked_list.h: New file.
71529         * lib/gl_linked_list.c: New file.
71530         * lib/gl_anylinked_list1.h: New file.
71531         * lib/gl_anylinked_list2.h: New file.
71532         * lib/gl_avltree_list.h: New file.
71533         * lib/gl_avltree_list.c: New file.
71534         * lib/gl_anyavltree_list1.h: New file.
71535         * lib/gl_anyavltree_list2.h: New file.
71536         * lib/gl_rbtree_list.h: New file.
71537         * lib/gl_rbtree_list.c: New file.
71538         * lib/gl_anyrbtree_list1.h: New file.
71539         * lib/gl_anyrbtree_list2.h: New file.
71540         * lib/gl_anytree_list1.h: New file.
71541         * lib/gl_anytree_list2.h: New file.
71542         * lib/gl_linkedhash_list.h: New file.
71543         * lib/gl_linkedhash_list.c: New file.
71544         * lib/gl_anyhash_list1.h: New file.
71545         * lib/gl_anyhash_list2.h: New file.
71546         * lib/gl_avltreehash_list.h: New file.
71547         * lib/gl_avltreehash_list.c: New file.
71548         * lib/gl_rbtreehash_list.h: New file.
71549         * lib/gl_rbtreehash_list.c: New file.
71550         * lib/gl_anytreehash_list1.h: New file.
71551         * lib/gl_anytreehash_list2.h: New file.
71552
71553         * lib/gl_oset.h: New file.
71554         * lib/gl_oset.c: New file.
71555         * lib/gl_array_oset.h: New file.
71556         * lib/gl_array_oset.c: New file.
71557         * lib/gl_avltree_oset.h: New file.
71558         * lib/gl_avltree_oset.c: New file.
71559         * lib/gl_rbtree_oset.h: New file.
71560         * lib/gl_rbtree_oset.c: New file.
71561         * lib/gl_anytree_oset.h: New file.
71562
71563 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71564
71565         * m4/mkancesdirs.m4: New file.
71566         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71567         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71568         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71569         it.
71570
71571 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71572
71573         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71574         * lib/mkancesdirs.h: New files.
71575         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71576         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71577         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71578         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71579         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71580         callers changed.  Revamp internals significantly, by not
71581         attempting to create directories that are temporarily more
71582         permissive than the final results.  Do not attempt to use
71583         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71584         This removes some race conditions, fixes some bugs, and simplifies
71585         things.  Use new dirchownmod function to do owner and mode changes.
71586         * lib/mkdir-p.h: Likewise.
71587         * lib/modechange.c (octal_to_mode): New function.
71588         (struct mode_change): New member mentioned.
71589         (make_node_op_equals): New arg mentioned.  All callers changed.
71590         (mode_compile): Keep track of which mode bits the user has explicitly
71591         mentioned.
71592         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71593         New arg PMODE_BITS, to keep track of which mode bits the user
71594         mentioned; it treats S_ISUID and S_ISGID speciall.
71595         All callers changed.
71596         * lib/modechange.h: Likewise.
71597
71598 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71599
71600         * MODULES.html.sh: Add mkancestors.
71601         * modules/mkancesdirs: New module.
71602         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71603         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71604         The chdir-safer and afs files are now orphans; I'll remove them
71605         unless someone speaks up.
71606         Add lib/dirchownmod.c, lib/dirchownmod.h.
71607         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71608         Add lchown, mkancesdirs.
71609         (Maintainer): Add self.
71610
71611 2006-07-15  Karl Berry  <karl@gnu.org>
71612
71613         * gnulib-tool: help message wording/arrangement.
71614
71615 2006-07-14  Simon Josefsson  <jas@extundo.com>
71616
71617         * doc/gnulib.texi (Libtool and Windows): New section.
71618
71619 2006-07-12  Simon Josefsson  <jas@extundo.com>
71620
71621         * modules/gendocs (License): Fix license, approved by Karl.
71622
71623 2006-07-12  Eric Blake  <ebb9@byu.net>
71624
71625         * MODULES.html.sh: Add gendocs.
71626
71627 2006-07-11  Eric Blake  <ebb9@byu.net>
71628
71629         * modules/fdl: New module, to install doc/fdl.texi.
71630         * MODULES.html.sh: Add new section for documentation modules.
71631         * gnulib-tool: Avoid space-tab.
71632         (--doc-base): New option, to manage files from doc.
71633
71634 2006-07-11  Eric Blake  <ebb9@byu.net>
71635
71636         * m4/absolute-header.m4: Fix comments to match recent change.
71637
71638 2006-07-11  Eric Blake  <ebb9@byu.net>
71639
71640         * gnulib-tool: List --doc-base before --tests-base.
71641
71642 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71643
71644         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71645
71646 2006-07-11  Bruno Haible  <bruno@clisp.org>
71647
71648         * README: Mention where to put documentation.
71649
71650 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71651
71652         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71653
71654 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71655
71656         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71657         to stdint.m4.
71658
71659 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71660
71661         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71662         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71663         "no/such/file/stdint.h" when there is no such file, so that
71664         the resulting C code can be parsed by dodgy compilers.
71665         Problems reported by Bob Proulx.
71666
71667 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71668
71669         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71670         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71671         macros into the GNU _D_EXACT_NAMLEN.
71672         * lib/savedir.c:  Likewise.
71673         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71674
71675 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71676         and Paul Eggert  <eggert@cs.ucla.edu>
71677
71678         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71679         * m4/savedir.m4:
71680         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71681         macros into the GNU _D_EXACT_NAMLEN.
71682
71683 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71684
71685         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71686         around the absolute name, to work around a problem with the HP-UX
71687         11.23 native C compiler, reported by Bob Proulx.
71688
71689 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * doc/maintain.texi, make-stds.texi: Sync from
71692         <http://savannah.gnu.org/projects/gnustandards>.
71693
71694 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71695
71696         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71697
71698 2006-07-09  Jim Meyering  <jim@meyering.net>
71699
71700         * m4/glob.m4: Remove a doubled word in a comment.
71701
71702 2006-07-09  Jim Meyering  <jim@meyering.net>
71703
71704         * lib/argp-pv.c: Remove a doubled word in a comment.
71705         * lib/check-version.c (check_version): Likewise.
71706         * lib/javacomp.c (compile_java_class): Likewise.
71707
71708 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71709
71710         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71711         for the benefit of people using Autoconf 2.60.  If you want to
71712         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71713         (or m4/onceonly.m4, if pre-2.57) manually.
71714
71715 2006-07-08  Jim Meyering  <jim@meyering.net>
71716
71717         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71718         comment.
71719         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71720         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71721         comment.
71722
71723 2006-07-08  Jim Meyering  <jim@meyering.net>
71724
71725         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71726
71727 2006-07-07  Simon Josefsson  <jas@extundo.com>
71728
71729         * tests/test-crc.c: Change expected crc value, the test vector
71730         were probably computed using the old broken crc.c?
71731
71732 2006-07-06  Simon Josefsson  <jas@extundo.com>
71733
71734         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71735         now the canonical place for the M4 file).
71736
71737         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71738         from the sys_socket dependency now.
71739
71740         * modules/inet_pton (Files): Ditto.
71741
71742         * modules/inet_ntop (Files): Ditto.
71743
71744 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71745
71746         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71747         not gl_PREREQ_GETUSERSHELL.
71748
71749 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71750
71751         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71752         with only one argument, for Autoconf 2.60.
71753         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71754         expand to nothing, so add a shell command to avoid syntax error.
71755         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71756
71757 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71758
71759         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71760
71761 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71762
71763         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71764         no longer needed.  Check for isblank decl.
71765         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71766         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71767         of existence.
71768
71769 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71770
71771         * lib/getloadavg.c: Use __VMS, not VMS.
71772         * lib/getopt.c: Likewise.
71773         * lib/getpagesize.h: Likewise.
71774         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71775         and probably does not work.
71776
71777 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71778
71779         * lib/.cppi-disable: Add wcwidth.
71780         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71781         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71782         (ISGRAPH): Remove.  All uses changed to isgraph.
71783         (FOLD) [!defined _LIBC]: Remove special case.
71784         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71785         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71786         HAVE_ISBLANK.
71787         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71788         case.
71789
71790 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71791
71792         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71793         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71794         brackets.  Other minor changes to suppress some compiler
71795         warnings.
71796
71797 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71798         and Paul Eggert  <eggert@cs.ucla.edu>
71799
71800         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71801         of invoking obsolescent AC_HEADER_DIRENT macro.
71802         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71803         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71804         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71805         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71806         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71807         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71808         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71809         * m4/readdir.m4: Remove; no longer needed.
71810
71811 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71812         and Paul Eggert  <eggert@cs.ucla.edu>
71813
71814         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71815         Don't worry about this obsolete case any more.
71816         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71817         directories.
71818         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71819         worry about this obsolete case any more.
71820         * lib/fts.c: Likewise.
71821         * lib/getcwd.c: Likewise.
71822         * lib/glob.h: Likewise.
71823         * lib/savedir.c: Likewise.
71824
71825 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71826
71827         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71828         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71829         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71830         needed.
71831         All uses removed.
71832         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71833         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71834         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71835         needed.
71836         * m4/getdate.m4 (gl_GETDATE): Likewise.
71837         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71838         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71839         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71840         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71841         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71843         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71844         needed.
71845
71846 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71847
71848         * lib/memcasecmp.c: Include <limits.h>.
71849         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71850         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71851         Don't assume isdigit succeeds only on '0' through '9'.
71852
71853 2006-07-05  Eric Blake  <ebb9@byu.net>
71854
71855         * modules/getaddrinfo (Depends-on): Add snprintf.
71856
71857 2006-07-05  Eric Blake  <ebb9@byu.net>
71858
71859         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71860         to avoid 'header present but could not be compiled' on cygwin.
71861
71862 2006-07-05  Eric Blake  <ebb9@byu.net>
71863
71864         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71865         missing from netdb.h.
71866         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71867
71868 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71869
71870         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71871         no longer needed.
71872         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71873         * m4/getdate.m4 (gl_GETDATE): Likewise.
71874         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71875         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71876         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71877         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71878         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71879
71880 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71881
71882         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71883         All uses of is_space replaced by isspace.
71884         * lib/exit.h: Don't talk about STDC_HEADERS.
71885         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71886         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71887         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71888         replaced by isprint etc.
71889         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71890         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71891         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71892         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71893         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71894         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71895
71896 2006-07-05  Bruno Haible  <bruno@clisp.org>
71897
71898         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71899         the function exists, before testing against AIX.
71900         Reported by Martin Lambers <marlam@marlam.de>.
71901
71902 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71903
71904         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71905         From Mark D. Baushke.
71906
71907 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71910         to the absolute name, not just one, to bypass Sun C 5.8's
71911         "warning: #include of /usr/include/... may be non-portable".
71912
71913 2006-07-04  Eric Blake  <ebb9@byu.net>
71914
71915         * modules/dirname-tests: New test module.
71916         * tests/test-dirname.c: New file, replacing dirname.c
71917         TEST_DIRNAME section that was recently deleted.
71918
71919 2006-07-04  Bruno Haible  <bruno@clisp.org>
71920
71921         Assume ANSI C header files and <ctype.h> functions.
71922         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71923         (mbsnwidth): Use isprint, iscntrl instead.
71924
71925 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         Merge from coreutils.
71928         * MODULES.html.sh: Add xstrtold.
71929         * modules/xstrtold: New file.
71930         * modules/cycle-check (Files): Add lib/same-inode.h.
71931         * modules/dirname (Files): Add m4/double-slash-root.m4.
71932         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71933         * modules/mkdir-p (Files): Add lib/same-inode.h.
71934         * modules/same (Files): Add lib/same-inode.h.
71935
71936 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71937
71938         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71939         This is to keep the terminology clean; POSIX talks about
71940         "absolute pathnames", not "full pathnames", but the GNU
71941         Coding Standards say to use "path" for something else;
71942         so use "absolute" to keep both sides happy.
71943         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71944         Set gl_absolute_header, not gl_full_header_path.
71945         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71946         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71947         All uses changed.
71948
71949         Merge from coreutils.
71950
71951         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71954         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71955         want to require the building of c-strtod.o.
71956         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71957         needs -lm directly.
71958         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71959
71960         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71961
71962         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71963         --as-needed option if available.  Problem reported by Albert Chin in
71964         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71965         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71966         cc merely issues a bunch of annoying warnings for --as-needed
71967         (this problem was reported by Bob Proulx).  Also, try linking with
71968         -lm to detect a bug in binutils 2.16 (this problem was reported
71969         by Ralf Wildenhues).
71970
71971         2006-06-18  Jim Meyering  <jim@meyering.net>
71972
71973         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71974         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71975         macro.
71976         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71977         also check for glibc-2.4's abort-inducing bug.
71978
71979         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71980         Low-probability clean-up should be to use rmdir to get rid of
71981         the just-created directory, not unlink.
71982
71983         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71984         configure fail, and request a bug report to inform us about it.
71985         Add a comment that, barring reports to the contrary, in 2007 we'll
71986         assume ftruncate is universally available.
71987
71988         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71989
71990         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71991
71992         2006-03-12  Jim Meyering  <jim@meyering.net>
71993
71994         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71995         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71996         * m4/same.m4 (gl_SAME): Likewise.
71997         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71998
71999         2006-03-11  Eric Blake  <ebb9@byu.net>
72000
72001         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72002         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72003         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72004         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72005
72006 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72007
72008         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72009         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72010         reported by Mark D. Baushke, one in
72011         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72012
72013         Merge from coreutils.
72014
72015         * lib/.cppi-disable: Add stdint_.h.
72016         * lib/.cvsignore: Add stdint.h.
72017
72018         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72021         both double and long double versions.
72022         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72023         * lib/xstrtold.c: New file.
72024         * lib/xstrtod.h (xstrtold): New decl.
72025
72026         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72027
72028         * lib/filemode.c (setst): Remove.
72029         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72030         (arguably) clearer, and the generated code is a bit smaller on my
72031         Debian GNU/Linux stable x86 host.
72032
72033         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72034
72035         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72036         Assume that filemode.h includes sys/types.h and sys/stat.h.
72037         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72038         (ftypelet): Reorder to put common cases first, for efficiency.
72039         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72040         to do 'M'.
72041         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72042         of 10, for compatibility with FreeBSD.  All callers changed.
72043         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72044         types that can't be deduced solely from st_mode.  First arg is now a
72045         const pointer.
72046         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72047         (strmode): Renamed from mode_string.
72048         (filemodestring): New decl.
72049         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72050         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72051         needed.
72052         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72053
72054         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72055
72056         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72057         fsusage.h now does that.  Include fsusage.h first, to test interface.
72058         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72059         at most one method (the old code could have generated decls that
72060         didn't conform to C89, not that this was ever exercised).
72061         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72062
72063         2006-03-19  Jim Meyering  <jim@meyering.net>
72064
72065         Work even in a chroot where d_ino values for entries in "/"
72066         don't match the stat.st_ino values for the same names.
72067         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72068         number, iterate through all entries again, using lstat instead.
72069         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72070         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72071
72072         * lib/getcwd.c (__getcwd): Clarify a comment.
72073         Use memcpy in place of a call to strcpy.
72074
72075         2006-03-12  Jim Meyering  <jim@meyering.net>
72076
72077         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72078         matches that of the current directory (which we're about to chdir ".."
72079         out of), then save the dev-ino of the parent, instead.
72080
72081         * lib/same-inode.h (SAME_INODE): New file/macro.
72082         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72083         Include "same-inode.h", instead.
72084         * lib/same.c: Likewise.
72085         * lib/cycle-check.h: Include "same-inode.h".
72086         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72087         * lib/cycle-check.c (SAME_INODE): Remove definition.
72088         * lib/root-dev-ino.h: Include "same-inode.h".
72089
72090         2006-03-11  Eric Blake  <ebb9@byu.net>
72091
72092         * lib/same.c (same_name): s/base_name/last_component/
72093         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72094         * lib/filenamecat.c (file_name_concat): Likewise.
72095
72096         2006-03-11  Eric Blake  <ebb9@byu.net>,
72097                     Paul Eggert  <eggert@cs.ucla.edu>
72098
72099         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72100         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72101         drive prefix.
72102         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72103         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72104         (last_component): New method.
72105         * lib/dirname.c (dir_len): Determine when drive letters need a
72106         subsequent slash.  Preserve // when it is special.
72107         (dir_name): Don't append dot when drive letter is absolute.
72108         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72109         * lib/basename.c (base_name): New semantics - malloc the result.
72110         Preserve // when it is special.  Preserve relative files that look
72111         like drive letters.
72112         (base_len): Preserve // when it is special.
72113         (last_component): New method, similar to old base_name semantics.
72114         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72115         base_name.  Strip redundant slashes from ///.
72116
72117 2006-07-03  Jim Meyering  <jim@meyering.net>
72118
72119         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72120         macro is used before the first cycle_check call.
72121
72122 2006-07-03  Eric Blake  <ebb9@byu.net>
72123
72124         * modules/dirname (Depends-on): Add xstrndup.
72125
72126 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72127
72128         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72129         test cases, so that config.log is a bit easier to follow.
72130
72131 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72132
72133         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72134         both are 64 bits, since this seems to be the tradition, and this
72135         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72136         we ever run into a host that prefers long long to long in this
72137         case, we'll need another configure-time test.  Problem reported by
72138         Jim Meyering.
72139
72140 2006-07-02  Eric Blake  <ebb9@byu.net>
72141
72142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72143
72144 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72145
72146         * modules/inttypes (Depends-on): No longer depends on stdint.
72147         * modules/stdint (Description): Say more about assumptions.
72148         Say that the fast types might differ.  Say macros are used.
72149         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72150         (Makefile.am): Revise list of substituted symbols to match
72151         new stdint.m4.
72152         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72153         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72154         * tests/test-stdint.c (verify_same_types)
72155         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72156         the code conforms to C99/C89.
72157         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72158         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72159
72160 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72161
72162         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72163         but fix a bug, by requiring at least 64 bits.
72164         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72165         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72166         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72167         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72168
72169         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72170         changes.  Make 2.59 a prerequisite.  Check and substitute for
72171         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72172         inttypes.h.  Do not use special include files; just use the
72173         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72174         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72175         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72176         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72177         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72178         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72179         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72180         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72181         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72182         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72183         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72184         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72185         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72186         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72187         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72188         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72189         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72190         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72191         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72192         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72193         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72194         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72195         not check for things that C99 does not require, e.g., int8_t.  If
72196         a test isn't needed unless <stdint.h> isn't working, and is
72197         unlikely to be needed for any other reason, then don't do it
72198         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72199         size_t, since we assume C89 freestanding at least.  Do not check
72200         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72201         the right thing even if the types are not defined.  Instead use:
72202         (gl_STDINT_TYPE_PROPERTIES): New macro.
72203         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72204         testing whether <sys/types.h> clashes, as Autoconf does this for
72205         us now.  All uses removed.
72206         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72207         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72208         (gl_CHECK_TYPE_SAME):
72209         Remove; no longer needed.
72210         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72211         exists, since we'll return 0 anyway in that case.
72212         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72213
72214 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72215
72216         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72217         possible collision with system files.
72218         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72219         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72220         WCHAR_MIN and WCHAR_MAX in this case.
72221         (<stddef.h>): Do not include; no longer needed.
72222         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72223         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72224         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72225         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72226         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72227         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72228         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72229         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72230         !defined(__c99))]: Include in this case too, since it's harmless
72231         now.
72232         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72233         dangerous to do so.
72234         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72235         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72236         (_STDINT_MIN, _STDINT_MAX): New macros.
72237         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72238         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72239         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72240         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72241         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72242         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72243         macros, not typedefs; this simplifies things quite a bit.
72244         Use long int for all types narrower than int64_t.
72245         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72246         Define in terms of long long int or int64_t or long int,
72247         not int64_t or int32_t.  This saves some compile-time testing.
72248         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72249         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72250         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72251         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72252         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72253         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72254         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72255         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72256         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72257         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72258         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72259         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72260         undef any previous version and define our own version, for
72261         simplicity and consistency with the new macros for types.
72262         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72263         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72264         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72265         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72266         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72267         @WINT_T_SUFFIX@ to keep things simple here.
72268         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72269         Simplify by assuming typical 8/16/32/64 host, since we're
72270         already doing that elsewhere anyway.
72271         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72272         and assume long long int is 64 bits if available.  This
72273         speeds up 'configure'.
72274
72275 2006-07-01  Eric Blake  <ebb9@byu.net>
72276
72277         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72278         Reported by Andreas Buening.
72279
72280 2006-07-01  Eric Blake  <ebb9@byu.net>
72281
72282         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72283
72284 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72285
72286         * lib/getaddrinfo.c: fixed typo
72287
72288 2006-06-29  Jim Meyering  <jim@meyering.net>
72289
72290         * modules/strftime (Maintainer): Add my name, since with the
72291         FPRINTFTIME changes strftime.c has forked from glibc.
72292
72293 2006-06-29  Eric Blake  <ebb9@byu.net>
72294
72295         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72296
72297 2006-06-29  Eric Blake  <ebb9@byu.net>
72298
72299         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72300
72301 2006-06-29  Eric Blake  <ebb9@byu.net>
72302
72303         * lib/stat_.h: New file.
72304
72305 2006-06-29  Eric Blake  <ebb9@byu.net>
72306
72307         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72308         unused static function.
72309
72310 2006-06-29  Eric Blake  <ebb9@byu.net>
72311
72312         * doc/functions.texi (Function Portability): Document missing lstat
72313         on mingw.
72314
72315 2006-06-29  Eric Blake  <ebb9@byu.net>
72316
72317         * MODULES.html.sh: Add sys_stat.
72318         * modules/sys_stat: New module.
72319         * modules/mkstemp (Depends-on): Add sys_stat.
72320
72321 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72322
72323         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72324
72325 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72326
72327         * m4/c-bs-a.m4: Removed.
72328
72329 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72330
72331         * lib/strftime.c: Assume strftime() exists.
72332
72333 2006-06-29  Derek Price  <derek@ximbiot.com>
72334
72335         * modules/c-bs-a: Removed - \a is C89.
72336         * MODULES.html.sh: Remove c-bs-a.
72337
72338 2006-06-29  Bruno Haible  <bruno@clisp.org>
72339
72340         * modules/wcwidth (License): Change to LGPL.
72341
72342 2006-06-28  Simon Josefsson  <jas@extundo.com>
72343
72344         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72345         on _WIN32.
72346
72347         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72348         getnameinfo.
72349
72350 2006-06-28  Simon Josefsson  <jas@extundo.com>
72351
72352         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72353
72354 2006-06-28  Simon Josefsson  <jas@extundo.com>
72355
72356         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72357         functions there.  It will succeed on Windows XP, but on Windows
72358         2000 and (presumably) earlier, it will fail, and use the internal
72359         re-implementation.
72360         (use_win32_p): New function.
72361         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72362         Support AI_NUMERICSERV to disable getservbyname.
72363         (getnameinfo): New function, only supports
72364         NI_NUMERICHOST|NI_NUMERICSERV for now.
72365
72366         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72367         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72368         getnameinfo.
72369
72370 2006-06-28  Eric Blake  <ebb9@byu.net>
72371
72372         * modules/wcwidth: New file.
72373         * modules/mbchar (Depends-on): Add wcwidth.
72374         * modules/mbswidth (Depends-on): Add wcwidth.
72375         * MODULES.html.sh: Add wcwidth.
72376
72377 2006-06-28  Eric Blake  <ebb9@byu.net>
72378
72379         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72380         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72381
72382 2006-06-28  Eric Blake  <ebb9@byu.net>
72383
72384         * lib/xvasprintf.h: Fix comments.
72385
72386 2006-06-28  Eric Blake  <ebb9@byu.net>
72387
72388         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72389         * lib/mbswidth.c (wcwidth): Move from here...
72390         * lib/wcwidth.h: ...to this new file.
72391
72392 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72393
72394         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72395
72396         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72397         it's obsolete.
72398         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72399
72400 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72401
72402         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72403         Autoconf 2.60 says this stuff was obsolete.
72404
72405 2006-06-28  Bruno Haible  <bruno@clisp.org>
72406
72407         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72408
72409 2006-06-28  Bruno Haible  <bruno@clisp.org>
72410
72411         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72412         gt_TYPE_WCHAR_T.
72413
72414 2006-06-28  Bruno Haible  <bruno@clisp.org>
72415
72416         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72417         declaration for wcwidth.
72418         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72419
72420 2006-06-28  Bruno Haible  <bruno@clisp.org>
72421
72422         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72423         (mkdir): Define using _mkdir.
72424
72425 2006-06-28  Bruno Haible  <bruno@clisp.org>
72426
72427         * lib/getaddrinfo.h: Fix POSIX URL.
72428         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72429         _WIN32.
72430         (use_win32_p): Make static.
72431         (getaddrinfo): Reject service name if it is empty or does not consist
72432         solely of decimal digits, or if its value is > 65535.
72433         (getnameinfo): Remove useless casts.
72434
72435 2006-06-27  Simon Josefsson  <jas@extundo.com>
72436
72437         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72438         Eggert and Martin Lambers.
72439
72440 2006-06-27  Simon Josefsson  <jas@extundo.com>
72441
72442         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72443         Eggert and Martin Lambers.
72444
72445 2006-06-27  Bruno Haible  <bruno@clisp.org>
72446
72447         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72448         result to 0, not to empty.
72449         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72450
72451 2006-06-27  Bruno Haible  <bruno@clisp.org>
72452
72453         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72454
72455 2006-06-26  Simon Josefsson  <jas@extundo.com>
72456
72457         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72458         present.
72459
72460 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72461
72462         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72463         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72464         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72465
72466 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72467
72468         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72469
72470 2006-06-26  Bruno Haible  <bruno@clisp.org>
72471
72472         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72473
72474 2006-06-26  Bruno Haible  <bruno@clisp.org>
72475
72476         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72477
72478 2006-06-26  Bruno Haible  <bruno@clisp.org>
72479
72480         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72481         SGI C compiler in pre-C99 mode.
72482         Suggested by Mark D. Baushke and Larry Jones.
72483
72484 2006-06-26  Bruno Haible  <bruno@clisp.org>
72485
72486         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72487         WCHAR_MAX.
72488         Reported by Mark D. Baushke and Larry Jones.
72489
72490 2006-06-26  Bruno Haible  <bruno@clisp.org>
72491
72492         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72493         in pre-C99 mode.
72494         Suggested by Mark D. Baushke and Larry Jones.
72495
72496 2006-06-23  Simon Josefsson  <jas@extundo.com>
72497             Bruno Haible  <bruno@clisp.org>
72498
72499         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72500         Emit mostlyclean-local rule.
72501         (func_emit_tests_Makefile_am): Likewise.
72502         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72503
72504 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72505
72506         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72507
72508 2006-06-23  Bruno Haible  <bruno@clisp.org>
72509
72510         * tests/test-stdint.c: Update to match ISO C 99 Technical
72511         Corrigendum 1.
72512
72513 2006-06-23  Bruno Haible  <bruno@clisp.org>
72514
72515         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72516
72517 2006-06-23  Bruno Haible  <bruno@clisp.org>
72518
72519         * lib/stdint_.h: Treat IRIX like OpenBSD.
72520
72521 2006-06-23  Bruno Haible  <bruno@clisp.org>
72522
72523         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72524         ISO C 99 Technical Corrigendum 1.
72525
72526 2006-06-22  Simon Josefsson  <jas@extundo.com>
72527
72528         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72529         MinGW.
72530
72531 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72532
72533         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72534         needed.  Some compiler complained about some of them.  Problem reported
72535         by Larry Jones in
72536         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72537
72538 2006-06-21  Simon Josefsson  <jas@extundo.com>
72539
72540         * tests/test-getaddrinfo.c: New file.
72541
72542         * modules/getaddrinfo-tests: New file.
72543
72544         * MODULES.html.sh: Add inet_pton.
72545
72546         * modules/inet_pton: New file.
72547
72548 2006-06-21  Simon Josefsson  <jas@extundo.com>
72549
72550         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72551         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72552         of using the (limited) gnulib implementation on Windows XP.
72553
72554         * m4/inet_pton.m4: New file.
72555
72556 2006-06-21  Simon Josefsson  <jas@extundo.com>
72557
72558         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72559         variable.
72560
72561         * lib/socket_.h: Don't define WINVER.
72562
72563         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72564         slightly modified to work in gnulib.
72565
72566 2006-06-21  Simon Josefsson  <jas@extundo.com>
72567
72568         * doc/gnulib.texi (Windows sockets): Add.
72569
72570 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72571
72572         * lib/read-file.c (fread_file): Start with buffer allocation of
72573         0 bytes rather than 1 byte; this simplifies the code.
72574         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72575         code to free buffer and save/restore errno.
72576         (internal_read_file): Remove unused local.
72577
72578 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72579
72580         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72581         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72582         Problem reported by Denis Excoffier in
72583         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72584
72585 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72586
72587         * modules/sys_socket, modules/socklen: Include sys/types since
72588         FreeBSD 4.x's sys/socket.h needs it.
72589
72590 2006-06-19  Simon Josefsson  <jas@extundo.com>
72591
72592         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72593
72594 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72595
72596         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72597
72598 2006-06-19  Bruno Haible  <bruno@clisp.org>
72599
72600         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72601         and FULL_PATH_INTTYPES_H in angle brackets.
72602         Reported by Mark D. Baushke <mdb@gnu.org>.
72603
72604 2006-06-17  Eric Blake  <ebb9@byu.net>
72605
72606         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72607         errno.
72608
72609 2006-06-17  Bruno Haible  <bruno@clisp.org>
72610
72611         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72612         <sys/inttypes.h>.
72613
72614 2006-06-17  Bruno Haible  <bruno@clisp.org>
72615
72616         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72617         whether errno is declared. Assume <errno.h> declares errno.
72618
72619 2006-06-17  Bruno Haible  <bruno@clisp.org>
72620
72621         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72622
72623 2006-06-17  Bruno Haible  <bruno@clisp.org>
72624
72625         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72626         problem on Solaris 2.5.1.
72627
72628 2006-06-16  Eric Blake  <ebb9@byu.net>
72629
72630         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72631         * lib/unicodeio.c [!defined errno]: Likewise.
72632         * lib/strtol.c [!defined errno]: Likewise.
72633         * lib/strtod.c [!defined errno]: Likewise.
72634
72635 2006-06-15  Eric Blake  <ebb9@byu.net>
72636
72637         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72638
72639 2006-06-15  Eric Blake  <ebb9@byu.net>
72640
72641         * config/srclist.txt (ssize_t.m4): Lose sync.
72642
72643 2006-06-15  Bruno Haible  <bruno@clisp.org>
72644
72645         * modules/stdint (Files): Include m4/full-header-path.m4,
72646         m4/size_max.m4, m4/wchar_t.m4.
72647         (Makefile.am): Many more substitutions.
72648         * modules/stdint-tests: New file.
72649         * tests/test-stdint.c: New file.
72650
72651 2006-06-15  Bruno Haible  <bruno@clisp.org>
72652
72653         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72654         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72655         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72656         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72657         gl_CHECK_TYPE_SAME): New macros.
72658
72659 2006-06-15  Bruno Haible  <bruno@clisp.org>
72660
72661         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72662
72663 2006-06-15  Bruno Haible  <bruno@clisp.org>
72664
72665         * lib/stdint_.h: Rewritten to be fully auto-configured.
72666         Fixes bug on HP-UX/IA64.
72667
72668 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72669
72670         * lib/getdate.y (__attribute__): Don't define if already defined.
72671         Problem reported by Larry Jones.
72672         * lib/utimens.c (__attribute__): Likewise.
72673
72674 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72677         reported by Andreas Schwab.
72678
72679 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72680             Bruno Haible  <bruno@clisp.org>
72681
72682         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72683         check for the declaration of strnlen and a run test that exposes the
72684         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72685         rpl_strndup.
72686
72687 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72688             Bruno Haible  <bruno@clisp.org>
72689
72690         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72691
72692 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72693
72694         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72695         compile test, for Tru64 4.0D.
72696
72697 2006-05-28  Karl Berry  <karl@gnu.org>
72698
72699         * config/srclist.txt (printf-args.c): lose sync.
72700
72701 2006-05-26  Martin Lambers  <marlam@marlam.de>
72702
72703         * lib/getpass.c: Updates the test for the native W32 API, and adds
72704         missing includes, thus fixing compilation warnings.
72705
72706 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72707
72708         * lib/exclude.c (exclude_fnmatch): New function.
72709         (excluded_file_name): Call exclude_fnmatch.
72710         * lib/exclude.h (excluded_file_name): New prototype
72711
72712 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72713
72714         * lib/tempname.c (small_open, large_open): New macros.
72715         (__open, __open64) [!_LIBC]: Remove.
72716         (__gen_tempname): Use small_open and large_open instead of __open
72717         and __open64.  This fixes a portability bug on HP-UX 11.11i
72718         reported by Simon Wing-Tang in
72719         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72720
72721 2006-05-24  Bruno Haible  <bruno@clisp.org>
72722
72723         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72724         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72725         Reported by Thorsten Maerz <torte@netztorte.de> via
72726         Aaron Stone <aaron@serendipity.cx>.
72727
72728 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72729
72730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72731         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72732         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72733         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72734         not really conditional on the cache.
72735         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72736
72737 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72738
72739         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72740         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72741         (my_usleep): Don't mishandle maximum value.
72742
72743 2006-05-19  Jim Meyering  <jim@meyering.net>
72744
72745         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72746
72747 2006-05-17  Bruno Haible  <bruno@clisp.org>
72748
72749         Cygwin portability.
72750         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72751
72752 2006-05-17  Bruno Haible  <bruno@clisp.org>
72753
72754         * lib/stdint_.h: Fix recognition of Cygwin.
72755
72756 2006-05-15  Bruno Haible  <bruno@clisp.org>
72757
72758         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72759         on libtool patch by Ralf Wildenhues.
72760
72761 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72762
72763         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72764         test for C99 conformance; (bool) 0.5 is an integer constant
72765         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72766         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72767
72768 2006-05-11  Simon Josefsson  <jas@extundo.com>
72769
72770         * m4/xvasprintf.m4: Fix obvious typo.
72771
72772 2006-05-11  Jim Meyering  <jim@meyering.net>
72773
72774         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72775         James Lemley.
72776
72777 2006-05-10  Simon Josefsson  <jas@extundo.com>
72778
72779         * lib/md4.c: Typo fix, update copyright years.
72780         (K1, K2): Don't use L because it turn computations into 64-bit on
72781         64-bit platforms.
72782
72783 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72784
72785         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72786         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72787         unwanted sign propagation, e.g., on hosts with 64-bit int.
72788         There still are some problems with reeelly weird theoretical hosts
72789         (e.g., 33-bit int) but it's not worth worrying about now.
72790         * lib/sha1.c (rol): Likewise.
72791         (K1, K2, K3, K4): Remove unnecessary L suffix.
72792
72793 2006-05-10  Bruno Haible  <bruno@clisp.org>
72794
72795         * lib/des.c: Cast to avoid warnings.
72796
72797 2006-05-09  Bruno Haible  <bruno@clisp.org>
72798
72799         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72800         (Depends-on): Depend also on xsize, stdarg.
72801         (configure.ac): Add gl_XVASPRINTF.
72802
72803 2006-05-09  Bruno Haible  <bruno@clisp.org>
72804
72805         * m4/xvasprintf.m4: New file.
72806
72807 2006-05-09  Bruno Haible  <bruno@clisp.org>
72808
72809         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72810         (EOVERFLOW): Define fallback value.
72811         (xstrcat): New function.
72812         (xvasprintf): Recognize the special case of a string concatenation.
72813
72814 2006-05-08  Eric Blake  <ebb9@byu.net>
72815
72816         * gnulib-tool (func_version): Base copyright year on CVS date.
72817         (func_emit_copyright_notice): New function.
72818         (func_emit_lib_Makefile_am): Use it.
72819         (func_emit_tests_Makefile_am): Likewise.
72820         (func_import): Likewise.
72821
72822 2006-05-08  Bruno Haible  <bruno@clisp.org>
72823
72824         * modules/stdarg: New file.
72825         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72826
72827 2006-05-08  Bruno Haible  <bruno@clisp.org>
72828
72829         * m4/stdarg.m4: New file, from GNU gettext.
72830
72831 2006-05-08  Bruno Haible  <bruno@clisp.org>
72832
72833         * config/srclist.txt (build-aux/config.rpath): different from latest
72834         release.
72835
72836 2006-05-08  Bruno Haible  <bruno@clisp.org>
72837
72838         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72839
72840 2006-05-05  Jim Meyering  <jim@meyering.net>
72841
72842         * m4/warning.m4: New file, derived from bison's file by the same name.
72843
72844 2006-05-03  Bruno Haible  <bruno@clisp.org>
72845
72846         * lib/stdint_.h: Shorter URL.
72847         * lib/inttypes.h: Likewise.
72848
72849 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72850
72851         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72852
72853 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72854
72855         * lib/verify.h: Document the internals better.  Most of this change
72856         was written by Bruno Haible.
72857
72858 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72859
72860         * doc/verify.texi: New file, partly based on a proposal by
72861         Bruno Haible.
72862
72863 2006-05-02  Bruno Haible  <bruno@clisp.org>
72864
72865         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72866         test from here...
72867         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72868
72869 2006-04-29  Bruno Haible  <bruno@clisp.org>
72870
72871         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72872         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72873
72874 2006-04-29  Bruno Haible  <bruno@clisp.org>
72875
72876         * gnulib-tool: Make --update option actually work.
72877
72878 2006-04-29  Bruno Haible  <bruno@clisp.org>
72879
72880         * doc/gcd.texi: New file.
72881         * doc/gnulib.texi: Include it.
72882
72883 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72884
72885         * lib/getdate.y (get_date): When adding relative date, start with the
72886         initial time, not with the result of the first mktime call.
72887
72888 2006-04-25  Bruno Haible  <bruno@clisp.org>
72889
72890         * gnulib-tool (func_import): Output the include directives in three
72891         blocks, sorted separately.
72892         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72893
72894 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72897         to define main with arguments, for C++.  Reported by Eric Blake.
72898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72899         Prefer 'int main ()' to 'int main (void)', for C++.
72900         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72901         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72902         for 'main', for C99 and C++.
72903
72904 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72907         Don't assume that exit status -1 is valid.
72908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72909         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72910         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72911         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72912         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72913         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72914         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72915         functions can be used without declaring them, or that you can
72916         exit with status -1.
72917         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72918
72919 2006-04-24  Karl Berry  <karl@gnu.org>
72920
72921         * config/srclist.txt (longdouble.m4): sync lost.
72922
72923 2006-04-24  Eric Blake  <ebb9@byu.net>
72924
72925         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72926
72927 2006-04-24  Bruno Haible  <bruno@clisp.org>
72928
72929         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72930         poll() implementation in AIX.
72931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72932
72933 2006-04-24  Bruno Haible  <bruno@clisp.org>
72934
72935         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72936         assigned exactly once.
72937
72938 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72939             Bruno Haible  <bruno@clisp.org>
72940
72941         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72942         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72943         for AM_CPPFLAGS.
72944
72945 2006-04-23  Bruno Haible  <bruno@clisp.org>
72946
72947         * modules/copy-file: Depend on unistd.
72948         * modules/execute: Likewise.
72949         * modules/fatal-signal: Likewise.
72950         * modules/findprog: Likewise.
72951         * modules/mkdtemp : Likewise.
72952         * modules/pipe: Likewise.
72953         * modules/wait-process: Likewise.
72954
72955 2006-04-23  Bruno Haible  <bruno@clisp.org>
72956
72957         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72958         condition was already detected.
72959         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72960
72961 2006-04-23  Bruno Haible  <bruno@clisp.org>
72962
72963         * lib/copy-file.c: Include <unistd.h> unconditionally.
72964         * lib/execute.c: Likewise.
72965         * lib/fatal-signal.c: Likewise.
72966         * lib/findprog.c: Likewise.
72967         * lib/mkdtemp.c: Likewise.
72968         * lib/pipe.h: Likewise.
72969         * lib/pipe.c: Likewise.
72970         * lib/wait-process.h: Likewise.
72971
72972 2006-04-23  Bruno Haible  <bruno@clisp.org>
72973
72974         * gnulib-tool (func_usage): Fix --import description. Document
72975         --update.
72976         (func_import): Create temporary file in a temporary directory, if
72977         --dry-run is specified. Silence errors from 'grep' when there are no
72978         m4 files in $m4dir.
72979         (func_create_testdir): Silence errors from 'grep' when there are no
72980         m4 files in $m4dir.
72981         Reported by Karl Berry <karl@freefriends.org>.
72982
72983 2006-04-20  Bruno Haible  <bruno@clisp.org>
72984
72985         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72986         one argument, so that the code will be portable to Autoconf 2.60.
72987         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72988         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72989         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72990
72991 2006-04-19  Derek Price  <derek@ximbiot.com>
72992             Eric Blake  <ebb9@byu.net>
72993
72994         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72995         rather than "/full/path.h".  Update comment to match.  Shorten &
72996         generalize m4_translit call via AS_TR_CPP.
72997
72998 2006-04-19  Derek Price  <derek@ximbiot.com>
72999             Eric Blake  <ebb9@byu.net>
73000
73001         * lib/inttypes.h: Correct grammar in comment.
73002
73003 2006-04-18  Derek Price  <derek@ximbiot.com>
73004             Paul Eggert  <eggert@cs.ucla.edu>
73005
73006         * modules/inttypes: New file.
73007         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73008
73009 2006-04-18  Derek Price  <derek@ximbiot.com>
73010             Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73013         New files.
73014
73015 2006-04-18  Derek Price  <derek@ximbiot.com>
73016             Paul Eggert  <eggert@cs.ucla.edu>
73017
73018         * lib/inttypes.h: New file.
73019         * lib/strtoimax.c: Assume <inttypes.h>.
73020
73021 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73022
73023         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73024         isn't mounted.  Problem reported by Kir Kolyshkin.
73025
73026 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73027
73028         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73029         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73030         Derek R. Price.
73031         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73032         implementation.
73033
73034 2006-04-12  Eric Blake  <ebb9@byu.net>
73035
73036         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73037         is now done automatically by the corresponding Autoconf macro.
73038
73039 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73040
73041         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73042         time_r.h.
73043
73044 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         Merge regex changes from libc, removing some of our
73047         POSIX-conformance changes that were rejected and redoing them in a
73048         less-intrusive way.
73049
73050         * lib/regcomp.c (re_compile_internal, init_dfa):
73051         Length arg is now size_t, not Idx.  All uses changed.
73052         (peek_token): Forward decl now says internal_function.
73053         (__re_error_msgid, __re_error_msgid_idx):
73054         Now static rather than extern with attribute_hidden.
73055         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73056         For some reason libc prefers K&R style defns for external functions.
73057         (regerror) [!defined _LIBC]: Likewise.
73058         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73059         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73060         (build_range_exp, build_collating_symbol):
73061         Use K&R-style defn.
73062         (re_compile_fastmap): Use '\0' to memset, not 0.
73063         (utf8_sb_map): Make the calculations more obvious.
73064         (init_dfa, parse_bracket_exp, build_charclass_op):
73065         Call calloc and cast result, as glibc does.
73066         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73067         (build_range_exp, build_collating_symbol):
73068         Now internal functions.
73069
73070         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73071
73072         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73073         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73074         Don't depend on VMS; depend on __VMS instead, for POSIX
73075         namespace cleanness.
73076         (regoff_t): Define to ssize_t, not long int.
73077
73078         Remove the REG_ macros named below.  Instead, make the old names
73079         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73080         __USE_GNU_REGEX.
73081         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73082         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73083         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73084         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73085         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73086         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73087         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73088         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73089         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73090         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73091         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73092         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73093         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73094         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73095         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73096         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73097         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73098         (REG_NREGS):
73099         Remove.  All uses replaced by the old RE_* names.
73100         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73101         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73102         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73103         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73104         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73105         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73106         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73107         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73108         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73109         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73110         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73111         Don't bother having these macros be independent of each others'
73112         values, since they no longer exist in the POSIX name space.
73113
73114         Rename the following member names back to their old names,
73115         unless !__USE_GNU_REGEX.  All uses changed back.
73116         (buffer): Renamed from re_buffer.
73117         (allocated): Renamed from re_allocated.
73118         (used): Renamed from re_used.
73119         (syntax): Renamed from re_syntax.
73120         (fastmap): Renamed from re_fastmap.
73121         (translate): Renamed from re_translate.
73122         (can_be_null): Renamed from re_can_be_null.
73123         (regs_allocated): Renamed from re_regs_allocated.
73124         (fastmap_accurate): Renamed from re_fastmap_accurate.
73125         (no_sub): Renamed from re_no_sub.
73126         (not_bol): Renamed from re_not_bol.
73127         (not_eol): Renamed from re_not_eol.
73128         (newline_anchor): Renamed from re_newline_anchor.
73129         (num_regs): Renamed from rm_num_regs.
73130         (start): Renamed from rm_start.
73131         (end): Renamed from rm_end.
73132
73133         (free_state): Move up a bit.
73134
73135         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73136         #define to be empty.
73137         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73138         when that is what is intended.
73139         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73140         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73141         (MAX): New macro.
73142         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73143         All uses changed back to re_malloc, etc.  It's now the caller's
73144         responsibility to check for overflow; all callers changed.
73145         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73146         (re_x2nrealloc): Remove.
73147         (free_state): Remove decl.
73148
73149         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73150         (re_set_registers, re_exec):
73151         Use K&R-style defn.
73152
73153         2006-01-31  Roland McGrath  <roland@redhat.com>
73154
73155         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73156         Reported by Mike Frysinger <vapier@gentoo.org>.
73157
73158         2006-01-15  Andreas Jaeger  <aj@suse.de>
73159
73160         [BZ #1950]
73161         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73162         build_wcs_upper_buffer change.
73163         (build_wcs_upper_buffer): Change return type.
73164
73165         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73166
73167         * lib/regex_internal.h: Include <stdint.h> if available.
73168
73169         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73170
73171         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73172
73173         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73174
73175         * lib/regcomp.c: Adjust for changed secondary hash function.
73176
73177         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73178
73179         * lib/regex.h: Pretty printing.
73180         Clean up namespace a bit.
73181
73182         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73183
73184         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73185         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73186
73187         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73188                     Ulrich Drepper  <drepper@redhat.com>
73189
73190         [BZ #1302]
73191         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73192         changed.
73193         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73194
73195         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73196
73197         [BZ #281]
73198         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73199         * lib/regcomp.c: Remove unnecessary uses of
73200         unsigned RE_TRANSLATE_TYPE.
73201         * lib/regex_internal.h: Likewise.
73202         * lib/regex_internal.c: Likewise.
73203         * lib/regexec.c: Likewise.
73204         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73205
73206         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73207
73208         * lib/regexec.c (find_recover_state): Remove unnecessary
73209         initialization.
73210         (transit_state_bkref): Make DFA a const pointer.
73211         (get_subexp): Likewise.
73212         (check_arrival): Likewise.
73213         (update_cur_sifted_state): Likewise.
73214         (re_search_internal): Likewise.
73215         (prune_impossible_nodes): Likewise.
73216         (acquire_init_state_context): Likewise.
73217         (proceed_next_node): Likewise.
73218         (set_regs): Likewise.
73219         (free_fail_stack_return): Likewise.
73220         (check_arrival_expand_ecl): Mark DFA parameter as const.
73221         (check_arrival_expand_ecl_sub): Likewise.
73222         (check_subexp_limits): Likewise.
73223         (sub_epsilon_src_nodes):  Likewise.
73224         (add_epsilon_src_nodes):  Likewise.
73225         (merge_state_array): Likewise.
73226         (update_regs): Likewise.
73227         (build_trtable): Likewise.
73228         (sift_states_backward): Mark MCTX parameter as const.
73229         (build_sifted_states): Likewise.
73230         (update_cur_sifted_state): Likewise.
73231         (sift_states_mkref): Likewise.
73232         (check_arrival_expand_ecl): Mark eclosure as const.
73233         (check_dst_limits_calc_pos_1): Likewise.
73234         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73235         pointer.
73236
73237         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73238
73239         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73240         (transit_state_sb): Likewise.
73241         (transit_state_mb): Likewise.
73242         (sift_states_iter_mb): Likewise.
73243         (check_arrival_add_next_nodes): Likewise.
73244         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73245         [_LIBC] (re_search_2_stub): Use mempcpy.
73246
73247         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73248         mbrtowc for very simple UTF-8 case.
73249
73250         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73251         a pointer-to-const.
73252         (re_acquire_state_context): Likewise.
73253         * lib/regex_internal.h: Adjust prototypes.
73254
73255         * lib/regex.c: Prevent using C++ compilers.
73256
73257         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73258         (re_acquire_state_context): Likewise.
73259
73260 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         * modules/regex (Depends-on): Add ssize_t.
73263
73264 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73265
73266         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73267         translation table.
73268
73269 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73270
73271         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73272
73273 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73274             Bruno Haible  <bruno@clisp.org>
73275
73276         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73277         <sys/types.h> and <inttypes.h>.
73278
73279 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73280
73281         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73282         `__error_t_defined', so argp.h will not typedef the former.
73283
73284 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73285
73286         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73287         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73288         glibc names.  Even if glibc is changed to conform to POSIX, the
73289         traditional names will be available anyway, since regex depends on
73290         the extensions module.  Also, fix a longstanding typo in the
73291         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73292         reported by Emanuele Giaquinta.  Also, change sense of cached
73293         variable, so that the message makes sense.
73294
73295 2006-03-24  Simon Josefsson  <jas@extundo.com>
73296
73297         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73298         including some doc fixes.
73299         (base64_encode_alloc): Fix +1 bug on allocation failures.
73300
73301 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73302
73303         * lib/base64.c (base64_encode): Do not read past end of array with
73304         unsanitized input on systems with CHAR_BIT > 8.
73305
73306 2006-03-24  Eric Blake  <ebb9@byu.net>
73307
73308         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73309
73310 2006-03-22  Karl Berry  <karl@gnu.org>
73311
73312         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73313         * config/srclistvars.sh (COREUTILS): new var.
73314
73315 2006-03-17  Jim Meyering  <jim@meyering.net>
73316
73317         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73318         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73319
73320 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73321
73322         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73323         no longer needs it.  Instead, check that regoff_t is as least
73324         as wide as ptrdiff_t.
73325
73326         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73327         so that our regex.h stays compatible with the installed regex.
73328         This is helpful for installers who configure --without-included-regex.
73329         Problem reported by Emanuele Giaquinta.
73330
73331 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73334         Typedef to long int, not to off_, as POSIX will likely change
73335         in that direction.
73336
73337 2006-03-15  Eric Blake  <ebb9@byu.net>
73338
73339         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73340
73341 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73342
73343         * lib/argp-help.c (validate_uparams): Fix typo
73344         * lib/argp-parse.c (argp_default_options): Consistently begin help
73345         messages with a lowercase letter.
73346
73347 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73348
73349         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73350         overrun buffers and shouldn't be used (much as gets shouldn't be
73351         used).
73352         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73353
73354 2006-03-08  Simon Josefsson  <jas@extundo.com>
73355
73356         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73357         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73358
73359 2006-03-08  Simon Josefsson  <jas@extundo.com>
73360
73361         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73362         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73363
73364 2006-03-08  Simon Josefsson  <jas@extundo.com>
73365
73366         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73367         signal that configure disabled the device.
73368
73369 2006-03-08  Simon Josefsson  <jas@extundo.com>
73370
73371         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73372         languages.
73373
73374 2006-03-07  Simon Josefsson  <jas@extundo.com>
73375
73376         * modules/getopt (Depends-on): Add unistd.
73377
73378         * modules/unistd: New file.
73379
73380 2006-03-07  Simon Josefsson  <jas@extundo.com>
73381
73382         * modules/gc-random: New file.
73383
73384 2006-03-07  Simon Josefsson  <jas@extundo.com>
73385
73386         * m4/unistd_h.m4: New file.
73387
73388 2006-03-07  Simon Josefsson  <jas@extundo.com>
73389
73390         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73391         test to be side-effect free by storing the result in the cache
73392         variable gl_cv_lib_readline, and moving the assignment of
73393         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73394         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73395
73396 2006-03-07  Simon Josefsson  <jas@extundo.com>
73397
73398         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73399         error on missing devices (the functions will return an error).
73400
73401         * m4/gc.m4: Move random stuff to gc-random.m4
73402
73403 2006-03-07  Simon Josefsson  <jas@extundo.com>
73404
73405         * lib/unistd_.h: New file.
73406
73407 2006-03-07  Simon Josefsson  <jas@extundo.com>
73408
73409         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73410
73411 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73412
73413         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73414         Problem reported by Juan Manuel Guerrero.
73415
73416 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73417
73418         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73419         the unistd module.
73420         * lib/getlogin_r.c: Likewise.
73421         * lib/getlogin_r.h: Likewise.
73422         * lib/glob.c: Likewise.
73423         * lib/pagealign_alloc.c: Likewise.
73424         * lib/unistd_.h: Remove; no longer needed.
73425
73426 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73427
73428         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73429         Add unistd.
73430         * modules/c-stack (Depends-on): Add unistd.
73431         * modules/getlogin_r: Likewise.
73432         * modules/glob: Likewise.
73433         * modules/pagealign_alloc: Likewise.
73434         * modules/unistd (Files): Remove lib/unistd_.h.
73435         (EXTRA_DIST): Remove.
73436         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73437         need unistd_.h.
73438         (MOSTLYCLEANFILES): Remove unistd.h-t.
73439
73440 2006-03-03  Simon Josefsson  <jas@extundo.com>
73441
73442         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73443
73444 2006-03-03  Simon Josefsson  <jas@extundo.com>
73445
73446         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73447         libidn and bison.
73448
73449 2006-03-03  Simon Josefsson  <jas@extundo.com>
73450
73451         * build-aux/maint.mk: Add indent target.
73452
73453 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73454
73455         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73456         our replacement poll.h in any case, to avoid a differing
73457         declaration from a system header.  Seen on AIX.
73458
73459 2006-03-01  Simon Josefsson  <jas@extundo.com>
73460
73461         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73462         <kasal@ucw.cz>.
73463
73464 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73465
73466         * modules/gettime (Depends-on): Add extensions module.
73467         * modules/nanosleep (Depends-on): Likewise.
73468         * modules/settime (Depends-on): Likewise.
73469
73470 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73471
73472         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73473         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73474         pedantically.
73475         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73476         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73477
73478         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73479         not "==".  Reported by Ralf Wildenhues.
73480
73481 2006-03-01  Karl Berry  <karl@gnu.org>
73482
73483         * doc/Copyright/request-*: new files, synced from gnuorg.
73484
73485 2006-03-01  Karl Berry  <karl@gnu.org>
73486
73487         * config/srclist.txt (Copyright/*): new entries.
73488
73489 2006-02-28  Simon Josefsson  <jas@extundo.com>
73490
73491         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73492
73493 2006-02-27  Simon Josefsson  <jas@extundo.com>
73494
73495         * lib/base64.h: Indent #define's.  From Jim Meyering
73496         <jim@meyering.net>.
73497
73498 2006-02-27  Jim Meyering  <jim@meyering.net>
73499
73500         Revert the change of 2006-02-24, so these files can continue
73501         to be sync'd from gettext.
73502         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73503         of `config.h'.
73504
73505 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73506
73507         * modules/intprops: New file.
73508         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73509         Add intprops.
73510         * modules/getloadavg (Files): Remove lib/intprops.h.
73511         (Depends-on): Add intprops.
73512         * modules/human: Likewise.
73513         * modules/inttostr: Likewise.
73514         * modules/openat: Likewise.
73515         * modules/sig2str: Likewise.
73516         * modules/userspec: Likewise.
73517         * modules/utimecmp: Likewise.
73518         * modules/xnanosleep: Likewise.
73519         * modules/xstrtol: Likewise.
73520
73521 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73522
73523         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73524         * modules/lock-tests (TESTS): Use $(EXEEXT).
73525         * modules/tls-tests: Likewise.
73526         * modules/argp-tests: Likewise.
73527         (check_PROGRAMS): New var, replacing...
73528         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73529
73530 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73531
73532         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73533         `config.h'.
73534
73535 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73536
73537         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73538
73539 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73540
73541         Sync from coreutils.
73542         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73543         gl_CHDIR_SAFER.
73544
73545 2006-02-22  Jim Meyering  <jim@meyering.net>
73546
73547         Sync from coreutils.
73548         * m4/chdir-safer.m4: New file.
73549
73550 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73551
73552         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73553         AT_FDCWD exceeds INT_MAX.
73554         * lib/openat.h (AT_FDCWD): Likewise.
73555
73556 2006-02-17  Eric Blake  <address@hidden>
73557
73558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73559
73560 2006-02-16  Simon Josefsson  <jas@extundo.com>
73561
73562         * modules/getaddrinfo (Depends-on): Add sys_socket.
73563
73564 2006-02-15  Simon Josefsson  <jas@extundo.com>
73565
73566         * build-aux/maint.mk: Add dsyntax-check rule.
73567
73568 2006-02-15  Eric Blake  <ebb9@byu.net>
73569
73570         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73571         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73572         'present but cannot compile' warnings on cygwin.
73573         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73574         use ws2tcpip.h if sys/socket.h works.
73575         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73576         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73577
73578 2006-02-14  Simon Josefsson  <jas@extundo.com>
73579
73580         * modules/maintainer-makefile (Files): Rename.
73581
73582         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73583         and (the local) Makefile.cfg to maint-cfg.mk.
73584
73585         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73586         to the latter.
73587
73588         * modules/maintainer-makefile: New module.
73589
73590         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73591         severaly stripped to make it possible to build it up from scratch
73592         with reliable tests.
73593
73594         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73595         fixes to permit overriding the default actions when configure and
73596         makefile are not available.
73597
73598 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73599
73600         Sync from coreutils.
73601         * modules/lstat (Depends-on): Don't depend on xalloc.
73602         (License): Change from GPL to LGPL, since this is now simply a
73603         replacement for a libc function.
73604
73605 2006-02-14  Jim Meyering  <jim@meyering.net>
73606
73607         Sync from coreutils.
73608
73609         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73610         failure on deficient systems, and simplify gnulib lgpl dependencies.
73611         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73612         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73613
73614         * lib/xalloc-die.c: Remove unused definition of N_.
73615
73616 2006-02-14  Jim Meyering  <jim@meyering.net>
73617
73618         Sync from coreutils.
73619         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73620         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73621         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73622         double-quote uses of that variable, to accommodate the rare case in
73623         which getmntent is available in none of the libraries checked.  This
73624         happens at least on FreeBSD 5.0.
73625
73626 2006-02-13  Simon Josefsson  <jas@extundo.com>
73627
73628         * gnulib-tool (Usage): Fix --import, from
73629         karl@freefriends.org (Karl Berry).
73630
73631 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73632
73633         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73634
73635 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73636
73637         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73638         "autoupdate" on 2005-12-12.
73639
73640 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         * modules/closeout (Depends-on): Remove atexit.
73643
73644 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73645
73646         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73647         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73648
73649 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73650
73651         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73652         __EXTENSIONS__ if this causes compilation to fail.  Problem
73653         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73654         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73655
73656 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73659         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73660         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73661         All uses changed.
73662
73663 2006-01-26  Simon Josefsson  <jas@extundo.com>
73664
73665         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73666         prototype is visible on mingw32.
73667
73668         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73669         for mingw32.
73670
73671         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73672         mingw32).
73673
73674 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73675
73676         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73677         attempt to open for write; this always fails, at least on POSIX
73678         hosts.  This reinstates the 2006-01-09 change, which was
73679         inadvertently removed.
73680
73681 2006-01-26  Bruno Haible  <bruno@clisp.org>
73682
73683         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73684         Reported by Paul Eggert.
73685
73686 2006-01-26  Bruno Haible  <bruno@clisp.org>
73687             Paul Eggert  <eggert@cs.ucla.edu>
73688
73689         * lib/stdbool_.h (_Bool)
73690         [(! (defined __cplusplus || defined __BEOS__)
73691           && !defined __GNUC__
73692           && !(defined __HP_cc || defined __xlc__
73693                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73694                || defined __sgi))]:
73695         #define to signed char in these cases too; this simplifies
73696         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73697         etc., separately) and makes it more conservative.
73698
73699 2006-01-25  Simon Josefsson  <jas@extundo.com>
73700
73701         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73702         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73703         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73704
73705 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73706
73707         * lib/argp-namefrob.h: Bugfix. Remove stray #
73708
73709 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73710
73711         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73712         so that we test the test.
73713         Check for yet another HP-UX cc bug involving *bool |= bool.
73714
73715 2006-01-25  Karl Berry  <karl@gnu.org>
73716
73717         * config/srclist.txt (vasnprintf.c): sync lost.
73718
73719 2006-01-25  Jim Meyering  <jim@meyering.net>
73720
73721         Sync from the stable (b5) branch of coreutils:
73722
73723         * lib/fts.c (fts_children): Don't let close() clobber errno from
73724         failed fchdir().
73725
73726         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73727         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73728         a dangling symlink.  That can also happen at least for ELOOP.
73729         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73730         FYI, this bug predates the inclusion of fts.c in coreutils.
73731
73732         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73733         in their own block, so pre-c99 compilers don't object.
73734
73735         Avoid the double-free (first in fts_read, second in fts_close) that
73736         would occur when an `active' directory is made inaccessible (e.g.,
73737         via chmod a-x) during a traversal.
73738         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73739         before returning.  Reproduce this failure by
73740         mkdir -p a/b; cd a; chmod a-x . b
73741         Reported by Stavros Passas.
73742
73743 2006-01-25  Jim Meyering  <jim@meyering.net>
73744
73745         * lib/fileblocks.c: Remove more useless parentheses.
73746         * lib/readutmp.h: Likewise.
73747
73748 2006-01-25  Bruno Haible  <bruno@clisp.org>
73749
73750         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73751         warnings.
73752         Reported by Paul Eggert.
73753
73754 2006-01-25  Bruno Haible  <bruno@clisp.org>
73755
73756         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73757         rid of a trap command. For Solaris sh.
73758         Reported by Mark D. Baushke <mdb@gnu.org>.
73759
73760 2006-01-24  Simon Josefsson  <jas@extundo.com>
73761
73762         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73763         Bruno.
73764
73765 2006-01-24  Karl Berry  <karl@gnu.org>
73766
73767         * config/srclist.txt (argp-namefrob.h): sync lost.
73768
73769 2006-01-24  Jim Meyering  <jim@meyering.net>
73770
73771         * modules/openat (Files): Add lib/intprops.h.
73772         From Mark D. Baushke.
73773
73774 2006-01-24  Jim Meyering  <jim@meyering.net>
73775
73776         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73777         Reported by Mark D. Baushke.
73778
73779 2006-01-24  Jim Meyering  <jim@meyering.net>
73780
73781         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73782
73783 2006-01-24  Bruno Haible  <bruno@clisp.org>
73784
73785         * modules/strnlen (Maintainer): Change from glibc to all.
73786
73787 2006-01-24  Bruno Haible  <bruno@clisp.org>
73788
73789         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73790         Patch by Paul Eggert.
73791
73792 2006-01-24  Bruno Haible  <bruno@clisp.org>
73793
73794         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73795         already has it.
73796         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73797         2005-11-26.
73798
73799         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73800         'signed char' to avoid problems with the built-in _Bool type.
73801         Reported by Paul Eggert on 2005-11-26.
73802
73803 2006-01-24  Bruno Haible  <bruno@clisp.org>
73804
73805         * gnulib-tool (func_import): Avoid constructing complicated sed
73806         expressions inside backquote.
73807         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73808
73809 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73810
73811         These changes imported from libc.
73812         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73813         test and two separate function calls.
73814         * lib/strndup.c (__strndup): Add libc_hidden_def.
73815
73816 2006-01-23  Simon Josefsson  <jas@extundo.com>
73817
73818         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73819         Remove the test_*_SOURCES variable: automake infers it by default.
73820         * modules/tls-tests: Likewise.
73821
73822 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73823
73824         Work around porting bugs reported by Dieter in
73825         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73826         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73827         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73828         Include "getopt.h" first, to check interface.
73829         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73830         !HAVE_DECL_GETENV.
73831         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73832         (__strndup): Revert to K&R-style function dfns, the glibc style.
73833         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73834         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73835         Include strnlen.h first, to get prototype properly.
73836         (strnlen): Renamed from __strnlen.
73837         Remove weak alias.
73838
73839 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73840
73841         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73842
73843 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73844
73845         * config/srclist.txt: Adjust to reflect glibc reorganization.
73846         This affects only comments.
73847
73848 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73849
73850          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73851          Reported by Bruce Korb <bkorb@gnu.org>.
73852
73853 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73854
73855         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73856         to pacify gcc -Wswitch-default.
73857
73858 2006-01-22  Bruno Haible  <bruno@clisp.org>
73859
73860         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73861         temporary buffer for sprintf, take into account the precision also
73862         for 'd', 'i', 'u', 'o', 'x', 'X'.
73863
73864 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73865
73866         * modules/argp-tests: New module
73867         * tests/test-argp.c: New file
73868         * tests/test-argp-2.sh: New file
73869
73870 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73871
73872         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73873         (__argp_base_name): Removed
73874         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73875         typo.
73876         (__argp_base_name): Provide macro definition or extern declaration
73877         depending on the configuration
73878
73879 2006-01-20  Simon Josefsson  <jas@extundo.com>
73880
73881         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73882
73883 2006-01-20  Simon Josefsson  <jas@extundo.com>
73884
73885         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73886
73887 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73890         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73891         Suggested by Bruno Haible.
73892
73893 2006-01-20  Karl Berry  <karl@gnu.org>
73894
73895         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73896         until changes propagate, I guess.
73897
73898 2006-01-19  Simon Josefsson  <jas@extundo.com>
73899
73900         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73901
73902 2006-01-19  Simon Josefsson  <jas@extundo.com>
73903
73904         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73905
73906 2006-01-19  Simon Josefsson  <jas@extundo.com>
73907
73908         * gnulib-tool: Set check_PROGRAMS.
73909
73910         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73911         modules/des-tests, modules/gc-arcfour-tests,
73912         modules/gc-arctwo-tests, modules/gc-des-tests,
73913         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73914         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73915         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73916         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73917         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73918         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73919         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73920         test_*_SOURCES.
73921
73922 2006-01-18  Simon Josefsson  <jas@extundo.com>
73923
73924         * modules/socklen (Depends-on): Depend on sys_socket.
73925
73926 2006-01-18  Simon Josefsson  <jas@extundo.com>
73927
73928         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73929         modules/des-tests, modules/gc-arcfour-tests,
73930         modules/gc-arctwo-tests, modules/gc-des-tests,
73931         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73932         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73933         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73934         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73935         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73936         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73937         $(EXEEXT) to automake TESTS variable, for mingw32.
73938
73939 2006-01-17  Simon Josefsson  <jas@extundo.com>
73940
73941         * modules/socklen (Include): Need sys/socket.h.
73942
73943 2006-01-17  Bruno Haible  <bruno@clisp.org>
73944
73945         * modules/ssize_t (Include): Add <sys/types.h>.
73946
73947 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73948
73949         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73950         it's not portable and it doesn't work with cross-compiles.
73951         Problem reported by Bruno Haible.  Fix missing-$ typo in
73952         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73953         -zignore from being used with Sun's C compiler.
73954
73955 2006-01-12  Simon Josefsson  <jas@extundo.com>
73956
73957         * lib/base64.c: Fix warning, reported by Bruno Haible
73958         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73959
73960 2006-01-12  Bruno Haible  <bruno@clisp.org>
73961
73962         * modules/ldd: New file.
73963         * build-aux/ldd.sh.in: New file.
73964         * MODULES.html.sh (Support for building libraries and executables): Add
73965         ldd.
73966
73967 2006-01-12  Bruno Haible  <bruno@clisp.org>
73968
73969         * m4/ldd.m4: New file.
73970
73971 2006-01-12  Bruno Haible  <bruno@clisp.org>
73972
73973         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73974         endless loop while replacing $auxdir with build-aux.
73975
73976 2006-01-11  Simon Josefsson  <jas@extundo.com>
73977
73978         * lib/stdint_.h (SIZE_MAX): Add missing (.
73979
73980 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73981
73982         Sync from coreutils.
73983         * lib/md5.c: Fix commentary typos.
73984         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73985         * lib/md5.h (__attribute__): Remove; unused.
73986         * lib/sha1.c: Fix commentary to match md5 better.
73987         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73988         so that we don't need to worry about alignment.  All uses changed.
73989         This merges the 2005-10-28 md5 change into sha1.
73990
73991 2006-01-11  Jim Meyering  <jim@meyering.net>
73992
73993         Sync from coreutils.
73994         * lib/md5.c (OP): Fix spacing.
73995
73996 2006-01-11  Bruno Haible  <bruno@clisp.org>
73997
73998         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73999         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74000         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74001
74002 2006-01-11  Bruno Haible  <bruno@clisp.org>
74003
74004         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74005         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74006         the "early" section as well.
74007
74008 2006-01-11  Bruno Haible  <bruno@clisp.org>
74009
74010         Avoid "ar: no archive members specified" error on MacOS X.
74011         * gnulib-tool (func_modules_add_dummy): New function.
74012         (func_import, func_create_testdir): Invoke it.
74013
74014 2006-01-11  Bruno Haible  <bruno@clisp.org>
74015
74016         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74017         with $auxdir in AC_CONFIG_FILES statements.
74018
74019 2006-01-11  Bruno Haible  <bruno@clisp.org>
74020
74021         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74022         Initialize also noinst_HEADERS to empty.
74023
74024 2006-01-11  Bruno Haible  <bruno@clisp.org>
74025
74026         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74027         variables.
74028         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74029         autoreconf.
74030
74031 2006-01-11  Bruno Haible  <bruno@clisp.org>
74032
74033         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74034         overridable by the user.
74035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74036
74037 2006-01-10  Simon Josefsson  <jas@extundo.com>
74038
74039         * modules/sys_socket: New file.
74040
74041 2006-01-10  Simon Josefsson  <jas@extundo.com>
74042
74043         * m4/sys_socket_h.m4: New file.
74044
74045 2006-01-10  Simon Josefsson  <jas@extundo.com>
74046
74047         * lib/socket_.h: New file.
74048
74049 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74050
74051         * modules/readutmp (Maintainer): Add myself.
74052
74053 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74054
74055         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74056         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74057         People who are still concerned with buggy memcmp implementations
74058         can invoke gl_FUNC_MEMCMP themselves.
74059
74060 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * lib/regex_internal.h (BITSET_WORD_BITS):
74063         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74064         preprocessor mishandles large unsigned values as if they were signed.
74065         Problem reported by Claudio Fontana in
74066         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74067
74068 2006-01-10  Jim Meyering  <jim@meyering.net>
74069
74070         Avoid the double-free (first in fts_read, second in fts_close) that
74071         would occur when an `active' directory is made inaccessible (e.g.,
74072         via chmod a-x) during a traversal.
74073         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74074         before returning.  Reproduce this failure by
74075         mkdir -p a/b; cd a; chmod a-x . b
74076         Reported by Stavros Passas.
74077
74078         Sync from coreutils.
74079         * lib/sha1.c: Tweak grammar in a comment.
74080
74081 2006-01-10  Jim Meyering  <jim@meyering.net>
74082
74083         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74084         Patch by Joerg Sonnenberger.
74085
74086 2006-01-10  Bruno Haible  <bruno@clisp.org>
74087
74088         * modules/readutmp: Depend on module free.
74089         * modules/strtok_r: Depend on module restrict.
74090
74091 2006-01-10  Bruno Haible  <bruno@clisp.org>
74092
74093         * modules/gettext (configure.ac): Add an invocation of
74094         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74095
74096 2006-01-10  Bruno Haible  <bruno@clisp.org>
74097
74098         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74099         Reported by Werner Lemberg <wl@gnu.org>.
74100
74101 2006-01-10  Bruno Haible  <bruno@clisp.org>
74102
74103         * lib/localcharset.c: Update from GNU gettext.
74104
74105 2006-01-10  Bruno Haible  <bruno@clisp.org>
74106
74107         * lib/argp.h (__const): Remove macro. Use const instead.
74108         * lib/argp-fmtstream.h (__const): Likewise.
74109         * lib/glob_.h (__const): Remove macro.
74110         * lib/glob-libc.h: Use const instead of __const.
74111
74112 2006-01-10  Bruno Haible  <bruno@clisp.org>
74113
74114         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74115         variable.
74116         Needed to avoid an automake error regarding the 'gettext' module.
74117
74118 2006-01-09  Simon Josefsson  <jas@extundo.com>
74119
74120         * modules/inet_ntop (Depends-on): Add restrict.
74121
74122 2006-01-09  Simon Josefsson  <jas@extundo.com>
74123
74124         * modules/gc-rijndael-tests (License): Put under LGPL.
74125
74126         * modules/gc-des-tests (License): Likewise.
74127
74128         * modules/gc-arcfour-tests (License): Likewise.
74129
74130         * modules/gc-arctwo-tests (License): Likewise.
74131
74132         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74133
74134         * modules/gc-hmac-sha1-tests (Files): Likewise.
74135
74136         * modules/gc-hmac-md5-tests (License): Likewise.
74137
74138         * modules/gc-sha1-tests (License): Likewise.
74139
74140         * modules/gc-md5-tests (License): Likewise.
74141
74142         * modules/gc-md4-tests (License): Likewise.
74143
74144         * modules/gc-md2-tests (License): Likewise.
74145
74146         * modules/gc-tests (License): Likewise.
74147
74148         * modules/des-tests (License): Likewise.
74149
74150         * modules/md4-tests (License): Likewise.
74151
74152         * modules/md2-tests (License): Likewise.
74153
74154 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74155
74156         Sync from coreutils:
74157
74158         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74159         * modules/lib-ignore: New file.
74160         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74161         chdir-safer.m4, lchmod.m4.
74162         * modules/openat: Add mkdirat.c, openat-priv.h.
74163
74164 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74165
74166         Sync from coreutils.
74167         * m4/lib-ignore.m4: New file.
74168         * m4/lchmod.m4: New file.
74169
74170 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74171
74172         Sync from coreutils.
74173         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74174         for write access: POSIX says that must fail.
74175         * lib/fts.c (diropen): Likewise.
74176         * lib/save-cwd.c (save_cwd): Likewise.
74177         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74178         well, for minor improvements on hosts that lack O_DIRECTORY.
74179         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74180         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74181         Fall back on chown if open failed with EACCES.
74182
74183         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74184         Report an error at compile-time if only a 1-second nominal clock
74185         resolution is found.
74186
74187         * lib/lchmod.h: New file.
74188         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74189         (make_dir_parents): Use lchown rather than chown, and
74190         lchmod rather than chmod.
74191
74192         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74193         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74194         "proc" reported by n0dalus.
74195
74196         * lib/mountlist.c: Include <limits.h>.
74197         (dev_from_mount_options)
74198         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74199         New function.  It no longer assumes "dev=" has the System V meaning
74200         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74201         (read_file_system_list)
74202         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74203         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74204         dev= in that case.
74205
74206         * lib/posixtm.h (PDS_PRE_2000): New macro.
74207         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74208         allow_century.  All usages changed.  Reject dates outside the range
74209         1969-1999 if PDS_PRE_2000 is used.
74210
74211 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74212
74213         Sync from coreutils.
74214         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74215         (Time of day items): Mention the possibility of leap seconds.
74216         Problem reported by Dr. David Alan Gilbert.
74217
74218 2006-01-09  Jim Meyering  <jim@meyering.net>
74219
74220         Sync from coreutils.
74221
74222         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74223
74224         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74225
74226         * lib/modechange.c (mode_compile): Reject an invalid mode string
74227         that starts with an octal digit.  From Andreas Gruenbacher.
74228
74229         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74230         and dup to open_safer and dup_safer, respectively.
74231         (openat_permissive): Fix typo in comment.
74232
74233         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74234         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74235         (_): Remove; no longer needed.
74236         (openat): Renamed from rpl_openat; no need for rpl_openat
74237         since openat.h renames openat for us.
74238         Replace most of the body with a call to openat_permissive,
74239         to avoid duplicate code.
74240         Port to (probably hypothetical) environments were mode_t is
74241         wider than int.
74242         (openat_permissive): Require mode arg, so that we can check
74243         types better.  Put it just after flags.  Change cwd failure
74244         indicator from pointer-to-bool to pointer-to-errno-value.
74245         All callers changed.
74246         Invoke openat_save_fail and/or openat_restore_fail if
74247         cwd_errno is null, so that openat can call us.
74248         (openat_permissive, fdopendir, fstatat, unlinkat):
74249         Simplify errno handling to avoid some duplicate code,
74250         as it's OK to set errno on success.
74251         * lib/openat.h: Revamp code so that function macros depend on
74252         __OPENAT_PREFIX only, not also on AT_FDCWD.
74253         (openat_ro): Remove.  Caller changed to use openat_permissive.
74254         (openat_permissive): Now a macro, if not a function.
74255         (openat_restore_fail, openat_save_fail): Now always functions,
74256         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74257
74258         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74259         and openat.c.
74260         * lib/mkdirat.c: Include openat-priv.h.
74261         Remove definitions of macros defined therein.
74262         * lib/openat.c: Likewise.
74263
74264         * lib/mkdirat.c (mkdirat): New file and function.
74265         * lib/openat.h (mkdirat): Declare.
74266
74267         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74268
74269         * lib/openat.h (openat_permissive): Declare.
74270         (openat_ro): Define.
74271
74272         * lib/openat.c (EXPECTED_ERRNO): New macro.
74273         (openat_permissive): New function -- used in remove.c rewrite.
74274         (all functions): Set errno just before returning, only if there
74275         was an actual failure.
74276         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74277
74278         Emulate openat-family functions using Linux's procfs, if possible.
74279         Idea and some code based on Ulrich Drepper's glibc changes.
74280
74281         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74282         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74283         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74284         before falling back on save_cwd and restore_cwd.
74285         (fdopendir, fstatat, unlinkat): Likewise.
74286
74287         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74288         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74289
74290         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74291         as second argument to va_arg.  Otherwise, some versions of gcc
74292         warn that `if this code is reached, the program will abort'.
74293
74294 2006-01-09  Jim Meyering  <jim@meyering.net>
74295
74296         Sync from coreutils.
74297         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74298         Require openat-priv.h.
74299
74300 2006-01-09  Bruno Haible  <bruno@clisp.org>
74301
74302         * modules/strnlen (Include): Use strnlen.h.
74303
74304 2006-01-09  Bruno Haible  <bruno@clisp.org>
74305
74306         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74307
74308 2006-01-09  Bruno Haible  <bruno@clisp.org>
74309
74310         * lib/sysexit_.h (EX_OK): New macro.
74311         Suggested by Martin Lambers <marlam@marlam.de>.
74312
74313 2006-01-09  Bruno Haible  <bruno@clisp.org>
74314
74315         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74316         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74317
74318 2006-01-09  Bruno Haible  <bruno@clisp.org>
74319
74320         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74321         numbers.
74322
74323 2006-01-09  Bruno Haible  <bruno@clisp.org>
74324
74325         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74326         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74327         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74328         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74329
74330 2006-01-09  Bruno Haible  <bruno@clisp.org>
74331
74332         * build-aux/javacomp.sh.in: New file, moved from lib/.
74333         * modules/javacomp-script (Files): Update.
74334         (configure.ac): Add AC_CONFIG_FILES invocation.
74335         (EXTRA_DIST): Remove variable.
74336
74337         * build-aux/javaexec.sh.in: New file, moved from lib/.
74338         * modules/javaexec (Files): Update.
74339         (configure.ac): Add AC_CONFIG_FILES invocation.
74340         (EXTRA_DIST): Remove javaexec.sh.in.
74341
74342         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74343         * modules/csharpcomp-script (Files): Update.
74344         (configure.ac): Add AC_CONFIG_FILES invocation.
74345         (EXTRA_DIST): Remove variable.
74346
74347         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74348         * modules/csharpexec (Files): Update.
74349         (configure.ac): Add AC_CONFIG_FILES invocation.
74350         (EXTRA_DIST): Remove csharpexec.sh.in.
74351
74352 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74353
74354         Sync from coreutils.
74355
74356         Add POSIX ACL support
74357         * lib/acl.h (copy_acl, set_acl): Add declarations.
74358         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74359         systems other than Linux.
74360         (chmod_or_fchmod): New function: use fchmod when possible,
74361         and chmod otherwise.
74362         (file_has_acl): Add a POSIX ACL implementation, with a
74363         Linux-specific subcase.
74364         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74365         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74366         acls are unsupported.
74367         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74368         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74369         are unsupported.
74370
74371 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74372
74373         Sync from coreutils.
74374         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74375
74376 2006-01-07  Bruno Haible  <bruno@clisp.org>
74377
74378         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74379         gl_EARLY.
74380
74381 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74382
74383         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74384         Problem reported for Mingw by Mark Junker.
74385
74386 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * README: Gnulib normally doesn't generate a tarball.
74389
74390 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74391
74392         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74393         long int, not int, for nanosecond counts, so that people who are
74394         used to POSIX struct timespec won't be surprised.  Reported by Jim
74395         Meyering.
74396
74397 2005-12-28  Bruno Haible  <bruno@clisp.org>
74398
74399         * build-aux/config.rpath: Update from GNU gettext.
74400
74401 2005-12-16  Jim Meyering  <jim@meyering.net>
74402
74403         * modules/fprintftime: New module.
74404         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74405
74406 2005-12-16  Jim Meyering  <jim@meyering.net>
74407
74408         * m4/fprintftime.m4: New file.
74409
74410 2005-12-16  Jim Meyering  <jim@meyering.net>
74411
74412         * lib/fprintftime.c, lib/fprintftime.h: New files.
74413
74414 2005-12-15  Simon Josefsson  <jas@extundo.com>
74415
74416         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74417         new m4/socklen.m4.
74418
74419 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74420
74421         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74422         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74423
74424 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74425
74426         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74427         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74428         struct uparams is valid. Fall back to the default values if it is
74429         not.
74430
74431 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74432
74433         * modules/argp (Files): Add argp-pin.c
74434         (Depends-on): dirname
74435         (lib_SOURCES): Add argp-pin.c
74436
74437 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74438
74439         * m4/argp.m4:  Check if program_invocation_name and
74440         program_invocation_short_name are declared and define appropriate
74441         macros if they are not.
74442
74443 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74444
74445         * lib/argp-help.c (__argp_base_name): New function
74446         (__argp_short_program_name): Rewrite using __argp_base_name
74447         * lib/argp-namefrob.h: Define program_invocation_name and
74448         program_invocation_short_name if requested
74449         (__argp_base_name): Add prototype
74450         * lib/argp-parse.c (argp_def): Use gettext wrappers
74451         (argp_default_parser): Use __argp_base_name
74452         * lib/argp-pin.c: New file. Defines program_invocation_name and
74453         program_invocation_short_name on systems that lack them.
74454
74455 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74458         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74459         porting problem reported by Georg Schwarz in
74460         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74461
74462 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74463
74464         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74465         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74466         porting problem reported by Georg Schwarz in
74467         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74468
74469 2005-12-05  Bruno Haible  <bruno@clisp.org>
74470
74471         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74472         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74473         Reported by Mark Junker <mjscod@gmx.de>.
74474
74475 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74476
74477         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74478         Use implementation from Albert Chin, with some
74479         comments/corrections by Stepan Kasal and myself.
74480
74481 2005-12-02  Bruno Haible  <bruno@clisp.org>
74482
74483         * gnulib-tool (func_import): Accept GPLed build tool modules when
74484         --lgpl is given.
74485         * modules/csharpcomp-script: New file.
74486         * modules/csharpcomp: Depend on it.
74487         * modules/javacomp-script: New file.
74488         * modules/javacomp: Depend on it.
74489         Suggested by Simon Josefsson.
74490
74491 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74492
74493         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74494         statement, to work around an HP-UX 10.20 compiler bug reported by
74495         Peter O'Gorman.
74496
74497 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74498
74499         * modules/savedir (Depends-on): Add openat.
74500
74501 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74502
74503         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74504         (uintmax_t) [defined uintmax_t]: Do not declare.
74505         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74506         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74507         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74508         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74509         sake of portability to weird hosts that C allows (though we don't
74510         know of any practical examples).
74511
74512         * lib/savedir.h (fdsavedir): New decl.
74513         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74514         contains most of the former guts of savedir.
74515         (savedir): Use savedirstream.
74516         Include "openat.h".
74517
74518 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74519
74520         * modules/obstack (Files): Add m4/ulonglong.m4.
74521         Problem reported by Davide Angelocola.
74522
74523 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74524
74525         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74526         coreutils no longer futzes with rounding modes.
74527
74528 2005-11-14  Jim Meyering  <jim@meyering.net>
74529
74530         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74531         replacement of mkstemp.
74532
74533 2005-11-10  Simon Josefsson  <jas@extundo.com>
74534
74535         * lib/readline.c: Remove EOL.
74536
74537 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74538
74539         * modules/gethrxtime (Depends-on): Add gettime.
74540
74541 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74542
74543         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74544         or gettimeofday; no longer needed.
74545
74546 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74547
74548         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74549         time business.
74550         (gethrxtime) [! (HAVE_NANOUPTIME
74551         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74552         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74553         our own approximation.
74554
74555 2005-11-08  Eric Blake  <ebb9@byu.net>
74556
74557         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74558
74559 2005-11-08  Eric Blake  <ebb9@byu.net>
74560
74561         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74562
74563 2005-11-04  Bruno Haible  <bruno@clisp.org>
74564
74565         * gnulib-tool: Implement --update mode.
74566
74567 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74568
74569         Fix porting problem reported by Theodoros V. Kalamatianos.
74570         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74571         Don't assume that futimes failing means we must fail.
74572
74573 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74574
74575         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74576         variables to suggest the intended function of the PATH_MAX check.
74577
74578 2005-10-30  Kean Johnston  <jkj@sco.com>
74579
74580         Trivial changes to support SCO systems.
74581         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74582         as PATH_MAX.
74583         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74584         where __ptr is null when no I/O is pending.
74585
74586 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74587
74588         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74589         leave errno alone.  Problem reported by Dmitry V. Levin.
74590
74591 2005-10-28  Simon Josefsson  <jas@extundo.com>
74592
74593         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74594         Test more.
74595
74596         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74597
74598         * modules/md2, modules/md2-tests: New files.
74599
74600 2005-10-28  Simon Josefsson  <jas@extundo.com>
74601
74602         * m4/inet_ntop.m4: More tests.
74603
74604         * m4/gc-md2.m4, md2.m4: New file.
74605
74606 2005-10-28  Simon Josefsson  <jas@extundo.com>
74607
74608         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74609         "restrict" keywords, as per POSIX.  Protect the function
74610         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74611         Don't use K&R prototypes.  Check the sprintf return values.
74612         Re-define EAFNOSUPPORT if not present.  Indent.
74613
74614         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74615         suggested by Bruno Haible <bruno@clisp.org>.
74616
74617         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74618
74619         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74620
74621         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74622         libgcrypt).
74623
74624         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74625
74626         * lib/md2.h, lib/md2.c: New files.
74627
74628 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74629
74630         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74631         errno alone.  Problem reported by Frederic Jolliton.
74632
74633 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74634
74635         * modules/verify (License): Change from GPL to LGPL.  This is a
74636         tiny module and there are apparently near-equivalents that are
74637         under the BSD license.
74638
74639 2005-10-24  Simon Josefsson  <jas@extundo.com>
74640
74641         * modules/sha1: Relicense to LGPL.
74642
74643 2005-10-24  Simon Josefsson  <jas@extundo.com>
74644
74645         * lib/md4.h: Shrink buffer size, now that we changed the type.
74646
74647 2005-10-23  Simon Josefsson  <jas@extundo.com>
74648
74649         * gnulib-tool (func_import): Fix --tests-base.
74650
74651 2005-10-22  Simon Josefsson  <jas@extundo.com>
74652
74653         * modules/arcfour (Depends-on): Need stdint.
74654
74655 2005-10-22  Simon Josefsson  <jas@extundo.com>
74656
74657         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74658         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74659
74660 2005-10-22  Simon Josefsson  <jas@extundo.com>
74661
74662         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74663         suggested by Bruno Haible <bruno@clisp.org>.
74664
74665 2005-10-22  Simon Josefsson  <jas@extundo.com>
74666
74667         * lib/crc.h: Include stddef.h, for size_t.
74668
74669 2005-10-22  Simon Josefsson  <jas@extundo.com>
74670
74671         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74672         arcfour_context struct (simplify test vector testing in GNU
74673         Shishi).
74674
74675 2005-10-21  Simon Josefsson  <jas@extundo.com>
74676
74677         * modules/des, modules/des-tests: New files.
74678
74679         * modules/gc-des, modules/gc-des-tests: New files.
74680
74681         * tests/test-des.c, tests/test-gc-des.c: New file.
74682
74683 2005-10-21  Simon Josefsson  <jas@extundo.com>
74684
74685         * modules/arctwo, modules/arctwo-tests: New files.
74686
74687         * tests/test-arctwo.c: New file.
74688
74689         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74690
74691         * tests/test-gc-arctwo.c: New file.
74692
74693 2005-10-21  Simon Josefsson  <jas@extundo.com>
74694
74695         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74696         Bruno Haible <bruno@clisp.org>.
74697
74698         * m4/gc-des.m4: New file.
74699
74700 2005-10-21  Simon Josefsson  <jas@extundo.com>
74701
74702         * m4/arctwo.m4: New file.
74703
74704         * m4/gc-arctwo.m4: New file.
74705
74706 2005-10-21  Simon Josefsson  <jas@extundo.com>
74707
74708         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74709         block.
74710
74711 2005-10-21  Simon Josefsson  <jas@extundo.com>
74712
74713         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74714         <bruno@clisp.org>.
74715
74716         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74717
74718         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74719         Bruno Haible <bruno@clisp.org>.
74720
74721         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74722         <bruno@clisp.org>.
74723
74724 2005-10-21  Simon Josefsson  <jas@extundo.com>
74725
74726         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74727
74728 2005-10-21  Simon Josefsson  <jas@extundo.com>
74729
74730         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74731
74732 2005-10-21  Simon Josefsson  <jas@extundo.com>
74733
74734         * lib/des.h, lib/des.c: New files.
74735
74736         * lib/gc-gnulib.c: Support DES.c
74737
74738 2005-10-21  Simon Josefsson  <jas@extundo.com>
74739
74740         * lib/arctwo.h, lib/arctwo.c: New files.
74741
74742         * lib/gc-gnulib.c: Support ARCTWO.
74743
74744 2005-10-21  Simon Josefsson  <jas@extundo.com>
74745
74746         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74747         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74748
74749 2005-10-21  Simon Josefsson  <jas@extundo.com>
74750
74751         * gnulib-tool (func_import, func_create_testdir): Define automake
74752         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74753         Makefile.am snippet),
74754         suggested by Bruno Haible <bruno@clisp.org>.
74755
74756         * modules/gc (Makefile.am): Use it.
74757
74758 2005-10-21  Bruno Haible  <bruno@clisp.org>
74759
74760         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74761         patch.
74762
74763 2005-10-19  Simon Josefsson  <jas@extundo.com>
74764
74765         * tests/test-gc-rijndael.c: New file.
74766
74767         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74768
74769 2005-10-19  Simon Josefsson  <jas@extundo.com>
74770
74771         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74772         interface too.
74773
74774 2005-10-19  Simon Josefsson  <jas@extundo.com>
74775
74776         * tests/test-gc-arcfour.c: New file.
74777
74778         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74779
74780 2005-10-19  Simon Josefsson  <jas@extundo.com>
74781
74782         * modules/gc-md4, modules/gc-md4-tests: New file.
74783
74784         * tests/test-gc-md4.c: New file.
74785
74786 2005-10-19  Simon Josefsson  <jas@extundo.com>
74787
74788         * m4/gc-md4.m4: New file.
74789
74790 2005-10-19  Simon Josefsson  <jas@extundo.com>
74791
74792         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74793         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74794         <kasal@ucw.cz>.
74795
74796 2005-10-19  Simon Josefsson  <jas@extundo.com>
74797
74798         * m4/gc-arcfour.m4: New file.
74799
74800         * m4/gc-rijndael.m4: New file.
74801
74802 2005-10-19  Simon Josefsson  <jas@extundo.com>
74803
74804         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74805
74806 2005-10-19  Simon Josefsson  <jas@extundo.com>
74807
74808         * lib/gc-gnulib.c: Support ARCFOUR.
74809
74810 2005-10-19  Simon Josefsson  <jas@extundo.com>
74811
74812         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74813         support.
74814
74815         * lib/gc.h: Add ECB enum type.
74816
74817         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74818
74819 2005-10-18  Simon Josefsson  <jas@extundo.com>
74820
74821         * tests/test-md5.c: New file.
74822
74823         * modules/md5-tests: New file.
74824
74825 2005-10-18  Simon Josefsson  <jas@extundo.com>
74826
74827         * tests/test-md4.c: New file.
74828
74829         * modules/md4, modules/md4-tests: New files.
74830
74831 2005-10-18  Simon Josefsson  <jas@extundo.com>
74832
74833         * m4/md4.m4: New file.
74834
74835 2005-10-18  Simon Josefsson  <jas@extundo.com>
74836
74837         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74838
74839 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74840
74841         * gnulib-tool (func_create_testdir): Omit the second check whether
74842         BUILT_SOURCES in nonempty.
74843
74844 2005-10-17  Simon Josefsson  <jas@extundo.com>
74845
74846         * tests/test-rijndael.c: New file.
74847
74848 2005-10-17  Simon Josefsson  <jas@extundo.com>
74849
74850         * modules/sha1: Depend on stdint instead of md5.
74851
74852         * modules/md5: Depend on stdint, remove uint32_t.
74853
74854 2005-10-17  Simon Josefsson  <jas@extundo.com>
74855
74856         * modules/gc-sha1-tests: New file.
74857
74858         * tests/test-gc-sha1.c: New file.
74859
74860 2005-10-17  Simon Josefsson  <jas@extundo.com>
74861
74862         * m4/md5.m4: Remove call to uint32_t.m4.
74863
74864 2005-10-17  Simon Josefsson  <jas@extundo.com>
74865
74866         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74867
74868         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74869         md5.h.
74870
74871         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74872
74873         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74874
74875 2005-10-17  Simon Josefsson  <jas@extundo.com>
74876
74877         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74878
74879 2005-10-17  Simon Josefsson  <jas@extundo.com>
74880
74881         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74882
74883 2005-10-17  Simon Josefsson  <jas@extundo.com>
74884
74885         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74886
74887         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74888
74889 2005-10-17  Bruno Haible  <bruno@clisp.org>
74890
74891         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74892         that it can also be used in a test.
74893
74894 2005-10-16  Bruno Haible  <bruno@clisp.org>
74895
74896         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74897         TESTS_ENVIRONMENT, so that individual tests can augment it.
74898
74899         * gnulib-tool (func_create_testdir): Use an intermediate target for
74900         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74901         macros, like $(ALLOCA_H), which cannot be passed through the command
74902         line.
74903
74904 2005-10-15  Simon Josefsson  <jas@extundo.com>
74905
74906         * modules/rijndael-tests: New file.
74907
74908         * modules/rijndael: New file.
74909
74910 2005-10-15  Simon Josefsson  <jas@extundo.com>
74911
74912         * m4/rijndael.m4: New file.
74913
74914 2005-10-15  Simon Josefsson  <jas@extundo.com>
74915
74916         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74917
74918         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74919
74920 2005-10-14  Simon Josefsson  <jas@extundo.com>
74921
74922         * tests/test-arcfour.c: New file.
74923
74924         * modules/arcfour, modules/arcfour-tests: New files.
74925
74926 2005-10-14  Simon Josefsson  <jas@extundo.com>
74927
74928         * m4/arcfour.m4: New file.
74929
74930 2005-10-14  Simon Josefsson  <jas@extundo.com>
74931
74932         * lib/arcfour.h, lib/arcfour.c: New files.
74933
74934 2005-10-14  Roland McGrath  <roland@redhat.com>
74935
74936         Import from libc.  [BZ #1331]
74937         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74938         macro argument.
74939         Reported by Matej Vela <vela@debian.org>.
74940
74941 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74942
74943         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74944         include <wchar.h>; no longer needed.
74945
74946 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74949
74950 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74951         and  Ulrich Drepper  <drepper@redhat.com>
74952
74953         Import from libc.
74954         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74955         instead of inline stream orientation test and two separate
74956         function calls.  Pay no attention to USE_IN_LIBIO.
74957
74958 2005-10-13  Simon Josefsson  <jas@extundo.com>
74959
74960         * modules/gc-hmac-md5-tests: New file.
74961
74962         * tests/test-gc-hmac-sha1.c: New file.
74963
74964         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74965
74966         * modules/gc-hmac-md5-tests: New file.
74967
74968         * tests/test-gc-md5.c: New file.
74969
74970         * modules/gc-md5-tests: New file.
74971
74972 2005-10-13  Simon Josefsson  <jas@extundo.com>
74973
74974         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74975         Move memory allocation outside of loop.
74976
74977 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74978
74979         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74980         intermediate directory is in a read-only file system.  Problem
74981         reported by Eric Blake.
74982
74983 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74984
74985         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74986
74987 2005-10-12  Simon Josefsson  <jas@extundo.com>
74988
74989         * tests/test-hmac-sha1.c: New file.
74990
74991         * modules/hmac-sha1-tests: New file.
74992
74993         * modules/hmac-sha1: New file.
74994
74995 2005-10-12  Simon Josefsson  <jas@extundo.com>
74996
74997         * modules/gc-sha1: New file.
74998
74999 2005-10-12  Simon Josefsson  <jas@extundo.com>
75000
75001         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75002
75003         * tests/test-gc-pbkdf2-sha1.c: New file.
75004
75005 2005-10-12  Simon Josefsson  <jas@extundo.com>
75006
75007         * modules/gc-md5, modules/gc-hmac-md5: New files.
75008
75009         * modules/gc (Files): Remove md5, memxor and hmac files.
75010
75011 2005-10-12  Simon Josefsson  <jas@extundo.com>
75012
75013         * m4/gc-pbkdf2-sha1.m4: New file.
75014
75015         * m4/gc-hmac-sha1.m4: New file.
75016
75017         * m4/gc-sha1: New file.
75018
75019         * m4/hmac-sha1.m4: New file.
75020
75021 2005-10-12  Simon Josefsson  <jas@extundo.com>
75022
75023         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75024
75025         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75026
75027 2005-10-12  Simon Josefsson  <jas@extundo.com>
75028
75029         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75030         suggested by Bruno Haible <bruno@clisp.org>.
75031
75032 2005-10-12  Simon Josefsson  <jas@extundo.com>
75033
75034         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75035
75036 2005-10-12  Simon Josefsson  <jas@extundo.com>
75037
75038         * lib/gc-pbkdf2-sha1.c: New file.
75039
75040         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75041
75042 2005-10-12  Simon Josefsson  <jas@extundo.com>
75043
75044         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75045
75046         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75047
75048 2005-10-12  Simon Josefsson  <jas@extundo.com>
75049
75050         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75051         GC_USE_HMAC_MD5, respectively.
75052
75053         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75054         (gc_md5): Fix typo.
75055
75056         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75057
75058         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75059
75060         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75061
75062 2005-10-12  Bruno Haible  <bruno@clisp.org>
75063
75064         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75065         Reported by Stepan Kasal <kasal@ucw.cz>.
75066
75067 2005-10-11  Simon Josefsson  <jas@extundo.com>
75068
75069         * tests/test-crc.c: New file.
75070
75071         * modules/crc, modules/crc-tests: New files.
75072
75073 2005-10-11  Simon Josefsson  <jas@extundo.com>
75074
75075         * m4/crc.m4: New file.
75076
75077 2005-10-11  Simon Josefsson  <jas@extundo.com>
75078
75079         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75080
75081         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75082
75083         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75084
75085 2005-10-11  Simon Josefsson  <jas@extundo.com>
75086
75087         * lib/crc.h, lib/crc.c: New files.
75088
75089         * lib/gc.h (gc_hash_buffer): Add doc.
75090
75091 2005-10-11  Bruno Haible  <bruno@clisp.org>
75092
75093         * modules/c-strcasestr: New file.
75094         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75095
75096 2005-10-11  Bruno Haible  <bruno@clisp.org>
75097
75098         * modules/c-strcase: New file.
75099         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75100
75101 2005-10-11  Bruno Haible  <bruno@clisp.org>
75102
75103         * lib/strcasecmp.c: Include limits.h.
75104         (strcasecmp): Avoid integer overflow on exotic platforms.
75105         * lib/strncasecmp.c: Include limits.h.
75106         (strncasecmp): Avoid integer overflow on exotic platforms.
75107         Reported by Paul Eggert.
75108
75109 2005-10-11  Bruno Haible  <bruno@clisp.org>
75110
75111         * lib/c-strcasestr.h: New file, from GNU gettext.
75112         * lib/c-strcasestr.c: New file, from GNU gettext.
75113
75114 2005-10-11  Bruno Haible  <bruno@clisp.org>
75115
75116         * lib/c-strcase.h: New file, from GNU gettext.
75117         * lib/c-strcasecmp.c: New file, from GNU gettext.
75118         * lib/c-strncasecmp.c: New file, from GNU gettext.
75119
75120 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75121
75122         * modules/mempcpy (License): GPL -> LGPL.
75123         * modules/strchrnul (License): Likewise.
75124         * modules/sysexits (License): Likewise.
75125
75126 2005-10-08  Simon Josefsson  <jas@extundo.com>
75127
75128         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75129
75130 2005-10-07  Simon Josefsson  <jas@extundo.com>
75131
75132         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75133
75134 2005-10-06  Simon Josefsson  <jas@extundo.com>
75135
75136         * tests/test-hmac-md5.c: New file.
75137
75138         * modules/hmac-md5-tests: New file.
75139
75140         * modules/hmac-md5: New file.
75141
75142 2005-10-06  Simon Josefsson  <jas@extundo.com>
75143
75144         * m4/hmac-md5.m4: New file.
75145
75146         * m4/memxor.m4: Require gl_C_RESTRICT.
75147
75148 2005-10-06  Simon Josefsson  <jas@extundo.com>
75149
75150         * lib/memxor.c (memxor): Avoid casts and warnings.
75151
75152 2005-10-06  Simon Josefsson  <jas@extundo.com>
75153
75154         * lib/hmac-md5.c: New file.
75155
75156         * lib/hmac.h: New file.
75157
75158 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75159
75160         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75161         promotes to int, not unsigned int, to catch the AIX 5.3
75162         compiler bug.
75163
75164 2005-10-05  Simon Josefsson  <jas@extundo.com>
75165
75166         * modules/memxor: New file.
75167
75168         * modules/iconv (Files): Move config.rpath to havelib, it is used
75169         there.
75170
75171         * modules/havelib (Files): Add config.rpath.
75172
75173 2005-10-05  Simon Josefsson  <jas@extundo.com>
75174
75175         * m4/memxor.m4: New file.
75176
75177 2005-10-05  Simon Josefsson  <jas@extundo.com>
75178
75179         * lib/memxor.c (memxor): Fix compiler error.
75180
75181         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75182         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75183
75184         * lib/memxor.h, lib/memxor.c: New files.
75185
75186         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75187         we assume all systems have it, suggested by Jim Meyering
75188         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75189         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75190         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75191         same reasons.
75192
75193 2005-10-05  Simon Josefsson  <jas@extundo.com>
75194
75195         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75196
75197 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75200         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75201         needed, since the source code now assumes these .h files.
75202
75203 2005-10-05  Derek Price  <derek@ximbiot.com>
75204
75205         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75206
75207 2005-10-05  Bruno Haible  <bruno@clisp.org>
75208
75209         * modules/stdint (License): Change to LGPL.
75210
75211 2005-10-04  Simon Josefsson  <jas@extundo.com>
75212
75213         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75214         D. Baushke" <mdb@gnu.org>.
75215
75216 2005-10-04  Bruno Haible  <bruno@clisp.org>
75217
75218         * lib/verify.h (verify_true): Provide alternative definition for C++.
75219
75220 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75221
75222         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75223         (SSIZE_MAX): New macro, if not already defined.
75224         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75225         than 2 GiB.
75226
75227 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         Sync from coreutils.
75230         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75231         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75232         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75233         ULLONG_MAX doesn't work with 2.7.2.1.
75234
75235 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75236
75237         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75238         From Ben Pfaff.
75239
75240         * modules/exclude (Depends-on): Depend on verify.
75241         * modules/strtoimax (Depends-on): Likewise.
75242         * modules/utimecmp (Depends-on): Likewise.
75243
75244 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75245
75246         * lib/exclude.c: Include verify.h.
75247         (verify): Remove.  All callers changed to use verify.h's version.
75248         * lib/strtoimax.c: Likewise.
75249         * lib/utimecmp.c: Likewis.e
75250
75251         Sync from coreutils.
75252         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75253         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75254         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75255         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75256         bother returning ENOSYS if settimeofday or stime fails; just let
75257         them return whatever errno they want to return.
75258         * lib/utimens.c: Include unistd.h, for dup2.
75259         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75260         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75261
75262 2005-10-02  Jim Meyering  <jim@meyering.net>
75263
75264         Sync from coreutils.
75265         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75266         from glibc-2.2.5 that fails for read-only files.
75267
75268 2005-10-02  Jim Meyering  <jim@meyering.net>
75269
75270         Sync from coreutils.
75271         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75272         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75273         `#if HAVE_CONFIG_H'.
75274         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75275         Remove AT_FDCWD test.
75276         Do not consume the fd unless successful.
75277         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75278         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75279         block, so that we don't even try to compile it if settimeofday is
75280         available.  This works around a compilation failure on OSF1 V5.1,
75281         due to stime requiring a `long int*' while tv_sec is `int'.
75282
75283 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75284
75285         Sync from coreutils.
75286         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75287         against `yes', rather than just testing for nonempty.
75288
75289 2005-10-01  Simon Josefsson  <jas@extundo.com>
75290
75291         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75292         and Darwin.
75293
75294         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75295         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75296         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75297         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75298         Check if struct addrinfo is declared.
75299
75300 2005-10-01  Simon Josefsson  <jas@extundo.com>
75301
75302         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75303         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75304         AI_* and EAI_* definitions.  Protect function declarations.
75305
75306 2005-10-01  Jim Meyering  <jim@meyering.net>
75307
75308         Sync from coreutils.
75309
75310         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75311         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75312         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75313         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75314         in the inet and nsl libraries.  Required on Solaris 5.7.
75315
75316 2005-10-01  Jim Meyering  <jim@meyering.net>
75317
75318         Sync from coreutils.
75319         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75320         in the inet and nsl libraries.  Required on Solaris 5.7.
75321
75322 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75323
75324         * lib/getdelim.c (getdelim): Remove unused variables.
75325
75326 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75329         so that the code works even with ancient cpp.  Portability problem
75330         with GCC 2.7.2.1 reported by Thomas M.Ott.
75331
75332 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75333
75334         * modules/regex (Depends-on): Add strcase.
75335
75336         * modules/gethostname (Licence): Change from GPL to LGPL, since
75337         gethostname.c is a trivial implementation of a standard library
75338         function.
75339         * modules/poll (License): Change from GPL to LGPL, since it's
75340         derived from LGPL code.
75341
75342 2005-09-27  Jim Meyering  <jim@meyering.net>
75343
75344         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75345         HAVE_CONFIG_H.
75346
75347         * lib/intprops.h (signed_type_or_expr__): Define.
75348         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75349         for unsigned types.
75350
75351 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75352
75353         * lib/verify.h (verify_expr): Remove, replacing with:
75354         (verify_true): New macro that returns true instead of void.
75355         (verify_type__): Remove.
75356         (verify): Use verify_true rather than verify_type__.
75357
75358 2005-09-26  Bruno Haible  <bruno@clisp.org>
75359
75360         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75361         is necessary.
75362         (lib_SOURCES): Remove mbchar.c.
75363         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75364         (Files): Add m4/mbrtowc.m4.
75365         * modules/mbiter: Likewise.
75366         * modules/mbuiter: Likewise.
75367
75368 2005-09-26  Bruno Haible  <bruno@clisp.org>
75369
75370         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75371         compile mbchar.c if they are not both present.
75372         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75373         * m4/mbiter.m4 (gl_MBITER): Likewise.
75374         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75375         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75376         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75377
75378 2005-09-25  Jim Meyering  <jim@meyering.net>
75379
75380         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75381         also uses socklen_t.
75382
75383 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         * lib/utimens.c (ENOSYS): Define if not already defined.
75386         (futimens): Support having a null PATH if the file descriptor
75387         is nonnegative.
75388
75389         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75390         Remove.
75391         (__attribute): Define to empty unless GCC 3.1 or later.
75392         This works around a core dump on OpenBSD 3.4, which has GCC
75393         2.95.3, which dumps core when given __attribute__(()).  It also
75394         simplifies other tests, since we really don't want to bother with
75395         worrying about which ancient version of GCC supported what.
75396         Original problem reported by Yoann Vandoorselaere, with part of
75397         the fix suggested by Derek Price.
75398
75399 2005-09-24  Jim Meyering  <jim@meyering.net>
75400
75401         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75402         so we can once again use a positive bitfield width of 1 -- now we
75403         don't have to explain why we were using a bitfield width of 2.
75404
75405 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75406
75407         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75408         and similarly for the other external symbols.  Problem reported
75409         by James Gallager.
75410
75411         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75412         bug reported by Jim Meyering.
75413
75414         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75415         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75416         not needed, since socklen is a prerequisite module.
75417
75418 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75419
75420         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75421         Problem reported by Eric Blake.
75422         (getaddrinfo): Initialize se so that it's not garbage.
75423         Redo internal storage allocation so that it doesn't make unportable
75424         assumptions about alignment.
75425         Fix a memory leak.
75426
75427         * lib/utimens.c (futimens): Use futimesat if available.
75428         Prefer it to futimes since it doesn't have the futimes bug.
75429
75430         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75431         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75432         Instead, declare a function that returns a pointer to an array,
75433         and use verify_type__ to declare the size of the array.
75434         Problem and germ of a solution reported by Bruno Haible.
75435         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75436         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75437
75438 2005-09-23  Jim Meyering  <jim@meyering.net>
75439
75440         Sync from coreutils.
75441         Correct build failure (socklen_t not defined) on at least
75442         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75443         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75444
75445 2005-09-23  Jim Meyering  <jim@meyering.net>
75446
75447         * modules/getaddrinfo (Depends-on): Add socklen.
75448
75449 2005-09-23  Bruno Haible  <bruno@clisp.org>
75450
75451         * tests/test-verify.c: New file.
75452
75453 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75454
75455         Sync from coreutils.
75456
75457         * modules/argmatch (Depends-on): Add verify.
75458         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75459         unistd-safer.
75460         * modules/save-cwd (Depends-on): Likewise.
75461
75462         * modules/openat (Files): Add lib/openat-die.c.
75463         (Depends-on): Remove error, exitfail.
75464         Add dirname.
75465
75466         * modules/verify: New file.
75467         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75468         with "verify" module.
75469
75470 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75471
75472         Sync from coreutils.
75473
75474         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75475         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75476         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75477         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75478         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75479         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75480         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75481         Don't bother checking for string.h, stdlib.h, unistd.h.
75482         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75483         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75484         module's job.
75485         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75486         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75487
75488         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75489         (gl_GETDATE): Use it.
75490
75491         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75492
75493 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75494
75495         Sync from coreutils.
75496
75497         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75498         stat-time.h.
75499         * lib/argmatch.h: Include verify.h
75500         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75501         (ARGMATCH_ASSERT): Remove; unused.
75502         * lib/canonicalize.c: Assume STDC_HEADERS.
75503         * lib/exclude.c: Include "strcase.h".
75504         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75505         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75506         and stdio-safer.h.
75507         (getusershell): Call fopen, not fopen_safer.
75508         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75509         Do not include unistd-safer.h.
75510         (save_cwd): Don't call fd_safer; no longer needed
75511         now that we include fcntl--.h.
75512
75513         * lib/getdate.y (relative_time): New type.
75514         (RELATIVE_TIME_0): New constant.
75515         (parser_control): Use relative_time instead of doing it ourselves.
75516         (%union): Add new relative_time rel member.
75517         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75518         Now typeless.
75519         (relunit, relunit_snumber): Now of type rel.
75520         (zone, rel, relunit, get_date): Adjust to above changes.
75521
75522         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75523         Do not include unistd-safer.h.
75524         (getloadavg): Don't call fd_safer; no longer needed
75525         now that we include fcntl--.h.
75526
75527         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75528         (make_dir_parents): Treat ENOSYS like EEXIST.
75529
75530         Improve quality of diagnostics on restore_cwd failure.
75531         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75532         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75533         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75534         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75535         each time through the loop.  Do not diagnose restore_cwd failure;
75536         that is the caller's job (and perhaps the caller does not care).
75537
75538         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75539         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75540         If the file already exists but is not a directory, don't bother
75541         to try to make its parents.
75542         Close potential file descriptor leak if we can't chdir("/") (!).
75543         Don't always return true if chdir($PWD) fails; return true only
75544         if the requested action was done successfully (except for the
75545         chdir($PWD)).
75546         Don't log final directory unless we actually made it.
75547         Refactor to avoid duplicate code to fix up permissions.
75548         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75549
75550         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75551         to make it a bit faster and (I hope) clearer.
75552         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75553         Fix bug in formats like %2N.
75554
75555         * lib/verify.h: New file.
75556
75557 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75558
75559         Sync from coreutils.
75560         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75561
75562 2005-09-22  Jim Meyering  <jim@meyering.net>
75563
75564         Sync from coreutils.
75565
75566         * m4/lstat.m4 (gl_FUNC_LSTAT):
75567         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75568         Remove obsolete comment.
75569         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75570         * m4/xstrtod.m4: Likewise.
75571
75572         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75573
75574 2005-09-22  Jim Meyering  <jim@meyering.net>
75575
75576         Sync from coreutils.
75577
75578         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75579
75580         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75581         the .tm_year member, since otherwise gcc-4.0 would now warn about
75582         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75583
75584         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75585         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75586
75587         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75588         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75589         when run in a time zone for which daylight savings time is in effect
75590         for the starting date.
75591
75592         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75593         stop us from restricting permissions of just-created absolute-named
75594         directories.
75595         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75596         to restore initial working directory.
75597         * lib/mkdir-p.c (make_dir_parents): New parameter:
75598         different_working_dir, to tell caller if/when we change the working
75599         directory and are unable to return to the initial one.
75600         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75601         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75602         `return false'.  This fixes a bug introduced on 2004-07-30.
75603
75604         * lib/openat.c (fdopendir): Be sure to close the supplied
75605         file descriptor before returning.  This makes our replacement
75606         implementation a little closer to Solaris's, where fdopendir
75607         ties the file descriptor to the returned DIR* pointer.
75608         * lib/openat.c (unlinkat): New function.
75609         * lib/openat.h (unlinkat): Add prototype.
75610         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75611         (openat_restore_fail): Rename from openat_restore_die.
75612         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75613
75614         Provide an alternative to exiting immediately upon save_cwd or
75615         restore_cwd failure.  Now, an application can arrange e.g.,
75616         to perform a longjump in that case.
75617         * lib/openat.c: Include dirname.h.
75618         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75619         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75620         and openat_restore_die rather than calling error directly.
75621         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75622
75623         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75624         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75625         define.
75626
75627         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75628         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75629                             int utc, int nanoseconds);
75630         Background:
75631         date should not have to allocate a megabyte of virtual memory to
75632         handle a format argument like +%1048575T.  When implemented with
75633         strftime, it must allocate such a buffer, use strftime to fill it
75634         in, print it, then free it.
75635         With fprintftime, it simply prints everything and exits.
75636         With no need for memory allocation, that's one fewer way to fail.
75637         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75638         optional field width, not before, so we accept %9:z, not %:9z.
75639         (my_strftime): Be sure to use L_('x') for literals.
75640
75641         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75642         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75643         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75644         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75645         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75646         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75647         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75648         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75649         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75650         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75651         * lib/xgethostname.c, lib/xreadlink.c:
75652         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75653
75654         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75655         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75656         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75657         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75658         and don't include <sys/file.h>).
75659
75660 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75661
75662         Sync from coreutils.
75663
75664         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75665         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75666         [!LDAV_DONE]: Avoid unused variable warning.
75667
75668 2005-09-21  Bruno Haible  <bruno@clisp.org>
75669
75670         * lib/unicodeio.h (unicode_to_mb): New declaration.
75671
75672 2005-09-20  Derek Price  <derek@ximbiot.com>
75673
75674         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75675         getaddrinfo.h.
75676
75677 2005-09-20  Bruno Haible  <bruno@clisp.org>
75678
75679         * gnulib-tool: Remove trailing slashes from the values specified for
75680         --source-base, --m4-base, --tests-base, --aux-dir.
75681         Suggested by Simon Josefsson <jas@extundo.com>.
75682
75683 2005-09-20  Bruno Haible  <bruno@clisp.org>
75684
75685         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75686         func_modules_to_filelist, func_import, func_create_testdir): Make all
75687         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75688         change when gnulib-tool is invoked in a different locale.
75689
75690 2005-09-19  Simon Josefsson  <jas@extundo.com>
75691
75692         * m4/socklen.m4: Fix typo.
75693
75694 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75695
75696         Use a consistent style for including <config.h>.
75697         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75698         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75699         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75700         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75701         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75702         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75703         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75704         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75705         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75706         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75707         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75708         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75709         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75710         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75711         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75712         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75713         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75714         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75715         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75716         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75717         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75718         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75719         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75720         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75721         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75722         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75723         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75724         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75725         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75726         lib/xstrtoumax.c, lib/yesno.c:
75727         Standardize inclusion of config.h.
75728         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75729         lib/inttostr.h:  Removed inclusion of config.h from header files.
75730         * lib/inttostr.c:  Adjusted in-tree users.
75731         * lib/timespec.h: Remove superfluous warning to include config.h.
75732         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75733         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75734         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75735         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75736         config.h with HAVE_CONFIG_H.
75737
75738 2005-09-19  Jim Meyering  <jim@meyering.net>
75739
75740         * modules/pathmax (License): Change to LGPL.
75741
75742 2005-09-19  Derek Price  <derek@ximbiot.com>
75743
75744         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75745
75746 2005-09-19  Bruno Haible  <bruno@clisp.org>
75747
75748         * gnulib-tool (import): Provide default for --tests-base.
75749
75750 2005-09-19  Bruno Haible  <bruno@clisp.org>
75751
75752         * doc/quote.texi: New file, extracted from gnulib.texi.
75753         * doc/ctime.texi: New file, extracted from gnulib.texi.
75754         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75755         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75756         * doc/gnulib.texi: Include them.
75757
75758 2005-09-18  Bruno Haible  <bruno@clisp.org>
75759
75760         Portability fix.
75761         * gnulib-tool (func_readlink): New function.
75762         (func_ln_if_changed): Use it.
75763
75764 2005-09-18  Bruno Haible  <bruno@clisp.org>
75765
75766         * gnulib-tool: Support --with-tests also with --import.
75767         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75768         (func_import): Use variables $testsbase and $inctests. Emit a
75769         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75770         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75771         SUBDIRS += $testsdir.
75772         (func_create_testdir): Update.
75773
75774 2005-09-18  Bruno Haible  <bruno@clisp.org>
75775
75776         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75777         instead of $dry_run.
75778         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75779         (func_ln_if_changed): Don't handle dry-run here.
75780         (func_import): In dry-run mode, detect more precisely which actions
75781         would be performed, and don't use "...ing" verbs.
75782
75783 2005-09-18  Bruno Haible  <bruno@clisp.org>
75784
75785         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75786         (func_import): Use join on two temporary files instead of three nested
75787         loops, in order to determine which files are new or old.
75788
75789 2005-09-18  Bruno Haible  <bruno@clisp.org>
75790
75791         * gnulib-tool (func_import): Comment out code that spits out the
75792         new files with --dry-run.
75793
75794 2005-09-18  Bruno Haible  <bruno@clisp.org>
75795
75796         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75797
75798 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75799
75800         * lib/stat-time.h: New file.
75801         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75802         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75803         in a different way.
75804         (timespec_cmp): New function.
75805         * lib/utimecmp.c: Include stat-time.h.
75806         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75807         members exist, not on the obsolescent ST_MTIM_NSEC.
75808         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75809
75810 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75811
75812         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75813
75814 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75815
75816         * MODULES.html.sh (File system functions): Add stat-time.
75817         * modules/stat-time: New file.
75818         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75819         is now done in a different way, by the stat-time module.
75820         * modules/utimecmp (Depends-on): Add stat-time.
75821
75822 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         * m4/st_mtim.m4: Remove.  Superseded by...
75825         * m4/stat-time.m4: New file.
75826         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75827         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75828
75829 2005-09-15  Derek Price  <derek@ximbiot.com>
75830
75831         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75832
75833 2005-09-15  Derek Price  <derek@ximbiot.com>
75834
75835         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75836         * lib/regex_internal.c: Ditto, using this...
75837         (__GNUC_PREREQ): ...new macro.
75838         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75839         using...
75840         (__GNUC_PREREQ): ...this new macro.
75841
75842         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75843
75844 2005-09-15  Derek Price  <derek@ximbiot.com>
75845             Paul Eggert  <eggert@cs.ucla.edu>
75846
75847         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75848         changes, consolidating in...
75849         * lib/regex_internal.h: ...this file.
75850
75851 2005-09-13  Jim Meyering  <jim@meyering.net>
75852
75853         * lib/canon-host.c: Filter through gnu indent and reword comments
75854         slightly.
75855         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75856
75857 2005-09-13  Derek Price  <derek@ximbiot.com>
75858
75859         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75860         failure.
75861         Reported by Jim Meyering  <jim@meyering.net>.
75862
75863 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75864
75865         * lib/base64.c: Typo.
75866         (base64_encode): Put b64str in initialized data section.
75867
75868 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75869
75870         Merge glibc and coreutils changes into gnulib, plus a few
75871         extra fixes.
75872         * lib/md5.c: Use #error rather than a string.
75873         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75874         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75875         (__attribute__): Define to empty for non recent-GCC.
75876         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75877         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75878         Renamed from their non-__ counterparts, with new macros replacing
75879         them if not _LIBC.  Add __THROW attribute.
75880         (rol): Remove.
75881         (struct md5_ctx): Align buffer if using GCC.
75882         * lib/sha1.h (struct sha1_ctx): Likewise.
75883         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75884         The old name was backwards.
75885         (NOTSWAP): Remove; not used.
75886         (rol): New macro, moved here from md5.h.
75887         (sha1_process_block): Remove a FIXME that doesn't make sense.
75888
75889 2005-09-12  Derek Price  <derek@ximbiot.com>
75890
75891         Return usable errors from canon-host.
75892         * lib/canon-host.h: New file.
75893         * lib/canon-host.c (canon_host): Wrap...
75894         (canon_host_r): ...this new function, which now relies exclusively on
75895         getaddrinfo.
75896         (ch_strerror): New function.
75897         (last_cherror): New global.
75898         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75899         interface.
75900         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75901         void *.
75902         (freeaddrinfo): Free ai->ai_canonname when set.
75903
75904 2005-09-12  Derek Price  <derek@ximbiot.com>
75905
75906         Make canon-host require getaddrinfo.
75907         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75908         AC_LIBSOURCE canon-host.h.  Call...
75909         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75910         gl_GETADDRINFO.
75911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75912
75913 2005-09-12  Derek Price  <derek@ximbiot.com>
75914
75915         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75916         LGPL.
75917         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75918
75919 2005-09-12  Derek Price  <derek@ximbiot.com>
75920
75921         * lib/gai_strerror.c: Include config.h when available.  Include
75922         getaddrinfo.h before other headers to test interface.
75923         Reported by Larry Jones <lawrence.jones@ugs.com>.
75924
75925 2005-09-12  Derek Price  <derek@ximbiot.com>
75926             Paul Eggert  <eggert@cs.ucla.edu>
75927
75928         * modules/glob (Files): Add glob-libc.h.
75929
75930 2005-09-12  Derek Price  <derek@ximbiot.com>
75931             Paul Eggert  <eggert@cs.ucla.edu>
75932
75933         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75934         glob_.h, glob-libc.h.
75935         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75936
75937 2005-09-12  Derek Price  <derek@ximbiot.com>
75938             Paul Eggert  <eggert@cs.ucla.edu>
75939
75940         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75941         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75942         protecting things that should be done only in gnulib contexts.
75943         * lib/glob_.h: New file, containing only the glob things needed for
75944         gnulib.
75945         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75946         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75947         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75948         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75949         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75950         and to respect the namespace rules better.
75951
75952 2005-09-08  Simon Josefsson  <jas@extundo.com>
75953
75954         * modules/socklen: New file.
75955
75956 2005-09-08  Simon Josefsson  <jas@extundo.com>
75957
75958         * m4/socklen.m4: New file.
75959
75960 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75961
75962         * modules/utimens (Files): Add m4/utimbuf.m4, since
75963         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75964         Reported by Sergey Poznyakoff.
75965
75966 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75967
75968         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75969         definitions, since that's the preferred style in glibc.
75970         Fix a minor spacing issue, and update copyright notice to match
75971         glibc's.
75972
75973 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75974
75975         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75976
75977 2005-09-06  Simon Josefsson  <jas@extundo.com>
75978
75979         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75980         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75981
75982 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75983
75984         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75985         warning.
75986
75987 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75988
75989         * config/srclist.txt: Add glibc bug 1302.
75990
75991 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         Change bitset word type from unsigned int to unsigned long int,
75994         as this has better performance on typical 64-bit hosts.
75995         Port bitset code to hosts with unusual word sizes.
75996         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75997         (build_collating_symbol):
75998         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75999         argument is a bitset.  This is merely a style issue, but it makes
76000         it clearer that an entire array is expected.
76001         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76002         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76003         Port to the case where bitset_word is not the same as unsigned int.
76004         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76005         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76006         Likewise.
76007         * lib/regexec.c (check_dst_limits_calc_pos_1,
76008         check_subexp_matching_top):
76009         (build_trtable, group_nodes_into_DFAstates):
76010         Likewise.
76011         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76012         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76013         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76014         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76015         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76016         * lib/regcomp.c (optimize_subexps, lower_subexp):
76017         Work even if bitset_word has holes in its bitwise representation.
76018         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76019         * lib/regexec.c (check_dst_limits_calc_pos_1,
76020         check_subexp_matching_top):
76021         Likewise.
76022         * lib/regex_internal.c (re_string_reconstruct):
76023         Don't assume UCHAR_MAX == 255.
76024         * lib/regex_internal.h (bitset_set_all): Likewise.
76025         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76026         All uses changed.
76027         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76028         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76029         All uses changed.
76030         (BITSET_WORD_MAX): New macro.
76031         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76032         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76033         (bitset_empty, bitset_copy):
76034         Prefer sizeof (bitset) to multiplying it out ourselves.
76035         (bitset_not_merge): Remove; unused.
76036         (bitset_contain): Return bool, not unsigned int with one bit on.
76037         All callers changed.
76038         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76039         alignment than re_node_set; do this by defining a new internal
76040         type struct dests_alloc and using it to allocate memory.
76041
76042 2005-09-05  Bruno Haible  <bruno@clisp.org>
76043
76044         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76045         links.
76046
76047 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76048
76049         * modules/size_max (Makefile.am): Add size_max.h
76050
76051 2005-09-04  Derek Price  <derek@ximbiot.com>
76052
76053         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76054
76055 2005-09-03  Simon Josefsson  <jas@extundo.com>
76056
76057         * gnulib-tool: Fix typo.
76058
76059 2005-09-03  Simon Josefsson  <jas@extundo.com>
76060
76061         * config/srclist.txt: Add glibc bug 1293.
76062
76063 2005-09-03  Derek Price  <derek@ximbiot.com>
76064
76065         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76066         From Larry Jones <lawrence.jones@ugs.com>.
76067
76068 2005-09-02  Simon Josefsson  <jas@extundo.com>
76069
76070         * modules/socklen: New file.
76071
76072 2005-09-02  Simon Josefsson  <jas@extundo.com>
76073
76074         * modules/havelib: New module.
76075
76076         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76077         Use havelib.
76078
76079 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76080
76081         Check for arithmetic overflow when calculating sizes, to prevent
76082         some buffer-overflow issues.  These patches are conservative, in the
76083         sense that when I couldn't determine whether an overflow was possible,
76084         I inserted a run-time check.
76085         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76086         macros.
76087         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76088         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76089         (re_xnrealloc, re_x2nrealloc): New inline functions.
76090         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76091         parse_bracket_exp):
76092         (build_equiv_class, build_charclass): Check for arithmetic overflow
76093         in size expression calculations.
76094         * lib/regex_internal.c (re_string_realloc_buffers):
76095         (build_wcs_upper_buffer, re_node_set_add_intersect):
76096         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76097         (re_dfa_add_node, register_state): Likewise.
76098         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76099         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76100         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76101         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76102
76103 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76104
76105         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76106         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76107
76108 2005-09-02  Bruno Haible  <bruno@clisp.org>
76109
76110         Support for lib vs. lib64 distinction on biarch platforms.
76111         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76112         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76113         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76114
76115 2005-09-02  Bruno Haible  <bruno@clisp.org>
76116
76117         * gnulib-tool (import): In the other first-use case, provide defaults
76118         as well.
76119
76120 2005-09-02  Bruno Haible  <bruno@clisp.org>
76121
76122         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76123         patches not yet found in the latest gettext release.
76124
76125 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76126
76127         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76128         to avoid a collision with bits/local_lim.h in glibc.
76129         All uses changed.  Problem reported by Dmitry V. Levin in
76130         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76131
76132         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76133         bugs in int versus size_t comparisons.
76134         (re_string_context_at): Fix bug where the code assumed that
76135         Idx is signed.
76136
76137         Use bool where appropriate.
76138         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76139         All callers changed.
76140         (calc_eclosure_iter): Likewise, for ROOT arg.
76141         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76142         (build_charclass_op): Likewise, for NON_MATCH arg.
76143         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76144         (re_string_construct_common): Likewise, for ICASE arg.
76145         * lib/regexec.c (re_search_2_stub, re_search_stub):
76146         Likewise, for RET_LEN arg.
76147         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76148         (set_regs): Likewise, for FL_BACKTRACK arg.
76149         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76150         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76151         (calc_eclosure_iter, parse_bracket_exp):
76152         Use bool for internal variables that are booleans.
76153         * lib/regexec.c (re_search_internal, check_matching,
76154         proceed_next_node):
76155         (set_regs, build_sifted_states, sift_states_bkref):
76156         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76157         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76158         (find_collation_sequence_value):
76159         Likewise.
76160         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76161         (re_node_set_compare):
76162         Return bool, not int. All callers changed.
76163         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76164         (build_trtable, check_node_accept): Likewise.
76165         * lib/regex_internal.h: Include stdbool.h.
76166
76167         Fix bugs uncovered when converting to bool.
76168         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76169         failure instead of charging ahead blindly.
76170         * lib/regex_internal.c (register_state): Likewise.
76171         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76172         for freeing internal storage.
76173         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76174         bitset pieces used as boolean, to avoid undefined behavior
76175         on hosts that do int overflow checking.
76176
76177 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76178
76179         * config/srclist.txt: Add glibc bugs 1285-1287.
76180
76181 2005-09-01  Jim Meyering  <jim@meyering.net>
76182
76183         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76184         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76185         Require gl_STAT_MACROS, too.
76186
76187 2005-09-01  Bruno Haible  <bruno@clisp.org>
76188
76189         * gnulib-tool (import): In the first-use case, provide defaults.
76190
76191 2005-09-01  Bruno Haible  <bruno@clisp.org>
76192
76193         * gnulib-tool (func_import): Remove the .tmp files.
76194
76195 2005-09-01  Bruno Haible  <bruno@clisp.org>
76196
76197         * gnulib-tool (func_import): Fix handling of symbolic links.
76198
76199 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76200
76201         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76202         old glibc regex code mishandles strings longer than 2**31 bytes.
76203         This patch fixes this when the regex code is used in gnulib
76204         (i.e., outside glibc).
76205
76206         This patch should not affect the use of the regex code inside
76207         glibc.  No doubt this problem also needs to be handled for glibc
76208         as well, but the result will be an incompatible change to the
76209         glibc ABI, and the old ABI will have to be supported too.  That
76210         can be the the subject for another patch.
76211
76212         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76213         governing whether the rest of this patch is active.  By default,
76214         the macro is disabled and the patch has no effect.
76215         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76216         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76217         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76218         (re_match_2, re_set_registers): Use the new types.
76219         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76220         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76221         New macros.
76222         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76223         (re_string_context_at, bin_tree_t, re_dfastate_t):
76224         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76225         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76226         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76227         (re_string_char_size_at, re_string_wchar_at):
76228         (re_string_elem_size_at):
76229         Use the new types and macros to port to 64-bit hosts.
76230         Use unsigned types for internal values, so that the code
76231         mostly works even for arrays larger than SSIZE_MAX.
76232         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76233         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76234         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76235         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76236         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76237         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76238         (calc_inveclosure, parse_dup_op, build_range_exp):
76239         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76240         (fetch_number, create_token_tree, mark_opt_subexp):
76241         Likewise.
76242         * lib/regex_internal.c (re_string_construct_common,
76243         create_ci_newstate):
76244         (create_cd_newstate, re_string_allocate, re_string_construct):
76245         (re_string_realloc_buffers, build_wcs_upper_buffer):
76246         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76247         (re_string_reconstruct, re_string_peek_byte_case):
76248         (re_string_fetch_byte_case, re_string_context_at):
76249         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76250         (re_node_set_init_copy, re_node_set_add_intersect):
76251         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76252         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76253         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76254         (re_acquire_state, re_acquire_state_context, register_state):
76255         Likewise.
76256         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76257         search_cur_bkref_entry):
76258         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76259         (re_search_internal, re_search_2_stub, re_search_stub)
76260         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76261         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76262         (update_cur_sifted_state, check_dst_limits):
76263         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76264         (check_subexp_limits, sift_states_bkref, merge_state_array):
76265         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76266         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76267         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76268         (expand_bkref_cache, check_node_accept_bytes):
76269         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76270         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76271         (acquire_init_state_context, check_halt_node_context):
76272         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76273         (sift_states_backward, clean_state_log_if_needed):
76274         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76275         (find_recover_state, transit_state_sb, transit_state_mb):
76276         (transit_state_bkref, build_trtable, match_ctx_clean):
76277         Likewise.
76278         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76279         to work around an assumption that REG_MISSING is negative.
76280
76281         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76282         (seek_collating_symbol_entry) [defined _LIBC]:
76283         (lookup_collation_sequence_value) [defined _LIBC]:
76284         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76285         Use prototypes rather than old-style function definitions.
76286         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76287         (transit_state_sb) [0]:
76288         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76289
76290         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76291         rm_eo.
76292
76293         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76294         (optimize_subexps, lower_subexp):
76295         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76296         since the signed shift might overflow.  Use 1u<<31 instead.
76297         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76298         Likewise.
76299         * lib/regexec.c (check_dst_limits_calc_pos_1,
76300         check_subexp_matching_top): Likewise.
76301
76302         * lib/regcomp.c (optimize_subexps, lower_subexp):
76303         Use CHAR_BIT rather than 8, for clarity.
76304         * lib/regexec.c (check_dst_limits_calc_pos_1):
76305         (check_subexp_matching_top): Likewise.
76306         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76307         have to worry about portability issues when shifting it left.
76308         Remove no-longer-needed test for table_size > 0.
76309         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76310         in a word, as the resulting behavior is undefined.
76311         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76312         in one case, a <= should have been an <, and in another case the
76313         whole test was missing.
76314         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76315         the standard name CHAR_BIT.
76316         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76317         this is not true on one's complement and signed-magnitude hosts.
76318
76319         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76320         next_last_offset.
76321         (struct re_dfa_t): Remove unused member states_alloc.
76322         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76323
76324 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76325
76326         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76327         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76328         and large-file glibc and in 32-bit large-file Solaris.
76329
76330 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76331
76332         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76333         lengths fit in regoff_t; this isn't true if regoff_t is the same
76334         width as size_t.
76335         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76336         (= START + RANGE) instead of RANGE.  This avoids overflow
76337         problems when regoff_t is the same width as size_t.
76338         All callers changed.
76339         (re_search_2_stub): Check for overflow when adding the
76340         sizes of the two strings.
76341         (re_search_stub): Check for overflow when adding START
76342         to RANGE; if it occurs, substitute the extreme value.
76343
76344 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76345
76346         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76347
76348 2005-08-31  Jim Meyering  <jim@meyering.net>
76349
76350         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76351         a pointer-to-const.
76352         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76353         (register_state): Likewise.
76354         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76355         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76356         (group_nodes_into_DFAstates): Likewise.
76357
76358 2005-08-31  Jim Meyering  <jim@meyering.net>
76359
76360         * check-module: Add a FIXME comment.
76361
76362 2005-08-31  Eric Blake  <ebb9@byu.net>
76363
76364         * modules/unistd-safer (Files): Add unistd--.h.
76365         * modules/stdio-safer (Files): Add stdio--.h.
76366
76367 2005-08-31  Derek Price  <derek@ximbiot.com>
76368
76369         * lib/getdelim.c (getdelim): Return EOF on EOF.
76370         Reported by Larry Jones <lawrence.jones@ugs.com>.
76371
76372 2005-08-31  Bruno Haible  <bruno@clisp.org>
76373
76374         Avoid unnecessary diffs in the generated lib/Makefile.am.
76375         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76376         the generated files.
76377         (func_import): Don't set cmd.
76378
76379 2005-08-31  Bruno Haible  <bruno@clisp.org>
76380
76381         * lib/strstr.c: Include <stddef.h>, for NULL.
76382         * lib/strcasestr.c: Likewise.
76383         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76384
76385 2005-08-31  Bruno Haible  <bruno@clisp.org>
76386
76387         * gnulib-tool: New option --macro-prefix.
76388         (func_import): Use macro_prefix.
76389         (import): Handle option --macro-prefix.
76390
76391 2005-08-31  Bruno Haible  <bruno@clisp.org>
76392
76393         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76394         Also use new variables cached_lgpl, cached_libtool.
76395
76396 2005-08-31  Bruno Haible  <bruno@clisp.org>
76397
76398         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76399         always instantiating them.
76400
76401 2005-08-31  Bruno Haible  <bruno@clisp.org>
76402
76403         * gnulib-tool (func_import): Read the previous cached settings
76404         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76405         earlier added by gnulib but are now dropped. Warn when a gnulib file
76406         overwrites a non-gnulib file.
76407
76408 2005-08-31  Bruno Haible  <bruno@clisp.org>
76409
76410         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76411         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76412         projects that don't keep autogenerated files in CVS. Put into
76413         actioncmd only the specified modules, not the transitive closure.
76414
76415 2005-08-31  Bruno Haible  <bruno@clisp.org>
76416
76417         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76418         Create directories that shall be filled.
76419         (import): Don't look for gl_* macros in configure.ac. Recurse across
76420         all directories containing a gnulib-cache.m4 files, if meaningful.
76421
76422 2005-08-31  Bruno Haible  <bruno@clisp.org>
76423
76424         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76425         (import): Set seen_libtool when we see gl_LIBTOOL.
76426
76427 2005-08-31  Bruno Haible  <bruno@clisp.org>
76428
76429         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76430         declaration macro definitions from generated gnulib.m4.
76431
76432 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76433
76434         * lib/iconvme.h: Add prototype for iconv_alloc.
76435
76436 2005-08-29  Simon Josefsson  <jas@extundo.com>
76437
76438         * lib/iconvme.c: Fix errno.
76439
76440 2005-08-29  Bruno Haible  <bruno@clisp.org>
76441
76442         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76443         that it works when the directory contains spaces.
76444
76445 2005-08-29  Bruno Haible  <bruno@clisp.org>
76446
76447         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76448
76449 2005-08-29  Bruno Haible  <bruno@clisp.org>
76450
76451         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76452         Emit more advice.
76453
76454 2005-08-29  Bruno Haible  <bruno@clisp.org>
76455         and Stepan Kasal  <kasal@ucw.cz>
76456
76457         * check-module: If more parameters are given, check each of them
76458         separately; add more exceptions, as noted by Jim Meyering.
76459         (check_module): New procedure.
76460         (%exempt_header): Now contains all exceptions.
76461
76462 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76463
76464         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76465
76466 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76467
76468         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76469
76470 2005-08-28  Bruno Haible  <bruno@clisp.org>
76471
76472         * m4/gnulib-tool.m4: New file.
76473
76474 2005-08-27  Jim Meyering  <jim@meyering.net>
76475
76476         * modules/unistd-safer (Files): Add pipe-safer.c.
76477         * modules/fcntl-safer (Files): Add creat-safer.c.
76478
76479 2005-08-27  Jim Meyering  <jim@meyering.net>
76480
76481         * m4/stdlib-safer.m4: New file.  From coreutils.
76482         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76483         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76484         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76485         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76486         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76487
76488 2005-08-27  Jim Meyering  <jim@meyering.net>
76489
76490         * lib/fopen-safer.c: Merge minor changes from coreutils.
76491         * lib/dup-safer.c: Likewise.
76492         * lib/fd-safer.c: Likewise.
76493
76494         Merge from coreutils.
76495         * lib/stdio--.h: New file.
76496         * lib/stdlib--.h: New file.
76497         * lib/mkstemp-safer.c: New file.
76498
76499         GNU tar needs these.
76500         * lib/pipe-safer.c: New file.
76501         * lib/creat-safer.c: New file.
76502         * lib/fcntl--.h (creat): Define to creat_safer.
76503         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76504         * lib/unistd--.h (pipe): Define to pipe_safer.
76505         * lib/unistd-safer.h: Declare pipe_safer.
76506
76507 2005-08-26  Simon Josefsson  <jas@extundo.com>
76508
76509         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76510         Haible <bruno@clisp.org>.
76511
76512 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76513
76514         * lib/regex_internal.h: Remove all references to
76515         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76516         or better.
76517         (bitset_not, bitset_merge, bitset_not_merge):
76518         (bitset_mask, re_string_allocate, re_string_construct):
76519         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76520         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76521         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76522         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76523         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76524         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76525         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76526         (re_acquire_state_context):
76527         Remove unnecessary forward decls.
76528         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76529         Put __attribute at function definition,
76530         now that the function decl has been removed.
76531         * lib/regex_internal.c (re_string_peek_byte_case):
76532         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76533         Likewise.
76534
76535 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76536
76537         * m4/regex.m4: Add AC_PREREQ(2.50).
76538         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76539
76540 2005-08-25  Simon Josefsson  <jas@extundo.com>
76541
76542         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76543         __fsetlocking.
76544
76545 2005-08-25  Simon Josefsson  <jas@extundo.com>
76546
76547         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76548         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76549         GLIBC specific code.
76550
76551 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76552
76553         Make regex safe for g++.  This fixes one real bug (an "err"
76554         that should have been "*err").  g++ problem reported by
76555         Sam Steingold.
76556         * lib/regex_internal.h (re_calloc): New macro, consistent with
76557         re_malloc etc.  All callers of calloc changed to use re_calloc.
76558         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76559         not int.  All callers changed.
76560         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76561         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76562         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76563         (find_recover_state): Change "err" to "*err"; this fixes what
76564         appears to be a real bug.
76565         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76566         versus int.
76567
76568 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76569
76570         * modules/regex (Depends-on): Add malloc, since the code
76571         assumes that !malloc(0) means failure.
76572
76573 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76574
76575         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76576
76577         alloca modernization/simplification for regex.
76578         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76579         needs to be at the start of the file, and can be moved into
76580         regex_internal.h and simplified.
76581         * lib/regex_internal.h: Include <alloca.h>.
76582         (__libc_use_alloca) [!defined _LIBC]: New macro.
76583         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76584         now works outside glibc.
76585
76586 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76587
76588         * config/srclist.txt: Add glibc bugs 1241, 1245.
76589
76590 2005-08-25  Jim Meyering  <jim@meyering.net>
76591
76592         * lib/open-safer.c: Include <config.h>.
76593         Otherwise, we'd lose LARGEFILE support in any file using
76594         e.g. "fcntl--.h"
76595
76596 2005-08-25  Bruno Haible  <bruno@clisp.org>
76597
76598         * m4/minmax.m4: Require autoconf 2.52.
76599         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76600         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76601         alternatives of translit over the alphabet.
76602         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76603
76604 2005-08-24  Simon Josefsson  <jas@extundo.com>
76605
76606         * tests/test-getpass.c: New file.
76607
76608 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76609
76610         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76611         for GNU regex features.
76612
76613 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76614
76615         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76616         * lib/regex.h (regerror): Likewise.
76617
76618         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76619         requires this.  (The code never needed it.)
76620
76621         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76622         All uses of recently-renamed identifiers changed to use the new,
76623         POSIX-compliant names.  The code will build and run just fine
76624         without these changes, but it's better to eat our own dog food
76625         and use the standard-conforming names.
76626
76627         * lib/regex.h: Fix a multitude of POSIX name space violations.
76628         These changes have an effect only for programs that define
76629         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76630         do not change anything for programs compiled in the normal way.
76631         Also, there is no effect on the ABI.
76632
76633         (_REGEX_SOURCE): New macro.
76634         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76635         defined and _GNU_SOURCE is not; this fixes a name space violation.
76636
76637         Rename the following macros to obey POSIX requirements.
76638         The old names are still visible as macros if _REGEX_SOURCE is defined.
76639         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76640         RE_BACKSLASH_ESCAPE_IN_LISTS.
76641         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76642         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76643         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76644         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76645         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76646         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76647         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76648         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76649         (REG_INTERVALS): renamed from RE_INTERVALS.
76650         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76651         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76652         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76653         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76654         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76655         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76656         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76657         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76658         RE_UNMATCHED_RIGHT_PAREN_ORD.
76659         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76660         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76661         (REG_DEBUG): renamed from RE_DEBUG.
76662         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76663         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76664         unusual, since we can't clash with the POSIX REG_ICASE.
76665         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76666         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76667         (REG_NO_SUB): renamed from RE_NO_SUB.
76668         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76669         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76670         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76671         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76672         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76673         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76674         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76675         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76676         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76677         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76678         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76679         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76680         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76681         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76682         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76683         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76684         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76685         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76686         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76687         (REG_FIXED): Renamed from REGS_FIXED.
76688         (REG_NREGS): Renamed from RE_NREGS.
76689
76690         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76691         of other REG_* macros, since POSIX says the user is allowed to
76692         #undef these macros selectively.
76693
76694         (reg_errcode_t): Update comment stating what other tables need
76695         to be consistent.
76696
76697         Rename the following enum values to obey POSIX requirements.
76698         The old names are still visible as macros.
76699         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76700         is not defined, since GNU is supposed to be a superset of POSIX as
76701         much as possible, and since we want reg_errcode_t to be a signed
76702         type for implementation consistency.
76703         (_REG_NOERROR): Renamed from REG_NOERROR.
76704         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76705         (_REG_BADPAT): Renamed from REG_BADPAT.
76706         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76707         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76708         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76709         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76710         (_REG_EBRACK): Renamed from REG_EBRACK.
76711         (_REG_EPAREN): Renamed from REG_EPAREN.
76712         (_REG_EBRACE): Renamed from REG_EBRACE.
76713         (_REG_BADBR): Renamed from REG_BADBR.
76714         (_REG_ERANGE): Renamed from REG_ERANGE.
76715         (_REG_ESPACE): Renamed from REG_ESPACE.
76716         (_REG_BADRPT): Renamed from REG_BADRPT.
76717         (_REG_EEND): Renamed from REG_EEND.
76718         (_REG_ESIZE): Renamed from REG_ESIZE.
76719         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76720         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76721         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76722         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76723         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76724
76725         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76726         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76727         changed.  But support the old name if the new one is not defined
76728         and if _REGEX_SOURCE.
76729
76730         Change the following member names in struct re_pattern_buffer.
76731         The old names are still supported if !_REGEX_SOURCE.
76732         The new names are always supported, regardless of _REGEX_SOURCE.
76733         (re_buffer): Renamed from buffer.
76734         (re_allocated): Renamed from allocated.
76735         (re_used): Renamed from used.
76736         (re_syntax): Renamed from syntax.
76737         (re_fastmap): Renamed from fastmap.
76738         (re_translate): Renamed from translate.
76739         (re_can_be_null): Renamed from can_be_null.
76740         (re_regs_allocated): Renamed from regs_allocated.
76741         (re_fastmap_accurate): Renamed from fastmap_accurate.
76742         (re_no_sub): Renamed from no_sub.
76743         (re_not_bol): Renamed from not_bol.
76744         (re_not_eol): Renamed from not_eol.
76745         (re_newline_anchor): Renamed from newline_anchor.
76746
76747         Change the following member names in struct re_registers.
76748         The old names are still supported if !_REGEX_SOURCE.
76749         The new names are always supported, regardless of _REGEX_SOURCE.
76750         (rm_num_regs): Renamed from num_regs.
76751         (rm_start): Renamed from start.
76752         (rm_end): Renamed from end.
76753
76754         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76755         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76756         Prepend __ to parameter names.
76757
76758         Undo yesterday's changes.
76759
76760 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76761
76762         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76763         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76764         lib/regex.c.
76765
76766 2005-08-24  Jim Meyering  <jim@meyering.net>
76767
76768         Sync from coreutils.
76769         * m4/fcntl-safer.m4: New file.
76770
76771         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76772         and object files for this module.
76773
76774 2005-08-24  Jim Meyering  <jim@meyering.net>
76775
76776         Sync from coreutils.
76777         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76778
76779 2005-08-24  Jim Meyering  <jim@meyering.net>
76780
76781         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76782         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76783
76784 2005-08-24  Jim Meyering  <jim@meyering.net>
76785
76786         * modules/fcntl-safer: New module.
76787         * modules/fts (Depends-on): Add fcntl-safer.
76788         * MODULES.html.sh (File descriptor based Input/Output):
76789         Add fcntl-safer.
76790
76791 2005-08-24  Bruno Haible  <bruno@clisp.org>
76792
76793         Support for unit test modules.
76794         * modules/README: Mention tests modules.
76795         * modules/TEMPLATE-TESTS: New file.
76796         * gnulib-tool: New options --extract-tests-module, --with-tests and
76797         --tests-base (unused for the moment).
76798         (testsbase, inctests): New variables.
76799         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76800         (func_verify_module): Exclude TEMPLATE-TESTS.
76801         (func_verify_nontests_module, func_verify_tests_module): New functions.
76802         (func_get_dependencies): Add implicit dependency for tests modules.
76803         (func_get_tests_module): New function.
76804         (func_modules_transitive_closure): When --with-tests was specified,
76805         include the unit tests as well, unless explicitly avoided.
76806         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76807         (func_emit_tests_Makefile_am): New function.
76808         (func_create_testdir): When --with-tests was specified, emit a
76809         tests/ directory.
76810         * MODULES.html.sh (Future developments): Update.
76811
76812 2005-08-24  Bruno Haible  <bruno@clisp.org>
76813
76814         * modules/tls-tests: New file.
76815         * tests/test-tls.c: New file, from GNU gettext.
76816
76817 2005-08-24  Bruno Haible  <bruno@clisp.org>
76818
76819         * modules/lock-tests: New file.
76820         * tests/test-lock.c: New file, from GNU gettext.
76821
76822 2005-08-24  Bruno Haible  <bruno@clisp.org>
76823
76824         * lib/lock.h: Add multiple inclusion guard.
76825         * lib/tls.h: Add multiple inclusion guard.
76826
76827 2005-08-24  Bruno Haible  <bruno@clisp.org>
76828
76829         * gnulib-tool: Add support for the --aux-dir option to
76830         --create-testdir, --create-megatestdir, --test, --megatest.
76831         (func_create_testdir, func_create_megatestdir): Optionally emit a
76832         AC_CONFIG_AUX_DIR directive.
76833         (create-testdir, create-megatestdir, test, megatest): Provide a
76834         default value for $auxdir.
76835
76836 2005-08-24  Bruno Haible  <bruno@clisp.org>
76837
76838         * gnulib-tool (import): Use compound statement instead of subshell
76839         where possible.
76840
76841 2005-08-24  Bruno Haible  <bruno@clisp.org>
76842
76843         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76844
76845 2005-08-24  Bruno Haible  <bruno@clisp.org>
76846
76847         * gnulib-tool (func_version): Update.
76848
76849 2005-08-24  Bruno Haible  <bruno@clisp.org>
76850
76851         * gnulib-tool (func_import, func_create_testdir,
76852         func_create_megatestdir): Quote all autoconf macro arguments.
76853
76854 2005-08-24  Bruno Haible  <bruno@clisp.org>
76855
76856         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76857         option --force, because --force causes the aclocal.m4 of each
76858         subdirectory to be newer than the corresponding config.h.in.
76859
76860 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76861
76862         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76863         All contents moved to gl_REGEX.
76864         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76865         assume that it does.
76866
76867 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76868
76869         * lib/regex.h (REG_NOSYS)
76870         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76871         Define, since POSIX requires it as of 2001.
76872         (_REG_ENOSYS)
76873         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76874         New private symbol, used to keep the enum signed in all cases.
76875         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76876         Youngman in
76877         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76878
76879         * lib/regex_internal.c (re_string_skip_chars, register_state):
76880         (calc_state_hash):
76881         Remove forward decls; no longer needed now that we use prototypes.
76882         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76883         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76884         (clean_state_log_if_needed): Likewise.
76885
76886 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76887
76888         * config/srclist.txt: Add glibc bugs 1231-1233.
76889
76890 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76891
76892         Fix problems reported by Sam Steingold in
76893         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76894         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76895         assumed that reg_errcode_t is a signed type, which is not
76896         necessarily true if _XOPEN_SOURCE is not defined.
76897         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76898         since some compilers warn about it otherwise.
76899
76900 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76901
76902         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76903         (init_word_char, create_initial_state, duplicate_node_closure):
76904         (fetch_token, peek_token_bracket, build_range_exp):
76905         (build_collating_symbol): Remove forward decls; no longer needed
76906         now that we use prototypes.
76907
76908         * lib/regcomp.c:
76909         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76910         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76911         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76912         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76913         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76914         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76915         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76916         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76917         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76918         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76919         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76920         (build_charclass, build_charclass_op, fetch_number, create_tree):
76921         (create_token_tree, mark_opt_subexp, duplicate_tree):
76922         Use prototypes rather than old-style definitions.
76923
76924         * lib/regex_internal.c:
76925         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76926         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76927         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76928         (re_string_reconstruct, re_string_peek_byte_case):
76929         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76930         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76931         (re_node_set_init_copy, re_node_set_add_intersect):
76932         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76933         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76934         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76935         (re_acquire_state, re_acquire_state_context, register_state):
76936         (create_ci_newstate, create_cd_newstate, free_state):
76937         Likewise.
76938         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76939         re_search_2):
76940         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76941         (re_search_internal, prune_impossible_nodes):
76942         (acquire_init_state_context, check_matching, static):
76943         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76944         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76945         (update_regs, sift_states_backward, build_sifted_states):
76946         (clean_state_log_if_needed, merge_state_array):
76947         (update_cur_sifted_state, add_epsilon_src_nodes):
76948         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76949         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76950         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76951         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76952         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76953         (check_arrival, check_arrival_add_next_nodes):
76954         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76955         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76956         (check_node_accept_bytes, check_node_accept, extend_buffers):
76957         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76958         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76959         (sift_ctx_init):
76960         Likewise.
76961
76962         * lib/regex_internal.h:
76963         (re_string_allocate, re_string_construct, re_string_reconstruct):
76964         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76965         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76966         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76967         (re_string_context_at, re_string_peek_byte_case):
76968         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76969         is defined, since we now use prototypes always.
76970
76971         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76972         C89 or better.  All uses removed.
76973
76974 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76975
76976         * config/srclist.txt: Add glibc bugs 1220-1227.
76977
76978 2005-08-20  Jim Meyering  <jim@meyering.net>
76979
76980         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76981         of unused local, dfa.
76982
76983 2005-08-20  Bruno Haible  <bruno@clisp.org>
76984
76985         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76986
76987 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76988
76989         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76990         (re_node_set_insert_last, re_dfa_add_node):
76991         Rename local variables to avoid GCC shadowing warnings.
76992
76993 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76994
76995         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76996         [defined lint]: Suppress bogus uninitialized-variable warnings.
76997
76998         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76999         and let the caller return REG_ESPACE if out of space.  This
77000         removes an uninitialied-variable warning with GCC 4.0.1, and also
77001         avoids taking the address of a local variable.  All callers
77002         changed.
77003
77004 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77005
77006         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77007         $LIBCSRC/posix/regexec.c.
77008         Add glibc bug 1217 for regcomp.c.
77009
77010 2005-08-19  Jim Meyering  <jim@meyering.net>
77011
77012         * lib/regexec.c (proceed_next_node): Redo local variables to
77013         avoid GCC shadowing warnings.
77014
77015 2005-08-18  Bruno Haible  <bruno@clisp.org>
77016
77017         * lib/strstr.c (strstr): Fix return value in multibyte case.
77018         * lib/strcasestr.c (strcasestr): Likewise.
77019
77020 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77021
77022         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77023
77024 2005-08-17  Jim Meyering  <jim@meyering.net>
77025
77026         Make the %s format (seconds since the epoch) work for a negative
77027         number and when used with a zero-padded field width, e.g. %015s.
77028
77029         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77030         label so that it precedes the code to set `digits'.  Otherwise,
77031         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77032         print `00-22'.  Now, it prints `-0022', as it should.
77033
77034 2005-08-17  Bruno Haible  <bruno@clisp.org>
77035
77036         * modules/strstr (Files): Add m4/mbrtowc.m4.
77037         (Depends-on): Add mbuiter.
77038
77039 2005-08-17  Bruno Haible  <bruno@clisp.org>
77040
77041         * modules/strcasestr: New file.
77042         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77043         strcasestr.
77044
77045 2005-08-17  Bruno Haible  <bruno@clisp.org>
77046
77047         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77048
77049 2005-08-17  Bruno Haible  <bruno@clisp.org>
77050
77051         * modules/mbuiter: New file.
77052         * MODULES.html.sh (Extended multibyte and wide character utilities):
77053         Add mbuiter.
77054
77055 2005-08-17  Bruno Haible  <bruno@clisp.org>
77056
77057         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77058         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77059
77060 2005-08-17  Bruno Haible  <bruno@clisp.org>
77061
77062         * m4/strcasestr.m4: New file.
77063
77064 2005-08-17  Bruno Haible  <bruno@clisp.org>
77065
77066         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77067         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77068
77069 2005-08-17  Bruno Haible  <bruno@clisp.org>
77070
77071         * lib/strcasestr.h: New file.
77072         * lib/strcasestr.c: New file.
77073
77074 2005-08-17  Bruno Haible  <bruno@clisp.org>
77075
77076         * lib/strcasecmp.c: Use mbuiter.h.
77077
77078 2005-08-17  Bruno Haible  <bruno@clisp.org>
77079
77080         * lib/mbuiter.h: New file.
77081
77082 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77083
77084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77085         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77086         and gl_GETOPT are both invoked via different paths (as happens
77087         with GNU tar CVS because it uses both argp and getopt), the former
77088         wins.
77089
77090 2005-08-16  Bruno Haible  <bruno@clisp.org>
77091
77092         * modules/tls: New file.
77093         * MODULES.html.sh (Multithreading): Add tls.
77094
77095 2005-08-16  Bruno Haible  <bruno@clisp.org>
77096
77097         * modules/strnlen1: New file.
77098         * MODULES.html.sh (String handling): Add strnlen1.
77099
77100 2005-08-16  Bruno Haible  <bruno@clisp.org>
77101
77102         * modules/strcase (Files): Add m4/mbrtowc.m4.
77103         (Depends-on): Add strnlen1, mbchar.
77104
77105 2005-08-16  Bruno Haible  <bruno@clisp.org>
77106
77107         * modules/mbiter: New file.
77108         * MODULES.html.sh (Extended multibyte and wide character utilities):
77109         Add mbiter.
77110
77111 2005-08-16  Bruno Haible  <bruno@clisp.org>
77112
77113         * modules/mbfile: New file.
77114         * MODULES.html.sh (Extended multibyte and wide character utilities):
77115         Add mbfile.
77116
77117 2005-08-16  Bruno Haible  <bruno@clisp.org>
77118
77119         * modules/mbchar: New file.
77120         * MODULES.html.sh (Extended multibyte and wide character utilities):
77121         New section.
77122
77123 2005-08-16  Bruno Haible  <bruno@clisp.org>
77124
77125         * m4/tls.m4: New file, from GNU gettext.
77126
77127 2005-08-16  Bruno Haible  <bruno@clisp.org>
77128
77129         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77130         always.
77131         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77132
77133 2005-08-16  Bruno Haible  <bruno@clisp.org>
77134
77135         * m4/mbiter.m4: New file.
77136
77137 2005-08-16  Bruno Haible  <bruno@clisp.org>
77138
77139         * m4/mbfile.m4: New file.
77140
77141 2005-08-16  Bruno Haible  <bruno@clisp.org>
77142
77143         * m4/mbchar.m4: New file.
77144
77145 2005-08-16  Bruno Haible  <bruno@clisp.org>
77146
77147         * lib/tls.h: New file, from GNU gettext.
77148         * lib/tls.c: New file, from GNU gettext.
77149
77150 2005-08-16  Bruno Haible  <bruno@clisp.org>
77151
77152         * lib/strnlen1.h: New file.
77153         * lib/strnlen1.c: New file.
77154
77155 2005-08-16  Bruno Haible  <bruno@clisp.org>
77156
77157         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77158         (mbi_init): Update.
77159         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77160         NUL byte, not after it.
77161
77162 2005-08-16  Bruno Haible  <bruno@clisp.org>
77163
77164         * lib/strcase.h (strcasecmp): Add note in comments.
77165         * lib/strncasecmp.c: Use code from strcasecmp.c.
77166         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77167         (strcasecmp): Work correctly in multibyte locales.
77168
77169 2005-08-16  Bruno Haible  <bruno@clisp.org>
77170
77171         * lib/mbiter.h: New file.
77172
77173 2005-08-16  Bruno Haible  <bruno@clisp.org>
77174
77175         * lib/mbfile.h: New file.
77176
77177 2005-08-16  Bruno Haible  <bruno@clisp.org>
77178
77179         * lib/mbchar.h: New file.
77180         * lib/mbchar.c: New file.
77181
77182 2005-08-16  Bruno Haible  <bruno@clisp.org>
77183
77184         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77185         the valid ones. Makes the comparison operations transitive:
77186         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77187         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77188
77189 2005-08-15  Simon Josefsson  <jas@extundo.com>
77190
77191         * modules/ssize_t (License): Change to 'unlimited'.
77192
77193         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77194
77195 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77196
77197         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77198         Add comments for each pending glibc patch.
77199
77200 2005-08-15  Bruno Haible  <bruno@clisp.org>
77201
77202         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77203         __cplusplus is defined.
77204
77205 2005-08-14  Jim Meyering  <jim@meyering.net>
77206
77207         Sync from coreutils.
77208
77209         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77210         Use the hash-table-based cycle-detection code not just when
77211         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77212         Reported by James Youngman in
77213         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77214         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77215         FTS_TIGHT_CYCLE_CHECK.
77216         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77217         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77218         once again.
77219         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77220         * lib/fts.c (fd_safer): Remove decl.
77221         Include fcntl--.h rather than unistd-safer.h
77222         (fts_safe_changedir): Don't call fd_safer; no longer needed
77223         now that we include fcntl--.h.
77224
77225 2005-08-12  Simon Josefsson  <jas@extundo.com>
77226
77227         * modules/getndelim2: Use ssize_t module.
77228         * modules/getnline: Likewise.
77229         * modules/safe-read: Likewise.
77230         * modules/xreadlink: Likewise.
77231
77232         * modules/ssize_t: New file.
77233
77234 2005-08-12  Simon Josefsson  <jas@extundo.com>
77235
77236         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77237
77238 2005-08-12  Simon Josefsson  <jas@extundo.com>
77239
77240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77241         ssize_t.
77242
77243 2005-08-12  Simon Josefsson  <jas@extundo.com>
77244
77245         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77246         readline, getdelim and check_version.
77247         (Support for systems lacking ISO C 99: Sizes of integer types):
77248         Add size_max.
77249
77250 2005-08-12  Bruno Haible  <bruno@clisp.org>
77251
77252         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77253
77254 2005-08-11  Simon Josefsson  <jas@extundo.com>
77255
77256         * modules/readline: New file.
77257
77258         * modules/strnlen (Files): Add strnlen.h.
77259
77260 2005-08-11  Simon Josefsson  <jas@extundo.com>
77261
77262         * m4/readline.m4: New file.
77263
77264 2005-08-11  Simon Josefsson  <jas@extundo.com>
77265
77266         * lib/readline.h, readline.c: New file.
77267
77268 2005-08-11  Simon Josefsson  <jas@extundo.com>
77269
77270         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77271         gl_AVOID.
77272
77273 2005-08-11  Bruno Haible  <bruno@clisp.org>
77274
77275         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77276
77277 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77278
77279         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77280
77281 2005-08-10  Simon Josefsson  <jas@extundo.com>
77282
77283         * tests/test-iconvme.c: New file.
77284
77285 2005-08-10  Simon Josefsson  <jas@extundo.com>
77286
77287         * m4/strnlen.m4: New file.
77288
77289         * m4/strndup.m4: Don't check for strnlen declaration, done in
77290         strnlen.m4.
77291
77292 2005-08-10  Simon Josefsson  <jas@extundo.com>
77293
77294         * lib/strndup.c: Use strnlen.h.
77295
77296         * lib/strnlen.h: New file.
77297
77298 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77299
77300         * README: Typos.
77301
77302 2005-08-02  Simon Josefsson  <jas@extundo.com>
77303
77304         * modules/readline: New file.
77305
77306 2005-08-02  Simon Josefsson  <jas@extundo.com>
77307
77308         * modules/getdelim: New file.
77309
77310         * modules/getline: Rewrite, don't use getndelim2.
77311
77312 2005-08-02  Simon Josefsson  <jas@extundo.com>
77313
77314         * m4/getline.m4: Separate out getdelim stuff into separate module.
77315
77316         * m4/getdelim.m4: New file.
77317
77318 2005-08-02  Simon Josefsson  <jas@extundo.com>
77319
77320         * lib/getline.h, getline.c: Rewrite.
77321
77322         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77323
77324 2005-07-31  Bruno Haible  <bruno@clisp.org>
77325
77326         * lib/lock.h (gl_lock_initializer): New macro.
77327         (gl_lock_define_initialized): Use it.
77328         (gl_rwlock_initializer): New macro.
77329         (gl_rwlock_define_initialized): Use it.
77330         (gl_recursive_lock_initializer): New macro.
77331         (gl_recursive_lock_define_initialized): Use it.
77332
77333 2005-07-30  Karl Berry  <karl@gnu.org>
77334
77335         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77336         Report from Ben Pfaff, regarding getopt.
77337
77338 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77339
77340         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77341         normal way.
77342         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77343         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77344         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77345         (gl_GETOPT): Use the new macros.  Most of the implementation
77346         is moved to the new macros.  This is for programs like Emacs
77347         that don't want all the functionality of gl_GETOPT.
77348
77349 2005-07-26  Bruno Haible  <bruno@clisp.org>
77350
77351         * m4/lock.m4: Update from GNU gettext.
77352
77353 2005-07-26  Bruno Haible  <bruno@clisp.org>
77354
77355         * lib/lock.h: Update from GNU gettext.
77356         * lib/lock.c: Update from GNU gettext.
77357
77358 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77359
77360         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77361         obsolescent AC_TRY_RUN.  Include the default includes files, for
77362         'exit'.
77363
77364 2005-07-24  Bruno Haible  <bruno@clisp.org>
77365
77366         * modules/visibility: New file.
77367         * MODULES.html.sh (Misc): Add visibility.
77368
77369 2005-07-24  Bruno Haible  <bruno@clisp.org>
77370
77371         * m4/visibility.m4: New file.
77372
77373 2005-07-24  Bruno Haible  <bruno@clisp.org>
77374
77375         * doc/visibility.texi: New file.
77376
77377 2005-07-22  Bruno Haible  <bruno@clisp.org>
77378
77379         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77380         $(ALLOCA_H), redundant through BUILT_SOURCES.
77381         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77382         redundant through BUILT_SOURCES.
77383         * modules/byteswap (Makefile.am): Remove explicit dependency on
77384         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77385         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77386         $(FNMATCH_H), redundant through BUILT_SOURCES.
77387         * modules/getopt (Makefile.am): Remove explicit dependency on
77388         $(GETOPT_H), redundant through BUILT_SOURCES.
77389         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77390         redundant through BUILT_SOURCES.
77391         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77392         redundant through BUILT_SOURCES.
77393         * modules/stdbool (Makefile.am): Remove explicit dependency on
77394         $(STDBOOL_H), redundant through BUILT_SOURCES.
77395         * modules/stdint (Makefile.am): Remove explicit dependency on
77396         $(STDINT_H), redundant through BUILT_SOURCES.
77397         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77398         Remove explicit dependency on $(SYSEXITS_H).
77399         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77400
77401 2005-07-18  Simon Josefsson  <jas@extundo.com>
77402
77403         * lib/check-version.c (check_version): Accept identical versions too.
77404
77405 2005-07-18  Bruno Haible  <bruno@clisp.org>
77406
77407         * modules/lock: New file.
77408         * MODULES.html.sh (Multithreading): New section.
77409
77410 2005-07-18  Bruno Haible  <bruno@clisp.org>
77411
77412         * m4/lock.m4: New file, from GNU gettext.
77413
77414 2005-07-18  Bruno Haible  <bruno@clisp.org>
77415
77416         * lib/lock.h: New file, from GNU gettext.
77417         * lib/lock.c: New file, from GNU gettext.
77418
77419 2005-07-18  Bruno Haible  <bruno@clisp.org>
77420
77421         * lib/lock.h (gl_once_t): New type.
77422         (gl_once_define, gl_once): New macros.
77423         * lib/lock.c (fresh_once): New variable.
77424         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77425         functions.
77426
77427 2005-07-16  Simon Josefsson  <jas@extundo.com>
77428
77429         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77430         workaround, suggested by Bruno.
77431
77432 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77433
77434         * modules/xalloc (Depends-on): Add xalloc-die.
77435         * modules/xvasprintf (Depends-on): Add xalloc-die.
77436
77437 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77438
77439         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77440         with a minor change.
77441
77442 2005-07-15  Bruno Haible  <bruno@clisp.org>
77443
77444         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77445         When using lib/poll.c, define poll as rpl_poll.
77446
77447 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77448
77449         * modules/argp (Depends-on): Remove unlocked-io.
77450
77451 2005-07-14  Derek Price  <derek@ximbiot.com>
77452
77453         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77454         for glob symlink bug.
77455
77456 2005-07-14  Bruno Haible  <bruno@clisp.org>
77457
77458         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77459         Instead, test for *_unlocked function declarations directly.
77460
77461 2005-07-11  Simon Josefsson  <jas@extundo.com>
77462
77463         * modules/size_max: New file.
77464
77465         * modules/xsize: Depend on size_max module for size_max.m4.
77466
77467 2005-07-11  Simon Josefsson  <jas@extundo.com>
77468
77469         * lib/size_max.h: New file.
77470
77471 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77472
77473         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77474         copyright symbol and the year.
77475         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77476         (version_etc_va): Use parameterized copyright notice.
77477         Reword to conform to the current GNU coding standards.
77478
77479 2005-07-11  Karl Berry  <karl@gnu.org>
77480
77481         * doc/gnulib.texi (Quoting): new node.
77482         (Initial import): more info, from Patrice.
77483
77484 2005-07-11  Bruno Haible  <bruno@clisp.org>
77485
77486         * gnulib-tool (func_usage): Document option --avoid.
77487         (Command line options): Handle --avoid.
77488         (func_acceptable): New function.
77489         (func_modules_transitive_closure): Use it.
77490
77491 2005-07-11  Bruno Haible  <bruno@clisp.org>
77492
77493         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77494         Reported by Jim Meyering.
77495
77496 2005-07-10  Bruno Haible  <bruno@clisp.org>
77497
77498         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77499         Needed when size_t is smaller than 'unsigned int'.
77500         Reported by Paul Eggert.
77501
77502 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77503
77504         * modules/argp (Depends-on): Add unlocked-io
77505
77506 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77507
77508         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77509         block of defines.
77510
77511 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77512
77513         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77514         fix now.
77515
77516 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77517         and Paul Eggert  <eggert@cs.ucla.edu>
77518
77519         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77520         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77521
77522 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77523
77524         * modules/regex (Files): Add lib/regex_internal.c,
77525         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77526         (Depends-on): Add extensions.
77527         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77528
77529 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77530
77531         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77532         pathconf.
77533         * m4/same.m4 (gl_SAME): Likewise.
77534         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77535
77536         * m4/regex.m4: Adjust to new libc regex implementation.
77537         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77538         all the .c and .h parts of (the new) regex.
77539         Quote the m4 stuff better.
77540         Check for RE_ICASE bug of old gnulib.
77541         Check for REG_STARTEND of recent libc.
77542         Rename local variables from jm_* to gl_*.
77543         Quote operand of "test -f".
77544         Say "recent enough" version of libc, not "version 2".
77545         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77546         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77547         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77548         Remove check for btowc, isascii.
77549         Require AM_LANGINFO_CODESET.
77550
77551 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77552
77553         * lib/regex.c, regex.h: Sync from libc.
77554         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77555         * lib/regexec.c:
77556         New files, synced from libc, except that regex_internal.h
77557         currently has a small porting fix.
77558
77559 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77560
77561         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77562         regex_internal.c, regexec.c.
77563         Add regex_internal.h too, but as a comment, since the libc version
77564         is currently broken in gnulib mode.
77565
77566 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77567
77568         Support programs like Emacs that use gnulib but not gettext.
77569         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77570         * modules/gettext-h: New file.
77571         * modules/gettext (Files): Remove lib/gettext.h.
77572         (Depends-on): Add gettext-h.
77573         (Makefile.am): Remove lib_SOURCES.
77574         * modules/argmatch, modules/c-stack, modules/closeout:
77575         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77576         * modules/execute, modules/file-type, modules/getaddrinfo:
77577         * modules/getopt, modules/human, modules/javacomp:
77578         * modules/javaexec, modules/mkdir-p, modules/obstack:
77579         * modules/openat, modules/pagealign_alloc, modules/pipe:
77580         * modules/quotearg, modules/regex, modules/rpmatch:
77581         * modules/unicodeio, modules/userspec, modules/version-etc:
77582         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77583         * modules/xsetenv:
77584         Depend on gettext-h, not gettext.
77585
77586 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77587
77588         * gnulib-tool (func_import): Add support for 'public domain' license.
77589         * modules/alloca, modules/atexit, modules/memmove:
77590         Now public domain, not GPL.
77591         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77592         * modules/realloc, modules/strerror, modules/strtod:
77593         Now LGPL, not GPL.
77594
77595 2005-07-05  Bruno Haible  <bruno@clisp.org>
77596
77597         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77598         autoconf CVS. Needed for mingw.
77599
77600 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77601
77602         Remove the dependency of the strftime module on the tzset module.
77603         * modules/strftime (Depends-on): Remove dependency on tzset.
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         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77609         gl_FUNC_TZSET_CLOBBER.
77610
77611 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77612
77613         Remove the dependency of the strftime module on the tzset module.
77614         * lib/strftime.c (my_strftime)
77615         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77616         Copy the input structure, to work around some of the bug with
77617         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77618         Solaris releases, you should also use the tzset module, but we won't
77619         require it as a dependency any more since we don't want LGPLed code
77620         to depend on GPLed code.
77621
77622 2005-07-02  Jim Meyering  <jim@meyering.net>
77623
77624         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77625         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77626         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77627         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77628
77629 2005-07-02  Jim Meyering  <jim@meyering.net>
77630
77631         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77632
77633 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77634
77635         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77636         declares only 'struct timespec;' (!).
77637
77638 2005-07-01  Jim Meyering  <jim@meyering.net>
77639
77640         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77641         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77642         * lib/save-cwd.c, tempname.c:
77643         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77644         and don't include <sys/file.h>).
77645
77646 2005-06-29  Jim Meyering  <jim@meyering.net>
77647
77648         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77649         type name.  Use the variable name instead.
77650         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77651         Likewise.
77652
77653 2005-06-28  Simon Josefsson  <jas@extundo.com>
77654
77655         * modules/check-version (Files): Add check-version.m4.
77656
77657 2005-06-28  Simon Josefsson  <jas@extundo.com>
77658
77659         * m4/check-version.m4: New file, suggested by Jim Meyering
77660         <jim@meyering.net>.
77661
77662 2005-06-28  Simon Josefsson  <jas@extundo.com>
77663
77664         * lib/check-version.h, lib/check-version.c: New files.
77665
77666 2005-06-28  Simon Josefsson  <jas@extundo.com>
77667
77668         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77669         collision with global variable.  Better indentation.  Don't
77670         increment buffer pointer beyond buffer end.  Based on comments
77671         from Paul Eggert <eggert@cs.ucla.edu>.
77672
77673         * lib/base64.h: Indent.
77674
77675 2005-06-28  Simon Josefsson  <jas@extundo.com>
77676
77677         * doc/gnulib.texi (Library version handling): New section.
77678
77679 2005-06-28  Jim Meyering  <jim@meyering.net>
77680
77681         * check-module (find_included_lib_files): Hard-code another
77682         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77683         but modules/fts-lgpl (correctly) does not list those files.
77684
77685         * modules/canonicalize (Files): Add lib/pathmax.h.
77686
77687 2005-06-25  Simon Josefsson  <jas@extundo.com>
77688
77689         * modules/check-version: New file.
77690
77691 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77692
77693         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77694         initializer of struct addrinfo, as an indication that we don't
77695         care how many members the structure has.
77696
77697 2005-06-24  Derek Price  <derek@ximbiot.com>
77698         and Bruno Haible  <bruno@clisp.org>
77699
77700         Remove stat module & update lstat.
77701         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77702         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77703         * m4/stat.m4: Remove this file.
77704
77705 2005-06-24  Derek Price  <derek@ximbiot.com>
77706         and Bruno Haible  <bruno@clisp.org>
77707
77708         Remove stat module & update lstat.
77709         * lib/stat.c: Remove this file...
77710         (slash_aware_lstat): ...moving this content and its support...
77711         * lib/lstat.c (rpl_lstat): ...into here.
77712         * lib/lstat.h: New file.
77713
77714 2005-06-24  Derek Price  <derek@ximbiot.com>
77715         and Bruno Haible  <bruno@clisp.org>
77716
77717         Remove stat module & update lstat.
77718         * config/srclist.txt (libc sources): Remove stat.
77719
77720 2005-06-24  Derek Price  <derek@ximbiot.com>
77721         and Bruno Haible  <bruno@clisp.org>
77722
77723         Remove stat module & update lstat.
77724         * MODULES.html.sh (stat): Remove.
77725         * MODULES.html: Regenerated.
77726         * modules/lstat (Description): Correct function name.
77727         (Files): Add "lstat.h".
77728         (Depends-on): Remove stat, add xalloc, stat-macros.
77729         * modules/stat: Remove this file.
77730         (Include): Add "lstat.h", remove <sys/stat.h>.
77731
77732 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77733
77734         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77735         (ranged_convert): Don't save conversion in a temporary struct.
77736         This causes a warning with GCC 4.0.0, and anyway in the typical
77737         case it's not worth the extra 100 bytes or so of code.
77738         (ranged_convert, __mktime_internal): When calling a function via a
77739         pointer P, use P () rather than (*P) (), as we now assume C89 or
77740         better.
77741
77742 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77743
77744         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77745         "who -r" failed to give output.  Problem reported by Tim Waugh.
77746
77747         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77748         (xcalloc): Use it to avoid needless tests.
77749         Problem reported by Jim Meyering.
77750
77751 2005-06-20  Derek Price  <derek@ximbiot.com>
77752
77753         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77754         unnecessary for Autoconfs > 2.59c.
77755
77756 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77757
77758         * lib/argp.h (__option_is_short): Check upper limit of
77759         __key. Isprint() requires its argument to have the value
77760         of an unsigned char or EOF.
77761
77762 2005-06-16  Jim Meyering  <jim@meyering.net>
77763
77764         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77765         when either N or S is zero.
77766
77767 2005-06-16  Derek Price  <derek@ximbiot.com>
77768
77769         * m4/bison.m4: Declare YACC & YFLAGS precious.
77770
77771 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77772
77773         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77774         multibyte string or pattern, fall back on unibyte matching.
77775         Problem reported by James Youngman.
77776
77777 2005-06-08  Bruno Haible  <bruno@clisp.org>
77778
77779         * modules/csharpcomp: New file.
77780         * MODULES.html.sh (C#): Add csharpcomp.
77781
77782 2005-06-08  Bruno Haible  <bruno@clisp.org>
77783
77784         * m4/csharpcomp.m4: New file, from GNU gettext.
77785
77786 2005-06-08  Bruno Haible  <bruno@clisp.org>
77787
77788         * lib/csharpcomp.h: New file, from GNU gettext.
77789         * lib/csharpcomp.c: New file, from GNU gettext.
77790         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77791
77792 2005-06-08  Bruno Haible  <bruno@clisp.org>
77793
77794         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77795         warning on mingw.
77796
77797 2005-06-07  Derek Price  <derek@ximbiot.com>
77798
77799         Sync from CVS.
77800         * lib/glob_.h: Indent nested #ifdef.
77801
77802 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77803
77804         Sync from coreutils.
77805         Use "file name" when talking about file names, instead of "filename"
77806         or "path", as per the GNU coding standards.
77807         * lib/mkdir-p.c: Renamed from makepath.c.
77808         (make_dir_parents): Renamed from make_path.  All callers changed.
77809         * lib/mkdir-p.h: Likewise.  All includers changed.
77810         * lib/filenamecat.c: Renamed from path-concat.c.
77811         (file_name_concat): Renamed from path_concat.  All callers changed.
77812         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77813         * lib/filenamecat.h: Likewise.  All includers changed.
77814         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77815         in comments or local variable names.
77816         * lib/basename.c: Likewise.
77817         * lib/canonicalize.c, canonicalize.h: Likewise.
77818         * lib/dirname.c, dirname.h: Likewise.
77819         * lib/euidaccess.c: Likewise.
77820         * lib/exclude.c: Likewise
77821         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77822         * lib/fsusage.c, fsuage.h: Likewise.
77823         * lib/fts.c, fts_.h: Likewise.
77824         * lib/getcwd.c: Likewise.
77825         * lib/getloadavg.c: Likewise.
77826         * lib/mkstemp.c: Likewise.
77827         * lib/mountlist.c, mountlist.h: Likewise.
77828         * lib/openat.c, openat.h: Likewise.
77829         * lib/readlink-stub.c: Likewise.
77830         * lib/readutmp.c, readutmp.h: Likewise.
77831         * lib/rename.c: Likewise.
77832         * lib/rmdir.c: Likewise.
77833         * lib/same.c: Likewise.
77834         * lib/savedir.c: Likewise.
77835         * lib/stripslash.c: Likewise.
77836         * lib/tempname.c: Likewise.
77837         * lib/xreadlink.c: Likewise.
77838         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77839         All uses changed.
77840         * lib/exclude.h: Likewise.
77841
77842         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77843         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77844         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77845         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77846         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77847         files have been getting away with it for years (MORE/BSD 4.3
77848         is extinct now).
77849         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77850         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77851
77852         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77853         Define to 256, not 255, as per modern POSIX.
77854
77855 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         Sync from coreutils.
77858         Use "file name" when talking about file names, instead of "filename"
77859         or "path", as per the GNU coding standards.
77860         * MODULES.html.sh: mkdir-p renamed from makepath.
77861         filenamecat renamed from path-concat.
77862         * modules/filenamecat: Renamed from modules/path-concat.
77863         (Files): filenamecat.h and filenamecat.c renamed from
77864         path-concat.h and path-concat.c.
77865         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77866         (Include): filenamecat.h, not path-concat.h.
77867         * modules/mkdir-p: Renamed from modules/makepath.
77868         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77869         makepath.c.
77870         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77871         (Include): mkdir-p.h, not makepath.h.
77872
77873 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         Sync from coreutils.
77876         * m4/mkdir-p.m4: Renamed from makepath.m4.
77877         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77878         Rename files from makepath.c to mkdir-p.c, and from
77879         makepath.h to mkdir-p.h.
77880         * m4/filenamecat.m4: Renamed from path-concat.m4.
77881         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77882         Rename files from path-concat.c to filenamecat.c,
77883         and from path-concat.h to filenamecat.h.
77884         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77885         "file name" in local variables or comments.
77886         * m4/rename.m4: Likewise.
77887
77888 2005-06-01  Bruno Haible  <bruno@clisp.org>
77889
77890         * modules/csharpexec: New file.
77891         * MODULES.html.sh (C#): New section.
77892
77893 2005-06-01  Bruno Haible  <bruno@clisp.org>
77894
77895         * m4/csharp.m4: New file, from GNU gettext.
77896         * m4/csharpexec.m4: New file, from GNU gettext.
77897
77898 2005-06-01  Bruno Haible  <bruno@clisp.org>
77899
77900         * lib/csharpexec.h: New file, from GNU gettext.
77901         * lib/csharpexec.c: New file, from GNU gettext.
77902         * lib/csharpexec.sh.in: New file, from GNU gettext.
77903
77904 2005-05-31  Derek Price  <derek@ximbiot.com>
77905             Paul Eggert  <eggert@cs.ucla.edu>
77906
77907         Sync from cvs.
77908         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77909
77910 2005-05-31  Derek Price  <derek@ximbiot.com>
77911             Paul Eggert  <eggert@cs.ucla.edu>
77912
77913         Sync from cvs.
77914         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77915
77916 2005-05-29  Derek Price  <derek@ximbiot.com>
77917
77918         * config/srclist.txt (glob_.h, glob.c): Add these files.
77919
77920 2005-05-29  Derek Price  <derek@ximbiot.com>
77921
77922         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77923         * modules/glob: New file.
77924         * modules/getlogin_r: Add link to POSIX spec in description.
77925
77926 2005-05-29  Derek Price  <derek@ximbiot.com>
77927             Paul Eggert  <eggert@cs.ucla.edu>
77928
77929         * m4/glob.m4: New file.
77930
77931 2005-05-29  Derek Price  <derek@ximbiot.com>
77932             Paul Eggert  <eggert@cs.ucla.edu>
77933
77934         * lib/glob_.h, lib/glob.c: New files.
77935
77936 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77937
77938         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77939         * modules/fts-lgpl (Depends-on): Remove gettext.
77940
77941 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77942
77943         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77944         and don't require gt_INTTYPES_PRI.
77945
77946 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77947
77948         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77949
77950         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77951         the configuration hassle isn't worth it.
77952         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77953         (LONGEST_MODIFIER, PRIuMAX): Remove.
77954
77955 2005-05-27  Bruno Haible  <bruno@clisp.org>
77956
77957         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77958
77959 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77960
77961         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77962         _POSIX_PTHREAD_SEMANTICS for Solaris.
77963
77964 2005-05-25  Derek Price  <derek@ximbiot.com>
77965
77966         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77967
77968 2005-05-25  Derek Price  <derek@ximbiot.com>
77969             Paul Eggert  <eggert@cs.ucla.edu>
77970
77971         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77972         * lib/getlogin_r.c, getlogin_r.h: New files.
77973
77974 2005-05-25  Bruno Haible  <bruno@clisp.org>
77975             Derek Price  <derek@ximbiot.com>
77976
77977         * lib/getlogin_r.h: Simplify API documentation.
77978
77979 2005-05-23  Derek Price  <derek@ximbiot.com>
77980
77981         * modules/minmax (Files): Add m4/minmax.m4.
77982         (configure.ac): Add gl_MINMAX.
77983
77984 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77985
77986         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77987         so that unistd-safer.h (GPL'ed code) need not be included.
77988
77989 2005-05-22  Bruno Haible  <bruno@clisp.org>
77990
77991         * m4/minmax.m4: New file.
77992         Based on a patch by Derek Price <derek@ximbiot.com>.
77993
77994 2005-05-22  Bruno Haible  <bruno@clisp.org>
77995
77996         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77997         (INT64_MIN): Fix definition.
77998         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77999
78000         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78001         NEED_SIGNED_INT_TYPES.
78002
78003         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78004         HAVE_SYSTEM_INTTYPES.
78005
78006 2005-05-22  Bruno Haible  <bruno@clisp.org>
78007
78008         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78009         Also include <sys/param.h> if it defines MIN, MAX.
78010         Based on a patch by Derek Price <derek@ximbiot.com>.
78011
78012 2005-05-21  Jim Meyering  <jim@meyering.net>
78013
78014         * modules/fts (Files): Add m4/inttypes-pri.m4.
78015         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78016
78017 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78018
78019         New fts module.
78020         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78021         (setup_dir, free_dir): New functions.
78022         (enter_dir, leave_dir): Define trivial
78023         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78024         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78025         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78026         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78027         Move to fts-cycle.c.
78028         (fts_open): Use setup_dir.
78029         (fts_close): Use free_dir.
78030         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78031         This adds a label and some gotos, but the alternatives were messier.
78032         Check for memory allocation failure when entering a dir.
78033         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78034         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78035         (FTS): New member fts_cycle, that is a union that contains the
78036         old active_dir_ht and cycle_state.  All uses changed to mention
78037         fts_cycle.ht and fts_cycle.state.
78038         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78039         fts.c, with the following changes:
78040         (setup_dir, free_dir): New functions.
78041         (enter_dir): Now returns bool.  Return true if successful, false
78042         if memory exhausted.  All callers changed.
78043         Do not bother partly cleaning up on
78044         memory allocation failure; that is free_dir's job.
78045         However, free ad if hash_insert fails, to avoid memory leak.
78046         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78047         fts->fts_options to see which union member to use.
78048
78049 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78050
78051         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78052         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78053
78054 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78055
78056         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78057
78058 2005-05-20  Jim Meyering  <jim@meyering.net>
78059
78060         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78061         Now a macro, to pacify GCC.
78062
78063 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78064
78065         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78066         of -1.
78067
78068 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78069
78070         * lib/chown.c (rpl_chown): Return -1 on failure.
78071
78072 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78073
78074         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78075         Don't check for stddef.h.
78076         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78077         don't use its results.
78078         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78079         since we include them unconditionally.  Don't require
78080         AM_STDBOOL_H, since stdbool is a prerequisite.
78081         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78082         since we assume C89 or better.
78083         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78084         as we don't use their results.
78085         Don't check for fchdir, memmove, memset, strrchr, as we use
78086         them unconditionally.
78087         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78088         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78089
78090 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78091
78092         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78093         Include <stddef.h> unconditionally, since we assume C89 now.
78094         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78095         * lib/fts.c: Include fts_.h first, to check interface.
78096         Do not include intprops.h; no longer needed.
78097         Include cycle-check.h and hash.h, since fts_.h no longer does.
78098         Remove unnecessary casts of closedir to void.
78099         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78100         decide whether to decrement nlinks.
78101         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78102         (FTS): Use struct hash_table * instead of Hash_table, so that
78103         we no longer need to include hash.h here.
78104
78105 2005-05-18  Jim Meyering  <jim@meyering.net>
78106
78107         * modules/dirfd (License): Change to LGPL.  Most of the code
78108         is already in the public domain.
78109
78110 2005-05-18  Jim Meyering  <jim@meyering.net>
78111
78112         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78113         Reported by Yoann Vandoorselaere.
78114
78115 2005-05-17  Jim Meyering  <jim@meyering.net>
78116
78117         * m4/fts.m4: New file, from coreutils.
78118
78119 2005-05-17  Jim Meyering  <jim@meyering.net>
78120
78121         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78122
78123 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78124
78125         Sync from coreutils.
78126         * m4/unlinkdir.m4: New file.
78127
78128 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         Sync from coreutils.
78131         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78132         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78133         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78134         White space changes only.
78135         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78136         special.
78137         * lib/yesno.c: Include getline.h, not ctype.h.
78138         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78139         Use getline to remove arbitrary restriction on response length.
78140
78141 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78142
78143         * config/srclist-update: Spell out "Street" in FSF postal
78144         mail address; this is the style the FSF seems to prefer.
78145
78146         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78147         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78148         this updates FSF postal mail address.
78149
78150         Sync from coreutils.
78151         * modules/unlinkdir: New file.
78152         * modules/yesno (Depends-on): Add getline.
78153         * MODULES.html.sh (File system functions): Add unlinkdir.
78154
78155 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78156
78157         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78158         lib/strsep.h:
78159         Change the initial comment to refer to GPL, not LGPL.
78160         gnulib-tool will change it to LGPL as needed.
78161
78162         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78163         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78164         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78165         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78166         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78167         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78168         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78169         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78170         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78171         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78172         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78173         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78174         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78175         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78176         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78177         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78178         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78179         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78180         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78181         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78182         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78183         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78184         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78185         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78186         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78187         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78188         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78189         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78190         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78191         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78192         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78193         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78194         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78195         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78196         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78197         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78198         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78199         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78200         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78201         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78202         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78203         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78204         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78205         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78206         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78207         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78208         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78209         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78210         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78211         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78212         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78213         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78214         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78215         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78216         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78217         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78218         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78219         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78220         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78221         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78222         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78223         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78224         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78225         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78226         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78227         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78228         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78229         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78230         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78231         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78232         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78233         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78234         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78235         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78236         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78237         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78238         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78239         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78240         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78241         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78242         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78243         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78244         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78245         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78246         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78247         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78248         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78249         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78250         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78251         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78252         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78253         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78254         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78255         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78256         lib/yesno.c, lib/yesno.h:
78257         Update FSF postal mail address.
78258
78259 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78260
78261         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78262         tests/test-memmem.c, tests/test-stpncpy.c:
78263         Update FSF postal mail address.
78264
78265 2005-05-13  Bruno Haible  <bruno@clisp.org>
78266
78267         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78268         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78269         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78270         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78271         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78272         Add support for 64-bit integers in the MSVC compiler.
78273
78274 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78275
78276         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78277
78278 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78279
78280         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78281
78282 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78283
78284         * doc/getdate.texi (General date syntax): Don't say that date
78285         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78286         Problem reported by Nic Ferrier.
78287
78288 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78289
78290         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78291         specified in ai_socktype. Fix invalid ai_protocol
78292         check. ai_protocol is usually set to 0 or depending on
78293         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78294         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78295         ai_socktype / ai_protocol in the returned addrinfo structure.
78296
78297 2005-05-10  Simon Josefsson  <jas@extundo.com>
78298
78299         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78300         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78301
78302 2005-05-10  Karl Berry  <karl@gnu.org>
78303
78304         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78305         (from http://www.gnu.org/licenses).
78306         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78307         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78308         fdl.texi suffices.
78309
78310 2005-05-10  Karl Berry  <karl@gnu.org>
78311
78312         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78313         (COPYING.DOC): remove.
78314
78315         * config/srclist-update: new FSF address.
78316
78317 2005-05-10  Derek Price  <derek@ximbiot.com>
78318
78319         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78320         possible.
78321
78322 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78323             Bruno Haible  <bruno@clisp.org>
78324
78325         * modules/inet_ntop: New file.
78326         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78327         inet_ntop.
78328
78329 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78330             Bruno Haible  <bruno@clisp.org>
78331
78332         * m4/inet_ntop.m4: New file.
78333
78334 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78335             Bruno Haible  <bruno@clisp.org>
78336
78337         * lib/inet_ntop.h: New file.
78338         * lib/inet_ntop.c: New file, from glibc with modifications.
78339
78340 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78341
78342         * modules/time_r (License): Change to LGPL.
78343         * modules/extensions (License): Change to LGPL.  Actually,
78344         the license is more permissive than that, but currently gnulib-tool
78345         doesn't know how to handle more-permissive licenses.
78346
78347         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78348         Problem reported by Dave Love.
78349
78350 2005-05-08  Jim Meyering  <jim@meyering.net>
78351
78352         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78353         blank.
78354
78355 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78356
78357         * modules/argmatch (Depends-on): Add stdbool.
78358         * modules/backupfile (Depends-on): Likewise.
78359         * modules/chdir-long (Depends-on): Likewise.
78360         * modules/closeout (Depends-on): Likewise.
78361         * modules/cycle-check (Depends-on): Likewise.
78362         * modules/dirname (Depends-on): Likewise.
78363         * modules/fnmatch (Depends-on): Likewise.
78364         * modules/fsusage (Depends-on): Likewise.
78365         * modules/fwriteerror (Depends-on): Likewise.
78366         * modules/getcwd (Depends-on): Likewise.
78367         * modules/getloadavg (Depends-on): Likewise.
78368         * modules/hard-locale (Depends-on): Likewise.
78369         * modules/makepath (Depends-on): Likewise.
78370         * modules/mountlist (Depends-on): Likewise.
78371         * modules/nanosleep (Depends-on): Likewise.
78372         * modules/posixtm (Depends-on): Likewise.
78373         * modules/quotearg (Depends-on): Likewise.
78374         * modules/readtokens (Depends-on): Likewise.
78375         * modules/readtokens0 (Depends-on): Likewise.
78376         * modules/readutmp (Depends-on): Likewise.
78377         * modules/save-cwd (Depends-on): Likewise.
78378         * modules/strftime (Depends-on): Likewise.
78379         * modules/userspec (Depends-on): Likewise.
78380         * modules/utimecmp (Depends-on): Likewise.
78381         * modules/xgetcwd (Depends-on): Likewise.
78382         * modules/xnanosleep (Depends-on): Likewise.
78383         * modules/xstrtod (Depends-on): Likewise.
78384         * modules/yesno (Depends-on): Likewise.
78385
78386 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78387
78388         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78389         needless checks.
78390
78391 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78392
78393         Merge from coreutils.  Among other things,
78394         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78395         * lib/fd-safer.c: New file.
78396         * lib/fcntl-safer.h, open-safer.c: Remove.
78397         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78398         * lib/dup-safer.c: Include unistd-safer.h first.
78399         Don't include errno.h.
78400         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78401         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78402         * lib/file-type.c: Rely on file-type.h change.
78403         * lib/getloadavg.c: Include unistd-safer.h.
78404         (getloadavg): Use safer open.
78405         * lib/getusershell.c: Include "stdio-safer.h".
78406         (getusershell): Use safer fopen.
78407         * lib/long-options.c (long_options): Use NULL rather than 0.
78408         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78409         'free'.
78410         * lib/modechange.c: Likewise.
78411         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78412         (MODE_DONE): New constant.
78413         (struct mode_change): Remove 'next' member.
78414         (make_node_op_equals): New function; like the old one of the
78415         same name, except it allocates an array.
78416         (mode_compile, mode_create_from_ref): Use it.
78417         (mode_compile): Allocate result as an array, not a linked list.
78418         Parse octal string ourself, so that we catch mistakes like "+0".
78419         (mode_adjust): Arg is an array, not a linked list.
78420         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78421         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78422         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78423         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78424         Remove.  This is now stat-macros.h's job.
78425         (talloc): Remove.  All callers replaced by xalloc, so that
78426         our invokers don't have to worry about reporting memory failures.
78427         (make_node_op_equals): Remove.
78428         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78429         New constants.
78430         (struct mode_change): Moved here from modechange.h.
78431         (mode_append_entry): Remove.
78432         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78433         apps to have incorrect behavior.  Use simpler algorithm for head
78434         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78435         Detect more invalid usages rather than having somewhat-random behavior.
78436         Don't insert an "a=" action, as that leads to incorrect behavior.
78437         (mode_compile, mode_create_from_ref): Return NULL on error instead
78438         of an enum, since now there's only one way to have an error.  All
78439         callers changed.
78440         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78441         at the correct time.  Simplify calculation of "+u" and its ilk.
78442         Don't mishandle "+X".
78443         (mode_free): Remove "register" and localize decls.
78444         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78445         (struct mode_change): Move to modechange.c; callers don't
78446         need to see this stuff.
78447         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78448         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78449         (mode_change, mode_adjust): Reflect the new signatures noted above.
78450         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78451         that might redefine system include files.
78452         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78453         (my_usleep): Use NULL rather than (void *) 0.
78454         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78455         Use siginterrupt to specify that system calls should be interrupted.
78456         (rpl_nanosleep): Move initialization of suspended closer to call of
78457         my_usleep.
78458         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78459         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78460         (desirable_utmp_entry): New function.
78461         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78462         using x2nrealloc, to simplify logic.
78463         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78464         size calculation.  Do not assume utmp file is a regular file.
78465         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78466         (READ_UTMP_CHECK_PIDS): New constant.
78467         * lib/save-cwd.c: Include unistd-safer.h.
78468         (save_cwd): Use fd_safer.
78469         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78470         [!_LIBC] Include "stat-macros.h" instead.
78471         * lib/unistd-safer.h (fd_safer): New decl.
78472
78473 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78474
78475         * modules/getloadavg (Depends-on): Add unistd-safer.
78476         * modules/getusershell (Depends-on): Add stdio-safer.
78477         * modules/lstat (Depends-on): Remove xalloc.
78478         * modules/mkstemp (Depends-on): Add stat-macros.
78479         * modules/modechange (Depends-on): Remove xstrtol.
78480         Add stat-macros, xalloc.
78481         * modules/save-cwd (Depends-on): Add unistd-safer.
78482         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78483         * modules/unistd-safer (Files): Add lib/fd-safer.c
78484         (Makefile.am): Remove lib_SOURCES.
78485
78486         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78487         Remove fcntl-safer; unistd-safer supersedes it.
78488
78489 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78492         AC_HEADER_STAT.
78493         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78494         (gl_PREREQ_CHOWN): Remove.
78495         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78496         it.  Don't require AC_HEADER_STAT.
78497         (gl_PREREQ_LSTAT): Remove.
78498         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78499         Don't require AC_HEADER_STAT.
78500         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78501         (gl_PREREQ_RMDIR): Remove.
78502         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78503         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78504         the stat-macros module a prerequisite.
78505         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78506         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78507         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78508         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78509         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78510         variable names.
78511         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78512         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78513         variable prefixes.
78514         * m4/fcntl-safer.m4: Remove.
78515         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78516         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78517         Invoke gl_PREREQ_FD_SAFER.
78518         (gl_PREREQ_FD_SAFER): New macro.
78519         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78520         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78521         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78522         Remove duplicate call to AC_LIBOBJ(readutmp).
78523         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78524
78525         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78526         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78527
78528 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78529
78530         * MODULES.html.sh (Misc): Add byteswap.
78531
78532 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78533
78534         * modules/getcwd (Depends-on): Add extensions.
78535         * modules/openat (Depends-on): Likewise.
78536
78537 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78538
78539         * modules/byteswap: New file.
78540
78541 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78542
78543         * m4/byteswap.m4: New file.
78544
78545 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78546
78547         * lib/byteswap_.h: New file.
78548
78549 2005-04-25  Karl Berry  <karl@gnu.org>
78550
78551         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78552
78553 2005-04-25  Albert Chin  <china@thewrittenword.com>
78554
78555         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78556         Toolkit C bug.
78557
78558 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78559
78560         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78561         (func_ln_if_changed): Remove forcibly for no error message
78562         in case file does not exist.
78563
78564 2005-04-19  Simon Josefsson  <jas@extundo.com>
78565
78566         * gnulib-tool (Options): Make --symlink mean --symbolic.
78567
78568 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78569
78570         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78571
78572 2005-04-16  Simon Josefsson  <jas@extundo.com>
78573
78574         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78575
78576 2005-04-15  Simon Josefsson  <jas@extundo.com>
78577
78578         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78579
78580 2005-04-15  Simon Josefsson  <jas@extundo.com>
78581
78582         * gnulib-tool: Rename --symlink to --symbolic.
78583
78584 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78585
78586         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78587         symbolic links to files instead of copying/moving.  Add --aux-dir,
78588         specifying directory relative --dir where auxiliary build tools
78589         are placed.
78590
78591 2005-04-14  Bruno Haible  <bruno@clisp.org>
78592
78593         * modules/allocsa (License): Change to LGPL.
78594         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78595
78596 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78597
78598         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78599         that "UTC +1 second" continues to work.  Problem reported
78600         by Dmitry V. Levin.
78601         (relunit_snumber): New rule.
78602         (relunit): Use it.
78603
78604 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         * lib/getdate.y (universal_time_zone_table): New constant.
78607         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78608         universal_time_zone_table.
78609         (lookup_zone): Prefer universal_time_zone_table to
78610         local_time_zone_table, so that "GMT" time stamps are allowed in
78611         London during the summer.  Problem reported by Ian Abbott.
78612
78613 2005-04-12  Jim Meyering  <jim@meyering.net>
78614
78615         * lib/human.c (humblock): Set *options even when returning due to
78616         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78617         warning from gcc-4.
78618
78619 2005-04-09  Jim Meyering  <jim@meyering.net>
78620
78621         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78622         -Wuninitialized: initialize tm0.tm_year.
78623
78624 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78625
78626         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78627         count, since there's no maximum.  All uses changed.
78628         Add member dsts_seen.
78629         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78630         not being INT_MAX.
78631         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78632         Use pc_rels_seen to decide whther a date is absolute.
78633
78634         * lib/getdate.y (number): Don't overwrite year.
78635         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78636         check.
78637
78638 2005-04-02  Simon Josefsson  <jas@extundo.com>
78639
78640         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78641         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78642
78643 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78644
78645         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78646         where no absolute path name can be longer than PATH_MAX.
78647
78648 2005-03-27  Jim Meyering  <jim@meyering.net>
78649
78650         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78651
78652 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78653
78654         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78655         "one's complement" -> "ones' complement" in comment, as per Knuth.
78656         "value of type" -> "type or expression" in comment.
78657         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78658
78659 2005-03-26  Jim Meyering  <jim@meyering.net>
78660
78661         Comment nits.
78662         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78663         Correct typos: s/or/of/.
78664
78665 2005-03-26  Jim Meyering  <jim@meyering.net>
78666
78667         * modules/check-include-files: Move to ../ and rename to...
78668         * check-module: ...this.
78669
78670 2005-03-25  Jim Meyering  <jim@meyering.net>
78671
78672         * modules/xvasprintf (Files): Add xalloc.h.
78673
78674 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78675
78676         * modules/gettext (Files): config/config.rpath ->
78677         build-aux/config.rpath
78678         * modules/iconv (Files): Likewise.
78679         Problem reported by Oskar Liljeblad.
78680
78681 2005-03-23  Jim Meyering  <jim@meyering.net>
78682
78683         * modules/check-include-files: New script to check for
78684         missing dependencies, multiple includes, etc.
78685
78686         * modules/c-strtold (Depends-on): Add xalloc.
78687         * modules/c-strtod (Depends-on): Add xalloc.
78688         * modules/hash (Depends-on): Add xalloc.
78689         (Files): Remove lib/xalloc.h.
78690
78691         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78692         * modules/userspec (Files): Add lib/inttostr.h.
78693
78694 2005-03-23  Jim Meyering  <jim@meyering.net>
78695
78696         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78697
78698 2005-03-22  Jim Meyering  <jim@meyering.net>
78699
78700         * modules/stat-macros: New module.
78701         * modules/canonicalize, modules/euidaccess, modules/file-type,
78702         * modules/filemode, modules/lchown, modules/makepath,
78703         * modules/rmdir, modules/stat: Depend on new stat-macros module
78704         rather than listing lib/stat-macros.h manually.
78705         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78706
78707 2005-03-22  Jim Meyering  <jim@meyering.net>
78708
78709         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78710
78711 2005-03-22  Bruno Haible  <bruno@clisp.org>
78712
78713         * config/srclist.txt: Replace target directory 'config' with
78714         'build-aux'.
78715         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78716         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78717         ../build-aux/.
78718
78719 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78720
78721         * modules/chdir-long (Depends-on): Add mempcpy.
78722
78723         * modules/acl, modules/backupfile, modules/c-strtod,
78724         modules/c-strtold, modules/canon-host, modules/canonicalize,
78725         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78726         modules/exclude, modules/exitfail, modules/file-type,
78727         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78728         modules/getdate, modules/getline, modules/getpagesize,
78729         modules/getpass, modules/getugroups, modules/group-member,
78730         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78731         modules/inttostr, modules/long-options, modules/makepath,
78732         modules/md5, modules/memcasecmp, modules/memcoll,
78733         modules/modechange, modules/mountlist, modules/path-concat,
78734         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78735         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78736         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78737         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78738         modules/strftime, modules/strndup, modules/strverscmp,
78739         modules/timespec, modules/unlocked-io, modules/userspec,
78740         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78741         modules/yesno:
78742         Remove lib_SOURCES line from Makefile.am section, as this is now
78743         done automatically by the corresponding Autoconf macro.
78744
78745 2005-03-21  Jim Meyering  <jim@meyering.net>
78746
78747         Changes imported from coreutils.
78748
78749         * lib/cycle-check.c: Don't include xalloc.h.
78750
78751         * lib/path-concat.c: Don't include assert.h.
78752         (path_concat): Remove assertion that would have triggered
78753         for ABASE starting with more than one slash.
78754         Reported by Andreas Schwab.
78755
78756         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78757         properly when ABASE is an absolute file name.
78758         Correct the description of this function.
78759         Include <assert.h>.
78760         Add an assertion and a test driver.
78761         This fixes a bug introduced on 2004-07-02.
78762         Andreas Schwab reported the resulting failure of cp --parents:
78763         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78764
78765 2005-03-21  Jim Meyering  <jim@meyering.net>
78766
78767         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78768         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78769
78770 2005-03-21  Jim Meyering  <jim@meyering.net>
78771         and  Paul Eggert  <eggert@cs.ucla.edu>
78772
78773         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78774         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78775         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78776         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78777         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78778         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78779         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78780         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78781         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78782         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78783         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78784         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78785         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78786         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78787         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78788         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78789         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78790         for these modules.
78791
78792 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78793
78794         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78795         (which shouldn't happen), generate nothing instead of returning 0
78796         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78797
78798 2005-03-16  Bruno Haible  <bruno@clisp.org>
78799
78800         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78801         HAVE_LONGLONG_64BIT.
78802
78803 2005-03-16  Bruno Haible  <bruno@clisp.org>
78804
78805         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78806         HAVE_LONGLONG_64BIT.
78807
78808 2005-03-16  Bruno Haible  <bruno@clisp.org>
78809
78810         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78811         HAVE_LONGLONG_64BIT.
78812
78813 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78814
78815         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78816         reliably distinguish strftime failure from empty output on POSIX
78817         hosts.
78818
78819 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78820
78821         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78822         (iconv_string): Don't guess a size-zero buffer, as that might cause
78823         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78824         result would be 'too large', where 'too large' is (heuristically)
78825         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78826         overflow concerns.  This will prevent some unwanted malloc failures
78827         when the inputs are very large.
78828
78829 2005-03-15  Karl Berry  <karl@gnu.org>
78830
78831         * config/srclist.txt (config.rpath): from gettext.
78832         * config/config.rpath: update.
78833
78834 2005-03-15  Bruno Haible  <bruno@clisp.org>
78835
78836         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78837         to 'negate'.
78838
78839         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78840         variable.
78841
78842         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78843         results.
78844
78845 2005-03-14  Simon Josefsson  <jas@extundo.com>
78846
78847         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78848         <fx@gnu.org>.
78849
78850 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78851
78852         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78853         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78854         intprops.h.
78855         * lib/strtol.c: Likewise.
78856
78857 2005-03-14  Jim Meyering  <jim@meyering.net>
78858
78859         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78860         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78861         to be nonzero so that we (and caller) can detect the difference
78862         between a valid zero-length expansion and an error return, even
78863         when the underlying strftime fails before writing anything into
78864         that location.
78865
78866 2005-03-14  Bruno Haible  <bruno@clisp.org>
78867
78868         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78869         Update from GNU gettext 0.14.3.
78870
78871 2005-03-10  Jim Meyering  <jim@meyering.net>
78872
78873         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78874
78875 2005-03-10  Jim Meyering  <jim@meyering.net>
78876
78877         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78878         so that this module works on systems without fchdir.
78879
78880 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78881
78882         Factor int-properties macros into a single file, except for
78883         glibc-related files.
78884         * lib/intprops.h: New file.
78885         * lib/getloadavg.c: Include it instead of limits.h.
78886         (INT_STRLEN_BOUND): Remove.
78887         * lib/human.c: Include intprops.h.
78888         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78889         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78890         302/1000.
78891         * lib/inttostr.h: Include intprops.h instead of limits.h.
78892         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78893         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78894         for consistency with intprops.h.
78895         (time_t_is_integer, twos_complement_arithmetic): Use them.
78896         * lib/sig2str.h: Include <signal.h>, intprops.h.
78897         (INT_STRLEN_BOUND): Remove.
78898         * lib/strftime.c (TYPE_SIGNED): Remove.
78899         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78900         * lib/strtol.c: Adjust comments to match intprops.h.
78901         * lib/userspec.c: Include intprops.h.
78902         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78903         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78904         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78905         instead of rolling our own expressions.
78906         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78907
78908         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78909         instead of int.
78910         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78911         the right thing even if adding 1900 would overflow.  Similarly
78912         for tm_mon + 1 and tm_yday + 1.
78913         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78914         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78915         (DO_SIGNED_NUMBER): New macro.
78916         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78917
78918 2005-03-07  Bruno Haible  <bruno@clisp.org>
78919
78920         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78921
78922 2005-03-07  Bruno Haible  <bruno@clisp.org>
78923
78924         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78925
78926 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78927
78928         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78929         (func_import): Only replace files via --import when they have actually
78930         changed.
78931
78932 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78933
78934         * m4/mmap-anon.m4: New file.
78935         * m4/pagealign_alloc.m4: New file.
78936
78937 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78938             Bruno Haible  <bruno@clisp.org>
78939
78940         * modules/pagealign_alloc: New file.
78941         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78942
78943 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78944             Bruno Haible  <bruno@clisp.org>
78945
78946         * lib/pagealign_alloc.h: New file.
78947         * lib/pagealign_alloc.c: New file.
78948
78949 2005-03-03  Bruno Haible  <bruno@clisp.org>
78950
78951         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78952         Use an all-permissive copyright notice, recommended by RMS.
78953
78954 2005-03-02  Bruno Haible  <bruno@clisp.org>
78955
78956         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78957         of AIX, the replacement has to be done only after <string.h> is
78958         included, therefore not in config.h. stpncpy.h does the replacement,
78959         and stpncpy.c uses it.
78960
78961 2005-03-02  Bruno Haible  <bruno@clisp.org>
78962
78963         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78964         stpncpy.c uses it.
78965
78966 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78967
78968         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78969         The workaround isn't strictly needed for POSIX conformance, and
78970         it's too much of a pain to configure and maintain.  We'll ask
78971         people to fix their kernels instead.
78972         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78973         (NANOSLEEP_BUG_WORKAROUND): Remove.
78974         (xnanosleep): Remove the workaround.
78975
78976 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78979         Reported by Derek Price.
78980         (Include): Add "timespec.h".
78981
78982         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78983
78984 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78985
78986         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78987         to detect nanosleep bug.
78988
78989 2005-03-01  Bruno Haible  <bruno@clisp.org>
78990
78991         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78992
78993 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78994
78995         * modules/gethrxtime: New file.
78996         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78997         (Depends-on): Add gethrxtime.
78998         (configure.ac): Add gl_XNANOSLEEP.
78999         (Makefile.am): Remove lib_SOURCES line.
79000
79001 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79002
79003         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79004         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79005
79006 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79007
79008         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79009         * lib/timespec.h (gettime): Return void, since it always
79010         succeeds now.  All uses changed.
79011         * lib/gettime.c (gettime): Likewise.
79012         [HAVE_NANOTIME]: Prefer nanotime.
79013         Assume gettimeofday succeeds, as POSIX requires.
79014         Assime time () succeeds, since other code already does.
79015         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79016         (timespec_subtract): Remove.
79017         (NANOSLEEP_BUG_WORKAROUND): New constant.
79018         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79019         things considerably.  Use it only on GNU/Linux hosts, since the
79020         workaround shouldn't be needed elsewhere.
79021
79022 2005-02-24  Bruno Haible  <bruno@clisp.org>
79023
79024         * modules/gettext (Files): Add m4/glibc2.m4.
79025
79026 2005-02-24  Bruno Haible  <bruno@clisp.org>
79027
79028         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79029         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79030         * m4/progtest.m4:
79031         Update from GNU gettext 0.14.2.
79032         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79033
79034 2005-02-24  Bruno Haible  <bruno@clisp.org>
79035
79036         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79037         * lib/config.charset: Update from GNU gettext 0.14.2.
79038
79039 2005-02-24  Bruno Haible  <bruno@clisp.org>
79040
79041         * lib/gettext.h: Update from GNU gettext 0.14.2.
79042
79043 2005-02-23  Simon Josefsson  <jas@extundo.com>
79044
79045         * m4/iconvme.m4: New file.
79046
79047 2005-02-23  Jim Meyering  <jim@meyering.net>
79048
79049         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79050         change.
79051         Thanks to Bruno Haible for catching it.
79052
79053 2005-02-22  Simon Josefsson  <jas@extundo.com>
79054
79055         * modules/iconvme: New file.
79056
79057         * MODULES.html.sh: Add iconvme.
79058
79059 2005-02-22  Simon Josefsson  <jas@extundo.com>
79060
79061         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79062
79063 2005-02-22  Simon Josefsson  <jas@extundo.com>
79064
79065         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79066
79067 2005-02-22  Jim Meyering  <jim@meyering.net>
79068
79069         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79070         s/ifndef/ifdef/.
79071
79072 2005-02-20  Neil Conway  <neilc@samurai.com>
79073
79074         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79075         returned by OSX/Darwin if the specified buffer is not large
79076         enough for the hostname.
79077
79078 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79079
79080         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79081         pass it to _help, otherwise the latter coredumps trying to
79082         dereference state.root_argp.
79083
79084 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79085
79086         * modules/chdir-long (Depends-on): Add memrchr.
79087         * modules/memrchr (Files): Add lib/memrchr.h.
79088         (Include): "memrchr.h".
79089
79090 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79093
79094 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * lib/memrchr.h: New file.
79097         * lib/chdir-long.c: Include it.
79098         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79099         Don't bother including stddef.h.
79100
79101 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79102
79103         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79104         inclusion.
79105         Include <sys/types.h>, for dev_t.
79106         (ME_DUMMY, ME_REMOTE): Move from here....
79107         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79108         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79109         Dmitry V. Levin.
79110         Include mountlist.h first, to test the interface.
79111
79112 2005-01-29  Bruno Haible  <bruno@clisp.org>
79113
79114         * lib/progname.c (program_name): Initialize.
79115         Needed when linking statically on MacOS X.
79116
79117 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79118
79119         Sync from coreutils.
79120         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79121         (Depends-on): Add c-strtod.
79122         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79123
79124 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79125
79126         Sync from coreutils.
79127         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79128
79129         Remove files that are specific to coreutils.
79130         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79131
79132 2005-01-28  Bruno Haible  <bruno@clisp.org>
79133
79134         * modules/javacomp: New file.
79135         * MODULES.html.sh (Java): Add javacomp.
79136
79137 2005-01-28  Bruno Haible  <bruno@clisp.org>
79138
79139         * m4/javacomp.m4: New file, from GNU gettext.
79140
79141 2005-01-28  Bruno Haible  <bruno@clisp.org>
79142
79143         * lib/javacomp.sh.in: New file, from GNU gettext.
79144         * lib/javacomp.h: New file, from GNU gettext.
79145         * lib/javacomp.c: New file, from GNU gettext.
79146
79147 2005-01-26  Simon Josefsson  <jas@extundo.com>
79148
79149         * lib/gai_strerror.c: Use GPL in header.
79150
79151 2005-01-26  Bruno Haible  <bruno@clisp.org>
79152
79153         * modules/javaexec: New file.
79154         * MODULES.html.sh (Java): Add javaexec.
79155
79156 2005-01-26  Bruno Haible  <bruno@clisp.org>
79157
79158         * m4/javaexec.m4: New file, from GNU gettext.
79159
79160 2005-01-26  Bruno Haible  <bruno@clisp.org>
79161
79162         * lib/javaexec.sh.in: New file, from GNU gettext.
79163         * lib/javaexec.h: New file, from GNU gettext.
79164         * lib/javaexec.c: New file, from GNU gettext.
79165
79166 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79167
79168         * modules/lchown (Depends-on): Remove lchown.h
79169
79170 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79171
79172         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79173         must be defined if the header file was not found, in order
79174         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79175
79176 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79177
79178         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79179         initializers for struct pentry_state.
79180         (__argp_error): Check return value of __asprintf
79181         (__argp_failure): Translate error message
79182
79183         * lib/argp-parse.c: Removed braces around the expansion of N_()
79184
79185 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79186
79187         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79188         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79189         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79190         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79191         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79192         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79193         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79194         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79195         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79196         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79197         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79198         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79199         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79200         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79201         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79202         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79203         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79204         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79205         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79206         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79207         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79208         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79209         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79210         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79211         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79212         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79213         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79214         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79215         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79216         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79217         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79218         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79219         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79220         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79221         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79222         Use an all-permissive copyright notice, recommended by RMS.
79223
79224 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79225
79226         * modules/chdir-long (Depends-on): Remove mempcpy.
79227
79228 2005-01-21  Jim Meyering  <jim@meyering.net>
79229
79230         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79231         same value as for Solaris 9.
79232
79233         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79234         component length.  This included changing the parameter to be
79235         of type `char *' rather than `char const *'.
79236         * lib/chdir-long.h (chdir_long): Update prototype.
79237
79238         * lib/openat.c (fdopendir, fstatat): New functions.
79239         * lib/openat.h: Include headers required for use of DIR and struct
79240         stat.
79241         [AT_SYMLINK_NOFOLLOW]: Define.
79242         (fdopendir, fstatat): Add prototypes.
79243
79244 2005-01-21  Bruno Haible  <bruno@clisp.org>
79245
79246         * modules/classpath: New file.
79247         * MODULES.html.sh (Java): Add classpath.
79248
79249 2005-01-21  Bruno Haible  <bruno@clisp.org>
79250
79251         * lib/classpath.h: New file, from GNU gettext.
79252         * lib/classpath.c: New file, from GNU gettext.
79253
79254 2005-01-20  Simon Josefsson  <jas@extundo.com>
79255
79256         * modules/version-etc-fsf: New file.
79257
79258 2005-01-20  Simon Josefsson  <jas@extundo.com>
79259
79260         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79261         * lib/version-etc.c: Remove version_etc_copyright.
79262         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79263         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79264
79265 2005-01-20  Simon Josefsson  <jas@extundo.com>
79266
79267         * lib/base64.h (isbase64): Add.
79268
79269         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79270         using a unsigned prototype, don't inline.
79271         (base64_decode): Use it.
79272
79273 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79274
79275         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79276         it.
79277
79278 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79279
79280         * lib/save-cwd.c (save_cwd): Remove code to support the case
79281         where fchdir is missing or flaky.
79282
79283 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79284
79285         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79286
79287 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79288
79289         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79290         AC_LIBSOURCES now does this.
79291         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79292         with new ullong_max module.
79293
79294 2005-01-19  Bruno Haible  <bruno@clisp.org>
79295
79296         * modules/sh-quote: New file.
79297         * MODULES.html.sh (Executing programs): Add sh-quote.
79298
79299 2005-01-19  Bruno Haible  <bruno@clisp.org>
79300
79301         * lib/sh-quote.h: New file, from GNU gettext.
79302         * lib/sh-quote.c: New file, from GNU gettext.
79303
79304 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         Merge from coreutils.
79307         * m4/ullong_max.m4: New file.
79308         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79309         (gl_MACROS): Assume localeconv exists.
79310
79311 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79312
79313         Merge changes from coreutils, as described below in several
79314         changelogs dated today.
79315
79316         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79317         (O_DIRECTORY): Remove; not needed here, since "." must be
79318         a directory.  All uses removed.
79319         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79320         universal on Suns, and we also need to test for IRIX.
79321         Revamp code to use 'if' rather than '#if'.
79322         Avoid unnecessary comparison of cwd->desc to 0.
79323
79324         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79325         for known valid error numbers rather than observed invalid ones.
79326
79327 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79328
79329         * modules/ullong_max: New file.
79330
79331         * modules/chdir-long, modules/openat: New files.
79332         * modules/save-cwd (Depends-on): Depend on chdir-long.
79333         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79334
79335 2005-01-18  Jim Meyering  <jim@meyering.net>
79336
79337         Merge from coreutils.
79338         * m4/chdir-long.m4, m4/openat.m4: New files.
79339         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79340         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79341         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79342         is sane and DOES follow symlinks.  Besides, testing 20 different
79343         systems found no broken chown implementations.
79344         Prompted by a change in rsync's copy of this macro.
79345         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79346
79347         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79348
79349         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79350         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79351         NULL-means-set-to-current-time semantics.
79352         Remove temporary file immediately, rather than waiting
79353         for configure's at-exit trap code to do it.
79354
79355 2005-01-18  Jim Meyering  <jim@meyering.net>
79356
79357         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79358
79359         * lib/utimens.c (futimens): Account for the fact that futimes
79360         can also fail with errno == ENOSYS or errno == ENOENT.
79361         Patch from Dmitry V. Levin.
79362
79363         Change the name of the robust chdir function from chdir to chdir_long.
79364         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79365         (restore_cwd): Use chdir_long, not chdir.
79366         * lib/chdir-long.c: Renamed from chdir.c.
79367         * lib/chdir-long.h: Renamed from chdir.h.
79368         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79369         Hurd.
79370
79371 2005-01-18  Bruno Haible  <bruno@clisp.org>
79372
79373         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79374         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79375         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79376         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79377         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79378         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79379         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79380         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79381         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79382         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79383         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79384         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79385         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79386         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79387         Use an all-permissive copyright notice, recommended by RMS.
79388
79389 2005-01-18  Bob Proulx  <bob@proulx.com>
79390
79391         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79392         simplify offsetof() macro construct to avoid compile failure with
79393         native HP-UX 11.0 ANSI C compiler.
79394
79395 2005-01-17  Bruno Haible  <bruno@clisp.org>
79396
79397         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79398         redundant because stpncpy.m4 takes care of it.
79399
79400 2005-01-17  Bruno Haible  <bruno@clisp.org>
79401
79402         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79403
79404 2005-01-17  Bruno Haible  <bruno@clisp.org>
79405
79406         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79407         used.
79408
79409 2005-01-17  Bruno Haible  <bruno@clisp.org>
79410
79411         * lib/fwriteerror.h (fwriteerror): Change specification to include
79412         fclose.
79413         * lib/fwriteerror.c: Include <stdbool.h>.
79414         (fwriteerror): At the end, close the file stream. Record whether
79415         stdout was already closed.
79416
79417 2005-01-17  Bruno Haible  <bruno@clisp.org>
79418
79419         * lib/execute.c (environ): Declare if needed.
79420         * lib/pipe.c (environ): Likewise.
79421         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79422
79423 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79424
79425         * modules/argp: Depend on vsnprintf
79426
79427 2005-01-10  Jim Meyering  <jim@meyering.net>
79428
79429         * modules/closeout (Depends-on): Add atexit.
79430
79431 2005-01-06  Bruno Haible  <bruno@clisp.org>
79432
79433         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79434
79435 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79438         definitions to be after all include files, to avoid collisions.
79439         Problem reported by Bob Proulx.
79440
79441 2005-01-04  Jim Meyering  <jim@meyering.net>
79442
79443         Changes imported from coreutils.
79444         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79445         as the mkstemp template, use a temporary directory and an
79446         8.3-friendly template to avoid trouble on systems like DJGPP.
79447         Reported by Juan M. Guerrero via Stepan Kasal.
79448         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79449         close. Remove the temporary directory right away, rather than waiting
79450         for configure's at-exit trap code to do it.
79451         Suggestion from Stepan Kasal.
79452
79453 2005-01-01  Simon Josefsson  <jas@extundo.com>
79454
79455         * gnulib-tool: Print #include directives when --import'ing.
79456
79457 2004-12-28  Simon Josefsson  <jas@extundo.com>
79458
79459         * tests/test-base64.c: Include required header files.  Remove
79460         unused variables.
79461
79462 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79463
79464         * modules/error (Depends-on): Remove gettext.
79465
79466 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79467
79468         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79469         not needed.  This removes a dependency on the gettext module.
79470         [defined _LIBC]: Do not include <libintl.h>; not needed.
79471
79472 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79473
79474         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79475         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79476
79477 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79478
79479         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79480         HAVE_DECL_STRTOLD.
79481
79482 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79483
79484         * modules/getdate (Depends-on): Remove alloca-opt.
79485
79486 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79487
79488         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79489
79490 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79491
79492         * lib/argp-parse.c: Include <stddef.h>.
79493         (alignof, alignto): New macros.
79494         (parser_init): Don't assume that void * is aligned sufficiently
79495         for struct option.
79496
79497         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79498         need to extend the stack.
79499         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79500         large.
79501
79502 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79503
79504         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79505
79506 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79507
79508         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79509         (2004-10-24) change.  Apparently this was a false alarm.
79510
79511         * modules/getdate: Depend on alloca-opt, not alloca.
79512
79513 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79514
79515         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79516         Remove now-obsolete comment about AIX.
79517         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79518         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79519         (YYMAXDEPTH): New macro.
79520
79521 2004-12-18  Simon Josefsson  <jas@extundo.com>
79522
79523         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79524
79525 2004-12-18  Bruno Haible  <bruno@clisp.org>
79526
79527         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79528
79529 2004-12-18  Bruno Haible  <bruno@clisp.org>
79530
79531         * lib/fatal-signal.c (fatal_signals): Make non-const.
79532         (init_fatal_signals): New function.
79533         (uninstall_handlers, install_handlers): Ignore signals that were set to
79534         SIG_IGN.
79535         (at_fatal_signal): Call init_fatal_signals.
79536         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79537         SIG_IGN.
79538         Reported by Paul Eggert.
79539
79540 2004-12-18  Bruno Haible  <bruno@clisp.org>
79541
79542         * doc/alloca.texi: New file.
79543         * doc/alloca-opt.texi: New file.
79544
79545 2004-12-17  Jim Meyering  <jim@meyering.net>
79546
79547         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79548         Otherwise, install-sh could exit with improper exit status when
79549         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79550
79551 2004-12-16  Simon Josefsson  <jas@extundo.com>
79552
79553         * tests/test-base64.c: Add license.
79554
79555 2004-12-15  Stepan Kasal  <address@hidden>
79556
79557         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79558
79559 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79560
79561         * modules/getcwd (Files): Add m4/d-ino.m4.
79562         Suggested by Mark D. Baushke.
79563
79564 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79565
79566         * lib/getdate.y (textint): New member "negative".
79567         (time_zone_hhmm): New function.
79568         Expect 14 shift-reduce conflicts, not 13.
79569         (o_colon_minutes): New rule.
79570         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79571         (yylex): Set the "negative" member of signed numbers.
79572
79573 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79574
79575         * doc/getdate.texi (Time of day items, Time zone items):
79576         Describe new formats +00:00, UTC+00:00.
79577
79578 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79579
79580         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79581         spurious "-l"s.  Problem reported by Stepan Kasal.
79582
79583 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79584
79585         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79586         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79587
79588 2004-12-04  Simon Josefsson  <jas@extundo.com>
79589
79590         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79591         Vandoorselaere <yoann@prelude-ids.org>.
79592
79593 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79594
79595         Changes imported from coreutils.
79596         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79597         exist.
79598         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79599
79600 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79601
79602         Changes imported from coreutils.
79603         * lib/hard-locale.c: Assume <locale.h> exists.
79604         Include "strdup.h".
79605         (GLIBC_VERSION): New macro.
79606         (hard_locale): Assume setlocale exists.
79607         Rewrite to avoid #ifdef.
79608         Use strdup rather than malloc + strcpy.
79609         * lib/human.c: Assume <locale.h> exists.
79610         (human_readable): Assume localeconv exists.
79611
79612 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79613
79614         * modules/hard-locale (Depends-on): Add strdup.
79615
79616 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79617
79618         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79619         convert T2, not T.  (Imported from libc.)
79620
79621 2004-11-30  Simon Josefsson  <jas@extundo.com>
79622
79623         * modules/restrict (License): Change to LGPL.
79624
79625 2004-11-30  Simon Josefsson  <jas@extundo.com>
79626
79627         * m4/restrict.m4: Add copyright and copying conditions.
79628
79629 2004-11-30  Simon Josefsson  <jas@extundo.com>
79630
79631         * m4/base64.m4: New file.
79632
79633 2004-11-30  Simon Josefsson  <jas@extundo.com>
79634
79635         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79636         base64.
79637
79638         * tests/test-base64.c: New file.
79639
79640         * modules/base64: New file.
79641
79642 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79643
79644         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79645         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79646
79647         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79648
79649 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79650
79651         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79652         (__getcwd.c): Don't restore errno; glibc doesn't.
79653         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79654         first, falling back to our code only if its results look suspicious.
79655         Ensure that the resulting buffer is only as large as necessary.
79656
79657         * lib/readutmp.c: Include readutmp.h first.
79658         Include <errno.h>, since readutmp.h no longer does that.
79659         * lib/readutmp.h: Don't include <errno.h>,
79660         <sys/param.h>, <time.h>; not needed to establish interface.
79661         (errno): Remove decl.
79662         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79663         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79664         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79665
79666 2004-11-28  Simon Josefsson  <jas@extundo.com>
79667
79668         * lib/base64.h, base64.c: New file.
79669
79670 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79671
79672         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79673
79674 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79675
79676         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79677         (Depends-on): Remove pathmax, same.  Add mempcpy.
79678         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79679         (Makefile.am): Append getcwd.h to lib_SOURCES.
79680         (Include): Add getcwd.h.
79681         (Maintainer): Change from Jim Meyering to "all, glibc",
79682         since getdate now uses intended-for-glibc code.
79683         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79684         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79685
79686 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79687
79688         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79689         HP's ANSI C compiler.
79690         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79691         Declaring int functions causes warnings on some modern systems and
79692         shouldn't be needed to compile on ancient ones.
79693         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79694         defined.
79695
79696         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79697         with the following changes.
79698         (__set_errno): Parenthesize properly.
79699         Include <stdbool.h>.
79700         (MIN, MAX, MATCHING_INO): New macros.
79701         (__getcwd): Define with prototype, not K&R form.
79702         Use heuristics to allocate default buffer on stack if possible.
79703         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79704         behavior, and to avoid the PATH_MAX limit when computing
79705         ../../../../...
79706         Use MATCHING_INO to compare inode number to file.
79707         Check for arithmetic overflow in size calculations.
79708         Fix bug in reallocation of dot array that caused getcwd to fail
79709         on directories nested deeper than 75.
79710         Be more careful about saving errno on error.
79711         Do not use realloc; use only free+malloc, as this is a bit
79712         more flexible and avoids a needless copy operation.
79713         Do not inspect st_dev and st_ino for symbolic links; POSIX
79714         doesn't specify the latter.
79715         Check for closedir errors.
79716         Avoid needless casts.
79717         Use "#ifdef weak_alias" around weak_alias, to be like other
79718         glibc code.
79719         The following changes to getcwd.c have effect only when used in
79720         gnulib; they have no effect inside glibc proper.
79721         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79722         as alloca isn't used.
79723         (alloca, __alloca): Likewise.
79724         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79725         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79726         unconditionally, as gnulib assumes C89 or better.
79727         Do not include <sys/param.h>.
79728         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79729         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79730         better.
79731         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79732         Include <dirent.h> in a way that is compatible with modern Autoconf.
79733         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79734         New macros, if not already defined.
79735         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79736         Use "_LIBC", not "defined _LIBC", for consistency.
79737         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79738         a mempcpy module.
79739         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79740         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79741         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79742         credit only to Jim Meyering and adjust the copyright dates.
79743         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79744         <stdlib.h>, <unistd.h>, "pathmax.h".
79745         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79746         (INITIAL_BUFFER_SIZE): Remove.
79747         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79748
79749 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79750
79751         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79752         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79753         Use the _ONCE methods, for efficiency.
79754         Check for fcntl.h.  In test program, include <errno.h>
79755         and <fcntl.h> if available.  Remove old K&R cruft from
79756         test program.  Check for common errors in GNU/Linux,
79757         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79758         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79759         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79760         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79761         name accordingly.
79762         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79763         accommodate new getcwd.c.
79764         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79765         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79766         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79767         that's all we need now.
79768
79769 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79770
79771         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79772         argp-parse.c depends on getopt internals, that means we should
79773         always use our getopt, to be on the safe side.
79774         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79775         order not to spoil the result of an eventual previous invocation
79776         of gl_GETOPT_SUBSTITUTE.
79777
79778 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79779
79780         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79781         redefinition warnings. To avoid them, include the defines
79782         in `#if !defined __need_getopt ... #endif'. The only place
79783         where __getopt_argv_const is used is in definitions
79784         of getopt_long and getopt_long_only below, which are as well
79785         protected by `#ifndef __need_getopt'.
79786         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79787         __need_getopt after including <stdio.h> and <unistd.h> These
79788         headers might have defined it.
79789
79790 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79791
79792         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79793
79794 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79795
79796         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79797         (futimens): New function, which uses futimes if available.
79798         (futimens, utimens): Support timespec==NULL, with same semantics
79799         as utime and utimens.
79800         * lib/utimens.h (futimens): New decl.
79801
79802 2004-11-23  Jim Meyering  <jim@meyering.net>
79803
79804         * lib/getopt_.h: Remove trailing blanks.
79805
79806 2004-11-23  Jim Meyering  <jim@meyering.net>
79807
79808         * lib/__fpending.c: Add comment.
79809
79810 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79811
79812         * modules/canonicalize (Depends-on): Add xreadlink.
79813         Problem reported by James Youngman.
79814
79815 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79816
79817         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79818         New macros.
79819         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79820         optopt): Use them instead of invoking ## directly; otherwise, the
79821         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79822
79823 2004-11-19  Bruno Haible  <bruno@clisp.org>
79824
79825         * lib/strtok_r.c: Move comments from here...
79826         * lib/strtok_r.h: ... to here.
79827
79828 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79829
79830         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79831         implementations that mishandle size_t overflow.
79832
79833 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79834
79835         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79836         might fail.  Problem reported by Yoann Vandoorselaere.
79837         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79838         implementations that mishandle size_t overflow.
79839
79840 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79841
79842         * modules/canon-host (Depends-on): Add strdup.
79843
79844 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79845
79846         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79847
79848 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79849
79850         * lib/canon-host.c: Include "strdup.h".
79851         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79852         Use strdup instead of malloc/strcpy to duplicate strings.
79853
79854         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79855         (human_space_before_unit): New constant.
79856         * lib/human.c (human_readable): Support it.
79857
79858         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79859         (xgetcwd): Set errno correctly when failing.
79860         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79861         the failure is actually due to a PATH_MAX problem.
79862
79863         Further getopt changes to make it more likely that glibc will
79864         buy the changes back.
79865         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79866         (getopt): Use it, so to preserve glibc semantic
79867         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79868         when compiling for libc.
79869         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79870         (getopt_long, getopt_long_only): Use it.
79871
79872         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79873         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79874         (getopt): Argv is now char * const *, as per standard.
79875         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79876         not char *__getopt_argv_const *.
79877         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79878         _getopt_long_only_r): Likewise.
79879         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79880         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79881         _getopt_long_r, _getopt_long_only_r): Likewise.
79882         * lib/getopt_.h (__getopt_argv_const): Remove.
79883         (getopt): Argv is now char * const *, as per standard.
79884
79885         * lib/getdate.y (tORDINAL): New token.
79886         (day, relunit): Allow it for relative times.
79887         (relative_time_table): Use tORDINAL for ordinals.
79888
79889 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79890
79891         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79892         Document that "second" isn't allowed as an ordinal number.
79893
79894 2004-11-16  Jim Meyering  <jim@meyering.net>
79895
79896         * modules/closeout (Depends-on): Add fpending.
79897
79898 2004-11-15  Jim Meyering  <jim@meyering.net>
79899
79900         * lib/closeout.c: Include "__fpending.h" once again.
79901         Include <stdbool.h>.
79902         (close_stdout): Don't fail just because stdout was closed initially,
79903         since some programs don't write to stdout in the normal course of
79904         operation (other than --version and --help), and we don't want this
79905         function to make e.g. `touch file >&-' fail.
79906         But do fail if it was closed and someone has tried to write to it.
79907         E.g., `printf foo >&-' must fail.
79908
79909 2004-11-13  Jim Meyering  <jim@meyering.net>
79910
79911         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79912
79913 2004-11-12  Simon Josefsson  <jas@extundo.com>
79914
79915         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79916         small doc fix is still pending.
79917
79918 2004-11-11  Simon Josefsson  <jas@extundo.com>
79919
79920         * modules/strtok_r: New file.
79921
79922         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79923         strtok_r.
79924
79925 2004-11-11  Simon Josefsson  <jas@extundo.com>
79926
79927         * m4/strtok_r.m4: New file.
79928
79929         * m4/getopt.m4: Replace opterr.
79930
79931 2004-11-11  Simon Josefsson  <jas@extundo.com>
79932
79933         * lib/strtok_r.h, strtok_r.c: New file.
79934
79935 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79936
79937         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79938         of replacing opterr, getopt, etc.  This should handle the
79939         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79940
79941 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79942
79943         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79944         we can stop lying to compilers about the constness of argv when we
79945         are compiled outside glibc.
79946         (getopt, getopt_long, getopt_long_only): Use it.
79947         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79948         _getopt_internal, getopt): Likewise.
79949         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79950         _getopt_long_only_r): Likewise.
79951         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79952         _getopt_long_r, _getopt_long_only_r): Likewise.
79953
79954         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79955         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79956         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79957         the other external symbols.
79958         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79959         declaration, since the above renaming now works around collisions.
79960
79961 2004-11-11  Jim Meyering  <jim@meyering.net>
79962
79963         * lib/linebreak.c: Remove trailing blanks.
79964         * lib/alloca_.h: Likewise.
79965         * lib/acosl.c: Likewise.
79966         * lib/euidaccess.c: Likewise.
79967         * lib/allocsa.h: Likewise.
79968
79969 2004-11-10  Simon Josefsson  <jas@extundo.com>
79970
79971         * m4/getaddrinfo.m4: New file.
79972
79973 2004-11-10  Simon Josefsson  <jas@extundo.com>
79974
79975         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79976
79977 2004-11-10  Simon Josefsson  <jas@extundo.com>
79978
79979         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79980         getaddrinfo.
79981
79982         * modules/getaddrinfo: New file.
79983
79984 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79985
79986         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79987
79988 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79989
79990         * lib/mktime.c (SHR): New macro, which is a portable
79991         substitute for >> that should work even on Crays.
79992         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79993         Problem reported by Mark D. Baushke in
79994         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79995         * lib/getdate.y (SHR): Likewise.
79996         (tm_diff): Use it.
79997         * lib/strftime.c (SHR): Likewise.
79998         (tm_diff): Use it.
79999         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80000         quote_these_too, so that right shifts are well defined.  All uses
80001         changed.
80002
80003 2004-11-10  Jim Meyering  <jim@meyering.net>
80004
80005         Ensure that no close failure goes unreported.
80006         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80007         return early when it seems there's nothing to flush.
80008         Don't include __fpending.h.
80009
80010 2004-11-10  Jim Meyering  <jim@meyering.net>
80011
80012         * modules/closeout (Depends-on): Remove fpending.
80013
80014 2004-11-10  Jim Meyering  <jim@meyering.net>
80015
80016         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80017
80018 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80019
80020         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80021         gl_FUNC_STRFTIME.
80022         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80023         and AC_REQUIRE when possible, to avoid duplicate checks.
80024         Check for <wchar.h>.
80025
80026 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80027
80028         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80029
80030 2004-11-09  Bruno Haible  <bruno@clisp.org>
80031
80032         * m4/sockpfaf.m4: New file.
80033
80034 2004-11-05  Bruno Haible  <bruno@clisp.org>
80035
80036         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80037         Reported by Mark D. Baushke <mdb@cvshome.org>.
80038
80039 2004-11-04  Bruno Haible  <bruno@clisp.org>
80040
80041         2004-09-11  Bruno Haible  <bruno@clisp.org>
80042                 * allocsa.valgrind: New file.
80043         2004-02-06  Bruno Haible  <bruno@clisp.org>
80044                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80045                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80046                 Reported by Christopher Seip <chris.seip@hp.com>.
80047
80048 2004-11-04  Bruno Haible  <bruno@clisp.org>
80049
80050         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80051         (Makefile.am): Distribute it.
80052
80053 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80054
80055         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80056         with errno == ERANGE if the buffer is too small.
80057         Problem reported by Mark D. Baushke.
80058
80059 2004-11-03  Albert Chin  <china@thewrittenword.com>
80060             Paul Eggert  <eggert@cs.ucla.edu>
80061
80062         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80063         equivalent, substitute $ac_type for equivalent type rather than
80064         blindly using uint32_t *always* which won't work if uint32_t is not
80065         available.  Define _UINT32_T to work around typedef of uint32_t if
80066         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80067         2.5.1.
80068
80069 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80070
80071         * m4/jm-macros.m4: Sync from coreutils.
80072         (gl_MACROS): Check for mbrlen, for pathchk.
80073         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80074
80075 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         * lib/xreadlink.c (MAXSIZE): New macro.
80078         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80079         size does not exceed MAXSIZE.  Avoid cast.
80080         As suggested by Mark D. Baushke in
80081         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80082         if readlink fails with buffer size just under MAXSIZE, try again
80083         with MAXSIZE.
80084
80085 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80086
80087         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80088
80089 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80090         and  Paul Eggert  <eggert@cs.ucla.edu>
80091
80092         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80093         (get_date): Overparenthesize to avoid GCC warning.
80094
80095 2004-11-02  Bruno Haible  <bruno@clisp.org>
80096
80097         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80098         returns void.
80099
80100 2004-11-02  Bruno Haible  <bruno@clisp.org>
80101
80102         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80103         function returns void.
80104
80105 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80106
80107         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80108         fflush_unlocked, flockfile, funlockfile, funlockfile,
80109         fputs_unlocked, putc_unlocked.
80110
80111 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80112
80113         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80114         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80115         already declared.
80116
80117 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80118
80119         * modules/getdate (Files): Add doc/getdate.texi.
80120         (Depends-on): Add setenv, xalloc.
80121
80122 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80123
80124         * lib/getdate.y: Add support for TZ="foo" within a date string.
80125         Fix some bugs near time_t boundaries.  Reject dates with
80126         out-of-range components, e.g., "Sept 31".
80127         Include <stdlib.h>, "setenv.h", "xalloc.h".
80128         (ISDIGIT_LOCALE): Remove; unused.
80129         Note that the TZ and time functions used here are not reentrant.
80130         (mktime_ok, get_tz): New functions.
80131         (TZBUFSIZE): New constant.
80132         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80133         This requires that we sometimes generate our own TZ="XXX..." setting.
80134
80135 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80136
80137         * doc/getdate.texi: New file, from coreutils with modifications for
80138         the new TZ parsing.
80139
80140 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80141
80142         * lib/mktime.c (not_equal_tm): Remove redundant check.
80143
80144 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80145
80146         * modules/regex (lib_SOURCES): Add regex.c.
80147         Reported by James Youngman in
80148         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80149
80150 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80151
80152         * lib/getdate.y: Use Bison 1.875 features, and some minor
80153         code cleanups.  This change does not affect semantics.
80154         Don't include <stdlib.h>; no longer needed.
80155         Don't include unlocked-io.h; only the "#if TEST" code uses
80156         stdio, and performance isn't crucial there.
80157         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80158         Bison 1.875 features as described below.
80159         All uses of "PC." replaced by "pc->".
80160         (YYSTYPE): Add a forward declaration.
80161         (yylex, yyerror): Use full prototypes in forward decls.
80162         Use "%pure-parser" rather than obsolescent "%pure_parser".
80163         Use %parse-param and %lex-param instead of obsolescent
80164         YYPARSE_PARAM and YYLEX_PARAM.
80165         (meridian_table, month_and_day_table, time_units_table,
80166         relative_time_table, time_zone_table, military_table,
80167         lookup_zone, lookup_word, get_date):
80168         Use NULL instead of 0 where appropriate.
80169         (to_hour): Avoid abort (), to avoid a dependency on
80170         stdlib.h.
80171         (yyerror, yylex): Now accepts parser_control * arg.
80172         (main) [TEST]: Use '\0' rather than 0 for char.
80173
80174 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80175
80176         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80177
80178 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80179
80180         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80181         It's now the caller's responsibility to handle the case where
80182         !HAVE_GETPAGESIZE && !defined getpagesize.
80183
80184         * lib/mktime.c (leapyear): Arg is long int, not int.
80185
80186 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80187
80188         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80189
80190 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80191
80192         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80193         missing.  Problem reported by James Youngman.
80194
80195 2004-10-16  Simon Josefsson  <jas@extundo.com>
80196
80197         * gnulib-tool: Fix comments.  Fix parse problem.
80198         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80199
80200 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80201
80202         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80203         implementation of getopt_long.  Problem reported by Alexander Taler in:
80204         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80205
80206 2004-10-15  Bruno Haible  <bruno@clisp.org>
80207
80208         * gnulib-tool: Untabify. Initialize supplied_libname.
80209         (func_usage): More homogenous output.
80210         (func_modules_transitive_closure, func_modules_to_filelist,
80211         func_emit_lib_Makefile_am): New functions.
80212         (func_import): New function, extracted from big case statement. Use
80213         func_get_license, func_modules_transitive_closure,
80214         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80215         opt_lgpl. Don't use test -a, as it's not portable.
80216         (func_create_testdir): Use func_modules_transitive_closure,
80217         func_modules_to_filelist, func_emit_lib_Makefile_am.
80218
80219 2004-10-15  Bruno Haible  <bruno@clisp.org>
80220
80221         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80222
80223 2004-10-15  Bruno Haible  <bruno@clisp.org>
80224
80225         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80226         the portions belonging to each module.
80227         Suggested by Derek Robert Price <derek@ximbiot.com>.
80228
80229 2004-10-12  Simon Josefsson  <jas@extundo.com>
80230
80231         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80232         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80233         to real functions.
80234
80235 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80236
80237         * modules/vsnprintf: New file.
80238
80239 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80240
80241         * m4/vsnprintf.m4: New file.
80242
80243 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80244
80245         * lib/vsnprintf.h: New file.
80246         * lib/vsnprintf.c: New file.
80247
80248 2004-10-11  Bruno Haible  <bruno@clisp.org>
80249
80250         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80251         vsnprintf.
80252
80253 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80254
80255         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80256
80257 2004-10-07  Bruno Haible  <bruno@clisp.org>
80258
80259         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80260         fits into the provided buffer.
80261
80262 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80263
80264         * lib/diacrit.c, diacrit.h: Add GPL notice.
80265
80266         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80267         notice.
80268         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80269         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80270         This avoids a potential constant-folding bug.
80271
80272 2004-10-05  Bruno Haible  <bruno@clisp.org>
80273
80274         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80275         for the declaration of strsep.
80276
80277 2004-10-05  Bruno Haible  <bruno@clisp.org>
80278
80279         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80280
80281 2004-10-04  Simon Josefsson  <jas@extundo.com>
80282
80283         * modules/memmem: New file.
80284         * tests/test-memmem.c: New file.
80285         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80286
80287 2004-10-04  Simon Josefsson  <jas@extundo.com>
80288
80289         * m4/memmem.m4: New file.
80290
80291 2004-10-04  Simon Josefsson  <jas@extundo.com>
80292
80293         * lib/memmem.h: New file.
80294         * lib/memmem.c: New file, taken from glibc.
80295
80296 2004-10-04  Simon Josefsson  <jas@extundo.com>
80297
80298         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80299         '#ifdef USE_UNLOCKED_IO'.
80300
80301 2004-10-04  Simon Josefsson  <jas@extundo.com>
80302
80303         * config/srclist.txt: Add memmem from glibc.
80304
80305 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80306
80307         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80308
80309         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80310         modules/exclude, modules/getdate, modules/getline,
80311         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80312         modules/getusershell, modules/linebuffer, modules/md5,
80313         modules/mountlist, modules/posixtm, modules/readtokens,
80314         modules/readutmp, modules/regex, modules/sha1,
80315         modules/version-etc, modules/yesno:
80316         Remove dependency on unlocked-io.
80317
80318 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80319
80320         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80321
80322         * m4/unlocked-io.m4: Add copyright notice.
80323         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80324
80325 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80326
80327         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80328         * lib/xmalloc.c (xmemdup): Likewise.
80329         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80330         XFREE): Remove these long-obsolescent macros.
80331         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80332         * lib/xstrdup.c: Remove.
80333
80334         * lib/regex.c (re_comp): Cast gettext return value to char *,
80335         Problem reported by Martin Neitzel via Mark D. Baushke.
80336
80337 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80338
80339         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80340         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80341         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80342         regex.c, sha1.c, version-etc.c, yesno.c:
80343         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80344         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80345         the includer's responsibility.
80346
80347         Sync from coreutils.
80348
80349         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80350         points to the start of a string, as the C Standard says the
80351         resulting behavior is undefined.
80352
80353         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80354         simple -> simple_backups, numbered_existing ->
80355         numbered_existing_backups, numbered -> numbered_backups
80356         to avoid shadowing problems.  All uses changed.
80357         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80358         * lib/backupfile.c (check_extension, numbered_backup):
80359         Rename locals to avoid shadowing 'basename'.
80360         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80361         once.
80362
80363         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80364         * lib/.cvsignore: Add getopt.h.
80365
80366 2004-10-04  Bruno Haible  <bruno@clisp.org>
80367
80368         * modules/README: New file.
80369         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80370         not a module.
80371
80372 2004-10-02  Jim Meyering  <jim@meyering.net>
80373
80374         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80375
80376 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80377
80378         * modules/strsep: New file.
80379
80380 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80381
80382         * m4/strsep.m4: New file.
80383
80384 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80385
80386         * lib/strsep.h: New file.
80387         * lib/strsep.c: New file.
80388
80389 2004-10-01  Simon Josefsson  <jas@extundo.com>
80390
80391         * lib/snprintf.c (snprintf): Handle size==0.
80392
80393 2004-10-01  Simon Josefsson  <jas@extundo.com>
80394             Bruno Haible  <bruno@clisp.org>
80395
80396         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80397         (snprintf): Declare 'args'.
80398
80399 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80400
80401         * lib/snprintf.c: Remove comments as to why each header is needed.
80402
80403 2004-10-01  Bruno Haible  <bruno@clisp.org>
80404
80405         * MODULES.html.sh: Add strsep.
80406
80407 2004-09-30  Simon Josefsson  <jas@extundo.com>
80408
80409         * modules/snprintf: New file.
80410
80411 2004-09-30  Simon Josefsson  <jas@extundo.com>
80412
80413         * m4/snprintf.m4: New file.
80414
80415 2004-09-30  Simon Josefsson  <jas@extundo.com>
80416
80417         * lib/snprintf.h, lib/snprintf.c: New files.
80418
80419 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80420
80421         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80422         (hol_entry_help): Never translate an empty string.
80423         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80424         * lib/argp.h (OPTION_NO_TRANS): New option.
80425
80426 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80427
80428         * modules/argp (Maintainer): Replace Simon Josefsson
80429         by Sergey Poznyakoff.
80430
80431 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80432
80433         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80434         changes merged back into glibc.
80435
80436 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80437
80438         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80439
80440 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80441
80442         * lib/xvasprintf.c: Include xalloc.h.
80443         (xvasprintf): Use xalloc_die, not xmalloc_die.
80444
80445 2004-09-29  Bruno Haible  <bruno@clisp.org>
80446
80447         * modules/alloca-opt: New file, derived from modules/alloca.
80448         * modules/allocsa: Depend on alloca-opt instead of alloca.
80449         * modules/setenv: Likewise.
80450         * modules/vasnprintf: Likewise.
80451         * MODULES.html.sh: Add alloca-opt.
80452
80453 2004-09-28  Simon Josefsson  <jas@extundo.com>
80454
80455         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80456         LGPL, and to replace license template from GPL to LGPL.
80457
80458 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80459
80460         * modules/dummy: Change license to LGPL.
80461
80462 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80463
80464         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80465
80466 2004-09-24  Simon Josefsson  <jas@extundo.com>
80467
80468         * modules/minmax (License): Change from GPL to LGPL.
80469
80470 2004-09-23  Simon Josefsson  <jas@extundo.com>
80471
80472         * gnulib-tool (--import): Typo.
80473
80474 2004-09-23  Simon Josefsson  <jas@extundo.com>
80475
80476         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80477
80478 2004-09-22  Bruno Haible  <bruno@clisp.org>
80479
80480         * modules/*: Add 'License' field.
80481         * gnulib-tool: Accept --extract-license option.
80482         (func_get_license): New function.
80483
80484 2004-09-21  Bruno Haible  <bruno@clisp.org>
80485
80486         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80487         Reported by Simon Josefsson.
80488
80489 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80490
80491         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80492         gl_AC_TYPE_LONG_LONG.
80493
80494 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80495
80496         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80497
80498 2004-09-18  Simon Josefsson  <jas@extundo.com>
80499         and  Paul Eggert  <eggert@cs.ucla.edu>
80500
80501         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80502         calls with autoreconf.  Define GL_LIB.
80503
80504 2004-09-14  Karl Berry  <karl@gnu.org>
80505
80506         * config/srclist.txt: unsync setenv.c, sigh.
80507
80508 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80509
80510         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80511         Problem reported by Bruno Haible in:
80512         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80513
80514 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80515
80516         * config/srclist.txt: Comment out argp-pvh.c.
80517
80518 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80519
80520         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80521         in case some system header has #define'd it.  Problem reported by
80522         Soeren D. Schulze in
80523         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80524
80525 2004-09-09  Karl Berry  <karl@gnu.org>
80526
80527         * regex.[ch]: delete from the root.  These were supposed to be
80528                 synced with emacs cvs, but this has not happened for about
80529                 a year, and anyway nothing else uses emacs regex.[ch].
80530                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80531                 lib/regex[.ch] is untouched.
80532
80533 2004-09-09  Bruno Haible  <bruno@clisp.org>
80534
80535         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80536
80537 2004-09-09  Bruno Haible  <bruno@clisp.org>
80538
80539         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80540         modifications.
80541         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80542
80543 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80544
80545         * modules/xvasprintf: New file.
80546         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80547
80548 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80549
80550         * lib/xvasprintf.h: New file.
80551         * lib/xvasprintf.c: New file.
80552         * lib/xasprintf.c: New file.
80553
80554 2004-09-08  Bruno Haible  <bruno@clisp.org>
80555
80556         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80557
80558 2004-09-08  Bruno Haible  <bruno@clisp.org>
80559
80560         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80561         length is > INT_MAX.
80562         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80563         more.
80564
80565 2004-09-08  Bruno Haible  <bruno@clisp.org>
80566
80567         * lib/stdint_.h: New file, taken from GNU clisp.
80568
80569 2004-09-08  Bruno Haible  <bruno@clisp.org>
80570             Oskar Liljeblad  <oskar@osk.mine.nu>
80571
80572         * modules/stdint: New file.
80573         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80574
80575 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80576
80577         Import from coreutils.
80578         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80579         strings on unbounded length.  alloca's performance benefits aren't
80580         that important here.
80581         (V_STRDUP): Remove.
80582         (parse_with_separator): New function, with most of the internals
80583         of the old parse_user_spec.  Allow user to omit both user and group,
80584         for compatibility with FreeBSD.
80585         Clone only the user name, not the entire spec.
80586         Do not set *uid, *gid unless entirely successful.
80587         Avoid memory leak in some failing cases.
80588         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80589         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80590         (parse_user_spec): Rewrite to use parse_with_separator.
80591
80592 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80593
80594         * modules/userspec: Don't depend on alloca.
80595
80596 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80597
80598         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80599
80600 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80601
80602         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80603         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80604         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80605
80606 2004-08-16  Simon Josefsson  <jas@extundo.com>
80607
80608         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80609         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80610         Add --dry-run for --import.
80611         Let user provided command line parameters override configure.ac
80612         settings.
80613
80614 2004-08-12  Simon Josefsson  <jas@extundo.com>
80615
80616         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80617         as discussed with Paul Eggert in threads rooted at
80618         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80619         and
80620         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80621         Before, the test was empty, and relied on ELIDE_CODE in source
80622         code.)
80623         (gl_PREREQ_GETOPT): New macro.
80624         (gl_GETOPT): Use them.
80625
80626 2004-08-12  Simon Josefsson  <jas@extundo.com>
80627
80628         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80629         * lib/getopt_.h: Renamed from getopt.h.
80630
80631 2004-08-12  Simon Josefsson  <jas@extundo.com>
80632
80633         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80634         Change default library name from libfoo to libgnu.
80635         Now, if you have a configure.ac that says:
80636                 gl_SOURCE_BASE(gl)
80637                 gl_M4_BASE(gl/m4)
80638                 gl_MODULES(error getopt etcetera)
80639                 gl_INIT
80640         you can import all you need by running:
80641                 ../gnulib/gnulib-tool --import
80642
80643         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80644         (Makefile.am): Rewrite, use logic from argz.
80645         (Include): Use <getopt.h> instead of "getopt.h".
80646
80647 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80648
80649         * modules/argp (Files): Add m4/unlocked-io.m4.
80650         (Depends-on): Add extensions.
80651
80652 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80653
80654         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80655         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80656         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80657         Check for program_invocation_name, program_invocation_short_name,
80658         flockfile, funlockfile, features.h, _getopt_long_only_r.
80659
80660 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80661
80662         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80663         its complicated substitute.
80664         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80665         and program_invocation_name.
80666         (__argp_basename) [!_LIBC]: Remove; the only use was
80667         replaced by its body.
80668         (__argp_short_program_name): Change condition from
80669         !defined __argp_short_program_name to
80670         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80671         to match argp-namefrob.h.
80672         (__argp_failure): Don't assume strerror_r returns char *.
80673         * lib/argp-parse.c (N_): Define unconditionally.
80674         (argp_default_options): Fill out initializers with 0 to avoid
80675         gcc warnings.
80676
80677 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80678
80679         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80680         getopt1.c.
80681
80682 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80683
80684         Merge from coreutils.
80685
80686         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80687
80688         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80689         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80690
80691 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80692
80693         Merge from coreutils.
80694
80695         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80696         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80697         for Reliant Unix 5.43.
80698
80699         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80700         (union fooround): Use uintmax_t, not long int.
80701         The rest is a merge from libc:
80702         [defined _LIBC]: Include <shlib-compat.h>.
80703         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80704
80705         * lib/settime.c (settime): Recode to avoid warning with
80706         Sun Forte C 6U2.
80707
80708         * lib/strverscmp.c: Convert to UTF-8.
80709
80710 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80711
80712         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80713         m4/uintmax_t.m4.
80714
80715 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80716
80717         * modules/xalloc-die: New file.
80718         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80719
80720         * modules/md5 (Files): Add m4/uint32_t.m4.
80721         * modules/sha1: Renamed from modules/sha.
80722         (Files):
80723         Rename lib/sha.h to lib/sha1.h.
80724         Rename lib/sha.c to lib/sha1.c.
80725         Rename m4/sha.m4 to m4/sha1.m4.
80726         (lib_SOURCES): Likewise.
80727         (configure.ac): Rename gl_SHA to gl_SHA1.
80728         (Include): sha.h -> sha1.h.
80729
80730 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80731
80732         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80733         * m4/sha1.m4: Renamed from sha.m4.
80734         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80735
80736 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80737
80738         * lib/obstack.h (obstack_empty_p):
80739         Don't assume that chunk->contents is suitably aligned.
80740         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80741         Likewise. Problem reported by Benno in
80742         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80743
80744         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80745         readable.  This could be improved further but it'd take some work.
80746
80747 2004-08-08  Simon Josefsson  <jas@extundo.com>
80748
80749         * modules/xgethostname (Depends-on): Remove exit and error (not
80750         used).
80751
80752         * modules/getpass-gnu: Add getpass.h.
80753         (Depends-on): Add stdbool.
80754         * modules/getpass: Add getpass.h.
80755
80756 2004-08-08  Simon Josefsson  <jas@extundo.com>
80757
80758         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80759         Check getpass declaration.
80760
80761 2004-08-08  Simon Josefsson  <jas@extundo.com>
80762
80763         * lib/xgethostname.c: Don't include error.h (not used).
80764
80765         * lib/getpass.h: Add.
80766         * lib/getpass.c: Include getpass.h first.
80767
80768 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80769
80770         * lib/xalloc-die.c: New file.
80771         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80772         All uses removed.
80773         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80774         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80775         xalloc-die.c.
80776         (_, N_, xalloc_die): Move to xalloc-die.c.
80777         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80778         so that we needn't mess with xalloc_msg_memory_exhausted.
80779
80780         * lib/sha1.h: Renamed from sha.h.
80781         (SHA1_H): Renamed from _SHA_H.
80782         (sha1_ctx): Renamed from sha_ctx.
80783         (sha1_init_ctx): Renamed from sha_init_ctx.
80784         (sha1_process_block): Renamed from sha_process_block.
80785         (sha1_process_bytes): Renamed from sha_process_bytes.
80786         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80787         (sha1_read_ctx): Renamed from sha_read_ctx.
80788         (sha1_stream): Renamed from sha_stream.
80789         (sha1_buffer): Renamed from sha_buffer.
80790         * lib/sha1.c: Likewise; renamed from sha.c.
80791         Do not include <sys/types.h>.
80792         Include <stddef.h> rather than <stdlib.h>.
80793
80794 2004-08-08  Bruno Haible  <bruno@clisp.org>
80795
80796         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80797         FILESYSTEM_PREFIX_LEN.
80798         * lib/progreloc.c: Likewise.
80799         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80800
80801 2004-08-06  Simon Josefsson  <jas@extundo.com>
80802
80803         * modules/progname (Depends-on): Don't depend on stdbool.
80804
80805 2004-08-06  Simon Josefsson  <jas@extundo.com>
80806
80807         * modules/getsubopt: New file.
80808         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80809         getsubopt.
80810
80811 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80812
80813         More merge from coreutils.
80814
80815         * m4/utimens.m4, m4/utimecmp.m4: New files.
80816         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80817         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80818         prereq.m4, sha.m4: Import changes from coreutils.
80819
80820 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80821
80822         More merge from coreutils.
80823         * modules/raise, modules/readtokens0, modules/utimens:
80824         * modules/utimecmp, module/xnanosleep: New files.
80825         * modules/strftime: Add lib/strftime.h.
80826         Change include from <time.h> to "strftime.h".
80827         * modules/yesno: Add lib/yesno.h.
80828         * modules/backupfile: Remove lib/addext.c.
80829         * modules/euidaccess: Add stat-macros.h.
80830         * modules/canonicalize, modules/euidaccess,
80831         modules/filemode, modules/lchown, modules/makepath,
80832         modules/rmdir, modules/stat: Likewise.
80833
80834 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80835
80836         Merge from tar.
80837         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80838         SIZE_MAX is a valid preprocessor constant.
80839         (__argp_basename): Change from "#ifndef _LIBC"
80840         to "#ifndef __argp_short_program_name", so that
80841         we don't compile these functions for tar.
80842
80843         More merges from coreutils.
80844         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80845         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80846         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80847         * lib/addext.c: Remove; no longer needed.
80848         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80849         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80850         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80851         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80852         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80853         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80854         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80855         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80856         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80857         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80858         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80859         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80860         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80861         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80862         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80863         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80864         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80865         Import changes from coreutils.
80866
80867 2004-08-05  Simon Josefsson  <jas@extundo.com>
80868
80869         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80870
80871 2004-08-05  Simon Josefsson  <jas@extundo.com>
80872
80873         * m4/getsubopt.m4: New file.
80874
80875 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80876
80877         Merge from coreutils.
80878
80879         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80880         * m4/getcwd-path-max.m4: New files.
80881
80882         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80883         FILESYSTEM_PREFIX_LEN ->
80884         FILE_SYSTEM_PREFIX_LEN.
80885         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80886         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80887         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80888         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80889
80890         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80891         prerequisite modules now handle the DOS stuff.
80892         Don't check for unistd.h.
80893
80894 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80895
80896         Merge from coreutils.
80897
80898         * lib/.gdb-history: Remove; this doesn't belong here.
80899
80900         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80901         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80902         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80903         * lib/getcwd.c: New files.
80904
80905         * lib/dirname.h: Include <stdbool.h>.
80906         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80907         for consistency with POSIX terminology.  All uses changed.
80908         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80909         (strip_trailing_slashes): Use bool for booleans.
80910         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80911
80912         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80913         sometimes returns a positive errno value even when it succeeds.
80914         (print_errno_message) [!LIBC]: Fall back on strerror if
80915         __strerror_r fails.
80916
80917         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80918         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80919         (longest_relative_suffix): New function.
80920         (path_concat): Use it.  Assume first argument is not NULL.
80921         Port to DOS.  Omit redundant separators.
80922         Report an error instead of returning NULL.
80923         Use mempcpy instead of memcpy.
80924         (xpath_concat): Remove: not declared or used.
80925
80926         * lib/same.h: Include <stdbool.h>
80927         (same_name): Return bool, not int.
80928         * lib/same.c (same_name): Likewise.
80929         (errno): Don't declare; we assume C89 or better now.
80930
80931         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80932         if not already defined.
80933
80934         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80935         * lib/dup-safer.c (errno): Likewise.
80936
80937 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80938
80939         Merge from coreutils.
80940         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80941         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80942         * modules/path-concat: Don't depend on strdup.
80943
80944 2004-08-03  Simon Josefsson  <jas@extundo.com>
80945
80946         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80947         * lib/progname.h: Don't include stdbool.h.
80948
80949 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80950
80951         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80952         * MODULES.html.sh (func_all_modules): Remove fatal.
80953
80954 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80955
80956         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80957
80958 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80959
80960         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80961         working.
80962
80963 2004-08-02  Simon Josefsson  <jas@extundo.com>
80964
80965         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80966         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80967         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80968
80969 2004-08-01  Simon Josefsson  <jas@extundo.com>
80970
80971         * lib/xgetdomainname.c: Include stdlib.h, for free().
80972
80973 2004-07-19  Bruno Haible  <bruno@clisp.org>
80974
80975         * MODULES.html.sh (func_all_modules): Add dummy.
80976
80977 2004-07-16  Simon Josefsson  <jas@extundo.com>
80978
80979         * modules/dummy: New file.
80980
80981 2004-07-16  Simon Josefsson  <jas@extundo.com>
80982
80983         * lib/dummy.c: New file.
80984
80985 2004-07-16  Bruno Haible  <bruno@clisp.org>
80986
80987         * lib/backupfile.h: Add extern "C" for C++.
80988         * lib/closeout.h: Likewise.
80989         * lib/copy-file.h: Likewise.
80990         * lib/findprog.h: Likewise.
80991         * lib/full-write.h: Likewise.
80992         * lib/pathname.h: Likewise.
80993         * lib/progname.h: Likewise.
80994         * lib/stpcpy.h: Likewise.
80995         * lib/stpncpy.h: Likewise.
80996         * lib/strcase.h: Likewise.
80997         * lib/strstr.h: Likewise.
80998         * lib/xalloc.h: Likewise.
80999
81000         * lib/mbswidth.h: Add extern "C" for C++.
81001         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81002
81003 2004-07-13  Robert Millan  <robertmh@gnu.org>
81004
81005         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81006
81007 2004-07-09  Simon Josefsson  <jas@extundo.com>
81008
81009         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81010         failed without this.)
81011
81012 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81013
81014         * modules/chown (Files): Add lib/fchown-stub.c, since
81015         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81016
81017 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81018
81019         * lib/fchown-stub.c: New file.
81020
81021 2004-06-24  Jim Meyering  <jim@meyering.net>
81022
81023         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81024
81025 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81026
81027         * modules/argz: Omit "#include".
81028
81029         * MODULES.html.sh (func_all_modules): Add calloc, to match
81030         2004-06-01 addition of calloc module.
81031
81032 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81033
81034         * m4/argz.m4: New file, which is autoupdated from libtool.
81035
81036 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81037
81038         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81039         libtool.
81040
81041 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81042
81043         * config/srclist-update: Don't insist on "USA." before the
81044         close-comment, as libtool omits the period and puts the */ on a
81045         separate line.
81046         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81047         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81048
81049 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81050
81051         * modules/argz: New file.
81052         * MODULES.html.sh (func_all_modules): Add argz.
81053
81054 2004-06-12  Jim Meyering  <jim@meyering.net>
81055         and  Paul Eggert  <eggert@cs.ucla.edu>
81056
81057         * modules/hash (Files): Add lib/xalloc.h.
81058         * modules/pipe (Depends-on): Add wait-process.
81059         * modules/stat (Depends-on): Add xalloc.
81060         * modules/userspec (Files): Add lib/userspec.h.
81061         * modules/xstrto
81062
81063         Upgrade from gettext-0.13.
81064         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81065         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81066         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81067
81068 2004-06-10  Jim Meyering  <jim@meyering.net>
81069
81070         * lib/calloc.c: New file.
81071
81072 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81073
81074         * lib/getdate.y (yylex): Allow space between sign and number.
81075         Problem reported by Dan Jacobson.
81076
81077 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         Merge from coreutils CVS.
81080
81081         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81082         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81083         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81084         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81085         xstrtol.m4: Fix copyright date and/or serial number.
81086
81087         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81088         See if we need an fchown replacement.
81089         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81090         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81091         and use the replacement function if we detect either defect.
81092
81093         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81094         gl_UTIMECMP.
81095
81096 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81097         and  Jim Meyering  <jim@meyering.net>
81098
81099         Merge from coreutils CVS.
81100
81101         * lib/stat-macros.h: New file, with contents from file-type.h
81102         and coreutils' system.h.
81103         * lib/file-type.c: Include "stat-macros.h".
81104         * lib/file-type.h (file_type): Move all macro definitions to new file,
81105         stat-macros.h.
81106
81107         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81108         Wrap old code with this conditional.
81109         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81110         function that does not dereference symlinks.
81111         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81112
81113         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81114         dependency problems.
81115         (xreadlink): Accept new arg SIZE, for efficiency.
81116         All decls and uses changed.
81117         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81118
81119         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81120         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81121
81122         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81123         sysexits.h.
81124
81125 2004-06-01  Jim Meyering  <jim@meyering.net>
81126
81127         * m4/calloc.m4: New file.
81128
81129 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81130
81131         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81132         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81133         Also, fix a typo in a diagnostic.
81134
81135 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81136
81137         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81138         or AC_FUNC_REALLOC.
81139
81140 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81141
81142         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81143         macros to be defined.
81144         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81145         the allocator returns NULL because the requested size is zero.
81146
81147 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81148
81149         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81150         var.  Add comment explaining why libc still defines it.  This
81151         merges the following patch from glibc:
81152         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81153
81154 2004-05-20  Andreas Schwab  <schwab@suse.de>
81155
81156         * m4/free.m4: Replace free if it not known to work, not the other
81157         way round.
81158
81159 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81160
81161         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81162         present in glibc since revision 1.1 of this file.
81163         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81164         obstack_alignment_mask, obstack_alloc, obstack_base,
81165         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81166         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81167         obstack_grow0, obstack_init, obstack_int_grow,
81168         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81169         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81170         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81171         nonexistent functions.
81172
81173 2004-05-18  Karl Berry  <karl@gnu.org>
81174
81175         * config/srclist.txt: break link for vasnprintf.c.
81176
81177 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81178
81179         Port obstack to the AS/400, where pointers are 16 bytes wide and
81180         you cannot cast an integer to a valid pointer.  This patch is
81181         currently waiting to be integrated into glibc; see
81182         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81183
81184         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81185         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81186         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81187         (struct obstack): temp member is now a union of a pointer and
81188         an integer, instead of an integer.  All integer uses changed.
81189         This does not affect the physical layout of struct obstack,
81190         except on hosts (like the AS/400) where the size or alignment of
81191         void * is greater than that of ptrdiff_t.
81192         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81193         __STDC__)]: Store temporary in pointer member of union, not
81194         integer member.
81195         * lib/obstack.c: Include <stddef.h>, for offsetof.
81196         (struct fooalign): Remove; it doesn't need a name.
81197         (union fooround): Change double to long double, and add void *.
81198         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81199         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81200         not a macro.  Hence the values are always int; so remove all
81201         casts-to-int in uses.
81202
81203 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81204
81205         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81206         we can get this patch merged into glibc.
81207
81208 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81209             Paul Eggert  <eggert@cs.ucla.edu>
81210
81211         * m4/argp: Depend on alloca.
81212
81213 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81214             Paul Eggert  <eggert@cs.ucla.edu>
81215
81216         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81217         freecoding.
81218
81219 2004-05-17  Bruno Haible  <bruno@clisp.org>
81220
81221         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81222         precision that consists of a '.' followed by an empty digit string.
81223         Patch by Tor Lillqvist <tml@iki.fi>.
81224
81225 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81226
81227         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81228         for backward compatibility with older code.  We need our own
81229         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81230         it under some other name, and our alloca.h will define it.
81231
81232 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81233             Derek Price  <derek@ximbiot.com>
81234
81235         * lib/alloca.c: Include <alloca.h>, to get our interface.
81236         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81237         include <alloca.h> first.  Use C89 prototype for alloca; this
81238         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81239         Use #elif for simplicity, since we can assume C89 now.
81240         Don't try to source the system alloca.h since it will not be found
81241         and to prevent recursively including its replacement.
81242         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81243         * lib/regex.c: Likewise.
81244
81245 2004-05-16  Derek Price  <derek@ximbiot.com>
81246             Paul Eggert  <eggert@cs.ucla.edu>
81247
81248         getline cleanup.  This changes the getndelim2 API: both order of
81249         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81250         no delimiter).
81251
81252         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81253         interface does that.
81254         (getline): Always use getdelim, so that we don't have two
81255         copies of this code.
81256         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81257         if available.
81258         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81259         (GETNDELIM2_MAXIMUM): New macro.
81260         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81261         instead of the old practice of delim2==0.  All callers changed.
81262         Return -1 on overflow, instead of returning junk.
81263         Do not set *linesize unless allocation succeeds.
81264         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81265         that we include sys/types.h.
81266         * lib/getnline.h: Likewise.
81267         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81268         (getndelim2): Reorder arguments.
81269         * lib/getnline.c (getnline, getndelim):
81270         Don't discard the NMAX argument.
81271         (getnline): Invoke getndelim, to avoid code duplication.
81272         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81273         of (size_t) -1 by callers of the getnline family.
81274
81275 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81276
81277         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81278         Check for gettimeofday.
81279         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81280         Check for settimeofday, stime.
81281
81282 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81283
81284         * lib/nanosleep.c (suspended): Change its type from int to
81285         sig_atomic_t volatile.
81286         (first_call): Make it private to rpl_nanosleep, and have it
81287         be zero initially as that's a bit faster.
81288         (my_usleep): Round up fractional times instead of truncating them,
81289         as this is the usual meaning for 'sleep'.
81290
81291         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81292         doesn't work.
81293         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81294         (ENOSYS): Define if not defined.
81295         (settime): Fall back on stime if it exists and settimeofday fails.
81296         But don't bother with fallbacks if a method fails with errno == EPERM.
81297
81298 2004-05-11  Jim Meyering  <jim@meyering.net>
81299
81300         Prior to this change, the save_cwd caller required read access to the
81301         current directory on most systems (ones with the fchdir function).
81302
81303         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81304         fails, try write-only, and finally, resort to using xgetcwd.
81305
81306 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81307
81308         * lib/obstack.c, obstack.h: Import changes from libc.
81309
81310 2004-04-28  Bruno Haible  <bruno@clisp.org>
81311
81312         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81313         also implicitly appends .exe to executables.
81314         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81315         accepts Windows pathnames.
81316         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81317         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81318         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81319         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81320         Reported by Derek Robert Price <derek@ximbiot.com>.
81321
81322 2004-04-21  Karl Berry  <karl@gnu.org>
81323
81324         * config/srclist.txt (localcharset.c): break sync.
81325
81326 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81327
81328         * m4/host-os.m4: Add a copyright notice.
81329
81330 2004-04-20  Jim Meyering  <jim@meyering.net>
81331
81332         Change UTILS_ to gl_ in AC_DEFINE'd names.
81333         Change utils_- and jm_-prefixed variables, too.
81334         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81335         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81336         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81337
81338         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81339         Don't emit trailing blanks.
81340         Also rename jm_-prefixed variables to have gl_ prefix.
81341
81342         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81343         Also rename jm_-prefixed variables to have gl_ prefix.
81344
81345         * m4/jm-macros.m4: Reflect the renamings.
81346         * m4/prereq.m4: Likewise.
81347
81348 2004-04-20  Jim Meyering  <jim@meyering.net>
81349
81350         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81351         memory.
81352
81353 2004-04-20  Jim Meyering  <jim@meyering.net>
81354             Bruno Haible  <bruno@clisp.org>
81355
81356         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81357         memory when realloc fails.
81358
81359 2004-04-19  Jim Meyering  <jim@meyering.net>
81360
81361         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81362         now that readutmp.c may call `free (0)'.
81363
81364 2004-04-19  Bruno Haible  <bruno@clisp.org>
81365
81366         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81367         * m4/inttypes_h.m4: Likewise.
81368         * m4/stdint_h.m4: Likewise.
81369         * m4/intmax_t.m4: Likewise.
81370         * m4/uintmax_t.m4: Likewise.
81371
81372 2004-04-18  Jim Meyering  <jim@meyering.net>
81373
81374         * m4/prereq.m4: Don't forbid jm_ prefix.
81375
81376         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81377         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81378         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81379         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81380         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81381         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81382         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81383         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81384         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81385         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81386         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81387         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81388         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81389         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81390         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81391         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81392         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81393         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81394         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81395
81396 2004-04-18  Jim Meyering  <jim@meyering.net>
81397
81398         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81399         failure, don't leak memory and do call END_UTMP_ENT.
81400
81401 2004-04-16  Jim Meyering  <jim@meyering.net>
81402
81403         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81404         coreutils' stat program.
81405         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81406
81407 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81408
81409         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81410         C89.
81411         (CHAR_BIT): Remove, since we assume C89.
81412         Include <stdint.h> if available, as per current Autoconf CVS advice.
81413
81414 2004-03-31  Jim Meyering  <jim@meyering.net>
81415
81416         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81417         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81418         * m4/xalloc.m4: Likewise.
81419
81420 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81421
81422         Merge from coreutils.
81423
81424         * m4/inttostr.m4: New file.
81425         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81426         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81427         Require gl_CLOCK_TIME.
81428         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81429
81430 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81431
81432         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81433         not bool, to be more consistent with Unix conventions.
81434         Suggested by Bruno Haible.
81435
81436         Merge from coreutils.
81437
81438         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81439         * lib/umaxtostr.c: New files.
81440
81441         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81442         the usual <time.h> dance.
81443         (get_date): Change signature to support fractional time stamps.
81444         All callers changed.
81445         * lib/getdate.y: Include "getdate.h" first, as we can now
81446         assume C89 and don't need to worry about 'const'.
81447         Similarly, include "unlocked-io.h" near start, not in middle.
81448         Include <limits.h>.
81449         (textint.value): Use long int rather than int.
81450         (textint.digits): Use size_t rather than int.
81451         (BILLION, LOG10_BILLION): New constants.
81452         (parser_control): New member rel_ns.  Members day_ordinal,
81453         time_zone, month, day, hour, minutes, rel_year, rel_month,
81454         rel_day, rel_hour, rel_minutes, rel_seconds
81455         are now long int, not int.  Member seconds is now struct timespec,
81456         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81457         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81458         not int.
81459         (%union.intval): Now long int, not int.
81460         New member timespec.
81461         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81462         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81463         (spec): Now is a timespec or an item list.
81464         (timespec, items): New nonterminals.
81465         (time, rel, relunit, number, get_date):
81466         Add support for fractional seconds.
81467         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81468         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81469         (to_hour): First arg is now long int, not int.
81470         (to_year): Returns long int, not int.
81471         Don't treat year -70 like 70.
81472         (tm_diff): Returns long int, not int.
81473         (lookup_word): Use bool instead of int when appropriate.
81474         (yylex): Use size_t for count, not int.
81475         Detect overflow when parsing large integer constants.
81476         Add support for fractions.
81477         (get_date): Make pointers 'const' if possible.
81478         Use more-portable code to detect integer overflow.
81479         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81480         Don't use ctime; it's not reliable if the year has >4 digits.
81481
81482         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81483         This is for compatibility with BSD.
81484
81485         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81486         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81487         From coreutils' system.h.
81488
81489         * lib/userspec.c: Don't include "posixver.h".
81490         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81491         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81492         compatible extension.  Simplify code by removing a boolean int
81493         that was always nonzero if a string was nonnull.
81494
81495 2004-03-30  Jim Meyering  <jim@meyering.net>
81496
81497         Merge from coreutils.
81498
81499         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81500         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81501         on some systems one must include <grp.h> before it.
81502         Reported by Christian Krackowizer.
81503
81504 2004-03-30  Jim Meyering  <jim@meyering.net>
81505
81506         Merge from coreutils.
81507
81508         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81509
81510         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81511         an empty input stream.
81512
81513         * lib/readtokens.c: Include <stdbool.h>.
81514         (readtoken): Use `size_t' rather than int/long.
81515         All callers adjusted.
81516         Use `bool' rather than `int' where appropriate.
81517         Use memset rather than an explicit loop.
81518         Use x2nrealloc rather than xrealloc.
81519         Allow the use of `\0' as a delimiter.
81520         (readtokens): Likewise.
81521         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81522
81523 2004-03-30  Jim Meyering  <jim@meyering.net>
81524
81525         * m4/realloc.m4: Remove file, since now it does no more than
81526         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81527         the `configure.ac' section of module/realloc.
81528         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81529
81530 2004-03-30  Bruno Haible  <bruno@clisp.org>
81531
81532         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81533         nonnull.
81534
81535 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81536
81537         Merge changes to getloadavg.c from coreutils and Emacs.
81538
81539         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81540         Define to an expression, not to the empty string.
81541         Include cloexec.h and xalloc.h.
81542         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81543         Use set_cloexec_flag rather than rolling our own.
81544         * lib/cloexec.c, lib/cloexec.h: New files.
81545
81546 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81547
81548         * m4/cloexec.m4: New file.
81549
81550 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81551
81552         * lib/getopt.h: Sync with libc CVS.
81553
81554 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81555             Bruno Haible  <bruno@clisp.org>
81556
81557         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81558         mbswidth.
81559
81560 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81561             Bruno Haible  <bruno@clisp.org>
81562
81563         * lib/mbswidth.h: Include <wchar.h> only if
81564         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81565         <wchar.h>.
81566         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81567
81568 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81569
81570         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81571         Sync with libc CVS.
81572         * lib/getopt_int.h: New file, also synced from libc.
81573
81574 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81575
81576         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81577         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81578         Bring back getopt.c, getopt.h, getopt1.c.
81579
81580 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81581
81582         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81583         All uses changed.  Check for sa_sigaction member; this fixes
81584         a bug first reported by Jason Andrade in
81585         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81586
81587 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81588
81589         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81590         '#if' expressions.  Unlike the code it replaces, it does not
81591         depend on (defined _SC_PAGESIZE).  However, it does depend on
81592         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81593         first reported by Jason Andrade in
81594         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81595
81596 2004-02-25  Simon Josefsson  <jas@extundo.com>
81597
81598         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81599
81600 2004-02-25  Simon Josefsson  <jas@extundo.com>
81601
81602         * lib/strdup.h: New file.
81603         * lib/strdup.c: Include it.
81604         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81605         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81606
81607 2004-02-23  Karl Berry  <karl@gnu.org>
81608
81609         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81610         (from fencepost.gnu.org:/gd/gnuorg).
81611
81612 2004-02-23  Karl Berry  <karl@gnu.org>
81613
81614         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81615         * config/srclist.txt: add maintain/standards documents.
81616
81617 2004-02-18  Bruno Haible  <bruno@clisp.org>
81618
81619         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81620         Reported by Derek Robert Price <derek@ximbiot.com>.
81621
81622 2004-02-16  Karl Berry  <karl@gnu.org>
81623
81624         * config/mkinstalldirs, install-sh: update from automake.
81625
81626 2004-02-06  Karl Berry  <karl@gnu.org>
81627
81628         * m4/po.m4: update from gettext 0.14.1.
81629
81630 2004-02-06  Karl Berry  <karl@gnu.org>
81631
81632         * lib/config.charset: update from gettext 0.14.1.
81633
81634 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81635
81636         Add comments and code, prompted by suggestions from Bruno Haible
81637         for sh-quote.
81638         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81639         describing the enum quoting_style values.
81640         * lib/quotearg.c (quotearg_alloc): New function.
81641         (quotearg_buffer_restyled): Treat lone { and } as special.
81642         Treat = as special.  Work around bug with older shells
81643         that "see" a '\' that is really the 2nd byte of a multibyte char.
81644         Quote empty string with shell_quoting_style.
81645
81646 2004-02-03  Bruno Haible  <bruno@clisp.org>
81647
81648         * m4/pipe.m4: New file, from GNU gettext.
81649
81650 2004-02-03  Bruno Haible  <bruno@clisp.org>
81651
81652         * lib/pipe.h: New file, from GNU gettext.
81653         * lib/pipe.c: New file, from GNU gettext.
81654
81655 2004-01-27  Bruno Haible  <bruno@clisp.org>
81656
81657         * m4/execute.m4: New file, from GNU gettext.
81658
81659 2004-01-27  Bruno Haible  <bruno@clisp.org>
81660
81661         * lib/execute.h: New file, from GNU gettext.
81662         * lib/execute.c: New file, from GNU gettext.
81663         * lib/w32spawn.h: New file, from GNU gettext.
81664
81665 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81666
81667         Merge from diffutils.
81668
81669         * lib/file-type.c (file_type): Add typed memory objects.
81670         * lib/file-type.h (S_TYPEISTMO): New macro.
81671
81672         * lib/c-stack.h (c_stack_action): Remove argv argument.
81673         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81674         (die): Don't calculate message unless segv_action returns.
81675         (get_stack_location, min_address_from_argv, max_address_from_argv,
81676         volatile stack_base, volatile_stack_size): Remove.
81677         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81678         that every segmentation violation is a stack overflow.  (Ouch!)
81679         See Debian bug 136249 (still outstanding) for more info about why
81680         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81681
81682 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81683
81684         Exit-status fix from coreutils.
81685
81686         Use exit_failure consistently in place of EXIT_FAILURE,
81687         so that program exit statuses are consistent on failure.
81688
81689         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81690         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81691         * lib/argmatch.h: Comment fix to match the above.
81692         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81693         Now a macro referring to exit_failure, instead of a separate
81694         variable.  Include "exitfail.h" to get it.
81695         * lib/xstrtol.h: Include "exitfail.h".
81696         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81697
81698         * lib/long-options.c (parse_long_options): Use prototype
81699         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81700         for clarity.
81701
81702 2004-01-21  Jim Meyering  <jim@meyering.net>
81703
81704         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81705         so as not to conflict with a different-sized __mktime_internal
81706         function in GNU libc.
81707         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81708         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81709
81710 2004-01-20  Karl Berry  <karl@gnu.org>
81711
81712         * config/config.guess: update from config.
81713
81714         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81715
81716 2004-01-20  Bruno Haible  <bruno@clisp.org>
81717
81718         Safer stack allocation.
81719         * lib/setenv.c: Include allocsa.h.
81720         (alloca): Remove fallback definition.
81721         (freea): Remove macro.
81722         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81723         instead of freea.
81724
81725 2004-01-20  Bruno Haible  <bruno@clisp.org>
81726
81727         * m4/eealloc.m4: New file, from GNU gettext.
81728
81729 2004-01-20  Bruno Haible  <bruno@clisp.org>
81730
81731         * m4/allocsa.m4: New file, from GNU gettext.
81732
81733 2004-01-20  Bruno Haible  <bruno@clisp.org>
81734
81735         * lib/xallocsa.h: New file, from GNU gettext.
81736         * lib/xallocsa.c: New file, from GNU gettext.
81737
81738 2004-01-20  Bruno Haible  <bruno@clisp.org>
81739
81740         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81741
81742 2004-01-20  Bruno Haible  <bruno@clisp.org>
81743
81744         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81745         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81746         specially.
81747
81748 2004-01-20  Bruno Haible  <bruno@clisp.org>
81749
81750         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81751         patch.
81752
81753 2004-01-20  Bruno Haible  <bruno@clisp.org>
81754
81755         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81756
81757 2004-01-20  Bruno Haible  <bruno@clisp.org>
81758
81759         * lib/eealloc.h: New file.
81760
81761 2004-01-20  Bruno Haible  <bruno@clisp.org>
81762
81763         * lib/binary-io.h: Avoid warnings on Cygwin.
81764
81765 2004-01-20  Bruno Haible  <bruno@clisp.org>
81766
81767         * lib/allocsa.h: New file, from GNU gettext.
81768         * lib/allocsa.c: New file, from GNU gettext.
81769
81770 2004-01-18  Karl Berry  <karl@gnu.org>
81771
81772         * doc/gpl.texi, doc/lgpl.texi: new files.
81773
81774 2004-01-18  Karl Berry  <karl@gnu.org>
81775
81776         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81777         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81778
81779 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81780
81781         Merge from coreutils.
81782
81783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81784         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81785         (gl_DEFAULT_POSIX2_VERSION): Move
81786         the documentation from 'configure' into 'config.hin',
81787         so that 'configure --help' isn't burdened by it and
81788         we don't have to worry about its formatting there.
81789         Reword the documentation so that it's more succinct
81790         and can be run together into a single paragraph.
81791         * m4/same.m4 (gl_SAME): Check for pathconf.
81792
81793 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81794
81795         Merge from coreutils.
81796
81797         * lib/posixver.c: Include posixver.h.
81798
81799         * lib/same.c: Include <stdbool.h>, <limits.h>.
81800         (_POSIX_NAME_MAX): Define if not defined.
81801         (MIN): New macro.
81802         (same_name): If file names are silently truncated, report
81803         that the file names are the same if they are the same after
81804         the silent truncation.
81805
81806         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81807         conversion function.
81808         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81809         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81810         longer needed.
81811
81812 2004-01-15  Jim Meyering  <jim@meyering.net>
81813
81814         Merge from coreutils.
81815
81816         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81817         if no library is required.
81818         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81819         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81820         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81821         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81822         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81823         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81824         value, $ac_cv_search_crypt, if it's "none required".
81825         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81826         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81827         not gl_FUNC_GETLOADAVG.
81828         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81829         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81830
81831 2004-01-15  Jim Meyering  <jim@meyering.net>
81832
81833         Merge from coreutils.
81834
81835         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81836         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81837         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81838
81839         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81840         optional configure-time default.
81841
81842         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81843
81844         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81845
81846 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81847
81848         Merge from coreutils.
81849
81850         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81851         value, $ac_cv_search_nanosleep, if it's "none required".
81852
81853 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81854
81855         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81856         with like-named macro in fnmatch.c.
81857         (EXT): Use an internal constant instead.
81858
81859         Merge fnmatch patches from glibc.
81860         * lib/fnmatch.c (mbsinit): Remove define.
81861         Add libc_hidden_ver (__fnmatch, fnmatch).
81862         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81863         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81864
81865 2004-01-14  Karl Berry  <karl@gnu.org>
81866
81867         * config/install-sh: update from automake.
81868
81869 2004-01-13  Karl Berry  <karl@gnu.org>
81870
81871         * config/install-sh: update from automake.
81872
81873 2004-01-09  Karl Berry  <karl@gnu.org>
81874
81875         * config/install-sh: update from automake.
81876
81877 2004-01-05  Karl Berry  <karl@gnu.org>
81878
81879         * config/config.{sub,guess}: update from config.
81880
81881 2003-12-31  Karl Berry  <karl@gnu.org>
81882
81883         * config/depcomp: update from automake.
81884
81885 2003-12-14  Karl Berry  <karl@gnu.org>
81886
81887         * lib/config.charset: update from gettext-runtime.
81888
81889 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81890
81891         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81892         Bug reported by Alfred M. Szmidt.
81893
81894 2003-12-03  Bruno Haible  <bruno@clisp.org>
81895
81896         * m4/gettext.m4: Upgrade from gettext-0.13.
81897         * m4/po.m4: Upgrade from gettext-0.13.
81898         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81899         * m4/intmax.m4: New file, from gettext-0.13.
81900         * m4/printf-posix.m4: New file, from gettext-0.13.
81901
81902 2003-11-29  Karl Berry  <karl@gnu.org>
81903
81904         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81905
81906 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81907             Bruno Haible  <bruno@clisp.org>
81908
81909         * lib/printf-parse.h: Don't include sys/types.h.
81910         (ARG_NONE): New macro.
81911         (char_directive): Change type of *arg_index fields to size_t.
81912         * lib/printf-parse.c: Don't include sys/types.h.
81913         (SSIZE_MAX): Remove macro.
81914         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81915         Remove unnecessary overflow check.
81916         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81917         fields.
81918
81919 2003-11-25  Bruno Haible  <bruno@clisp.org>
81920
81921         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81922
81923 2003-11-25  Bruno Haible  <bruno@clisp.org>
81924
81925         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81926         gt_TYPE_SSIZE_T.
81927
81928 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81929
81930         * modules/alloca: Remove dependency on xalloc.
81931
81932 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81933
81934         * lib/alloca.c: Remove dependency on xalloc module.
81935         (xalloc_die): Remove.
81936         (memory_full) [!defined emacs]: New macro.
81937         [!defined emacs]: Don't include xalloc.h.
81938         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81939         address arithmetic overflows.  Change datatypes a bit to avoid
81940         unnecessary casts.
81941
81942 2003-11-22  Jim Meyering  <jim@meyering.net>
81943
81944         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81945         s/size/size_t/.
81946
81947 2003-11-21  Karl Berry  <karl@gnu.org>
81948
81949         * config/config.{sub,guess}: update from config.
81950
81951 2003-11-18  Karl Berry  <karl@gnu.org>
81952
81953         * config/config.{sub,guess}: update from config.
81954
81955         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81956
81957 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81958
81959         * README: Mention that S+T cannot overflow if S is the size of
81960         an existing object and T is sufficiently small.
81961
81962 2003-11-17  Jim Meyering  <jim@meyering.net>
81963
81964         On systems without utime and without a utimes function capable of
81965         dealing with a NULL struct utimbuf* argument, this utime replacement
81966         could -- in unusual circumstances -- leak a file descriptor.
81967         * lib/utime.c: Include <unistd.h> and <errno.h>.
81968         (utime_null): Be sure to close `fd' and to preserve errno.
81969         Reported by Geoff Collyer via Arnold Robbins.
81970
81971 2003-11-17  Bruno Haible  <bruno@clisp.org>
81972
81973         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81974         (Depends-on): Add xsize.
81975
81976 2003-11-17  Bruno Haible  <bruno@clisp.org>
81977
81978         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81979
81980 2003-11-17  Bruno Haible  <bruno@clisp.org>
81981
81982         * lib/vasnprintf.c (alloca): Remove fallback definition.
81983         (freea): Remove definition.
81984         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81985         Reported by Paul Eggert.
81986
81987 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81988             Bruno Haible  <bruno@clisp.org>
81989
81990         Protect against address arithmetic overflow.
81991         * lib/printf-args.h: Include stddef.h.
81992         (arguments): Change type of field 'count' to size_t.
81993         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81994         'unsigned int' where appropriate.
81995         * lib/printf-parse.h: Include sys/types.h.
81996         (char_directive): Change type of *arg_index fields to ssize_t.
81997         (char_directives): Change type of fields 'count', max_*_length to
81998         size_t.
81999         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82000         (SSIZE_MAX): Define fallback value.
82001         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82002         instead of 'int' where appropriate. Check a_allocated, d_allocated
82003         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82004         * lib/vasnprintf.c: Include xsize.h.
82005         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82006         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82007         overflow. Avoid wraparound when converting a width or precision from
82008         decimal to binary.
82009
82010 2003-11-16  Bruno Haible  <bruno@clisp.org>
82011
82012         Update from GNU gettext.
82013         * lib/printf-parse.c: Generalize to it can be compiled for wide
82014         strings.
82015         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82016         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82017         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82018         SNPRINTF): New macros.
82019         Don't include <alloca.h> if the file is used inside libintl.
82020         (local_wcslen): New function, for Solaris 2.5.1.
82021         (VASNPRINTF): Use it instead of wcslen.
82022
82023 2003-11-16  Bruno Haible  <bruno@clisp.org>
82024
82025         * lib/xsize.h (xmax): New function.
82026         (xsum, xsum3, xsum4): Declare as "pure" functions.
82027
82028 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82029
82030         * modules/xalloc (Files): Undo latest change, since xalloc.h
82031         no longer needs SIZE_MAX or PTRDIFF_MAX.
82032
82033 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82034
82035         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82036         gl_PTRDIFF_MAX.
82037
82038 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82039
82040         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82041         "return", to pacify some unknown compiler.  Problem reported
82042         by Joerg Schilling.
82043
82044 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82045
82046         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82047         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82048         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82049         heuristic is just as accurate as far as we know, and it removes a
82050         dependency on size_max.m4 and ptrdiff_max.m4.
82051
82052 2003-11-11  Bruno Haible  <bruno@clisp.org>
82053
82054         * modules/xsize (Files): Add m4/size_max.m4.
82055         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82056
82057 2003-11-11  Bruno Haible  <bruno@clisp.org>
82058
82059         * m4/size_max.m4: New file.
82060         * m4/ptrdiff_max.m4: New file.
82061         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82062         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82063         (gl_XALLOC): Invoke it.
82064
82065 2003-11-11  Bruno Haible  <bruno@clisp.org>
82066
82067         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82068         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82069         defined.
82070
82071 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82072
82073         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82074         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82075         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82076         From Bruno Haible.
82077         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82078         not (size_t) -1, since it's defined here.
82079
82080 2003-11-09  Karl Berry  <karl@gnu.org>
82081
82082         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82083
82084 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82085
82086         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82087         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82088         Reject sizes of exactly SIZE_MAX bytes.
82089         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82090         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82091
82092 2003-11-05  Bruno Haible  <bruno@clisp.org>
82093
82094         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82095         SIZE_MAX defined in <limits.h> on Solaris.
82096
82097 2003-11-04  Jim Meyering  <jim@meyering.net>
82098
82099         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82100         variable names, rather than @VAR@.
82101         * modules/poll: Likewise.
82102
82103 2003-11-04  Bruno Haible  <bruno@clisp.org>
82104
82105         * modules/xsize: New file.
82106         * modules/linebreak: Depend on xsize.
82107         * MODULES.html.sh (func_all_modules): Add xsize.
82108
82109 2003-11-04  Bruno Haible  <bruno@clisp.org>
82110
82111         * m4/xsize.m4: New file.
82112
82113 2003-11-04  Bruno Haible  <bruno@clisp.org>
82114
82115         * lib/xsize.h: New file.
82116         * lib/linebreak.c: Include xsize.h.
82117         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82118         argument for overflow.
82119         Suggested by Paul Eggert.
82120
82121 2003-11-03  Karl Berry  <karl@gnu.org>
82122
82123         * config/config.{guess,sub}: update from config.
82124
82125 2003-11-03  Jim Meyering  <jim@meyering.net>
82126
82127         * modules/userspec (lib_SOURCES): Add userspec.h.
82128         (Include): Add "userspec.h".
82129         Improve description.
82130
82131 2003-11-03  Jim Meyering  <jim@meyering.net>
82132
82133         * lib/userspec.c: Include "userspec.h".
82134         * lib/userspec.h: New file.
82135
82136 2003-11-03  Bruno Haible  <bruno@clisp.org>
82137
82138         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82139
82140 2003-11-03  Bruno Haible  <bruno@clisp.org>
82141
82142         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82143         available, to avoid (extremely rare) race condition.
82144         Suggested by Paul Eggert.
82145
82146 2003-11-02  Karl Berry  <karl@gnu.org>
82147
82148         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82149
82150 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82151
82152         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82153         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82154         (read_filesystem_list): Set and use me_type_malloced.
82155         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82156         whatever the type happens to be), for brevity and consistency.
82157         Check for size calculation overflow on Alphas running OSF/1.
82158
82159 2003-10-31  Jim Meyering  <jim@meyering.net>
82160
82161         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82162
82163         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82164
82165 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82166             Bruno Haible  <bruno@clisp.org>
82167
82168         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82169         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82170
82171 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82172
82173         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82174         netbsd*-gnu*.  Suggested by Robert Millan.
82175
82176 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82177
82178         * modules/group-member: Depend on stdbool.
82179
82180 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82181
82182         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82183
82184 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82185
82186         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82187         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82188         after the 'gnu' in these cases.  This fixes some bugs in the
82189         previous change, and is based on suggestions by Robert Millan.
82190
82191 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82192
82193         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82194         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82195         no longer needed.
82196         * lib/quotearg.c (quotearg_n_options): Use it.
82197         * lib/group-member.c: Include <stdbool.h>.
82198         (free_group_info): Arg is now const *; don't free arg.
82199         (get_group_info): Now returns bool and accepts struct group_info *,
82200         rather than returning a malloc'ed struct group_info *.
82201         All uses changed.  Check for overflow in internal size calculation.
82202
82203         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82204         rather than xmalloc/xrealloc.
82205         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82206         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82207         conformance bug: the old code used a pointer after freeing the
82208         storage that it addressed.
82209         * lib/hash.c (hash_initialize): Simplify the code by using
82210         xalloc_oversized rather than doing it by hand.
82211         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82212         the buffer preserved.  Use free and xmalloc instead.
82213         * lib/quotearg.c (quotearg_n_options): Likewise.
82214         Use a simpler test for size overflow.  Don't use xalloc_oversized
82215         because unsigned int might be wider than size_t (!); this suggests
82216         that we should switch from unsigned int to size_t for slot numbers.
82217
82218 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82219
82220         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82221         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82222         NetBSD kernels.  Requested by Richard Stallman.
82223
82224 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82225
82226         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82227         to allocate the returned structure.  Do not allocate a subarray,
82228         as x2nrealloc will do that.
82229         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82230         instead of xnrealloc.
82231         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82232
82233 2003-10-27  Bruno Haible  <bruno@clisp.org>
82234
82235         * lib/stdbool_.h: Better support for BeOS.
82236
82237 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82238
82239         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82240         now uses inline.
82241
82242 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82243
82244         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82245         callers that want to do their own size-overflow checking.  Include
82246         <stdbool.h>, since xalloc_oversized returns bool.
82247         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82248         to use xalloc_oversized.
82249
82250         Add two functions x2realloc, x2nrealloc, for programs that grow
82251         arrays dynamically by doubling their sizes.
82252         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82253         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82254         New functions.
82255
82256         Port to C99 semantics for 'inline' of external functions.
82257         Bug reported by Bruno Haible.
82258         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82259         with the old contents of xnmalloc.
82260         (xnmalloc, xmalloc): Use it.
82261         (xnrealloc_inline): New static inline function,
82262         with the old contents of xnrealloc.
82263         (xnrealloc, xrealloc): Use it.
82264
82265         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82266         that.
82267
82268 2003-10-26  Karl Berry  <karl@gnu.org>
82269
82270         * config/srclist.txt (COPYING.DOC): no longer available from
82271         /gd/gnuorg; don't know where the ultimate source is.
82272
82273 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82274
82275         Fix several address-calculation bugs in the hash modules,
82276         plus some minor code cleanup.
82277
82278         * lib/hash.h: Include <stdbool.h>, for bool.
82279         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82280         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82281         hash_get_n_entries, hash_get_max_bucket_length,
82282         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82283         hash_rehash): Use size_t rather than unsigned.
82284         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82285         hash_get_n_buckets_used, hash_get_n_entries,
82286         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82287         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82288         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82289         Likewise.
82290         (SIZE_MAX): Define if not defined.
82291         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82292         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82293         hash_print):
82294         Use const * when possible.
82295         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82296         (check_tuning): Fix bug: if tuning parameters were very close to
82297         0 or 1, rounding errors could have caused subscript violations.
82298         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82299         (hash_initialize): Add 'fail:' label
82300         to free table and return NULL, and use it to simplify code.
82301         Use calloc rather than clearing the storage ourself.
82302         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82303         buffer size calculations.
82304         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82305         Include <stddef.h>, for size_t.
82306         * lib/hash-pjw.c (hash_pjw): Likewise.
82307         Switch to method described by Bruno Haible.
82308         Include <limits.h>, for CHAR_BIT.
82309         (SIZE_BITS): New macro.
82310
82311 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82312
82313         * m4/getline.m4 (AM_FUNC_GETLINE):
82314         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82315         hosts.  Problem reported by Derek Robert Price in
82316         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82317         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82318         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82319
82320 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82321
82322         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82323         ceiling the allocation at NMAX bytes rather than silently
82324         discarding input bytes before NMAX is reached.  This makes
82325         a difference only if NMAX exceeds SIZE_MAX / 2.
82326
82327         * lib/obstack.c: Merge from glibc.
82328         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82329         Add libc_hidden_def (_obstack_newchunk).
82330         (_obstack_free) [! defined _LIBC]: Remove.
82331         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82332         a clone of the function body.
82333         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82334         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82335
82336         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82337         glibc.
82338         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82339         arg to memcpy.
82340
82341         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82342         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82343         Don't use lvalue casts, as GCC plans to remove support for them
82344         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82345         was also present in the non-GCC version, indicating that this
82346         code had always been buggy and had never been widely used.
82347         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82348         Use the fast variant of each macro, rather than copying the
82349         definiens of the fast variant; that way, we'll be more likely to
82350         catch future bugs in the fast variants.
82351
82352 2003-10-20  Bruno Haible  <bruno@clisp.org>
82353
82354         * modules/wait-process: New file.
82355         * MODULES.html.sh (func_all_modules): Add wait-process.
82356
82357 2003-10-20  Bruno Haible  <bruno@clisp.org>
82358
82359         * m4/wait-process.m4: New file.
82360
82361 2003-10-20  Bruno Haible  <bruno@clisp.org>
82362
82363         * lib/wait-process.h: New file, from GNU gettext.
82364         * lib/wait-process.c: New file, from GNU gettext.
82365
82366 2003-10-19  Jim Meyering  <jim@meyering.net>
82367
82368         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82369         HPUX 10.20.
82370
82371 2003-10-18  Karl Berry  <karl@gnu.org>
82372
82373         * config/config.guess: update from config.
82374
82375 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82376
82377         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82378         (getgroups): First arg is int, not size_t.
82379         Don't let 'free' mangle errno.
82380
82381 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82382
82383         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82384
82385 2003-10-16  Karl Berry  <karl@gnu.org>
82386
82387         * config/config.{guess,sub}: update from config.
82388
82389 2003-10-16  Jim Meyering  <jim@meyering.net>
82390
82391         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82392         memcpy.
82393
82394 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82395
82396         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82397         (SIZE_MAX): Remove.
82398         (new_exclude, add_exclude_file): Initial size no longer needs to
82399         be a power of 2.
82400         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82401         our own address arithmetic overflow checking.
82402
82403         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82404         (fnmatch): Do not alloca more than 2000 wide characters;
82405         instead, use malloc for large buffers.
82406         Check for address arithmetic overflow, and return -1
82407         with errno set to ENOMEM in that case.
82408         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82409         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82410         instead, return -1.  Check for address arithmetic overflow.
82411
82412 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82413
82414         Handle invalid suffixes and overflow independently, so that
82415         callers can treat them independently as needed.  Fix some bugs in
82416         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82417         suffix for a human-readable blocksize.  The major caller-visible
82418         change is the addition of a new
82419         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82420         that both overflow and suffix chars were found.
82421
82422         * lib/human.c (humblock): Don't check separately for invalid suffix
82423         char; that is xstrtoumax's job (now that its bug is fixed).
82424         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82425         INTMAX_MAX]: New macros.
82426         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82427         TYPE_MAXIMUM): New macros.
82428         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82429         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82430         if overflow occurs, as it's what __strtol does and it's more useful
82431         in practice.
82432         (__xstrtol): If __strtol reports some error other than ERANGE,
82433         reflect it to the caller as LONGINT_INVALID.  If it reports
82434         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82435         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82436         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82437         value.
82438         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82439         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82440         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82441         [defined UINTMAX_MAX]: New macros.
82442
82443 2003-10-14  Bruno Haible  <bruno@clisp.org>
82444
82445         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82446
82447 2003-10-14  Bruno Haible  <bruno@clisp.org>
82448
82449         * m4/sig_atomic_t: New file, from GNU gettext.
82450         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82451
82452 2003-10-14  Bruno Haible  <bruno@clisp.org>
82453
82454         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82455         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82456         Also use volatile where needed.
82457
82458 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82459
82460         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82461         Change maintainer from Bruno Haible to 'all'.
82462
82463 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82464
82465         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82466
82467 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82468
82469         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82470         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82471         and define in terms of the other primitives.
82472         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82473         (SIZE_MAX): Define if not already defined.
82474         (array_size_overflow): New function.
82475         (xalloc_die): Abort instead of exiting if 'error' returns.
82476         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82477         (xmalloc, xrealloc): Use them.
82478         (xcalloc): Check for address arithmetic overflow.
82479         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82480         a bit faster than strcpy.
82481
82482 2003-10-10  Simon Josefsson  <jas@extundo.com>
82483
82484         * modules/argp (Depends-on): Add restrict and strcase.
82485
82486 2003-10-10  Simon Josefsson  <jas@extundo.com>
82487
82488         * m4/argp.m4: Add AC_C_INLINE.
82489
82490 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82491
82492         Merge getpass from libc, plus a few fixes.
82493
82494         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82495         Include <stdbool.h>.
82496         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82497         __fsetlocking to empty.
82498         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82499         do include <bits/libc-lock.h>.
82500         Do not include <fcntl.h>; not needed.
82501         [_LIBC]: Include <wchar.h>.
82502         (NOTCANCEL_MODE): New macro.
82503         (flockfile, funlockfile) [_LIBC]: New macros.
82504         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82505         [!_LIBC]: New macros.
82506         (call_fclose): New function.
82507         (getpass): Use it.  Save tty stream separately; this simplifies the
82508         code and makes it more reliable if stdin happens to equal stdout.
82509         Invoke __fsetlocking on tty.
82510         Handle thread cancellation if needed.
82511         Namespace cleanup (use __tcgetattr, __getline).
82512         Use bool for Booleans.
82513         [USE_IN_LIBIO]: Handle wide streams.
82514         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82515         stream might go where.
82516
82517         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82518         doesn't have to include <stdio.h> before us.
82519         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82520         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82521         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82522         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82523         if not declared, so that we can use getpass.c code from libc without
82524         rewriting it.
82525         (flockfile, ftrylockfile, funlockfile): New macros.
82526
82527 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82528
82529         * modules/getpass: Depend on stdbool.
82530
82531 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82532
82533         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82534
82535 2003-10-07  Karl Berry  <karl@gnu.org>
82536
82537         * config/config.{guess,sub}: update from config.
82538
82539 2003-10-06  Jim Meyering  <jim@meyering.net>
82540             Bruno Haible  <bruno@clisp.org>
82541
82542         This lets translators provide better translations for the
82543         "Written by ..." part of --version output.
82544         * lib/version-etc.h: Include stdarg.h.
82545         (version_etc_copyright): Declare as readonly.
82546         (version_etc): Make this function variadic with a NULL-terminated list
82547         of author name strings.
82548         (version_etc_va): New declaration.
82549         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82550         (version_etc_copyright): Declare as readonly.
82551         (version_etc_va): New function. Provide a different translatable string
82552         for each possible number of authors < 10. Abbreviate when there are 10
82553         authors or more.
82554         (version_etc): Make this function variadic. Call version_etc_va.
82555         Suggestion from Gary V. Vaughan.
82556
82557         * lib/long-options.h (parse_long_options): Change prototype: the
82558         authors string is moved to the end and becomes variadic.
82559         * lib/long-options.c: Include stdarg.h.
82560         (parse_long_options): Make this function variadic, too.
82561         Call version_etc_va, not version_etc.
82562
82563 2003-10-06  Bruno Haible  <bruno@clisp.org>
82564
82565         * modules/version-etc-2: Remove file.
82566         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82567
82568 2003-10-06  Bruno Haible  <bruno@clisp.org>
82569
82570         * modules/fatal-signal: New file.
82571         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82572
82573 2003-10-06  Bruno Haible  <bruno@clisp.org>
82574
82575         * m4/fatal-signal.m4: New file.
82576         * m4/signalblocking.m4: New file, from GNU gettext.
82577
82578 2003-10-06  Bruno Haible  <bruno@clisp.org>
82579
82580         * lib/version-etc-2.h: Remove file.
82581         * lib/version-etc-2.c: Remove file.
82582
82583 2003-10-06  Bruno Haible  <bruno@clisp.org>
82584
82585         * lib/fatal-signal.h: New file, from GNU gettext.
82586         * lib/fatal-signal.c: New file, from GNU gettext.
82587
82588 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82589
82590         * README: Rework advice for preventing empty .o files.
82591         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82592         not <sys/types.h>.
82593
82594 2003-10-04  Karl Berry  <karl@gnu.org>
82595
82596         * lib/argp*: update from libc.
82597
82598 2003-10-04  Karl Berry  <karl@gnu.org>
82599
82600         * config/config.{guess,sub}: update from config.
82601
82602 2003-10-02  Bruno Haible  <bruno@clisp.org>
82603
82604         * modules/lchown (Include): Add lchown.h.
82605         * modules/time_r (Include): Use "..." syntax.
82606         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82607
82608 2003-10-01  Simon Josefsson  <jas@extundo.com>
82609
82610         * MODULES.html.sh (func_all_modules): Move gethostname from section
82611         'based on' to section 'lacking' POSIX:2001.
82612
82613 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82614
82615         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82616         to output mode on the same stream.
82617
82618 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82619
82620         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82621         Fix arg typo in previous patch.
82622
82623 2003-09-28  Jim Meyering  <jim@meyering.net>
82624
82625         * lib/error.c: Correct cpp indentation.
82626
82627 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82628
82629         * modules/free: New file.
82630
82631 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82632
82633         * m4/free.m4: New file.
82634
82635 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82636
82637         * lib/minmax.h (MIN, MAX)
82638         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82639         Omit the special code that used __typeof__, since we worry that
82640         it could be more trouble than it's worth.  See:
82641         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82642         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82643
82644         * lib/free.c: New file.
82645
82646 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82647
82648         Trivial fixes to Makefile.am parts of module listings.
82649         * modules/strstr: Append strstr.h to lib_SOURCES.
82650         * modules/strcase: Likewise, for strcase.h.
82651
82652 2003-09-27  Karl Berry  <karl@gnu.org>
82653
82654         * config/mkinstalldirs: update from automake.
82655
82656 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82657
82658         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82659         (error_tail): Do not loop, reallocating temporary buffer, since
82660         the output cannot contain more wide characters than the input
82661         contains bytes, the size must be big enough already.  This avoids
82662         one potential size overflow calculation.  Check for size overflow
82663         when calculating temporary buffer size.  Free temporary buffer
82664         when done, if it was allocated with malloc; this plugs a memory
82665         leak.  Remove casts from void * to pointers, that are no longer
82666         needed now that we're assuming C89 or better.
82667
82668         Merge error changes from glibc.
82669
82670         * lib/error.c, error.h: Update copyright notice header to match glibc.
82671         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82672         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82673         Disable cancellation while printing error.
82674         * lib/error.h: Prepend __ to parameter names.
82675
82676 2003-09-26  Jim Meyering  <jim@meyering.net>
82677
82678         * lib/error.c (error_tail): Move some declarations
82679         into inner scope where the local variables are used.
82680
82681 2003-09-26  Bruno Haible  <bruno@clisp.org>
82682
82683         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82684         stpncpy().
82685         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82686
82687 2003-09-26  Bruno Haible  <bruno@clisp.org>
82688
82689         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82690         (stpncpy): Define as alias for gnu_stpncpy.
82691         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82692
82693 2003-09-25  Simon Josefsson  <jas@extundo.com>
82694
82695         * lib/xgetdomainname.h: New file.
82696         * lib/xgetdomainname.c: New file.
82697
82698 2003-09-25  Simon Josefsson  <jas@extundo.com>
82699             Bruno Haible  <bruno@clisp.org>
82700
82701         * modules/getdomainname: New file.
82702         * modules/xgetdomainname: New file.
82703         * MODULES.html.sh (func_all_modules): Add getdomainname,
82704         xgetdomainname.
82705
82706 2003-09-25  Simon Josefsson  <jas@extundo.com>
82707             Bruno Haible  <bruno@clisp.org>
82708
82709         * m4/getdomainname.m4: New file.
82710
82711 2003-09-25  Simon Josefsson  <jas@extundo.com>
82712             Bruno Haible  <bruno@clisp.org>
82713
82714         * lib/getdomainname.h: New file.
82715         * lib/getdomainname.c: New file.
82716
82717 2003-09-25  Karl Berry  <karl@gnu.org>
82718
82719         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82720
82721 2003-09-25  Karl Berry  <karl@gnu.org>
82722
82723         * config/install-sh: update from automake.
82724
82725 2003-09-25  Bruno Haible  <bruno@clisp.org>
82726
82727         * modules/version-etc-2: New file, from modules/version-etc with
82728         modifications.
82729         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82730
82731 2003-09-25  Bruno Haible  <bruno@clisp.org>
82732
82733         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82734         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82735
82736 2003-09-24  Simon Josefsson  <jas@extundo.com>
82737
82738         * modules/xgethostname: Add xgethostname.h.
82739
82740 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82741
82742         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82743         the buffer associated with the argument.  Bug reported by
82744         Simon Josefsson.
82745
82746 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82747
82748         * README: Document assumptions that 'int' is at least 32 bits
82749         wide, that integer arithmetic is 2's complement without overflow,
82750         that there are no holes in integer values, that adding sizes of
82751         two nonoverlapping objects can't overflow, and that all-bits-zero
82752         yields scalar zero.  Fix spelling and capitalization typos.
82753
82754 2003-09-19  Karl Berry  <karl@gnu.org>
82755
82756         * lib/argp.h: update from libc.
82757
82758 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82759
82760         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82761         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82762         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82763
82764 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82765
82766         * gnulib-tool: Use "test -h", not "test -L", for portability
82767         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82768         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82769         (sed_extract_prog): Issue s commands one-by-one, rather than
82770         using \| in one s command.
82771
82772 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82773
82774         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82775         input error, instead of returning NULL the next time we are called
82776         (and therefore losing track of errno).
82777
82778 2003-09-16  Bruno Haible  <bruno@clisp.org>
82779
82780         * gnulib-tool (func_create_testdir): Warn about duplicated
82781         dependencies.
82782
82783 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82784
82785         * modules/argmatch, modules/fatal, modules/obstack,
82786         modules/xalloc, modules/xgethostname: Sort dependencies by
82787         importance, not alphabetically.
82788
82789 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82790
82791         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82792         fails, so that the caller gets the proper errno.
82793
82794         * lib/readutmp.c (read_utmp): Likewise.
82795         Check for fstat error.  Close stream and free storage
82796         when failing.
82797
82798 2003-09-14  Karl Berry  <karl@gnu.org>
82799
82800         * config/srclist.txt (strdup.c): disable for c89 changes.
82801
82802 2003-09-14  Jim Meyering  <jim@meyering.net>
82803
82804         * lib/getloadavg.c: Correct cpp indentation.
82805         * lib/strdup.c: Likewise.
82806         * lib/vasnprintf.c: Likewise.
82807
82808 2003-09-14  Bruno Haible  <bruno@clisp.org>
82809
82810         * modules/fwriteerror: New file.
82811         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82812
82813 2003-09-14  Bruno Haible  <bruno@clisp.org>
82814
82815         * lib/fwriteerror.h: New file.
82816         * lib/fwriteerror.c: New file.
82817
82818 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82819
82820         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82821         modules/xgethostname, modules/xalloc: Depend on exit.
82822
82823 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82824
82825         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82826
82827         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82828         and AC_MINIX, too, so that their extensions are available.
82829
82830         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82831         This macro has been superseded by gl_BACKUPFILE.
82832
82833         More patches to assume C89 or better.
82834
82835         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82836
82837         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82838         unconditionally.
82839         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82840         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82841         Include <string.h>, <stdlib.h> unconditionally.
82842         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82843         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82844         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82845         headers or for string.h.
82846         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82847         or strtoul.
82848
82849         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82850         headers.
82851         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82852         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82853         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82854         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82855         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82856         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82857         memcpy, memset.
82858         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82859         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82860         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82861         strtol.
82862         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82863         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82864         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82865         strtoul.
82866
82867 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82868
82869         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82870         * lib/obstack.c [!defined _LIBC]: Likewise.
82871         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82872         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82873         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82874
82875         More changes to assume C89 or better.
82876
82877         * lib/error.c (error_tail): Assume vprintf.
82878
82879         * lib/argmatch.c (getenv): Remove decl.
82880         * lib/progreloc.c (get_full_program_name): Define via prototype.
82881         * lib/setenv.c (clearenv): Likewise.
82882         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82883         needed.
82884         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82885         (malloc, memcpy): Remove decls.
82886         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82887         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82888         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82889         (memcpy): Remove macro.
82890         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82891         (__P): Remove.  All uses removed.
82892         (PTR): Remove.  All uses changed to void *.
82893         (CHAR_BIT, NULL): Remove.
82894         (spaces, zeros, memset_space, memset_zero)
82895         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82896         Remove.
82897         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82898         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82899         Define with prototype.
82900         Remove now-unnecessary prototype decl.
82901         (extra_args_spec): Assume ANSI C.  All uses changed.
82902         (extra_args_spec_iso): Remove.
82903         (my_strftime, emacs_strftimeu): Define via prototype.
82904         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82905         unconditionally.
82906         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82907         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82908         (strtoul, strtol): Remove decls.
82909         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82910         LONG_MAX): Remove.
82911         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82912         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82913         (LOCALE_PARAM_PROTO): New macro.
82914         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82915         (INTERNAL (strtol), strtol): Define with a prototype.
82916         (PARAMS): Remove.  All uses removed.
82917         * lib/tempname.c: Include <string.h> unconditionally.
82918         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82919         * lib/xgethostname.c (main): Define with a prototype.
82920         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82921         Include <stdlib.h> unconditionally.
82922         (calloc, malloc, realloc, free): Remove decls.
82923         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82924         Include <stdlib.h> unconditionally.  Sort include file names.
82925         (strtod): Remove.
82926         (xstrtod): Define with a prototype.
82927         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82928         (strtol, strtoul): Remove decls.
82929
82930 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82931
82932         More patches to assume C89 or better.
82933         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82934         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82935         string.h, memchr, STDC_HEADERS.
82936
82937 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82938
82939         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82940         Include <stdlib.h>, <string.h> unconditionally.
82941         Remove now-unnecessary cast to char *.
82942         * lib/strnlen.c: Include <string.h> unconditionally.
82943         * lib/yesno.c (yesno): Define with a prototype.
82944
82945 2003-09-11  Bruno Haible  <bruno@clisp.org>
82946
82947         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82948
82949 2003-09-10  Jim Meyering  <jim@meyering.net>
82950
82951         * lib/error.c: Correct indentation of cpp directives.
82952
82953 2003-09-10  Bruno Haible  <bruno@clisp.org>
82954
82955         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82956         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82957         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82958         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82959         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82960         <stdlib.h> and <string.h> checks.
82961         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82962         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82963
82964 2003-09-10  Bruno Haible  <bruno@clisp.org>
82965
82966         * lib/strcspn.c: Include <string.h> unconditionally.
82967         * lib/strpbrk.c: Include <string.h> unconditionally.
82968         * lib/strstr.c: Include <string.h> unconditionally.
82969         * lib/unicodeio.c: Include <string.h> unconditionally.
82970         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82971         * lib/unsetenv.c: Likewise.
82972         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82973         * lib/yesno.c: Include <stdlib.h> unconditionally.
82974         (rpmatch): Add prototype.
82975
82976 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82977
82978         More patches to assume C89 or better.
82979         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82980         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82981         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82982         or for string.h.
82983         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82984         stdlib.h.
82985         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82986         C headers.
82987         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82988         string.h.
82989         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82990         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82991         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82992         or for string.h.
82993         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82994         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82995         C headers.
82996         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82997         memcpy.
82998         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82999         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83000         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83001         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83002         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83003         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83004         string.h, free.
83005         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83006         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83007         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83008         C headers, or for string.h.
83009         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83010         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83011         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83012         headers, memory.h, stdlib.h, string.h, strings.h.
83013         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83014         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83015         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83016         strchr.
83017         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83018         headers, memory.h, string.h.
83019         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83020         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83021         free.
83022         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83023         headers.
83024         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83025         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83026         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83027         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83028         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83029
83030 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83031
83032         More K&R removal.
83033
83034         * lib/acosl.c (main): Use a prototype.
83035         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83036         tanl.c: Likewise.
83037
83038         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83039
83040         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83041         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83042         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83043         with a prototype.
83044         * lib/getopt.c (const): Remove macro.
83045         Include <string.h> unconditionally.
83046         (my_index): Remove; all uses changed to strchr.
83047         (strlen): Remove decl.
83048         (exchange): Remove forward decl; no longer needed.
83049         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83050         Define with prototype.
83051         * lib/getopt1.c (const): Remove macro.
83052         (getopt_long, getopt_long_only, main): Define with prototype.
83053
83054         * lib/getugroups.c: Include <string.h> unconditionally.
83055
83056         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83057         (getusershell, setusershell, endusershell, readname, main):
83058         Define with prototypes.
83059
83060         * lib/group-member.c: Include group-member.h first.
83061         Include <stdlib.h> unconditionally.
83062
83063         * lib/hard-locale.c: Include hard-locale.h first.
83064         Include <stdlib.h>, <string.h> unconditionally.
83065
83066         * lib/hash.c (free, malloc): Remove decls.
83067         Include <stdlib.h> unconditionally.
83068
83069         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83070         (getenv): Do not declare.
83071
83072         * lib/idcache.c: Include <string.h> unconditionally.
83073
83074         * lib/long-options.c: Include long-options.h first, to test interface.
83075         Include <stdlib.h> unconditionally.
83076
83077         * lib/makepath.c: Include makepath.h first, to test interface.
83078         Include <stdlib.h> and <string.h> unconditionally.
83079
83080         * lib/linebuffer.c: Include <stdlib.h>.
83081         (free): Remove decl.
83082
83083         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83084         stddef.h. rpl_malloc returns void *, not char *.
83085         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83086         prototype.
83087
83088         * lib/md5.h: Include <limits.h> unconditionally.
83089         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83090         (__P): Remove; all uses removed.
83091         * lib/md5.c: Include "md5.h" first.
83092         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83093         md5_buffer, md5_process_bytes, md5_process_block):
83094         Define with prototypes.
83095         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83096         * lib/sha.c: Include "sha.h" first.
83097         Include <stdlib.h>, <string.h> unconditionally.
83098
83099         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83100         * lib/memcmp.c (__ptr_t): Likewise.
83101         * lib/memrchr.c (__ptr_t): Likewise.
83102         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83103         Include <string.h> unconditionally.
83104         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83105         * lib/memchr.c: Include <stdlib.h> unconditionally.
83106         * lib/memchr.c (LONG_MAX): Remove.
83107         * lib/memrchr.c (LONG_MAX): Likewise.
83108         * lib/memchr.c (__memchr): Define via a prototype.
83109         * lib/memrchr.c (__memrchr): Likewise.
83110         * lib/memcmp.c (__P): Remove, and remove all uses.
83111         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83112         Remove forward decls; no longer needed.
83113         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83114         Use types required by C89 in prototype.
83115
83116         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83117         * lib/savedir.c: Likewise.
83118         * lib/mkdir.c (free): Remove decl.
83119         * lib/rmdir.c (rmdir): Define with a prototype.
83120         * lib/savedir.c: Include savedir.h first, to test interface.
83121
83122         * lib/mktime.c (STDC_HEADERS): Remove.
83123         Include <stdlib.h>, <string.h> unconditionally.
83124
83125         * lib/modechange.c: Include <stdlib.h> unconditionally.
83126         (malloc): Remove decl.
83127
83128         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83129         (free): Remove decl.
83130
83131         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83132         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83133         (This type really should be intptr_t, but that's a C99ism.)
83134         (_obstack_memcpy): Remove: all uses changed to memcpy.
83135         Include <string.h> unconditionally.
83136         (struct obstack): Assume __STDC__ for types of members
83137         chunkfun, freefun, extra_arg.
83138         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83139         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83140         obstack_begin, obstack_specify_allocation,
83141         obstack_specify_allocation_with_arg, obstack_chunkfun,
83142         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83143         Remove unprototyped decls and the macros that use them.
83144         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83145         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83146         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83147         (defined __STDC__ && __STDC__)]:
83148         Remove nonprototyped code.
83149         Include <stdlib.h> unconditionally.
83150         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83151         _obstack_allocated_p, _obstack_free, obstack_free,
83152         _obstack_memory_used, print_and_abort):
83153         Define using prototypes.
83154         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83155         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83156         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83157         obstack_next_free, obstack_object_size, obstack_room) [0]:
83158         Remove unused, unprototyped code.
83159
83160         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83161
83162         * lib/physmem.c (physmem_total, physmem_available, main): Define
83163         with prototypes.
83164
83165         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83166         (main): Define with a prototype.
83167
83168         * lib/posixver.c (getenv): Remove decl.
83169
83170         * lib/putenv.c (malloc): Returns void *, not char *.
83171         Include <string.h> unconditionally.
83172         (strchr, memcpy, NULL): Do not define.
83173
83174         * lib/readtokens.c: Include readtokens.h first, to test interface.
83175         Include <stdlib.h>, <string.h> unconditionally.
83176         (init_tokenbuffer): Define with a prototype.
83177
83178         * lib/regex.c (PARAMS): Remove.  All uses removed.
83179         All uses of _RE_ARGS removed, too.
83180         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83181         unconditionally.
83182         (bzero): Assume memset exists.
83183         (memcmp, memcpy, NULL): Remove.
83184         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83185         char, or assignments to local vars of type signed char.
83186         (init_syntax_once, PREFIX(extract_number_and_incr),
83187         PREFIX(print_partial_compiled_pattern),
83188         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83189         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83190         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83191         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83192         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83193         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83194         wcs_compile_range, byte_compile_range, truncate_wchar,
83195         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83196         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83197         count_mbs_length, wcs_re_match_2_internal,
83198         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83199         PREFIX(alt_match_null_string_p),
83200         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83201         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83202         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83203         now-unnecessary declaration, if any.
83204         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83205         regcomp, regexec):
83206         Remove now-unnecessary casts among pointer types.
83207         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83208
83209         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83210         (free): Remove decl.
83211
83212         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83213
83214         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83215         (free): Remove decl.
83216
83217         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83218         * lib/xgetcwd.c: Likewise.
83219
83220         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83221         (free): Remove decl.
83222
83223         * lib/strchrnul.c (strchrnul): Define with a prototype.
83224         Fix bug: c_in was not converted to char before searching.
83225
83226         The following changes are not K&R related:
83227
83228         * lib/group-member.h: Include <sys/types.h>, so that this file is
83229         self-contained.
83230         * lib/makepath.h: Likewise.
83231
83232         * lib/getusershell.c (readname, default_index, line_size, readname):
83233         Use size_t, not int, for sizes.
83234         (readname): If the size overflows, report an error instead of
83235         looping forever.
83236
83237 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83238
83239         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83240         libc.
83241
83242 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83243
83244         * README: New section: portability guidelines.
83245
83246 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83247
83248         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83249         C89 spec.
83250
83251 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83252
83253         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83254
83255 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83256
83257         Assume C89 or better; remove K&R cruft.
83258         A few of these changes were first proposed by Derek Robert Price
83259         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83260
83261         * lib/addext.c: Include <string.h> unconditionally.
83262         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83263         Don't declare getenv or malloc.
83264
83265         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83266         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83267         (NULL): Remove.
83268         (find_stack_direction, alloca): Use prototypes.
83269
83270         * lib/atexit.c (atexit): Define using a prototype.
83271
83272         * lib/basename.c, dirname.c, stripslash.c:
83273         Include <string.h> unconditionally.
83274
83275         * lib/bcopy.c: Include <stddef.h>.
83276         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83277
83278         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83279
83280         * lib/error.h (error, error_at_line, error_print_progname)
83281         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83282         * lib/error.c: Include error.h first, to check interface.
83283         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83284         (VA_START): Remove; all uses changeed to va_start.
83285         (exit, strerror): Remove decls.
83286         (error_print_progname): Prototype uncondionally.
83287         Don't include <errno.h>; no longer needed.
83288         (private_strerror): Remove.
83289         (error_tail): Always define.
83290         (error, error_at_line): Assume C89 or better; always use prototypes.
83291         * lib/fatal.c: Include "fatal.h" first, to test interface.
83292         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83293         (VA_START): Remove; all uses changed to va_start.
83294         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83295         this case.
83296         (exit): Remove decl.
83297         (fatal): Prototype unconditionally.  Assume va_start works.
83298         Abort at end, to pacify gcc.
83299
83300         * lib/euidaccess.c (main): Define with a prototype.
83301
83302         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83303
83304         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83305
83306         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83307         prototypes.
83308         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83309         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83310         (getenv): Remove decl.
83311         (fnmatch): Define using a prototype.
83312         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83313         (FCT): Define using a prototype.
83314
83315         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83316
83317         * lib/gethostname.c: Include <stddef.h>.
83318         (gethostname): Define with prototype.  Length is size_t, not int.
83319
83320 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83321
83322         Assume C89 or better; remove K&R cruft.
83323         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83324         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83325         string.h, getenv, malloc.
83326         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83327         headers.
83328         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83329         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83330         do not check for strerror.
83331         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83332         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83333         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83334         do not check for doprnt or vprintf.
83335         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83336         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83337
83338 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83339
83340         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83341         getversion.c should have been removed then, but was accidentally
83342         preserved.
83343
83344         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83345         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83346
83347 2003-09-08  Karl Berry  <karl@gnu.org>
83348
83349         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83350                 config, forget about prep.
83351
83352         * config/depcomp, missing: update from automake.
83353
83354 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83355
83356         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83357         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83358
83359 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83360
83361         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83362         copy_tm_result.  Bug reported by Simon Josefsson in
83363         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83364
83365 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83366
83367         * m4/time_r.m4: New file.
83368         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83369         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83370         is. Check for timegm declaration.
83371         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83372         Do not check for gmtime_r.
83373         Replace mktime if __mktime_internal does not exist and if mktime
83374         hasn't been replaced already.
83375
83376 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83377
83378         * lib/time_r.c, lib/time_r.h: New files.
83379
83380         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83381         __localtime_r.
83382         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83383         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83384
83385         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83386         __gmtime_r.
83387         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83388         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83389         Include <time_r.h>.
83390
83391         * lib/timegm.c: Switch to glibc implementation, with the following
83392         changes:
83393         [defined HAVE_CONFIG_H]: Include <config.h>.
83394         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83395         (__mktime_internal) [!defined _LIBC]: New decl.
83396         (__gmtime_r) [!defined _LIBC]: New macro and function.
83397         (timegm): Use a prototype, since gnulib assumes C89.
83398         Do not bother declaring tmp to be const, as it's not really usefu.
83399         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83400         (timegm): Declare only if HAVE_DECL_TIMEGM.
83401
83402 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83403
83404         * MODULES.html.sh (func_all_modules): Add time_r.
83405         * modules/time_r: New file.
83406         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83407         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83408
83409 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83410
83411         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83412         Bug reported by Lute Kamstra in
83413         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83414
83415         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83416         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83417         course with correspondingly smaller numbers for tomorrow and
83418         yesterday.  From Tadayoshi Funaba.  Originally installed into
83419         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83420         coreutils merge?).
83421
83422 2003-08-31  Simon Josefsson  <jas@extundo.com>
83423
83424         * modules/timegm: New file.
83425         * MODULES.html.sh (func_all_modules): Add timegm.
83426
83427 2003-08-31  Simon Josefsson  <jas@extundo.com>
83428
83429         * m4/timegm.m4: New file.
83430
83431 2003-08-31  Simon Josefsson  <jas@extundo.com>
83432
83433         * lib/timegm.h: New file.
83434         * lib/timegm.c: New file.  Based on
83435         wget-1.8.2/src/http.c:mktime_from_utc.
83436
83437 2003-08-31  Karl Berry  <karl@gnu.org>
83438
83439         * lib/argp.h: update from libc.
83440
83441 2003-08-28  Bruno Haible  <bruno@clisp.org>
83442
83443         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83444         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83445         followed by '#define fnmatch fnmatch_posix' gives an error.
83446
83447 2003-08-28  Bruno Haible  <bruno@clisp.org>
83448
83449         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83450         warning on QNX, which defines O_BINARY to 000000.
83451
83452 2003-08-27  Jim Meyering  <jim@meyering.net>
83453
83454         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83455         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83456         would fail after 32.  Reported by Danny Levinson.  Details here:
83457         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83458
83459 2003-08-24  Bruno Haible  <bruno@clisp.org>
83460
83461         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83462         MSVC7 <stdio.h> is included later.
83463
83464 2003-08-22  Simon Josefsson  <jas@extundo.com>
83465
83466         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83467
83468 2003-08-20  Karl Berry  <karl@gnu.org>
83469
83470         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83471
83472 2003-08-20  Bruno Haible  <bruno@clisp.org>
83473
83474         * modules/progname: New file.
83475         * MODULES.html.sh (func_all_modules): Add progname.
83476
83477 2003-08-20  Bruno Haible  <bruno@clisp.org>
83478
83479         * lib/progname.h: New file, from GNU gettext.
83480         * lib/progname.c: New file, from GNU gettext.
83481         * lib/progreloc.c: New file, from GNU gettext.
83482
83483 2003-08-19  Jim Meyering  <jim@meyering.net>
83484
83485         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83486         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83487
83488 2003-08-19  Bruno Haible  <bruno@clisp.org>
83489
83490         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83491         more.
83492
83493 2003-08-19  Bruno Haible  <bruno@clisp.org>
83494
83495         * lib/xstrdup.c: Assume <string.h> exists.
83496
83497 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83498
83499         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83500         in makefile rules.
83501
83502 2003-08-18  Jim Meyering  <jim@meyering.net>
83503
83504         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83505         * m4/lib-ld.m4: Likewise.
83506
83507 2003-08-18  Jim Meyering  <jim@meyering.net>
83508
83509         * lib/setenv.h: Indent nested cpp directive.
83510         * lib/vasnprintf.c: Remove trailing blanks.
83511
83512 2003-08-17  Simon Josefsson  <jas@extundo.com>
83513
83514         * modules/xstrndup: New file.
83515         * MODULES.html.sh (func_all_modules): Add xstrndup.
83516
83517 2003-08-17  Simon Josefsson  <jas@extundo.com>
83518
83519         * modules/argp: Fix autoconf macro name. Add more dependencies.
83520
83521 2003-08-17  Simon Josefsson  <jas@extundo.com>
83522
83523         * m4/xstrndup.m4: New file.
83524
83525 2003-08-17  Simon Josefsson  <jas@extundo.com>
83526
83527         * m4/argp.m4: New file.
83528
83529 2003-08-17  Simon Josefsson  <jas@extundo.com>
83530             Bruno Haible  <bruno@clisp.org>
83531
83532         * lib/xstrndup.h: New file.
83533         * lib/xstrndup.c: New file.
83534
83535 2003-08-17  Bruno Haible  <bruno@clisp.org>
83536
83537         * modules/strndup (Files, Include): Add lib/strndup.h.
83538
83539 2003-08-17  Bruno Haible  <bruno@clisp.org>
83540
83541         * modules/euidaccess (Files): Add lib/euidaccess.h.
83542
83543 2003-08-17  Bruno Haible  <bruno@clisp.org>
83544
83545         * lib/strndup.h: New file.
83546
83547 2003-08-17  Bruno Haible  <bruno@clisp.org>
83548
83549         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83550         like AC_GNU_SOURCE.
83551         * modules/extensions (configure.ac): Comment out the invocation of
83552         gl_USE_SYSTEM_EXTENSIONS.
83553
83554 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83555
83556         Merges from coreutils, etc.
83557         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83558         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83559         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83560         fixing a typo.
83561         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83562         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83563
83564 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83565
83566         Document merge from coreutils.
83567         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83568         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83569         * modules/utime: Add m4/utimes-null.m4.
83570
83571 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83572
83573         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83574         space, undoing this 2003-08-12 change:
83575         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83576
83577 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83578
83579         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83580         strtoul.c from libc, undoing this 2003-08-12 change:
83581         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83582
83583 2003-08-16  Jim Meyering  <jim@meyering.net>
83584
83585         Merges from coreutils.
83586         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83587         prefix.  Adjust cache variables similarly.  Create 500 rather than
83588         just 300 files, to exercise bug on Darwin6.5, too.
83589         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83590         $missing_dir.
83591         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83592         AM_SYS_POSIX_TERMIOS.
83593         Reported by mkc@mathdogs.com.
83594         Also change use of $am_cv_sys_posix_termios
83595         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83596         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83597         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83598         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83599         in /proc/mounts until it finds one with matching device number.  This
83600         is unnecessary when the FILE argument *is* a mount point.  No stat call
83601         is necessary in that case.  So, disable the statvfs-testing code on
83602         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83603         as RedHat bug# 84846.
83604         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83605         to 1MB, so as not to render systems with no stack size limit (e.g.,
83606         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83607         Include <unistd.h>.  On some systems,
83608         it is required for the definition of _SC_PAGESIZE.
83609
83610 2003-08-16  Jim Meyering  <jim@meyering.net>
83611
83612         Merge from coreutils.
83613         * lib/xstrtoimax.c: #else #if -> #elif.
83614         * lib/xstrtoumax.c: Likewise.
83615
83616 2003-08-16  Jim Meyering  <jim@meyering.net>
83617
83618         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83619         * m4/utimes.m4: Removed.
83620         * m4/utimes-null.m4: Renamed from utimes.m4.
83621
83622         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83623         to 1MB, so as not to render systems with no stack size limit (e.g.,
83624         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83625         Include <unistd.h>.  On some systems,
83626         it is required for the definition of _SC_PAGESIZE.
83627
83628 2003-08-16  Jim Meyering  <jim@meyering.net>
83629         and Paul Eggert  <eggert@cs.ucla.edu>
83630
83631         Merges from coreutils, etc.
83632
83633         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83634         using the latest version from cvs.  This avoids problems with #line
83635         directives using a vendor (Sun) compiler.
83636         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83637         Don't set GETGROUPS_LIB here; now it's
83638         done via getgroups.m4's wrapper function.
83639         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83640         rather than just in sh-util/configure.in, so that the
83641         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83642         same.
83643         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83644         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83645         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83646         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83647         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83648         Remove code that is now done by the newly-required macros.
83649         Append $(EXEEXT) to DF_PROG.
83650         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83651         Do not invoke or require the following here,
83652         since prereq.m4 or some gnulib .m4 now does this for us:
83653         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83654         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83655         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83656         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83657         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83658         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83659         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83660         AC_FUNC_OBSTACK.
83661         Do not replace the following functions, as this is now the job
83662         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83663         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83664         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83665         atexit getpass, strdup, getpagesize.
83666         Replace 'raise'.
83667         Do not check for the following functions, as this is now the job
83668         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83669         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83670         setregid.
83671         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83672         Check for sys/sysctl.h.
83673         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83674         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83675         of checking for ssize_t ourselves.
83676
83677         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83678         Require every macro that gnulib/modules/* suggests for us.
83679         (jm_PREREQ_ADDEXT): New macro.
83680         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83681         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83682
83683         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83684         (gl_PHYSMEM): Use it.
83685         Also check for `table' function.
83686         Check for new headers and functions.
83687         Add check for sys/sysmp.h.
83688         With suggestions from Kaveh Ghazi.
83689         Ignore headers that are present but cannot be compiled.  This
83690         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83691         C 5.4.
83692
83693 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83694
83695         Document merge from coreutils.
83696         * modules/userspec: Depend on posixver.
83697         * modules/strftime: Depend on tzset.
83698
83699 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83700
83701         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83702         rather than tab, after '#' in shell-script copyright notices.
83703         Suggested by Bruno Haible.
83704
83705 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83706
83707         * config/srclist-update: Use three spaces, rather than tab, after '#'
83708         in shell-script copyright notices.  Suggested by Bruno Haible.
83709         Remove unnecessary parenthesization in regular expression.
83710
83711 2003-08-15  Jim Meyering  <jim@meyering.net>
83712
83713         Merge from coreutils.
83714         * lib/xgethostname.c: Include <stdlib.h>.
83715         (xghostname): Don't exit for anything other than memory-related
83716         failure; just return NULL.
83717         * lib/userspec.c: Include "posixver.h".
83718         (parse_user_spec): Accept `.' as a separator only
83719         in pre-POSIX-200112 mode.
83720         * lib/strtoimax.c: Use #elif rather than #else #if.
83721         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83722         Remove function, now that we can rely on a working tzset function.
83723         [!_LIBC]: Ensure that the required autoconf test has been run.
83724         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83725         Use underlying_strftime for %r.
83726         * lib/sha.c: Merge in some clean-up and optimization changes from
83727         glibc.
83728         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83729         Ensure that it is a multiple of 64.
83730         Rearrange loop exit tests so as to avoid performing an
83731         additional fread after encountering an error or EOF.
83732         * lib/realloc.c: Update copyright date.
83733
83734 2003-08-15  Jim Meyering  <jim@meyering.net>
83735         and Paul Eggert  <eggert@twinsun.com>
83736
83737         Merge from coreutils.
83738         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83739         member but strut utmpx does not.  Needed for AIX 4.3.3.
83740         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83741
83742 2003-08-15  Jim Meyering  <jim@meyering.net>
83743         and Paul Eggert  <eggert@cs.ucla.edu>
83744
83745         Merges from coreutils, etc.
83746         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83747         Require gl_FUNC_TZSET_CLOBBER.
83748         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83749         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83750         members.
83751
83752 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83753
83754         Help the merge from coreutils.
83755         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83756         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83757         * m4/tzset.m4: Use it too.
83758
83759 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83760
83761         * modules/tzset: New file.
83762
83763 2003-08-14  Jim Meyering  <jim@meyering.net>
83764
83765         Merges from coreutils.
83766         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83767         variable names, rather than @FNMATCH_H@.
83768         * modules/alloca: Likewise for $(ALLOCA_H).
83769
83770         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83771         the three copies of the literal target, `fnmatch.h'.
83772         * modules/alloca (alloca.h): Likewise.
83773
83774 2003-08-14  Jim Meyering  <jim@meyering.net>
83775
83776         Merge from coreutils.
83777         * m4/tzset.m4: New file.
83778         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83779         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83780         otherwise, AIX 5.1 systems would end up using the latter.
83781         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83782         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83783         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83784         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83785
83786 2003-08-14  Jim Meyering  <jim@meyering.net>
83787
83788         Merge from coreutils.
83789         * lib/obstack.h: Whitespace changes.
83790         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83791         and xcalloc return values.
83792         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83793         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83794         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83795         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83796         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83797         error from mntctl.
83798         Use mntctl's return value to drive the entry-processing loop, since
83799         we can't rely on the value of the vmt_length member in the last
83800         entry.  On some systems doing so could result in exhausting
83801         virtual memory.  Based in part on a patch from Mike Jetzer.
83802
83803 2003-08-14  Jim Meyering  <jim@meyering.net>
83804         and Paul Eggert  <eggert@twinsun.com>
83805
83806         Merges from coreutils, plus other fixes.
83807         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83808         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83809         for credits and details.  Thanks to Kaveh Ghazi for helping
83810         to keep these files in sync.
83811         (ARRAY_SIZE): Define it.
83812         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83813         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83814         (memcasecmp): Don't assume size_t fits in unsigned int.
83815         Remove casts and duplicate code.
83816         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83817         (memcpy): Remove definition.
83818         Merge in some clean-up and optimization changes from glibc.
83819         [BLOCKSIZE]: Move definition to top of file.
83820         Ensure that it is a multiple of 64.
83821         Rearrange loop exit tests so as to avoid performing an
83822         additional fread after encountering an error or EOF.
83823         * lib/md5.h (md5_uintptr): Define.
83824         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83825         return to the initial working directory.  Preserve errno
83826         for caller.
83827         * lib/idcache.c: Include "xalloc.h".
83828         (xmalloc, xrealloc): Remove decls.
83829         (getuser): Remove casts no longer required in C89.
83830         * lib/human.c: Include stdio.h, for sprintf.
83831         * lib/group-member.c: Include "xalloc.h".
83832         (xmalloc, xrealloc): Remove decls.
83833         (get_group_info): Remove casts no longer required in C89.
83834         * lib/getusershell.c (readname): Remove casts no longer required in
83835         C89.
83836         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83837         * lib/getline.c: Whitespace fix, from coreutils.
83838
83839 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83840
83841         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83842         Check for isascii.
83843
83844         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83845         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83846         Undo previous (whitespace-only) change.
83847
83848 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83849
83850         * lib/exclude.c: Include <ctype.h>
83851         (IN_CTYPE_DOMAIN): New macro.
83852         (is_space): New fn.
83853         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83854         and empty lines.
83855
83856         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83857         Undo previous (whitespace-only) change.
83858
83859 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83860
83861         * config/srclist-update: Change update back to the old behavior,
83862         leaving whitespace alone.  Use one 'sed' command rather than a
83863         pipeline.
83864         (fixlicense): Now a variable, not a function.
83865         (remove_trailing_blanks): Remove.
83866         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83867         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83868         Undo previous (whitespace-only) change.
83869
83870 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83871
83872         Merge from coreutils.
83873         * modules/euidaccess: Add lib_SOURCES, include for new
83874         file euidaccess.h
83875
83876 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83877
83878         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83879         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83880         Normalize leading white space and remove trailing white space.
83881
83882         Merge from coreutils
83883         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83884
83885         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83886         0.12.1.  These files are now being upgraded automatically by
83887         ../config/srclist-update.
83888
83889 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83890
83891         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83892         Normalize leading white space and remove trailing white space.
83893         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83894         notice, as per ../config/srclist-update.
83895
83896         Merge from coreutils.
83897         * lib/euidaccess.h: New file.
83898         * lib/euidaccess.c: Include it.
83899         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83900         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83901         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83902
83903 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83904
83905         * config/srclist-update: Add copyright notice.
83906         (remove_id_lines, remove_trailing_blanks): New constants.
83907         (fixfile): Use them to normalize spacing a bit in copied files.
83908         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83909         Normalize leading white space and remove trailing white space.
83910
83911         * config/texinfo.tex: Sync with texinfo.
83912
83913         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83914         strtoul.c from libc, to merge coreutils whitespace changes.
83915
83916         * config/srclist.txt: Get the following m4 files from gettext:
83917         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83918         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83919         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83920         wint_t.m4.
83921
83922 2003-08-12  Karl Berry  <karl@gnu.org>
83923
83924         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83925         been made.
83926
83927 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83928
83929         * modules/gnu-source, m4/gnu-source.m4:
83930         Remove; we're assuming Autoconf 2.54 or later now.
83931         Suggested by Bruno Haible.
83932         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83933
83934 2003-08-11  Bruno Haible  <bruno@clisp.org>
83935
83936         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83937
83938 2003-08-11  Bruno Haible  <bruno@clisp.org>
83939
83940         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83941         (vasnprintf): Use it instead of wcslen.
83942
83943 2003-08-11  Bruno Haible  <bruno@clisp.org>
83944
83945         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83946         value to ensure that _Bool promotes to int. Use #define for _Bool when
83947         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83948
83949 2003-08-10  Karl Berry  <karl@gnu.org>
83950
83951         * lib/regex.h: update from libc (whitespace fix).
83952
83953 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83954
83955         Merge some files from coreutils.  These changes were
83956         originally made by Jim Meyering.
83957         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83958         many older Unixes require this.
83959         * lib/alloca.c (alloca): Remove cast to argument of free;
83960         no longer needed in C89.
83961         * lib/alloca_.h, regex.h: Fix white space to match
83962         what GNU indent does.
83963
83964 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83965
83966         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83967         apparently Emacs's Unicode mode got confused before my 2003-08-05
83968         checkin.
83969
83970 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83971
83972         * m4/extensions.m4: New file.
83973         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83974         Require gl_USE_SYSTEM_EXTENSIONS.
83975         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83976         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83977
83978 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83979
83980         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83981         * modules/extensions, modules/gnu-source: New files.
83982         * modules/timespec, modules/unlocked-io: Depend on extensions.
83983
83984 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83985
83986         * modules/restrict: New file.
83987         * MODULES.html.sh (func_all_modules): Add restrict.
83988         * modules/regex: Depend on restrict.
83989
83990 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83991
83992         * m4/restrict.m4: New file.
83993         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83994
83995 2003-08-07  Bruno Haible  <bruno@clisp.org>
83996
83997         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83998         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83999
84000 2003-08-07  Bruno Haible  <bruno@clisp.org>
84001
84002         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84003         makes the module 'getndelim2' compatible with the module 'getline'.
84004
84005 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84006
84007         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84008         byte with "\201" to avoid glitches when editing that source file
84009         with multi-gnome-terminal.
84010
84011 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84012
84013         * lib/bumpalloc.h: Remove.
84014
84015 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84016
84017         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84018         * modules/bumpalloc: Remove.
84019
84020 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84021
84022         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84023         GNU coding style.
84024
84025         Merge from coreutils.
84026         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84027         1. From glibc.
84028         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84029         from Karl Berry, implemented by Jim Meyering.
84030         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84031         from Dmitry V. Levin.
84032         Remove anachronistic cast of xrealloc.
84033         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84034         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84035         type. Otherwise, it wouldn't compile with at least /bin/cc on
84036         ymp-cray-unicos9.0.2.X.
84037         Combine two mostly-identical uses of alloca into one.
84038         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84039
84040 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84041
84042         [From Emacs.]
84043
84044         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84045         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84046         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84047         obsolete NLIST_NAME_UNION.
84048         [__GNU__]: Undef BSD and FSCALE.
84049         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84050
84051 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84052
84053         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84054         an enum type, so that it's guaranteed to promote to int.  See:
84055         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84056
84057 2003-08-03  Karl Berry  <karl@gnu.org>
84058
84059         * config/depcomp: update from automake.
84060
84061 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84062
84063         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84064         (strerror): Don't assume that a printable int fits in 14 bytes.
84065
84066 2003-07-31  Bruno Haible  <bruno@clisp.org>
84067
84068         * modules/getpass-gnu: New file.
84069         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84070
84071 2003-07-31  Bruno Haible  <bruno@clisp.org>
84072
84073         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84074
84075 2003-07-24  Karl Berry  <karl@gnu.org>
84076
84077         * config/missing: update from automake.
84078
84079 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84080             Bruno Haible  <bruno@clisp.org>
84081
84082         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84083         * lib/getline.c (getline, getdelim): Likewise.
84084         Remove _GNU_SOURCE define; now it's defined in config.h through
84085         m4/getline.m4.
84086
84087 2003-07-23  Karl Berry  <karl@gnu.org>
84088
84089         * config/config.sub: update from prep.
84090
84091 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84092
84093         * modules/xalloc (Depends-on): Add exitfail.
84094         * modules/xmemcoll: Likewise.
84095
84096 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84097
84098         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84099         over-parenthesization in macros.
84100
84101         Sync with coreutils.
84102
84103         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84104         required by C99.
84105
84106         Use `exit_failure' for xalloc and xmemcoll instead of their own
84107         private exit-failure variables.
84108         * lib/xalloc.h (xalloc_exit_failure): Remove.
84109         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84110         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84111         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84112         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84113         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84114
84115 2003-07-20  Jim Meyering  <jim@meyering.net>
84116
84117         * modules/closeout (Depends-on): Add exitfail.
84118         Suggestion from Bruno Haible.
84119
84120 2003-07-19  Karl Berry  <karl@gnu.org>
84121
84122         * config/config.sub: update from prep.
84123
84124 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84125
84126         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84127         Remove.
84128         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84129         to test that it can stand by itself.  Include "exitfail.h".
84130         Clients should set exit_failure instead.
84131         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84132
84133 2003-07-18  Bruno Haible  <bruno@clisp.org>
84134
84135         * modules/getndelim2: New file.
84136         * modules/getline: Share files with module getndelim2.
84137         * modules/getnline: Depend on getndelim2 instead of sharing files with
84138         it. Add getnline.c to lib_SOURCES.
84139         * MODULES.html.sh (func_all_modules): Add getndelim2.
84140
84141 2003-07-18  Bruno Haible  <bruno@clisp.org>
84142
84143         * m4/getndelim2.m4: New file.
84144         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84145         invoke gl_PREREQ_GETNDELIM2.
84146         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84147         gl_PREREQ_GETNDELIM2.
84148         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84149         gl_GETNDELIM2.
84150
84151 2003-07-18  Bruno Haible  <bruno@clisp.org>
84152
84153         * lib/getndelim2.h: New file.
84154         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84155         getndelim2.h.
84156         (getndelim2): Make non-static. Change return type to ssize_t.
84157         * lib/getline.h: Change argument names.
84158         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84159         * lib/getnline.c: Include getndelim2.h.
84160
84161 2003-07-18  Andreas Schwab  <schwab@suse.de>
84162
84163         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84164
84165 2003-07-17  Karl Berry  <karl@gnu.org>
84166
84167         * config/config.sub: update from prep.
84168
84169 2003-07-17  Bruno Haible  <bruno@clisp.org>
84170
84171         * modules/getnline: New file.
84172         * modules/getline: Add lib/getndelim2.c to source file list.
84173         * MODULES.html.sh (func_all_modules): Add getnline.
84174
84175 2003-07-17  Bruno Haible  <bruno@clisp.org>
84176
84177         * m4/getnline.m4: New file.
84178
84179 2003-07-17  Bruno Haible  <bruno@clisp.org>
84180
84181         * m4/Makefile.am.in: Remove file.
84182         * m4/Makefile.am: Remove file.
84183         * m4/Makefile.in: Remove file.
84184
84185 2003-07-17  Bruno Haible  <bruno@clisp.org>
84186
84187         * lib/getnline.h: New file.
84188         * lib/getnline.c: New file.
84189         * lib/getndelim2.c: New file, extracted from getline.c.
84190         (getndelim2): Renamed from getdelim2, with added nmax argument.
84191         * lib/getline.c: Include getndelim2.c.
84192         (getdelim2): Moved out to getndelim2.c.
84193         (getline, getdelim): Update.
84194
84195 2003-07-17  Bruno Haible  <bruno@clisp.org>
84196
84197         * lib/Makefile.am: Remove file.
84198         * lib/Makefile.in: Remove file.
84199
84200 2003-07-17  Bruno Haible  <bruno@clisp.org>
84201
84202         * configure.in: Remove file.
84203         * Makefile.in: Remove file.
84204
84205 2003-07-17  Bruno Haible  <bruno@clisp.org>
84206
84207         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84208
84209 2003-07-16  Karl Berry  <karl@gnu.org>
84210
84211         * config/srclist-update: was running fixlicense twice, which caused
84212                 texinfo.tex to be nullified for some reason.  Simplify,
84213                 $gplsrc is no longer needed as far as I can see?
84214
84215 2003-07-16  Jim Meyering  <jim@meyering.net>
84216
84217         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84218
84219 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84220
84221         * config/srclist.txt: Get the following files from gettext-runtime/intl
84222         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84223         ref-del.sin.  From Bruno Haible.
84224         * config/srclist-update (fixfile): Change grep pattern again, since the
84225         previous fix didn't work (there was another trailing $).  Use
84226         '[$]' to escape the $s.
84227
84228 2003-07-15  Karl Berry  <karl@gnu.org>
84229
84230         * lib/vasnprintf.c: update from gettext.
84231
84232 2003-07-15  Karl Berry  <karl@gnu.org>
84233
84234         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84235         gets expanded when surrounded by '$'.
84236
84237 2003-07-15  Jim Meyering  <jim@meyering.net>
84238
84239         * modules/save-cwd: Don't depend on error.  From Derek Price.
84240
84241 2003-07-15  Jim Meyering  <jim@meyering.net>
84242
84243         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84244
84245 2003-07-14  Simon Josefsson  <jas@extundo.com>
84246
84247         * modules/mempcpy: New file.
84248         * MODULES.html.sh (func_all_modules): Add mempcpy.
84249
84250 2003-07-14  Simon Josefsson  <jas@extundo.com>
84251
84252         * m4/mempcpy.m4: New file.
84253
84254 2003-07-14  Simon Josefsson  <jas@extundo.com>
84255
84256         * lib/mempcpy.h: New file.
84257         * lib/mempcpy.c: New file.
84258
84259 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84260
84261         * modules/getdate, modules/posixtm: Depend on mktime.
84262
84263 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84264
84265         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84266         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84267         unicodeio.c, unicodeio.h, unlocked-io.h:
84268         Switch from LGPL to GPL.
84269
84270 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84271
84272         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84273         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84274         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84275         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84276         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84277         updated automatically by ../config/srclist-update.  This changes
84278         their license from LPGL to GPL.
84279
84280 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84281
84282         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84283         assumed to refer to the root of the most recent stable gettext version.
84284         * config/srclistvars.sh: Add defaults for eggert.
84285         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84286         Match "This program" as well as "The program".  This is needed
84287         for gettext.
84288
84289 2003-07-14  Jim Meyering  <jim@meyering.net>
84290
84291         Don't emit diagnostics.  Let callers do that.
84292         * lib/save-cwd.c: Don't include "error.h".
84293         (save_cwd): Don't call error.  Ensure that errno is valid
84294         when returning nonzero.
84295
84296         * lib/save-cwd.h (restore_cwd): Update prototype.
84297         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84298         Simplify.  Don't call error upon failure.  Let callers do that.
84299         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84300         when auditing is enabled.  But don't bother updating the #if.
84301
84302 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84303
84304         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84305         it breaks C++ compilation.
84306         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84307
84308 2003-07-10  Simon Josefsson  <jas@extundo.com>
84309
84310         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84311
84312 2003-07-10  Jim Meyering  <jim@meyering.net>
84313
84314         * m4/clock_time.m4: Remove trailing blank.
84315         * m4/intmax_t.m4: Likewise.
84316
84317 2003-07-10  Jim Meyering  <jim@meyering.net>
84318
84319         * lib/vasnprintf.c: Remove trailing blanks.
84320         Make cpp indentation consistent.
84321
84322 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84323
84324         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84325         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84326         Switch from LGPL to GPL.
84327
84328 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84329
84330         * config/srclist.txt: Sort sublists.  Add
84331         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84332         that differ from gnulib for one reason or another; we'd like this list
84333         to be smaller but for now let's document what we have.
84334
84335 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84336
84337         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84338         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84339         and sweeter "eval x=$x".
84340         * config/srclist.txt: Get lib/argp* from glibc.
84341
84342 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84343
84344         * lib/mktime.c: Fix some boundary cases and remove need for floating
84345         point.
84346
84347         Issue a compile-time diagnostic if time_t is floating point, or if
84348         two's complement arithmetic is not in effect, or if arithmetic
84349         right shift does not propagate the sign.  These assumptions were
84350         all in the original code but they weren't checked.
84351
84352         (TIME_T_MIDPOINT, verify): New macros.
84353         (__isleap): Remove; it has integer overflow problems.
84354         (leapyear): New function, without those problems.
84355         (ydhms_tm_diff): Remove; splitting into two parts.
84356         (ydhms_diff): New function, containing the arithmetic part of
84357         the old ydhms_tm_diff function.  Issue a compile-time
84358         diagnostic if we are not using C99 integer division.
84359         Avoid casts when possible.
84360         (guess_time_tm): New function, containing the checking part of
84361         the old ydhms_tm_diff function.  Return the new value, rather than
84362         the difference between it and the old.  Accept a new argument T
84363         so that *T specifies the old value.  Check for overflow in the result.
84364
84365         (__mktime_internal): Use a time_t offset, not a long int offset.
84366         This undoes the 2003-06-04 change, which is no longer needed now
84367         that we have better overflow checking.
84368         (localtime_offset): Likewise.
84369
84370         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84371         and long are 64-bit but int is only 32-bit.
84372         (ydhms_diff): Use long int to store year1 and yday1.
84373         Issue a compile-time diagnostic if long int is not wide enough.
84374
84375         (__mktime_internal): Use long int to store adjusted year and yday.
84376         Use plain C rather than preprocessor commands, if that doesn't
84377         affect efficiency.
84378         Check for overflow (and try to repair) after each probe
84379         rather than checking only at the very end.  This avoids some bugs
84380         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84381         does not equal GMT offset at maximum time).
84382         Use integer to check for overflow rather than floating point; this
84383         is more portable to non-IEEE hosts, and is a tad faster.
84384         When we detect that we are oscillating between two values,
84385         don't check whether tm_isdst has the requested value, since
84386         we already know the answer.  When tm_isdst has the wrong value,
84387         use a different heuristic to find the right one, based on the
84388         extreme values actually observed in practice in tz2003a,
84389         rather than the (overly optimistic) "previous 3 calendar quarters".
84390
84391         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84392         "T const" to accommodate glibc style.
84393         (check_result): Use less-confusing report format.  "long" -> "long int.
84394         (main): Likewise.
84395         Don't loop if the iteration overflows time_t.
84396         Allow a negative step in the iteration.
84397
84398 2003-07-06  Karl Berry  <karl@gnu.org>
84399
84400         * config/depcomp: update from automake.
84401         * config/config.sub: update from prep.
84402
84403 2003-07-03  Karl Berry  <karl@gnu.org>
84404
84405         * config/config.guess: update from prep.
84406
84407 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84408
84409         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84410         xreadlink.c now includes it unconditionally.
84411
84412 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84413
84414         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84415         having it depend on HAVE_SYS_TYPES_H.
84416
84417 2003-07-01  Bruno Haible  <bruno@clisp.org>
84418
84419         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84420         <sys/types.h> should be sufficient.
84421         Reported by Paul Eggert.
84422
84423 2003-06-26  Karl Berry  <karl@gnu.org>
84424
84425         * config/depcomp: update from automake.
84426
84427 2003-06-26  Bruno Haible  <bruno@clisp.org>
84428
84429         * modules/human: Depend on module stdbool.
84430
84431 2003-06-25  Bruno Haible  <bruno@clisp.org>
84432
84433         * modules/readlink: New file.
84434         * modules/xreadlink: Depend on it.
84435         * MODULES.html.sh (func_all_modules): Add readlink.
84436
84437 2003-06-25  Bruno Haible  <bruno@clisp.org>
84438
84439         * m4/readlink.m4: New file.
84440
84441 2003-06-25  Bruno Haible  <bruno@clisp.org>
84442
84443         * lib/readlink.c: New file.
84444
84445 2003-06-22  Karl Berry  <karl@gnu.org>
84446
84447         * config/srclist.txt: update mkinstalldirs from automake.
84448         * config/mkinstalldirs: update.
84449
84450 2003-06-22  Bruno Haible  <bruno@clisp.org>
84451
84452         Portability to mingw32.
84453         * m4/ssize_t.m4: New file, from GNU gettext.
84454         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84455         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84456
84457 2003-06-22  Bruno Haible  <bruno@clisp.org>
84458
84459         * modules/safe-read: Add m4/ssize_t.m4.
84460         * modules/xreadlink: Add m4/ssize_t.m4.
84461
84462 2003-06-20  Bruno Haible  <bruno@clisp.org>
84463
84464         Assume C89, so PARAMS isn't needed.
84465         * lib/unicodeio.h (PARAMS): Remove.
84466         * lib/unicodeio.c: Don't use PARAMS.
84467
84468 2003-06-18  Karl Berry  <karl@gnu.org>
84469
84470         * config/config.{guess,sub}: update from prep.
84471
84472 2003-06-18  Jim Meyering  <jim@meyering.net>
84473
84474         Merge changes from coreutils.
84475         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84476         Remove explicit declarations of xmalloc and realloc.
84477         Include xalloc.h.
84478         (read_utmp): Remove anachronistic cast of xmalloc.
84479
84480 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84481
84482         Assume C89, so PARAMS isn't needed.
84483         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84484         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84485         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84486         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84487         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84488         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84489         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84490         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84491         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84492         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84493         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84494         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84495         no longer needed. Anyway, config.h should always be included before any
84496         other file.
84497
84498 2003-06-11  Simon Josefsson  <jas@extundo.com>
84499
84500         * modules/sysexits: New file.
84501         * MODULES.html.sh (func_all_modules): Add sysexits.
84502
84503 2003-06-11  Simon Josefsson  <jas@extundo.com>
84504
84505         * lib/sysexit_.h: New file.
84506
84507 2003-06-11  Derek Price  <derek@ximbiot.com>
84508
84509         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84510         necessary.
84511
84512 2003-06-11  Bruno Haible  <bruno@clisp.org>
84513
84514         * m4/sysexits.m4: New file.
84515
84516 2003-06-10  Simon Josefsson  <jas@extundo.com>
84517
84518         * lib/argp.h: New file, from glibc.
84519         * lib/argp-ba.c: New file, from glibc.
84520         * lib/argp-eexst.c: New file, from glibc.
84521         * lib/argp-fmtstream.c: New file, from glibc.
84522         * lib/argp-fmtstream.h: New file, from glibc.
84523         * lib/argp-fs-xinl.c: New file, from glibc.
84524         * lib/argp-help.c: New file, from glibc.
84525         * lib/argp-namefrob.h: New file, from glibc.
84526         * lib/argp-parse.c: New file, from glibc.
84527         * lib/argp-pv.c: New file, from glibc.
84528         * lib/argp-pvh.c: New file, from glibc.
84529         * lib/argp-xinl.c: New file, from glibc.
84530
84531 2003-06-10  Simon Josefsson  <jas@extundo.com>
84532
84533         * modules/strchrnul: New file.
84534
84535 2003-06-10  Simon Josefsson  <jas@extundo.com>
84536
84537         * modules/argp: New file.
84538
84539 2003-06-10  Simon Josefsson  <jas@extundo.com>
84540
84541         * m4/strchrnul.m4: New file.
84542
84543 2003-06-10  Simon Josefsson  <jas@extundo.com>
84544
84545         * lib/strchrnul.h: New file.
84546         * lib/strchrnul.c: New file.
84547
84548 2003-06-10  Bruno Haible  <bruno@clisp.org>
84549
84550         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84551
84552 2003-06-07  Karl Berry  <karl@gnu.org>
84553
84554         * config/config.{guess,sub}: update from prep.
84555
84556 2003-06-07  Jim Meyering  <jim@meyering.net>
84557
84558         * modules/strtod: Use $(...) notation, not @...@ for
84559         AC_REPLACE'd variables.
84560         * modules/localcharset: Likewise.
84561
84562 2003-06-07  Jim Meyering  <jim@meyering.net>
84563
84564         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84565         in place of my name in the copyright comment.
84566         Remove definition and uses of __P.
84567
84568         From coreutils.
84569         * lib/stat.c: Don't declare xmalloc explicitly.
84570         Instead, include "xalloc.h".
84571         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84572         xrealloc, and xcalloc return values.
84573         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84574         Improve comment.
84575         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84576
84577 2003-06-07  Bruno Haible  <bruno@clisp.org>
84578
84579         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84580         avoid AC_CONFIG_LINKS.
84581         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84582         fnmatch.h, to avoid AC_CONFIG_LINKS.
84583         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84584
84585 2003-06-07  Bruno Haible  <bruno@clisp.org>
84586
84587         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84588         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84589         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84590         directory.
84591         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84592         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84593         directory.
84594
84595 2003-06-06  Jim Meyering  <jim@meyering.net>
84596
84597         Merge from coreutils.
84598         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84599         Consolidate declarations and initializations of *_base* locals.
84600
84601         Merge from coreutils.
84602         This avoids a core dump on systems without GNU putenv,
84603         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84604         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84605         (unsetenv): New static function, from GNU libc.
84606         (rpl_putenv): Use it.
84607
84608         * lib/modechange.c: Remove trailing blanks.
84609
84610         Merge from coreutils.
84611         * lib/fsusage.c: Remove declaration of statfs.
84612         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84613
84614         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84615
84616 2003-06-06  Jim Meyering  <jim@meyering.net>
84617
84618         * lib/stdbool_.h: Renamed from stdbool.h.in.
84619
84620 2003-06-06  Jim Meyering  <jim@meyering.net>
84621             Bruno Haible  <bruno@clisp.org>
84622
84623         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84624         Adjust Makefile.am snippet not to redirect directly to target.
84625         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84626
84627 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84628
84629         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84630         mismatch, look in future quarters as well as past.  This fixes a
84631         bug when processing fall-backwards gaps immediately after a long
84632         period of daylight-saving time.
84633
84634         * lib/mktime.c: Assume freestanding C89 or better.
84635         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84636         (__P): Remove; not used.
84637         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84638         (mktime, not_equal_tm, print_tm, check_result,
84639         main): Use prototypes.  Use const * where appropriate.
84640         (main): Fix typo in testing code that uncovered by above changes.
84641         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84642
84643 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84644
84645         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84646         locale.h, localeconv.  This merges changes from coreutils.
84647
84648         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84649         It can be removed after the next Autoconf is released.
84650         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84651         needed.
84652
84653 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84654
84655         * lib/mktime.c: Fix Debian bug 177940
84656         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84657         (localtime_offset): Now long int, not time_t, because we want it
84658         to be guaranteed to be signed.  All uses changed.
84659         (__mktime_internal): If overflow would occur when adding offset,
84660         don't add it.
84661
84662         Merge 'human' changes from coreutils.  Rewrite to support
84663         locale-specific notations like thousands separators.
84664         * lib/human.c: Simplify authorship notice.
84665         Include human.h immediately after config.h.
84666         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84667         <limits.h>: Do not include, since human.h does.
84668         (SIZE_MAX, UINTMAX_MAX): New macros.
84669         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84670         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84671         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84672         (power_letter): Renamed from suffixes.
84673         (generate_suffix_backwards): Remove.
84674         (adjust_value): Now takes int style (because of human.h changes)
84675         and long double value (for greater precision on some platforms).
84676         (group_number): New function.
84677         (human_readable): Use it.  Use integer options, not enum.
84678         Put the options before the sizes in the arg list.
84679         Support all the new options.
84680         The old human_readable function has been removed;
84681         use inttostr.h instead.
84682         (human_readable, default_block_size, humblock):
84683         Use uintmax_t, not int, for block sizes.
84684         (human_readable_inexact, block_size_types): Remove.
84685         (block_size_opts): New constant.
84686         (human_options): Renamed from human_block_size, with new signature
84687         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84688         * lib/human.h: Add copyright and authorship notice.
84689         Include <limits.h> and <stdbool.h> unconditionally.
84690         (PARAMS): Remove.  All uses removed.
84691         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84692         (enum human_inexact_style): Remove tag; now a nameless enum.
84693         (human_floor, human_ceiling, human_round_to_even): Now have
84694         values 2, 0, 1 rather than -1, 1, 0.
84695         (human_group_digits, human_suppress_point_zero, human_autoscale,
84696         human_base_1024, human_SI, human_B): New constants.
84697         (human_readable_inexact, human_block_size): Remove.
84698         (human_readable): Size args are now uintmax_t, not int.
84699         (human_options): New decl.
84700
84701         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84702         unnecessary now that we assume C89 or better.  This change
84703         imported from coreutils.
84704
84705         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84706         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84707         in the 2003-05-30 sync from glibc.
84708
84709         .h files should stand alone, but we shouldn't include <sys/types.h>
84710         if we can get away with just <stddef.h>.
84711
84712         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84713         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84714         rather than <sys/types.h>, as we merely need size_t.
84715         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84716         to get size_t.
84717         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84718         Include <stdio.h>, to get FILE.
84719         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84720         memcasecmp.h has included <stddef.h> and all we need is size_t.
84721         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84722         our interface, instead of including <sys/types.h>
84723
84724 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84725
84726         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84727         now, as glibc mktime is buggy on non-glibc systems.
84728
84729 2003-06-03  Karl Berry  <karl@gnu.org>
84730
84731         * config/config.sub: update from prep.
84732
84733 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84734
84735         [from coreutils]
84736         Fix some minor time-related bugs with POSIX time arguments.
84737         Some valid time stamps were being rejected (notably -1, and
84738         time stamps before 1900 on 64-bit hosts).  And some invalid
84739         time stamps were being accepted, e.g. September 31.
84740
84741         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84742         that we can return (time_t) -1 successfully.
84743         * lib/posixtm.c: Likewise.
84744         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84745         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84746         (t): Remove static var.
84747         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84748         of static var.  All uses changed.
84749         (year): Do not reject years before 1900; they can occur with
84750         64-bit time_t.
84751         (posix_time_parse): Do not check for out-of-range components;
84752         that is now the caller's responsibility, since our checks were
84753         only approximations.
84754         (posixtime): Use mktime to check for out-of-range components,
84755         since it knows them exactly.
84756         If mktime returns (time_t) -1, check whether an error actually occurred
84757         by invoking localtime on -1.
84758         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84759         posixtime failures better.
84760         Improve the test data (in comments only).
84761
84762 2003-06-02  Karl Berry  <karl@gnu.org>
84763
84764         * config/mkinstalldirs (version): new variable.
84765         (--version): new option.
84766         (usage): improve message.
84767
84768 2003-05-30  Karl Berry  <karl@gnu.org>
84769
84770         * lib/mktime.c: update from libc.
84771
84772 2003-05-30  Bruno Haible  <bruno@clisp.org>
84773
84774         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84775         * config/config.rpath: Upgrade to gettext-0.12.1.
84776
84777 2003-05-30  Bruno Haible  <bruno@clisp.org>
84778
84779         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84780         * m4/nls.m4: New file, from gettext-0.12.1.
84781         * m4/po.m4: New file, from gettext-0.12.1.
84782         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84783
84784 2003-05-30  Bruno Haible  <bruno@clisp.org>
84785
84786         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84787         * lib/localcharset.h: Likewise.
84788         * lib/localcharset.c: Likewise.
84789
84790 2003-05-29  Karl Berry  <karl@gnu.org>
84791
84792         * config/config.rpath: update from gettext.
84793
84794 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84795
84796         Assume the headers required for C89 freestanding compilers.
84797         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84798         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84799         * m4/human.m4 (gl_HUMAN): Likewise.
84800         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84801         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84802         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84803         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84804         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84805         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84806
84807 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84808
84809         Assume the headers required for C89 freestanding compilers.
84810         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84811         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84812         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84813         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84814         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84815         define, since <limits.h> is guaranteed to do that.
84816         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84817         * lib/exclude.c: Include <stdbool.h> unconditionally.
84818         * lib/tempname.c: Include <stddef.h> unconditionally.
84819         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84820         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84821         <stddef.h> does that.
84822         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84823         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84824         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84825         needed.
84826         * lib/xstrtol.c: Likewise.
84827         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84828         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84829
84830         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84831         warnings on some platforms.
84832
84833         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84834         arbitrarily.
84835
84836 2003-05-26  Jim Meyering  <jim@meyering.net>
84837
84838         Merge in a change from coreutils:
84839         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84840         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84841         that condition, rather than `-1' which is slightly misleading.
84842         Change the name of the cache variable to have the gl_ prefix.
84843         Prompted by a patch from Richard Dawe for DJGPP.
84844
84845 2003-05-24  Karl Berry  <karl@gnu.org>
84846
84847         * config/config.guess: update from prep.
84848
84849 2003-05-22  Karl Berry  <karl@gnu.org>
84850
84851         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84852
84853 2003-05-20  Karl Berry  <karl@gnu.org>
84854
84855         * config/config.guess: update from prep.
84856
84857 2003-05-18  Karl Berry  <karl@gnu.org>
84858
84859         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84860         might actually be set by the user.
84861
84862         * config/depcomp, install-sh, mdate-sh: update from automake.
84863
84864 2003-05-17  Bruno Haible  <bruno@clisp.org>
84865
84866         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84867         invalid expansion for AC_EGREP_CPP.
84868         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84869         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84870         Suggested by Akim Demaille <akim@epita.fr> in
84871         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84872
84873 2003-05-12  Jim Meyering  <jim@meyering.net>
84874
84875         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84876         the space-padded-by-default conversion specifiers, %e, %k, %l.
84877
84878 2003-05-12  Bruno Haible  <bruno@clisp.org>
84879
84880         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84881         the string is longer than 4 KB.
84882
84883 2003-05-11  Karl Berry  <karl@gnu.org>
84884
84885         * config/config.{guess,sub}: update from prep.
84886
84887 2003-05-09  Bruno Haible  <bruno@clisp.org>
84888
84889         * modules/error: Add m4/strerror_r.m4 to file list.
84890
84891 2003-05-03  Bruno Haible  <bruno@clisp.org>
84892
84893         Upgrade to Unicode-4.0.
84894         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84895         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84896         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84897         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84898         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84899         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84900         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84901         Change width of U+E0100..U+E01EF from 1 to 0.
84902
84903 2003-04-25  Jim Meyering  <jim@meyering.net>
84904
84905         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84906         of type size_t, not int.
84907
84908 2003-04-25  Bruno Haible  <bruno@clisp.org>
84909
84910         * lib/copy-file.c: Include <stddef.h>, for size_t.
84911
84912 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84913
84914         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84915         code which expansion is under static control.  Patch imported from
84916         Akim Demaille's patch to Bison; see
84917         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84918
84919 2003-04-14  Bruno Haible  <bruno@clisp.org>
84920
84921         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84922
84923 2003-04-11  Jim Meyering  <jim@meyering.net>
84924
84925         Merge changes from Coreutils.
84926
84927         2003-03-22  Jim Meyering  <jim@meyering.net>
84928
84929         * lib/strftime.c (widen): Cast alloca return value to proper type.
84930
84931         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84932
84933         From GNU libc.
84934         * lib/strftime.c (my_strftime): Handle very large width
84935         specifications for numeric values correctly.  Improve checks for
84936         overflow.
84937
84938         2003-01-19  Jim Meyering  <jim@meyering.net>
84939
84940         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84941         definitions.
84942         (nl_get_alt_digit) [! defined my_strftime]: Define.
84943         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84944         _nl_get_alt_digit and _nl_get_walt_digit.
84945
84946         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84947         libc. These changes have no effect outside of _LIBC.
84948
84949 2003-04-10  Bruno Haible  <bruno@clisp.org>
84950
84951         * modules/findprog: New file.
84952         * MODULES.html.sh (func_all_modules): Add it.
84953
84954 2003-04-10  Bruno Haible  <bruno@clisp.org>
84955
84956         * m4/findprog.m4: New file.
84957         * m4/eaccess.m4: New file.
84958
84959 2003-04-10  Bruno Haible  <bruno@clisp.org>
84960
84961         * lib/findprog.h: New file, from GNU gettext.
84962         * lib/findprog.c: New file, from GNU gettext.
84963
84964 2003-04-05  Jim Meyering  <jim@meyering.net>
84965
84966         Merge changes from Coreutils.
84967
84968         * lib/exclude.h (PARAMS): Remove definition and uses.
84969         * lib/exclude.c: Remove uses of `PARAMS'.
84970
84971         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84972         Add test-cases for DOS filenames. Declare program_name.
84973         (main): Set up program_name.  Patch by Rich Dawe.
84974
84975         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84976         error from mntctl.
84977         Use mntctl's return value to drive the entry-processing loop, since
84978         we can't rely on the value of the vmt_length member in the last
84979         entry.  On some systems doing so could result in exhausting
84980         virtual memory.  Based in part on a patch from Mike Jetzer.
84981
84982 2003-04-04  Bruno Haible  <bruno@clisp.org>
84983
84984         * modules/linebreak: New file.
84985         * MODULES.html.sh (func_all_modules): Add it.
84986
84987 2003-04-04  Bruno Haible  <bruno@clisp.org>
84988
84989         * m4/linebreak.m4: New file.
84990
84991 2003-04-04  Bruno Haible  <bruno@clisp.org>
84992
84993         * lib/linebreak.h: New file, from GNU gettext.
84994         * lib/linebreak.c: New file, from GNU gettext with slight
84995         modifications.
84996         * lib/lbrkprop.h: New file, from GNU gettext.
84997
84998 2003-04-03  Bruno Haible  <bruno@clisp.org>
84999
85000         * modules/utf8-ucs4: New file.
85001         * modules/utf16-ucs4: New file.
85002         * modules/ucs4-utf8: New file.
85003         * modules/ucs4-utf16: New file.
85004         * MODULES.html.sh (func_all_modules): Add them.
85005
85006 2003-04-03  Bruno Haible  <bruno@clisp.org>
85007
85008         * m4/utf-ucs4.m4: New file.
85009         * m4/ucs4-utf.m4: New file.
85010
85011 2003-04-03  Bruno Haible  <bruno@clisp.org>
85012
85013         * lib/utf8-ucs4.h: New file, from GNU gettext.
85014         * lib/utf16-ucs4.h: New file, from GNU gettext.
85015         * lib/ucs4-utf8.h: New file, from GNU gettext.
85016         * lib/ucs4-utf16.h: New file, from GNU gettext.
85017
85018 2003-04-02  Bruno Haible  <bruno@clisp.org>
85019
85020         * modules/binary-io: New file.
85021         * MODULES.html.sh (func_all_modules): Add it.
85022
85023 2003-04-02  Bruno Haible  <bruno@clisp.org>
85024
85025         * lib/binary-io.h: New file, from GNU gettext.
85026
85027 2003-04-01  Bruno Haible  <bruno@clisp.org>
85028
85029         * modules/pathname: New file.
85030         * MODULES.html.sh (func_all_modules): Add it.
85031
85032 2003-04-01  Bruno Haible  <bruno@clisp.org>
85033
85034         * lib/pathname.h: New file, from GNU gettext.
85035         * lib/concatpath.c: New file, from GNU gettext.
85036
85037 2003-03-30  Bruno Haible  <bruno@clisp.org>
85038
85039         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85040
85041 2003-03-30  Bruno Haible  <bruno@clisp.org>
85042
85043         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85044         function chown() doesn't exist.
85045
85046 2003-03-28  Bruno Haible  <bruno@clisp.org>
85047
85048         * modules/copy-file: New file.
85049         * MODULES.html.sh (func_all_modules): Add it.
85050
85051 2003-03-28  Bruno Haible  <bruno@clisp.org>
85052
85053         * m4/copy-file.m4: New file.
85054
85055 2003-03-28  Bruno Haible  <bruno@clisp.org>
85056
85057         * lib/copy-file.h: New file, from GNU gettext.
85058         * lib/copy-file.c: New file, from GNU gettext.
85059
85060 2003-03-18  Jim Meyering  <jim@meyering.net>
85061
85062         * lib/quote.c (quote_n): Fix typo in comment.
85063
85064 2003-03-18  Bruno Haible  <bruno@clisp.org>
85065
85066         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85067         checking.
85068         * m4/onceonly_2_57.m4: Likewise.
85069
85070 2003-03-17  Bruno Haible  <bruno@clisp.org>
85071
85072         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85073         (m4_quote): Remove macro.
85074         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85075
85076 2003-03-14  Jim Meyering  <jim@meyering.net>
85077
85078         Merge changes from Coreutils.
85079         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85080         to be const, in order to avoid warnings.
85081         (obstack_room): Likewise.
85082         (obstack_empty_p): Likewise.
85083
85084 2003-03-14  Bruno Haible  <bruno@clisp.org>
85085
85086         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85087         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85088
85089 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85090
85091         Merge changes from Bison.
85092         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85093         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85094         when compiling Bison 1.875's `bitset bset = obstack_alloc
85095         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85096         * lib/hash.c: Include <stdbool.h> unconditionally.
85097
85098 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85099
85100         * m4/onceonly.m4 (m4_quote): New macro.
85101         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85102         Quote AC_FOREACH variable-expansions properly.
85103
85104 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85105
85106         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85107
85108 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85109
85110         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85111         Reported by Bruce Becker; see:
85112         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85113
85114 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85115             Bruno Haible  <bruno@clisp.org>
85116
85117         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85118         Reported by John Hughes, see
85119         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85120
85121 2003-02-20  Bruno Haible  <bruno@clisp.org>
85122
85123         * MODULES.html.sh (func_all_modules): Add poll.
85124
85125 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85126
85127         * modules/poll: New file.
85128
85129 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85130
85131         * lib/poll_.h: New file.
85132         * lib/poll.c: New file.
85133
85134 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85135
85136         * m4/poll.m4: New file.
85137
85138 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85139
85140         * modules/mathl: New file.
85141
85142 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85143
85144         * lib/mathl.h: New file.
85145         * lib/acosl.c: New file.
85146         * lib/asinl.c: New file.
85147         * lib/atanl.c: New file.
85148         * lib/ceill.c: New file.
85149         * lib/cosl.c: New file.
85150         * lib/expl.c: New file.
85151         * lib/floorl.c: New file.
85152         * lib/frexpl.c: New file.
85153         * lib/ldexpl.c: New file.
85154         * lib/logl.c: New file.
85155         * lib/sincosl.c: New file.
85156         * lib/sinl.c: New file.
85157         * lib/sqrtl.c: New file.
85158         * lib/tanl.c: New file.
85159         * lib/trigl.c: New file.
85160         * lib/trigl.h: New file.
85161
85162 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85163
85164         * m4/mathl.m4: New file.
85165
85166 2003-02-18  Bruno Haible  <bruno@clisp.org>
85167
85168         * MODULES.html.sh (func_all_modules): Add mathl.
85169
85170 2003-02-17  Bruno Haible  <bruno@clisp.org>
85171
85172         * modules/mkdtemp: New module.
85173         * MODULES.html.sh (func_all_modules): Add it.
85174
85175 2003-02-17  Bruno Haible  <bruno@clisp.org>
85176
85177         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85178
85179 2003-02-17  Bruno Haible  <bruno@clisp.org>
85180
85181         * lib/mkdtemp.h: New file, from GNU gettext.
85182         * lib/mkdtemp.c: New file, from GNU gettext.
85183
85184 2003-02-02  Jim Meyering  <jim@meyering.net>
85185
85186         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85187         e.g. glibc-2.2.93.
85188
85189 2003-01-31  Bruno Haible  <bruno@clisp.org>
85190
85191         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85192         'rpl_rename'.
85193         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85194         'rpl_strnlen'.
85195         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85196         'rpl_strtod'.
85197         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85198         'rpl_utime'.
85199
85200 2003-01-31  Bruno Haible  <bruno@clisp.org>
85201
85202         * lib/rename.c: #undef rename before defining rpl_rename.
85203         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85204
85205 2003-01-30  Bruno Haible  <bruno@clisp.org>
85206
85207         * modules/vasnprintf, modules/vasprintf: New modules.
85208         * MODULES.html.sh (func_all_modules): Add them.
85209
85210 2003-01-30  Bruno Haible  <bruno@clisp.org>
85211
85212         * m4/signed.m4: New file, from GNU gettext.
85213         * m4/longdouble.m4: New file, from GNU gettext.
85214         * m4/wchar_t.m4: New file, from GNU gettext.
85215         * m4/wint_t.m4: New file, from GNU gettext.
85216         * m4/vasnprintf.m4: New file.
85217         * m4/vasprintf.m4: New file.
85218
85219 2003-01-30  Bruno Haible  <bruno@clisp.org>
85220
85221         * lib/printf-args.h: New file, from GNU gettext.
85222         * lib/printf-args.c: New file, from GNU gettext.
85223         * lib/printf-parse.h: New file, from GNU gettext.
85224         * lib/printf-parse.c: New file, from GNU gettext.
85225         * lib/vasnprintf.h: New file, from GNU gettext.
85226         * lib/vasnprintf.c: New file, from GNU gettext.
85227         * lib/asnprintf.c: New file, from GNU gettext.
85228         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85229         * lib/vasprintf.c: New file, from GNU gettext.
85230         * lib/asprintf.c: New file, from GNU gettext.
85231
85232 2003-01-29  Bruno Haible  <bruno@clisp.org>
85233
85234         * modules/stpncpy: New module.
85235         * MODULES.html.sh (func_all_modules): Add it.
85236
85237 2003-01-29  Bruno Haible  <bruno@clisp.org>
85238
85239         * m4/stpncpy.m4: New file.
85240
85241 2003-01-29  Bruno Haible  <bruno@clisp.org>
85242
85243         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85244         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85245
85246 2003-01-28  Bruno Haible  <bruno@clisp.org>
85247
85248         * modules/c-ctype: New module.
85249         * MODULES.html.sh (func_all_modules): Add it.
85250
85251 2003-01-28  Bruno Haible  <bruno@clisp.org>
85252
85253         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85254         Paul Eggert.
85255         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85256         Paul Eggert.
85257
85258 2003-01-27  Bruno Haible  <bruno@clisp.org>
85259
85260         * modules/xsetenv: New module.
85261         * MODULES.html.sh (func_all_modules): Add it.
85262
85263 2003-01-27  Bruno Haible  <bruno@clisp.org>
85264
85265         * lib/xsetenv.h: New file, from GNU gettext.
85266         * lib/xsetenv.c: New file, from GNU gettext.
85267
85268 2003-01-23  Jim Meyering  <jim@meyering.net>
85269
85270         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85271         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85272
85273 2003-01-23  Bruno Haible  <bruno@clisp.org>
85274
85275         * modules/minmax: New module.
85276         * MODULES.html.sh (func_all_modules): Add it.
85277
85278 2003-01-23  Bruno Haible  <bruno@clisp.org>
85279
85280         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85281         Eggert.
85282
85283 2003-01-22  Bruno Haible  <bruno@clisp.org>
85284
85285         * modules/exit: New module.
85286         * MODULES.html.sh (func_all_modules): Add it.
85287
85288 2003-01-22  Bruno Haible  <bruno@clisp.org>
85289
85290         * lib/exit.h: New file, from GNU gettext.
85291
85292 2003-01-19  Bruno Haible  <bruno@clisp.org>
85293
85294         * gnulib-tool: Recognize option --extract-maintainer.
85295         (func_get_maintainer): New function.
85296         * modules/*: Add Maintainer entry.
85297
85298 2003-01-16  Jim Meyering  <jim@meyering.net>
85299
85300         * m4/regex.m4: The `regex' struct is both input and output.
85301         Initialize it before each use.  Patch by Tim Waugh.
85302
85303 2003-01-16  Bruno Haible  <bruno@clisp.org>
85304
85305         * MODULES.html.sh: Add a table of contents. Add the module name as
85306         leftmost column. Add hyperlinks.
85307
85308 2003-01-15  Bruno Haible  <bruno@clisp.org>
85309
85310         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85311
85312 2003-01-15  Bruno Haible  <bruno@clisp.org>
85313
85314         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85315         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85316         suffix.
85317
85318 2003-01-15  Bruno Haible  <bruno@clisp.org>
85319
85320         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85321
85322 2003-01-15  Bruno Haible  <bruno@clisp.org>
85323
85324         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85325         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85326
85327 2003-01-14  Jim Meyering  <jim@meyering.net>
85328
85329         * lib/same.c (same_name): Tweak a comment.
85330
85331 2003-01-14  Bruno Haible  <bruno@clisp.org>
85332
85333         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85334         when a string comparison is sufficient.
85335
85336 2003-01-14  Bruno Haible  <bruno@clisp.org>
85337
85338         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85339         'unsigned int'.
85340
85341 2003-01-14  Bruno Haible  <bruno@clisp.org>
85342
85343         * lib/hash-pjw.c: Add comment about low quality of this function.
85344
85345 2003-01-13  Bruno Haible  <bruno@clisp.org>
85346
85347         * modules/stpcpy: Distribute lib/stpcpy.h.
85348         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85349
85350 2003-01-13  Bruno Haible  <bruno@clisp.org>
85351
85352         * modules/*: Add a description.
85353         * modules/strpbrk: Fix Makefile.am snippet.
85354         * modules/strtoimax: Fix dependencies.
85355         * modules/strtoumax: Likewise.
85356
85357 2003-01-13  Bruno Haible  <bruno@clisp.org>
85358
85359         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85360         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85361         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85362
85363 2003-01-13  Bruno Haible  <bruno@clisp.org>
85364
85365         * gnulib-tool (func_create_testdir): Store config/* files in the main
85366         directory.
85367         * config.rpath: Move to ...
85368         * config/config.rpath: ... here.
85369         * modules/gettext: Contains config/config.rpath, not config.rpath.
85370         * modules/iconv: Likewise.
85371
85372 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85373
85374         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85375         to avoid collisions with libcurses and libreadline.
85376
85377         * m4/getstr.m4: Remove.
85378         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85379
85380 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85381
85382         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85383         to avoid collisions with libcurses and libreadline.
85384
85385         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85386         * lib/getstr.h, getstr.c: Remove.
85387         * lib/getline.c: Include "getline.h", to check interface.
85388         Move body of old getstr.c here: this defines MIN_CHUNK and
85389         declares getdelim2, which is renamed from getstr.
85390         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85391
85392         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85393         All uses changed.
85394         * lib/linebuffer.h: Likewise.
85395         (readline): Remove backward-compatibility macro.
85396
85397 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85398
85399         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85400         to avoid collisions with libcurses and libreadline.
85401         * getstr: Remove.
85402         * MODULES.html.sh: Remove getstr.
85403         * modules/getline: Depend on unlocked-io, not getstr.
85404
85405 2003-01-12  Jim Meyering  <jim@meyering.net>
85406
85407         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85408
85409 2003-01-10  Bruno Haible  <bruno@clisp.org>
85410
85411         * modules/alloca: Change Makefile.am requirements. Simplify Include
85412         requirements. Add lib/alloca_.h to file list.
85413
85414 2003-01-10  Bruno Haible  <bruno@clisp.org>
85415
85416         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85417
85418 2003-01-10  Bruno Haible  <bruno@clisp.org>
85419
85420         * lib/alloca_.h: New file.
85421         * lib/getdate.y: Unconditionally include alloca.h.
85422         * lib/makepath.c: Likewise.
85423         * lib/setenv.c: Likewise.
85424         * lib/userspec.c: Likewise.
85425
85426 2003-01-09  Karl Berry  <karl@gnu.org>
85427
85428         * MODULES.html.sh: include `dirname $0` in PATH, to find
85429         gnulib-tool.
85430
85431 2003-01-09  Bruno Haible  <bruno@clisp.org>
85432
85433         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85434         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85435
85436 2003-01-09  Bruno Haible  <bruno@clisp.org>
85437
85438         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85439
85440 2003-01-09  Bruno Haible  <bruno@clisp.org>
85441
85442         * lib/stdbool.h.in: New file.
85443
85444 2003-01-09  Bruno Haible  <bruno@clisp.org>
85445
85446         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85447         * MODULES.html.sh: Likewise.
85448
85449 2003-01-08  Jim Meyering  <jim@meyering.net>
85450
85451         * lib/full-write.c: Undefine and define-away `const' after inclusion
85452         of errno.h, not before.  Suggestion from Bruno Haible.
85453
85454 2003-01-08  Bruno Haible  <bruno@clisp.org>
85455
85456         * modules/full-read: Depend on full-write.
85457
85458 2003-01-08  Bruno Haible  <bruno@clisp.org>
85459
85460         * lib/safe-read.c: Include specification header first, to ensure its
85461         selfcontainedness.
85462         * lib/full-write.c: Likewise.
85463
85464 2003-01-07  Jim Meyering  <jim@meyering.net>
85465
85466         * lib/full-write.c: Rework so that it may serve to define full_read,
85467         too.
85468         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85469
85470 2003-01-07  Bruno Haible  <bruno@clisp.org>
85471
85472         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85473         <inttypes.h>.
85474         * lib/xstrtol.h: Likewise.
85475         * lib/xstrtoimax.c: Likewise.
85476         * lib/xstrtoumax.c: Likewise.
85477         * lib/human.h: Likewise.
85478
85479         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85480         on systems that have <inttypes.h> but not <stdint.h>.
85481
85482 2003-01-07  Bruno Haible  <bruno@clisp.org>
85483
85484         * MODULES.html.sh: Add copyright notice.
85485         (missed_files): Omit CVS directory entries.
85486         (func_module): Make it work with sed-3.02.
85487         * MODULES.txt: Remove file.
85488
85489 2003-01-06  Jim Meyering  <jim@meyering.net>
85490
85491         * lib/version-etc.c: Update year in translatable copyright string.
85492
85493 2003-01-03  Karl Berry  <karl@gnu.org>
85494
85495         * config/config.{guess,sub}: update from prep.
85496
85497 2003-01-02  Karl Berry  <karl@gnu.org>
85498
85499         * doc/COPYING.DOC: belatedly updated to 1.2.
85500
85501 2003-01-01  Karl Berry  <karl@gnu.org>
85502
85503         * gnulib-tool (func_verify_module): report module name $module in
85504         error message, not $1.
85505         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85506         be created, only if it doesn't exist.
85507         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85508
85509 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85510
85511         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85512
85513 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85514
85515         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85516         memcmp if strcoll doesn't work.
85517
85518 2002-12-31  Bruno Haible  <bruno@clisp.org>
85519
85520         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85521         nonempty.
85522
85523 2002-12-31  Bruno Haible  <bruno@clisp.org>
85524
85525         * lib/memcoll.c (STRCOLL): New macro.
85526         (memcoll): Use it.
85527
85528 2002-12-31  Bruno Haible  <bruno@clisp.org>
85529
85530         * lib/localcharset.h: New file.
85531         * lib/localcharset.c: Include it.
85532         * lib/unicodeio.c: Likewise.
85533
85534 2002-12-31  Bruno Haible  <bruno@clisp.org>
85535
85536         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85537         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85538
85539 2002-12-31  Bruno Haible  <bruno@clisp.org>
85540
85541         * lib/getline.h: Include <stddef.h>, for size_t.
85542
85543         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85544         * lib/unicodeio.c: Don't include <stddef.h>.
85545
85546 2002-12-31  Bruno Haible  <bruno@clisp.org>
85547
85548         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85549         HAVE_TM_ZONE.
85550
85551 2002-12-24  Karl Berry  <karl@gnu.org>
85552
85553         * config/config.guess: update from prep.
85554
85555 2002-12-24  Bruno Haible  <bruno@clisp.org>
85556
85557         General infrasructure.
85558         * m4/README: Rewritten.
85559         * m4/onceonly.m4: New file.
85560         * m4/onceonly_2_57.m4: New file.
85561
85562         Module atexit.
85563         * m4/atexit.m4: New file.
85564
85565         Module strtod.
85566         * m4/strtod.m4: New file.
85567
85568         Module strtol.
85569         * m4/strtol.m4: New file.
85570
85571         Module strtoul.
85572         * m4/strtoul.m4: New file.
85573
85574         Module memchr.
85575         * m4/memchr.m4: New file.
85576
85577         Module memcmp.
85578         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85579         (jm_FUNC_MEMCMP): Invoke it.
85580
85581         Module memcpy.
85582         * m4/memcpy.m4: New file.
85583
85584         Module memmove.
85585         * m4/memmove.m4: New file.
85586
85587         Module memset.
85588         * m4/memset.m4: New file.
85589
85590         Module strcspn.
85591         * m4/strcspn.m4: New file.
85592
85593         Module strpbrk.
85594         * m4/strpbrk.m4: New file.
85595
85596         Module strstr.
85597         * m4/strstr.m4: New file.
85598
85599         Module strerror.
85600         * m4/strerror.m4: New file.
85601
85602         Module mktime.
85603         * m4/mktime.m4: Renamed from jm-mktime.m4.
85604         (gl_PREREQ_MKTIME): New macro.
85605         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85606
85607         Module malloc.
85608         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85609         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85610         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85611
85612         Module realloc.
85613         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85614         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85615         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85616
85617         Module strftime.
85618         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85619         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85620         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85621         gl_TM_GMTOFF.
85622         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85623
85624         Module xalloc.
85625         * m4/xalloc.m4: New file.
85626
85627         Module alloca.
85628         * m4/alloca.m4: New file.
85629
85630         Module putenv.
85631         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85632         (jm_FUNC_PUTENV): Invoke it.
85633
85634         Module setenv.
85635         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85636         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85637         when invoked twice.
85638         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85639         gt_FUNC_SETENV.
85640
85641         Module memrchr.
85642         * m4/memrchr.m4: New file.
85643
85644         Module stpcpy.
85645         * m4/stpcpy.m4: New file.
85646
85647         Module strcase.
85648         * m4/strcase.m4: New file.
85649
85650         Module strdup.
85651         * m4/strdup.m4: New file.
85652
85653         Module strnlen.
85654         * m4/strnlen.m4: New file.
85655
85656         Module strndup.
85657         * m4/strndup.m4: New file.
85658
85659         Module xstrtod.
85660         * m4/xstrtod.m4: New file.
85661
85662         Module xstrtol.
85663         * m4/xstrtol.m4: New file.
85664
85665         Module getdate.
85666         * m4/getdate.m4: New file.
85667
85668         Module unlocked-io.
85669         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85670         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85671         * m4/jm-glibc-io.m4n: Remove file.
85672
85673         Module long-options.
85674         * m4/long-options.m4: New file.
85675
85676         Module md5.
85677         * m4/md5.m4: New file.
85678
85679         Module sha.
85680         * m4/sha.m4: New file.
85681
85682         Module getstr.
85683         * m4/getstr.m4: New file.
85684
85685         Module getline.
85686         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85687         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85688         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85689         simply getline. Infoke gl_PREREQ_GETLINE.
85690
85691         Module obstack.
85692         * m4/obstack.m4: New file.
85693
85694         Module hash.
85695         * m4/hash.m4: New file.
85696
85697         Module readtokens.
85698         * m4/readtokens.m4: New file.
85699
85700         Module strverscmp.
85701         * m4/strverscmp.m4: New file.
85702
85703         Module stdbool.
85704         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85705         OSF/1.
85706
85707         Module strtoll.
85708         * m4/strtoll.m4: New file.
85709
85710         Module strtoull.
85711         * m4/strtoull.m4: New file.
85712
85713         Module strtoimax.
85714         * m4/strtoimax.m4: New file.
85715
85716         Module strtoumax.
85717         * m4/strtoumax.m4: New file.
85718
85719         Module xstrtoimax.
85720         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85721         jm_AC_PREREQ_XSTRTOIMAX.
85722         Moved the strtol prerequisites to strtol.m4.
85723         Moved the strtoll prerequisites to strtoll.m4.
85724         Moved the strtoimax prerequisites to strtoimax.m4.
85725
85726         Module xstrtoumax.
85727         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85728         jm_AC_PREREQ_XSTRTOUMAX.
85729         Moved the strtoul prerequisites to strtoul.m4.
85730         Moved the strtoull prerequisites to strtoull.m4.
85731         Moved the strtoumax prerequisites to strtoumax.m4.
85732
85733         Module chown.
85734         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85735         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85736
85737         Module dup2.
85738         * m4/dup2.m4: New file.
85739
85740         Module ftruncate.
85741         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85742         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85743
85744         Module getgroups.
85745         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85746         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85747
85748         Module gettimeofday.
85749         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85750         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85751         gl_PREREQ_GETTIMEOFDAY.
85752
85753         Module mkdir.
85754         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85755         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85756
85757         Module mkstemp.
85758         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85759         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85760         jm_AC_TYPE_UINTMAX_T.
85761         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85762
85763         Module stat.
85764         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85765         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85766
85767         Module lstat.
85768         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85769         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85770
85771         Module timespec.
85772         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85773         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85774         * m4/st_mtim.m4: Indentation.
85775
85776         Module nanosleep.
85777         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85778         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85779         gl_PREREQ_NANOSLEEP.
85780
85781         Module regex.
85782         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85783         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85784         (gl_REGEX): New macro.
85785
85786         Module rename.
85787         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85788         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85789
85790         Module rmdir.
85791         * m4/rmdir.m4: New file.
85792
85793         Module utime.
85794         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85795         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85796         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85797
85798         Module dirname.
85799         * m4/dirname.m4: New file.
85800
85801         Module getopt.
85802         * m4/getopt.m4: New file.
85803
85804         Module unistd-safer.
85805         * m4/unistd-safer.m4: New file.
85806
85807         Module fnmatch.
85808         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85809         declaration.
85810         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85811         (gl_FUNC_FNMATCH_POSIX): New macro.
85812         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85813         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85814         simply fnmatch.
85815
85816         Module exclude.
85817         * m4/exclude.m4: New file.
85818
85819         Module human.
85820         * m4/human.m4: New file.
85821
85822         Module acl.
85823         * m4/acl.m4: Nop.
85824
85825         Module backupfile.
85826         * m4/backupfile.m4: New file.
85827         * m4/d-ino.m4: Indentation.
85828
85829         Module fsusage.
85830         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85831         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85832         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85833
85834         Module dirfd.
85835         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85836         requirements.
85837
85838         Module euidaccess.
85839         * m4/euidaccess.m4: New file.
85840
85841         Module file-type.
85842         * m4/file-type.m4: New file.
85843
85844         Module fileblocks.
85845         * m4/fileblocks.m4: New file.
85846
85847         Module filemode.
85848         * m4/filemode.m4: New file.
85849
85850         Module isdir.
85851         * m4/isdir.m4: New file.
85852
85853         Module lchown.
85854         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85855         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85856
85857         Module makepath.
85858         * m4/makepath.m4: New file.
85859
85860         Module modechange.
85861         * m4/modechange.m4: New file.
85862
85863         Module mountlist.
85864         * m4/mountlist.m4: New file.
85865         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85866         Indentation.
85867
85868         Module path-concat.
85869         * m4/path-concat.m4: New file.
85870
85871         Module pathmax.
85872         * m4/pathmax.m4: New file.
85873
85874         Module same.
85875         * m4/same.m4: New file.
85876
85877         Module save-cwd.
85878         * m4/save-cwd.m4: New file.
85879
85880         Module savedir.
85881         * m4/savedir.m4: New file.
85882
85883         Module xgetcwd.
85884         * m4/xgetcwd.m4: New file.
85885         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85886
85887         Module xreadlink.
85888         * m4/xreadlink.m4: New file.
85889
85890         Module safe-read.
85891         * m4/safe-read.m4: New file.
85892
85893         Module safe-write.
85894         * m4/safe-write.m4: New file.
85895
85896         Module closeout.
85897         * m4/closeout.m4: New file.
85898
85899         Module stdio-safer.
85900         * m4/stdio-safer.m4: New file.
85901
85902         Module getpass.
85903         * m4/getpass.m4: New file.
85904
85905         Module getugroups.
85906         * m4/getugroups.m4: New file.
85907
85908         Module group-member.
85909         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85910         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85911
85912         Module idcache.
85913         * m4/idcache.m4: New file.
85914
85915         Module userspec.
85916         * m4/userspec.m4: New file.
85917
85918         Module gettime.
85919         * m4/clock_time.m4: New file.
85920         * m4/gettime.m4: New file.
85921
85922         Module settime.
85923         * m4/settime.m4: New file.
85924
85925         Module posixtm.
85926         * m4/posixtm.m4: New file.
85927
85928         Module gethostname.
85929         * m4/gethostname.m4: New file.
85930
85931         Module canon-host.
85932         * m4/canon-host.m4: New file.
85933
85934         Module gettext.
85935         * m4/codeset.m4: New file, from gettext-0.11.5.
85936         * m4/gettext.m4: New file, from gettext-0.11.5.
85937         * m4/glibc21.m4: New file, from gettext-0.11.5.
85938         * m4/iconv.m4: New file, from gettext-0.11.5.
85939         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85940         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85941         * m4/inttypes.m4: New file, from gettext-0.11.5.
85942         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85943         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85944         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85945         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85946         * m4/lib-link.m4: New file, from gettext-0.11.5.
85947         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85948         * m4/progtest.m4: New file, from gettext-0.11.5.
85949         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85950         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85951         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85952
85953         Module localcharset.
85954         * m4/localcharset.m4: New file.
85955
85956         Module hard-locale.
85957         * m4/hard-locale.m4: New file.
85958
85959         Module mbswidth.
85960         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85961         onceonly macros.
85962         * m4/mbrtowc.m4: Add comment.
85963
85964         Module memcasecmp.
85965         * m4/memcasecmp.m4: New file.
85966
85967         Module memcoll.
85968         * m4/memcoll.m4: New file.
85969
85970         Module unicodeio.
85971         * m4/unicodeio.m4: New file.
85972
85973         Module rpmatch.
85974         * m4/rpmatch.m4: New file.
85975
85976         Module yesno.
85977         * m4/yesno.m4: New file.
85978
85979         Module exitfail.
85980         * m4/exitfail.m4: New file.
85981
85982         Module c-stack.
85983         * m4/c-stack.m4 (gl_C_STACK): New macro.
85984         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85985
85986         Module error.
85987         * m4/error.m4 (gl_ERROR): New macro.
85988         (jm_PREREQ_ERROR): Use onceonly macros.
85989
85990         Module fatal.
85991         * m4/fatal.m4: New file.
85992
85993         Module getloadavg.
85994         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85995         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85996
85997         Module getpagesize.
85998         * m4/getpagesize.m4: New file.
85999
86000         Module getusershell.
86001         * m4/getusershell.m4: New file.
86002
86003         Module physmem.
86004         * m4/physmem.m4: New file.
86005
86006         Module posixver.
86007         * m4/posixver.m4: New file.
86008
86009         Module quotearg.
86010         * m4/quotearg.m4: New file.
86011
86012         Module quote.
86013         * m4/quote.m4: New file.
86014
86015         Module readutmp.
86016         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86017
86018         Module sig2str.
86019         * m4/sig2str.m4: New file.
86020
86021         Other.
86022         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86023         ulonglong.m4.
86024         * m4/intmax_t.m4: New file.
86025         * m4/d-type.m4: Indentation.
86026         * m4/jm-macros.m4: Update.
86027         * m4/prereq.m4 (jm_PREREQ): Update.
86028         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86029         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86030         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86031         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86032         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86033         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86034         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86035         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86036         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86037         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86038         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86039         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86040         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86041         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86042         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86043         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86044         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86045         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86046         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86047
86048 2002-12-24  Bruno Haible  <bruno@clisp.org>
86049
86050         * MODULES.txt: Update according to m4/ changes.
86051
86052         Module gettext.
86053         * config.rpath: New file, from gettext-0.11.5.
86054
86055         * modules/*: New module descriptions.
86056         * gnulib-tool: New file.
86057         * MODULES.html.sh: New file.
86058
86059 2002-12-21  Karl Berry  <karl@gnu.org>
86060
86061         * doc/fdl.texi: update to version 1.2.
86062
86063 2002-12-19  Karl Berry  <karl@gnu.org>
86064
86065         * config/config.guess: update from prep.
86066
86067 2002-12-18  Bruno Haible  <bruno@clisp.org>
86068
86069         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86070         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86071
86072 2002-12-17  Bruno Haible  <bruno@clisp.org>
86073
86074         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86075         stdlib.h, string.h.
86076
86077 2002-12-17  Bruno Haible  <bruno@clisp.org>
86078
86079         * lib/canon-host.c (strdup): Remove unused declaration.
86080
86081         * lib/fsusage.c: Include full_read.h.
86082         (get_fs_usage): Use full_read instead of safe_read.
86083
86084         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86085
86086 2002-12-12  Karl Berry  <karl@gnu.org>
86087
86088         * config/config.guess: update from prep.
86089
86090 2002-12-11  Bruno Haible  <bruno@clisp.org>
86091
86092         * m4/setenv.m4: New file, from gettext-0.11.5.
86093
86094 2002-12-11  Bruno Haible  <bruno@clisp.org>
86095
86096         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86097         not unsetenv().
86098         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86099         modifications:
86100
86101         2002-12-11  Bruno Haible  <bruno@clisp.org>
86102
86103                 * setenv.c (alloca): Fall back to malloc.
86104                 (freea): New macro.
86105                 (setenv): Use freea() to free memory allocated with alloca().
86106
86107         2002-11-13  Bruno Haible  <bruno@clisp.org>
86108
86109                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86110                 function declarations.
86111                 * unsetenv.c (unsetenv): Likewise.
86112
86113         2002-03-04  Bruno Haible  <bruno@clisp.org>
86114
86115                 Portability to AIX 4.3.3.
86116                 * unsetenv.c: New file, extracted from setenv.c.
86117                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86118
86119         2001-12-20  Bruno Haible  <bruno@clisp.org>
86120
86121                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86122                 use malloc instead. For SunOS 4.
86123
86124         2001-12-11  Bruno Haible  <bruno@clisp.org>
86125
86126                 * setenv.c: Declare alloca.
86127                 (compar_fn_t): New typedef.
86128                 (KNOWN_VALUE, STORE_VALUE): Use it.
86129
86130         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86131         setenv.h.
86132
86133 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86134
86135         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86136         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86137         Choose values that are less likely to collide with system fnmatch
86138         options.
86139         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86140         defined (e.g., a pure POSIX system).
86141         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86142         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86143
86144 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86145
86146         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86147         a pain in practice to deal with generated m4 files.  This change
86148         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86149
86150         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86151         and jm-glibc-io.m4, as they are no longer a special case.
86152         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86153         kludge and the auto-generation stuff.  Check only whether the
86154         functions are declared, not whether they exist, since older hosts
86155         that don't declare the functions can't use the optimization anyway.
86156
86157 2002-12-06  Jim Meyering  <jim@meyering.net>
86158
86159         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86160
86161         Merge in changes from libc's misc/error.c, in preparation
86162         for the merge of gnulib's changes back into libc.
86163
86164         * lib/error.c (_): Define only if not already defined.
86165         Move definition to follow all #include directives.
86166         Include unlocked-io.h only if !_LIBC.
86167         [_LIBC]: Include <libio/libioP.h>.
86168         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86169         (fflush): Tweak definition to use INTUSE.
86170         (putc): Define.
86171
86172 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86173
86174         * lib/alloca.c [defined emacs]: Include "lisp.h".
86175         (xalloc_die) [defined emacs]: New macro.
86176         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86177         [! defined emacs]: Include <xalloc.h>.
86178         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86179         (pointer): Typedef to POINTER_TYPE *.
86180         (malloc): Remove decl; we now always use xmalloc.
86181         (alloca): Use old-style definition, since Emacs needs this.
86182         Check for arithmetic overflow when computing combined size.
86183
86184 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86185
86186         Do not generate unlocked-io.h automatically, since it's easier to
86187         maintain it by hand.
86188
86189         * lib/unlocked-io.h: New file, from GNU diffutils,
86190         but with proper copyright notice and attribution.
86191         * lib/gen-uio: Remove.
86192         * lib/Makefile.am: Add copyright notice.
86193         (libfetish_a_SOURCES): Add unlocked-io.h.
86194         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86195         (DISTCLEANFILES, io_functions): Remove macros.
86196         (EXTRA_DIST): Remove gen_uio.
86197         (unlocked-io.h): Remove rule.
86198
86199 2002-12-04  Jim Meyering  <jim@meyering.net>
86200
86201         Reflect the fact that stat.c and lstat.c are no longer generated.
86202         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86203         (DISTCLEANFILES): Likewise.
86204         (EXTRA_DIST): Likewise.
86205         (all_local): Don't depend on stat.c or lstat.c.
86206         (stat.c, lstat.c): Remove rules.
86207         (EXTRA_DIST): Remove xstat.in.
86208
86209         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86210         * lib/stat.c: New file.  Contents mostly from xstat.in.
86211         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86212         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86213
86214         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86215         too.
86216         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86217
86218 2002-12-03  Jim Meyering  <jim@meyering.net>
86219
86220         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86221         but not semantics, to minimize the differences between these two files.
86222         (safe_read): Change comment to mention SAFE_READ_ERROR.
86223
86224         * lib/safe-read.c (IS_EINTR): Define.
86225         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86226
86227 2002-12-02  Jim Meyering  <jim@meyering.net>
86228
86229         * lib/safe-read.c (EINTR): Define.
86230         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86231         (INT_MAX): Provide fallback.
86232         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86233
86234         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86235
86236 2002-12-02  Bruno Haible  <bruno@clisp.org>
86237
86238         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86239         Define, taken from safe-read.c.
86240         (INT_MAX): Provide fallback.
86241         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86242         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86243
86244         * lib/safe-read.c (EINTR): Remove definition.
86245         (safe_read): Don't use EINTR if it is absent.
86246
86247 2002-12-01  Jim Meyering  <jim@meyering.net>
86248
86249         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86250         zero.
86251         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86252
86253 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86254
86255         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86256         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86257         with `if (! (value < limit)) abort ();', for readability.
86258
86259 2002-11-26  Karl Berry  <karl@gnu.org>
86260
86261         * lib/strdup.c: copy from libc again, with jim's ok.
86262         * lib/.cppi-disable: re-add strdup.c
86263
86264 2002-11-25  Karl Berry  <karl@gnu.org>
86265
86266         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86267         instead of "strtol.c".
86268
86269 2002-11-25  Karl Berry  <karl@gnu.org>
86270
86271         * config/install-sh: update from automake for variable quoting, $0 in
86272         error msgs, etc.
86273
86274         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86275         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86276         entry.
86277
86278 2002-11-25  Jim Meyering  <jim@meyering.net>
86279
86280         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86281
86282 2002-11-24  Karl Berry  <karl@gnu.org>
86283
86284         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86285         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86286
86287 2002-11-24  Jim Meyering  <jim@meyering.net>
86288
86289         Update from coreutils:
86290
86291         * lib/mktime.c: Merge in changes from libc.
86292
86293         Avoid a link-time failure on some Linux systems.
86294         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86295         (otherwise).
86296         (__mon_yday): Declare with the STATIC attribute.
86297         (__mktime_internal): Likewise.
86298         Based on a report from Greg Schafer.
86299
86300 2002-11-23  Jim Meyering  <jim@meyering.net>
86301
86302         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86303         Use `unsigned', not `int', as type of index.
86304
86305         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86306
86307         * lib/fsusage.c: Remove unneeded parentheses around operands of
86308         `defined'.
86309
86310 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86311
86312         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86313         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86314         so that we can be included first.
86315         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86316         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86317         No need to include stddef.h or sys/types.h any more.
86318         Surround local include files with "", not "<>".
86319         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86320         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86321         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86322         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86323         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86324         (ISPRINT): Remove; no longer needed now that we assume C89.
86325
86326         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86327         Preserve errno.
86328
86329         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86330         quotearg_char): Use SIZE_MAX rather than
86331         (size_t) -1 when we are talking about "infinity".
86332
86333         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86334
86335 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86336
86337         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86338         hint that one should use `if (! x) abort ();' rather than `assert
86339         (x);', and anyway it's one less thing to worry about configuring.
86340         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86341         hash_rehash, hash_insert): Use abort rather than assert.
86342
86343 2002-11-22  Bruno Haible  <bruno@clisp.org>
86344
86345         * lib/safe-read.h: Assume C89. Add comments.
86346         (safe_read): Change return type to size_t.
86347         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86348         byte counts > SSIZE_MAX correctly.
86349         * lib/safe-write.h: New file.
86350         * lib/safe-write.c: New file.
86351         * lib/full-read.h: New file.
86352         * lib/full-read.c: New file.
86353         * lib/full-write.h: Assume C89. Add comments.
86354         * lib/full-write.c: Include safe-write.h.
86355         (full_write): Rewritten to use safe_write.
86356         Suggested by Jim Meyering and Paul Eggert.
86357
86358 2002-11-21  Jim Meyering  <jim@meyering.net>
86359
86360         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86361
86362         Merge in changes from the coreutils.
86363
86364         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86365         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86366         <stdint.h>.
86367         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86368         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86369         int.  Work more efficiently if X is the same width as uintmax_t.
86370         Do not compare X to -1, to avoid bogus compiler warning.
86371         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86372         Don't assume that f_frsize and f_bsize are the same type.
86373
86374         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86375         warning on FreeBSD.
86376
86377         * lib/makepath.c (make_path): Restore umask *before* creating the final
86378         component.
86379         (make_path): Minor reformatting.
86380
86381         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86382         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86383         HAVE_MALLOC/HAVE_REALLOC.
86384
86385         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86386         dummy ones.  At least on GNU/Linux systems, `auto' means something
86387         else.
86388         From Michael Stone.
86389
86390 2002-11-21  Bruno Haible  <bruno@clisp.org>
86391
86392         Remove case insensitive option matching.
86393         * lib/argmatch.h (argcasematch): Remove declaration.
86394         (ARGCASEMATCH): Remove macro.
86395         (__xargmatch_internal): Remove case_sensitive argument.
86396         (XARGMATCH): Update.
86397         (XARGCASEMATCH): Remove macro.
86398         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86399         case_sensitive argument.
86400         (argcasematch): Remove function.
86401         (__xargmatch_internal): Remove case_sensitive argument.
86402         (main): Use XARGMATCH instead of XARGCASEMATCH.
86403
86404         * lib/xmalloc.c: Change compile-time error message. Add comment about
86405         required autoconf version.
86406
86407 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86408
86409         Merge argmatch cleanups from Bison.  Assume C89.
86410
86411         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86412         Include stdlib.h, for EXIT_FAILURE.
86413         Always include <string.h>, since we assume C89.
86414         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86415         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86416         Include <stddef.h> instead, since it's all we need for size_t.
86417         (PARAMS): Remove.  All uses removed.
86418         (ARRAY_CARDINALITY): Do not bother to #undef.
86419         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86420         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86421         Remove unnecessary parentheses.
86422         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86423         Insert necessary parentheses.
86424         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86425         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86426
86427 2002-11-19  Bruno Haible  <bruno@clisp.org>
86428
86429         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86430         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86431
86432         * lib/mbswidth.h (PARAMS): Remove macro.
86433         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86434         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86435
86436         * lib/gcd.h (PARAMS): Remove macro.
86437         (gcd): Use ANSI C function declarations.
86438         * lib/gcd.c (gcd): Likewise.
86439
86440 2002-11-15  Bruno Haible  <bruno@clisp.org>
86441
86442         * lib/strcspn.c: Include <stddef.h>.
86443         (strcspn): Use ANSI C function declaration. Change return type to
86444         size_t. Use NULL.
86445         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86446         (strpbrk): Use NULL.
86447         * lib/strpbrk.h (PARAMS): Remove macro.
86448         (strpbrk): Use ANSI C function declaration.
86449         * lib/strstr.c: Don't include <sys/types.h>.
86450         * lib/strstr.h (PARAMS): Remove macro.
86451         (strstr): Use ANSI C function declarations.
86452
86453 2002-11-14  Karl Berry  <karl@gnu.org>
86454
86455         * config/mkinstalldirs: `do' on separate line, instead of
86456         `for var; do'.
86457
86458 2002-11-06  Bruno Haible  <bruno@clisp.org>
86459
86460         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86461         * lib/gcd.c (gcd): Likewise.
86462
86463 2002-11-05  Bruno Haible  <bruno@clisp.org>
86464
86465         * lib/gcd.h: New file, from gettext-0.11.5.
86466         * lib/gcd.c: New file, from gettext-0.11.5.
86467
86468 2002-11-05  Bruno Haible  <bruno@clisp.org>
86469
86470         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86471         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86472         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86473         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86474
86475         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86476         <libintl.h>.
86477         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86478         <libintl.h>.
86479
86480         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86481         * lib/human.c: Include gettext.h instead of <libintl.h>.
86482         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86483         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86484         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86485         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86486         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86487         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86488         (textdomain): Remove definition.
86489         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86490
86491         * lib/long-options.c: Remove include of <libintl.h> and definition of
86492         _.
86493         * lib/same.c: Remove include of <libintl.h> and definition of _.
86494
86495 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86496
86497         * lib/config.charset: A few additions for Solaris.
86498
86499 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86500
86501         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86502         * lib/localcharset.c (locale_charset): Declare as extern "C".
86503
86504 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86505
86506         * lib/config.charset: msdos in uk_UA uses CP1125.
86507
86508 2002-11-04  Bruno Haible  <bruno@clisp.org>
86509
86510         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86511         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86512         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86513         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86514         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86515
86516 2002-11-04  Bruno Haible  <bruno@clisp.org>
86517
86518         * lib/localcharset.c (locale_charset): Don't return an empty string.
86519
86520 2002-11-04  Bruno Haible  <bruno@clisp.org>
86521
86522         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86523         aliases.
86524
86525 2002-11-04  Bruno Haible  <bruno@clisp.org>
86526
86527         * lib/config.charset: Update for newest glibc. Add canonical names
86528         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86529
86530 2002-11-04  Bruno Haible  <bruno@clisp.org>
86531
86532         * lib/config.charset: Add support for NetBSD.
86533
86534 2002-11-04  Bruno Haible  <bruno@clisp.org>
86535
86536         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86537
86538 2002-11-01  Bruno Haible  <bruno@clisp.org>
86539
86540         * configure.in: Add AC_CONFIG_AUX_DIR call.
86541         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86542         test/Makefile.
86543         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86544
86545 2002-09-28  Karl Berry  <karl@gnu.org>
86546
86547         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86548         installed automake until the next release, since changes have been
86549         made.
86550
86551 2002-09-25  Karl Berry  <karl@gnu.org>
86552
86553         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86554         * lib/getopt*: copy from libc/posix.
86555         * lib/gettext.h: copy from gettext.
86556         * lib/.cppi-disable: add strdup.c, gettext.h.
86557
86558 2002-09-25  Karl Berry  <karl@gnu.org>
86559
86560         * config/srclist.txt: enable gettext.h check.
86561         * config/config.{guess,sub}: update from prep.
86562         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86563                 from automake 1.6.3.
86564         See srclist*.
86565
86566 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86567
86568         * regex.c (PATFETCH): Remove the translating fetch.
86569         (PATFETCH_RAW): Rename to PATFETCH.
86570         (set_image_of_range): New fun.
86571         (SET_RANGE_TABLE_WORK_AREA): Use it.
86572         (regex_compile): Don't translate the pattern chars so eagerly.
86573         Only do it when inserting an `exactn' bytecode or when handling
86574         a char-range.
86575         (mutually_exclusive_p): Avoid empty statement.
86576
86577 2002-07-06  Jim Meyering  <meyering@lucent.com>
86578
86579         * m4/README: Don't mention Makefile.am.in.
86580         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86581
86582 2002-07-01  Jim Meyering  <meyering@lucent.com>
86583
86584         * lib/c-stack.c: Include sys/time.h.
86585         From Volker Borchert.
86586
86587 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86588
86589         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86590
86591 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86592
86593         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86594         New macro.  Use it uniformly instead of
86595         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86596         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86597         reported by Vin Shelton.
86598
86599 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86600
86601         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86602         Do not assume SA_SIGINFO behavior.
86603         Bug reported by Jim Meyering on NetBSD 1.5.2.
86604
86605 2002-06-22  Jim Meyering  <meyering@lucent.com>
86606
86607         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86608         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86609
86610         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86611         now that configure.ac uses AC_GNU_SOURCE.
86612         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86613         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86614
86615         Update to latest tools.  Suggestions from Paul Eggert.
86616         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86617         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86618         * m4/fnmatch.m4: Likewise.
86619         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86620         to AC_HEADER_STDBOOL
86621
86622 2002-06-22  Jim Meyering  <meyering@lucent.com>
86623
86624         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86625         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86626
86627 2002-06-22  Jim Meyering  <meyering@lucent.com>
86628
86629         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86630
86631         * lib/exitfail.c, exitfail.h: Likewise.
86632         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86633
86634         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86635         of fnmatch.h.
86636         (EXTRA_DIST): Add fnmatch_loop.c.
86637         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86638
86639         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86640         * lib/fnmatch.c: Update from diffutils-2.8.2.
86641         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86642         * lib/fnmatch.h: Remove file.
86643
86644 2002-06-21  Jim Meyering  <meyering@lucent.com>
86645
86646         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86647         * m4/mbrtowc.m4: Likewise.
86648
86649         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86650         * m4/mbswidth.m4: Reflect name change:
86651         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86652         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86653
86654         * m4/lib-link.m4: Update from gettext-0.11.2.
86655         * m4/gettext.m4: Likewise.
86656
86657         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86658         From Alfred M. Szmidt.
86659
86660 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86661
86662         * lib/file-type.h: Report an error if neither S_ISREG nor
86663         S_IFREG is defined, instead of using a test specific to glibc
86664         2.2.  This should be safe, since POSIX requires S_ISREG and
86665         Unix Version 7 had S_IFREG.  We don't need to check for
86666         <sys/types.h> since we don't use any symbols that it defines.
86667
86668 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86669
86670         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86671         $@-t, so that each temporary file name is unique and valid in the first
86672         8 characters, for operation under DOS.
86673
86674 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86675
86676         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86677
86678 2002-06-15  Jim Meyering  <meyering@lucent.com>
86679
86680         Work even with DJGPP 2.03, which lacks support for symlinks.
86681         From Richard Dawe.
86682         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86683         is defined.
86684         * lib/lchown.c (S_ISLNK): Likewise.
86685
86686 2002-06-15  Jim Meyering  <meyering@lucent.com>
86687
86688         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86689         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86690         have been included before this file.
86691
86692 2002-06-14  Jim Meyering  <meyering@lucent.com>
86693
86694         * lib/file-type.h: Use the version from diffutils-2.8.2.
86695         * lib/file-type.c: Likewise.
86696
86697 2002-06-07  Jim Meyering  <meyering@lucent.com>
86698
86699         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86700         They're needed at least for NetBSD 1.5.2.
86701         ($statxfs_includes): Include those same headers.
86702         ($statxfs_includes): Include sys/vfs.h if available.
86703         ($statxfs_includes): Likewise for sys/statvfs.h.
86704         Check for the following members in both structs statfs and statvfs:
86705         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86706
86707 2002-06-01  Jim Meyering  <meyering@lucent.com>
86708
86709         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86710         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86711
86712 2002-05-28  Jim Meyering  <meyering@lucent.com>
86713
86714         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86715         Reported by Volker Borchert.
86716
86717 2002-05-27  Jim Meyering  <meyering@lucent.com>
86718
86719         Fix a problem seen only on nonconforming systems whereby ls.c's
86720         use of localtime, and then of gettimeofday would cause trouble:
86721         the localtime call used to initialize rpl_gettimeofday's save
86722         mechanism would clobber ls's current local time information so
86723         that in any long listing the first file would always be listed
86724         with date 1970-01-01.  Analysis by Volker Borchert.
86725
86726         * lib/gettimeofday.c (localtime): Undefine.
86727         (rpl_localtime): New function.
86728
86729 2002-05-27  Jim Meyering  <meyering@lucent.com>
86730
86731         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86732         localtime.
86733
86734         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86735         use the replacement function; it wouldn't resolve at link time.
86736         Reported by Volker Borchert.
86737
86738 2002-05-22  Jim Meyering  <meyering@lucent.com>
86739
86740         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86741         file-type.h.
86742         * lib/file-type.h: New file.
86743         * lib/file-type.c (file_type): New file/function.  Extracted from
86744         diffutils.
86745
86746 2002-04-30  Jim Meyering  <meyering@lucent.com>
86747
86748         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86749
86750 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86751
86752         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86753
86754 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86755
86756         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86757         Do not check for alloca.h (no longer used) or stdbool.h (was never
86758         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86759
86760 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86761
86762         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86763
86764 2002-04-29  Jim Meyering  <meyering@lucent.com>
86765
86766         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86767         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86768         Use AC_FUNC_STRNLEN here instead.
86769
86770         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86771         With autoconf-2.53a, it's part of AC_PROG_CC.
86772
86773 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86774
86775         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86776         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86777
86778 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86779
86780         * lib/sig2str.h, lib/sig2str.c: New files.
86781         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86782
86783 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86784
86785         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86786         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86787         of 127, since 64 is the largest conceivable number for ancient
86788         nonstandard hosts.
86789         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86790
86791 2002-04-28  Jim Meyering  <meyering@lucent.com>
86792
86793         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86794
86795 2002-04-24  Jim Meyering  <meyering@lucent.com>
86796
86797         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86798         (jm_PREREQ): Use it.
86799
86800         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86801         mach/mach.h fcntl.h.
86802         Check for this function: setlocale.
86803
86804 2002-04-24  Jim Meyering  <meyering@lucent.com>
86805
86806         * lib/gettext.h: New file, from Gettext.
86807         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86808         (libfetish_a_SOURCES): Add gettext.h.
86809
86810 2002-04-16  Jim Meyering  <meyering@lucent.com>
86811
86812         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86813         ut_pid, ut_id, ut_exit.
86814
86815 2002-04-16  Jim Meyering  <meyering@lucent.com>
86816
86817         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86818         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86819         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86820
86821 2002-04-12  Jim Meyering  <meyering@lucent.com>
86822
86823         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86824         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86825         existence of the getmntinfo function.  Needed for Darwin 5.3.
86826
86827         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86828         This is necessary at least on Darwin 5.3.
86829
86830         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86831         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86832         strnlen.o in the library, and that makes some versions of ranlib
86833         object.
86834
86835 2002-04-12  Jim Meyering  <meyering@lucent.com>
86836
86837         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86838
86839 2002-04-09  Jim Meyering  <meyering@lucent.com>
86840
86841         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86842         to be more precise.  Rather than saying we're checking whether the
86843         function `works', say what we're testing.
86844         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86845         Reported by Bruno Haible.
86846
86847 2002-03-10  Jim Meyering  <meyering@lucent.com>
86848
86849         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86850         Suggestion from Santiago Vila.
86851
86852 2002-03-08  Jim Meyering  <meyering@lucent.com>
86853
86854         * lib/rename.c: Mention that this wrapper is needed also on
86855         mips-dec-ultrix4.4 systems.
86856
86857 2002-03-02  Jim Meyering  <meyering@lucent.com>
86858
86859         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86860         not HAVE_CLOCK_SETTIME.
86861
86862 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86863
86864         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86865         Check for clock_settime.
86866
86867 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86868
86869         * lib/nanosleep.h: Rename to....
86870         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86871
86872         * lib/gettime.c: New file.
86873         * lib/settime.c: New file.
86874         * lib/stime.c: Remove.
86875
86876         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86877         timespec.h.  Remove nanosleep.h.
86878
86879 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86880
86881         * m4/acl.m4: New file.
86882         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86883         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86884
86885 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86886
86887         * lib/acl.c, lib/acl.h: New files.
86888         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86889
86890 2002-02-24  Jim Meyering  <meyering@lucent.com>
86891
86892         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86893         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86894         cause trouble.  Reported by Nelson Beebe.
86895
86896 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86897
86898         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86899         compilers that don't know that xalloc_die never returns.
86900
86901 2002-02-20  Jim Meyering  <meyering@lucent.com>
86902
86903         * lib/getdate.c: Regenerate using bison-1.33.
86904
86905 2002-02-17  Jim Meyering  <meyering@lucent.com>
86906
86907         * config/config.guess (main): Don't use `head -1'; it's no longer
86908         portable. Use `sed 1q' instead.
86909
86910 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86911
86912         * m4/codeset.m4: Upgrade to gettext-0.11.
86913         * m4/gettext.m4: Upgrade to gettext-0.11.
86914         * m4/glibc21.m4: Upgrade to gettext-0.11.
86915         * m4/iconv.m4: Upgrade to gettext-0.11.
86916         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86917         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86918         * m4/lib-ld.m4: New file, from gettext-0.11.
86919         * m4/lib-link.m4: New file, from gettext-0.11.
86920         * m4/lib-prefix.m4: New file, from gettext-0.11.
86921         * m4/progtest.m4: Upgrade to gettext-0.11.
86922
86923 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86924
86925         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86926         (jm_PREREQ): Use it.
86927
86928 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86929
86930         * lib/posixver.c, lib/posixver.h: New files.
86931         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86932
86933 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86934             Bruno Haible  <bruno@clisp.org>
86935
86936         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86937         (fwrite_success_callback): New declaration.
86938         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86939         print_unicode_char. Call failure callback instead of error.
86940         (fwrite_success_callback): New function.
86941         (exit_failure_callback): New function.
86942         (fallback_failure_callback): New function.
86943         (print_unicode_char): Call unicode_to_mb.
86944
86945 2002-01-26  Jim Meyering  <meyering@lucent.com>
86946
86947         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86948         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86949
86950 2002-01-26  Jim Meyering  <meyering@lucent.com>
86951
86952         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86953
86954 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86955
86956         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86957
86958 2002-01-22  Jim Meyering  <meyering@lucent.com>
86959
86960         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86961         Otherwise, some versions of automake would omit the rule that makes
86962         Makefile from Makefile.in.
86963
86964 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86965
86966         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86967         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86968         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86969         (memcoll): Set errno to zero if there is no error.
86970
86971         * lib/quotearg.c (quotearg_buffer_restyled):
86972         Fix bug with quoting buffers containing NUL when backslashing escapes.
86973         This bug was exposed by the other changes in this patch.
86974         (quotearg_n_options): New arg ARGSIZE.
86975         All callers changed.
86976         (quoting_options_from_style): New function.
86977         (quotearg_n_style): Use it.
86978         (quotearg_n_style_mem): New function.
86979
86980         * lib/quotearg.h (quotearg_n_style_mem): New function.
86981
86982 2002-01-19  Jim Meyering  <meyering@lucent.com>
86983
86984         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86985         Remove useless quotes: DF_PROG="df".
86986         * m4/strnlen.m4: New file.
86987
86988 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86989
86990         * lib/backupfile.c (ISDIGIT): Comment fix.
86991         * lib/getdate.y (ISDIGIT): Likewise.
86992         * lib/posixtm.c (ISDIGIT, year): Likewise.
86993         * lib/strverscmp.c (ISDIGIT): Likewise.
86994         * lib/userspec.c (ISDIGIT): Likewise.
86995
86996 2002-01-16  Jim Meyering  <meyering@lucent.com>
86997
86998         * lib/getdate.y: Add three semicolons, each just before a closing
86999         brace. Bison (as of version 1.31) no longer papers over that mistake.
87000
87001 2002-01-05  Jim Meyering  <meyering@lucent.com>
87002
87003         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87004
87005 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87006
87007         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87008         not silently exit merely because the output buffer happens to
87009         have nothing pending.
87010
87011 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87012
87013         See the big note in ../ChangeLog.
87014         * lib/human.c (suffixes): Prefer K to k for 1024.
87015         (generate_suffix_backwards): New function.
87016         (human_readable_inexact): Use it.
87017         * lib/xstrtol.c (__xstrtol): If there is no number but there
87018         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87019         Accept 'K' as well as 'k'.
87020
87021 2001-12-15  Jim Meyering  <meyering@lucent.com>
87022
87023         * lib/regex.h (__restrict_arr): Update from libc.
87024
87025         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87026         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87027         (STREQ): Define.
87028
87029 2001-12-14  Jim Meyering  <meyering@lucent.com>
87030
87031         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87032         Suggestion from Bruno Haible.
87033
87034 2001-12-10  Jim Meyering  <meyering@lucent.com>
87035
87036         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87037         xrealloc, Instead, include "xalloc.h".
87038         (initbuffer): Don't cast xmalloc return value to char*.
87039         (readline): Reword comment.
87040         Don't cast xrealloc return value to char*
87041         Return NULL, not 0.
87042
87043 2001-12-09  Jim Meyering  <meyering@lucent.com>
87044
87045         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87046         about `signed and unsigned type in conditional expression'.
87047         * lib/posixtm.c (posix_time_parse): Likewise.
87048
87049         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87050
87051         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87052         to avoid a pedantic warning.
87053
87054         * lib/getstr.c: Don't include assert.h.
87055         (getstr): Remove warning-evoking assertions.
87056         Return -1 if offset parameter is out of bounds.
87057         Change the type of a local from int to size_t.
87058
87059         * lib/strftime.c (my_strftime_localtime_r): Include this function
87060         definition in the `#if ! HAVE_TM_GMTOFF' block.
87061
87062         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87063         Include xalloc.h instead.
87064
87065 2001-12-02  Jim Meyering  <meyering@lucent.com>
87066
87067         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87068         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87069         included.
87070
87071         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87072         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87073
87074 2001-11-30  Akim Demaille  <akim@epita.fr>
87075
87076         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87077         before being defined.
87078
87079 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87080
87081         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87082         First arg is int, not unsigned.
87083         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87084         (SIZE_MAX, UINT_MAX): New macros.
87085         (quotearg_n_options): Abort if N is negative.
87086         Avoid overflow check on hosts where size_t is 64 bits and int
87087         is 32 bits, as overflow is impossible there.
87088         Fix off-by-one typo that caused unnecessary reallocation.
87089
87090 2001-11-27  Jim Meyering  <meyering@lucent.com>
87091
87092         * lib/tempname.c: Merge with version from libc.
87093         * lib/regex.c: Likewise.
87094
87095         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87096         systems for which STDC_HEADERS is 0, it was not included, resulting in
87097         a warning about an integer-to-pointer conversion problem with getenv.
87098         Reported by Volker Borchert.
87099
87100 2001-11-26  Jim Meyering  <meyering@lucent.com>
87101
87102         * lib/gtod.h: Remove file.
87103         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87104         * lib/gettimeofday.c: Don't include gtod.h.
87105         (GTOD_init): Remove function.
87106         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87107         Suggestion from Volker Borchert.
87108
87109 2001-11-23  Jim Meyering  <meyering@lucent.com>
87110
87111         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87112         it.
87113         * lib/hash.c (struct hash_table): Define it here instead.
87114
87115 2001-11-22  Jim Meyering  <meyering@lucent.com>
87116
87117         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87118
87119 2001-11-20  Jim Meyering  <meyering@lucent.com>
87120
87121         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87122         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87123
87124 2001-11-19  Jim Meyering  <meyering@lucent.com>
87125
87126         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87127         directory.  Use "conftestXXXXXX" as the template.
87128         Suggestion from Paul Eggert.
87129
87130         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87131         immediately, so the test doesn't mistakenly hit the max-open-files
87132         limit.
87133
87134 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87135
87136         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87137         (TEMPORARIES): New macro.
87138         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87139         removes an artificial limitation (e.g. HP-UX 10.20, where
87140         TMP_MAX is 17576).
87141
87142 2001-11-18  Jim Meyering  <meyering@lucent.com>
87143
87144         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87145
87146 2001-11-18  Jim Meyering  <meyering@lucent.com>
87147
87148         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87149         on SunOS 4.
87150
87151         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87152         files will be created before anything else.
87153
87154 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87155
87156         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87157         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87158
87159 2001-11-17  Jim Meyering  <meyering@lucent.com>
87160
87161         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87162         Prompted by a report from Bob Proulx.
87163
87164         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87165         Instead, require UTILS_FUNC_MKSTEMP.
87166
87167 2001-11-17  Jim Meyering  <meyering@lucent.com>
87168
87169         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87170         Now, that's done as part of AC_FUNC_STRTOD.
87171
87172 2001-11-17  Jim Meyering  <meyering@lucent.com>
87173
87174         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87175         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87176         rather than group writable.  Patch by Juan F. Codagnone.
87177
87178         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87179         xrealloc, Instead, include "xalloc.h".
87180
87181         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87182         Remove explicit declarations of xmalloc, xrealloc,
87183         and xstrdup.  Instead, include "xalloc.h".
87184
87185         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87186         unlocked-io.h.
87187         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87188         Likewise.
87189         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87190
87191         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87192         Reported by Padraig Brady.
87193
87194         * lib/mkstemp.c: #undef mkstemp.
87195         Include config.h.
87196         (rpl_mkstemp): Rename from mkstemp.
87197         Protoize.
87198
87199 2001-11-16  Jim Meyering  <meyering@lucent.com>
87200
87201         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87202         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87203         determine the amount of total physical memory, use pstat_getstatic.
87204         HPUX-11 doesn't define _SC_PHYS_PAGES.
87205         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87206         If sysconf couldn't be used to determine the amount of available
87207         physical memory, use both pstat_getstatic and pstat_getdynamic.
87208         Based on a patch from Bob Proulx.
87209
87210 2001-11-10  Jim Meyering  <meyering@lucent.com>
87211
87212         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87213         (jm_PREREQ): Use it.
87214
87215 2001-11-09  Jim Meyering  <meyering@lucent.com>
87216
87217         * m4/jm-macros.m4: Require autoconf-2.52f.
87218         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87219         Use these AC_-prefixed names, not the AM_-prefixed ones.
87220
87221         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87222
87223 2001-11-05  Jim Meyering  <meyering@lucent.com>
87224
87225         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87226
87227 2001-11-04  Jim Meyering  <meyering@lucent.com>
87228
87229         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87230         $DEFS.
87231
87232 2001-11-03  Jim Meyering  <meyering@lucent.com>
87233
87234         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87235         of AC_DEFUN.
87236
87237         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87238         know the name of the variable in the macro definition.
87239
87240 2001-11-03  Jim Meyering  <meyering@lucent.com>
87241
87242         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87243         in argmatch_to_argument call.
87244
87245         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87246         argument.
87247
87248         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87249         e.g., a fault due to an attempt to free a NULL pointer.
87250
87251 2001-11-01  Jim Meyering  <meyering@lucent.com>
87252
87253         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87254         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87255
87256 2001-11-01  Jim Meyering  <meyering@lucent.com>
87257
87258         * lib/dirfd.c, lib/dirfd.h: New files.
87259         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87260
87261         * lib/hash.c (hash_print) [TESTING]: Clean up.
87262
87263 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87264
87265         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87266         to avoid a warning if -Wall.
87267
87268 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87269
87270         * README: New file
87271         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87272         (per RMS's instructions, this is now the canonical source)
87273         * lgpl/, gpl/: New directories.
87274
87275 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87276
87277         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87278
87279 2001-10-21  Jim Meyering  <meyering@lucent.com>
87280
87281         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87282         this code would end up calling gettext even in packages built
87283         with --disable-nls.
87284         * lib/getopt.c (_): Likewise.
87285         * lib/regex.c (_): Likewise.
87286
87287 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87288
87289         * m4/error.m4 (jm_PREREQ_ERROR):
87290         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87291         AC_FUNC_STRERROR_R does that.
87292         Check for strerror declaration.
87293
87294         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87295         are supposed to have them these days.
87296         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87297         Merge changes from latest Autoconf CVS.
87298         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87299         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87300         POSIX decided to standardize on the int flavor of strerror_r.
87301
87302 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87303
87304         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87305         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87306         Use strerror_r that is only a macro, even if it is not a function.
87307         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87308         (private_strerror): Use prototypes, not old-style function definition.
87309         (print_errno_message): New function.
87310         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87311         char*-flavored one.
87312         (error_tail, error, error_at_line): Use it.
87313
87314 2001-10-11  Jim Meyering  <meyering@lucent.com>
87315
87316         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87317         and quote_n (1, ... to avoid clobbering a buffer.
87318
87319 2001-10-05  Jim Meyering  <meyering@lucent.com>
87320
87321         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87322         hash-pjw.h.
87323         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87324         * lib/hash-pjw.h: New file.
87325
87326 2001-09-30  Jim Meyering  <meyering@lucent.com>
87327
87328         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87329         `struct fsstat' has the `f_fstypename' member.
87330         Use that to define FS_TYPE, which is now used to make
87331         the getfsstat link test tighter.
87332
87333 2001-09-30  Jim Meyering  <meyering@lucent.com>
87334
87335         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87336         Include <sys/ucred.h>, for Apple Darwin.
87337         Include sys/mount.h and sys/fs_types.h only if available.
87338         (FS_TYPE): Define.
87339         (read_filesystem_list): Use FS_TYPE.
87340
87341 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87342
87343         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87344         a boolean context.
87345
87346 2001-09-29  Jim Meyering  <meyering@lucent.com>
87347
87348         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87349         [one-argument getmntent function]): Include stdio.h before mntent.h.
87350         SunOS 4.1.x needs it for the declaration of `FILE'.
87351         Patch by Volker Borchert.
87352
87353         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87354         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87355         sys/fs_types.h, and make the link-test for getfsstat guard #include
87356         directives with appropriate #if HAVE_*_H tests so that we can
87357         detect getfsstat on Apple Darwin1.3.7 systems.
87358         Reported by Nelson Beebe.
87359         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87360
87361 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87362
87363         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87364         #defines strtoimax.  Also treat the other strto* functions
87365         like strtoimax.
87366
87367         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87368         Check for strtoul and strtoumax,
87369         as those declarations are made even in the signed case.
87370         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87371         Likewise, for strtol and strtoimax.
87372
87373 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87374
87375         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87376         #defines strtoimax.  Also treat the other strto* functions
87377         like strtoimax.
87378
87379         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87380         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87381         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87382
87383 2001-09-26  Jim Meyering  <meyering@lucent.com>
87384
87385         Most macros in unlocked-io.h had the wrong number of arguments.
87386         * lib/gen-uio: New script.
87387         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87388         * lib/unlocked-io.hin: Remove file.
87389         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87390         rather than trying to embed it here.
87391         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87392         Reported by Padraig Brady.
87393
87394 2001-09-25  Volker Borchert  <bt@teknon.de>
87395
87396         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87397         `result'.
87398
87399 2001-09-24  Jim Meyering  <meyering@lucent.com>
87400
87401         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87402
87403 2001-09-23  Jim Meyering  <meyering@lucent.com>
87404
87405         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87406         instead of the mere test for existence of mntent.h.  The latter
87407         would get a false-positive on AIX 3.4 systems.
87408         In the outer getmntent if-block, don't die if neither of the getmntent
87409         tests succeeds.  Instead, just fall through and continue with the
87410         remaining tests.
87411
87412 2001-09-23  Jim Meyering  <meyering@lucent.com>
87413
87414         * lib/mountlist.c: Remove useless parentheses in #if directives.
87415         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87416         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87417
87418 2001-09-22  Jim Meyering  <meyering@lucent.com>
87419
87420         * m4/gettext.m4: New file.  From gettext.
87421         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87422         * m4/progtest.m4: Likewise
87423         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87424         * m4/glibc21.m4: Likewise.
87425
87426         * m4/libintl.m4: Remove.  No longer used.
87427
87428 2001-09-22  Jim Meyering  <meyering@lucent.com>
87429
87430         * lib/localcharset.c: Update from latest gettext.
87431         * lib/config.charset: Likewise.
87432
87433 2001-09-20  Jim Meyering  <meyering@lucent.com>
87434
87435         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87436         strtoimax.
87437         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87438         strtoumax.
87439
87440 2001-09-20  Jim Meyering  <meyering@lucent.com>
87441
87442         * lib/xstrtol.c (strtoimax): Guard declaration with
87443         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87444         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87445         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87446         (strtoumax): Likewise, for completeness (it wasn't necessary).
87447
87448 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87449
87450         * lib/strtoimax.c (HAVE_LONG_LONG):
87451         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87452         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87453         to work around bug in IBM C compiler.
87454
87455 2001-09-17  Jim Meyering  <meyering@lucent.com>
87456
87457         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87458         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87459         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87460         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87461         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87462         whenever the right hand side need not be expanded by the shell.
87463
87464 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87465
87466         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87467         library.  It's not correct, as some older glibcs are buggy.
87468         fnmatch wasn't fixed until glibc 2.2.
87469
87470         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87471         special shell magic here.
87472
87473 2001-09-16  Jim Meyering  <meyering@lucent.com>
87474
87475         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87476         * m4/jm-macros.m4: Require it.
87477
87478 2001-09-16  Jim Meyering  <meyering@lucent.com>
87479
87480         * lib/mkdir.c: New file.
87481
87482 2001-09-15  Jim Meyering  <meyering@lucent.com>
87483
87484         * m4/jm-macros.m4: Check for help2man.
87485
87486 2001-09-11  Jim Meyering  <meyering@lucent.com>
87487
87488         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87489         The body, by Paul Eggert, was moved here from configure.in.
87490         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87491
87492 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87493
87494         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87495         (jm_PREREQ): Use it.
87496
87497 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87498
87499         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87500         Use ssize_t, not int, to store result of readlink.
87501         Check for ssize_t overflow as well as size_t overflow,
87502         as POSIX says the result of readlink is implementation-defined
87503         when ssize_t overflows.
87504         Remove unnecessary cast to char*.
87505         Use free+malloc instead of realloc, as the storage doesn't need
87506         to be preserved and it's clearer and can be more efficient that way.
87507         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87508         * lib/xreadlink.h (xreadlink): Update prototype.
87509
87510 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87511
87512         * lib/xgetcwd.c: Revert some of the previous change; intead,
87513         fix the HAVE_GETCWD_NULL code to behave more like the
87514         !HAVE_GETCWD_NULL code used to.
87515
87516         Include "xalloc.h".
87517         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87518         invoke xalloc_die.
87519
87520 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87521
87522         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87523         sys/param.h, as pathmax.h includes them.
87524
87525 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87526
87527         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87528         (jm_PREREQ_XGETCWD): New macro.
87529
87530         * m4/getcwd.m4: New file.
87531
87532 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87533
87534         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87535         like the HAVE_GETCWD_NULL code.
87536         Include pathmax.h if not HAVE_GETCWD.
87537         Do not include xalloc.h.
87538         (INITIAL_BUFFER_SIZE): New symbol.
87539         Do not use xmalloc / xrealloc, since the caller is responsible for
87540         handling errors.  Preserve errno around `free' during failure.
87541         Do not overrun buffer when using getwd.
87542
87543 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87544
87545         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87546         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87547         getcwd (NULL, 0).
87548
87549 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87550
87551         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87552         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87553         spotted by Jim Meyering.
87554
87555 2001-09-03  Jim Meyering  <meyering@lucent.com>
87556
87557         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87558         failure.
87559
87560 2001-09-02  Jim Meyering  <meyering@lucent.com>
87561
87562         * lib/error.c: Update from GNU libc.
87563
87564 2001-09-01  Jim Meyering  <meyering@lucent.com>
87565
87566         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87567         Used by df.
87568
87569 2001-09-01  Jim Meyering  <meyering@lucent.com>
87570
87571         * lib/xreadlink.c: New file.
87572         * lib/xreadlink.h: New file.
87573         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87574         xreadlink.h.
87575
87576         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87577         doesn't conflict with sparc Solaris 7's definition in
87578         /usr/include/sys/int_types.h.
87579
87580         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87581         files.
87582         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87583         and strncasecmp as r-values.  Unixware didn't have declarations.
87584
87585 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87586
87587         * lib/xstrtol.h: Add copyright notice.
87588         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87589         LONGINT_INVALID_SUFFIX_CHAR.
87590
87591 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87592
87593         * lib/xstrtol.c (strtoimax): New decl.
87594
87595 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87596
87597         * lib/xgetcwd.c: Don't include pathmax.h.
87598         Include stdlib.h and unistd.h if available.
87599         Include xalloc.h.
87600         (xmalloc, xstrdup, free): Remove decls.
87601         (xgetcwd): Don't assume sizes fit in unsigned.
87602         Check for overflow when computing sizes.
87603         Simplify reallocation code.
87604
87605 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87606
87607         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87608         a directory's st_size can have an arbitrary value, so the old
87609         usage could waste an arbitrary amount of memory.  All uses
87610         changed.
87611         * lib/savedir.h: Update prototype.
87612
87613 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87614
87615         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87616
87617         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87618         old strtoimax.c.
87619
87620         Also, make the following further changes to make this file's
87621         configuration more similar to that of strtol.c:
87622         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87623         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87624         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87625         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87626         changed to signed values.
87627
87628         And make the following changes as well:
87629         Fix copyright notice, as 1999 was missing.
87630         (verify): New macro.
87631         (strtoimax): Check sizes at compile-time, not run-time.
87632         Prefer strtol to strtoll if both work.
87633         (main): Remove; it was not that useful and was a pain to maintain.
87634
87635         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87636
87637 2001-08-31  Jim Meyering  <meyering@lucent.com>
87638
87639         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87640         Use an initial, malloc'd, buffer of length 128 rather than
87641         a statically allocated one of length 1024.
87642
87643 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87644
87645         Simplify code, partly by assuming autoconf 2.52 semantics.
87646
87647         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87648
87649         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87650         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87651         All uses removed.
87652         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87653         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87654         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87655         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87656         jm_AC_HEADER_INTTYPES_H.
87657         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87658
87659         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87660
87661         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87662         Quote first arg of AC_DEFUN.
87663         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87664         since they are needed to parse the include file even if we need
87665         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87666         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87667         but with opposite signedness.
87668
87669 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87670
87671         Merge 'exclude' changes from tar 1.13.22.
87672         This fixes one or two unlikely storage allocation overflow bugs,
87673         but doesn't change user-visible behavior otherwise.
87674
87675 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87676
87677         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87678         (jm_PREREQ_EXCLUDE): New macro.
87679
87680 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87681
87682         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87683         tm to be declared.
87684
87685 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87686
87687         * lib/hash.c: Remove '2001' from copyright notice.
87688
87689 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87690
87691         * lib/full-write.h: New file.
87692         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87693         * lib/full-write.c: Correct credits, as cccp.c no longer
87694         exists and anyway it was so heavily changed from the old cccp
87695         code as to be unrecognizable.  Include full-write.h.
87696         (full_write): Return size_t, with short writes meaning failure.
87697         All callers changed.  This fixes a bug with large buffers
87698         on 64-bit hosts.
87699         * lib/utime.c: Include full-write.h.
87700
87701 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87702
87703         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87704         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87705         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87706         Include if available.
87707         (<xalloc.h>): Include
87708         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87709         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87710         collide with FNM macros.
87711         (struct patopts): New struct.
87712         (struct exclude): Use it, as exclude patterns now come with options.
87713         (new_exclude): Support above changes.
87714         (new_exclude, add_exclude_file):
87715         Initial size must now be a power of two to simplify overflow checking.
87716         (free_exclude, fnmatch_no_wildcards): New function.
87717         (excluded_filename): No longer requires options arg, as the options
87718         are determined by add_exclude.  Now returns bool, not int.
87719         (excluded_filename, add_exclude):
87720         Add support for the fancy new exclusion options.
87721         (add_exclude, add_exclude_file): Now takes int options arg.
87722         Check for arithmetic overflow when computing sizes.
87723         (add_exclude_file): xrealloc might modify errno, so don't
87724         realloc until after errno might be used.
87725
87726         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87727         New macros.
87728         (free_exclude): New decl.
87729         (add_exclude, add_exclude_file): Now takes int options arg.
87730         (excluded_filename): No longer requires options arg, as the options
87731         are determined by add_exclude.  Now returns bool, not int.
87732
87733 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87734
87735         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87736
87737 2001-08-27  Jim Meyering  <meyering@lucent.com>
87738
87739         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87740
87741         * lib/version-etc.c (N_): Remove definition.
87742         Revert most of last change.
87743         Instead, simply don't mark the `Copyright...' string for translation.
87744         Based on advice from Paul Eggert.
87745
87746         * lib/strtoxmax.c: Tweak comment.
87747
87748 2001-08-26  Jim Meyering  <meyering@lucent.com>
87749
87750         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87751
87752         * m4/xstrtoimax.m4: New file.
87753         * m4/xstrtoumax.m4: Add comments explaining why we
87754         AC_REPLACE_FUNCS(strtol).
87755
87756 2001-08-26  Jim Meyering  <meyering@lucent.com>
87757
87758         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87759         of copyright with `%s' so translators don't get an untranslated
87760         message in 2002.
87761         (COPYRIGHT_YEAR): Define.
87762         (version_etc): Use fprintf rather than fputs.
87763         Suggestion from Ulrich Drepper.
87764
87765         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87766
87767         * lib/strtoll.c: New file, from GNU libc.
87768         * lib/xstrtoimax.c: New file.
87769
87770         * lib/xstrtol.h: Add xstrtoimax.
87771         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87772         * lib/strtoimax.c: New file.  Likewise, but first define
87773         STRTOUXMAX_SIGNED.
87774
87775         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87776         ...
87777         * lib/strtoxmax.c: ... then renamed to this.
87778
87779 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87780
87781         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87782         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87783         (jm_AC_TYPE_INTMAX_T): New macro.
87784         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87785
87786         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87787
87788         * m4/longlong.m4: Renamed from ulonglong.m4.
87789         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87790         * m4/uintmax_t.m4: Removed.
87791
87792 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87793
87794         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87795         Port to Solaris 8, where 'sed' requires a space after the 'r'
87796         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87797         Redirect output to $tmp just once.
87798
87799 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87800
87801         * lib/addext.c (<errno.h>): Include.
87802         (errno): Declare if not defined.
87803         (addext): Work correctly when pathconf returns -1 and leaves
87804         errno alone because there is no limit.  Also, work even if
87805         pathconf returns a value greater than SIZE_MAX.
87806
87807 2001-08-12  Jim Meyering  <meyering@lucent.com>
87808
87809         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87810         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87811         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87812         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87813         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87814         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87815         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87816         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87817         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87818         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87819         utime.m4, utimes.m4, xstrtoumax.m4:
87820         Quote the first argument in each use of AC_DEFUN.
87821
87822 2001-08-12  Jim Meyering  <meyering@lucent.com>
87823
87824         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87825         Simply `return getcwd (NULL, 0);'.
87826         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87827         Use 1300 as initial value for length, not PATH_MAX.
87828
87829         * lib/pathmax.h: Clean up cpp syntax.
87830
87831 2001-08-12  Jim Meyering  <meyering@lucent.com>
87832
87833         * lib/gettimeofday.c: New file.
87834         * lib/gtod.h: New file.
87835         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87836
87837 2001-08-05  Jim Meyering  <meyering@lucent.com>
87838
87839         * m4/jm-macros.m4: Require autoconf-2.52.
87840
87841 2001-08-04  Jim Meyering  <meyering@lucent.com>
87842
87843         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87844         stmt, to get in sync with glibc.
87845
87846 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87847
87848         The following changes are from gettext 0.10.39 as maintained by
87849         Bruno Haible.
87850
87851         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87852         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87853         with inverted sense.  All uses changed.
87854
87855         * lib/mbswidth.c: Don't include <limits.h>.
87856         Include <stdlib.h> and <string.h> unconditionally.
87857         (iswcntrl, mbsinit, ISCNTRL): New macros.
87858         (mbsnwidth): Use K&R style function declarations.
87859         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87860         can optimize it when MB_CUR_MAX == 1.
87861         The width of control characters is zero, not 1.
87862
87863 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87864
87865         The following changes are from gettext 0.10.39 as maintained by
87866         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87867
87868         * m4/codeset.m4: Upgrade to serial AM1.
87869         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87870         all uses changed.  Quote first arg of AC_DEFUN.
87871         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87872
87873         * m4/iconv.m4: Upgrade to serial AM2.
87874         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87875         Add --with-libconv-prefix.
87876         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87877         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87878         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87879         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87880         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87881
87882         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87883         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87884         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87885         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87886         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87887         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87888         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87889         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87890         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87891
87892         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87893         string.h any more.
87894
87895         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87896         not the default value.
87897
87898         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87899         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87900         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87901         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87902         Also check for iswcntrl, used for wcwidth fallback.
87903         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87904         to Autoconf 2.13.
87905
87906 2001-08-03  Jim Meyering  <meyering@lucent.com>
87907
87908         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87909         as it was in the original.  Reported by Paul Eggert.
87910
87911 2001-07-16  Jim Meyering  <meyering@lucent.com>
87912
87913         * m4/gettimeofday.m4: New file.
87914         Prompted by a report from Bernhard Baehr.
87915
87916 2001-07-15  Jim Meyering  <meyering@lucent.com>
87917
87918         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87919         stuff. Now it's in ../Makefile.cfg.
87920
87921 2001-07-15  Jim Meyering  <meyering@lucent.com>
87922
87923         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87924         (BUILT_SOURCES): Add unlocked-io.h.
87925         (io_functions): Define.
87926         (unlocked-io.h): New rule.
87927         (DISTCLEANFILES): Add unlocked-io.h.
87928         (all-local): Depend on unlocked-io.h, to ensure it is created.
87929
87930         * lib/unlocked-io.hin: New file
87931
87932         * lib/regex.c: Update from glibc.
87933
87934 2001-07-05  Jim Meyering  <meyering@lucent.com>
87935
87936         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87937         recommendation.
87938         (libfetish_a_SOURCES): Put all .h files here instead.
87939         Remove a thus-exposed (better checks in automake) duplicate and
87940         two unnecessary .h files.
87941
87942 2001-07-04  Jim Meyering  <meyering@lucent.com>
87943
87944         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87945         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87946         distcheck failure.
87947
87948 2001-07-02  Jim Meyering  <meyering@lucent.com>
87949
87950         The following changes were prompted by suggestions from Bruno Haible.
87951
87952         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87953         is now generated.
87954         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87955         definition of EXTRA_DIST.
87956         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87957         ensure that the generated file is created/updated whenever the list
87958         of $(unlocked_functions) is changed.
87959         (jm-glibc-io.m4): New rule.
87960         (unlocked-io.h): New rule -- currently unused.
87961
87962 2001-06-24  Jim Meyering  <meyering@lucent.com>
87963
87964         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87965         unmatched right bracket, rather than kludging it with an extra,
87966         falsely-matching quote in a comment.  Patch by Akim Demaille.
87967
87968 2001-06-11  Jim Meyering  <meyering@lucent.com>
87969
87970         * lib/regex.c: Update from GNU libc.
87971
87972 2001-05-27  Jim Meyering  <meyering@lucent.com>
87973
87974         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87975         Check for ut_type in struct utmp.
87976
87977 2001-05-27  Jim Meyering  <meyering@lucent.com>
87978
87979         * lib/readutmp.h (UT_TYPE): Define.
87980
87981 2001-05-24  Jim Meyering  <meyering@lucent.com>
87982
87983         * lib/argmatch.c: Include "quote.h".
87984         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87985         quote function.  Reported by Göran Uddeborg.
87986
87987 2001-05-22  Jim Meyering  <meyering@lucent.com>
87988
87989         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87990         now that we use the package-supplied version unconditionally.
87991         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87992
87993 2001-05-21  Jim Meyering  <meyering@lucent.com>
87994
87995         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87996         shell syntax errors.
87997
87998 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87999
88000         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88001
88002 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88003
88004         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88005         Don't bother to check library strftime, since
88006         we'll be using our own my_strftime function anyway.
88007         Define my_strftime instead of strftime.
88008
88009 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88010
88011         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88012         which is not yet declared.
88013
88014 2001-05-15  Jim Meyering  <meyering@lucent.com>
88015
88016         * m4/regex.m4: Use proper quoting so brackets appear in the test
88017         program.
88018         Reported by, and with help from, Bruno Haible.
88019
88020 2001-05-13  Jim Meyering  <meyering@lucent.com>
88021
88022         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88023         undefined.
88024
88025 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88026
88027         dirname code cleanup.  base_name now behaves more compatibly
88028         with POSIX basename when given file names that have trailing
88029         slashes, and similarly for dir_name.  Add new primitives
88030         base_len and dir_len.  Put the directory-name-related decls
88031         into dirname.h.
88032
88033         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88034         * lib/backupfile.c (base_name): Likewise.
88035         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88036         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88037         * lib/makepath.c (strip_trailing_slashes): Likewise.
88038         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88039         ISSLASH): Likewise.
88040         * lib/rename.c (strip_trailing_slashes): Likewise.
88041         * lib/same.c (base_name): Likewise.
88042         * lib/stripslash.c (ISSLASH): Likewise.
88043
88044         * lib/addext.c: Include <dirname.h> after size_t is defined.
88045         * lib/backupfile.c: Likewise.
88046
88047         * lib/addext.c (addext): Use base_len to trim redundant
88048         trailing slashes instead of doing it ourselves.
88049         But do not trim the last slash if it is not redundant.
88050
88051         * lib/backupfile.c (find_backup_file_name,
88052         max_backup_version): Use base_len instead of rolling it ourselves.
88053         Handle the case of "" and (on DOS) "C:" correctly.
88054
88055         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88056         needed. Include <string.h>, <dirname.h>.
88057         (base_name): Allow file names ending in slashes, other than names
88058         that are all slashes.  In this case, return the basename followed
88059         by the slashes.  This is more general, and can be used in places
88060         where the original base_name purposely had an assertion failure.
88061         (base_len): New function.
88062
88063         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88064         Do not include <assert.h>; no longer needed.
88065         Include xalloc.h.
88066         (memrchr): Remove decl.
88067         (dir_name_r): Remove.
88068         (dir_len): Renamed from dirlen.  All callers changed.
88069         Rewrite in terms of base_name, for simplicity and consistency.
88070         (dir_name): Never return NULL.  All callers changed.
88071         Do not include <stdlib.h> in test program; no longer needed.
88072         return 0; is fine for test program.
88073
88074         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88075         New macros.
88076         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88077
88078         * lib/path-concat.c (path_concat): Use base_len to compute
88079         base length, not strlen; this means we cannot rely on memcpy
88080         to null-terminate.
88081
88082         * lib/same.c (STREQ): Remove.
88083         (same_name): Handle the case where the basename ends in trailing '/'.
88084
88085         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88086         a slash was stripped.  Do not strip the last slash after a
88087         file system prefix.
88088
88089 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88090
88091         * lib/Makefile.am (libfetish_a_SOURCES):
88092         Add strftime.c, since we now compile it on all hosts.
88093
88094         * lib/strftime.c (my_strftime):
88095         Define to nstrftime if emacs, but only if my_strftime is not defined.
88096         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88097         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88098         Add one more extra argument: a nanoseconds value.
88099         All uses changed.
88100         (ns): New macro.
88101         (my_strftime function): Add %N format.
88102         (emacs_strftimeu): Renamed from emacs_strftime,
88103         with extra ut argument.
88104
88105 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88106
88107         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88108
88109 2001-04-21  Jim Meyering  <meyering@lucent.com>
88110
88111         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88112         doesn't interfere.
88113
88114 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88115
88116         * m4/ftruncate.m4: Check for chsize.
88117         Link with ftruncate.o unconditionally if ftruncate is missing.
88118         This was required when cross-compiling to i586-mingw32msvc.
88119
88120 2001-04-08  Jim Meyering  <meyering@lucent.com>
88121
88122         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88123         recomputed; that's necessary when the offset spans a DST transition.
88124         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88125
88126 2001-04-02  Jim Meyering  <meyering@lucent.com>
88127
88128         * lib/regex.h, regex.c: Update from GNU libc.
88129
88130 2001-03-24  Jim Meyering  <meyering@lucent.com>
88131
88132         * m4/jm-macros.m4: Require autoconf-2.49d.
88133
88134 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88135
88136         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88137
88138 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88139
88140         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88141
88142 2001-03-17  Jim Meyering  <meyering@lucent.com>
88143
88144         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88145         now that the version in autoconf is equivalent.
88146         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88147
88148         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88149         Suggestion from Akim Demaille.
88150
88151         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88152         (jm_PREREQ_TEMPNAME): New function.
88153
88154 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88155
88156         * lib/tempname.c (uint64_t): Define to uintmax_t if
88157         not defined, and if UINT64_MAX is not defined.
88158         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88159         Reported by John David Anglin.
88160
88161 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88162
88163         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88164         resolve alias if codeset is empty.
88165         * lib/config.charset (BeOS): Use wildcard syntax.
88166
88167 2001-03-13  Jim Meyering  <meyering@lucent.com>
88168
88169         * lib/path-concat.c (path_concat)
88170         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88171         concatenating e.g., `C:' and `foo'.
88172         From Bruno Haible.
88173
88174 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88175
88176         * lib/localcharset.c (locale_charset): Don't use
88177         setlocale(LC_CTYPE,NULL). Don't return NULL.
88178         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88179
88180 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88181
88182         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88183         support for DOS/DJGPP.
88184
88185 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88186
88187         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88188         lacks mkstemp.  Compile our own tempname.c if we compile our own
88189         mkstemp.c, as mkstemp relies on tempname.
88190
88191 2001-03-01  Jim Meyering  <meyering@lucent.com>
88192
88193         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88194         AH_VERBATIM really does output its argument verbatim.
88195
88196 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88197
88198         * lib/Makefile.am (libfetish_a_SOURCES):
88199         Add dup-safer.c, fopen-safer.c.
88200         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88201
88202         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88203         * lib/unistd-safer.h: New files.
88204
88205 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88206
88207         The mkstemp replacement is taken from glibc 2.2.2, with some
88208         portability fixes for use outside glibc, as follows:
88209
88210         * lib/tempname.c (struct_stat64): New macro.
88211         (direxists, __gen_tempname): Use it.
88212         This avoids a portability problem with Solaris 8.
88213
88214         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88215         (<stddef.h>, <stdint.h>, <string.h>):
88216         Include only if STDC_HEADERS || _LIBC.
88217         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88218         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88219         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88220         (__set_errno): Define this macro if <errno.h> doesn't.
88221         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88222         Define these macros if <stdio.h> doesn't.
88223         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88224         Define these macros if <sys/stat.h>
88225         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88226         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88227         __xstat64): Define if not _LIBC.
88228         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88229         (__gen_tempname): Invoke gettimeofday only if
88230         HAVE_GETTIMEOFDAY || _LIBC;
88231         otherwise, fall back on plain "time".
88232         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88233
88234         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88235
88236         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88237
88238 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88239
88240         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88241
88242 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88243
88244         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88245         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88246         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88247         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88248
88249 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88250
88251         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88252         Remove workaround macros for hosts that have mbrtowc but not
88253         mbstate_t, as we now insist on proper declarations for both
88254         before using mbrtowc.
88255
88256 2001-02-17  Jim Meyering  <meyering@lucent.com>
88257
88258         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88259         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88260         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88261         UnixWare 7.1.1.
88262
88263         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88264         rather than AC_CACHE_VAL.
88265
88266 2001-02-17  Jim Meyering  <meyering@lucent.com>
88267
88268         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88269         around included file name.
88270
88271         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88272
88273         * lib/strftime.c: Update from GNU libc (the only changes were to
88274         comments).
88275
88276 2001-02-17  Jim Meyering  <meyering@lucent.com>
88277
88278         * lib/regex.c: Update from libc.
88279
88280 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88281
88282         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88283         clash.
88284
88285 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88286
88287         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88288         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88289         Reported by Mark Hounschell via Paul Eggert.
88290
88291 2001-02-07  Jim Meyering  <meyering@lucent.com>
88292
88293         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88294
88295 2001-02-05  Jim Meyering  <meyering@lucent.com>
88296
88297         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88298         it includes the patch required for `large file' support with at least
88299         HP-UX's 10.20 /bin/cc.
88300
88301 2001-02-03  Jim Meyering  <meyering@lucent.com>
88302
88303         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88304         AS_IF, now that it works once again (mysteriously).
88305         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88306
88307 2001-01-30  Jim Meyering  <meyering@lucent.com>
88308
88309         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88310         * m4/chown.m4: Rename conftestchown to conftest.chown.
88311         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88312         s/conftestdir2/conftest.d2/.
88313         * m4/utimes.m4: s/conftestdata/conftest.data/
88314         Inspired by Pavel Roskin's change in autoconf.
88315
88316 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88317
88318         * lib/config.charset: Update for FreeBSD 4.2.
88319
88320 2001-01-27  Jim Meyering  <meyering@lucent.com>
88321
88322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88323         a use of AS_IF.
88324         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88325
88326 2001-01-26  Jim Meyering  <meyering@lucent.com>
88327
88328         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88329         quotearg.c includes it.
88330
88331 2001-01-26  Jim Meyering  <meyering@lucent.com>
88332
88333         * lib/quotearg.c: Include stddef.h.
88334         * lib/quote.c: Include stddef.h.
88335         Reported by Axel Kittenberger.
88336
88337         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88338         line in double quotes so that it evokes a better diagnostic.
88339         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88340         Reported by Axel Kittenberger.
88341
88342 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88343
88344         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88345         as if it was a `charset'.
88346
88347 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88348
88349         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88350         has const.
88351
88352 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88353
88354         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88355         to avoid a warning.  Add back 'const' to inptr.
88356
88357 2001-01-20  Jim Meyering  <meyering@lucent.com>
88358
88359         Be sure that headers are checked before used in code compiled
88360         for the type checks.
88361         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88362         In place of that, invoke jm_CHECK_ALL_TYPES.
88363         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88364         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88365         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88366         The check for ssize_t was mistakenly run before the test for unistd.h.
88367
88368         The configure-time check for stdbool.h was missing.
88369         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88370         (jm_PREREQ_HASH): New function.
88371
88372 2001-01-17  Jim Meyering  <meyering@lucent.com>
88373
88374         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88375         for autoconf-2.49c.
88376         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88377
88378 2001-01-16  Jim Meyering  <meyering@lucent.com>
88379
88380         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88381         From Bruno Haible.
88382
88383 2001-01-14  Jim Meyering  <meyering@lucent.com>
88384
88385         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88386         foo and bar.  Create conftestdir/ in the script, not in the C code.
88387         Remove directories in the script, not in the C code.
88388         Remove conftestdir{,2} before trying to create the directory.
88389         Make the entire configure script fail if the mkdir fails.
88390
88391 2001-01-14  Jim Meyering  <meyering@lucent.com>
88392
88393         * lib/rename.c: New file.  From Volker Borchert.
88394         Include stdlib.h, string.h or strings.h, and xalloc.h.
88395         Use strip_trailing_slashes rather than open-coding it.
88396
88397 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88398
88399         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88400
88401 2001-01-03  Jim Meyering  <meyering@lucent.com>
88402
88403         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88404         of local `inptr' to avoid warning with some system declarations of
88405         iconv.
88406
88407 2001-01-02  Volker Borchert  <bt@teknon.de>
88408
88409         * m4/rename.m4: New file.
88410         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88411
88412 2001-01-01  Jim Meyering  <meyering@lucent.com>
88413
88414         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88415         even on systems with utmpx.h.  It's necessary for the declaration of
88416         utmp's ut_user member.  Reported by Andreas Jaeger.
88417
88418         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88419         available. They are required for the declarations of getgrgid and
88420         getpwuid resp.
88421         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88422         Reported by Andreas Jaeger.
88423
88424 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88425
88426         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88427         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88428         so `make install' also works in VPATH builds.
88429
88430 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88431
88432         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88433         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88434         can be used in subdirectories.
88435
88436 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88437
88438         * lib/modechange.c: Do not assume that mode_t uses the
88439         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88440         the other-execute bit of FOO even if S_IXOTH != 1.
88441
88442         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88443         WOTH, XOTH, ALLM): New macros.
88444         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88445          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88446         Use them.
88447         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88448         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88449         (mode_compile):
88450         No need to use uintmax_t; unsigned long is long enough.
88451         Don't bother to get suffix since we don't use it.
88452
88453 2000-12-26  Jim Meyering  <meyering@lucent.com>
88454
88455         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88456         better with autoheader.
88457
88458 2000-12-24  Jim Meyering  <meyering@lucent.com>
88459
88460         * lib/hash.c (is_prime): Return explicit boolean values.
88461         (hash_get_first): Return NULL to appease Irix5.6's 89.
88462         Reported by Nelson Beebe.
88463
88464 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88465
88466         * lib/localcharset.c (locale_charset): Add support for Win32.
88467
88468 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88469
88470         * lib/physmem.h, lib/physmem.c: New files.
88471
88472         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88473         (noinst_HEADERS): Add physmem.h.
88474
88475         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88476         't' for compatibility with Solaris 8 sort.
88477
88478 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88479
88480         * lib/config.charset: Add support for BeOS.
88481
88482 2000-12-17  Jim Meyering  <meyering@lucent.com>
88483
88484         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88485         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88486
88487 2000-12-16  Jim Meyering  <meyering@lucent.com>
88488
88489         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88490         N and M) would have treated it like `chown N:N FILE'.
88491
88492         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88493
88494 2000-12-16  Jim Meyering  <meyering@lucent.com>
88495
88496         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88497         SHELLS_FILE to a file name that's useful on djgpp systems.
88498         Include stdlib.h.
88499         (ADDITIONAL_DEFAULT_SHELLS): Define.
88500         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88501         Based mostly on a patch from Prashant TR.
88502
88503 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88504
88505         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88506         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88507         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88508
88509 2000-12-08  Andreas Schwab  <schwab@suse.de>
88510
88511         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88512         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88513
88514 2000-12-07  Jim Meyering  <meyering@lucent.com>
88515
88516         * lib/stripslash.c (ISSLASH): Define.
88517         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88518         `/'.
88519         From Prashant TR.
88520
88521         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88522         (dir_name_r): Declare this function as static.
88523         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88524         manifest itself on a name containing a mix of slashes and
88525         backslashes.
88526         Make this function work with names starting with a DOS-style
88527         drive letter and colon prefix.
88528         (dir_name): Append `.' if necessary.
88529         Based mostly on patches from Prashant TR and Eli Zaretskii.
88530
88531         * lib/dirname.h (dir_name_r): Remove prototype.
88532
88533 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88534
88535         * m4/off_t-format.m4: Remove this file.
88536         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88537
88538 2000-12-06  Jim Meyering  <meyering@lucent.com>
88539
88540         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88541         replacement strtoull, we may well need the replacement strtoul, too.
88542         Check for declarations of strtoul and strtoull.
88543         Check for strtol.  Mainly as a cue to cause automake to include
88544         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88545         Check for limits.h -- strtol.c needs it.
88546
88547 2000-12-05  Jim Meyering  <meyering@lucent.com>
88548
88549         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88550
88551 2000-12-04  Jim Meyering  <meyering@lucent.com>
88552
88553         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88554         Also include memory.h, stdlib.h, unistd.h if appropriate.
88555         Reported by Andreas Jaeger (conflicting declaration of malloc).
88556
88557 2000-12-02  Jim Meyering  <meyering@lucent.com>
88558
88559         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88560         * m4/jm-macros.m4 (jm_MACROS): require it.
88561
88562 2000-12-02  Jim Meyering  <meyering@lucent.com>
88563
88564         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88565
88566 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88567
88568         * lib/memrchr.c: Include <config.h> before any system include file.
88569
88570 2000-11-30  Jim Meyering  <meyering@lucent.com>
88571
88572         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88573
88574 2000-11-30  Jim Meyering  <meyering@lucent.com>
88575
88576         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88577
88578 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88579
88580         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88581
88582 2000-11-26  Jim Meyering  <meyering@lucent.com>
88583
88584         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88585
88586 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88587
88588         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88589         size of (size_t) -1; it's not portable.
88590
88591 2000-11-17  Jim Meyering  <meyering@lucent.com>
88592
88593         * lib/strstr.c: Update from GNU libc.
88594
88595 2000-11-17  Akim Demaille  <akim@epita.fr>
88596
88597         * lib/obstack.h: Formatting changes.
88598         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88599         prevent type checking.
88600         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88601         cast the value to (void *): assigning a `foo *' to a `void *'
88602         variable is valid.
88603         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88604
88605 2000-11-16  Jim Meyering  <meyering@lucent.com>
88606
88607         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88608
88609 2000-11-11  Jim Meyering  <meyering@lucent.com>
88610
88611         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88612
88613 2000-11-10  Jim Meyering  <meyering@lucent.com>
88614
88615         * lib/obstack.h: Update from GNU libc.
88616         * lib/obstack.c: Likewise.
88617
88618 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88619
88620         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88621
88622 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88623
88624         * lib/getusershell.c (setusershell): Use rewind rather than
88625         fseek/fseeko, to avoid configuration hassles with fseeko.
88626         Don't bother opening SHELLS_FILE if shellstream is NULL;
88627         it's not necessary.
88628
88629 2000-11-05  Jim Meyering  <meyering@lucent.com>
88630
88631         * lib/makepath.h (make_dir): Declare.
88632         * lib/makepath.c (make_dir): Remove `static' attribute.
88633         Tweak a comment.
88634
88635 2000-11-04  Jim Meyering  <meyering@lucent.com>
88636
88637         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88638
88639 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88640
88641         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88642         last one in a bucket, advance to the next bucket.
88643
88644 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88645
88646         * lib/fnmatch.c: Do not comment out all the code if we are using
88647         the GNU C library, because in some cases we are replacing buggy
88648         code in the GNU C library itself.
88649
88650 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88651
88652         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88653         (regex_compile): Catch bogus \(\1\).
88654
88655 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88656
88657         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88658         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88659         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88660
88661 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88662
88663         * lib/error.h, getline.h, modechange.h:
88664         Remove "2000" from Copyright line, as the file hasn't been
88665         changed this year other than in the copyright notice.
88666
88667         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88668         was changed this year.
88669
88670 2000-10-29  Jim Meyering  <meyering@lucent.com>
88671
88672         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88673         renaming.
88674         * m4/ls-mntd-fs.m4: Likewise
88675
88676 2000-10-29  Jim Meyering  <meyering@lucent.com>
88677
88678         * lib/xstat.in: Fix grammar in comment.
88679
88680 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88681
88682         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88683         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88684         doesn't define __restrict_arr.
88685
88686 2000-10-28  Jim Meyering  <meyering@lucent.com>
88687
88688         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88689         (jm_PREREQ_MEMCHR): New function.
88690
88691 2000-10-28  Jim Meyering  <meyering@lucent.com>
88692
88693         * lib/memchr.c: Update from libc.
88694         Adjust for portability:
88695         [HAVE_STDLIB_H]: Include stdlib.h.
88696         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88697         Undef __memchr, too.
88698         [!weak_alias]: Define __memchr to memchr.
88699
88700         * lib/regex.c: Update from libc.
88701         * lib/regex.h: Likewise.
88702         * lib/getopt1.c: Likewise.
88703         * lib/memcmp.c: Likewise.
88704
88705         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88706         Avoid using fseek, when possible -- it's broken by design.
88707         Patch by Ulrich Drepper.
88708
88709 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88710
88711         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88712         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88713         Giving in to popular pressure to shut up the compiler with casts.
88714
88715 2000-10-26  Jim Meyering  <meyering@lucent.com>
88716
88717         * lib/strftime.c: Update from libc.
88718
88719 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88720
88721         * regex.c: More `unsigned char' -> `re_char' changes.
88722         Also change several `int' into `re_wchar_t'.
88723         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88724         (PUSH_FAILURE_POINTER): Don't cast any more.
88725         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88726         We want GCC to complain, since this piece of code makes
88727         re_match non-reentrant, which *should* be fixed.
88728         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88729         (EXTEND_BUFFER): Use RETALLOC.
88730         (SET_LIST_BIT): Don't cast.
88731         (re_wchar_t): New type.
88732         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88733         that those two functions will always properly return.
88734         (IMMEDIATE_QUIT_CHECK): Cast to void.
88735         (analyse_first): Use recursion rather than an explicit stack.
88736         (re_compile_fastmap): Can't fail anymore.
88737         (re_search_2): Don't check re_compile_fastmap for failure.
88738         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88739         Now also sets the new value (passed in a new argument).
88740         (re_match_2_internal): Use it.
88741         Also, use a new var `reg' of type size_t when looping through regs
88742         rather than reuse the inappropriate `mcnt'.
88743
88744 2000-10-25  Jim Meyering  <meyering@lucent.com>
88745
88746         * lib/obstack.c: Update from libc.
88747
88748 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88749
88750         * regex.c (regex_compile): Change the way of handling a range from
88751         a char less than 256 to a char not less than 256.
88752
88753 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88754
88755         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88756         NT-Emacs only.
88757         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88758         so that re_search functions only quit when callers expect them to.
88759
88760 2000-10-23  Jim Meyering  <meyering@lucent.com>
88761
88762         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88763         wrong.  That set_locale call must not have any side effects.
88764         From Paul Eggert.
88765
88766 2000-10-22  Jim Meyering  <meyering@lucent.com>
88767
88768         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88769         [CYCLIC]: Remove now-unused definition.
88770
88771         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88772         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88773         Suggestion from Ulrich Drepper.
88774
88775 2000-10-21  Jim Meyering  <meyering@lucent.com>
88776
88777         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88778         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88779         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88780
88781 2000-10-21  Jim Meyering  <meyering@lucent.com>
88782
88783         * lib/dirname.c (memrchr): Declare if necessary.
88784         (dir_name): Remove the restriction that there be no
88785         trailing slashes.  Now, this code skips past them, effectively
88786         ignoring them.
88787         [TEST_DIRNAME] (main): New unit tests.
88788
88789         * lib/memrchr.c: New file from GNU libc.
88790         Undef __memrchr, too.
88791         [!weak_alias]: Define __memrchr to memrchr.
88792         Guard weak_alias use with `#ifdef weak_alias'.
88793
88794 2000-10-21  Jim Meyering  <meyering@lucent.com>
88795
88796         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88797         (dir_name): Use dir_name_r.
88798         * lib/dirname.h (dir_name_r): Declare it.
88799
88800 2000-10-17  Jim Meyering  <meyering@lucent.com>
88801
88802         * lib/quote.h (PARAMS): Define and use.
88803         Reported by Akim Demaille.
88804
88805         * lib/getopt.c: Update from libc.
88806
88807 2000-10-16  Jim Meyering  <meyering@lucent.com>
88808
88809         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88810         setlocale.
88811         From Jan Fedak.
88812
88813 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88814
88815         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88816
88817 2000-09-25  Jim Meyering  <meyering@lucent.com>
88818
88819         * lib/md5.h (rol): Define (from GnuPG).
88820
88821         * lib/sha.c: Give credit (GnuPG) where due.
88822         (M): Use rol rather than open-coding it.
88823         Add a FIXME comment.
88824
88825 2000-09-21  Jim Meyering  <meyering@lucent.com>
88826
88827         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88828         Reported by Michael Stone.
88829
88830 2000-09-20  Jim Meyering  <meyering@lucent.com>
88831
88832         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88833         (noinst_HEADERS): Add sha.h.
88834         Based on code from Scott G. Miller and from GnuPG.
88835
88836 2000-09-18  Jim Meyering  <meyering@lucent.com>
88837
88838         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88839         LIBS. Otherwise, everyone ends up linking with -lelf for some
88840         configurations.
88841         Reported by Mike Stone.
88842
88843 2000-09-15  Jim Meyering  <meyering@lucent.com>
88844
88845         * lib/regex.c: Update from libc.
88846
88847 2000-09-10  Jim Meyering  <meyering@lucent.com>
88848
88849         * lib/getopt.c (_getopt_internal): Update from glibc.
88850
88851 2000-09-09  Jim Meyering  <meyering@lucent.com>
88852
88853         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88854         think it should be used as a general replacement for isascii.
88855         * lib/fnmatch.c: Likewise.
88856         * lib/mbswidth.c: Likewise
88857         * lib/regex.c: Likewise.
88858
88859         Don't use atoi.
88860         * lib/userspec.c: Include sys/param.h and limits.h.
88861         Include xstrtol.h.
88862         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88863         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88864         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88865         UID, GID.  Check range.
88866
88867 2000-09-06  Jim Meyering  <meyering@lucent.com>
88868
88869         * lib/getopt.c (_getopt_internal): Update from glibc.
88870
88871 2000-08-30  Jim Meyering  <meyering@lucent.com>
88872
88873         * lib/strftime.c: Merge in changes from GNU libc.
88874
88875 2000-08-26  Jim Meyering  <meyering@lucent.com>
88876
88877         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88878         * m4/fpending.m4: New file.
88879
88880 2000-08-26  Jim Meyering  <meyering@lucent.com>
88881
88882         * lib/closeout.c: Include "__fpending.h".
88883         (close_stdout_status): Return right away if there's nothing to flush.
88884
88885         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88886         * lib/__fpending.c: New file.
88887         * lib/__fpending.h: New file.
88888
88889 2000-08-20  Jim Meyering  <meyering@lucent.com>
88890
88891         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88892         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88893         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88894
88895 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88896
88897         Improve fileutils installation on systems where running
88898         programs (like install) can't be unlinked.
88899         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88900         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88901
88902 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88903
88904         Standardize on "memory exhausted" instead of "Memory exhausted"
88905         or "virtual memory exhausted".
88906         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88907         "virtual memory exhausted".
88908         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88909         our own message.
88910         * lib/userspec.c (parse_user_spec): Likewise.
88911         * lib/bumpalloc.h: comment fix
88912         * lib/same.c, userspec.c: Include xalloc.h.
88913
88914         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88915         not char *const and pointing to a constant array.
88916         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88917         (xrealloc): Comment fix.
88918
88919         * lib/userspec.c (parse_user_spec):
88920         Don't translate a message until just before returning,
88921         to avoid unnecessary translation.
88922
88923 2000-08-07  Jim Meyering  <meyering@lucent.com>
88924
88925         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88926         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88927         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88928         getgroups.c, gethostname.c, getopt.h, group-member.c,
88929         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88930         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88931         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88932         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88933         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88934         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88935         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88936         yesno.c: Back out Copyright date changes for each file with no change
88937         this year.  This eases coordination with other programs using the same
88938         source code modules.  From Paul Eggert.
88939
88940 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88941
88942         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88943         not char, for compatibility with glibc 2.1.3 strftime.c.
88944
88945 2000-08-03  Greg McGary  <greg@mcgary.org>
88946
88947         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88948         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88949         (EXTEND_BUFFER): Use them.
88950
88951 2000-08-01  Jim Meyering  <meyering@lucent.com>
88952
88953         * lib/dirname.c (ISSLASH): Define.
88954         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88955         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88956         both `\' and `/' may be use as path separators.
88957         Based on a patch from Prashant TR.
88958
88959 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88960
88961         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88962         slot vector a constant, since it might get modified.
88963
88964 2000-07-31  Jim Meyering  <meyering@lucent.com>
88965
88966         * lib/xmalloc.c: Use `virtual memory exhausted', not
88967         `Memory exhausted'.
88968         * lib/obstack.c (print_and_abort): Likewise.
88969
88970 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88971
88972         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88973         buffer, so that the caller can always quote one small
88974         component of a "memory exhausted" message in slot 0.
88975         From a suggestion by Jim Meyering.
88976
88977 2000-07-30  Jim Meyering  <meyering@lucent.com>
88978
88979         * lib/makepath.c (make_path): Quote the other instance, too.
88980
88981         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88982         (STATIC_BUF_SIZE): Define.
88983         (quotearg_n_options): Use only statically allocated storage when
88984         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88985         than STATIC_BUF_SIZE.
88986
88987 2000-07-29  Jim Meyering  <meyering@lucent.com>
88988
88989         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88990         * lib/dirname.c (dir_name): Likewise.
88991
88992         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88993         `/'.
88994
88995         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88996         (dir_name): Assert that there are no trailing slashes.
88997
88998 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88999
89000         * lib/mbswidth.h (mbswidth): Add a flags argument.
89001         (mbswidth): New declaration.
89002         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89003         * lib/mbswidth.c (mbswidth): Add a flags argument.
89004         (mbsnwidth): New function.
89005
89006 2000-07-24  Jim Meyering  <meyering@lucent.com>
89007
89008         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89009
89010 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89011
89012         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89013
89014 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89015
89016         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89017         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89018         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89019         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89020         invoke multibyte primitives.
89021
89022 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89023
89024         * lib/quotearg.c:
89025         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89026         so that mbstate_t is always defined.
89027
89028         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89029         be 1 in at least one GCC installation, and this configuration
89030         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89031         performance on hosts that have mbrtowc but have only unibyte
89032         locales, but I assume these hosts are rare.
89033
89034 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89035
89036         * lib/mbswidth.c (_XOPEN_SOURCE):
89037         Don't define; this causes problems on Solaris 7.
89038         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89039
89040 2000-07-23  Jim Meyering  <meyering@lucent.com>
89041
89042         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89043         too: getgrgid, getpwuid, getuid.
89044
89045 2000-07-23  Jim Meyering  <meyering@lucent.com>
89046
89047         * lib/basename.c (base_name): Add an assertion.
89048
89049 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89050
89051         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89052         shadow its mbsinit function.
89053
89054 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89055
89056         * lib/mbswidth.h: New file.
89057         * lib/mbswidth.c: New file.
89058         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89059         (noinst_HEADERS): Add mbswidth.h.
89060
89061 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89062
89063         * lib/config.charset: Add support for FreeBSD. Improve support for
89064         HP-UX and IRIX 6.
89065
89066 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89067
89068         * m4/mbswidth.m4: New file.
89069         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89070
89071 2000-07-15  Jim Meyering  <meyering@lucent.com>
89072
89073         * lib/makepath.c: Include quote.h.
89074         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89075         corresponding argument in a `quote (...)' call.
89076         Give better diagnostics.
89077
89078         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89079         (noinst_HEADERS): Add quote.h.
89080
89081         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89082         from tar's src/misc.c.
89083         * lib/quote.h: New file.  Prototypes for same.
89084
89085 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89086
89087         From a suggestion by Bruno Haible.
89088         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89089         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89090         to decide whether to define the BeOS workaround macro;
89091         this adjusts to the change to AC_MBSTATE_T.
89092
89093 2000-07-14  Jim Meyering  <meyering@lucent.com>
89094
89095         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89096         jm_AC_TYPE_UINTMAX_T.
89097
89098 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89099
89100         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89101
89102         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89103         quotearg_buffer_restyled): Add support for
89104         clocale_quoting_style.  Undo previous change to
89105         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89106         and "{RIGHT QUOTATION MARK}" msgids.
89107
89108 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89109
89110         From a suggestion by Bruno Haible.
89111         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89112         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89113         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89114         and mbstate_t, to a single-part test that simply defines mbstate_t.
89115         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89116         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89117
89118 2000-07-10  Jim Meyering  <meyering@lucent.com>
89119
89120         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89121
89122         * m4/gnu-source.m4: Output to confdefs.h directly.
89123         Suggestion from Akim Demaille.
89124
89125 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89126
89127         The old behavior of quoting `like this' doesn't look good with
89128         newer, ISO-style fonts.  See:
89129         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89130
89131         Instead, quote "like this" by default.  Let the translator
89132         tailor the locale-specific quoting behavior by providing
89133         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89134
89135         * lib/quotearg.c (N_): New macro.
89136         (gettext_default): New function.
89137         (quotearg_buffer_restyled): Use
89138         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89139         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89140
89141 2000-07-09  Jim Meyering  <meyering@lucent.com>
89142
89143         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89144         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89145
89146         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89148
89149 2000-07-09  Jim Meyering  <meyering@lucent.com>
89150
89151         * lib/Most files: Update copyright dates to include 2000.
89152
89153 2000-07-08  Jim Meyering  <meyering@lucent.com>
89154
89155         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89156         if not defined.
89157         (xgethostname): Remove now-unnecessary #ifdef.
89158         Move declaration of `err' into loop where it's used.
89159
89160 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89161         and Bruno Haible  <haible@clisp.cons.org>
89162
89163         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89164         only if the test for an object-type mbstate_t fails.  This
89165         prevents us from mistakenly reporting that mbstate_t is a
89166         system object type after we "#define mbstate_t int" to work
89167         around its lack.
89168
89169 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89170         and Bruno Haible  <haible@clisp.cons.org>
89171
89172         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89173
89174 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89175
89176         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89177         to strerror_r.
89178         Include <ctype.h> for use of isalpha.
89179
89180 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89181
89182         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89183         by allocating a larger buffer. Test the gethostname return value for
89184         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89185         returns an error and ENAMETOOLONG isn't defined.
89186
89187 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89188
89189         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89190         dimension.
89191
89192 2000-07-04  Jim Meyering  <meyering@lucent.com>
89193
89194         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89195         of the deprecated AC_CHECKING.
89196
89197 2000-07-04  Jim Meyering  <meyering@lucent.com>
89198
89199         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89200         Reported by Bruno Haible.
89201
89202 2000-07-04  Jim Meyering  <meyering@lucent.com>
89203
89204         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89205         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89206         lacks mbrtowc.
89207
89208 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89209
89210         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89211         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89212
89213 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89214         and Bruno Haible  <haible@clisp.cons.org>
89215
89216         * lib/quotearg.c (mbrtowc):
89217         Assign to *pwc, and return 1 only if result is nonzero.
89218         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89219
89220 2000-07-03  Jim Meyering  <meyering@lucent.com>
89221
89222         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89223
89224 2000-07-03  Jim Meyering  <meyering@lucent.com>
89225
89226         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89227         This is necessary to get a definition of e.g., UTMP_FILE on
89228         HP-UX 10.20.
89229         From Bob Proulx.
89230
89231 2000-07-02  Jim Meyering  <meyering@lucent.com>
89232
89233         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89234
89235         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89236         AC_LIBOBJ(function_name).
89237         * m4/chown.m4: Likewise.
89238         * m4/fnmatch.m4: Likewise.
89239         * m4/ftruncate.m4: Likewise.
89240         * m4/getgroups.m4: Likewise.
89241         * m4/getline.m4: Likewise.
89242         * m4/group-member.m4: Likewise.
89243         * m4/jm-macros.m4: Likewise.
89244         * m4/lstat.m4: Likewise.
89245         * m4/malloc.m4: Likewise.
89246         * m4/memcmp.m4: Likewise.
89247         * m4/nanosleep.m4: Likewise.
89248         * m4/putenv.m4: Likewise.
89249         * m4/realloc.m4: Likewise.
89250         * m4/regex.m4: Likewise.
89251         * m4/stat.m4: Likewise.
89252         * m4/strftime.m4: Likewise.
89253
89254 2000-07-02  Jim Meyering  <meyering@lucent.com>
89255
89256         * lib/quotearg.c (mbstate_t): Don't define here.
89257
89258 2000-07-02  Jim Meyering  <meyering@lucent.com>
89259
89260         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89261
89262 2000-07-01  Jim Meyering  <meyering@lucent.com>
89263
89264         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89265
89266 2000-07-01  Jim Meyering  <meyering@lucent.com>
89267
89268         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89269         problem.
89270
89271 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89272
89273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89274         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89275
89276 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89277
89278         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89279         per change in ../m4/ls-mntd-fs.m4.
89280         (read_filesystem_list): Ignore symbolic links.
89281
89282 2000-06-29  Jim Meyering  <meyering@lucent.com>
89283
89284         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89285         for declaration of strcmp.
89286
89287         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89288
89289         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89290         Avoid warning by casting result to `char *' to remove `const'.
89291
89292 2000-06-28  Jim Meyering  <meyering@lucent.com>
89293
89294         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89295         included by quotearg.c, for which we perform this test.  From
89296         Bruno Haible.
89297
89298 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89299
89300         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89301         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89302         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89303
89304 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89305
89306         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89307
89308 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89309
89310         savedir now sets errno on failure and invokes xmalloc to get memory.
89311         Fix a couple of other minor bugs while we're at it.
89312
89313         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89314         (NAMLEN): Remove macro.
89315         (malloc, realloc): Remove decls.
89316         (stpcpy): Likewise.
89317         ("xalloc.h"): Include.
89318         (NAME_SIZE_DEFAULT): New macro.
89319         (savedir): Use xmalloc / xrealloc to allocate memory.
89320         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89321         Skip "" directory entries.
89322         Use strlen to calculate directory entry length, since the old method
89323         is rarely used these days and isn't worth supporting.
89324         Don't use a pointer after freeing it.
89325         Check for integer overflow when calculating allocation size.
89326         Use memcpy to copy entries, instead of stpcpy.
89327         Set errno properly when returning NULL.
89328         Check for readdir error.
89329
89330 2000-06-26  Jim Meyering  <meyering@lucent.com>
89331
89332         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89333
89334 2000-06-25  Jim Meyering  <meyering@lucent.com>
89335
89336         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89337         Linux header bug when _XOPEN_SOURCE is defined to 500.
89338
89339 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89340
89341         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89342         deficiency.
89343
89344 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89345
89346         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89347         Include xalloc.h.
89348         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89349
89350 2000-06-24  Jim Meyering  <meyering@lucent.com>
89351
89352         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89353         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89354         for which strerror does return char*, but which lacks a conveniently
89355         accessible declaration of the function.  If the compile-test says
89356         strerror_r doesn't work, then resort to a `run'-test that works on
89357         BeOS and segfaults on DEC Unix.
89358
89359 2000-06-24  Jim Meyering  <meyering@lucent.com>
89360
89361         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89362
89363 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89364
89365         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89366         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89367
89368 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89369
89370         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89371         (mbrtowc, mbstate_t): Define substitutes if
89372         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89373         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89374         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89375
89376 2000-06-23  Jim Meyering  <meyering@lucent.com>
89377
89378         * m4/afs.m4: Add missing AC_MSG_RESULT.
89379         Reported by Bruno Haible.
89380
89381         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89382         Suggestion from Bruno Haible.
89383
89384 2000-06-23  Jim Meyering  <meyering@lucent.com>
89385
89386         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89387
89388 2000-06-21  Jim Meyering  <meyering@lucent.com>
89389
89390         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89391
89392 2000-06-21  Jim Meyering  <meyering@lucent.com>
89393
89394         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89395         (noinst_HEADERS): Add getstr.h.
89396
89397         * lib/getline.c (getstr): Move into a separate file.
89398         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89399         the following changes: new parameter, delim2; both delim[12]
89400         parameters have type `int', not `char'.  The latter would lose
89401         with 8-bit delimiters.
89402         * lib/getstr.h: New file.
89403
89404 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89405
89406         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89407         than 1024, return a memory chunk of least possible size, instead
89408         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89409         Use free/xmalloc instead of xrealloc to avoid copying for very long
89410         paths.
89411
89412 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89413
89414         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89415         the empty string.
89416
89417 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89418
89419         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89420         address, not strdup.  Include <stdlib.h> and don't declare free().
89421
89422 2000-06-19  Jim Meyering  <meyering@lucent.com>
89423
89424         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89425
89426 2000-06-18  Jim Meyering  <meyering@lucent.com>
89427
89428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89429
89430         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89431         `checking whether...' message to be consistent with that of the
89432         lstat test.
89433
89434 2000-06-18  Jim Meyering  <meyering@lucent.com>
89435
89436         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89437         Besides, these days every porting target provides a mkdir function.
89438
89439         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89440         needed. (this snippet comes from src/system.h).
89441
89442 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89443
89444         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89445
89446 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89447
89448         * lib/human.c (adjust_value): New function.
89449         (human_readable_inexact): Apply rounding style even when
89450         printing approximate values.
89451
89452 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89453
89454         * lib/human.c (human_readable_inexact): Allow an input block
89455         size that is not a multiple of the output block size, and vice versa.
89456         Reported by Piergiorgio Sartor.
89457
89458 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89459
89460         * lib/getdate.y (get_date): Apply relative times after time
89461         zone indicator, not before.  Reported by Todd A. Jacobs.
89462
89463 2000-06-13  Jim Meyering  <meyering@lucent.com>
89464
89465         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89466
89467         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89468
89469 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89470
89471         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89472
89473 2000-06-12  Jim Meyering  <meyering@lucent.com>
89474
89475         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89476         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89477         optional argument.
89478         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89479         the optional argument, `lib'.
89480
89481 2000-06-08  Jim Meyering  <meyering@lucent.com>
89482
89483         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89484
89485 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89486
89487         Rewrite largefile configuration so that we don't need to run
89488         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89489         AC_CANONICAL_HOST in configure.in -- jmm]
89490
89491         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89492         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89493         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89494         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89495         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89496         All uses changed.
89497         Instead of inspecting the output of getconf, try to compile the
89498         test program without and with the macro definition.
89499         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89500         for getconf.  Instead, check for the needed flags by compiling
89501         test programs.
89502
89503 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89504
89505         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89506
89507 2000-06-04  Jim Meyering  <meyering@lucent.com>
89508
89509         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89510         SunOS 4.1.4 for which gid_t is an unsigned type.
89511
89512 2000-06-03  Jim Meyering  <meyering@lucent.com>
89513
89514         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89515         now that autoconf requires that.
89516
89517         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89518         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89519         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89520
89521 2000-06-03  Jim Meyering  <meyering@lucent.com>
89522
89523         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89524
89525 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89526
89527         * m4/glibc21.m4: New file.
89528         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89529
89530 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89531
89532         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89533         newer, don't install charset.alias.
89534         * lib/config.charset: Change the Linux/glibc rules so they become empty
89535         on glibc-2.1 or newer.
89536
89537 2000-06-02  Jim Meyering  <meyering@lucent.com>
89538
89539         * lib/mountlist.c: Back out last change.  Instead, do this...
89540         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89541         me_dummy member using the same `ignore'-testing code.
89542         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89543         fs_type strings.
89544         From Mark D. Roth.
89545
89546 2000-05-29  Jim Meyering  <meyering@lucent.com>
89547
89548         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89549         mounts with the `ignore' attribute.  Based on a patch from
89550         Mark D. Roth.
89551
89552 2000-05-28  Jim Meyering  <meyering@lucent.com>
89553
89554         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89555         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89556         * m4/stat.m4: Likewise.
89557         * m4/lstat.m4: Likewise.
89558         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89559
89560         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89561         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89562
89563 2000-05-26  Jim Meyering  <meyering@lucent.com>
89564
89565         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89566
89567 2000-05-24  Jim Meyering  <meyering@lucent.com>
89568
89569         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89570         autoconf requires that.
89571         * m4/lib-check.m4: Likewise.
89572         * m4/jm-macros.m4: Likewise.
89573         * m4/strftime.m4: Likewise.
89574
89575         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89576         AC_CHECK_DECLS, now that autoconf requires that.
89577
89578 2000-05-22  Jim Meyering  <meyering@lucent.com>
89579
89580         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89581         * m4/lstat.m4: Likewise.
89582
89583 2000-05-22  Jim Meyering  <meyering@lucent.com>
89584
89585         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89586
89587 2000-05-20  Jim Meyering  <meyering@lucent.com>
89588
89589         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89590         (jm_PREREQ): Use it.
89591
89592 2000-05-18  Jim Meyering  <meyering@lucent.com>
89593
89594         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89595         back, too, since it may have been modified by allocate_entry.
89596         (hash_delete): Rewrite to use neither the assignment operator
89597         nor the comma operator in an if-expression.
89598
89599 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89600
89601         * lib/closeout.c:
89602         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89603         Remove; no longer needed.
89604         "quotearg.h": Add include.
89605         (file_name): Do not bother to explicitly initialize to NULL; it's less
89606         efficient on some hosts.
89607         (close_stdout_status): Remove test as to whether stdout was already
89608         closed; it breaks for the case "echo x | sort >&-".
89609         Quote file name colons.
89610         Do not assume that _("write error") lacks format strings.
89611
89612 2000-05-15  Jim Meyering  <meyering@lucent.com>
89613
89614         * lib/version-etc.c (version_etc_copyright): Update the copyright
89615         string used in all --version output.
89616
89617 2000-05-14  Jim Meyering  <meyering@lucent.com>
89618
89619         * lib/closeout.c (close_stdout_set_file_name): New function.
89620         (close_stdout_status): Use new file-scoped global.
89621         Return right away if fstat says the stdout file descriptor is invalid.
89622         * lib/closeout.h (close_stdout_set_file_name): Declare.
89623
89624 2000-05-10  Jim Meyering  <meyering@lucent.com>
89625
89626         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89627         (close_stdout_set_status): New function.
89628         * lib/closeout.h (close_stdout_set_status): Declare.
89629
89630 2000-05-09  Jim Meyering  <meyering@lucent.com>
89631
89632         * m4/gettext.m4: Rename this...
89633         * m4/libintl.m4: ...to this.
89634
89635 2000-05-08  Jim Meyering  <meyering@lucent.com>
89636
89637         * lib/long-options.c: Don't include closeout.h.
89638         (parse_long_options): Don't call close_stdout for --version.
89639
89640 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89641
89642         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89643         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89644         2.1.3 bug.  This avoids a clash when files like regex.c define
89645         _GNU_SOURCE.
89646
89647 2000-05-06  Jim Meyering  <meyering@lucent.com>
89648
89649         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89650         (AC_REPLACE_FUNCS): Add strnlen.
89651
89652         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89653         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89654
89655         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89656         AC_SEARCH_LIBS call for nanosleep.
89657         (LIB_NANOSLEEP): Set and AC_SUBST.
89658
89659 2000-05-06  Jim Meyering  <meyering@lucent.com>
89660
89661         * lib/strnlen.c: Undefine __strnlen and strnlen.
89662         [!weak_alias]: Define __strnlen to strnlen.
89663
89664         * lib/atexit.c: New file, from libiberty.
89665
89666 2000-05-06  Jim Meyering  <meyering@lucent.com>
89667
89668         * lib/closeout.c (close_stdout_status): Also check for errors on the
89669         stderr stream.
89670
89671 2000-05-05  Jim Meyering  <meyering@lucent.com>
89672
89673         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89674         AC_SEARCH_LIBS call for clock_gettime.
89675         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89676
89677         * m4/search-libs.m4: Update from autoconf.
89678
89679         su doesn't work on Solaris 2.6.
89680         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89681         <shadow.h>.  Reported by Dragos Harabor.
89682
89683 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89684
89685         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89686         memcpy instead of xmalloc, xrealloc, path_concat.
89687         (locale_charset): Treat empty environment variables as absent.
89688         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89689
89690 2000-05-04  Jim Meyering  <meyering@lucent.com>
89691
89692         * lib/getopt.c: Update from glibc.
89693         * lib/obstack.c: Likewise.
89694         * lib/obstack.h: Likewise.
89695         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89696         file
89697
89698         * lib/regex.h: Likewise.
89699         * lib/strndup.c: Likewise.
89700         * lib/strnlen.c: New file, from glibc.
89701
89702 2000-05-03  Jim Meyering  <meyering@lucent.com>
89703
89704         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89705
89706 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89707
89708         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89709         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89710         compile-time test, rather than inspecting host and OS, to
89711         decide whether to define _LARGEFILE_SOURCE.
89712
89713 2000-05-01  Jim Meyering  <meyering@lucent.com>
89714
89715         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89716
89717         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89718         Based on a patch from Bruno Haible.
89719
89720 2000-05-01  Jim Meyering  <meyering@lucent.com>
89721
89722         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89723
89724 2000-04-29  Jim Meyering  <meyering@lucent.com>
89725
89726         * lib/path-concat.c: Declare strdup only if it's not defined.
89727         * lib/canon-host.c: Likewise.
89728
89729 2000-04-28  Jim Meyering  <meyering@lucent.com>
89730
89731         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89732         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89733         is included first, then limits.h is included by locale.h by libintl.h.
89734         From John David Anglin.
89735
89736 2000-04-25  Jim Meyering  <meyering@lucent.com>
89737
89738         * lib/makepath.c (S_IRWXUGO): Define.
89739         (make_path): Always perform explicit chmod if MODE specifies any
89740         of the `special' permission bits.  Prompted by a bug report against
89741         install from Mate Wierdl and Joost van Baal.
89742
89743 2000-04-18  Jim Meyering  <meyering@lucent.com>
89744
89745         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89746         (jm_PREREQ): Use it.
89747
89748 2000-04-18  Jim Meyering  <meyering@lucent.com>
89749
89750         * lib/README: New file.
89751
89752         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89753         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89754
89755 2000-04-17  Jim Meyering  <meyering@lucent.com>
89756
89757         Get it right :-)
89758         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89759         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89760         Suggestion from Akim Demaille.
89761
89762 2000-04-17  Jim Meyering  <meyering@lucent.com>
89763
89764         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89765         the definition of it to rpl_strftime also defined-away the system's
89766         declaration.
89767
89768 2000-04-15  Jim Meyering  <meyering@lucent.com>
89769
89770         Use `C' to denote so-called `contiguous' files, the same way
89771         that tar does.
89772         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89773         (ftypelet): Use S_ISCTG.
89774         From Michael Deutschmann.
89775
89776 2000-04-14  Jim Meyering  <meyering@lucent.com>
89777
89778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89779         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89780         clobbered.
89781
89782 2000-04-14  Jim Meyering  <meyering@lucent.com>
89783
89784         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89785
89786 2000-04-13  Jim Meyering  <meyering@lucent.com>
89787
89788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89789         AH_VERBATIM to insert required #ifndef into config.h.in.
89790         Suggestion from Akim Demaille.
89791
89792 2000-04-12  Jim Meyering  <meyering@lucent.com>
89793
89794         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89795         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89796         Christian Krackowizer.
89797
89798         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89799         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89800         (AC_SYS_LARGEFILE): Require.
89801         (AM_C_PROTOTYPES): Require.
89802
89803 2000-04-08  Jim Meyering  <meyering@lucent.com>
89804
89805         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89806         names don't conflict.  Reported by Eli Zaretskii.
89807
89808 2000-04-07  Jim Meyering  <meyering@lucent.com>
89809
89810         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89811         sys/types.h, to work around system header problems on AIX 3.2.5.
89812         From Bruno Haible.
89813
89814 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89815
89816         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89817         bug.  Deal with the different error behavior of Irix iconv.
89818
89819 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89820
89821         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89822         IRIX if the installer said otherwise.
89823
89824 2000-04-05  Jim Meyering  <meyering@lucent.com>
89825
89826         Portability tweaks required for ultrix4.3.
89827         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89828         (jm_CHECK_DECLS): Add getutent to the list of functions.
89829         (_jm_DECL_HEADERS): Add utmpx.h.
89830         From John David Anglin.
89831
89832         * m4/strftime.m4: Back out the 2000-04-02 change.
89833         Instead of that change, simply undefine putenv in the test program.
89834
89835 2000-04-05  Jim Meyering  <meyering@lucent.com>
89836
89837         Portability tweaks required for ultrix4.3.
89838         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89839         getutent.
89840         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89841         * lib/canon-host.c: Declare strdup.
89842         * lib/path-concat.c: Likewise.
89843         From John David Anglin.
89844
89845 2000-04-04  Jim Meyering  <meyering@lucent.com>
89846
89847         Be more DOS 8.3-friendly.
89848         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89849         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89850         * lib/Makefile.am: Reflect renaming.
89851         Reported by Eli Zaretskii.
89852
89853         Use a temporary file name that won't clash with `charset.alias'
89854         in the DOS 8.3 name space.
89855         * lib/Makefile.am (charset_tmp): Define.
89856         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89857         (uninstall-local): Likewise.
89858         Reported by Eli Zaretskii.
89859
89860 2000-04-03  Jim Meyering  <meyering@lucent.com>
89861
89862         * m4/gettext.m4: Fix typo in comment.
89863
89864         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89865         textutils/configure.in).  Suggestion from Paul Eggert.
89866         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89867
89868 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89869
89870         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89871         variable in the shell rather than using putenv, which isn't
89872         portable.  This avoids the configure-time inter-test dependency
89873         on the potentially-renamed putenv function.
89874
89875 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89876
89877         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89878         before checking struct stat.st_blksize, so that
89879         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89880
89881 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89882
89883         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89884         since strftime.c uses HAVE_STRFTIME to decide whether to use
89885         the underlying strftime.
89886
89887 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89888
89889         * lib/time/strftime.c (my_strftime): Make sure we call the system
89890         strftime, not ourselves, when invoking the underlying strftime.
89891
89892 2000-03-24  Jim Meyering  <meyering@lucent.com>
89893
89894         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89895         (charset_alias): Define.
89896         (install-exec-local): Factor out common code.
89897         (uninstall-local): Split lines longer than 80.
89898         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89899         (SUFFIXES): Define.
89900         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89901         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89902
89903 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89904
89905         * lib/config.charset: Output a line containing "Packages using this
89906         file".
89907         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89908         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89909         ref-del.sed): New rules.
89910
89911 2000-03-17  Jim Meyering  <meyering@lucent.com>
89912
89913         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89914         Otherwise, include <strings.h>
89915
89916 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89917
89918         * lib/unicodeio.c (utf8_wctomb): New function.
89919         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89920         format instead of in UCS-4 with platform dependent endianness.
89921
89922 2000-03-10  Jim Meyering  <meyering@lucent.com>
89923
89924         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89925         From Marco Franzen.
89926
89927 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89928
89929         * lib/savedir.c (savedir): Work even if directory size is
89930         negative; this can happen with some screwy NFS configurations.
89931
89932 2000-03-06  Jim Meyering  <meyering@lucent.com>
89933
89934         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89935         if it's NULL (because we ran out of memory).  From Bruno Haible.
89936
89937 2000-03-05  Jim Meyering  <meyering@lucent.com>
89938
89939         * lib/localcharset.c ("path-concat.h"): Include.
89940         (get_charset_aliases): Use path_concat instead of ANSI string
89941         concatenation.
89942
89943         * lib/unicodeio.h (PARAMS): Define.
89944         Use it to guard prototype.
89945
89946 2000-03-04  Jim Meyering  <meyering@lucent.com>
89947
89948         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89949         for lib/localcharset.c.
89950
89951 2000-03-04  Jim Meyering  <meyering@lucent.com>
89952
89953         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89954         installing into it.
89955         (uninstall-local): Uncomment this rule so `make distcheck' works
89956         once again.
89957
89958         * lib/unicodeio.c (<errno.h>): Include it.
89959         (errno): Declare if not defined.
89960
89961         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89962
89963         * lib/config.charset: New version, incorporating remarks from a linux
89964         i18n mailing list.  From Bruno Haible.
89965
89966 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89967
89968         * m4/codeset.m4: New file.
89969         * m4/iconv.m4: New file.
89970         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89971
89972 2000-03-03  Jim Meyering  <meyering@lucent.com>
89973
89974         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89975
89976 2000-03-02  Jim Meyering  <meyering@lucent.com>
89977
89978         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89979         the messages come out on separate lines.
89980
89981         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89982         rather than jm_CHECK_DECLARATIONS.
89983         * m4/decl.m4: Remove now-unused file.
89984
89985         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89986         geteuid.
89987
89988 2000-03-02  Jim Meyering  <meyering@lucent.com>
89989
89990         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89991
89992 2000-03-01  Jim Meyering  <meyering@lucent.com>
89993
89994         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89995         * lib/unicodeio.c: Likewise.
89996
89997 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89998
89999         * lib/config.charset: New file.
90000         * lib/localcharset.c: New file.
90001         * lib/unicodeio.h, lib/unicodeio.c: New files.
90002         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90003         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90004         (noinst_HEADERS): Add unicodeio.h.
90005         (all-local, install-exec-local, charset.alias): New targets.
90006
90007 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90008
90009         * lib/quotearg.c (ALERT_CHAR): New macro.
90010         (quotearg_buffer_restyled): Use it.
90011
90012 2000-02-27  Jim Meyering  <meyering@lucent.com>
90013
90014         * m4/check-decl.m4: Add getenv to the list.
90015
90016 2000-02-27  Jim Meyering  <meyering@lucent.com>
90017
90018         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90019         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90020
90021         * lib/backupfile.c: Guard inclusion of stdlib.h with
90022         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90023         Declare malloc if needed.
90024
90025         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90026         `#ifndef HAVE_DECL..'
90027         now that autoconf always defines the HAVE_DECL_ symbols.
90028         * lib/human.c: Likewise.
90029         * lib/same.c: Likewise.
90030         * lib/strtoumax.c: Likewise.
90031
90032         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90033         declaration check was not run.
90034         * lib/hash.c: Likewise.
90035         * lib/human.c: Likewise.
90036         * lib/same.c: Likewise.
90037         * lib/strtoumax.c: Likewise.
90038
90039         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90040         `.', then first look up the entire `.'-containing string as a login
90041         name.
90042
90043 2000-02-23  Jim Meyering  <meyering@lucent.com>
90044
90045         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90046         in place of my hack.
90047
90048 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90049
90050         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90051         (textint): New typedef.
90052         (parser_control): Member year changed from int to textint.
90053         All uses changed.
90054         (YYSTYPE): Removed; replaced by %union with int and textint members.
90055         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90056         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90057         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90058         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90059         (date, number, to_year): Use width of number in digits, not its value,
90060         to determine whether it's a 2-digit year, or a 2-digit time.
90061         (yylex): Store number of digits of numeric tokens.
90062         Reported by John Kendall.
90063
90064         (parser_control): Changed from struct parser_control to typedef (for
90065         consistency).  All uses changed.
90066
90067         (tID): Removed; not used.
90068         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90069
90070 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90071
90072         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90073         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90074
90075 2000-02-12  Jim Meyering  <meyering@lucent.com>
90076
90077         * lib/userspec.c (ISDIGIT): Define it.
90078         (isdigit): Remove definition.
90079         (is_number): Use ISDIGIT, not isdigit.
90080         <libintl.h>: Include.
90081         (_ and N_): Define.
90082         (parse_user_spec): Mark translatable strings.
90083
90084 2000-02-10  Jim Meyering  <meyering@lucent.com>
90085
90086         With these changes, nanosleep.[ch] are finally enough like the other
90087         lib/* replacement files to compile on a few more losing systems.
90088
90089         * lib/nanosleep.h: Don't include config.h.
90090         Remove prototype from declaration of nanosleep.
90091         (PARAMS): Remove now-unneeded definition.
90092         * lib/nanosleep.c: #undef nanosleep.
90093         (rpl_nanosleep): Rename from nanosleep.
90094
90095 2000-02-10  Jim Meyering  <meyering@lucent.com>
90096
90097         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90098         gnu_nanosleep to rpl_nanosleep.
90099
90100 2000-02-09  Jim Meyering  <meyering@lucent.com>
90101
90102         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90103         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90104
90105 2000-02-08  Akim Demaille  <akim@epita.fr>
90106
90107         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90108         `[' and `]' and remove uses of `changequote'.
90109         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90110         (AC_SYS_LARGEFILE): Likewise.
90111         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90112         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90113         of changequote.
90114         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90115         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90116         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90117         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90118
90119 2000-02-05  Jim Meyering  <meyering@lucent.com>
90120
90121         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90122         Remove explicit use of AC_HEADER_TIME.  It is required by
90123         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90124         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90125         in autoconf whereby the expansion of the latter ended up preceding
90126         the expansion of its prerequisite, AC_HEADER_TIME.
90127         Reported by Volker Borchert.
90128
90129 2000-02-03  Jim Meyering  <meyering@lucent.com>
90130
90131         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90132
90133 2000-02-03  Jim Meyering  <meyering@lucent.com>
90134
90135         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90136         rather than with `#if HAVE_UTMPNAME'.
90137
90138 2000-02-02  Jim Meyering  <meyering@lucent.com>
90139
90140         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90141         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90142         Reported by Eli Zaretskii.
90143
90144 2000-02-01  Jim Meyering  <meyering@lucent.com>
90145
90146         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90147
90148 2000-01-31  Jim Meyering  <meyering@lucent.com>
90149
90150         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90151         functions.  Add the time.h and sys/time.h headers along with the
90152         AC_REQUIRE'ment of AC_HEADER_TIME.
90153
90154 2000-01-31  Jim Meyering  <meyering@lucent.com>
90155
90156         * lib/nanosleep.h (nanosleep): Guard declaration with
90157         `#if ! HAVE_DECL_NANOSLEEP'.
90158         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90159         the declaration in that vendor's sys/timers.h.
90160         Reported by Christian Krackowizer.
90161
90162         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90163         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90164         (ISPRINT): Likewise.
90165         Reported by Tom Tromey.
90166
90167 2000-01-30  Jim Meyering  <meyering@lucent.com>
90168
90169         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90170
90171         * m4/prereq.m4 (utmp_includes): Define.
90172         Check for ut_user and ut_name members in both struct utmpx
90173         and struct utmp.
90174
90175 2000-01-30  Jim Meyering  <meyering@lucent.com>
90176
90177         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90178         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90179         header files where only utmpx.ut_user is declared.
90180
90181         * lib/readutmp.h (UT_USER): Define.
90182
90183 2000-01-29  Jim Meyering  <meyering@lucent.com>
90184
90185         * m4/lib-check.m4: New file containing library-related checks from
90186         fileutils and sh-utils (textutils had none).
90187
90188 2000-01-28  Jim Meyering  <meyering@lucent.com>
90189
90190         * m4/perl.m4: Change format of warning message to look more like that
90191         from the missing script.  Suggestion from François Pinard.
90192
90193 2000-01-25  Jim Meyering  <meyering@lucent.com>
90194
90195         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90196         well as time.h in the compile check.
90197         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90198         Fix typo in cross-compiling case: s/yes/no/.
90199
90200 2000-01-23  Jim Meyering  <meyering@lucent.com>
90201
90202         * m4/jm-macros.m4: Move df-related tests here from
90203         fileutils/configure.in
90204
90205         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90206         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90207
90208         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90209         s/space/ac_fsusage_space/.
90210         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90211
90212         * m4/ftruncate.m4: New file (derived from part of
90213         fileutils/configure.in).
90214         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90215         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90216
90217         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90218         AC_SUBST these here, rather than just in sh-util/configure.in, so
90219         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90220         all the same.
90221         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90222         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90223         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90224         (AC_SUBST(POW_LIBM)): Likewise.
90225         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90226
90227 2000-01-23  Jim Meyering  <meyering@lucent.com>
90228
90229         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90230         obstack.c.
90231
90232 2000-01-22  Jim Meyering  <meyering@lucent.com>
90233
90234         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90235
90236         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90237
90238         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90239         configure.in
90240         (AC_CHECK_HEADERS): Likewise for sh-utils.
90241         (AC_CHECK_HEADERS): Likewise for textutils.
90242         Merge the three lists of headers.
90243
90244         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90245         from fileutils' configure.in.
90246
90247         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90248         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90249         check-decl.m4.
90250
90251         * m4/check-decl.m4: Use #if rather than #ifdef.
90252         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90253         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90254         (_jm_DECL_HEADERS): Define new function.
90255         (jm_CHECK_DECLARATIONS): Require it.
90256
90257 2000-01-22  Jim Meyering  <meyering@lucent.com>
90258
90259         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90260         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90261         Required for some AIX systems.  Reported by Christian Krackowizer.
90262         [TESTING] (main): New function.
90263
90264         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90265         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90266         letters.
90267
90268         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90269         iswprint.
90270
90271         * lib/strverscmp.c (ISDIGIT): Define.
90272         (strverscmp): Use ISDIGIT, not isdigit.
90273
90274 2000-01-19  Jim Meyering  <meyering@lucent.com>
90275
90276         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90277         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90278         defines `struct timespec' in <sys/time.h>
90279
90280         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90281         Thanks to Akim for explaining.
90282
90283 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90284
90285         * lib/nanosleep.c (nanosleep):
90286         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90287         POSIX.1 doesn't require SA_INTERRUPT and some systems
90288         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90289         it's been part of POSIX.1 since day 1 (in 1988).
90290
90291 2000-01-17  Jim Meyering  <meyering@lucent.com>
90292
90293         * lib/interlock: Remove unused file.  Reported by François Pinard.
90294
90295 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90296
90297         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90298         alert, backslash, formfeed, and vertical tab unnecessarily in
90299         shell quoting style.
90300
90301 2000-01-16  Jim Meyering  <meyering@lucent.com>
90302
90303         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90304         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90305         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90306         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90307
90308 2000-01-16  Jim Meyering  <meyering@lucent.com>
90309
90310         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90311         because the latter didn't work.
90312
90313 2000-01-15  Jim Meyering  <meyering@lucent.com>
90314
90315         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90316         (AC_REPLACE_FUNCS): Add memcpy and memset.
90317         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90318         Add strpbrk.
90319         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90320
90321 2000-01-12  Jim Meyering  <meyering@lucent.com>
90322
90323         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90324         (jm_PREREQ): Use it.
90325         (jm_PREREQ_READUTMP): New macro.
90326         (jm_PREREQ): Use it.
90327
90328 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90329
90330         Quote multibyte characters correctly.
90331         * m4/c-bs-a.m4: New file.
90332         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90333         (jm_PREREQ): Use it.
90334
90335 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90336
90337         * m4/uintmax_t.m4: Port to autoconf 2.13.
90338
90339 2000-01-08  Jim Meyering  <meyering@ascend.com>
90340
90341         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90342         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90343
90344 2000-01-04  Jim Meyering  <meyering@ascend.com>
90345
90346         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90347         jm_STRUCT_DIRENT_D_TYPE.
90348         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90349         jm_STRUCT_DIRENT_D_INO.
90350         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90351         jm_STRUCT_UTIMBUF.
90352         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90353         renamings.
90354         * m4/utime.m4: Likewise.
90355
90356         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90357         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90358
90359 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90360
90361         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90362         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90363
90364 2000-01-02  Jim Meyering  <meyering@ascend.com>
90365
90366         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90367         remember if this is necessary.
90368
90369 1999-12-26  Jim Meyering  <meyering@ascend.com>
90370
90371         * m4/jm-macros.m4: Use it here.
90372         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90373
90374 1999-12-23  Jim Meyering  <meyering@ascend.com>
90375
90376         * m4/jm-macros.m4: Check for clock_gettime (moved from
90377         fileutils/configure.in)
90378         Check for gettimeofday.
90379
90380 1999-12-20  Jim Meyering  <meyering@ascend.com>
90381
90382         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90383         autoconf-2.14a-1999-12-20.
90384
90385 1999-12-19  Jim Meyering  <meyering@ascend.com>
90386
90387         * m4/lstat-slash.m4: New file.
90388         * m4/jm-macros.m4: Use the new macro:
90389         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90390
90391 1999-12-07  Jim Meyering  <meyering@ascend.com>
90392
90393         * m4/perl.m4: Require that File::Compare be available, too.
90394         Too many systems seem to lack it.
90395
90396         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90397         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90398
90399 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90400
90401         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90402         problem with the QNX 4.25 shell, which doesn't propagate exit
90403         status of failed commands inside shell assignments.
90404
90405 1999-11-17  Jim Meyering  <meyering@ascend.com>
90406
90407         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90408
90409 1999-11-07  Jim Meyering  <meyering@ascend.com>
90410
90411         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90412
90413 1999-11-06  Jim Meyering  <meyering@ascend.com>
90414
90415         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90416         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90417
90418 1999-11-05  Jim Meyering  <meyering@ascend.com>
90419
90420         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90421         configure.in of textutils, fileutils, and sh-utils into this one
90422         (shared between those packages) file.
90423         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90424         AC_STRUCT_ST_BLKSIZE.
90425
90426 1999-11-03  Jim Meyering  <meyering@ascend.com>
90427
90428         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90429         of AC_CHECK_TYPE checks includes unistd.h.
90430         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90431         Suggestion from Akim Demaille.
90432
90433 1999-10-30  Jim Meyering  <meyering@ascend.com>
90434
90435         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90436         m4-quoted string.
90437         * m4/ls-mntd-fs.m4: Likewise.
90438         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90439         * m4/jm-winsz1.m4: Likewise.
90440
90441         * m4/const.m4: Remove file, since the fix made it into the experimental
90442         version of autoconf.
90443         * m4/mktime.m4: Likewise.
90444
90445         * m4/check-type.m4: Remove file, now that the latest version of
90446         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90447
90448         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90449         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90450         AC_CHECK_TYPE.
90451
90452 1999-10-04  Jim Meyering  <meyering@ascend.com>
90453
90454         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90455
90456 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90457
90458         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90459         2.95.1 bug with HP-UX 10.20.
90460
90461 1999-09-17  Jim Meyering  <meyering@ascend.com>
90462
90463         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90464         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90465         due to missing strdup (against sh-utils-2.0).
90466
90467 1999-08-29  Jim Meyering  <meyering@ascend.com>
90468
90469         * m4/jm-macros.m4: Require jm_BISON.
90470         * m4/bison.m4: New file.
90471
90472 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90473
90474         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90475         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90476
90477 1999-08-05  Jim Meyering  <meyering@ascend.com>
90478
90479         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90480         to avoid conflicts with `conftest' on 8+3 filesystems.
90481         Suggestion from Eli Zaretskii.
90482
90483 1999-08-04  Jim Meyering  <meyering@ascend.com>
90484
90485         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90486         fileutils and sh-utils (textutils's getline test was inadequate).
90487         (AM_FUNC_GETLINE): Run this test.
90488         (AC_CHECK_FUNCS): Check for getdelim.
90489         Reported by Bob Proulx.
90490
90491 1999-08-02  Jim Meyering  <meyering@ascend.com>
90492
90493         * m4/jm-macros.m4: Add a comment.
90494
90495 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90496
90497         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90498         <inttypes.h> defines strtoumax as a macro (and not as a
90499         function).
90500
90501 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90502
90503         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90504         that we can shift, multiply and divide unsigned long long
90505         values; Ultrix cc can't do it.
90506
90507 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90508
90509         * m4/mktime.m4: New file, which is a preview of what should appear
90510         in the next public autoconf release.
90511
90512 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90513
90514         * m4/lfs.m4: Remove this file.
90515         * m4/largefile.m4: New file.  It contains the old contents of
90516         lfs.m4, except that all names with prefix AC_LFS have been
90517         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90518         compatible with future autoconf versions.  Also, some minor m4
90519         quoting problems have been fixed.
90520
90521 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90522
90523         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90524         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90525         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90526         and simplify the shell code.
90527
90528 1999-08-01  Jim Meyering  <meyering@ascend.com>
90529
90530         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90531         m4.
90532
90533 1999-07-20  Jim Meyering  <meyering@ascend.com>
90534
90535         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90536
90537 1999-07-15  Jim Meyering  <meyering@ascend.com>
90538
90539         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90540
90541 1999-05-22  Jim Meyering  <meyering@ascend.com>
90542
90543         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90544
90545 1999-05-20  Jim Meyering  <meyering@ascend.com>
90546
90547         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90548         Add a colon after each `then' in case $4 is empty.
90549
90550 1999-05-16  Jim Meyering  <meyering@ascend.com>
90551
90552         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90553
90554 1999-05-10  Jim Meyering  <meyering@ascend.com>
90555
90556         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90557
90558         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90559         AC_FUNC_MKTIME.
90560
90561 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90562
90563         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90564
90565 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90566
90567         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90568         not CPPFLAGS, so that linking works correctly in IRIX.
90569
90570 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90571
90572         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90573
90574 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90575
90576         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90577         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90578         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90579         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90580         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90581
90582         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90583
90584 1999-04-20  Jim Meyering  <meyering@ascend.com>
90585
90586         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90587         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90588         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90589
90590 1999-04-18  Jim Meyering  <meyering@ascend.com>
90591
90592         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90593         * m4/jm-macros.m4: Use it.
90594
90595 1999-04-06  Jim Meyering  <meyering@ascend.com>
90596
90597         * m4/strftime.m4: Remove test for %f.
90598
90599 1999-03-29  Jim Meyering  <meyering@ascend.com>
90600
90601         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90602         superset of the AC_TYPE_* checks in the textutils, fileutils,
90603         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90604         AC_TYPE_PID_T.
90605
90606 1999-03-28  Jim Meyering  <meyering@ascend.com>
90607
90608         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90609         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90610         replaced e.g., in the *.sh files of the sh-utils.
90611
90612 1999-03-20  Jim Meyering  <meyering@ascend.com>
90613
90614         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90615         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90616         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90617
90618 1999-03-19  Jim Meyering  <meyering@ascend.com>
90619
90620         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90621
90622 1999-03-12  Jim Meyering  <meyering@ascend.com>
90623
90624         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90625
90626 1999-03-07  Jim Meyering  <meyering@ascend.com>
90627
90628         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90629         declared.
90630
90631 1999-02-17  Jim Meyering  <meyering@ascend.com>
90632
90633         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90634         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90635
90636 1999-02-07  Jim Meyering  <meyering@ascend.com>
90637
90638         * m4/group-member.m4: New file -- extracted from sh-utils'
90639         configure.in.
90640
90641         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90642         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90643
90644 1999-02-06  Jim Meyering  <meyering@ascend.com>
90645
90646         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90647         * m4/fnmatch.m4: Likewise.
90648         * m4/getgroups.m4: Likewise.
90649         * m4/lstat.m4: Likewise.
90650         * m4/malloc.m4: Likewise.
90651         * m4/putenv.m4: Likewise.
90652         * m4/realloc.m4: Likewise.
90653         * m4/regex.m4: Likewise.
90654         * m4/stat.m4: Likewise.
90655         * m4/strftime.m4: Likewise.
90656         Suggestion from Alain Magloire.
90657
90658         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90659         * m4/fnmatch.m4: Likewise.
90660         * m4/getgroups.m4: Likewise.
90661         * m4/getline.m4: Likewise.
90662         * m4/lstat.m4: Likewise.
90663         * m4/malloc.m4: Likewise.
90664         * m4/memcmp.m4: Likewise.
90665         * m4/putenv.m4: Likewise.
90666         * m4/realloc.m4: Likewise.
90667         * m4/regex.m4: Likewise.
90668         * m4/stat.m4: Likewise.
90669         * m4/strftime.m4: Likewise.
90670         Suggestion from Alain Magloire.
90671
90672         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90673         an argument.
90674
90675         * m4/regex.m4: Add a run-time Test for proper operation of
90676         re_compile_pattern.
90677
90678 1999-01-31  Jim Meyering  <meyering@ascend.com>
90679
90680         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90681
90682 1999-01-30  Jim Meyering  <meyering@ascend.com>
90683
90684         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90685
90686         * m4/jm-mktime.m4: Make this a wrapper around the official
90687         AM_FUNC_MKTIME rather than my private copy, now that the official one
90688         is up to date.
90689         * m4/mktime.m4: Remove file.
90690
90691         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90692         * m4/uptime.m4: Likewise.
90693         * m4/uintmax_t.m4: Likewise.
90694
90695 1999-01-28  Jim Meyering  <meyering@ascend.com>
90696
90697         * m4/jm-macros.m4: Use jm_AFS.
90698         * m4/afs.m4: New file (from fileutils' configure.in).
90699
90700         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90701         * m4/chown.m4: Likewise.
90702         * m4/d-ino.m4: Likewise.
90703         * m4/d-type.m4: Likewise.
90704         * m4/fnmatch.m4: Likewise.
90705         * m4/getgroups.m4: Likewise.
90706         * m4/gettext.m4: Likewise.
90707         * m4/jm-mktime.m4: Likewise.
90708         * m4/jm-winsz2.m4: Likewise.
90709         * m4/lcmessage.m4: Likewise.
90710         * m4/ls-mntd-fs.m4: Likewise.
90711         * m4/malloc.m4: Likewise.
90712         * m4/memcmp.m4: Likewise.
90713         * m4/putenv.m4: Likewise.
90714         * m4/realloc.m4: Likewise.
90715         * m4/st_mtim.m4: Likewise.
90716         * m4/strftime.m4: Likewise.
90717
90718 1999-01-16  Jim Meyering  <meyering@ascend.com>
90719
90720         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90721         (ARGMATCH_DIE_DECL): Define.
90722
90723 1999-01-12  Jim Meyering  <meyering@ascend.com>
90724
90725         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90726         Reported by Lars Hecking.
90727
90728 1999-01-10  Jim Meyering  <meyering@ascend.com>
90729
90730         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90731         gross kludge.
90732         * m4/inttypes_h.m4: Likewise.
90733         * m4/lstat.m4: Likewise.
90734         * m4/malloc.m4: Likewise.
90735         * m4/readdir.m4: Likewise.
90736         * m4/realloc.m4: Likewise.
90737         * m4/st_dm_mode.m4: Likewise.
90738         * m4/stat.m4: Likewise.
90739         * m4/utimbuf.m4: Likewise.
90740         * m4/utimes.m4: Likewise.
90741
90742         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90743         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90744         comments in config.h.in are meaningful.
90745
90746         * m4/jm-macros.m4: Require autoconf-2.13 here.
90747
90748         * m4/regex.m4: By default, don't use the included regex.c on systems
90749         with glibc 2.  Suggestion from Uli Drepper.
90750
90751 1999-01-02  Jim Meyering  <meyering@ascend.com>
90752
90753         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90754
90755 1998-12-18  Jim Meyering  <meyering@ascend.com>
90756
90757         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90758         Based on a suggestion from Lars Hecking.
90759
90760 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90761
90762         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90763
90764 1998-11-16  Jim Meyering  <meyering@ascend.com>
90765
90766         * m4/lfs.m4: Double-quote the `uname...` expression.
90767
90768 1998-11-14  Jim Meyering  <meyering@ascend.com>
90769
90770         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90771         * m4/stat.m4: Likewise.
90772
90773 1998-11-03  Jim Meyering  <meyering@ascend.com>
90774
90775         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90776         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90777
90778 1998-10-18  Jim Meyering  <meyering@ascend.com>
90779
90780         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90781
90782 1998-10-17  Jim Meyering  <meyering@ascend.com>
90783
90784         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90785         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90786         calls for those previously hard-coded headers.  Instead, take a new
90787         parameter.
90788         (jm_CHECK_DECLARATIONS): Reflect interface change.
90789         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90790         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90791
90792         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90793
90794 1998-10-14  Jim Meyering  <meyering@ascend.com>
90795
90796         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90797         instead of "TZ=America/Vancouver".  From Paul Eggert.
90798
90799 1998-10-11  Jim Meyering  <meyering@ascend.com>
90800
90801         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90802         This adds a test for a recently added compatibility fix for mktime.c.
90803         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90804
90805 1998-09-27  Jim Meyering  <meyering@ascend.com>
90806
90807         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90808
90809         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90810         ../configure.in, including a change from Gordon Matzigkeit to allow
90811         cross-compiling for the Hurd.
90812
90813         * m4/glibc.m4: New file/macro to test for the GNU C Library
90814         versions 1 and 2.  From Gordon Matzigkeit.
90815         Indent.
90816
90817 1998-09-21  Jim Meyering  <meyering@ascend.com>
90818
90819         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90820
90821 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90822
90823         Port nanosecond-resolution times to UnixWare 2.1.2 and
90824         pedantic Solaris 2.6.
90825
90826         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90827         AC_STRUCT_ST_MTIM.
90828         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90829         Generate name of ns member, instead of just 1 or undef.
90830         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90831
90832 1998-08-15  Jim Meyering  <meyering@ascend.com>
90833
90834         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90835         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90836         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90837         instead of jm_TYPE_SSIZE_T.
90838
90839 1998-08-12  Jim Meyering  <meyering@ascend.com>
90840
90841         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90842
90843 1998-08-02  Jim Meyering  <meyering@ascend.com>
90844
90845         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90846         in acconfig.h manually.
90847
90848 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90849
90850         * m4/st_mtim.m4: New file.
90851
90852 1998-07-28  Jim Meyering  <meyering@ascend.com>
90853
90854         * m4/utimes.m4: Undef stat.
90855
90856 1998-07-25  Jim Meyering  <meyering@ascend.com>
90857
90858         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90859         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90860
90861 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90862
90863         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90864         uid and gid actually remain unchanged.
90865
90866 1998-07-07  Jim Meyering  <meyering@ascend.com>
90867
90868         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90869
90870 1998-07-04  Jim Meyering  <meyering@ascend.com>
90871
90872         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90873         to prove that this macro can be used in packages without regex.c.
90874
90875 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90876
90877         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90878         is to be used.
90879
90880 1998-07-03  Jim Meyering  <meyering@ascend.com>
90881
90882         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90883
90884         * m4/gettext.m4: New file -- from gettext-0.10.35.
90885         * m4/lcmessage.m4: Likewise.
90886         * m4/progtest.m4: Likewise.
90887
90888         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90889         * m4/jm-macros.m4: Require the new macro.
90890
90891 1998-06-29  Jim Meyering  <meyering@ascend.com>
90892
90893         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90894         for the definition of NGROUPS (used in a system header included
90895         by sys/mount.h).
90896
90897 1998-06-28  Jim Meyering  <meyering@ascend.com>
90898
90899         * m4/ls-mntd-fs.m4: New file.
90900         * m4/fstypename.m4: New file.
90901
90902         * m4/jm-macros.m4: Require the new macro.
90903         * m4/jm-glibc-io.m4: New file.
90904
90905 1998-05-19  Jim Meyering  <meyering@ascend.com>
90906
90907         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90908         * m4/lchown.m4: New file.
90909
90910         * m4/Makefile.am.in: New file.
90911         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90912
90913 1998-05-14  Jim Meyering  <meyering@ascend.com>
90914
90915         * m4/Makefile.am (EXTRA_DIST): Add them.
90916         * m4/jm-macros.m4: New file.
90917         * m4/utimbuf.m4: New file.
90918
90919 1998-05-12  Jim Meyering  <meyering@ascend.com>
90920
90921         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90922
90923 1998-05-11  Jim Meyering  <meyering@ascend.com>
90924
90925         * m4/isc-posix.m4: New file.
90926
90927 1998-05-10  Jim Meyering  <meyering@ascend.com>
90928
90929         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90930
90931 1998-05-09  Jim Meyering  <meyering@ascend.com>
90932
90933         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90934         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90935         with automake.
90936
90937         * m4/ssize_t.m4: New file.
90938         * m4/mktime.m4: Remove file -- the new automake has this now.
90939
90940 1998-04-26  Jim Meyering  <meyering@ascend.com>
90941
90942         * m4/assert.m4: New file.
90943         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90944
90945 1998-04-05  Jim Meyering  <meyering@ascend.com>
90946
90947         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90948         (jm_PREREQ): Use it here.
90949
90950 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90951
90952         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90953         in acconfig.h.
90954
90955 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90956
90957         * m4/prereq.m4: New file.
90958         * m4/error.m4: New file.
90959         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90960
90961 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90962
90963         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90964         cache-check for the same variable -- that defeated the purpose of
90965         the test; the test program was never run.  This was a problem only
90966         on systems with losing getline functions -- HP-UX 10.20 is one.
90967         Reported by Bjorn Helgaas.
90968
90969 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90970
90971         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90972
90973 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90974
90975         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90976
90977         * m4/const.m4: New file.  Use an initializer in this declaration
90978         typedef int charset[2]; const charset x;
90979         Reported by Bob Glickstein.
90980
90981 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90982
90983         * m4/chown.m4: Fix reversed types on -1 args to chown.
90984         From Kaveh Ghazi.
90985
90986 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90987
90988         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90989         Add lseek and memchr.
90990
90991         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90992         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90993         have a 20-character limit on names.
90994
90995 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90996
90997         * m4/inttypes_h.m4: New file.
90998         * m4/uintmax_t.m4: New file.
90999         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91000
91001
91002         -----
91003
91004         Local Variables:
91005         coding: utf-8
91006         End:
91007
91008         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91009
91010         Copying and distribution of this file, with or without
91011         modification, are permitted provided the copyright notice
91012         and this notice are preserved.